Recently I need to send a binary file to a device connected to the serial port of my PC. Under windows I can use the 'send binary file' in teraterm, how about under minicom?
The solution is simple, if your serial port is COM1:
cat [filename] > /dev/ttyS0
Or if you are using some kind of USB to serial converter:
cat [filename] > /dev/ttyUSB0
Note: The number could differ depending on your system configuration, it could be /dev/ttyUSB4 for example. To check what is the number, do a 'ls -l /dev/ttyUSB*'
No comments:
Post a Comment