pyserial Questions

2

Solved

I write a program to that send and recive data from serial, but I have a problem, I want to create a function "connect()" or a class, and when I press a button, the function is executed, but if I c...
Fragrant asked 8/3, 2019 at 20:21

2

Solved

I've written a Python3 script which runs on Raspberry Pi Zero W that collects data from an IMU sensor (MPU9250) and creates 3 different angle values; roll, pitch, yaw. Which looks like this: def ma...
Pride asked 2/11, 2020 at 8:30

11

Solved

I have installed the latest pySerial on my Ubuntu box with python 2.7.2, and it works fine for most things, but whenever I try to import the 'tools' package, it says that it can't find 'tools'. The...
Revet asked 1/1, 2013 at 6:35

1

Solved

I'm curently working on a testbench for some pcbs. They can be controlled though USB. I wrote some python code to send (using pySerial) orders to one card via the serial device "/dev/ttyACM0&q...
Hydrodynamics asked 7/7, 2020 at 15:53

2

Solved

I've written some code to communicate between two Raspberry Pi's, using identical HC-12 433Mhz transceivers. I was able to successfully echo between the two Pi's using a direct serial connection an...
Accessible asked 2/7, 2020 at 13:34

1

I need to communicate with some device using serial port. I know this device parameters (boudrate etc.). I also know that this device waits untill it receives a new line character (I don't know uni...
Duodiode asked 9/12, 2017 at 12:43

1

Solved

I'm using pytest to run some tests for my project. Sometimes (about 30 to 50%) I get an error after the test finished. But this is preventing the testengine to create the testreport, which is reall...
Muntin asked 23/4, 2020 at 7:29

5

Solved

I'm trying to connect to my phone from my Windows 7 PC using PySerial with the following code: import wmi import serial c = wmi.WMI() modem = c.query("SELECT * FROM Win32_POTSModem").pop() ser = ...
Pentagon asked 12/6, 2010 at 13:15

3

Solved

I connect to my Arduino board with the following Python code. device=glob.glob("/dev/ttyUSB*")[0] time.sleep(1) arduino = serial.Serial(device, 115200, timeout=5) It generally works, but somehow...
Bloodmobile asked 2/12, 2011 at 16:32

1

Solved

I am trying to use pySerial==3.4, and find the documentation on serial.Serial.flush() rather lacking: Flush of file like objects. In this case, wait until all data is written. Source Quest...
Runofthemill asked 19/3, 2020 at 23:52

3

Solved

In Python 3 I imported the pySerial library so I could communicate with my Arduino Uno by serial commands. It worked very well in Python 2.7 but in Python 3 I keep running into a error it says this...
Mccowan asked 26/2, 2016 at 3:24

5

Solved

Python version: 2.6.6 PySerial version: 2.5 Arduino board: Duemilanove 328 I have written some code to simulate some hardware I'm working with and uploaded it to the Arduino board. This code work...
Mia asked 16/11, 2011 at 9:51

1

I'm using an Arduino Nano, previously an UNO, to collect data from sensors and then send the data back over a USB connection through a powered hub to a Raspberry Pi model B running Jessie 4.1.19+ M...
Edgewise asked 9/2, 2017 at 18:53

8

i'm trying and, so far, failing to use python asyncio to access a serial port. i'd really appreciate any tips on using the new python async framework on a simple fd. Cheers! James
Copilot asked 9/2, 2014 at 22:42

0

I am making a connection with python using pyserial with a UART port. As I send the command using serial.write my output is received but my serial port does not break connection. As I need to send ...
Tallinn asked 2/1, 2020 at 14:7

3

Solved

serial.write() method in pyserial seems to only send string data. I have arrays like [0xc0,0x04,0x00] and want to be able to send/receive them via the serial port? Are there any separate methods fo...
Lorimer asked 23/1, 2009 at 14:2

2

Solved

So i am reading (and displaying with a tkinter textbox) data from a serial connection, but i can't process the returning data as i would like to, in order to run my tests. In more simple terms, eve...
Acrobatics asked 4/11, 2019 at 10:3

2

I wrote the below Python program to communicate with my D-Link DWM-156 GSM modem. This program wait for incoming calls and as it receive a RING alert, it accepts that call. Fortunately it works fi...
Divulgence asked 20/6, 2015 at 12:38

4

I am reading data from a serial port, sent by an arduino. I have two files, which I use separately to write some code and try differents things. In one of them, I read the data and I draw it usin...
Jubilant asked 26/4, 2016 at 15:29

2

Solved

I am trying to do some serial input and output operations, and one of those is to send an 8x8 array to an external device (Arduino). The pySerial library requires that the information that I send b...
Sangfroid asked 25/10, 2016 at 9:9

2

Solved

I am using docker bind mount to map the host /dev/serial/ folder generated by Ubuntu (which contains identifying symlinks to serial devices such as /dev/ttyUSB0). The full docker container run comm...
Franchot asked 29/11, 2018 at 21:36

3

Solved

I am trying to establish a two-way communication via Python3. There is a laser range finder plugged into one of my USB ports and I'd like to send/receive commands to that. I have a sheet of command...
Interactive asked 31/7, 2017 at 9:20

2

Solved

Hi I'm trying to write a module that lets me read and send data via pyserial. I have to be able to read the data in parallel to my main script. With the help of a stackoverflow user, I have a basic...
Indole asked 24/8, 2019 at 17:52

4

Solved

I am reading serial data like this: connected = False port = 'COM4' baud = 9600 ser = serial.Serial(port, baud, timeout=0) while not connected: #serin = ser.read() connected = True while Tru...
Sherl asked 9/7, 2013 at 16:31

4

Solved

I am using a script in Python to collect data from a PIC microcontroller via serial port at 2Mbps. The PIC works with perfect timing at 2Mbps, also the FTDI usb-serial port works great at 2Mbps (b...
Underground asked 11/11, 2013 at 13:58

© 2022 - 2024 — McMap. All rights reserved.