![]() |
Troubleshooting Pinedio LoRa Add-on Case - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Accessories (https://forum.pine64.org/forumdisplay.php?fid=123) +--- Thread: Troubleshooting Pinedio LoRa Add-on Case (/showthread.php?tid=19296) |
Troubleshooting Pinedio LoRa Add-on Case - nickp - 06-16-2024 Hi everyone, I am trying to run meshtasticd on my Pinephone. Suddenly tough, the received bytes of the SX1262 are all zero, and I never managed to get the standard 0xA2 answer back. I2C communication works still, which is why I am suspecting that the radio chip is at fault. Does anybody know what I was doing wrong or how to debug this? Onto the details, I simply implemented an SPI device driver which translates to I2C such that mestasticd can communicate with it as if the ATTiny bridge isn't there. The code for the kernel driver and a dmesg trace with debug output can be found here: https://gist.github.com/pectec/ffddf32aef00e00d1c9cfc041bc92bbe Any help on this is appreciated ![]() Thank you, Nick Edit: I managed to damage it, Pine64 says that there isn't going to be a production batch anytime soon. My only option is DIY at this point (using a [url=https://www.amazon.de/dp/B0CSFG65MS?psc=1&ref=ppx_yo2ov_dt_b_product_details][/url]Waveshare RP2040), which I'll do when I come around to it, so I'll mark this issue as solved. RE: Troubleshooting Pinedio LoRa Add-on Case - tllim - 06-17-2024 (06-16-2024, 01:03 AM)nickp Wrote: Hi everyone, You can check out with JF at chatroom, he implemented that Lora backcase i2c to SPI code. RE: Troubleshooting Pinedio LoRa Add-on Case - lavabrilliant - 09-29-2024 Since you're getting all zeroes, it's worth ensuring that the SPI interface (used by the SX1262 for communication) is configured correctly. Even though I2C is working, the SX1262 primarily communicates over SPI. |