|
"John Hansen" <afanofosc@comcast.net> wrote in message
news:JF0sGr.M2w@lugnet.com...
> Over the past couple days I have used the IAR Embedded Workbench to implement
> some enhancements and bug fixes for the standard NXT firmware.
big snip
Great job John. And thank you especially for CommExecuteFunction. I couldn't
believe that Lego didn't allow a way to make a Bluetooth connection from a
program. With your firmware modifications, I am able to do this now.
I have only tested BTON, BTOFF, CONNECT, and DISCONNECT, but I intend to
test more of the commands that are a part of this syscall. I will also post
my results on here along with the parameters and return values that I am
able to interpret. I encourage others to test John's changes as well to give
him the leverage needed to convince Lego to take the changes.
3 CONNECT(Param1, Param2)
Param1 - index of device to connect to
Param2 - connection (1 - 3)
Result - BTCONNECTFAIL (0x9500, 38144). This can occur if you try to use a
connection that is already in use.
4 DISCONNECT(Param1)
Param1 - connection (1 - 3)
12 BTON()
Result: 0 - SUCCESS
RetVal: 0 - if already ON
1 - if was OFF
13 BTOFF()
Result: 0 - SUCCESS
RetVal: 1 - Always
A suggestion: it would be nice if the Name struct member of
TCommExecuteFunction were implemented so you could connect by name as well
as by index.
David Wallace
|
|
Message has 1 Reply:
Message is in Reply To:
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in...
Robotics
NXT programmable brick
|
|
|
|