About 105,000 results
Open links in new tab
  1. How to read and write from a COM port using PySerial?

    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...

  2. Python Serial: How to use the read or readline function to read more ...

    Apr 18, 2013 · 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',\\ …

  3. Python: Writing to and Reading from serial port - Stack Overflow

    May 19, 2015 · Python: Writing to and Reading from serial port Asked 12 years, 2 months ago Modified 6 years ago Viewed 171k times

  4. python - How to read data fully from serial port? - Stack Overflow

    Jul 4, 2018 · I'm trying to read a JSON string written to serial port, using the following code based on PySerial library: while True: if serial_port.in_waiting > 0: buffer = serial_port.readline...

  5. python - Failing to get response from serial port using pyserial ...

    0 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 …

  6. python - pyserial - how to continuously read and parse - Stack Overflow

    pyserial - how to continuously read and parse Asked 7 years, 8 months ago Modified 7 years, 8 months ago Viewed 16k times

  7. python - PySerial non-blocking read loop - Stack Overflow

    Remember Python has a GIL and at one time only one thread can execute. Now please note that pyserial module is a wrapper over an OS implementation of accessing the serial port.

  8. Processing raw data read from serial port with Python serial library ...

    Oct 22, 2016 · Somewhere I read serial and pySerial is the same thing but I cannot find if that is true. All I know is I am using Python 2.7.9 with Raspbian OS. 2: I've read there are read() and readline() …

  9. Reading serial data in realtime in Python - Stack Overflow

    Nov 11, 2013 · 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 …

  10. python - Reading from serial port [loop] - Raspberry Pi Stack Exchange

    5 I would like to read from the USB serial port from time to time in a loop. I can open the port and read data with: import serial ser = serial.Serial ('/dev/ttyACM0', 9600) while 1 : ser.readline () An Arduino …