Wmi Bluetooth Serial Port

Wmi Bluetooth Serial Port Rating: 3,7/5 2125 reviews
P: n/a
Hello Jochen,
your soultion is not suitable for me because i cannot get information, if
the serial port was a native serial port, a USB serial port adapter or a
bluetooth serial port adapter for example. I need specially this
information.
Bye
Frank
'Jochen Albert' <me************@gmx.de> schrieb im Newsbeitrag
news:dt**********@news.cognex.com..
Frank wrote:
Hello,
how to get information about all serial ports in the PC?
I use the following code, but i got only the data of the FIRST serialport. All other serial port information are not available with this codesample:
ManagementObjectSearcher searcher = new ManagementObjectSearcher('Select* from WIN32_SerialPort');
foreach(ManagementObject Port in searcher.Get()) {
string a = (string) Port.GetPropertyValue('Name');
}
Does anybody knows how to get informations about ALL serial ports?
Thanks
Frank

Sorry, i don't know how to do this over WMI.
You could use CreateFile('COM1', ..) (from kernel32.dll) to try each
possible port (if the returned file handle is -1 the port isn't there.)

Mar 12, 2013  I whipped up a quick script to check for the device and then change its COM port. It worked great, but as is the case with many first iterations of scripts, there was a but. Even though a new COM port was getting assigned, we found is that the previous COM port was remaining marked as used in the ComDB. Problem: Unknown virtual com port number after pairing bluetooth device Description I have bluetooth devices that use the serialport service. I've figured out how to discover, pair, and start the service, but I can't figure out a good automated way to determine which com port is connected to which bluetooth device. Request: Any dotnet, or other platform commands that I.

ActiveXperts » Serial Port Component » How to Use Serial Port Component » VBScript

ActiveXperts Serial Port Component is a software development kit (SDK) that enables the user to communicate to a device over a serial interface.

Such a device can be: a weight indicator, a modem, a scanner, or any other device that is equiped with a serial port. It can even be another PC, connected via a NULL modem cable.

ActiveXperts Serial Port Component features the following:

  • Direct COM port support (like 'COM1')
  • TAPI (Windows Telephony Device) support (like 'Standard 56000 bps Modem');
  • Support for RS-232/RS422/RS485, up to 256 simultaneous ports;
  • Support for all types of Hayes compatible modems;
  • Support for serial cable as well as USB cable or Bluetooth connections;
  • Support for Virtual COM ports (i.e. COM ports redirected through the network);
  • Hardware flow control (RTS/CTS, DTR/DSR) and software flowcontrol (XON/XOFF) support;
  • Configurable baudrate/parity/stopbits, full buffered data transfer, text/binary data transfer.

Step 1: Download and install the ActiveXperts Serial Port Component

Download Serial Port Component from the ActiveXperts Download Site and start the installation. The installation guides you through the installation process.

Step 2: Create a new script

Create a new script using your favorite editor. You can simply use notepad. However, a VBScript editor is recommended, so you can browse through objects, objects properties and object functions.

You're now able to write a more advanced script to communicate using the ActiveXperts Serial Port Component.

Step 3: Create the ActiveXperts Serial Port Component object in VBScript

Create a new VBScript file called DEMO.VBS. It is recommended to insert the following line on top of your code:

This statement requires that all variable names be defined (with the Dim statement), to avoid simple typos that can cause incredible headaches and long debugging sessions for something that should have never happened.

Now, declare the ActiveXperts Serial Port Component object:

Create the ActiveXperts Serial Port Component object like this:

Now, add the following lines to the file to have your fist Serial Port Component VBScript program:

Step 4: Send an AT command to a connected hayes compatible modem

You can now send and/or receive data to an/or from a serial interface.

The following VBScript code shows how to query a modem:

There are many working samples included with the product. Kannada video songs free download. You can also find them on the ActiveXperts FTP site: ftp.activexperts-labs.com/samples/serial-port-component.