Took me a while to figure out how to build the CH341 SPI Driver with DKMS and Kernel Headers ... Yep it works on Pinebook Pro Manjaro! 🎉

github.com/lupyuen/pinedio_usb

Oops just discovered that the new Semtech Reference Driver doesn't support LoRaWAN ... So we switched to the older SX1262 Driver ... Exact same driver used by BL602!

github.com/lupyuen/lora-sx1262

I haven't figured how to control GPIO with CH341, so here are 2 Quick Hacks: 1️⃣ Need to reset Dongle? Just unplug it ... 2️⃣ Checking for busy state? Just wait 10 millisecs between SX1262 requests

github.com/lupyuen/lora-sx1262

USB Dongle sends Packet to RAKwireless WisBlock ... But received packet is consistently garbled ... As reported by @JF 🤔

github.com/lupyuen/lora-sx1262

But Messages sent by Stack BL604 to RAKwireless WisBlock are not garbled ... Even though PineDio Stack and PineDio Dongle are running the same SX1262 Driver Code! 🤔

lupyuen.github.io/articles/lor

Dongle sends a 64-byte Packet ... But the 64-byte Packet doesn't appear in the dmesg Log for CH341 SPI Driver 🤔

github.com/lupyuen/lora-sx1262

Aha! When Dongle sends a 29-byte Packet to RAKwireless WisBlock ... It's received OK! Anything more will be garbled 🤔

github.com/lupyuen/lora-sx1262

Why does USB Dongle receive 28-byte Messages ... But not longer messages? Because CH341 can only transfer up to 31 bytes of SPI data ... And we need 3 bytes for the SX1262 Command Header

github.com/lupyuen/lora-sx1262

Show newer
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.