Troubleshooting Pinedio LoRa Add-on Case
#1
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/ffddf32ae...041bc92bbe

Any help on this is appreciated Smile

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.
  Reply
#2
(06-16-2024, 01:03 AM)nickp Wrote: 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/ffddf32ae...041bc92bbe

Any help on this is appreciated Smile

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.

You can check out with JF at chatroom, he implemented that Lora backcase i2c to SPI code.
  Reply
#3
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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Searching for a PinePhone Keyboard Case RubiksCube 1 1,257 10-07-2024, 11:08 PM
Last Post: tllim
  Getting started with fingerprint scanner case lolgzs 1 1,501 09-08-2024, 04:21 AM
Last Post: mfashby
  Case for Pinephone totilele 13 11,084 04-11-2024, 11:48 AM
Last Post: gramonyl
  Slip/Zippered Case for PP/KB? jakfish 0 622 03-03-2024, 04:55 PM
Last Post: jakfish
  keyboard case charging but not typing new2pinephone 18 9,723 02-19-2024, 07:30 AM
Last Post: theResonant
  Getting all keys working on pine phone keyboard-case undata 5 3,852 10-08-2023, 12:19 PM
Last Post: mburns
  PinePhone Wallet Case Shane 5 6,409 09-17-2023, 12:52 PM
Last Post: J T
  pinephone keyboard case how to use the = f8 - etc tuxcall 3 2,670 05-02-2023, 05:18 PM
Last Post: undata
  Using Keyboard Case with Mobian (complete instructions) Megamemnon 4 6,615 03-22-2023, 01:47 PM
Last Post: vgnmnky
  Otterbox case for PinePhone car46999 5 4,676 11-18-2022, 09:08 PM
Last Post: car46999

Forum Jump:


Users browsing this thread: 1 Guest(s)