AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Linux serial port binary data9/21/2023 ![]() ![]() ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts Werase = ^W lnext = ^V flush = ^O min = 1 time = 0 Intr = ^C quit = ^\ erase = ^? kill = ^U eof = ^D eol = ^J Įol2 = swtch = start = ^Q stop = ^S susp = ^Z rprnt = ^R My default ttyS0 settings before running the program is: ~ # stty -a I also have /etc/passwd file with string where "admin" user launch my "cli" application after log in:Īdmin:8Mt/Jtxcyg8AY:1000:0:admin:/tmp:/tmp/cli My /etc/inittab file has a "getty" call:Ĭonsole::respawn:/sbin/getty 115200 ttyS0 But I want to transfer also binary data (service packets) through the port. By default, embedded Linux uses this port as a terminal. I communicate with my embedded device through a serial port. I read followed links and other sources, but didn't find answer for my question.ĭata gets corrupted during transmission over the serial port ![]()
0 Comments
Read More
Leave a Reply. |