11,666 questions
-4
votes
1
answer
129
views
Serial USB communication on ESP32-S3 as host [closed]
I have an ESP32-S3-N16R8 devkit board with two USB ports and I have a device that communicates via Serial USB. I want to read serial data from ESP32 board and process it. So the ESP32 board should act ...
0
votes
0
answers
83
views
RS232 to USB in a hub with other device: potential loss of data?
I'm currently using a SBC (a Raspberry Pi Zero 2W) to receive data from a device (let's call it Sensor). Sensor is connected to the micro USB port on the SBC through an adaptor with FTDI FT232R USB ...
1
vote
0
answers
71
views
Read/write to USB serial device while it's in use
I have a C# application that uses the USB serial device mounted to /dev/ttyUSB0.
I need to send a status request to this device, which I can do very easily with printf "\00\48\ee\ff" > /...
2
votes
1
answer
126
views
Threading or asyncio for serial communications?
I'm running some serial commands to test connected devices under test (DUTs), & we have a need to run these in parallel/concurrently to speed up our tests. I would like some feedback on which ...
1
vote
0
answers
55
views
Raspberry Pi + EBYTE E32‑900T30S over UART — AUX=HIGH but no AT response
I’m trying to talk to an EBYTE E32-900T30S LoRa module from a Raspberry Pi 4 using the Pi’s UART and a small Python wrapper. The module’s AUX pin goes HIGH, but I get no response to AT queries (e.g. ...
179
votes
13
answers
364k
views
Python: Making a beep noise
I'm trying to get the program to give me a beeping noise. I'm on a windows machine. I've looked at http://docs.python.org/library/winsound.html
But not sure how I can program this with a barcode ...
0
votes
0
answers
35
views
Serial device only responds when RTS is toggled or second app connects (RealTerm works fine)
I’m debugging a strange issue with an RS232 serial device using various terminal applications on both macOS and Windows. The core problem is this:
• When I connect to the device using a single ...
2
votes
2
answers
182
views
UART times out writing data
I have built a custom yocto image for my BBB and I'm having trouble with the UART. I have two uarts mapped ttyS1 and ttyS4. But for some reason I'm having trouble with ttyS1 timing out writing data, ...
2
votes
1
answer
117
views
Serial Port Connection Fails on Subsequent Attempts (Jetson Orin Nano - RS485)
I am experiencing an issue with a serial port connection on my Seeed Studio reComputer J30 (Jetson Orin Nano Industrial). When I reboot the device, the serial port connection works fine on the first ...
202
votes
10
answers
298k
views
Virtual serial port for Linux [closed]
I need to test a serial port application on Linux. However, my test machine only has one serial port.
Is there a way to add a virtual serial port to Linux and test my application by emulating a device ...
0
votes
3
answers
96
views
Can't get a thread to stop via button in C# and Winforms
Sorry to ask what is probably a simple answer but I've spent a couple of hours looking through documentation and can't seem to get my code working how I think it should work, I've not used C# in years ...
1
vote
0
answers
35
views
Why does my modem send a DTMF 9 tone three times even when AT+VTS is only called once?
I'm working on a project where I use a StarTech USB56KEMH2 modem with Python (PySerial) on Linux to call my building's buzzer (MICROM system) and open the door by sending a DTMF 9 tone.
The modem is ...
0
votes
1
answer
122
views
Incoming serial data length varying inconsistently in C#
I am sending 11-byte data with random value from raspberry pi to the computer. I encoded the data with Start Byte ($) and End Byte (#). And when I try to receive and parse the data from my computer ...
0
votes
0
answers
124
views
Decoding the h.264 stream from a serial port
I would like to know if there is a reliable way to decode an H.264 NAL stream coming through a serial port using software.
So far, I have managed to decode a single frame using a python script. In ...
143
votes
15
answers
774k
views
How to find all serial devices (ttyS, ttyUSB, ..) on Linux without opening them?
What is the proper way to get a list of all available serial ports/devices on a Linux system?
In other words, when I iterate over all devices in /dev/, how do I tell which ones are serial ports in ...
0
votes
1
answer
84
views
C# code responding differently to serial port than putty
I'm struggling with this one since last 2 days. Would really appetite any pointers.
Summary: I am connecting to a system over serial. I can make it do anything I want with putty. For any command I ...
0
votes
2
answers
234
views
Unable to read the full response coming over rs-485 from a Modbus device
I have been trying to communicate with a I-7000 IO module device that supports Modbus. In general I am able to successfully send commands such as writing to a coil or reading a coil but I face one ...
3
votes
0
answers
101
views
Expect TCL always sends unicode
I am having a problem with expect (v5.45 on macOS) that I cannot figure out a solution to. No matter what settings I have tried, any data (with value over x7F) is always sent as unicode, adding extra ...
0
votes
0
answers
253
views
Python pyserial can't access com0com virtual serial ports even though they appear in Device Manager and com0com GUI
I've set up virtual COM ports with com0com (COM20 and COM21), but I'm having trouble accessing them through Python's pyserial.
What I've tried
I can successfully create the port pair using com0com's ...
0
votes
1
answer
56
views
Accessing hardware UART via unity game built for android
I would like to access the hardware serial port (tty*) , not the usb serial port(last resort if not possible), via unity, I have no experience in android development and have barely managed to get a ...
1
vote
5
answers
6k
views
Serial Monitoring esp32c3
I recently bought an esp32c3 supermini as they look really neat and small with slightly better specs over an esp8266.
I used the arduino framework to be able to program the board, and installing the ...
2
votes
0
answers
186
views
Problem to setup a serial communication in petalinux
I have to use a rs232 serial communication in a C program with a petalinux OS. And I have problem to read data from my serial. As I am not familiar with linux OS I have searched on internet some ...
0
votes
1
answer
499
views
Unable to access /dev/ttyS0 as a regular user, despite having the right permissions
I'm trying to access the UART connected to the standard GPIO pins 14/15. As root, I can access them just fine. As a regular user, I always see a super abstract message:
$ minicom -b 115200 -D /dev/...
0
votes
1
answer
483
views
ESP32 hardware serial port receives junk characters
I have two ESP32 boards connected back to back through a serial cable, using pin 16 for Rx and 17 for Tx. They exchange simple hello world messages through the serial2 hardware port on the ESP32. The ...
12
votes
5
answers
43k
views
WSL and serial port
I am using Win10 and Linux Ubuntu on WSL 2.0.
For testing purposes of some programs, I would like to use the serial port of my PC in "loopback" with Linux running through WSL.
Basically I ...