• 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: Programmatically Create Serial Port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically Create Serial Port


  • Subject: Re: Programmatically Create Serial Port
  • From: Eric Brown <email@hidden>
  • Date: Tue, 8 Nov 2005 09:42:07 -0800

You can't directly create a TTY (serial port) through code. There is currently no public API to do that. As you've discovered, the Bluetooth Setup Assistant in Tiger does automatically create a serial port for you for the first Serial Port Profile it finds on the device. Our recommendation is to not use the TTY interface for talking to Serial Port Profile devices. It is much better to use the RFCOMM APIs and communicate directly using the IOBluetooth framework. There are examples on how to do this in the Bluetooth examples folder.

- Eric

On Nov 8, 2005, at 8:12 AM, Geoffrey Schmit wrote:

I'm developing an application that will discover and pair with my Bluetooth device. Using the IOBluetoothPairingController class, I can successfully pair with the device. However, I also need to have a serial port created (the device supports the serial port profile). This does not not happen as a result of the pairing operation. I did noticed that when I use the Bluetooth Setup Assistant to pair with my device, a serial port is created. So, it appears that the Bluetooth Setup Assistant is doing more than just pairing with the device. What is it doing? How can I create the serial port from within my application?

I'm currently developing on Mac OS X 10.4, but will need to support Mac OS X 10.3 as well.

Thanks!

geoff

--
Geoffrey Schmit
Senior Software Engineer
National Instruments
email@hidden
www.ni.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Programmatically Create Serial Port (From: Geoffrey Schmit <email@hidden>)

  • Prev by Date: Re: Programmatically Create Serial Port
  • Next by Date: A2DP
  • Previous by thread: Re: Programmatically Create Serial Port
  • Next by thread: Browse Device never worked with Nokia 6600
  • Index(es):
    • Date
    • Thread