Questions tagged [com-port]
90 questions
5
votes
3 answers
Serial port reading - Error : EXCEPTION_ACCESS_VIOLATION - C [rxtxSerial.dll+0x5b00]
Currently I'm trying to read serial port. Working fine in Linux. But facing error in Windows machine.
I followed this link to read serial port and Downloaded RXTX library from here for windows machine (JAR + DLL file).
OS : Windows 10 with…

sabari vasagan
- 404
- 5
- 18
4
votes
1 answer
"/dev/ttyUSB0" equivalent in windows
In Linux I can write and read data from an USB device by calling C's fopen('/dev/ttyUSB0', 'rw')
Specifically what is the equivalent of the directory "/dev/ttyUSB0" in windows
I'd like to do the same in windows for COM3.

Marco Ramirez Castro
- 316
- 2
- 5
- 23
3
votes
0 answers
VBA buffer not being filled with data by asynchronous (overlapped) Kernel32.dll ReadFile of COM port, but works synchronously
I'm wondering if someone might have some insight into a problem I'm having with VBA reading asynchronously from a serial COM port using the kernel32.dll ReadFile function in overlapped mode?
Basically, everything works except, only with a COM port,…

daholtz
- 31
- 2
3
votes
1 answer
Serial Port communication using PowerShell
I am trying to set up serial port communication with a ViewSonic Display using PowerShell.
I send a request for the display status either on or off and should get a 9 digit reply
Either 56 48 49 114 108 48 48 49 13 reply for on
Or 56 48 49 114 108…

DarkMatter
- 51
- 1
- 5
2
votes
1 answer
FREEBASIC Open COMn: problems or limitations
Trying to read data from a COMn: port using FreeBasic. The device is a TouchScreen with an ARM controller that punch serial data at 9600,N,8,1 via a FTDI chip to connect USB to PCs. This motherboard I am using for test has native COM1 on BIOS, and…

Wagner Lipnharski
- 141
- 1
- 4
2
votes
2 answers
CRC-16 Checksum calculator with Vanilla JS
I am looking for a CRC-16 CRC algorithm which is written in JavaScript and runs in a normal browser. I know there are an incredible amount of code examples for CRC-16 implementations in all sorts of programming languages. But still I could not solve…

Elohim89
- 21
- 1
- 2
2
votes
1 answer
can I access USB serial device(com5) in browser(web app) with javascript?
I am working on a project. we have our USB device. so how can I open(access) my USB(refer to attached to the image to see what kind of port and device is.) data in the web app? and which "javascript APIs" do I have to use?

Tejas Chauhan
- 69
- 3
- 9
2
votes
1 answer
Acces Windows COM port from docker(linux container)
I need to have acces to windows com port(COM3) form docker linux contianer:
I tried like this:
docker run -d --name test_com_port -p 8090:80 --device=/dev/ttyACM14 --restart always test_com_port
docker run -d --name test_com_port -p 8090:80…

Sevastyan Oseev
- 21
- 2
1
vote
0 answers
Remove ComPort from current ports after it has been disconnected - C#
I have an app that manages multiple serialports. It should show what ports are currently connected. For detecting the current ports I use SerialPort.GetPortNames();. This works fine, if the port is closed before it is removed. However, if the port…

Holunk
- 65
- 6
1
vote
0 answers
Deno.read() abort if COM port has no data
I am currently trying to open a COM port with Deno. This works so far and I can read the data with
file.read(buffer).
The only problem now is that if there is no more data in the COM port and I try to read the data with file.read(buffer), Deno stops…

Mqx
- 182
- 7
1
vote
3 answers
com port identification by device serial number
In our company for testing purposes, we use many serial COM port devices. These devices are transferred daily between several PC and whenever we add a new serial device, we have to manualy learn on all computers.
Currently I am working on code, for…

mrkefca
- 55
- 8
1
vote
1 answer
see what is attached to a com port and show in combo box
Using the code below I can create a box with a combo box that shows the current com ports
What I need to do is show what is attached to the com Port, for example I want it to list
COM PORT1 FTDI USB serial adapter, the reason is to let you the user…

Jud Slater
- 21
- 4
1
vote
1 answer
Unable to view Serial Ports (ComPorts) on android
I installed Octo4A on my android phone.
It installed Alpine linux and python3.
When I run a python script to view the serial ports.
It says no ports are found, but it does find the ports on my windows computer using the same script:
import…

John
- 5,942
- 3
- 42
- 79
1
vote
1 answer
How to use Powershell to know which serial port is being used by arduino?
I am using a PC (Windows10) to send data to Arduino over USB (serial port) and it runs correctly.
So I wrote a powershell script like below:
$serial = new-Object System.IO.Ports.SerialPort…

Adriano
- 117
- 1
- 11
1
vote
1 answer
Cannot achieve correct write timing on serial port (C#)
I am trying to write 20 bytes of data to a serial port with 5 milliseconds interval. To achieve 5 milliseconds I'm using the multimedia timer of Windows (winmm.dll) and I also verified its accuracy with the Stopwatch class. When the timer elapses my…

Not Really a Master
- 13
- 2