Helpdesk

The Strompi3 suddenly does not communicate anymore. I cannot get the Pi (rPi 4B 8GB) to read the bytes, Strompi does not send any anymore.


When i started it worked, but suddenly after setting some values in the GUI it stopped working. It looks like it is in serialless modus, but the GPIO pin does not work either, it does NOT detect power failure..[nbsp]


I tried disabling the serialless modus by running stop_serialless.py, which runned successfully. I tried this several times, also trying start_serialless.py [gt] test (does not work) [gt] stop_serialless.py [gt] test (also doesn't work)


I have revision V1.1 with the jumpers. The Serialless jumper is set to OFF, so it should work.


[nbsp]


How do I get it to work again?

Heydrich

19.02.21 13:50

Hello Heydrich,


there are several reasons why the serial communication might not work. Additionally connected hardware or scripts running in the background that are also using serial communication can interfere with it.[nbsp]
Which firmware version is installed on your StromPi?[nbsp]
Try running the Status.py script and share the console output here, this may help with troubleshooting.[nbsp]


Best regards


Tim (Joy-it)

Tim

19.02.21 15:43

Hello Tim,


Thank you for your reply.[nbsp]


The output of the script is ofcourse an error "cannot convert to float" because, as I described, there are no incoming bytes from the device.0


it tries to convert no bytes (or empty array if you wish), to a float which is impossible.


The firmware version is v1.72

Heydrich

22.02.21 13:48

I also have the following code:


while True:
[nbsp] [nbsp] serial_port.write(str.encode('quit'))
[nbsp] [nbsp] sleep(breakS)
[nbsp] [nbsp] serial_port.write(str.encode('\x0D'))
[nbsp] [nbsp] sleep(breakL)

[nbsp] [nbsp] serial_port.write(str.encode('status-rpi'))
[nbsp] [nbsp] sleep(1)
[nbsp] [nbsp] serial_port.write(str.encode('\x0D'))
[nbsp] [nbsp] sleep(1)
[nbsp] [nbsp] print(serial_port.read_all())


[nbsp]


which only returns:


b''
b''
b''
b''
b''
b''
b''
b''
b''
b''

Heydrich

22.02.21 14:05

Hello Heydrich,


reflashing the StromPi with our firmware could fix the problem.


To do that please click on the "Downloads" button and download the newest firmware. There is a short manual included in the file in which the process is explained.


If the problems remain after the StromPi is flashed with our newest firmware it is sadly very likely that your StromPi is broken.


In that case you can send it to your retailer and get a replacement.


[nbsp]

22.02.21 15:29

Helo Niklas,


I'm trying to flash the device but I get the following error:


pi@raspberrypi:~ $ sudo stm32flash /dev/serial0
stm32flash 0.5


http://stm32flash.sourceforge.net/


Error probing interface "serial_posix"
Cannot handle device "/dev/serial0"
Failed to open port: /dev/serial0


my /boot/config.txt has the following contents:


[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2


[all]
dtoverlay=pi4-miniuart-bt
enable_uart=1
core_freq=250
start_x=0
gpu_mem=512


[nbsp]


but, dtoverlay=vc4-fkms-v3d was already there. Does it block the uart?

Heydrich

22.02.21 16:35

Trying to flash the binary gives me the same result:


[nbsp]


stm32flash /dev/serial0 -w RB-StromPi3.bin -b 9600
stm32flash 0.5


http://stm32flash.sourceforge.net/


Using Parser : Raw BINARY
Error probing interface "serial_posix"
Cannot handle device "/dev/serial0"
Failed to open port: /dev/serial0

Heydrich

22.02.21 16:51

Hello Heydrich,


thank you for your message.


A lot of software problems can be fixed by reflashing the firmware onto the device.


It seems like your StromPi can not be flashed, which is a big indicator for the hardware being defective.


We recommend sending the device back to your retailer.


Best regards


Niklas Tritschler

25.02.21 14:42