comports

Enumerating a List of systems Com Ports in Delphi

Objective: I would like to be able to list the available COM Ports on a system in Delphi. Homework: I have read this SO thread on enumerating the LPT ports of a system using the registry. I have also found that the COM ports are listed in the registry at HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM but found unanswered gesticulation...

Win32 Commport Sniffing

Using C winapi, how can you capture receieved data from a commport that is open exclusively by another program. I know there are programs that do this, but I want to code my own monitoring software for a specific purpose and was wondering how is it done? ...

How to send data to COM PORT using JAVA?

Friends, I want to connect and transfer data to COM PORT (either virtual or original) in JAVA? ...

Finding port number of connected device from Registry editor

hi can you pls tell me pls is there any win32 api,s are there for getting connected device port number.Now in my appillication i am giving hardcoded value for com port number . and for that i am checking manually from control panel -> phone and modem options , there i am getting port number. But now i am trying do this programm...

Ensure connection to a POSPrinter connected via COM

Hi, I need to make sure that the connection to a POS printer is successful before writing data to the database and then printing a receipt. The POSprinter is normally of type BTP 2002NP but may differ. The common thing is that they are all connected via COM-port and NOT usb, so no drivers installed at all on the client. Can I send some...

Qt and serial port programming

Hi, folks ! Is there any serial port facilities in Qt ? If not, which crossplatform (desirable) libraries (for working with serial port and, maybe, with other I/O ports), do you recommend ? ...

Automatically detect which Com Port is connected to a USB GSM Modem using Java

I wrote a Java application that reads and sends SMS messages from a USB GSM modem. I'm using SMSLib (which uses JavaCommAPI), and it runs on Windows. I need to pass in the COM PORT, that the modem appears to be connected to. So far, I've been looking up the COM PORT manually using the Windows Device Manager, and write it into a propert...

how to read data from serial port in vb.net ?

I am trying to read data from rfid tag using rfid reader. i can connect reader, but cannot get data? ...

Multiple devices connected on serial ports - How to know which connected to which port

Hi guys, i have a few devices that communicate through serial port. Since, they are not always connected to the same serial port, so i need to know exactly which device i'm communicating with when i send data. How can I check which device is connected to which com port. ...

Is the MsComm ActiveX compatible with Delphi 2010?

I have ported our project from Delphi 7 to Delphi 2010. After adding some type casts now my project is running well and all the features work correctly except main functionality of the program which is bound to COM ports and the MSCOMM ActiveX component. It can read and write from a COM port but it seems something is wrong with that bec...

howt to access COM port via script

Hello, I need to access COM port (console) via script to access our DSL modem. It should access in such a way that I can read all the messages printed on the console and i should also send commands to the console via script . Please let me know if it is possible in TCL or php . Platform : Windows XP. Also is there any way I can acces...

What is the best way to scan for COM ports in C#?

Does C# provide an effective means of scanning the available COM ports? I would like to have a dropdown list in my application wherein the user can select one of the detected COM ports. Creating and populating the dropdown list is not a problem. I just need to know how to scan for the available COM ports using C#. I am using Microsof...

Windows: Does something temporarily grab the com ports on startup?

I have a WPF/C# app that is launched as part of the "Startup" group on a Windows Embedded Standard machine. One of the first things the app does (in its static App() method) is create a new SerialPort object for COM1. COM1 is a hardwired serial port, not a USB virtual port or anything like that. My problem is that every so often (maybe ...

Getting Serial Port Information in C#

I have some code that loads the serial ports into a combo-box: List<String> tList = new List<String>(); comboBoxComPort.Items.Clear(); foreach (string s in SerialPort.GetPortNames()) { tList.Add(s); } tList.Sort(); comboBoxComPort.Items.Add("Select COM port..."); comboBoxComPort.Items....

Checking COM Port Availability in C#

Hello. My C# application populates a comboBox with the COM ports found on the system. I would like the mark the COM ports that are in use as such. I know that I can use try / catch blocks to attempt to open every COM port, but I was wondering if there is a more graceful way to do this. Perhaps using a WMI query? I am using Microsoft...

How can I fix "[Error 6] The handle is invalid." with PySerial

I'm trying to connect to my phone from my Windows 7 PC using PySerial with the following code: import wmi import serial c = wmi.WMI() modem = c.query("SELECT * FROM Win32_POTSModem").pop() ser = serial.Serial(modem.AttachedTo, modem.MaxBaudRateToSerialPort) try: ser.write('at \r\n') print ser.readline() finally: ser.close(...

Send data to Com port from a web page

Hi, I'm new to web development so please, could you help me to understand if I'm working in the right direction? There will be a webpage intended for our customers (not intranet) from where they can print labels. Some of the larger customers will have special label printers where configuration and printing using COM-port is the only acc...

Modify COM Port device name at runtime (Windows)

I'm not sure if this is possible but my requirement is this. On startup, my application swaps COM1 to COMV1, listens to the output interprets the data and passes it through to COM1. On shutdown, my applications swaps COMV1 back to COM1 so applications can continue to use it as normal. Thanks for any help, Richard ...

COM port is in use

Hi All, I am trying to connect a printer in a COM port. The requirement is that COM port has to be single digit (betweem COM1 to COM9). I am trying to assign single digit to the COM ports but they show in use. I am not sure which hardware devices are using this COM ports. How can I find that which device is using which COM port? Also h...

Debug COM port read/write using software/virtual COM port and console/terminal on the other end

I have a Delphi application that reads/writes to a COM port connected to a large hardware device, so I don't usually have the hardware available during development. That said, the communication protocol is fairly simple, so I can generally do the development and have someone onsite test it, and it usually works. Occasionally I run into...