dco333 Posted April 27 Share Posted April 27 Hi I'm using an Orange Pi PC Plus with a LoRa HAT (Semtech SX1278) connected via GPIO. The tool which uses this HAT connects directly to the SX1278 chip on the HAT, no protocoll like SPI is needed. I'm using it for several years on RaspberryPi's without problems. But with the latest ARMBIAN Image for the Orange Pi PC Plus Armbian_23.11.1_Orangepipcplus_bookworm_current_6.1.63.img.xz I have issues in this constellation. The tool can not contact the SX1278 via GPIO, said the tool developer. It seems like I have to activate the GPIO pins before. I've tried to find information about that, but without success. So I hope to find here more information and help. I have to use these hardware PINs (these are the PIN descritions on teh Raspberry Pi): MOSI SPI0_MOSI / GPIO10 (PIN 19) MISO SPI0_MISO / GPIO9 (PIN 21) SCK SPI0_SCLK / GPIO11 (PIN 23) NSS/Enable SPI0_CE0_N / GPIO8 (PIN 24) RST GPIO6 (PIN 31) Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
SteeMan Posted April 27 Share Posted April 27 This board is not a supported board. Moved post to Community Maintained section and added the correct tag for the board. 0 Quote Link to comment Share on other sites More sharing options...
ning Posted April 28 Share Posted April 28 you need to develop your dtbo to support your addon devices. from your description, your device needs a set of SPI pins, and a reset pin. OPI PC plus already provides the pins you want. MOSI SPI0_MOSI / GPIO10 (PIN 19) MISO SPI0_MISO / GPIO9 (PIN 21) SCK SPI0_SCLK / GPIO11 (PIN 23) NSS/Enable SPI0_CE0_N / GPIO8 (PIN 24) then, you need develop a dtbo for your device. 156 &spi0 { 157 status = "okay"; 158 159 YOUR_DEVICE@0 { 160 compatible = "YOUR_DEVICE"; 161 reg = <0>; 162 spi-max-frequency = <50000000>; 163 }; 164 }; if your device use an userspace driver, that not need YOUR_DEVICE@0 node. that all you need to do. 0 Quote Link to comment Share on other sites More sharing options...
dco333 Posted April 30 Author Share Posted April 30 (edited) Hi, the device uses the PINs only, but not the spi protocol. It talks directly so the SX1278 via the PINs. This works in RaspberryPi standard images from scratch without any change (only disabling SPI). I don't know what you mean with "dtbo". I'm not a developer, only a user. Can you please give me some hints? Regards Edited April 30 by dco333 0 Quote Link to comment Share on other sites More sharing options...
robertoj Posted May 2 Share Posted May 2 Probably no dtbo will be needed. Find the 5 pins in your orange pi, that would be contacted by the hat, and try to control them with the Python code here: https://forum.armbian.com/topic/33800-orange-pi-zero-3-gpio/?do=findComment&comment=181191 if that lorahat software is open source, then change that source code to point to the correct pin addresses 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.