pH error while running

  • Thread starter Thread starter kdx7214
  • Start date Start date
  • Tagged users Tagged users None

kdx7214

Valuable Member
View Badges
Joined
Jan 5, 2020
Messages
1,054
Reaction score
877
Location
Columbia, MO, US
Rating - 0%
0   0   0
I setup my pH probe today and am having a problem. While it's running it randomly gives an error:

ph subsystem: Failed read probe:Sump pHError:strconv.ParseFloat: parsing "7.647\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x80": invalid syntax

It then ceases to work. I can reboot the pi and it will sometimes start to work, but other times it won't. How can I figure out what's causing this and fix it?

Also, under the pH there is an entry called "Chart Unit". I've left this blank and it didn't complain, but I have no clue what that would be. I tried putting things in it and couldn't tell that it did anything at all.
 
I setup my pH probe today and am having a problem. While it's running it randomly gives an error:

ph subsystem: Failed read probe:Sump pHError:strconv.ParseFloat: parsing "7.647\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x80": invalid syntax

It then ceases to work. I can reboot the pi and it will sometimes start to work, but other times it won't. How can I figure out what's causing this and fix it?

Also, under the pH there is an entry called "Chart Unit". I've left this blank and it didn't complain, but I have no clue what that would be. I tried putting things in it and couldn't tell that it did anything at all.
That error is a setting not quite right. This should sort it out.

Open the Pi SSH terminal and run the following command.

sudo nano /boot/config.txt

This will open the file for editing. I think you'll see the line below.

dtparam=i2c_arm=on,dtparam=i2c_arm_baudrate=10000

Change that line to these two lines, the comma needs removed. If you don't have the line above make sure you have the following two lines.

dtparam=i2c_arm=on
dtparam=i2c_arm_baudrate=10000


Then press CTRL + S on keyboard to save and CTRL + Z to exit.

Then power cycle the controller and the error should be gone.

I think the chart unit is a symbol for whatever parameter you're viewing like a degree symbol.
 
That error is a setting not quite right. This should sort it out.

Open the Pi SSH terminal and run the following command.

sudo nano /boot/config.txt

This will open the file for editing. I think you'll see the line below.

dtparam=i2c_arm=on,dtparam=i2c_arm_baudrate=10000

Change that line to these two lines, the comma needs removed. If you don't have the line above make sure you have the following two lines.

dtparam=i2c_arm=on
dtparam=i2c_arm_baudrate=10000


Then press CTRL + S on keyboard to save and CTRL + Z to exit.

Then power cycle the controller and the error should be gone.

I think the chart unit is a symbol for whatever parameter you're viewing like a degree symbol.

The baudrate setting was completely missing so I added that back in. It sounds more like a C style null terminated string being sent to an api that needs a non-c style string, but I'll wait and see what I get. Thanks :)
 
The baudrate setting was completely missing so I added that back in. It sounds more like a C style null terminated string being sent to an api that needs a non-c style string, but I'll wait and see what I get. Thanks :)
Great, that should do it. The Pi doesn't support I2C clock stretching so slowing the bus down is a way to achieve it, without it when the data comes in the end character isn't recognized so reef-pi errors out as the data isn't as expected.
 

TOP 10 Trending Threads

WHICH AREA OF REEFKEEPING MOST NEEDS A GENUINE BREAKTHROUGH?

  • Lighting

    Votes: 3 4.2%
  • Pumps and water flow

    Votes: 2 2.8%
  • Water testing and monitoring

    Votes: 24 33.3%
  • Controllers, apps, and device compatibility

    Votes: 8 11.1%
  • Filtration and nutrient export

    Votes: 1 1.4%
  • Automatic feeding

    Votes: 7 9.7%
  • Leak prevention and tank safety

    Votes: 7 9.7%
  • Equipment reliability and repairability

    Votes: 15 20.8%
  • Other (leave a comment in the thread)

    Votes: 5 6.9%
Back
Top
Home
Post thread…
Market
What's new