RFM98PW with SDR ground station #43
-
|
Wondering if you ever ran into this error when running gr-lora_sdr as a receiver for receiving transmission from RFM98PW. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 7: invalid start byte It seems that I'm receiving and decoding ok. I get the correct payload length and other setup information: --------Header-------- Then it crashes with that Unicode error. When I transmit using gr-lora_sdr from an USRP, receiving on a different USRP, works like a charm. When I transmit from PyCubed to either of those USRP, it crashes with that Unicode error. Anything you can think of that may be causing this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Can't say I've encountered that one, but like you said it seems to be something to do with the encoding rather than the modulation. Try this:
|
Beta Was this translation helpful? Give feedback.
-
|
Just reporting back. Summary: success Situation: I was playing with two versions: gr-lora and gr-lora_sdr. Really needed to get gr-lora_sdr running so I can also transmit via SDR. Problem was, gr-lora was on gnuradio 3.9 and well-working gr-lora_sdr was for 3.8. I just could not get both to work. USRP to USRP works great using gr-lora_sdr. Just could not decode PyCubed using gr-lora_sdr, nor command PyCubed. Solution: The issue turns out to be the 4-byte header that Radiohead library attaches to the beginning of the packet. PyCubed uses it on Tx and looks for it on Rx. gr-lora_sdr does not. For now, I coded out the RadioHead header portions in pycubed_rfm9x.py on both send and receive, and everything works great. Downside, of course, is that I can't use the to/from codes, but I'll implement that later, if needed. Thank you for your help! |
Beta Was this translation helpful? Give feedback.

Just reporting back. Summary: success
Situation: I was playing with two versions: gr-lora and gr-lora_sdr. Really needed to get gr-lora_sdr running so I can also transmit via SDR. Problem was, gr-lora was on gnuradio 3.9 and well-working gr-lora_sdr was for 3.8. I just could not get both to work. USRP to USRP works great using gr-lora_sdr. Just could not decode PyCubed using gr-lora_sdr, nor command PyCubed.
Solution: The issue turns out to be the 4-byte header that Radiohead library attaches to the beginning of the packet. PyCubed uses it on Tx and looks for it on Rx. gr-lora_sdr does not. For now, I coded out the RadioHead header portions in pycubed_rfm9x.py on both send and receive, an…