Navigation

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

    SdeWeb

    @SdeWeb

    7
    Reputation
    15
    Posts
    425
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    SdeWeb Follow

    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

    Latest posts made by SdeWeb

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

      Hi,
      You should set your gateway as a ethernet / network gateway. By default, it run on port 5003 (ex : [gwipadresse]:5003.
      If you controler is hosted on the same machine that the gateway, then you can call the ip adresse : 127.0.0.1:5003. (the localhost adress) whatever the real IP adresse of your PI.
      if you got a good router on u'r network, that it running DHCP server and give IP adresses of your devices on the network, then you can define static IP adresse for the MAC adresse of your PI.

      Regards.

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

      @giran Hi, how did you connect you NRF module on the Orange PI ?
      Is you use the GPIO, you should'nt use TTY stup for MuSensors.

      Look above my setup in this forum, if you use the GPIO.

      Regards.

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

      @Reza
      Hello, it seems when i read your previous post, that you forgot to reverse your custom .fex file in the system.
      In fact, after modifying the .fex in nano, you must do "fex2bin" your .fex file to replace in the system the script.bin file.
      If you didn't to that, your .fex file is not used, is useless until you "fex2bin" it.

      Your pinout seems OK, a option is to use Pin 17 (3.3V) an Pin 20 (GND) to powering your NRF module.

      Regards.
      Seb.

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

      @Reza Hello,
      Did you modifying the .Fex file before applying the 'configure' setup ?
      What did you do with nano ?

      Regards.

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

      @Reza
      Try to wire like mine and apply my configure setup, here is the copy/paste of the famous previous post from me :

      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

      @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

      @Reza Try to connect like mine, look above in this thread, then use my own ./configure setup.

      If it's not work, try to use the .fex file for your Orange PI download it here :
      http://linux-sunxi.org/Orange_Pi_One#Sunxi.2FLegacy_Kernel

      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
    • RE: šŸ’¬ Building a Orange Pi Gateway

      @Reza
      Your GW is OK, so exit debug mode by use Ctrl + C command, then follow the end of the procedure to install and auto start GW services.

      Regards.

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

      @Reza Bad idea šŸ˜ž , wich OS are you using on your Orange PI ?

      posted in Announcements
      SdeWeb
      SdeWeb