View unanswered posts | View active topics It is currently Mon Jul 13, 2020 6:01 pm

Reply to topic  [ 3 posts ] 
Author Message

Joined: Sun Oct 21, 2012 10:01 pm
Posts: 76
Post Bluetooth
Does anyone know how to work with the Bluetooth in "raw mode"? What does it do? What benefits does it offer? If we need high-speed communication, will this perform sufficiently? When I tried to work with Bluetooth last time -- with a robot "car" project -- there was a major delay between when a message was sent from the controller NXT (based on touch sensor values) and when it was received by the driving NXT.


Wed Nov 21, 2012 10:53 pm
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post Re: Bluetooth
When in "raw mode" the LEGO defined higher level protocol (i.e. Fantom messages) is disabled and the application program can directly 'read' and 'write' bytes over an existing Bluetooth connection. This means that the user has complete control over the bytes being sent over Bluetooth, which allows the NXT to theoretically connect to a wider range of devices. Normally, though, it won't increase speed by a large amount because the speed is generally determined by the chipset, not the driver itself. Effective coding (whether using normal mode or raw mode) can help reduce latency as well.

We have the full listing of NXT Bluetooth commands available for ROBOTC on our wiki, here.

Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Tue Nov 27, 2012 12:03 pm

Joined: Sun Oct 21, 2012 10:01 pm
Posts: 76
Post Re: Bluetooth
Ah, okay. Thanks for the reply, and yes, I had spent some time poring over the RobotC wiki documentation. I think my favorite, by far, was the comment for this function...
cCmdBTPurgeRcvBuffer();  // purge the buffer!

Tue Nov 27, 2012 1:40 pm
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.