Alberto, Exclusive use of a Bluetooth serial port is more a POSIX issue than a Bluetooth issue. Consider #include <ttycom.h> ioctl(fd, TIOCEXCL, 0); after you open the port. That should prevent anyone else from being able to get it. Hope this helps... eric
From: Alberto Ricci <alberto@riccisoft.com>
Date: Wed, 9 Oct 2002 14:54:28 +0200
To: bluetooth-dev@lists.apple.com
Subject: Serial connection with a T68i
Hello,
I am writing an application and I would like to make it communicate
with a T68i cellphone via a bluetooth connection.
Yeah, I'm new to bluetooth development and protocols.
The device is already paired with the Mac, so there is a serial port
available for communicating and I could use the usual posix routines
to open the port and do serial i/o.
However, I would like to be able to communicate with it without
preventing other applications from being able to use that serial
port. As far as I know, the Address Book application does that.
How is this achieved?
Or does the Address Book application only open the serial port in a
read-only mode with allows other processes to access it? But Address
Book does send AT commands to the phone, so it can't be read-only...
Any hints?
Thank you very much!
Alberto.
_______________________________________________
bluetooth-dev mailing list | bluetooth-dev@lists.apple.com
Help/Unsubscribe/Archives:
Do not post admin requests to the list. They will be ignored.
_______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.