How can i send a binary file via serial in linux? -


i want control hdmi matrix switch via serial connection. in windows tried successful following steps:

decode necessary hex simple textfile binary:

certutil -decodehex on.txt on.bin 

then configure mode comport:

mode com1:19,n,8,1 copy on.bin \\.\com1 /b 

now try same in linux (debian). since files binary figured can reuse them, transferred them linux system , tried following configure comport:

stty -f /dev/ttyusb0 19200 cs8 -cstopb -parenb 

and sending binary:

cat on.bin > /dev/ttyusb0 

but won't anything.´

edit:

it's different pc, usb2serial converter ist same. lsusb gives me:

bus 001 device 003: id 1a86:7523 qinheng electronics hl-340 usb-serial adapter

dmesg shows

[ 5.070075] usbserial: usb serial support registered generic [ 5.072824] usbserial: usb serial support registered ch341-uart [ 5.073476] usb 1-9: ch341-uart converter attached ttyusb0


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -