Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Serial port over Bluetooth or not?



Hey list,

I'm writing a framework that'll communicate with the Lego Mindstorms NXT brick [1] over a serial port, which is created either over Bluetooth or a USB connection (using the Bluetooth serial profile and a USB->Serial driver respectively).

The protocol dictates that messages sent over Bluetooth have an additional two bytes at the beginning of the message with a little endian UInt16 describing the length of the message.

I can construct this just fine using EndianU16_NtoL et. al, but what I'm struggling with is finding out if the serial port is a Bluetooth one or not. The serial port has a standard BSD path like /dev/tty.NXT.

Is there any way of finding out this information?

[1] http://mindstorms.lego.com/

 Thanks,

-- Daniel

 _______________________

   email@hidden
   http://www.kennettnet.co.uk

Please include previous messages in any reply you send.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.