Upon further testing, it only shows the characters when my serial cable is plugged in. As soon as I disconnect it, the characters no longer show up in the blue terminal. However, I do not get a disconnected Bluetooth error, and the device still shows connected.
Which COM port is the Bluetooth using? It sounds like you have echo turned on, and selected the wrong COM port to use the Bluetooth. On that, which COM port is the BS2sx using?
They are both using COM 40. I ran the code you sent and everything works fine, but it still continues to lose the connection when trying to run the Remote Control program.
Four 1.5V rechargable batteries really only supply about 4.8V. NiMH and NiCd batteries are rated at 1.2V, maybe 1.25V if freshly charged. That's why you need to use 5 of them to get 6V or 6 of them to get 7.2V. It's always helpful to check the supply voltage if you're getting funny results, especially if this is when the servos are running.
I think the communication is being interrupted by the selection of the COM port from editor and Remote Control program.
The COM for the Bluetooth module should be different than to program the·BS2sx controller. The COM for the Bluetooth uses PIN 0 and 2 on the BS2sx (COMX), whereas the BS2sx uses the Sin and Sout pins (COMY). Can you verify the COM port with the "Bluetooth Devices" option in the control panel.
Bluetooth is on Com 40. My Serial port for the BS2sx is on Com 1. When I run the below program and select Com 40 with the serial port for the BS2sx disconnected, I am able to transmit and receive data.
Excellent; well now we can determine that communicating with the BS2sx will not cause the Easy Bluetooth to disconnect. Let me run some tests and I will see if I can come up with a solution.
I am not 100% certain, but I may have figured it out. I just purchased four brand new 1.5V rechargeable batteries and they are charging now. I should know in the next few hours if that is the problem. My old batteries seem to lose a good portion of the charge shortly after installing them. I am only getting 5.7V with nothing powered on.
After installing brand new fully charged batteries I am still losing connection shortly after pressing any of the arrows in the Remote Control program. It will go for about 4 seconds and then seems to lose connection and the LED is constantly blinking.
Well it was worth a shot; low power can be an interesting variable.· I am in contact with the designer of the GUI software, but I have not heard back as of yet. We are not on the same time schedule, so I will come back and post as soon as I can conclude the tests; which I'm guessing is going to be Monday or Tuesday·as his business day has already ended.
Testing I have done [noparse][[/noparse] w/ Bluetooth DLink DBT-120 Module ]:
Successfully ran Easy Bluetooth Configuration to establish connection
Successfully ran Get Char program on BS2sx
Successfully ran Remote Control program on BS2sx
Comments
Which COM port is the Bluetooth using? It sounds like you have echo turned on, and selected the wrong COM port to use the Bluetooth. On that, which COM port is the BS2sx using?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
I think the communication is being interrupted by the selection of the COM port from editor and Remote Control program.
The COM for the Bluetooth module should be different than to program the·BS2sx controller. The COM for the Bluetooth uses PIN 0 and 2 on the BS2sx (COMX), whereas the BS2sx uses the Sin and Sout pins (COMY). Can you verify the COM port with the "Bluetooth Devices" option in the control panel.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
http://forums.parallax.com/attachment.php?attachmentid=64600
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
Testing I have done [noparse][[/noparse] w/ Bluetooth DLink DBT-120 Module ]:
Successfully ran Easy Bluetooth Configuration to establish connection
Successfully ran Get Char program on BS2sx
Successfully ran Remote Control program on BS2sx
Which Bluetooth module are you using?
Thanks again for your patience.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
Post Edited (Joshua Donelson (Parallax)) : 10/23/2009 10:46:59 PM GMT
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com