Joined: 17 Mar 2006 Posts: 148 Location: New Forest, UK
Posted: Tue Jul 10, 2007 8:14 am Post subject: Serial input - system too slow?
I seem to have a problem with router response speed when I try to receive data on a serial line.
If I -
cat /dev/ttyS1
and have Hyperterminal connected to ttyS1 I can see all the data I type - and I can save it to file etc.
I have an LCD/keypad unit (below) and I can send data to the screen OK. However to receive from the keypad I send a byte of decimal value 16 (hex10) and it immediately sends back two bytes that contain the status of a pressed key on the key pad). I can see the pulses on a 'scope but I can't catch the bytes in the router.
Has anyone written any C routines to catch serial data coming to the router?
I am new to C coding and would appreciate any help - thanks.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum