|
How to find available COM ports in my PC? I am using framework v1.1. Is it possible to find all COM ports? If possible, help me solve the problem.
Started by RV on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
In later versions the Serial Port support is available through the System.IO.Ports name space the port names and then....
From a VB6.0 installation (import into your .net project as a COM component from the add reference dialog box).
|
|
Friends, I want to connect and transfer data to COM PORT (either virtual or original) in JAVA?
Started by Srinivasan__ on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Times:
http://stackoverflow.com/questions/544824/read-file-from-serial-port-java
http://stackoverflow.com/questions/336714/reading-serial-port-in-java
http://stackoverflow.com/questions/589334/how-to-read-and-write-from-the-serial-port....
|
|
Hi, I am using rxtx api to read data from a GPS device over a com port. Right now I'm finding the correct com port by reading a config file and looking for the port listed. The problem that I'm having is that if the device is unplugged the com port could...
Answer Snippets (Read the full thread at stackoverflow):
Iterate....
The name associated with the device on the COM port (particularly if a driver is installed to provide port name, and device id that is on that port and sends the data in a string over the com port API.
|
Ask your Facebook Friends
|
Is there an easy way of programmatically checking if a serial COM port is already open/being used?
Normally I would use:
try { // open port } catch (Exception ex) { // handle the exception }
However, I would like to programatically check so I can attempt...
Started by TK on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Var portNames = SerialPort.GetPortNames(); foreach(var port opening my port: {0....
A bit rough but working.
COM ports and then simply iterated over them, if it didn't throw an exception i tried to communicate with the device.
|
|
I'm trying to test my code that reads from a USB port (COM25 when the device is connected) that is created when a device is connected to my computer and to a boat. I cannot power the USB device when not on the boat so testing is difficult. Can someone...
Started by homebrew2k9 on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's how you can do it:
Define an interface for talking with your COM....
The general answer for this kind of problem is to wrap the code that talks to the COM port issue by having our emulator not spoof a COM port at all.
|
|
Hi. Does anybody know how to change the COM port number that Windows maps to a USB virtual COM port? You can change this via the Device Manager and clicking on the Advanced button.. but how can you do this via an API, registry change or commandline operation...
Started by SparkyNZ on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Then use regedit to search for COM61 and see what://stackoverflow.com/questions/304986/how-do-i-get-the-friendly-name-of-a-com-port-in-windows
It's about assignment, you should....
Method to assign some unlikely com port, like 61.
|
|
How would I go about writing to a COM port, trying to convert the following example to .Net (C#), specifically the PHP part? If possible is there an easier way to write out to a USB?
Started by stalkerh on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It can be used to wrap a Stream objects....
Here are some examples in C#:
http://msdn.microsoft.com/en-us/library driver properties.
Use the SerialPort class, e.g.:
SerialPort port = new SerialPort("COM1"); port.Open port (COMx - on windows).
|
|
I have a Windows application that utilizes a 3rd-party tool ( FaxMan ) to send faxes via a COM port attached to the PC. In order to stress test my application I want to create some virtual COM ports that pretend to have fax modems attached. I then want...
Started by Rob on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Developing a virtual COM driver means developing a kernel driver (unless you can buy one off be using real hardware: real ....
Com0com.sourceforge.net/
You could connect the FaxMan application to one COM port then a FAX it well.
|
|
I have a couple of servers that I'd like to duplicate as guest instances in virtualserver. One of the applications that runs on them uses the COM ports to communicate between the two servers, and specifically through null-modem/laplink/etc cable.
I've...
Started by CodeSlave on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
The linked Wikipedia page also into the Moxa terminal....
You can use a COM port redirector software to create virtual COM ports on both servers and connecting them by a TCP port.
Server 2005 so I do not make guaranty.
|
|
Typically, on a PC, there is some non-standard set of COM ports available for use by a terminal emulator. I would like to be able to scan ports COM1-COM32 to see which (if any) of those ports can be opened as a serial port. I can do this be simply calling...
Started by Ed on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Determined that opening a COM port will succeed at some point in time, that doesn't mean you can openSeveral ways
a) QueryDosDevice() - check against COM in the names
b) GetDefaultCommConfig() - Go functions to enumerate the COM....
|