Im fooling around with some nxt->pc communication in order to get a grip on the concepts. My goal is to use bluetooth to send some sensor readings and such back to a pc for a high level action planning. I can see that the current implementation sends each byte in a seperate BT packet, which gives me some concern for what kind of execution time you will se when you try to send a "large" byte array. I havnt gotten around to test on this yet, but do any of you have experience in this regard?
I did instead play a bit with sending up to 254 bytes packets by bypassing the outputstreams, which seems to work fine. The problem arrises when I want to receive it on the pc, with NXTCommBluecove performing this check:
- Code: Select all
if (lsb != 1 || msb != 0) throw new IOException("Packet more than 1 byte");
Is there any reason that this limit is here? Is it because of umimplemented code, or are there some hardware/protocol limit to force this? And lastly, have anyone had success with sending larger packets from the nxt, and how did you accomplish that?
Thanks in advance

