Page 1 of 1

ส่งข้อมูลไป Serial Port จาก Command Line

Posted: 05 Feb 2014, 16:35
by brid.surapol

Code: Select all

stty -F /dev/ttyS0 speed 9600 cs8 -cstopb -parenb
echo -en '\x12\x02' > /dev/ttyS0

เพิ่ม user เข้าไปใน group 'dialout' ใน /etc/group