Search found 3 matches

by aswinn01
10 Aug 2011, 18:34
Forum: Mindstorms Software
Topic: Send/Receive Number messages using Bluetooth
Replies: 5
Views: 4953

Re: Send/Receive Number messages using Bluetooth

MY NXT program is using NXT-G 2.0. It is helpful to know that the NXC language uses 4 byte integers. I will be starting to use the NXC language as soon as I've read the book (which I got delivered yesterday). I'll create methods for reading and writing float and int data for my projects. Best regard...
by aswinn01
10 Aug 2011, 12:52
Forum: Mindstorms Software
Topic: Send/Receive Number messages using Bluetooth
Replies: 5
Views: 4953

Re: Send/Receive Number messages using Bluetooth

Thanks for the swift reply. I had assumed that the number would be presented as a little endian 4 byte integer. However, after several hours of testing I have worked out that my NXT seems to be passing numbers as 4 bytes in the IEEE 754 single precision binary floating-point format: binary32. All th...
by aswinn01
09 Aug 2011, 14:56
Forum: Mindstorms Software
Topic: Send/Receive Number messages using Bluetooth
Replies: 5
Views: 4953

Send/Receive Number messages using Bluetooth

I am wring a simple Java application to remote control a robot.

I cannot decipher NXT Bluetooth Number messages i.e. I don't know how to read 4 byte integer (2 is represented as 0x00 0x00 0x00 0x40, 3 is 0x00 0x00 0x40 0x40 etc.)

Can anyone help?