Controlling a Lego Mindstorms NXT using Processing Android
in
Android Processing
•
11 months ago
Hi there,
it is really amazing to work with Processing Android - after I gave up struggling with Eclipe
Setting up a stable two way communication to an Arduino took me only one rainy weekend using the Ketai Library.
My next project is to control a mindstorms NXT over Processing Android by additionally using image processing algorithms.
Controlling a NXT over Processing Java with a Bluetooth dongle on my PC works fine. I also can control the NXT using the direct commands of the Lego Command Protocol.
But what definitely does not work is sending these direct comands via Processing Android. A work around would be to use the NXTcomm library for Processing. But this library does not cooperate with the Ketai library (am I right?).
Maybe the NXTcom library works together with the "serialbt" library. But with the latter library I do not manage even to talk with an Arduino BT shield.
Has anybody managed so far to communicate with an NXT using Processing Android?
I managed to establish a Bluetooth connection to the NXT using the Ketai library, but I definitely do not manage to send data bytewise to the NXT over this connection...
Is there anything special I have to look at if I want to send a direct command via Bluetooth to a NXT?
(A simple command to let the NXT beep for example is: 0x06 0x00 0x80 0x03 0x0B 0x02 0xF4 0x01 ). If I send these 8 bytes via the terminal software RealTerm to the serial port of my BT dongle the NXT recognizes the command.
If I send these 8 bytes via Processing Android (using Ketai) on a Samsung Galaxy II the NXT ignores the command.
Can anybody help me please?
Thanks in advance.
it is really amazing to work with Processing Android - after I gave up struggling with Eclipe
Setting up a stable two way communication to an Arduino took me only one rainy weekend using the Ketai Library.
My next project is to control a mindstorms NXT over Processing Android by additionally using image processing algorithms.
Controlling a NXT over Processing Java with a Bluetooth dongle on my PC works fine. I also can control the NXT using the direct commands of the Lego Command Protocol.
But what definitely does not work is sending these direct comands via Processing Android. A work around would be to use the NXTcomm library for Processing. But this library does not cooperate with the Ketai library (am I right?).
Maybe the NXTcom library works together with the "serialbt" library. But with the latter library I do not manage even to talk with an Arduino BT shield.
Has anybody managed so far to communicate with an NXT using Processing Android?
I managed to establish a Bluetooth connection to the NXT using the Ketai library, but I definitely do not manage to send data bytewise to the NXT over this connection...
Is there anything special I have to look at if I want to send a direct command via Bluetooth to a NXT?
(A simple command to let the NXT beep for example is: 0x06 0x00 0x80 0x03 0x0B 0x02 0xF4 0x01 ). If I send these 8 bytes via the terminal software RealTerm to the serial port of my BT dongle the NXT recognizes the command.
If I send these 8 bytes via Processing Android (using Ketai) on a Samsung Galaxy II the NXT ignores the command.
Can anybody help me please?
Thanks in advance.
2