SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By pukp9ukP(OH*&Yp9u;o
#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,
By pukp9ukP(OH*&Yp9u;o
#201414
You might notice this in my code:

print("Sending: x")
ser.write('x')


Inserted to see if any effect....there was none.
By pukp9ukP(OH*&Yp9u;o
#201419
Updated Python code:

import serial
ser = serial.Serial('/dev/ttyUSB0') # open serial port
line = ser.readline()
print line

print(" ")
print("--- [COM Port Settings ]--------------------------------------")
print(" ")

print("Serial Port Actually In Use: "+ser.name)# check which port being used
print(ser.baudrate)
print(ser.bytesize)
print(ser.parity)
print(ser.stopbits)
print(ser.timeout)

print(" ")
print("--- [OpenScale Data] -----------------------------------------")
print(" ")

with serial.Serial('/dev/ttyUSB0', timeout=1) as ser:
x=0
while x<10:
line = ser.readline()
print line
x=x+1

print(" ")
print("--- [end] ----------------------------------------------------")
print(" ")




Nothing new really, just a cleanup and readout of port status to verify. Here's the result:



--- [COM Port Settings ]--------------------------------------

Serial Port Actually In Use: /dev/ttyUSB0
9600
8
N
1
None

--- [OpenScale Data] -----------------------------------------

al Load Cell Converter version 1.0

By SparkFun Electronics

No remote sensor found


Minimum time between reports: 485

Press x to bring up settings

Readings:

1463,-72076.28,lbs,19.44,0,




--- [end] ----------------------------------------------------

By pukp9ukP(OH*&Yp9u;o
#201421
It was with utter frustration that I did a hard reset on an apparently functioning OpenScale board....well, functioning to transmit exactly one reading.

I shorted RX and GND; applied power.

Problem solved.

It's the simple things that trip ya up.....


Image