By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,188 Members | 1,593 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,188 IT Pros & Developers. It's quick & easy.

Problem with writing and reading from serial device ttyS0

P: 1
Hi folks ,
Can anyone help me out the problem regarding writing and reading data to/from a serial device like ttyS0 in linux . Writing is being done but unable to read from it . could u plea help me out with good stuff or brief explation what i need to do . Remember i need asynchronous read/write opeartion where i m using aio_read and aio_write.
May 5 '07 #1
Share this Question
Share on Google+
1 Reply


AdrianH
Expert 100+
P: 1,251
Hi folks ,
Can anyone help me out the problem regarding writing and reading data to/from a serial device like ttyS0 in linux . Writing is being done but unable to read from it . could u plea help me out with good stuff or brief explation what i need to do . Remember i need asynchronous read/write opeartion where i m using aio_read and aio_write.
Can you write out an example of how you are currently manipulating ttyS0 for writing, and then how you are actually doing the writing?

What errors are you experencing? I'm assuming runtime errors, but I could be wrong.

If you have a test app which is small (no more than 20 lines) and shows the problem you are experencing, post it to the forum. Please use [code][/code] tags to surround your code.

Thanks


Adrian
May 5 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.