Follow

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

Show thread

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

Show thread

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

github.com/lupyuen/lora-sx1262

Show thread

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

Show thread

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

Show thread

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

Show thread

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 thread

We now have a Linux Driver for USB Dongle @PINE64 ... That can transmit 29-byte messages and receive 28-byte messages ... Tested on Pinebook Pro Manjaro Arm64 🎉

github.com/lupyuen/lora-sx1262

Show thread

Building a SX1262 Driver for USB Adapter @PINE64 ... And testing it on Pinebook Pro ... All shall be explained in this article

lupyuen.github.io/articles/usb

Show thread
Show more
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.