I try sending to serial port someone string echo -ne '\x55\x90\x17\x01\x00' > /dev/ttyACM0
,
usb monitoring show me this data:
ffff8c957536f540 2932377867 S Bo:2:005:3 -115 5 = 55901701 00
this working properly, all data send it in one string, device accepted command. but if data include 0xA, its always split data into 2 lines. for example:
echo -ne '\x55\x90\xa\x01\xde' > /dev/ttyACM0
usb monitoring show me this:
ffff8c957536f540 3046024649 S Bo:2:005:3 -115 3 = 55900a
ffff8c957b719000 3046024661 S Bo:2:005:3 -115 2 = 01de
string split to 2 lines, of course, the device has ignored this command.
My question, how to send any data with included 0xA. This something wrong with stty, I spend a lot of time but still do not the success. or please confirm, this does not possible to send 0xA in mid of string from Linux console to a serial port.
stty -F /dev/ttyACM0 raw -echo
? – meuh Sep 24 '18 at 08:06