Results 1 to 3 of 3

Thread: How connect to a Bluetooth phone?

Hybrid View

  1. #1

    Thread Starter
    Addicted Member sergeos's Avatar
    Join Date
    Apr 2009
    Location
    Belarus
    Posts
    162

    How connect to a Bluetooth phone?

    Hello!
    System has a device called a "standard modem connection for Bluetooth" (that is my phone paired to pc via bluetooth).
    This modem is hanging on port COM4. But when i try to connect to him (MScomm1.CommPort = 4) does not lead to success.
    I'm enumerate all the ports, but everywhere there is no connection.
    But in HyperTerminal if i select "Standard modem connection on Bluetooth", then everything is fine, comes RING event...
    How HyperTerminal determines which port is sitting on a "standard modem connection Bluetooth"?

    One person suggested enumerate all devices such as modem using SetapApi and read property AttachTo allegedly HyperTerminal uses the property that is to be connected.

    How can i connect to a Bluetooth device directly from vb code?

  2. #2
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    739

    Re: How connect to a Bluetooth phone?

    I assume you are also opening the port. Just setting the port number does not open the port.


    MSComm1.Commport = 4
    MSComm1.Portopen= true

  3. #3

    Thread Starter
    Addicted Member sergeos's Avatar
    Join Date
    Apr 2009
    Location
    Belarus
    Posts
    162

    Re: How connect to a Bluetooth phone?

    Quote Originally Posted by IanS View Post
    I assume you are also opening the port. Just setting the port number does not open the port.


    MSComm1.Commport = 4
    MSComm1.Portopen= true
    This method is not suitable. It is necessary to connect to the modem through its "friendly name". I think via SerialPortServiceClass_UUID.
    SerialPortServiceClass_UUID = "{00001101-0000-1000-8000-00805F9B34FB}"
    MsComm clearly inappropriate.
    Last edited by sergeos; May 14th, 2013 at 06:01 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width