Visual C++ & Bluetooth Serial Comm

Discussion in 'C++' started by rich.poum@gmail.com, Mar 4, 2009.

  1. Guest

    I have a bluetooth device sending ASCII at 9600 baud. From my PC
    device manager my "Bluetooth Communication Port" is (COM5). The
    bluetooth device wizard created the "Serial over Bluetooth link" for
    outgoing and incoming as COM14 and COM15 respective. Using hypterminal
    and using COM14 (I'm surprised I don't even need to set the baud rate
    and handingshaking for this port), I'm able to receive the data from
    bluetooth device fine. In the code of my MFC program I can't open
    neither COM14 nor COM15. I can only open COM5 which doesn't appear to
    be receiving the data. Why is this? What is the difference b/w
    "Bluetooth Communication Port" and "Serial over Bluetooth link" in the
    Device manager? Thanks in advance.
    , Mar 4, 2009
    #1
    1. Advertising

  2. wrote:
    > I have a bluetooth device sending ASCII at 9600 baud. From my PC
    > device manager my "Bluetooth Communication Port" is (COM5). The
    > bluetooth device wizard created the "Serial over Bluetooth link" for
    > outgoing and incoming as COM14 and COM15 respective. Using hypterminal
    > and using COM14 (I'm surprised I don't even need to set the baud rate
    > and handingshaking for this port), I'm able to receive the data from
    > bluetooth device fine. In the code of my MFC program I can't open
    > neither COM14 nor COM15. I can only open COM5 which doesn't appear to
    > be receiving the data. Why is this? What is the difference b/w
    > "Bluetooth Communication Port" and "Serial over Bluetooth link" in the
    > Device manager?


    This is a C++ only group and your question is OT here. You should try a
    group specific to your OS: comp.os.ms-windows.*

    Concerning your problem, a guess is that Windows doesn't handle COM port
    with 2 digits in the name.
    You should try the syntax \\.\COMXX or in C++: "\\\\.\\COM14" :).

    --
    Michael
    Michael DOUBEZ, Mar 4, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Greg Pedder
    Replies:
    0
    Views:
    600
    Greg Pedder
    Feb 8, 2004
  2. Andreas

    writing to serial port (COMM)

    Andreas, May 17, 2004, in forum: Java
    Replies:
    6
    Views:
    7,058
    blackmonk
    Nov 16, 2010
  3. Eta
    Replies:
    11
    Views:
    15,754
    peterlss
    Sep 2, 2006
  4. yakka
    Replies:
    3
    Views:
    8,366
    jc9121
    Aug 17, 2006
  5. Sundar

    sync/async serial comm..

    Sundar, Nov 21, 2006, in forum: C Programming
    Replies:
    3
    Views:
    492
    osmium
    Nov 21, 2006
Loading...

Share This Page