Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
S

SdeWeb

@SdeWeb
About
Posts
15
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    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.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @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.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @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.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

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

    Regards.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @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.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @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.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @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

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    Look here :

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

    Best.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @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.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @Reza Bad idea :-( , wich OS are you using on your Orange PI ?

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @Reza <- Yes do all the procedure from the beginning :

    https://www.mysensors.org/build/orange

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

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

    Regards

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

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

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

    Regards.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    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.

    Announcements

  • 💬 Building a Orange Pi Gateway
    S SdeWeb

    @pansen Hi, Please could you confirm your pin connection beetween NRF24L01 and the Opi Plus2E, il followed your setup inctruction (no .fex modification and your specific ./configure), but mine don't work, i got this error "mysgw: Could not open /sys/class/gpio/gpio13/direction".

    I connected my NRF24L01 on OPI P2E like this :

    • NRF Port Name / (N°) ------- OPI Port (N°) / Name
      • GND (1) <------------> (6) GND
      • VCC (2) <------------> (17) 3.3V PWR
      • CE (3) <---------------> (8)
      • CSN (4) <------------> (10)
      • SCK (5) <-------------> (23)
      • MOSI (6) <-----------> (19) MOSI
      • MISO (7) <-----------> (21) MISO
      • IRQ (8) <---------------> NC

    Thanks.
    Seb.

    Announcements
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular