Would greatly appreciate any help for an issue that I thought I could solve with online searches. Unfortunately, despite finding a lot of references to similar error messages, I have not resolved my issue here.
I have -2- of the Uputronics LoRa Expansion Boards on a couple of Raspberry Pi SBCs. Wanting to learn how to interface with them, and not being a programmer, this repository looked like it might be something I could handle since I've used Python in the past for various projects.
Pi #1 (Pi version 2) is setup as my receive test unit and Pi #2 (Pi 3b+) is doing the transmitting. Their python versions are as follows:
pi@k4kdr-lora-1:~/pyUputronics $ python --version
Python 2.7.9
pi@k4kdr-lora-1:~/pyUputronics $ python3 --version
Python 3.4.2
pi@k4kdr-lora-2:~/pyUputronics $ python --version
Python 2.7.13
pi@k4kdr-lora-2:~/pyUputronics $ python3 --version
Python 3.5.3
I run the receiver (Pi #1) with the following command:
pi@k4kdr-lora-1:~/pyUputronics $ ./rx_cont.py --sf 6 --freq 434.475 --bw BW20_8
... and Pi #2 is setup to transmit with the following command:
pi@k4kdr-lora-2:~/pyUputronics $ ./tx_beacon.py --sf 6 --freq 434.475 --bw BW20_8 --single
... and appears to work correctly on the TX side:
pi@k4kdr-lora-2:~/pyUputronics $ ./tx_beacon.py --sf 6 --freq 434.475 --bw BW20_8 --single
Press enter to start...
Mode <- STDBY
Mode <- TX
Mode <- STDBY
tx #1
... however, when Pi #1 receives the transmission, I get:
pi@k4kdr-lora-1:~/pyUputronics $ ./rx_cont.py --sf 6 --freq 434.475 --bw BW20_8
// cut //
Press enter to start...
-132 1 0
RxDone
Traceback (most recent call last):
File "/home/pi/pyUputronics/hoperf/LoRa.py", line 158, in _dio0
self.on_rx_done()
File "./rx_cont.py", line 46, in on_rx_done
print(bytes(payload).decode())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 5: invalid start byte
... there are a LOT of references online to this 'utf-8' error but I've not been able to get any of the suggested solutions to alter my results here.
FYI, both devices give the following:
pi@k4kdr-lora-1:~/pyUputronics $ echo $LANG
en_GB.UTF-8
Thanks in advance for any pointers particular to how I might get around this!
-Scott, K4KDR