Re: Serial Ports and DialUpNetworking ( for the apple guys )
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Jason, - Morgan On Mar 13, 2006, at 4:42 PM, Bubba Giles wrote: jason Jason, You said "but we should still create a serial port for the device if it has one". Is this only if the user uses the Setup Assistant? The issue I am facing is, we want the user to select the device, and pair with it, from within out own application. We don't want to have to say, ok, now run the bluetooth setup assistant, configure your device, *dont forget to select "Use to connect to the internet with"*, and *then* come back to our application, and hit this button so we know your ready, so we can finish setting up the device properly. Its a horrible user experience. Is there any way to create the serial port programatically? Even a private API? The company I am contracting for would be willing to go NDA to get access to it if necessary; We have done it in the past to get ahold of the 802.11 API. - Morgan On Mar 13, 2006, at 2:11 PM, Bubba Giles wrote: If a device has a serial port, we will create a tty for it in the Setup Assistant. Check the Bluetooth prefs, select the device in the list, and click "Edit Serial Ports" and you should see the TTY that was created for it in the list. Also, check in /dev for it. The "internet connect" option in the Setup Assistant configures the DUN/Serial port on the device for use with the "Bluetooth Modem" port that is in the Network control panel, but we should still create a serial port for the device if it has one. Jason For the apple guys, But then... Sincerely Morgan _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/bubba% 40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/ijeyd%40mac.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... Again, the solutions you are suggesting are not solutions. They are things the end user would have to do, that they really shouldn't. They equal bad user experience, and are not expectable. I agree with the "Working with bluetooth devices" document that serial ports usually have to be configured by the user ( thus == bad ), which is why the application I am upgrading takes care of all the configuration in the background. I would suggest, in the future, Apple should consider making the API public, and apart of the IOBluetoothDevice class itself. You can also create it with the system preferences by selecting the device, and clicking "Edit Serial Ports". From there you can add one. You can also do it from the old Serial Port Utility in Panther (it should still run in Tiger). So, I already know there is no way to programatically create a serial port for a given bluetooth device.... or is there? Reading through the docs online, I was initially hesitant to move my "legacy" serial port code over to RFCOMM. But, after reading "Accessing Serial Ports" in "Working with Bluetooth Devices" enough times, I was convinced it would be a good idea to upgrade my code. And hey, I could use the proper bluetooth UIs. So, I updated all my serial code to RFCOMM. Did you guys consider the possibility of a developer *needing* access to the standard POSIX ttys, even *with* proper bluetooth device handling? For, perhaps, internet connection software? I notice that the bluetooth setup wizard only creates a serial port if the user selects "Use this device to connect to the internet with". Did you guys ever consider, your not the only one thats going to want to do that? The application I am updating, is in fact an internet connection manager! I love the new bluetooth UIs in my application, but now that I am at the final phase of updating my code, I realized, *crap*, I STILL NEED a POSIX serial port. I need a modem path to configure in System Configuration so that my application can actually create an internet connection!!!! What do I do now?? There *must* be a way to create it. You guys are doing it...... Please advise. This email sent to bubba@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/bubba% 40apple.com This email sent to bubba@apple.com This email sent to ijeyd@mac.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Morgan Redman