Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. SdeWeb
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by SdeWeb

    • RE: šŸ’¬ Building a Orange Pi Gateway

      @Reza
      Hi,
      Tell us how you connect your NRF24 module on your Orange PI.

      On this guide https://www.mysensors.org/build/orange do you followed the section "configure spidev" ?

      The main things are :

      1 - install sunxy-tools
      2 - install MySensors.git

      But the pinout of the GPIO on your Orange PI is different of the Orange PI zero explained here : https://www.mysensors.org/build/orange

      So you need to modify the script.bin file, with the command "bin2fex / fex2bin" as explained in the "configure spidev" chapter, if you fail to find the right configuration, try to use the .fex file that you can download here :

      If you have a Orange PI lite :
      https://github.com/igorpecovnik/lib/blob/master/config/fex/orangepilite.fex

      Or if you have a Orange PI One :
      https://github.com/igorpecovnik/lib/blob/master/config/fex/orangepione.fex

      then "fex2bin" the file you downloaded, to replace your own script.bin as described in the tuto at the chapter "configure spidev".

      I think that the pinout of your Orange PI is the same than mine, i got a Orange PI Plus 2E, so look my setup as explained above in this forum, then connect your NRF24 module like mine and use my "./configure" setup.

      If you succes your gateway setup, dont forget than the next step it's to install a controler to drive it, so you'll need to read guide about setup a controler : https://www.mysensors.org/controller

      Regards.

      posted in Announcements
      SdeWeb
      SdeWeb
    • RE: šŸ’¬ Building a Orange Pi Gateway

      Hi,
      Well done finally i used the dedicated .fex file for Orange Pi Plus 2E here :
      https://linux-sunxi.org/Xunlong_Orange_Pi_Plus_2E#Expansion_Port

      at this point :
      https://github.com/igorpecovnik/lib/blob/master/config/fex/orangepiplus2e.fex

      Read the .fex file in a text editor, u'll see important things about "gpio_config" for H3 cpu :

      ; NOTE: This section is necessary only for "gpio_sunxi" driver
      ; which is obsolete for H3 boards
      [gpio_para]
      gpio_used = 0
      gpio_num = 0
      

      I connected my NRF24L01 on OPI P2E like this :

      NRF24L01 Port Name / (Pin N°) ----- OPI Port (Pin N°) / Name
                            GND (1)  <-----------> (20) / GND
                            VCC (2)  <-----------> (17) / 3.3V PWR
                            CE (3)   <-----------> (22) / (PA2 / GPIO2)
                            CSN (4)  <-----------> (24) / (PC3 / GPIO67)
                            SCK (5)  <-----------> (23)
                            MOSI (6) <-----------> (19) MOSI
                            MISO (7) <-----------> (21) MISO
                            IRQ (8)  <-----------> NC
      

      So "MySensors" setup is :

      ./configure --spi-spidev-device=/dev/spidev0.0 --my-transport=nrf24 --my-rf24-ce-pin=2 --my-rf24-cs-pin=67
      

      Then

      ./bin/mysgw -d
      

      Return :

      root@orangepiplus2e:~/MySensors# ./bin/mysgw -d
      mysgw: Starting gateway...
      mysgw: Protocol version - 2.2.0-beta
      mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.2.0-beta
      mysgw: TSM:INIT
      mysgw: TSF:WUR:MS=0
      mysgw: TSM:INIT:TSP OK
      mysgw: TSM:INIT:GW MODE
      mysgw: TSM:READY:ID=0,PAR=0,DIS=0
      mysgw: MCO:REG:NOT NEEDED
      mysgw: Listening for connections on 0.0.0.0:5003
      mysgw: MCO:BGN:STP
      mysgw: MCO:BGN:INIT OK,TSP=1
      

      Best.
      Seb.

      posted in Announcements
      SdeWeb
      SdeWeb
    • RE: šŸ’¬ Building a Orange Pi Gateway

      @Wascht'l Hi,
      Take a look here, to get some idea :

      https://fr.pinout.xyz/pinout/rs485_pi#

      Regards.

      posted in Announcements
      SdeWeb
      SdeWeb
    • RE: šŸ’¬ Building a Orange Pi Gateway

      @Reza
      after "chmoded" the file you don't need anymore chmod command, run directly ./configure .

      Regards

      posted in Announcements
      SdeWeb
      SdeWeb
    • RE: šŸ’¬ Building a Orange Pi Gateway

      Look here :

      https://linux-sunxi.org/Xunlong_Orange_Pi_One_%26_Lite

      Best.

      posted in Announcements
      SdeWeb
      SdeWeb