title: read weighing scale data via RS232 to USB cable in python
body: <p>I am trying to read data from <strong>weighing scale YH-T7E</strong> using raspberry pi via RS232 to USB cable in pyhon. However, when I am reading the data via it gives me empty string.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import serial
  import time
  ser = serial.Serial('/dev/ttyUSB0',
                      baudrate=9600,
                      parity=serial.PARITY_EVEN, 
                      stopbits=serial.STOPBITS_ONE,
                      bytesize=serial.SEVENBITS,
                      timeout = 1)
  
  while True:
      print(ser.read())
  </code></pre>
  
  <p>The output of above code is: </p>
  
  <pre><code>b''
  </code></pre>
  
  <p>I have also tried solution from <a href="https://stackoverflow.com/questions/44053983/pyserial-prints-empty-b-from-a-usb-serial-port">this</a> post but it gives nothing since it keeps on waiting:</p>
  
  <pre><code>while True:
      data = ''
      while ser.inWaiting() &gt; 0:
      data += ser.read()
      if data:
          print("Received: ", data)
  </code></pre>
  
  <p>I have verified RS232 is properly connected with the laptop:</p>
  
  <pre><code>[ 6105.752153] usb 1-1.2: ch341-uart converter now attached to ttyUSB1
  </code></pre>
  
  <p>Even when I used minicom, configured baud rate and other parameters, still no data received.</p>
  
  <p>Here is the <a href="http://www.scale-israel.co.il/wp-content/uploads/2019/05/T7E.pdf" rel="nofollow noreferrer">YH-T7E manual</a> for the reference</p>
  
  <p>Kindly assist me?</p>