![]() Then, you do know that various manufacturers provide Bluetooth software stacks for Win32: MSFT, Widcomm/Broadcom, BlueSoleil, Toshiba. (Or one can do a native call to Win32 function Presumably that component provides a simple function to get it. To get the remote device's name is straightfoward via the Bluetooth APIs too. Secondly presumably the programming model for sockets is quite simple - as simple if not simpler that for the COM port IO programming. So, on the first point there are apparently various ways to use Bluetooth sockets from Delphi, from a component from how can I determine, from knowing the name, what incoming and outgoing ports are assigned to it? Is there an API which will list the ports? Can it be determined from a registry key? (I haven't found ![]() For example, our device uses a name like 'DF2D-A34F'. I am assuming that somewhere, there is an API which would permit us to determine what ports are assigned to what devices, by What I am looking for is a way to determine, programmatically, what incoming port was assigned as a result of the pairing process. sometimes, the two port numbers are not sequential ![]() In testing, we find that COM port 8 is actually the incoming port. When pairing with Windows 7, we see that COM port 7 is assigned. although we know, from experience, that this isn't always the case. Normally, Windows XP assigns the outgoing port first, and then assigns the next ordinal port number to the incoming port. Is actually the outgoing port, not the incoming port. ![]() we can get it to work, but the process reports back only one virtual COM port number, which we have discovered empirically However, in testing with Windows 7, we have discovered that the Bluetooth pairing utility is now different from the one used in XP. Our product uses the 'incoming' COM port, since it autonomously initiates a commuincation. In Windows XP (as well as Vista), the 'Bluetooth Devices' dialog box shows, after pairing, the COM port assignments for both 'incoming' and 'outgoing'ĬOM ports. My company has developed a Bluetooth product that uses the serial port profile via a virtual COM port. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |