For those who want to use the Bluetooth connection : There is a bug in comm.h. The timeout is set to 1 which is far too low. It never worked for me. I changed the timeout to 45 and now it works fine. To do this change the '1' on line 70 in comm.h to '45'.
Note : other timeouts may work too (the author suggests 15)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know why yours has to have a longer timeout. If I change mine, it takes forever to connect. Mine connects fastest with the timeout set as one. Nobody has ever had trouble with this before. Does it take a long time for your NXT to connect with the timeout set to 45?
-Cory Walker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It takes approx. 30 seconds to open the Bluetooth connection. I tried swithcing back to '1' and then I cannot connect. use '45' again and - bingo - I can connect. If you know what I need to do to make the connection faster, let me know.
Note : the reason I used 45 as timeout is because this was also used by 'FantomTalk', a demo program for the fantom library.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For those who want to use the Bluetooth connection : There is a bug in comm.h. The timeout is set to 1 which is far too low. It never worked for me. I changed the timeout to 45 and now it works fine. To do this change the '1' on line 70 in comm.h to '45'.
Note : other timeouts may work too (the author suggests 15)
I don't know why yours has to have a longer timeout. If I change mine, it takes forever to connect. Mine connects fastest with the timeout set as one. Nobody has ever had trouble with this before. Does it take a long time for your NXT to connect with the timeout set to 45?
-Cory Walker
It takes approx. 30 seconds to open the Bluetooth connection. I tried swithcing back to '1' and then I cannot connect. use '45' again and - bingo - I can connect. If you know what I need to do to make the connection faster, let me know.
Note : the reason I used 45 as timeout is because this was also used by 'FantomTalk', a demo program for the fantom library.