Re: Correction: Serial port arbitration
Re: Correction: Serial port arbitration
- Subject: Re: Correction: Serial port arbitration
- From: Godfrey van der Linden <email@hidden>
- Date: Fri, 8 Apr 2005 11:42:12 -0700
Have you ever succeeded in talking to your serial device? Before
going into arbitration just try to setup a simple program that sends
an AT<CR> to the device and make sure you are getting an OK? If you
aren't then you have other issues.
BTW did you use O_NONBLOCK as one of the open flags or are you using
the /dev/cu.??? device?
Godfrey
On Apr 7, , at 18:21, Gregory Weston wrote:
Godfrey van der Linden wrote:
// At this point you have the port exclusively and non-preemtibly
// so now is a good time to program up the modem or do any other
// equipment initialisation you desire.
Not to be terribly dense, but how? If I try to send an
initialization string via write() I block forever.
Adding O_RDWR to the open() flags had no impact.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden