|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
Re: Lego NXT -- NXC blocking bluetooth IO
I believe that the NXC firmware is based on the LEGO FW, and the scheduling in that FW is done statically. The I/O drivers run once per millisecond and the VM is guaranteed to not be running during that period. This simplifies the protection mechanisms.
The user level code that meshes well with this is to poll and if not arrived, sleep 1 millisecond. There would be slightly less overhead if the BT driver had a notification mechanism, but it is pretty capable as long as there is a delay. A slightly better guess is to sleep the appropriate time based on the amount being transferred. Does yield in NXC take a parameter, or is there a better way to sleep a controlled amount? Greg McKaskle |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FTC]: NXT bluetooth connectivity issue | Team 288 | FIRST Tech Challenge | 3 | 26-11-2009 12:38 |
| cant get NXT to connect to controller station via bluetooth | cougarbotics | FIRST Tech Challenge | 5 | 04-12-2008 00:19 |
| [FTC]: Bluetooth/NXT issues | jbbjjbt | FIRST Tech Challenge | 5 | 23-10-2008 16:56 |
| LEGO Unveils new LEGO Mindstorms NXT Robotics Toolset | Danny Diaz | Lego Mindstorm Discussion | 21 | 25-05-2006 19:56 |
| LEGO Unveils new LEGO Mindstorms NXT Robotics Toolset | Danny Diaz | FIRST Lego League | 0 | 05-01-2006 01:56 |