Questions tagged [serial-port]

A serial port is a physical interface through which data is transferred (uni- or bidirectionally) one bit at a time. The term usually refers to the RS-232 port with a 9-pin d-sub connector that was once the standard serial interface on a PC.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

DE10 standard fpga board - not able to transit the data to PC through UART

I am working on exploring the De10 standard board's UART by sending a ascii character to the my PC. But it is not working. I am using Real term to see the data being received. The Linux console which ...
KIRAN TS's user avatar
0 votes
2 answers
67 views

How to specify a Windows USB com port instead of Linux dev/port in Python

I am trying to run the python ramses rf-master script on a windows 10 PC.The documentation says that the script called client.py is invoked by entering python client.py monitor /dev/ttyUSB0 -o packet....
BillC's user avatar
  • 1
0 votes
0 answers
15 views

GNU-Screen Serial Connection Needs To Be In Foreground To Start Working

When I first open a serial connection using gnu-screen. It does not respond to any command I stuff until I have attached to the session and then detached from it again. Then the device receives the ...
martindale's user avatar
-3 votes
0 answers
49 views

Handling many input devices in cpp [closed]

Though I don’t think it has much bearing on my question. I’m operating in a unix based environment. I’m trying to receive measurement data from 6 different input devices; some over UDP, some over ...
skidmarks's user avatar
0 votes
0 answers
5 views

How to communicate with LEDIO board in android

I have a LEDIO board with 4 external buttons that are connected with LEDIO board. I want to get the data when those buttons pressed. I tested the LEDIO board with TeramTerm software and its working ...
Umar Bilal's user avatar
0 votes
0 answers
12 views

I cannot send data to a fiscal printer through the RS232 port

I'm having trouble getting a raster to write to a fiscal printer. I am using python's pyserial. I write the frame in binary, I send it to the device through the COM3 port using the write function, it ...
veramarycela's user avatar
-1 votes
0 answers
12 views

How to add image on seiral port in Python?

I m using Posiflex printer. Its only support for com port print. I am new to python I got some ideas from google search and i wrote code now I want add logo to receipt printer and I am using Python 3....
Shan's user avatar
  • 1
1 vote
0 answers
20 views

RTU in Python 3.8, send_message fails intermittently

window10 x64 cpu : 12th Gen Intel(R) Core(TM) i9-12900 2.40 GHz ram : 16.0GB python version : 3.8 umodbus version : 1.0.4 serial baudrate : 115200 code : from umodbus.client.serial import rtu ... ...
주석윤's user avatar
0 votes
0 answers
17 views

SerialPort.GetPortNames throws exception on Android

I'm writing a MAUI App using .Net 8, and I need to connect to a serial port. However, when calling the static System.IO.Ports.SerialPort.GetPortNames() method, I get a System.Reflection....
erict's user avatar
  • 1,404
0 votes
1 answer
37 views

To Open another Application from main Application in JavaFX VsCode

Question Hey all. I am new to javafx coding so please level with me. I coded three applications with their own primary stage. but now I want to open two of the applications from one application (which ...
Toobaa's user avatar
  • 1
0 votes
0 answers
9 views

Bluetooth Comm API from bluedot | OBD and Raspberry PI Errors

I am building an OBD Raspberry PI car dashboard and I've been struggling to get the adapter to connect and send info. I recently learned that the rfcomm support was dropped years ago by bluez and was ...
Soham Deshpande's user avatar
0 votes
1 answer
78 views

How to Implement Continuous Read/Write with SerialPort in C# with Timeout Handling?

I'm working on a WPF application in C# on .NET 8.0 where I need to continuously read from and write to a serial port using the SerialPort class from the System.IO.Ports v8.0.0 NuGet package. I have ...
Fishayyy's user avatar
0 votes
0 answers
40 views

Reading D70A weighing data from serial COM port with Java

I want to read data from the scale and print it on the label with JavaFX. I made all the settings according to the documentation, but I cannot read the data. comPort.readBytes() always returns 0. Does ...
Tolga ÇAĞLAYAN's user avatar
1 vote
0 answers
53 views

How to send 887 Bytes via Com-port in C# .NET

I am using .NET 6 LTS with System.IO.Ports 8.0. I try to send 887 Bytes using an IR transmitter. P is my Com-port. The first 873 bytes are "wakeup" bytes: for (uint u = 1; u <= 873; u++) {...
Pascal's user avatar
  • 25
0 votes
1 answer
56 views

How to debug not writable serial port?

My code can read from Arduino Uno fine, but it cannot write to it. I thought about it because I was trying to write while reading data in the same time, so I commented out the part that read data, but ...
Aymen Hmani's user avatar
-1 votes
0 answers
56 views

converting hex string to bytes and sending it through serial (python)

I'm having trouble sending 6 hex values (example: 02 00 0a 51 03 60) as bytes through usb with python. I need this to open locks by sending commands to a control board by usb. I've managed to get this ...
VtheWizard's user avatar
0 votes
1 answer
51 views

How to get data from a static event-handler for serial port

I'm currently write a method that read data consecutively from serial port in C# winform for .NET framework. I write an event handler for it, but since its static, i cannot call variable from outside. ...
zyp8x's user avatar
  • 13
0 votes
0 answers
23 views

OBD Raspberry Pi bluetooth and serial issues

So I've been trying to get my digital dashboard code working and I have to connect to the OBD plug to the Pi but ive run into a plethora of issues since then. The first time I did it, the OBD device ...
Soham Deshpande's user avatar
0 votes
0 answers
25 views

Using tKinter to read serial data - Python

I am learning how to use Tkinter for a GUI to show the reading of serial data. I have built a GUI with several functions: The basic idea is to be able to select the port, the baurate and then press ...
Juan Guerrero-Fernández's user avatar
1 vote
0 answers
20 views

How to change GPS output mode to NMEA 0183 on SIMCom 508 module?

I have the SIMCom SIM508 module and evaluation board from stone age. I can communicate with the GSM side with AT commands by using the GSM_MAIN RS-232 interface. The GPS side outputs an SiRF protocol ...
Licensed Slacker's user avatar
0 votes
0 answers
32 views

Send data from serial port work, but not received

I would like to communicate with a weaving machine that has a remote serial port. So I bought this RS232/485/422 TO POE ETH Normally, the machine communicates with a PC with the following ...
Zekura's user avatar
  • 327
0 votes
1 answer
95 views

High-level abstraction for serial communication

On a hardware device with serial communication, I need to continously query "foo", forever, every second (for example to log temperature of the device). At a random timing, another thread ...
Basj's user avatar
  • 42.4k
0 votes
0 answers
19 views

Connect Two ESP32 To Raspberry Pi

I want to connect 2 esp32 with the same manufacturer and product ID to a raspberry pi 4 by modifying the udev configuration file as follows: SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4&...
jairo tuñon diaz's user avatar
0 votes
1 answer
28 views

minimalmodbus.NoResponseError: No communication with the instrument (no answer)

I'm trying to get data from an Aims Power Pure Sine Inverter but I couldn´t connect directly with the inverter so now I'm using an external panel that show some information of the inverter. This panel ...
Stacey Bermúdez's user avatar
2 votes
1 answer
100 views

Data corruption issue in Java program using jSerialComm library, but in C# it is OK

I have a Java program that communicates with various devices to retrieve data via serial communication. I'm using the jSerialComm library for this purpose. However, when I retrieve data from a ...
LEE Hin's user avatar
  • 21
0 votes
2 answers
70 views

With a single serial link, how to read continuous data every second (polling), and do other queries in the meantime?

I communicate with a hardware device via serial link RS232 (no other option available). I need to continuously poll some data "foo", every second (if possible). Sometimes I also need to ask ...
Basj's user avatar
  • 42.4k
1 vote
1 answer
17 views

Unable to Detect Serial Ports on Google Cloud Platform (GCP) when Deploying Node.js App

I have developed a Node.js application that reads data from sensors connected to serial ports. The app works fine locally, but when I deploy it on Google Cloud Platform (GCP), it is unable to detect ...
Dhouha Olindias's user avatar
1 vote
0 answers
34 views

Serial communication logging with data transfer

I am trying to develop a communication script for a device that is connected through serial port in python. I am sending and receiving data from/to the device using functions. Now what I would like to ...
Gábor Erdős's user avatar
0 votes
0 answers
38 views

Java RS232 to USB Connection: No Data Received from Electronic Scale

I am working on a project where I need to connect an electronic scale (T-Scale QTP 15MR) to my computer using a RS232-to-USB converter and read data from it using Java. I am certain about the COM port ...
Trung Kien Nguyen's user avatar
0 votes
0 answers
15 views

Transfer Arduino values ​to Python using the HC-06 Bluetooth module

I am trying to transfer values ​​from Arduino to Python using the HC-06 Bluetooth module. I confirmed that the value was transmitted normally through serial communication without using Bluetooth. ...
RnaYuta's user avatar
0 votes
0 answers
34 views

Serial port telegrams timestamping on ARM embedded Linux

I want to build an ethernet based distributed measurement system with embedded NXP i.MX 6 ULL boards (measurment nodes). Measurment data is taken from a serial ineterface with a baudrate of 9600. For ...
DrNick's user avatar
  • 1
-1 votes
0 answers
22 views

Trying to connect to OHAUS weighing machine using serial PORT

I'm triying to connect to my OHAUS weighing machine using serial port connection, but I already can connect to the port COM5 using the default settings. But, when I try to use ScaleMate and connect ...
Pipe's user avatar
  • 9
0 votes
0 answers
19 views

How can I communicate from my Windows desktop with a USB connected Printer, that uses ZPL/Zebra programming language. Can I send commands using CMD?

I have a Brady BB12 Printer, that is connected to my Windows 10 Desktop using USB. I am trying to communicate with this Printer and send it basic print commands. I know this printer recognizes ZPL/...
kvj's user avatar
  • 17
0 votes
0 answers
68 views

How to solve the problem so that the driver port (uart4) works adequately?

UART4 serial port driver (dw-apb-uart) has only two lines - Rx and Tx. Linux kernel v6.5.8 is used. Allwinner A40i processor. This is exactly RS485, the UART is connected to the RS485 transceiver ...
Rarebeast's user avatar
0 votes
1 answer
53 views

Linux/C/C++ : Why use blocking or non-blocking read over serial/usb

I'm using <unistd.h> and <termios.h> to read()/write() terminated text-strings from a device over serial/USB (/dev/ttyACM0). First I send a command with write(). When using blocking mode (...
AxAn's user avatar
  • 143
-1 votes
1 answer
57 views

Arduino Serial Read Reading more than a byte

I'm having a problem reading serial bytes. If I input A, the code outputs: This just in ... A. It's correct, but the problem happens when I input more than 1 character. Input: AAA Output: This just ...
Xia's user avatar
  • 307
0 votes
0 answers
16 views

MS Excel add-in Datastream doesn't send CR LF characters to serial line

I want to exchange data between MS Excel (VBA) and my STM32 Nucleo via serial line (virtual COM port). I am using MS Excel add-in Datastream from Microsoft which, according to them, is intended for ...
Jaromir Čukan's user avatar
1 vote
1 answer
40 views

Pi Pico W (Micropython) - How to enable CTRL+C via UART?

I'd like to remotely control my Pi Pico W using HC-05 or HM-10. It works in general, but in case of infinite loops (like "While" loop), sending CTRL+C via UART does not stop the loop. It ...
mostek's user avatar
  • 11
0 votes
0 answers
37 views

Print qrcode receipt on rongta thermal printer using esp32

As the title says I want to print qr code on my RONGTA RP330 printer. ah I connected wire from esp32 to the Rx and Tx pin of the printer motherboard. For now I'm doing this: #include <Arduino.h> ...
LoNE WoLvES's user avatar
-2 votes
0 answers
30 views

Need advice on how to draw charts in C-Sharp from Serial Data

I need to draw charts in c# where the data is coming live from serial communication. I have seen many examples on YouTube, but the problem is that my data is coming for nearly a minute at baudrate ...
John Snow's user avatar
  • 109
1 vote
1 answer
39 views

Serial port (USB) status, powering off a peripheral device vs. unplugging it?

A few years ago, I wrote a little program in PyQt5 which monitored changes in the output from QSerialPortInfo.availablePorts() to produce a live information display, showing devices which are ...
John Ladasky's user avatar
  • 1,046
0 votes
0 answers
55 views

linux/C/serial port : VTIME and VMIN timeouts of termios structure do not work

I am developing a code which communicates with a serial port (in fact with a usb rs485 adapter but hey) in linux/C. And no matter how much I change the VTIME and VMIN parameters of the termios ...
PAvel Tchoudakov's user avatar
-1 votes
0 answers
26 views

How to "proxy" serial com port between programm and physical device?

I have a programm that communicate with my device via usb cable and serial protocol. I've already tried use "Serial Port Monitor" software, but it doesn't work as I expected. Is there any ...
lkj 12's user avatar
  • 1
1 vote
0 answers
33 views

listen to whether a device was connected to the port or not with serial port

i am creating a project with Arduino and Nodejs (Serial Port) which reads the pulses of an ecoder that is connected to the board, could someone tell me what I have to take into account to make my ...
Reina's user avatar
  • 29
1 vote
1 answer
105 views

Send commands via serial connection using plink from bash script and exit

I'm writing a bash script on a Windows machine that enters a PetaLinux machine over a serial connection, performs some commands, and should exit back to the bash script to continue performing commands....
GibberGabber's user avatar
0 votes
0 answers
32 views

How can I get data from the /dev/ttyS0 port on the SIM7600E-H Rpi 4 model when the internet is on?

When I want to receive data via GPS, the /dev/ttyS0 serial port is busy and I cannot receive data. I cannot make calls or SMS. I can receive GPS data when the internet is turned off. I would like your ...
Hüseyin KOÇ's user avatar
0 votes
0 answers
54 views

Raspberry Pi : usb serial port can't connect to the driver PL2303

i want to connect a converter usb - RS232 to a screen ( to control it via hex code). I'm using a RPI3 with these properties : PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="...
Mayssa Bizid's user avatar
0 votes
0 answers
78 views

beaglebone black debian uart example c programing

I am running Embedded Linux. but right now I'm new. I want your help on something. Debian distribution is installed in Beaglebone. I want to make a uart communication. I am using the beagbone board P9-...
mmkaratokus's user avatar
-1 votes
1 answer
104 views

SerialPort Migration from .NET 4.8 to .NET 6 - .NET 8

I want to migrate from .NET 4.8 to .NET 8, in previous version of .NET, we can use serial port by create SerialPort object and assign read event to it for get response. I want to used ReadAsync method ...
mostafa aghili's user avatar
0 votes
2 answers
89 views

Could not list serial ports with web serial API in chromium 118.0.5993.88 (snap) on ubuntu 20.04

I want to establish a serial connection with a esp32 (connected via USB to my PC) and a test website on chromium (version 118.0.5993.88, Ubuntu 20.04) but the list of serial connections is empty on ...
micr0tech's user avatar

1
2 3 4 5
233