| | RE: Bluetooth Comm Problem
|
| | (...) A visual review looks like everything is appropriate. The only thing I can think of is whether, on the NXT, you are calling "ReadMessage" more than once. You should have a loop that runs for at least 50 (or better yet 150) milliseconds. (...) (18 years ago, 13-Feb-07, to lugnet.robotics.nxt)
|
| | |
| | | | Re: Bluetooth Comm Problem David Wallace
|
| | | | (...) I was a little confused about how I was supposed to determine when the message had been received. I wasn't sure whether the ReceiveMessage should be called multiple times or not. Here is my code: // Connection = 1, Queue = 0 (...) (18 years ago, 13-Feb-07, to lugnet.robotics.nxt)
|
| | | | |
| | | | | | RE: Bluetooth Comm Problem
|
| | | | The NXT-G firmware implementation for mailbox messaging is extremely funky. I don't think your code is working properly for this implementation. You need to be continuously calling "ReadMessage" and only check for "a message was found" error code. (...) (18 years ago, 14-Feb-07, to lugnet.robotics.nxt)
|
| | | | |
| | | | | | Re: Bluetooth Comm Problem David Wallace
|
| | | | | Dick, Thanks for the research and all of the valuable information! It's Valentine's Day, so my wife won't allow me the time to try it tonight, but I'll try your suggestions tomorrow and see how it works. By the way, I actually saw a response come (...) (18 years ago, 15-Feb-07, to lugnet.robotics.nxt)
|
| | | | | |
| | | | | | Re: Bluetooth Comm Problem David Wallace
|
| | | | Dick, Thanks! I tried it out tonight and got consistent messages from the PC. You were correct about having to continually do message reads until I get something. I didn't have to do the wait for a second STAT_COMM_PENDING (32) or the 200 ms wait. I (...) (18 years ago, 16-Feb-07, to lugnet.robotics.nxt)
|
| | | | |
| | | | | | Re: Bluetooth Comm Problem Ralph Hempel
|
| | | | (...) Dick and David, Thanks for posting this conversation here. Even though I'm not participating directly, I am reading it and as I'm touching up the Bluetooth support for pbLua right now, this has given me invaluable insight into how the (...) (18 years ago, 16-Feb-07, to lugnet.robotics.nxt)
|
| | | | |
| | | | | | Re: Bluetooth Comm Problem David Wallace
|
| | | | Glad we could help Ralph. And I'm sure there will be many great discussions in here as there already have been. (18 years ago, 17-Feb-07, to lugnet.robotics.nxt)
|
| | | | |