Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Serial Communication Error

I am new to python. I was facing an issue while using serial communication. I am sending 1 byte data from a device to the raspberry pi board using serial to USB converter. The error I was getting is given below
Attribute error: 'Serial' object has no attribute 'inwaiting'

The program is given below,

import serial

ser = serial.Serial(port='dev/ttyUSB0',baudrate=9600)
data =


Please reply as soon as possible

Thank you,
ser.inWaiting() not ser.inwaiting.

Use proper code tags in this forum.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die:
All humans together. We don't need politicians!

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Serial to telnet using Python Charles_Linquist 2 242 Jun-17-2019, 04:37 PM
Last Post: DeaD_EyE
  Reading mixed ASCII/binary serial input N8UR 1 202 Jun-11-2019, 02:49 PM
Last Post: N8UR
  Reading data from serial port as byte array vlad93 1 573 May-18-2019, 05:26 AM
Last Post: heiner55
  Simple inter-process communication: Switching from Perl to Python Pappy 1 159 May-10-2019, 12:29 AM
Last Post: Pappy
  How can I only receive data from selected serial numbers MasterCATZ 7 303 Apr-20-2019, 08:35 AM
Last Post: MasterCATZ
  Multiple process access to a serial port mkonnov 0 159 Apr-14-2019, 12:42 PM
Last Post: mkonnov
  Trouble writing over serial EngineerNeil 1 231 Apr-07-2019, 08:17 PM
Last Post: j.crater
  Serial communication with raspberry pi 3B and Xbee kj7 0 231 Mar-25-2019, 03:39 AM
Last Post: kj7
  Serial USB problem DPaul 3 360 Feb-21-2019, 02:18 PM
Last Post: Larz60+
  Hex and serial variable deal0703 8 426 Feb-17-2019, 09:48 PM
Last Post: deal0703

Forum Jump:

Users browsing this thread: 1 Guest(s)