- File transfer via XMODEM / YMODEM (and RS-232. (or YMODEM) file transfer uses a special. Expect to receive an acknowledge character over the serial port. I'd like to send the text content of a file over the serial port, over PuTTY.
- XMODEM is a file transfer protocol which enables users to transmit files between different computers. XMODEM was developed by Ward Christensen in 1977 and since then the method of sharing files has changed. It became extremely popular in the early bulletin board system (BBS) market because of its simple implementation.
- Then in your terminal emulation program start the transfer. In teraterm it is under the file menu, while secure CRT has a whole menu structure dedicated to various methods to transfer files. Simple chose the xmodem protocol (I found selecting the 1K option was more reliable), and browse to the configuration file, and away it goes.
- Xmodem is a slow transfer protocol, and the transfer of a file as large as a Cisco IOS software image could take an unacceptably long time. An increase to the console speed on the 3600 router helps decrease the time it takes to do the xmodem file transfer. Srw2024 Downloading Code Using Xmodem With Putty Stick.
The DAM1021 originally came with FPGA firmware 0.8. Since then Soren has released a new version of the firmware, Rev 0.9.
ExtraPuTTY is a fork of PuTTY that adds XMODEM and a few other file transfer protocols. Furthermore, what replaced HyperTerminal in Windows 10? If you need a good HyperTerminal program for Windows 10, then this is your best option.
In order to upload it to the DAC one must connect the DAC to a computer using either a “classic” serial port, like the one found at the back of older computers, or a USB to Serial adapter. Then a cable must be made connecting three pins of the DB9 connector to the connector J10 on the DAC board.
These pictures illustrate the connections that are needed:
You use your new cable to connect the DAM to your computer’s serial port (or USB-to-serial adapter). You do not power on the DAM DAC just yet.
Putty Xmodem Download
Once you are done with making the physical connection, you need to get your hands on some software that supports the XModem 1K data transfer protocol. This is a pretty old protocol, so your choices in software are pretty limited. One such choice is the “classic” HyperTerminal, but since it is no longer available with Windows I chose the more modern ExtraPUTTY. It is a fork of the classic PuTTY telnet/ssl client software that also supports “vintage” transfer protocols such as XModem.
Once you have it installed it is pretty easy to establish a serial connection at 115200, 8, n, 1, as specified by Soekris. You click on the “serial” tickbox and enter your computer’s serial port (in my case it’s COM5) along with the specified speed (115200bps):
You click on “open” and you get a black terminal screen. You now need to power on the DAC. Once you do that, you should get something like this:
This means that everything is fine. You might see an “I0” instead of an “I3”. That is OK.
Now you need to get to the uManager prompt. You type “+++” and wait for a second. You will not see the “+” characters as you type them. That is OK. You will get this:
Now type “download”, followed by Enter. You will see something like this:
This means that you have 30 seconds to begin sending your file. To do that you click on File Transfer -> Xmodem 1K -> Send. Select your firmware file and off you go!
When the transfer completes you will see something like this:
One thing – do not forget to give the “update” command once you have uploaded the code followed by a “y” and return.
Next you type “exit” (and Enter) to exit the uManager prompt and you are ready to power cycle the DAC. Once you have done that, you repeat the above steps to get to the uManager prompt and you verify that you have successfully updated the firmware. You should now be at FPGA firmware 0.9!
If are having problems connecting, such as getting garbage like this in your serial console:
chances are that your USB to serial adapter is not a “true” RS-232 interface, but outputs TTL levels instead. You can confirm that by measuring the voltages between GND and the RX & TX pins. You should be getting zero volts in one case and about -9V in the other. If you are getting 3.3 or 5 volts, your interface will not work with the DAM. You should try to find a proper RS-232 interface.
Putty Xmodem File Transfer Software
How to install the PuTTy Secure Copy client and use it to transfer files
PuTTY is the CIT-recommended application for secure file transfer using SCP between Windows clients and Windows or Unix servers. Its secure copy utility is called PuTTy Secure Copy Protocol (PSCP).
PSCP and PuTTY are available from PuTTY.org.
Install PuTTY SCP (PSCP)
PSCP is a tool for transferring files securely between computers using an SSH connection. To use this utility, you should be comfortable working in the Windows Command Prompt.
- Download the PSCP utility from PuTTy.org by clicking the file name link and saving it to your computer. (If you also want to use the PuTTY shell program, you can download and save putty.exe to your computer as well.)
- The PuTTY SCP (PSCP) client does not require installation in Windows, but runs directly from a Command Prompt window. Move the client program file to a convenient location in your Programs folders and make a note of the location.
To open a Command Prompt window, from the Start menu, click Run.
cmd
. Click the Command Prompt search result item that appears.- A Command Prompt window will open. To be sure the utility launches correctly from any directory in the Command Prompt window, set up an environment path so your system knows where to look for it. You'll use the pscp.exe location that you made note of in Step 2. For example, if you've saved the pscp.exe file to the folder 'C:Program FilesPuTTy', set up a path by entering
set PATH='%PATH%;%ProgramFiles%putty'
at the prompt in the Command Prompt window. - Entering the path in this way only lasts for the duration of the current session (that is, while you have the Command Prompt window open). To set up an environment variable path permanently, open the System control panel in Windows and click Advanced system settings, then click Environment Variables. In the Environment Variables window, select Path from the list of User variables, then click Edit. (If no Path variable is listed, click New.)
- In the Edit User Variable window, click New. Type or paste the directory path for the PSCP utility you noted in Step 2 (for example,
C:/Program Files/putty
) into the empty highlighted new line item. - Click OK to save the new entry, then click OK again to close the Environment Variables window. The PSCP program file location is set up in your system and will not need to be entered each time you open a Command Prompt window.
Transfer files using PSCP
Open the Command Prompt window, and if necessary set up your path variable as shown above in Step 4.
To copy the local file c:documentsinfo.txt as user username to the server server.example.com with destination directory /tmp/foo, type at the prompt:
pscp c:documentsinfo.txt userid@server.example.com:/tmp/foo/info.txt
When prompted, enter your password for the server.