Comm32 Logo
Home Button  Buy Button 

Topic:   Foxpro Bluetooth connection

By: GuestPosted on: Sep 11 2015 at 12:29:33 PM
Hello,

searching for an MSCOMM32 replace i found scomm32. But I could not reproduce the promise to catch a non existing bluetooth connection. One of the com-ports (there are two for any bluetooth connection) can be opend even if the bluetooth target is switched off. The first try to write to this port let the program hang. No more access at all. The program has to be killed. The txtimeout would be great, by it seems not to exist anymore.
Is there anything I can do to ensure the bluetooth connection is established?

Frank

By: GuestPosted on: Sep 13 2015 at 10:19:19 PM
TxTimeout would not help with opening of the com port.

I don't think that scomm can do anything about it. The problem is that Windows 'spoofs' the remote port so it appears to exist all the time even when it's moving in and out of range.

So, windows appears to show that the remote device exists even when it doesn't.

When making a connection to a remote device Windows locks the calling thread for a very long time. It doesn't hang forever. But the network connection timeout in windows is very long.

By: FrankPosted on: Sep 14 2015 at 10:50:27 AM
Hello Guest,

thank you for your reply. But the problem is not opening the port. That gives a correct "false" on the outgoing com port if the bluetooth device is out of range within some seconds. But it gives always "true" on the incoming com port and I'm not able to distinguish between them within the calling process without using the OS Bluetooth Settings.
Now, searching for a connected device and accidentally writing to an open incoming port makes the calling process hang. (MSCOMM32.ocx doesn't)
Even the little scomm32 window showing 'Scomm8 free DEMO' hangs until killing the calling process.

Frank

By: MJPosted on: Sep 14 2015 at 07:19:01 PM
I haven't tried bluetoothe yet but i wonder. Apart from the problem being discussed in this thread, does scomm32 actually work if the BT devices are powered on and within range?
Thanks MarkusJ

By: FrankPosted on: Sep 15 2015 at 06:29:22 AM
The BT adapter installs two serial ports: Incoming and outgoing
You find a good manual here:
efihacks dot com/using-bluetooth-experiences-part-1/

You can use them like any other com port using scomm32. Mscomm32 did this job as well till windows 8.1. Beginning with windows 10 mscomm32 isn't longer supported.
Frank

Reply - add a comment to this topic.

You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected.

Topic:- Foxpro Bluetooth connection


Enter the numbers.

Your name here is optional