Commincation between PC(with DBT-120) and BOE(with eb500) EmbeddedBlue
Archiver
Posts: 46,084
Hi,
Pls help. My aim is to let the BOE (with eb500) roaming
around. Whenever it encountered some obstacles, it will
communicate back to my PC (with DBT-120) and ask for actions. I
will then enter (i.e. turn left, right, backward) to go around the
obstacle and the BOE will continue to roam in the room.
I have followed the steps to establish a communication
between PC(with DBT-120) and BOE(with eb500) EmbeddedBlue using
serial cable. I am able to do so. However, as soon as I plugged
out the serial cable, I am not able to maintain the communication.
Pls help. Thanks.
Ho
Pls help. My aim is to let the BOE (with eb500) roaming
around. Whenever it encountered some obstacles, it will
communicate back to my PC (with DBT-120) and ask for actions. I
will then enter (i.e. turn left, right, backward) to go around the
obstacle and the BOE will continue to roam in the room.
I have followed the steps to establish a communication
between PC(with DBT-120) and BOE(with eb500) EmbeddedBlue using
serial cable. I am able to do so. However, as soon as I plugged
out the serial cable, I am not able to maintain the communication.
Pls help. Thanks.
Ho
Comments
>> My aim is to let the BOE (with eb500)
>> roaming around. Whenever it encountered
>> some obstacles, it will communicate back
>> to my PC (with DBT-120) and ask for
>> actions. I will then enter (i.e. turn
>> left, right, backward) to go around the
>> obstacle and the BOE will continue to
>> roam in the room.
This sounds like a fun application. I have done something similar to
this and it worked great. Actually the MonkeyDo BOE-Bot application
on page 40 of the eb500 manual may be a good starting point for you.
If you load it onto your BOE-Bot and then connect to it from a PC
with HyperTerminal, you have a simple remote control setup.
>> I have followed the steps to establish
>> a communication between PC(with DBT-120)
>> and BOE(with eb500) EmbeddedBlue using
>> serial cable. I am able to do so.
I assume that this means that you followed steps 1 through 5
starting on page 24 of the eb500 User Manual. Is that correct? If so
were all five steps successful?
>> However, as soon as I plugged out the
>> serial cable, I am not able to maintain
>> the communication.
I am not sure what you mean by this exactly. Did you remove the
stamp programming cable or are you saying that you disconnected the
virtual Bluetooth serial port connection using the windows
interface? If you established the connection from the PC side and
close HyperTerminal the connection will be closed because the PC
software assumes that you are done with the port.
Talk to you soon,
Bryan Hall
A7 Engineering
www.a7eng.com
Thanks for replying.
1 I have followed the steps 1 through 5 starting on page 24 of
the eb500 User Manual and they all function well as stated in the
manual. While maintaining the connection, I remove the serial
cable. It does not work thereafter.
2 I have look through your previous dialogue wrt using MonkeyDo
application. I have downloaded to the BOE. However, while issuing
commands to the BOE using PC, the BOE does not perform what was
required i.e. not performing anything at all.
Ho
--- In basicstamps@yahoogroups.com, "Bryan Hall" <bryan@f...> wrote:
> Hello Ho,
>
> >> My aim is to let the BOE (with eb500)
> >> roaming around. Whenever it encountered
> >> some obstacles, it will communicate back
> >> to my PC (with DBT-120) and ask for
> >> actions. I will then enter (i.e. turn
> >> left, right, backward) to go around the
> >> obstacle and the BOE will continue to
> >> roam in the room.
>
> This sounds like a fun application. I have done something similar
to
> this and it worked great. Actually the MonkeyDo BOE-Bot
application
> on page 40 of the eb500 manual may be a good starting point for
you.
> If you load it onto your BOE-Bot and then connect to it from a PC
> with HyperTerminal, you have a simple remote control setup.
>
> >> I have followed the steps to establish
> >> a communication between PC(with DBT-120)
> >> and BOE(with eb500) EmbeddedBlue using
> >> serial cable. I am able to do so.
>
> I assume that this means that you followed steps 1 through 5
> starting on page 24 of the eb500 User Manual. Is that correct? If
so
> were all five steps successful?
>
> >> However, as soon as I plugged out the
> >> serial cable, I am not able to maintain
> >> the communication.
>
> I am not sure what you mean by this exactly. Did you remove the
> stamp programming cable or are you saying that you disconnected
the
> virtual Bluetooth serial port connection using the windows
> interface? If you established the connection from the PC side and
> close HyperTerminal the connection will be closed because the PC
> software assumes that you are done with the port.
>
> Talk to you soon,
>
> Bryan Hall
> A7 Engineering
> www.a7eng.com
>> I have followed the steps 1 through 5 starting
>> on page 24 of the eb500 User Manual and they
>> all function well as stated in the manual. I
>> remove the serial cable. It does not work
>> thereafter.
I still am not clear on what you mean by this. Are you saying that
you are removing the physical serial cable between your computer and
the BOE? This link is only used to download the application to the
Stamp and has nothing to do with the Bluetooth connection.
>> I have look through your previous dialogue wrt
>> using MonkeyDo application. I have downloaded
>> to the BOE. However, while issuing commands
>> to the BOE using PC, the BOE does not perform
>> what was required i.e. not performing anything
>> at all.
Were you able to establish a Bluetooth connection between the PC and
the BOE? The LED on the eb500 will light up to indicate that the
device is currently connected. Also make sure that you were using a
HyperTerminal session for the correct COM port on the PC. There is a
great description of this in the eb500 manual.
Talk to you soon,
Bryan Hall
A7 Engineering
www.a7eng.com
While maintaining positive bluetooth comms, I remove the physical
serial cable between your computer (with DBT-120)and the BOE (with
eb500). The LED on the eb500 lighted up throughout the seesion.
Unable to manitain communicate between pc and BOE using
HyperTerminal. The BOE does not seem to be able to receive any
characters from PC. I am using COM 3 for Tx and COM 4 for Rx on my
PC.
Pls help. Thanks.
Ho
>> While maintaining positive bluetooth comms,
>> I remove the physical serial cable between
>> your computer (with DBT-120)and the BOE
>> (with eb500). The LED on the eb500 lighted
>> up throughout the seesion.
It really sounds like the HyperTerminal transmission was using the
serial cable rather than the Bluetooth line. Can you check and see
what ports Bluetooth is configured to use on your PC? To do that
just follow these steps:
1. Right click on the Bluetooth icon in your system tray and select
Advanced Configuration.
2. Click on the Client Applications tab and look at the Bluetooth
Serial Port entry. On my machine this is COM9. What is it on your
machine? If you are connecting from your PC to the eb500, this is
the COM port number that HyperTerminal should use.
3. Click on the Local Services tab and look at the Bluetooth Serial
Port entry. On my machine this is COM8. What is it on your machine?
If you are connecting from the eb500 to your PC, this is the COM
port number that HyperTerminal should use.
>> I am using COM 3 for Tx and COM 4 for Rx
>> on my PC.
This is definitely not correct. You should be using the same COM
port for both transmit and receive. The ports on the desktop can be
a bit confusing, but the general idea is that you use one COM port
when connecting from the PC and a different COM port when connecting
to the PC. The numbers from step two and three above will tell you
which ports to use.
Talk to you soon,
Bryan Hall
A7 Engineering
http://www.a7eng.com
> 1. Right click on the Bluetooth icon in your system tray and
select Advanced Configuration.
> 2. Click on the Client Applications tab and look at the Bluetooth
> Serial Port entry. On my machine this is COM9. What is it on your
> machine? If you are connecting from your PC to the eb500, this is
> the COM port number that HyperTerminal should use.
My PC uses COM3
> 3. Click on the Local Services tab and look at the Bluetooth
Serial Port entry. On my machine this is COM8. What is it on your
machine?
Mine is reflected as COM4
> If you are connecting from the eb500 to your PC, this is the COM
> port number that HyperTerminal should use.
Pls help. Thks.
Ho
From the information that you provided, you should probably be using
COM port 3 for communications to the eb500 when connecting from your
PC. So you would follow these steps.
1. Plug the eb500 into your BOE and turn it on.
2. Open HyperTerminal on COM 3. At this point you should see the
light on the eb500 go on because opening the port causes the PC to
connect over Bluetooth when configured properly. Does this work for
you?
If the light is on you now have a Bluetooth connection between your
PC and the eb500. All of the data that you type in HyperTerminal
will be sent to the BOE Bot.
You have described connection problems that occur when you
disconnect your physical serial cable from your BOE Bot. First let's
verify that the Bluetooth connection is not related to the cable.
3. Make sure that you can establish the connection the same way
described above with the physical serial cable not connected to your
BOE Bot. Does this work for you?
Now you have a Bluetooth connection that is in no way reliant upon
the physical serial cable that you have been using. You have
HyperTerminal open on this connection (COM3) and it will allow you
to send and receive data over the Bluetooth connection. You do not
need two instances of HyperTerminal, both transmit and receive occur
through one instance of HyperTerminal on COM port 3.
Now you need a way to verify that data is being sent from your PC to
your BOE Bot and that data can be sent from your BOE Bot to your PC.
Load the following code onto your BOE Bot. My assumption here is
that you have a BS2 module in the BOE Bot.
'{$STAMP BS2}
'I/O Line 5 provides the connection status
INPUT 5
'Wait for the eb500 radio to be ready
PAUSE 1000
WaitForConnection:
IF IN5 = 0 THEN WaitForConnection
ReadLoop:
SERIN 0,84,[noparse][[/noparse]WAIT("1")]
SEROUT 1,84,[noparse][[/noparse]CR,"I received the number one!",CR]
GOTO ReadLoop
This code just simply watches for the number one being sent from the
PC and responds with the text "I received the number one!". To Test
it, do the following.
1. Connect the BOE Bot to your PC and download the program.
2. Remove the serial cable from your BOE Bot and power it down by
removing the power plug. Hitting reset is not good enough.
3. Power the Boe Bot back up by reinserting the power plug.
4. Connect Bluetooth from the PC by opening HyperTerminal on COM
port 3. The eb500 LED should come on.
5. Type the number 1 in HyperTerminal. You should see the text "I
received number one!" returned from your BOE Bot.
Talk to you soon,
Bryan Hall
A7 Engineering
http://www.a7eng.com