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. Begin the Xmodem or Xmodem-1K transfer now. CCC; before the 3 CCC appear quick right click on the hyperterminal window and choose Transfer Send File. Choose the Xmodem protocol in the Send File dialog box and click Browse in order to select the Cisco IOS image (.bin file) that you selected previously. Click Send in order to begin the Xmodem transfer. PuTTY wish zmodem. We don't see that this is a vital requirement because we already supply two file transfer mechanisms in the PuTTY suite. To send files back, one of several protocols could be used, kermit, xmodem, ymodem and zmodem. The channel that the files were sent over were the actual login session.
Execute the terminal emulator commands to begin the Xmodem transfer. For example, using HyperTerminal: Click on Transfer, then Send File. Type the file path and name in the Filename field.
The DAM1021 originally came with FPGA firmware 0.8. Since then Soren has released a new version of the firmware, Rev 0.9.
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.
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.
During my daily working, I do the development on Windows OS; besides, we have aDebian server for running different jobs automatically, file storage, etc.Sometimes, we also need to transfer files from Windows OS to Linux OS, orreverse; in this case, we use Putty to realize the transfering. Today, I willtalk about how to use Putty for transfer files with the following points:
- What is Putty ?
- Requirements
- Transfering files from Windows to Linux
- Transfering files from Linux to Windows
Windows 10 Xmodem
What is Putty ?
PuTTY is a free and open-source terminal emulator, serial console andnetwork file transfer application. It supports several network protocols,including SCP, SSH, Telnet, rlogin, and raw socket connection. Note skin rainmeter. It can alsoconnect to a serial port. The name 'PuTTY' has no official meaning.
Requirements
Putty Xmodem File Transfer
- Windows OS
- Linux OS
- Putty installed: download Putty here
- Putty PSCP installed: download Putty PSCP here
Transfering files from Windows to Linux
To transfer files from Windows OS to Linux OS, we will apply PSCP
. Before westart, let's have a general understanding of it. PSCP
means 'PuTTy SecureCopy Protocol (PSCP)', is a tool for transferring files securely betweencomputers using an SSH connection. To use this utility, we should becomfortable working in the Windows Command Prompt.
Now, let's start to transfer files to Linux:
- Open Windows Command Prompt.
- Type
pscp source_path user_name@host:target_path
at the prompt
Here, ./weekly_report.xlsx
specifies the path of source file, xxx
is user'saccount for accessing the Linux server, 123.456.789.0
is the host address,/reporting
presents target path.
- After the bash script above, we also need to type the password for accessingthe Linux server.
Transfering files from Linux to Windows
Transfering files from Linux OS to Windows OS is similar to the steps above:
- Open Windows Command Prompt.
- Type
pscp user_name@host:source_path target_path
at the prompt
- Windows OS
- Linux OS
- Putty installed: download Putty here
- Putty PSCP installed: download Putty PSCP here
Transfering files from Windows to Linux
To transfer files from Windows OS to Linux OS, we will apply PSCP
. Before westart, let's have a general understanding of it. PSCP
means 'PuTTy SecureCopy Protocol (PSCP)', is a tool for transferring files securely betweencomputers using an SSH connection. To use this utility, we should becomfortable working in the Windows Command Prompt.
Now, let's start to transfer files to Linux:
- Open Windows Command Prompt.
- Type
pscp source_path user_name@host:target_path
at the prompt
Here, ./weekly_report.xlsx
specifies the path of source file, xxx
is user'saccount for accessing the Linux server, 123.456.789.0
is the host address,/reporting
presents target path.
- After the bash script above, we also need to type the password for accessingthe Linux server.
Transfering files from Linux to Windows
Transfering files from Linux OS to Windows OS is similar to the steps above:
- Open Windows Command Prompt.
- Type
pscp user_name@host:source_path target_path
at the prompt
- Same as above, after the bash script above, we also need to type the passwordfor accessing the Linux server.
Using Xmodem With Putty
Conclusion
In this blog, I introduced how to use Putty
to transfer files from Windows OSto Linux OS and reverse. Hope it's useful for you.
Reference
Putty Xmodem Cisco
- 'PuTTY', wikipedia. [Online]. Available: https://en.wikipedia.org/wiki/PuTTY
- 'Transfer Files Using PuTTY', it.cornell.edu. [Online]. Available: https://it.cornell.edu/managed-servers/transfer-files-using-putty
- Comfreak, 'traffic information superhighway', pixabay.com. [Online]. Available: https://pixabay.com/photos/traffic-information-superhighway-3524185/