LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-29-2005, 04:39 AM   #1
saba_taseer
LQ Newbie
 
Registered: Nov 2005
Location: Pakistan
Posts: 1

Rep: Reputation: 0
Question serial port missing text problem


Hi All,
I am trying to use serial port for communication between 2 linux PCs. One PC is transmitting and other is ony Recieving. For testing purposes I am sending 5 packets of 345 bytes containing string 'abcdef' filled in it. Time between calls to function to write the 5 packets is 100usec apart and time between two packets being written to serial port is is 100usec. I am using 19200baud rate, no parity and 1 stop bits with hardware flow control. THe problem that I am facing is that after a while I can say after around 3-4 mins the serial port is skipping bytes like it is receiving 'abef' instead of 'abcdef', or it is recieving 'abdcdef' instead of abcdef'. I have checked the serial cable and it seems to work fine. I have tested transmitting from my application to HyperTerminal on a windows PC and it works fine. If I tx from Hyper Terminal and Rx through my application it some times gives the same problem as on linux-linux PC. I have tried many combinations of flags during initialization but to no use. I have rechecked the cable connections, the cable is a null modem cable. Can some one suggest what can be the probable problem. If this is a flow control problem what can be a probable way of handling it. An early reply would be highly appreciated.


Thanks,
Saba
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 serial port problem sport Mandriva 0 11-12-2005 12:05 PM
Serial port problem floydes Programming 1 10-14-2004 11:50 AM
serial port problem... linux4john Linux - Software 1 10-30-2003 10:02 PM
Serial port problem ruchika Linux - Networking 0 08-15-2003 04:18 PM
Problem with Serial port mritunjay Linux - Networking 1 04-22-2002 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration