virtual-serial-port

C# SerialPort#Open() method throws ArgumentException because of port name?

▼魔方 西西 提交于 2019-12-18 09:45:01
问题 On my local machine, Windows XP Ports (COM & LPT) COM3 RIM Virtual Serial Port v2 (COM4) RIM Virtual Serial Port v2 (COM5) the following code, using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Ports; using System.Threading; namespace OpenSerialPortTest { class Test { static void Main(string[] args) { foreach (String serialPortName in SerialPort.GetPortNames()) { SerialPort serialPort = new SerialPort(serialPortName); try { serialPort.Open();

Timeout exception when writing to a virtual COM

巧了我就是萌 提交于 2019-12-14 03:12:34
问题 I am trying to write to COM port using .net sample I have no problem to write to a real COM, but when I try to write to a virtual COM I get a timeout exception Unhandled Exception: System.TimeoutException: The write timed out. at System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count , Int32 timeout) at System.IO.Ports.SerialPort.Write(String text) at System.IO.Ports.SerialPort.WriteLine(String text) I googled the issue, and found this. according to what is said there this

How to create a Virtual Com1 port in windows?

我是研究僧i 提交于 2019-12-12 14:53:30
问题 I am developing a mobile app to run on a pocketpc. We have a mobile printer and card swipe that uses com1 to send and get info. I'm using the device emulator and want to test without the printer. How do I create a virtual com1 port to right to and read from? I tried com0com but the device emulator will not set that as serial 0. 回答1: This isn't a direct answer, but if you get desperate enough, I had a friend use Detours to redirect output relating to COM interfaces to where he wanted it when

USB Serial Virtual COM Port : Read not working but write works

纵饮孤独 提交于 2019-12-11 19:52:12
问题 I use embedded hardware (by TI : Piccolo Control Stick xxx69) which uses FTDI usb to serial converter hardware. On PC, I have simple VC++ application which tries to communicate to hardware over Virtual COM port (VCOM : typically COM7). I am able to connect to port properly. I am able to send data from application/PC to hardware and it is received correctly. (So, Tx on PC is working fine), Application first opens the connection using createfile(... ... ...) API and then uses writefile(.. ... .

Problems getting a device driver to load at startup - WM6.1

谁说我不能喝 提交于 2019-12-11 12:48:52
问题 Our embedded systems programmer has developed the shell of a virtual serial port driver for our mobile hardware, and I have been filling in the methods to get it to work. The driver does work as expected, it simulates a COM port for a USB device that is spewing out NMEA strings (GPS data). I type WM6 for short, but the OS is WM6.1 if it makes any difference. The problem I am having is that the driver does not load at start up of the device on WM6 only. The driver was developed for both CE5

Send data to Honeywell Xenon 1902 barcode reader via virtual com port

人走茶凉 提交于 2019-12-11 04:27:17
问题 I am trying to send a query to the Honeywell Xenon 1902 barcode scanner. The scanner is connected via virtual com port. Setting up the communication works fine: With SerialPort1 If Not .IsOpen Then Try .PortName = "Com9" .BaudRate = 115200 .DataBits = 8 .Parity = Parity.None .StopBits = StopBits.One .Handshake = Handshake.None .DtrEnable = False .RtsEnable = False .Open() Catch ex As Exception MessageBox.Show(ex.Message & vbNewLine & ex.StackTrace, "Fehler beim Öffnen des COM Ports",

virtual socat serial port and c# on ubuntu linux

倖福魔咒の 提交于 2019-12-10 17:52:02
问题 for testing purpose I'm trying to write a simple program that connect to a virtual serial port created with socat. I create the serial port with this command: socat -d -d PTY,b9600 PTY,link=ttyVS1,b9600 getting this output: 2011/11/08 18:26:31 socat[32708] N PTY is /dev/pts/1 2011/11/08 18:26:31 socat[32708] N PTY is /dev/pts/2 2011/11/08 18:26:31 socat[32708] N starting data transfer loop with FDs [3,3] and [5,5] When I try to connect in this way: System.IO.Ports.SerialPort _port; _port =

Python/Pyserial: reading incoming information from port

风格不统一 提交于 2019-12-08 05:16:00
问题 I've just started using pyserial as I will eventually need to read/save information coming from a particular port. Using the following code I am merely printing the port used and then trying to write and then read in some text ("hello"). The port is printing fine, but the output of my string is coming out as 5. Any idea why this is? import serial import sys from time import sleep try: ser = serial.Serial('\\.\COM8', 9600,timeout=None, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE,

GPS Intermediate Driver Slowing down the data from a virtual serial port driver

你说的曾经没有我的故事 提交于 2019-12-08 03:47:36
问题 Follow on from - GPS Intermediate Driver Issues The above was not successfully answered and feel I have new information over the issue to go for a new question. The issue I am facing is the speed of which data is being delivered by the GPS Intermediate Driver. I have successfully used Pocket Putty to read the serial ports and see the exact information been exposed. COM 1 - GPS Intermediate Driver COM 6 - Serial port to PC (Input data manually) COM 8 - Virtual serial port for GPS hardware.

Python/Pyserial: reading incoming information from port

寵の児 提交于 2019-12-06 15:37:07
I've just started using pyserial as I will eventually need to read/save information coming from a particular port. Using the following code I am merely printing the port used and then trying to write and then read in some text ("hello"). The port is printing fine, but the output of my string is coming out as 5. Any idea why this is? import serial import sys from time import sleep try: ser = serial.Serial('\\.\COM8', 9600,timeout=None, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS) except: sys.exit("Error connecting device") print ser.portstr x = ser.write(