Bluetooth for ignorami
Hi, I'm trying to understand how to implement communication between multiple boe-bots using a bluetooth eb500, and I'm clueless about where to start. (This is indeed a school project, so I'm just looking for understanding of the basic software, not to copy and paste someone else's code).· Although my computer doesn't have a bluetooth chip, I've tried connecting with a serial cable as directed in the manual I found at parallax (http://www.parallax.com/dl/docs/prod/comm/eb500UserManual.pdf) and I've downloaded Hyperterminal and tried that as well, but nothing comes up, and I've also tried several of the pbasic codes offered in the manual with the same result.
Is it even possible to program an eb500·using PBasic like you would an RF transmitter/reciever pair, or do I have to download other PC software as well? And is there a significant difference between an eb500-Ser and an eb500 A? (I have the A).
Any help at all would be much appreciated!
-Khiya
Is it even possible to program an eb500·using PBasic like you would an RF transmitter/reciever pair, or do I have to download other PC software as well? And is there a significant difference between an eb500-Ser and an eb500 A? (I have the A).
Any help at all would be much appreciated!
-Khiya
Comments
The EB500 can furnish a bidirectional serial link between two devices (at a time) that, except for timing, looks like a wired connection. You can connect two BoeBots or one BoeBot and a PC and an EB500 can set up pair-wise connections among lots of Bluetooth serial links (two at a time).
A7 is the developer/designer of the EB500. I think the EB500-SER and the EB500 are the same thing. I'm not aware of any difference except the name.
'{$STAMP BS2sx}
szData VAR BYTE(20)
'Wait for the eb500 radio to be ready
PAUSE 1000
'Get the eb500 Bluetooth Address
SEROUT 1,252,[noparse][[/noparse]"get address",CR]
SERIN 0,252,[noparse][[/noparse]WAIT(“ACK”,CR)]
'Read the local address from the get command
SERIN 0,252,[noparse][[/noparse]STR szData\17]
SERIN 0,252,[noparse]/noparse]WAIT(CR,”>”[noparse];)[/noparse
szData(17) = 0
DEBUG “Local eb500 address: “,STR szData\17,CR
although I had to change the numbers a bit to make it apply to a BS2SX (the 252s were 84s). Debugging showed that the SEROUT command happens, but apparently the first SERIN never picks up any signal. I also tried it with the 252s changed to 240s, but I didn't see any change. I've run it several times with several different eb500s, and I've doublechecked my wiring, so I was hoping someone could tell me if I'm overlooking something terribly obvious that I just don't know about bluetooth connections.
I also went ahead and tried establishing a PC-BoeBot connection using an eb600 and a serial cable, and I downloaded Hyperterminal as the manual says to. I followed all the connection steps on pages 7-9, but at step 22 on page 9, pressing enter did not make a carat appear in the hyperterminal window. I'm not very interested in a PC-BoeBot connection if I don't have to be. Does anyone know of another website that explains connecting to BOE-Bots with bluetooth?
Thanks
-Khiya
SERIN 0,252,[noparse][[/noparse]WAIT("ACK",CR)]
does exactly? What does the "ACK" mean?