Transceiver on Raspberry pi 2b

Hi

I bought some 922mhz transceivers and trying to setup on a raspberry pi 2+ but not having success.

I have connected two units daisy chained via cable and pi connector. Each has a different id switch. I have installed SMBus2 package and copied the Transceiver and unified files from GitHub.

I tried using the example file feature_test but modified with two radios, one for sending and one for receiving. For the two radios, the only difference in the call to Piicodev_Tranceiver is the radio_address and ID. (No difference with the same radio_address)

I2cdetect returns the correct results, one device at 09 and one at 0A.

all seems to work except the call to radio.receive() , this always returns false even though the Rx led lights up on the receiver (when the transmitter led lights up). Same results with the default feature_test example. So the receiver is getting the packet but the python call to check for messages always fails.

Initially the pi i2c was set to 100000 speed and the whoami would return random results. Once I changed to 400000 it was stable.

The debug doesn’t seem to output anything useful.

Any thoughts on what to do?

Ok, I don’t know what is wrong with the feature test but the example simple_transceiver works.

If simple_transceiver is working, I’d take that as the problem being solved — the radios and Pi I2C setup are most likely fine, and the issue is just in the modified feature_test script rather than the hardware.

feature_test does a bit more than the simple example, so it’s not always the best baseline for debugging. If you want to keep digging, post the part of your modified script with the two PiicoDev_Transceiver(...) setups and the receive() calls, and that should narrow down what’s different.