Connection with EB500
I recently picked up an EB500 bluetooth module, and also a bluetooth USB adaptar for my computer.
I went through the tutorial at http://www.parallax.com/Portals/0/Downloads/docs/prod/comm/A7-UM-eb500-SER.pdf for establishing connections and communication.
The PC and EB500 pair just fine and as far as my PC shows, they are connected. I tried using Hyperterminal as the tutorial said, and when I call, the light on the EB500 would light up and disappear when I closed the connection.
So what's the problem? The BASIC Stamp editor.
If I connect the physical USB cable from the BOE to my PC, then everything works fine. I can open a connection from my PC to the USB Bluetooth adapter using Hyperterminal, and whatever I type there I can transmit to the debug of the Stamp Editor.
However, the stamp editor can't detect my bluetooth connection, which is COM ports 3/5. When I try to identify, the Loopback and Echo column both say No. If I constantly refresh, the Loopback will SOMETIMES say Yes for my COM port 5, and if I refresh the light on the EB500 flashes, so there must be SOME kind of connection...or attempt? I've tried googling this subject, but the only solution I found was someone downgrading to BASIC Stamp Editor version 1.1, but I couldn't find that to try it.
Any help please? BTW sorry if I gave a little too much unneeded information.
Post Edited (rotary9k) : 5/26/2008 12:58:27 AM GMT
I went through the tutorial at http://www.parallax.com/Portals/0/Downloads/docs/prod/comm/A7-UM-eb500-SER.pdf for establishing connections and communication.
The PC and EB500 pair just fine and as far as my PC shows, they are connected. I tried using Hyperterminal as the tutorial said, and when I call, the light on the EB500 would light up and disappear when I closed the connection.
So what's the problem? The BASIC Stamp editor.
If I connect the physical USB cable from the BOE to my PC, then everything works fine. I can open a connection from my PC to the USB Bluetooth adapter using Hyperterminal, and whatever I type there I can transmit to the debug of the Stamp Editor.
However, the stamp editor can't detect my bluetooth connection, which is COM ports 3/5. When I try to identify, the Loopback and Echo column both say No. If I constantly refresh, the Loopback will SOMETIMES say Yes for my COM port 5, and if I refresh the light on the EB500 flashes, so there must be SOME kind of connection...or attempt? I've tried googling this subject, but the only solution I found was someone downgrading to BASIC Stamp Editor version 1.1, but I couldn't find that to try it.
Any help please? BTW sorry if I gave a little too much unneeded information.
Post Edited (rotary9k) : 5/26/2008 12:58:27 AM GMT
Comments
I have another question that maybe someone can help me answer:
I have a project which using the Sphinx4 speech recognition engine. I will implement java code into the program to send the results of the speech recognition over bluetooth, in the form of a string. For example, when "move forward" is recognized, it will send the resultText string = "move forward".
The question is, I should be able to write a BASIC code to await for this data from my java application on PC right? I am able to receive a string?
This is the guide I am trying to follow: http://developers.sun.com/mobility/midp/articles/bluetooth2/
It lists certain requirements that I am unsure if the BASICstamp2 supports. Can anyone let me know if that guide will work.
Post Edited (rotary9k) : 5/27/2008 5:41:03 AM GMT
In the article I mentioned earlier which describes Java APIS for Bluetooth, it notes that the receiving end of the client should:
1. Initiate a service discovery to retrieve the service record
2. Construct a connection URL using the service record
3. Open a connection to the server
4. Send and receive data to and from the server
Basically, I'll be blunt. I'm not exactly sure what all that means, but I want to make sure that communication between this Java API for bluetooth will be compatible with the EB500 before I research more in depth. The article gives a sample code that the receiving device should have, but the code is in Java.
I have a feeling that this is impossible...
The way it seems now, I would have to specify a distance with my move command, have the BOT finish moving that distance before it can await another input.
MSDTech was just suggesting one way to use a servo controller. Actually, the servo controllers have no idea how far the BoeBot has gone. There's no feedback unless you install some mechanism, like a wheel position encoder, to provide it. The servo controllers just start the servos moving and keep them moving until commanded otherwise.
Regarding the Bluetooth connection. The EB500 implements a standard RFCOMM connection (and there is a well-defined and detailed standard for this) that provides a single bidirectional serial port. If your Java library properly implements the standard (which it probably does), the EB500 should be happy with it.
Post Edited (Mike Green) : 5/28/2008 3:30:46 PM GMT
i have a question somewhat related to this thread....
it is about the connection and disconnection of the·bluetooth·device.
i'm using a remote eb500 module and the debug window·of the BS editor to play around with the bluetooth connection.
so far, what i can see is that everytime i initiate a "disconnect" and "connect" command from·the remote·eb500, i have to manually refresh the debug window's com port setting before i can re-establish the bluetooth connection....
i find this rather troublesome...
i'd like to know if there is any way i can do a disconnect and connect without having to·constantly refresh the·com port setting?·