LK204 USB under Linux
Posted: Tue Sep 20, 2011 7:56 am
Hi,
i have buy LK204-7T-IU-USB-TCI for use under a Linux Server.
I have create a "hello world" page in c++, but i don't know how use:
- the three led at left of the panel
- the action of keypad
and, is possible use a bash script? if i try
echo "test" >> /dev/ttyUSB001
it work well, but it use only 3 row.
My target is show ip address, then:
in bash:
cat /etc/sysconfig/network/ifcfg-eth0 | grep "IPADDR=" | awk -F"'" 'NR==1{print "IP:"$2}' >> /dev/ttyUSB0
and in c++ ??
:-\
thanks in advance!
i have buy LK204-7T-IU-USB-TCI for use under a Linux Server.
I have create a "hello world" page in c++, but i don't know how use:
- the three led at left of the panel
- the action of keypad
and, is possible use a bash script? if i try
echo "test" >> /dev/ttyUSB001
it work well, but it use only 3 row.
My target is show ip address, then:
in bash:
cat /etc/sysconfig/network/ifcfg-eth0 | grep "IPADDR=" | awk -F"'" 'NR==1{print "IP:"$2}' >> /dev/ttyUSB0
and in c++ ??
:-\
thanks in advance!