Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
89 views

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 ...
Isaia Ismaele's user avatar
0 votes
0 answers
37 views

I am reading raw hex data from a TI IWR1843BOOST radar module through pyserial. The radar is configured with a measurement rate of 35 fps, so the python code is expected to receive a single packet ...
radastro's user avatar
  • 113
2 votes
1 answer
132 views

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 ...
Luc Lagarde's user avatar
0 votes
0 answers
75 views

I have a Ublox EVK-F9P GNSS receiver and i would like to extract the NMEA and RTCM message outputs, along with RF spectrum data. I have configured my receiver using u-center and i can extract all 3 ...
cappo's user avatar
  • 19
1 vote
0 answers
100 views

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 ...
Xiaojie Jia's user avatar
0 votes
0 answers
82 views

So I bought the following relay and board (comes with ESP-01 8266 module) that I want to control directly via serial commands. https://www.aliexpress.com/item/1005004090736903.html?spm=a2g0o....
Jeff M's user avatar
  • 115
2 votes
1 answer
78 views

I want to read data from my arduino and show it on a tkinter window, it works nicely but when I sent the Data on the arduino faster then every 10ms it resevieses many lines that are not full like this:...
TBK's user avatar
  • 43
0 votes
0 answers
35 views

I've ans issue with pyserial threaded protocol I've overloaded protocol class (no detail on what is protocol is relevant here) class myProtocol(Protocol): def __init__(self): super().__init__() ...
proff's user avatar
  • 19
1 vote
0 answers
133 views

I'm using pyserial with most of my project and I often have communication issue. Software Setup: Windows 10 Python 3.11.9 Pyserial 3.5 (installed with pip on venv) port settings: self.port = serial....
Antoine's user avatar
  • 11
0 votes
0 answers
285 views

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 ...
Foad S. Farimani's user avatar
0 votes
2 answers
85 views

I am using python to interogate a USB Serial device (a nino tnc) I have 3 separate systems. Linux ubuntu with no issues Linux Rpi with no issues Windows 10 with issues. As it responds correctly in the ...
David Leckie's user avatar
0 votes
0 answers
45 views

I am currently working on software bootloader implementation and using Python to handle sending data from my PC and receiving acknowledgement signals. Problem that I stumbled upon is that I am getting ...
dinajs's user avatar
  • 118
0 votes
2 answers
89 views

How would I write the code so if I recieve 'hello' it runs a function? import serial ser = serial.Serial(port='/dev/tty.usbmodem11201',baudrate=9600) while True: value= ser.readline() ...
Lukas Sanders's user avatar
1 vote
2 answers
131 views

I am working on a personal project that consists of synchronizing my addressable ws2811 light strip to Spotify. There is no real-time audio analysis. My python program reads a JSON file, and based on ...
Edouard Marsolais's user avatar
1 vote
1 answer
105 views

I'm learning python and asyncio and after having success with asyncio for a TCP client/server I took my first stab at creating a serial client/server using pyserial-asyncio running in bash on a ...
Ed Morton's user avatar
  • 209k
0 votes
2 answers
250 views

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 ...
Angel Hadzhiev's user avatar
0 votes
1 answer
554 views

I'm trying to connect to a device using a serial port. I tried two ways – 1) pyserial in Python and 2) PuTTY. I managed to connect to the device and use it, using PuTTY. However, in Python I can only ...
mizix's user avatar
  • 19
-1 votes
1 answer
102 views

I have a dictionary with commands (ASCII with extended characters and hex numbers), that should be sent over serial to a microcontroller. But I'm not able to get the right format for the value to be ...
BEsmart's user avatar
  • 67
1 vote
0 answers
112 views

I've been consistently running into a problem when running some basic code using the PySerial library in Python. Specifically, when I use the write function given by PySerial, I lose bytes of the ...
namettra's user avatar
1 vote
1 answer
150 views

I wrote the function below to read data from a serial port. When I call it to read 33 bytes, it stops reading halfway. The bytearray msg returned contains only the first few bytes, the rest is lost. ...
Caroline 's user avatar
0 votes
0 answers
159 views

I am using a pymodbus library to fetch data through modbus protocol. I am using a MOXA Nport 5150 RS485 to Ethernet converter for fetching data through Real COM Mode in Windows Server 2022. For a ...
Nikhil B's user avatar
0 votes
1 answer
70 views

I want to read real time data from my arduibo, plot it in time domain and then do fft of that data and plot that (frequency domain) but I have no clue how to do it. can’t seem to transfer data array ...
Nemanja Nenadić's user avatar
0 votes
0 answers
39 views

I am working on a Python-based testing script for an OBU board accessed via /dev/ttyUSB0. The script tests various peripherals like Bluetooth (/dev/ttyLP1) and GNSS (/dev/ttyLP3) using separate ...
Brinto James's user avatar
0 votes
0 answers
26 views

I run this function on a buttton click. When I try closing the port I do not get any error, but by trying to connect to port one more time, I get this erro "Cannot configure port, something went ...
Sedna.Kianfarooghi's user avatar
1 vote
0 answers
54 views

Hi In my Project my raspberry pi act as a server and whenever the data came from the tcp client it is writing the same data in Serial Uart but when doing write operation in Serial Uart some character ...
Sathish's user avatar
  • 435
1 vote
0 answers
382 views

Hi i am working with python serial project i want to change the serial port parity value at runtime it is not working properly especially in odd parity mode it is not sending correct data import ...
Sathish's user avatar
  • 435
0 votes
1 answer
98 views

My question is kind of general, so I haven't included any code here. I am working on a project to control hardware and read sensors with an arduino board via a Python/tkinter interface on a PC. The ...
lwadz88's user avatar
  • 33
1 vote
0 answers
68 views

I am trying to get data from my PLC to my PC(Python). Currently I'm using Modbus RTU Serial communication with pymodbus. But there are some problems with the sent/received data, and I don't know if it'...
Violet's user avatar
  • 11
1 vote
0 answers
109 views

I'm trying to use the pySerial library to access an FPV controller through the COM port. I have this code: port = '/dev/cu.usbmodem0x80000001' baudrate = 115200 import serial import time def ...
theUkrainian's user avatar
0 votes
0 answers
54 views

I am trying to write commands and read responses to/from a serial port (RS232) on a laboratory pump. I have the pump connected to my PC via a USB-to-serial adaptor, and have been able to send commands ...
cringle's user avatar
  • 13
1 vote
1 answer
130 views

I am trying to write a python script that receives serial input from an Arduino (with servo and ultrasonic sensor) on com5 to plot a radar like graph. I have done everything I have found on forums ...
Loft's user avatar
  • 19
0 votes
0 answers
175 views

I am currently running a python program where pyserial reads incoming serial data to then output given signals with an Arduino using pyfirmata based on that data received. However, this data needs to ...
MHuff25's user avatar
1 vote
0 answers
66 views

Using python 3.7, and pyserial readline on an Adafruit GPS breakout only outputs encoded byte data. How do i decode? It is not utf-8, or ASCII. Here is a sentence: b'[}\xc5\xc5\xf5\x9d\x9d\x8d\x9f\x8d\...
Stuart Stahl's user avatar
0 votes
0 answers
54 views

I'm connecting to a Lakeshore 336 Temperature controller from Linux Mint via pyserial. My app works relatively well and has operated for months at a time without error. However, it sometimes happen ...
Alexis R Devitre's user avatar
0 votes
0 answers
47 views

I am reading from serial ports and writing the output to a text file. Yet no matter where I put cal, the program will stop reading from it or writing the output after a few seconds. The mm and light ...
Theodore Leon's user avatar
0 votes
0 answers
300 views

I am trying to create an automated setup for measuring pH values of solutions. As part of this, I will interface with a Mettler-Toledo FiveEasy Plus pH meter using a RS232-USB cable connected to my PC....
user23509042's user avatar
0 votes
0 answers
75 views

I have a specific instrument that needs to deassert the RTS line before communication can work. On an old script I was doing a basic serial.serial.rts=False. What is the equivalent with pyvisa? I ...
bserra's user avatar
  • 540
0 votes
1 answer
36 views

I want to use pySerial to communicate with an Agilent 33250A using the built in RS-232 port. I went through the RS-232 configuration in the user manual and wrote the following code, which should set ...
user171780's user avatar
  • 3,255
-2 votes
1 answer
147 views

I have qr and bar Code Reader GM875. I connected it to raspberry pi 4 model b via uart, and wrote python code to get result, but it don't work correctly. from my script i get wrong data bytes like ...
AMIR's user avatar
  • 1
1 vote
1 answer
83 views

I am trying to write a code that will allow me to send output to my microcontroller (Sparkfun Redboard) using Python code. I want to pass different variables (CMJ or SJ) I want the built-in LED to ...
Freddie Lee-Kim's user avatar
0 votes
0 answers
22 views

I'm working on collecting a few common configuration steps for jumping network sensors via the console port. Most of what I'll tried is working great, however I have noticed that if I send a command ...
Petter Östergren's user avatar
1 vote
0 answers
49 views

I am an absolute beginner for coding and I'm currently trying to design a turbine performance display using an Arduino Uno that will communicate the voltage reading using the input of pin A1. This ...
Jamie Hadley's user avatar
0 votes
1 answer
38 views

I have a flask app.py that I'm developing on my local machine. The flask app uses a serial interface (pyserial) that is connected to a remote machine. I setup PyCharm for remote deployment on the ...
Knyq's user avatar
  • 45
1 vote
0 answers
66 views

I have a USB device that sometimes sends serial data through USB port. Issue is that the device is faulty and sometimes for no reason it disconnects and connects again to PC. Not too large of an issue,...
Jokubas11's user avatar
  • 182
1 vote
1 answer
72 views

I set up a test where two uart-to-usb adapters are connected together. I send 14 byte data packets at a rate around 100 Hz. The receive thread only seems to be able to operate up to around 60 Hz ...
tybar's user avatar
  • 21
0 votes
1 answer
150 views

I would like to send such array for example via pyserial: [49, 56, 48] or [82] I tried such solution before sending: print(list(str(180).encode())) And it gives me array as I want. But when I tried ...
Andrew's user avatar
  • 2,197
0 votes
2 answers
201 views

I use Win 10, I was trying to connect Python to Arduino using serial.Serial, and it gave an attribute error. I think this error is fixed, but now it says: Also, Arduino doesn't connect, I am in ...
Syed Mohammad Hasnain Raza Riz's user avatar
1 vote
2 answers
1k views

I have a python script that is supposed to run a Linux update on an iMX6 device. I can reboot Linux via serial connection. I can see the device rebooting (console output is transferred). However, when ...
Markus Klingsiek's user avatar
0 votes
1 answer
142 views

I'm attempting to write a byte stream to a serial device (EDIT: connected via USB) using PySerial in order to upload a file. The device manufacturer recently switched from a Teensy-based board to a ...
Jason Ramboz's user avatar
1 vote
0 answers
79 views

I have a Python application that opens a serial connection to a COM port. This COM port is a USB connected to some external hardware. When I run the application from the terminal, it works as expected....
Abhinav Ramesh's user avatar

1
2 3 4 5
47