Serial port over Bluetooth or not?
Serial port over Bluetooth or not?
- Subject: Serial port over Bluetooth or not?
- From: Daniel Kennett <email@hidden>
- Date: Wed, 15 Oct 2008 14:41:51 +0100
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:
This email sent to email@hidden