pyserial Questions
1
Until recently I was happily using Win 7 + Python.x and PySerial.
Lately I upgraded to Win 10, now I have a problem running some Python serial code, which I had working on Win 7.
However, I can ev...
Crop asked 6/12, 2018 at 10:57
7
Solved
Whenever i execute the code below it gives me following Error:
ImportError: cannot import name 'Serial' from 'serial' (unknown location)
Code:
from serial import Serial
arduinodata = Serial('co...
5
I'm having trouble to read more than one character using my program, I can't seem to figure out what went wrong with my program.
import serial
ser = serial.Serial(
port='COM5',\
baudrate=9600,\...
Priorate asked 18/4, 2013 at 8:22
2
Solved
I'm using pyserial to communicate with a embedded devise.
ser = serial.Serial(PORT, BAUD, timeout = TOUT)
ser.write(CMD)
z = ser.readline(eol='\n')
So we send CMD to the device and it replies w...
8
I know this question have been asked several times, but none of the solutions I saw solved my problem.
I have been trying to use the serial library from Sublime Text 2 in my mac.
import serial
...
5
Note: I'm using Python 2.7, and pySerial for serial communications.
I found this article which lists two ways: http://www.zaber.com/wiki/Software/Python#Displaying_a_list_of_available_serial_ports...
Abort asked 3/7, 2012 at 2:51
2
Solved
I am trying to write a simple python script that sends a gcode command to my wanhao D9 motherboard printer, running Marlin. I am running the python script on a raspberry pi that is connected to the...
Aerodyne asked 28/1, 2020 at 21:10
9
Solved
I'm new to Python. According to the internets I was looking for the module pyserial after receiving this error:
ImportError: No module named serial
I first tried to install pywin32, it went well...
Matilda asked 13/12, 2011 at 14:47
3
I have windows 7 64 bit and Python 3.6
I literally dig entire web for solving this - and nothing works sadly.
AttributeError Traceback (most recent call last)
<ipython-input-150-80ee8bd5f0f2&...
Elite asked 8/11, 2017 at 23:22
2
Solved
How do I access the USB port using pyserial? I have seen an example with:
import serial
ser = serial.Serial('/dev/ttyUSB0')
I used to access the serial port from MATLAB on Windows and using the...
Pleopod asked 11/6, 2011 at 14:31
4
Solved
I'm trying to read lines from an Arduino board with a very simple code (for the sake of showcasing the problem) on Linux.
Python code:
# arduino.py
import serial
arduino = serial.Serial('/dev/tty...
13
I am searching for a simple method to list all available com port on a PC.
I have found this method but it is Windows-specific: Listing serial (COM) ports on Windows?
I am using Python 3 with pyS...
7
Solved
I am trying to write a program in Python that will loop to keep checking the serial port (COM4) and print out a message when the character "1" is read from the serial port. I want to send "1" over ...
Carcinogen asked 28/11, 2011 at 2:32
3
Solved
Environment
Linux Mint 17.1
Python 2.7
pyserial 2.7
Arduino UNO rv3
Desired Behaviour
I'm trying to send three values from a Python application to Arduino.
It works when doing the following ...
Oatis asked 9/1, 2015 at 10:1
5
Solved
I'm trying to use pyserial to send data to an arduino. But when I open the COM port it sets DTR low and resets the board. However, I have my arduino code setup such that I have to put it into seria...
Policy asked 17/3, 2013 at 12:48
4
Solved
I'm automating a configuration process for an embedded board. To enter the setup screen I need to send "Ctrl-C" command.
This is NOT to interrupt a process I'm running locally, KeyboardInterrupt w...
Assembler asked 10/8, 2011 at 21:34
2
I have some Devices connected to my Notebook via a RS485 to USB Converter and want to detect them in a python programm.
I'm running this Code with PyCharm Community Edition on a Windows 7 Noteboo...
Scandinavian asked 21/1, 2019 at 10:57
4
I'm having a problem with serial IO under both Windows and Linux using pySerial. With this code the device never receives the command and the read times out:
import serial
ser = serial.Serial('/de...
Favors asked 1/9, 2011 at 5:57
1
Solved
I am making a small webpage which controls a Microbit and shows some sensor data.
I am trying to implement asynchronous read and writes to the microbit through my flask backend based on the things ...
Rabbitry asked 3/8, 2021 at 16:47
5
Solved
I am reading data from a microcontroller via serial, at a baudrate of 921600. I'm reading a large amount of ASCII csv data, and since it comes in so fast, the buffer get's filled and all the rest o...
Nonet asked 12/4, 2012 at 13:53
2
Solved
I am new the Python 3.7 and I am trying to read bytes from a serial port using the following code. I am using pySerial module and the read() function returns bytes.
self.uart = serial.Serial()
se...
Whereto asked 1/5, 2019 at 18:11
3
Solved
I have a serial Python program, Linux environment (Raspbian / Raspberry Pi), that uses a serial port via a USB-to-serial adapter. I need to handle a situation when the user unplugs the USB adapter ...
Toucan asked 20/1, 2018 at 12:37
2
Solved
I have Python 3.6.1 and PySerial installed. I am able to get a list of COM ports connected. I want to send data to the COM port and receive responses:
import serial.tools.list_ports as port_list
po...
4
Solved
I have a robotics type project with an Arduino Uno, and to make a long story short, I am experimenting with some AI algorithms. However, I need to implement some high level matrix algorithms that w...
2
Solved
I'm new to python and I need a list of available serial ports to choose one of them in a program. According to This, the serial.tools.list_ports module can do that for me by executing serial.tools....
Humbert asked 2/8, 2019 at 10:21
1 Next >
© 2022 - 2024 — McMap. All rights reserved.