• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

Problems with /dev/ttyS0/1/2/3

I need help in configuring the serial ports correctly.  I have used sample codes from How-To pages with limited successes.  One of the problem is that after I write to /dev/ttyS1, the permission changes from crw_rw_rw_ to c_w__w__w_.  This does not occur to other ports.  Another is that the write() reports the bytes written, but the target device did not receive the bytes.  However, I am able to read data from the target device.  Can someone explain the minimum configuration need to perform asynchronous I/O to multiple ports?  Since the read() can only read 255 bytes at a time, I would also need to know how to activate interrupts for multiple ports.  Thanks in advance.
0
groundhogday
Asked:
groundhogday
1 Solution
 
ahoffmannCommented:
use /dev/cua{0,1,2,3} instead
0
 
groundhogdayAuthor Commented:
I don't know anything about /dev/cua.  I found out my problem was that /dev/ttyS1 was assigned to COM2 and has been corrected.  I have requested this question be deleted.  Please respond if you have any objections.  Thanks.
0
 
MindphaserCommented:
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now