On Wednesday, October 9, 2002, at 03:09 PM, Alberto Ricci wrote: Actually, I had the impression that Address Book.app did not open the port in an exclusive mode, because I can use, say, ZTerm on the port while Address Book.app is listening to incoming calls on the bluetooth phone. That's why I was wondering if there was a way to open multiple serial connections with a bluetooth device... Due to the nature of Bluetooth channels (L2CAP and RFCOMM), all of the I/O access mechanism we provide are exclusive. So if one client has registered its incoming data handler (or opened the tty), it will have exclusive use of that channel. Currently the act of registering an incoming data handler is the means to indicate use of a channel. But Eric Brown says that there is a single RFCOMM channel... so why do I see RING messages in the ZTerm window while also getting incoming call messages from Address Book.app? If I look at Address Book.app's communication with my T68i by using PacketDecoder2, I can see it actually gets incoming call notifications through the standard AT command set and unsolicited responses... Some of the Ericsson phones have two different serial port services. Is it possible that you've set up Address Book to use one of them and the tty serial port to use the other? In that scenario you would end up with two separate RFCOMM channels and would likely see the behavior you describe. (by the way, where are constants such as TIOCEXCL documented?) Unfortunately that I do not know. I'll pass the question on to our serial / RFCOMM guy to answer. - Eric At 10:25 AM -0700 10/9/02, Eric Welch wrote: 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. _______________________________________________ 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. _______________________________________________ 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.
participants (1)
-
Eric Brown