Shop OBEX P1 Docs P2 Docs Learn Events
Easy Bluetooth RBT-001 problems — Parallax Forums

Easy Bluetooth RBT-001 problems

cjluteracjlutera Posts: 2
edited 2009-12-04 19:41 in General Discussion
I have been trying to connect to the RBT-001 board for a few days and I can't seem to get a confirmation message back from the chip. I am using a HCS12 microcontroller and am trying to communicate at 9600 baud. We try sending multiple commands but we never get any confirmation back. So far, this is one command we sent in c. We sent out this...

0x02,0x52,0x00,0x03,0x00,0x55,0x03,0x00,0x00,0x00

This special packet format is supposed to search for discoverable bluetooth devices and respond back.

Is there anything specific we need to know to solve this problem? Is there a first command or connection that needs to be satisfied?

Thanks in advance.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-11-24 02:05
    I would bet that there's something wrong with the connection between the microcontroller and the RBT-001. If you haven't done so yet, get an oscilloscope and look at the data going back and forth. You may have the polarity of the serial signal backwards or the timing may not be correct.
  • cjluteracjlutera Posts: 2
    edited 2009-12-03 23:39
    We made some progress and am able to connect to the module. We had to set the event filter to get a response back from the uc. Now we have acquired the bluetooth mac address to the wii remote that we are trying to connect to. We are trying to send it multiple commands to get a connection but it doesn't connect. thanks for any help in advance.
  • Justin StevensJustin Stevens Posts: 3
    edited 2009-12-04 06:28
    I'm having a somewhat related problem. I've also been unable to read the CFM packets that should be returned after each command. I'm using a BoE Bot with SEROUT commands to control the RBT-001 in command mode (and I know that it's receiving them because I can get it to make connections and send data to a single other module) but I can't even get one byte in using the SERIN command. It looks something like:

    DEBUG CLS, "Starting", CR
    PAUSE 5000
    SEROUT TX, Baud, [noparse][[/noparse] $02, $52, $05, $00, $00, $57, $03 ] ' GAP_READ_LOCAL_BDA request
    DEBUG "Sent"
    SERIN RX, Baud, [noparse][[/noparse] STR inString \14 ] ' Read in CFM Packet length 14

    I don't see why that shouldn't work. Any thoughts?

    My ultimate goal is to connect multiple Easy Bluetooth modules in a Piconet, but have been unable to get more than one connection at a time. Has anyone else tried anything like this?
  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-04 06:32
    Be careful about inserting DEBUG statements. These take time to execute. If the RBT-001 responds immediately, you'll miss some of the response while the DEBUG statement is transmitting to the PC.
  • Justin StevensJustin Stevens Posts: 3
    edited 2009-12-04 19:41
    The event filter seemed to do it. I also cut the DEBUG statement and I'm reading CFM packets beautifully now. Thanks! Now I just have to figure out how to make a Piconet shocked.gif
Sign In or Register to comment.