Home » Questions » Computers [ Ask a new question ]

Linux comand line program, serial (COM port) transmistion, Hex

Linux comand line program, serial (COM port) transmistion, Hex

So I need a program that I can run on embedded linux (OpenWRT 8.09), via command line, I need to be able to transmit 8N1, i need to transmit in HEX (not ascii,) and preferaby also in decimal.

Asked by: Guest | Views: 177
Total answers/comments: 1
Guest [Entry]

"I think ssterm should work for you. It is written in Python (which is probably bad) but it is console-based, and it does support hexadecimal input and output.

You can launch it like this:

ssterm /dev/ttyAMA0 -b 9600 -i hex -o split

Then it should read hexadecimal characters from stdin, convert each 2 characters to byte and send that byte to the serial.

Also it will read data from the device and show it in hexdump-like way: hex representation to the left and ascii representation to the right."