?
Solved

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

Posted on 2003-03-25
3
Medium Priority
?
206 Views
Last Modified: 2010-03-18
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
Comment
Question by:groundhogday
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 8234815
use /dev/cua{0,1,2,3} instead
0
 

Author Comment

by:groundhogday
ID: 8307714
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
 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 8366333
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question