- Sat Dec 15, 2018 6:05 pm
#201413
Problems, problems, problems.....
Have Openscale and load sensor; connecting with Raspberry Pi 3. Connects all right, but I receive just one reading! Keeps writing line after line, but no data is displayed.
Also, typing "x" like the firmware asks does....nothing at all. Hmmmmm....how do I update firmware with an RPi 3?
HERE is the python script:
import serial
ser = serial.Serial('/dev/ttyUSB0') # open serial port
line = ser.readline()
print(" ")
print("--------------------------------------------------------------")
print(" ")
print("Serial Port Actually In Use: "+ser.name)# check which port being used
print(" ")
print("Sending: x")
ser.write('x')
print(" ")
print("--- [OpenScale Data] -----------------------------------------")
print(" ")
with serial.Serial('/dev/ttyUSB0', timeout=1) as ser:
while True:
line = ser.readline()
print line
HERE is the screen:
--------------------------------------------------------------
Serial Port Actually In Use: /dev/ttyUSB0
Sending: x
--- [OpenScale Data] -----------------------------------------
l Converter version 1.0
By SparkFun Electronics
No remote sensor found
Minimum time between reports: 485
Press x to bring up settings
Readings:
1463,-72102.87,lbs,20.81,0,
Have Openscale and load sensor; connecting with Raspberry Pi 3. Connects all right, but I receive just one reading! Keeps writing line after line, but no data is displayed.
Also, typing "x" like the firmware asks does....nothing at all. Hmmmmm....how do I update firmware with an RPi 3?
HERE is the python script:
import serial
ser = serial.Serial('/dev/ttyUSB0') # open serial port
line = ser.readline()
print(" ")
print("--------------------------------------------------------------")
print(" ")
print("Serial Port Actually In Use: "+ser.name)# check which port being used
print(" ")
print("Sending: x")
ser.write('x')
print(" ")
print("--- [OpenScale Data] -----------------------------------------")
print(" ")
with serial.Serial('/dev/ttyUSB0', timeout=1) as ser:
while True:
line = ser.readline()
print line
HERE is the screen:
--------------------------------------------------------------
Serial Port Actually In Use: /dev/ttyUSB0
Sending: x
--- [OpenScale Data] -----------------------------------------
l Converter version 1.0
By SparkFun Electronics
No remote sensor found
Minimum time between reports: 485
Press x to bring up settings
Readings:
1463,-72102.87,lbs,20.81,0,