About 44,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 - Full examples of using pySerial package - Stack Overflow

    Can someone please show me a full python sample code that uses pyserial, i have the package and am wondering how to send the AT commands and read them back!

  3. python - Pymodbus Basic Example - Stack Overflow

    Feb 9, 2022 · Using a third party GUI called serial port monitor (www.serial-port-monitor.org) I was able to more or less "stumble upon" the proper hexadecimal inputs needed to turn a discrete output on …

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

    Apr 18, 2013 · Python Serial: How to use the read or readline function to read more than 1 character at a time Asked 12 years, 8 months ago Modified 1 year, 8 months ago Viewed 477k times

  5. python - No module named serial - Stack Overflow

    Serial is not included with Python. It is a package that you'll need to install separately. Since you have pip installed you can install serial from the command line with:

  6. Access USB serial ports using Python and pyserial

    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

  7. python to arduino serial read & write - Stack Overflow

    The Python Serial.read function only returns a single byte by default, so you need to either call it in a loop or wait for the data to be transmitted and then read the whole buffer.

  8. python - Using PySerial is it possible to wait for data ... - Stack ...

    I've got a Python program which is reading data from a serial port via the PySerial module. The two conditions I need to keep in mind are: I don't know how much data will arrive, and I don't know w...

  9. python - What is the equivalent of Serial.available () in pyserial ...

    Jul 29, 2016 · String message = ""; while (Serial.available()){ message = message + serial.read() } In Arduino C, Serial.available() returns the number of bytes available to be read from the serial buffer …

  10. linux - python serial port - Stack Overflow

    Apr 20, 2016 · I want to communicate with my serial port in python. I installed pyserial and uspp for linux: import serial ser = serial.Serial ('/dev/pts/1', 19200, timeout=1) print ser.portstr #check which...