11,666 questions
1
vote
1
answer
9k
views
Find the right usb port on mac using Terminal
Using terminal :
ls /dev/tty.*
will give me many addresses . My usb cable is connected to Arduino UNO board.
On the arduino IDE i see the port as : /dev/cu.usbmodem1421(Arduino Uno) ,but when i am ...
1
vote
1
answer
9k
views
Read /dev/ttyUSB0 with a c program on LINUX
I want to read data frames sent by a GPS XBee protocol. The USB XStick receives the following data:
CHARS : 15931 SENTENCES = 0 CHECKSUM : 58
Heading : 55 Tilt: -46 Roll:2
CHARS : ....
...
9
votes
3
answers
97k
views
What is the best way to access a serial port from VBA? [closed]
What is the best way to access a serial port from VBA?
I have a need for some of our sales reps to be able to send a simple string over the serial port from an action button in PowerPoint. I don't ...
0
votes
2
answers
4k
views
How do I connect to a Zebra printer over RS232?
I purchased a Zebra LP 2844 label printer and would like to send ZPLII print jobs to it from a C++ program. I am able to connect to the printer and print test labels using the Zebra Setup Utilities ...
1
vote
4
answers
6k
views
STM32: UART DMA does not start correctly
I am using two STM32H743 connected via RS232. These two modules connected to same power.
They use UART with DMA. When I turn on modules at the same time, UART and DMA starts correctly.
But when i ...
4
votes
2
answers
11k
views
Python: attempting to open serial caused IOError: [Errno 6] Device not configured
I trying to open two serial ports in Python with the following code:
for i in range(0, 2):
if platform.system() == "Darwin":
pos = 2+i
else:
pos = i
port = serial....
3
votes
1
answer
18k
views
Read Serial Port After Writing using Node.js
My node.js script uses the serialport npm package to read and write to COM5 port, which is connected to an RS-232 device. This device only writes to the serial port when it receives a command sent by ...
11
votes
9
answers
54k
views
Serial comm with PHP on Windows
I am looking for a way to communicate with RS232 serial COM port on windows. I have found 2 solutions on the net, one which is not totally free (introduces deliberate delays on the function) and ...
5
votes
2
answers
7k
views
How HAL_UART_Transmit_IT manages sending data on serial on the STM32F091VB
I'm trying to understand how the STM32F091VB manages the send of data via serial protocol with the function HAL_UART_Transmit_IT()
At the moment I've a function called in the main() that creates the ...
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 ...
0
votes
1
answer
148
views
Embedded Linux Uart to be used as RS485
I have been working on multiple projects of Embedded Linux from last 5 years but there is a small problem when I use UART.
I am using STM32MP13F with MYIR board. The UART is connected to half duplex ...
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" > /...
1
vote
3
answers
2k
views
'module' object has no attribute 'to_bytes' Python
Please advise how I can cx-freeze my python program which uses serial :
import serial
import serial.tools.list_ports;
print serial.tools.list_ports()
Here's my setup.py
import sys
...
1
vote
2
answers
999
views
C# System.IO.Ports throws System.IO.Ports is currently only supported on Windows, but i'm currently using windows
I am trying to communicate with an Arduino over serial.
The form is using:
using System.IO.Ports;
My code breaks here:
SerialPort mySerialPort = new SerialPort("COM3");
The exception is:
...
0
votes
3
answers
2k
views
Serial Port read() gets only less bytes at a time
Operating system : Ubuntu
Serial Ports Using : USB->Serial adapter (prolific PL2303)
I have a sample serial port read and write programs. While running the applications,I am trying to send 4100 ...
0
votes
1
answer
4k
views
How to resolve 'Access to the port 'COM4' is denied' in my ASP.NET website
I am using Arduino (some micro-controller), and I made an ASP.NET page to communicate with it. I connected Arduino to serial-port COM4. When I run the ASP.NET website, I get the following error:
...
8
votes
5
answers
22k
views
How can I use /dev/ptmx for creating a virtual serial port?
I have a program, using PySerial, and I want to test it without using a real serial port device.
In Windows, I use com0com, and in Linux, I know there is a method to create a virtual serial port pair ...
1
vote
1
answer
9k
views
Can write to, but can't read from serial port ttyS0 in linux C program
I'm trying to learn how to program the ttyS0 serial port in Linux using C. I have another machine connected to my serial port sending alternating hex values of 5f and 6f about every two seconds. I'...
0
votes
2
answers
13k
views
Sending strings over Serial to Arduino
I'm currently experimenting with sending a string to my Arduino Yun and trying to get it to reply back depending on what I send it.
I picked up a framework of some code here and have been ...
0
votes
2
answers
976
views
Unreadable input from serial GNSS device - but not with PuTTY
I am writing a C++ program to get and parse GNSS data from a device connected via serial port. After establishing the connection, all I get is some jibberish and not the expected NMEA sentences. Has ...
0
votes
1
answer
461
views
Java Runtime Exception: USB to RS232 serial comm using jssc maven package
I developed a desktop application using JavaFX and Maven dependency manager. I used Java 8 and JSSC package to communicate with a serial port using USB. That time it was working as I expected. But now ...
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. ...
7
votes
1
answer
10k
views
How to write to serial port using PHP? Having an issue with buffering
EDIT: I have done some testing with the following script (found here: PHP serial port data return from Arduino). It appears that even using fwrite to /dev/ttyUSB0 outputs my new command plus the last ...
1
vote
0
answers
100
views
Cannot read data from the digital force gauge by using Pyserial
I want to get force values from a digital force gauge which has a RS232 port. According to the FH Data Connection protocol, if I send ASCII '9' by using Pyserial, the device should send the force ...
-1
votes
3
answers
3k
views
Any pins on rs232 which can be used to detect voltage as input
Is there a way i can get a voltage input using rs232? What i am doing now is i have 2 pc hooked up to rs232 to communicate using gnd, tx and rx pin. Ive also connect DTR to a switch and when the ...