• 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
Serial port over Bluetooth or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Comparing the Class
  • Next by Date: Re: iPhoto thumbnail view
  • Previous by thread: Re: Comparing the Class
  • Next by thread: Decoding OSStatus values
  • Index(es):
    • Date
    • Thread