SkaidonDesigns - phpBB Templates - vBulletin Styles - Website Design  
 
Serial input - system too slow?
Post new topic   Reply to topic    midge.vlad.org.ua Forum Index -> midge english
 
 
View previous topic :: View next topic  
 

 
Sunspot
Site Admin
Joined: 17 Mar 2006
Posts: 148
Location: New Forest, UK
 
 
PostPosted: Tue Jul 10, 2007 8:14 am    Post subject: Serial input - system too slow? Reply with quote

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.

-for interest the LCD/keypad is
http://www.robot-electronics.co.uk/htm/Lcd03tech.htm
_________________
http://www.sunspot.co.uk/Projects/sweexproject.htm
View user's profile Send private message Visit poster's website
Back to top
 

Display posts from previous:   
Page 1 of 1 All times are GMT

 
Post new topic   Reply to topic    midge.vlad.org.ua Forum Index -> midge english
 
 

 
Jump to:  
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
 
Adv:
A phpBB Template by SkaidonDesigns   Back to Top