|
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
|
Hi there i am writing a program in C and i wanna know how can i listen on com port and read the data from it please help me thanks
Answer Snippets (Read the full thread at stackoverflow):
() */ #include <errno.h> #include <sys/signal.h> int obtain_socket(int port); void show_message(int sd); void close_down(int sigtype); #define PORT 2001 /* default port for server */ #define SIZE 512 /* max length of character....
|
|
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.
|
|
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.
|
|
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.
|
|
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...
Started by jamiei on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Please try this code :
function GetSerialPortNames: string; var Index: Integer; Data: string; TmpPorts... .
Use this method if you need runtime reliability.
You'll probably need to look under DYN_DATA for Win9x.
DEVICEMAP\SERIALCOMM is good for all NT versions.
|