Device shows online but that's it

As title says, my device shows as ‘online’ but that’s it. No voltage or anything else. Can’t configure it or update the firmware/software either. Any ideas?

Here is output from running all_test.py

@raspberrypi:/opt/sixfab/pms/api/example $ sudo python3 all_test.py

************* Input Sensors **************
error in 10
Traceback (most recent call last):
File “all_test.py”, line 8, in
print("Input Temp: " + str(pms.getInputTemp()))
File “/usr/local/lib/python3.7/dist-packages/pms_api/pms_api.py”, line 89, in getInputTemp
temp = int.from_bytes(raw[PROTOCOL_HEADER_SIZE:COMMAND_SIZE_FOR_INT32 - 2], “big”)
TypeError: ‘int’ object is not subscriptable
pi@raspberrypi:/opt/sixfab/pms/api/example $

Syslog output after restarting pms service

Jul 11 15:30:16 raspberrypi python3[16653]: Connected to the server
Jul 11 15:30:16 raspberrypi python3[16653]: Sending SUBSCRIBE (d0, m1) [(b’/device/…censored_uuid…/directives’, 0)]
Jul 11 15:30:16 raspberrypi python3[16653]: Sending SUBSCRIBE (d0, m2) [(b’/device/…censored_uuid…/status’, 0)]
Jul 11 15:30:16 raspberrypi python3[16653]: Sending PUBLISH (d0, q0, r1, m3), ‘b’/device/…censored_uuid…/status’’, … (19 bytes)
Jul 11 15:30:16 raspberrypi python3[16653]: Received SUBACK
Jul 11 15:30:16 raspberrypi python3[16653]: Received SUBACK
Jul 11 15:30:16 raspberrypi python3[16653]: Received PUBLISH (d0, q0, r1, m0), ‘/device/…censored_uuid…/status’, … (20 bytes)
Jul 11 15:30:16 raspberrypi python3[16653]: Sending PUBLISH (d0, q0, r1, m4), ‘b’/device/…censored_uuid…/status’’, … (19 bytes)
Jul 11 15:30:16 raspberrypi python3[16653]: Received PUBLISH (d0, q0, r0, m0), ‘/device/…censored_uuid…/status’, … (19 bytes)
Jul 11 15:30:16 raspberrypi python3[16653]: Received PUBLISH (d0, q0, r0, m0), ‘/device/…censored_uuid…/status’, … (19 bytes)
Jul 11 15:30:17 raspberrypi python3[16653]: error in 3
Jul 11 15:30:17 raspberrypi python3[16653]: Received PUBLISH (d0, q0, r0, m0), ‘/device/…censored_uuid…/directives’, … (58 bytes)
Jul 11 15:30:17 raspberrypi python3[16653]: Received PUBLISH (d0, q0, r0, m0), ‘/device/…censored_uuid…/directives’, … (58 bytes)
Jul 11 15:30:18 raspberrypi python3[16653]: error in 12
Jul 11 15:30:19 raspberrypi python3[16653]: error in 2
Jul 11 15:30:21 raspberrypi python3[16653]: error in 5
Jul 11 15:30:22 raspberrypi python3[16653]: Exception in thread Thread-4:
Jul 11 15:30:22 raspberrypi python3[16653]: Traceback (most recent call last):
Jul 11 15:30:22 raspberrypi python3[16653]: File “/usr/lib/python3.7/threading.py”, line 917, in _bootstrap_inner
Jul 11 15:30:22 raspberrypi python3[16653]: self.run()
Jul 11 15:30:22 raspberrypi python3[16653]: File “/usr/lib/python3.7/threading.py”, line 865, in run
Jul 11 15:30:22 raspberrypi python3[16653]: self._target(*self._args, **self._kwargs)
Jul 11 15:30:22 raspberrypi python3[16653]: File “/opt/sixfab/pms/agent/core/init.py”, line 162, in _wait_ntp_and_update_rtc
Jul 11 15:30:22 raspberrypi python3[16653]: update_timezone(self.PMSAPI, timezone)
Jul 11 15:30:22 raspberrypi python3[16653]: File “/opt/sixfab/pms/agent/core/modules/set_configurations.py”, line 109, in update_timezone
Jul 11 15:30:22 raspberrypi python3[16653]: try_until_done(api, “setRtcTime”, int(time.time() - time.timezone))
Jul 11 15:30:22 raspberrypi python3[16653]: File “/opt/sixfab/pms/agent/core/modules/recovery.py”, line 41, in try_until_done
Jul 11 15:30:22 raspberrypi python3[16653]: raise OverflowError("")
Jul 11 15:30:22 raspberrypi python3[16653]: OverflowError
Jul 11 15:30:25 raspberrypi python3[16653]: Exception in thread Thread-5:
Jul 11 15:30:25 raspberrypi python3[16653]: Traceback (most recent call last):
Jul 11 15:30:25 raspberrypi python3[16653]: File “/usr/lib/python3.7/threading.py”, line 917, in _bootstrap_inner
Jul 11 15:30:25 raspberrypi python3[16653]: self.run()
Jul 11 15:30:25 raspberrypi python3[16653]: File “/usr/lib/python3.7/threading.py”, line 865, in run
Jul 11 15:30:25 raspberrypi python3[16653]: self._target(*self._args, **self._kwargs)
Jul 11 15:30:25 raspberrypi python3[16653]: File “/opt/sixfab/pms/agent/core/init.py”, line 162, in _wait_ntp_and_update_rtc
Jul 11 15:30:25 raspberrypi python3[16653]: update_timezone(self.PMSAPI, timezone)
Jul 11 15:30:25 raspberrypi python3[16653]: File “/opt/sixfab/pms/agent/core/modules/set_configurations.py”, line 109, in update_timezone
Jul 11 15:30:25 raspberrypi python3[16653]: try_until_done(api, “setRtcTime”, int(time.time() - time.timezone))
Jul 11 15:30:25 raspberrypi python3[16653]: File “/opt/sixfab/pms/agent/core/modules/recovery.py”, line 41, in try_until_done
Jul 11 15:30:25 raspberrypi python3[16653]: raise OverflowError("")
Jul 11 15:30:25 raspberrypi python3[16653]: OverflowError
Jul 11 15:30:25 raspberrypi python3[16653]: error in 0
Jul 11 15:30:26 raspberrypi python3[16653]: error in 10
Jul 11 15:30:28 raspberrypi python3[16653]: error in 5
Jul 11 15:30:29 raspberrypi python3[16653]: error in 0

I have an official 7 inch touchscreen attached to i2c pins. When I d/c the touchscreen and ssh into the pi instead , it all works as expected. I’m guessing it’s i2c addressing?

Edit: i2c addresses are different. Not sure what else I can try?

I2cdetect -y 1 output

Just ups

Touch and ups

Just touch

yea exactly the same for me too.
except mine shows offline.
Not connected to any LCD.

Try this and reply with the output

python3 /opt/sixfab/pms/api/example/all_test.py
And
sudo systemctl status pms_service.agent

Can also create a log by issuing
tail -f /var/log/syslog >> log.txt
And than restart pms_agent.service while the log is running. That will show if it’s connecting to the server and sending pings

sudo systemctl stop pms_agent.service
this could help and then try the all_test.py

here is my all_test.py

The Python scripts are running so it’s probably the connection to the server.

So you need to
tail -f /var/log/syslog >> log.txt &
(The & on the end sends that log job into background)
Than
sudo systemctl restart pms_agent.service
Let it run for 20 seconds than kill the pid number of the log.
Than post log.txt

This is what I get - Over and over again

Jul 13 15:07:09 raspberrypi systemd[1]: Stopped Sixfab PMS Agent.
Jul 13 15:07:09 raspberrypi systemd[1]: Started Sixfab PMS Agent.
Jul 13 15:07:09 raspberrypi python3[1011]: Traceback (most recent call last):
Jul 13 15:07:09 raspberrypi python3[1011]: File “agent.py”, line 3, in
Jul 13 15:07:09 raspberrypi python3[1011]: from core import Agent
Jul 13 15:07:09 raspberrypi python3[1011]: File “/opt/sixfab/pms/agent/core/init.py”, line 31
Jul 13 15:07:09 raspberrypi python3[1011]: client_id=f"device/{uuid4().hex}")
Jul 13 15:07:09 raspberrypi python3[1011]: ^
Jul 13 15:07:09 raspberrypi python3[1011]: SyntaxError: invalid syntax
Jul 13 15:07:09 raspberrypi systemd[1]: pms_agent.service: Main process exited, code=exited, status=1/FAILURE
Jul 13 15:07:09 raspberrypi systemd[1]: pms_agent.service: Unit entered failed state.
Jul 13 15:07:09 raspberrypi systemd[1]: pms_agent.service: Failed with result ‘exit-code’.

That’s a problem I haven’t encountered myself so idk. I figured my problem out it was i2c addressing. This problem idk. What I would try is to create a new device in power dashpanel and than run the code it spots out again on the pi to re register the device and re run the log stuff to see if it’s the same problem.

Hi,

Your problem may be caused by I2C address clashes. Try it without the touchscreen attached.

Why is that the case ? There should not be any I2C Clashes with your software and the LCD.

Any update on this and you could give me the dev email / phone ?

Jul 13 15:07:09 raspberrypi systemd[1]: Stopped Sixfab PMS Agent.
Jul 13 15:07:09 raspberrypi systemd[1]: Started Sixfab PMS Agent.
Jul 13 15:07:09 raspberrypi python3[1011]: Traceback (most recent call last):
Jul 13 15:07:09 raspberrypi python3[1011]: File “agent.py”, line 3, in
Jul 13 15:07:09 raspberrypi python3[1011]: from core import Agent
Jul 13 15:07:09 raspberrypi python3[1011]: File “/opt/sixfab/pms/agent/core/ init .py”, line 31
Jul 13 15:07:09 raspberrypi python3[1011]: client_id=f"device/{uuid4().hex}")
Jul 13 15:07:09 raspberrypi python3[1011]: ^
Jul 13 15:07:09 raspberrypi python3[1011]: SyntaxError: invalid syntax
Jul 13 15:07:09 raspberrypi systemd[1]: pms_agent.service: Main process exited, code=exited, status=1/FAILURE
Jul 13 15:07:09 raspberrypi systemd[1]: pms_agent.service: Unit entered failed state.
Jul 13 15:07:09 raspberrypi systemd[1]: pms_agent.service: Failed with result ‘exit-code’.

Thanks