• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Serial port arbitration (UUCP device locking protocol?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial port arbitration (UUCP device locking protocol?)


  • Subject: Re: Serial port arbitration (UUCP device locking protocol?)
  • From: Dan Bernstein <email@hidden>
  • Date: Sat, 12 Feb 2005 10:43:34 +0200

Thanks. That's something, but not quite what I'd hoped for. Is there a
way that I could tell when another program has opened the "call-out
device", and more importantly, when it has closed it, so that I can
put the modem back into a known state?

-- Dan

On Fri, 11 Feb 2005 12:23:24 -0800, Mike Smith <email@hidden> wrote:
> > I couldn't find any documentation or discussion of serial port
> > arbitration in darwin or Mac OS X. The situation is the classic one: I
> > want my program to listen on the modem port but yield it to any other
> > program wishing to use it. The efax man page mentions the "UUCP device
> > locking protocol", but this appears to be useful only if all other
> > applications adhere to it. Is Open Transport's arbitration mechanism
> > supported under Mac OS X? If so, what does it use on the darwin level?
> >
> > I also wouldn't want the fact that I'm listening on the device to
> > interfere with sleep. Do I need to listen for system power
> > notifications and close the port when the system is requesting
> > permission to go to sleep?
>
> As with all BSDs, you should open the call-in device (/dev/tty*).
>
> Programs that want to use the line to call out will open the call-out
> device (/dev/cu*)
>
> Typically, this means you open /dev/tty.modem, and others will open
> /dev/cu.modem.
>
> Having the call-in device open should not prevent the system from
> sleeping.
>
>   = Mike
>
>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Serial port arbitration (UUCP device locking protocol?)
      • From: Godfrey van der Linden <email@hidden>
References: 
 >Re: Serial port arbitration (UUCP device locking protocol?) (From: Mike Smith <email@hidden>)

  • Prev by Date: Re: kernel panics and nvram issues
  • Next by Date: Problems with compiling xnu-517.11.1
  • Previous by thread: Re: Serial port arbitration (UUCP device locking protocol?)
  • Next by thread: Re: Serial port arbitration (UUCP device locking protocol?)
  • Index(es):
    • Date
    • Thread