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 PROTECTED]
   http://www.kennettnet.co.uk

Please include previous messages in any reply you send.



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to