ส่งข้อมูลไป Serial Port จาก Command Line
Posted: 05 Feb 2014, 16:35
Code: Select all
stty -F /dev/ttyS0 speed 9600 cs8 -cstopb -parenb
echo -en '\x12\x02' > /dev/ttyS0
เพิ่ม user เข้าไปใน group 'dialout' ใน /etc/group
บอร์ดความรู้เกี่ยวกับระบบ ERP / PlanetOne ERP / ระบบบัญชี และการใช้งาน Linux และ OpenOffice จาก BRID Systems
https://planetone.online/forum/
Code: Select all
stty -F /dev/ttyS0 speed 9600 cs8 -cstopb -parenb
echo -en '\x12\x02' > /dev/ttyS0