by i-Bot » Fri Dec 22, 2006 3:14 pm
by i-Bot
Fri Dec 22, 2006 3:14 pm
I did replace the serial cable with bluetooth earlier this year. There were problems and the result was not good.
For the physical interface I added a couple of N MOSFETS to invert the Tx and RX signals to the jack socket and used the Sparkfun board.
Since the download changes the speed from the normal 9600 to 115K, then I built a new C3024 code image that keeps the speed at 115K all the time. It does not matter that the PC changes speed, so long as the remote bluetooth stays at 115K. I used a USB bluetooth stick in the PC.
Two problems, first the setup seems erratic to start up, I think this is maybe due to the initial string sent by the blue tooth module.
More important is was very very slow. Serial protocol PC to C3024 is a char by char protocol, waiting at each end for char received before sending, This did not appear to work well with the bluetooth setup.
Since I wanted to retain the Roboasic, then I could not change the protocol. Change to the protocol is not simple, due to the way the C3024 code spends long periods (mS) in the interrupt routines.
I played around with the bluetooth configuration, but did not resolve these two problems. I finally configured the Sparkfun, so I couldn't configure it any more ! I anyone wants to try further, then I will post the 115K code.
I did replace the serial cable with bluetooth earlier this year. There were problems and the result was not good.
For the physical interface I added a couple of N MOSFETS to invert the Tx and RX signals to the jack socket and used the Sparkfun board.
Since the download changes the speed from the normal 9600 to 115K, then I built a new C3024 code image that keeps the speed at 115K all the time. It does not matter that the PC changes speed, so long as the remote bluetooth stays at 115K. I used a USB bluetooth stick in the PC.
Two problems, first the setup seems erratic to start up, I think this is maybe due to the initial string sent by the blue tooth module.
More important is was very very slow. Serial protocol PC to C3024 is a char by char protocol, waiting at each end for char received before sending, This did not appear to work well with the bluetooth setup.
Since I wanted to retain the Roboasic, then I could not change the protocol. Change to the protocol is not simple, due to the way the C3024 code spends long periods (mS) in the interrupt routines.
I played around with the bluetooth configuration, but did not resolve these two problems. I finally configured the Sparkfun, so I couldn't configure it any more ! I anyone wants to try further, then I will post the 115K code.