Shop OBEX P1 Docs P2 Docs Learn Events
Need help to test Easy Bluetooth Module — Parallax Forums

Need help to test Easy Bluetooth Module

XavierXavier Posts: 26
edited 2013-06-01 11:28 in Accessories
Hi,

I have the Easy Bluetooth Module and Basic Stamp2Pe :

http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/bluetooth/List/0/SortField/4/ProductID/550/Default.aspx

I
only have one of these and I wanted to test it to send/recive data to/from another Bluetooth Device like a Mobile Phone(Android). (and I don´t have a notebook so I use the computer)

Please does anyone have an idea and could help me, please.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2013-05-24 12:08
    The Easy Bluetooth Module (and the RN-42 Bluetooth Module) use what's called Serial Port Protocol (SPP) which makes the Bluetooth connection look like an "old-fashioned" serial port. This is a standard protocol and desktop / notebook operating systems like Linux / Windows / MacOS know what to do with it to make it look like a standard serial port to software. Android can do this as well, but you need an app (whether you download one or write it yourself) that talks to a serial port. Apple doesn't support SPP, so you can't do this with an iPhone or iPad, but you didn't ask about that. There are several Basic interpreters available for Android, some of them free. I'm sure some of them support a serial port for I/O, but I don't have any experience with them.

    Once you have the Module and your Android phone talking to each other, you can send and receive data using SEROUT and SERIN from the BS2pe since the Module provides a standard serial connection to the Stamp. Read the documentation for the Module for examples.
  • XavierXavier Posts: 26
    edited 2013-05-29 11:57
    Hi,

    Thanks Mike, well I have another problem when I connect the Basic Stamp2sx to another computer with Bluetooth and run the code example in the pdf http://www.parallax.com/Portals/0/Downloads/docs/prod/comm/30085-EasyBluetooth-v1.3.pdf
    I can't see the COM port of the Bluetooth assigned and I did all the steps right.

    Please Help, Thanks.
  • Mike GreenMike Green Posts: 23,101
    edited 2013-05-29 12:09
    Exactly what did you do to add the Easy Bluetooth Module to your PC's COM ports and what happened at each step. The Easy Bluetooth Module works and the documentation and sample program work, at least they did for me and some others. What operating system are you using? Usually the problem is with Windows where it loses new COM ports.
  • XavierXavier Posts: 26
    edited 2013-05-30 08:04
    I have Windows 7 and the steps I did was:

    control panel --> Hardware and Sound --> Add a Bluetooth Device --> Enter Code: 0000 --> then it connects to the Bluetooth and automatically it gives it a COM Port (11)

    Then when I try to run the code the Basic Stamp2 dosen't see the port COM11.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-06-01 11:28
    If you are using the code exactly as it is written then that is most likely the problem. Since you are using the BS2SX you need to change the math for the baud rates:bsxp_inline.gif BS2sx, BS2p


    Baud Rate
    8-bit

    No Parity

    INVERTED
    8-bit

    No Parity

    TRUE
    7-bit

    Even Parity

    INVERTED
    7-bit

    Even Parity

    TRUE


    1200
    18447 ($480F)
    2063 ($080F)
    26639 ($680F)
    10255 ($280F)


    2400
    17405 ($43FD)
    1021 ($03FD)
    25597 ($63FD)
    9213 ($23FD)


    4800
    16884 ($41F4)
    500 ($01F4)
    25076 ($61F4)
    8692 ($21F4)


    9600
    16624 ($40F0)
    240 ($00F0)
    24816 ($60F0)
    8432 ($20F0)

Sign In or Register to comment.