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
  1. Home
  2. Development
  3. MySensors Raspberry port suggestions

MySensors Raspberry port suggestions

Scheduled Pinned Locked Moved Development
96 Posts 14 Posters 42.4k Views 17 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M marceloaqno

    @raptorjr PiDome should work now (https://forum.mysensors.org/topic/2389/added-support-for-local-mysensors-rpi-direct-radio-connection).

    You need to add --my-serial-is-pty when running ./configure or uncomment the line #define MY_IS_SERIAL_PTY in mysGateway.cpp.

    raptorjrR Offline
    raptorjrR Offline
    raptorjr
    wrote on last edited by
    #50

    @marceloaqno

    I think there may be a memory leak in the gateway. While using it as a ethernet gateway I loose about 100Mb every day, if my only node is turned on. After a few days I can't even login with SSH and need to remove the power to my Pi3 to reboot it.

    If I turn off my node, memory usage is normal. So it seems to have something to to when messages is received/transmitted. Is there anything I can do to get more details where the problem could be?

    I'm using the image from Domoticz where everything is installed, and have only added mysGateway.

    b0rmannB 1 Reply Last reply
    0
    • M Offline
      M Offline
      marceloaqno
      Code Contributor
      wrote on last edited by
      #51

      @raptorjr @hawk_2050 I'll check.
      @b0rmann I'll do something about it.

      1 Reply Last reply
      0
      • raptorjrR raptorjr

        @marceloaqno

        I think there may be a memory leak in the gateway. While using it as a ethernet gateway I loose about 100Mb every day, if my only node is turned on. After a few days I can't even login with SSH and need to remove the power to my Pi3 to reboot it.

        If I turn off my node, memory usage is normal. So it seems to have something to to when messages is received/transmitted. Is there anything I can do to get more details where the problem could be?

        I'm using the image from Domoticz where everything is installed, and have only added mysGateway.

        b0rmannB Offline
        b0rmannB Offline
        b0rmann
        wrote on last edited by
        #52

        @raptorjr

        gateway running 8 days:

        pi@pi:~$ ls -ld /proc/`pidof mysGateway`
        dr-xr-xr-x 7 root root 0 Aug 30 22:40 /proc/3935
        

        memory consumption (peak) - 22M

        pi@pi:~$ cat /proc/`pidof mysGateway`/status
        Name:   mysGateway
        State:  S (sleeping)
        Tgid:   3935
        Ngid:   0
        Pid:    3935
        PPid:   1
        TracerPid:      0
        Uid:    0       0       0       0
        Gid:    0       0       0       0
        FDSize: 256
        Groups:
        NStgid: 3935
        NSpid:  3935
        NSpgid: 3935
        NSsid:  3935
        VmPeak:    22108 kB
        VmSize:    22108 kB
        VmLck:         0 kB
        VmPin:         0 kB
        VmHWM:      3088 kB
        VmRSS:      3088 kB
        VmData:      236 kB
        VmStk:       136 kB
        VmExe:        80 kB
        VmLib:      4392 kB
        VmPTE:        30 kB
        VmPMD:         0 kB
        VmSwap:        0 kB
        Threads:        1
        SigQ:   0/7339
        SigPnd: 0000000000000000
        ShdPnd: 0000000000000000
        SigBlk: 0000000000000000
        SigIgn: 0000000000001000
        SigCgt: 0000000180004002
        CapInh: 0000000000000000
        CapPrm: 0000003fffffffff
        CapEff: 0000003fffffffff
        CapBnd: 0000003fffffffff
        Seccomp:        0
        Cpus_allowed:   f
        Cpus_allowed_list:      0-3
        Mems_allowed:   1
        Mems_allowed_list:      0
        voluntary_ctxt_switches:        71974874
        nonvoluntary_ctxt_switches:     167964
        
        1 Reply Last reply
        0
        • M marceloaqno

          @b0rmann It should work now. Thank you for reporting this.

          alexsh1A Offline
          alexsh1A Offline
          alexsh1
          wrote on last edited by
          #53

          @marceloaqno Hi, could you please explain to me what the steps are to compile it for RPi3?
          I went here - https://github.com/marceloaqno/Raspberry
          Downloaded and tried to compile. The following error has come up:

          pi@m:~/Raspberry-GW $ make all
          make -C librf24-bcm
          make[1]: Entering directory '/home/pi/Raspberry-GW/librf24-bcm'
          cp utility/RPi/includes.h utility/includes.h
          g++ -Wall -fPIC -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv7-a -mtune=arm1176jzf-s -c RF24.cpp
          g++ -Wall -fPIC -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv7-a -mtune=arm1176jzf-s -c utility/RPi/spi.cpp
          gcc -Wall -fPIC -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv7-a -mtune=arm1176jzf-s -c utility/RPi/bcm2835.c
          g++ -Wall -fPIC -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv7-a -mtune=arm1176jzf-s -c utility/RPi/interrupt.c
          g++ -shared -Wl,-soname,librf24-bcm.so.1 -pthread -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv7-a -mtune=arm1176jzf-s -o librf24-bcm.so.1.0 RF24.o spi.o bcm2835.o interrupt.o
          make[1]: Leaving directory '/home/pi/Raspberry-GW/librf24-bcm'
          g++ -std=c++0x -g -Wall -Wextra -Ofast -mfpu=vfp -mfloat-abi=hard -mtune=arm1176jzf-s -Ilibmysensors -Ilibrf24-bcm -pthread -DRASPBERRYPI_ARCH  -march=armv7-a -MMD -c -o src/Basic/PiGatewaySample.o src/Basic/PiGatewaySample.cpp
          src/Basic/PiGatewaySample.cpp: In function ‘int main()’:
          src/Basic/PiGatewaySample.cpp:63:15: error: ‘usleep’ was not declared in this scope
             usleep(10000); // 10ms
                         ^
          Makefile:103: recipe for target 'src/Basic/PiGatewaySample.o' failed
          make: *** [src/Basic/PiGatewaySample.o] Error 1
          

          Thanks

          1 Reply Last reply
          0
          • alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #54

            OK, I manage to install it finally.

            However, again I have a problem:

            ./configure --my-gateway=ethernet --my-rf24-channel=1 --my-rf24-pa-level=RF24_PA_MAX --my-controller-ip-address=127,0,0,1
            

            when I start it I have the following in the log:

            failed to bind
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            accept: Bad file descriptor
            
            
            
            1 Reply Last reply
            0
            • M Offline
              M Offline
              marceloaqno
              Code Contributor
              wrote on last edited by marceloaqno
              #55

              Add some options to the gateway execution:

              # ./examples_linux/mysGateway -h
              Usage: mysGateway [options]
              
              Options:
              -h            Display a short summary of all program options.
              -d            Enable debug.
              -b            Become a daemon.
              

              Debug is now disabled by default.
              You can't run it as a linux daemon if debug is enabled.
              When daemonized all messages will be print to syslog.

              b0rmannB alexsh1A 2 Replies Last reply
              2
              • M marceloaqno

                Add some options to the gateway execution:

                # ./examples_linux/mysGateway -h
                Usage: mysGateway [options]
                
                Options:
                -h            Display a short summary of all program options.
                -d            Enable debug.
                -b            Become a daemon.
                

                Debug is now disabled by default.
                You can't run it as a linux daemon if debug is enabled.
                When daemonized all messages will be print to syslog.

                b0rmannB Offline
                b0rmannB Offline
                b0rmann
                wrote on last edited by
                #56
                This post is deleted!
                1 Reply Last reply
                0
                • M marceloaqno

                  Add some options to the gateway execution:

                  # ./examples_linux/mysGateway -h
                  Usage: mysGateway [options]
                  
                  Options:
                  -h            Display a short summary of all program options.
                  -d            Enable debug.
                  -b            Become a daemon.
                  

                  Debug is now disabled by default.
                  You can't run it as a linux daemon if debug is enabled.
                  When daemonized all messages will be print to syslog.

                  alexsh1A Offline
                  alexsh1A Offline
                  alexsh1
                  wrote on last edited by alexsh1
                  #57

                  @marceloaqno Interesting. When I execute "mysGateway -h" I get the following:

                  pi@m:~/MySensors/examples_linux $ mysGateway -h
                  MCO:BGN:INIT GW,CP=RNNG---,VER=2.0.1-beta
                  TSM:INIT
                  Segmentation fault
                  

                  What does "Segmentation fault' mean please?

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    marceloaqno
                    Code Contributor
                    wrote on last edited by
                    #58

                    @alexsh1 You must be root to run the gateway:

                    $ sudo mysGateway
                    

                    It seems that you are not using the latest version, -h should have shown you the options list.

                    alexsh1A 1 Reply Last reply
                    0
                    • M marceloaqno

                      @alexsh1 You must be root to run the gateway:

                      $ sudo mysGateway
                      

                      It seems that you are not using the latest version, -h should have shown you the options list.

                      alexsh1A Offline
                      alexsh1A Offline
                      alexsh1
                      wrote on last edited by alexsh1
                      #59

                      @marceloaqno I have the latest version (downloaded yesterday). Thanks very much for your help. I got the following:

                      pi@m:~/MySensors/examples_linux $ sudo mysGateway -h
                      MCO:BGN:INIT GW,CP=RNNG---,VER=2.0.1-beta
                      TSM:INIT
                      TSM:INIT:TSP OK
                      TSM:INIT:GW MODE
                      TSM:READY
                      MCO:REG:NOT NEEDED
                      MCO:BGN:STP
                      MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
                      

                      In Domoticz:

                      2016-09-09 09:32:26.032 TCP: Reconnecting... 
                      2016-09-09 09:32:26.032 MySensors: connected to: 127.0.0.1:5003 
                      

                      I added MySensors with LAN in Domoticz (port 5003), but here a problem. I can see the node and the GW communicating:

                      GW:

                      TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                      TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                      TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                      Client 0: 0;0;3;0;18;PING
                      TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                      TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                      Client 0: 0;0;3;0;18;PING
                      
                      Starting sensor (RNNNA-, 2.0.0-beta)
                      Radio init successful.
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      Init complete, id=255, parent=0, distance=1
                      requesting time
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      requesting time
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      requesting time
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      requesting time
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      requesting time
                      req id
                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                      
                      

                      The RF communication is fine, but I do not understand why Domoticz is not assigning ID.......

                      EDIT: I can see in Domoticz in the Hardware section:

                      MySensors Gateway with LAN interface
                      Version: ? Setup
                      

                      Typically ? comes up when the controller is not recognised or not connected

                      EDIT2:Deleted and started fresh. Unfortunately, now the log file is flooded with the following:

                      
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      mysGateway: Max number of ethernet clients reached.
                      
                      M 1 Reply Last reply
                      0
                      • alexsh1A alexsh1

                        @marceloaqno I have the latest version (downloaded yesterday). Thanks very much for your help. I got the following:

                        pi@m:~/MySensors/examples_linux $ sudo mysGateway -h
                        MCO:BGN:INIT GW,CP=RNNG---,VER=2.0.1-beta
                        TSM:INIT
                        TSM:INIT:TSP OK
                        TSM:INIT:GW MODE
                        TSM:READY
                        MCO:REG:NOT NEEDED
                        MCO:BGN:STP
                        MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
                        

                        In Domoticz:

                        2016-09-09 09:32:26.032 TCP: Reconnecting... 
                        2016-09-09 09:32:26.032 MySensors: connected to: 127.0.0.1:5003 
                        

                        I added MySensors with LAN in Domoticz (port 5003), but here a problem. I can see the node and the GW communicating:

                        GW:

                        TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                        TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                        TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                        Client 0: 0;0;3;0;18;PING
                        TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                        TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
                        Client 0: 0;0;3;0;18;PING
                        
                        Starting sensor (RNNNA-, 2.0.0-beta)
                        Radio init successful.
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        Init complete, id=255, parent=0, distance=1
                        requesting time
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        requesting time
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        requesting time
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        requesting time
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        requesting time
                        req id
                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                        
                        

                        The RF communication is fine, but I do not understand why Domoticz is not assigning ID.......

                        EDIT: I can see in Domoticz in the Hardware section:

                        MySensors Gateway with LAN interface
                        Version: ? Setup
                        

                        Typically ? comes up when the controller is not recognised or not connected

                        EDIT2:Deleted and started fresh. Unfortunately, now the log file is flooded with the following:

                        
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        mysGateway: Max number of ethernet clients reached.
                        
                        M Offline
                        M Offline
                        marceloaqno
                        Code Contributor
                        wrote on last edited by
                        #60

                        @alexsh1 There is a bug with --my-controller-ip-address, I'm not sure if it's your case, but try to avoid it.

                        I tried Domoticz here and everything seems fine:

                        MySensors Gateway with LAN interface
                        Version: 2.0.1-beta (Setup)
                        

                        I recommend you to start from scratch, re-download the gateway from here:
                        https://github.com/marceloaqno/MySensors/tree/dev-raspberrypi

                        alexsh1A 1 Reply Last reply
                        0
                        • M marceloaqno

                          @alexsh1 There is a bug with --my-controller-ip-address, I'm not sure if it's your case, but try to avoid it.

                          I tried Domoticz here and everything seems fine:

                          MySensors Gateway with LAN interface
                          Version: 2.0.1-beta (Setup)
                          

                          I recommend you to start from scratch, re-download the gateway from here:
                          https://github.com/marceloaqno/MySensors/tree/dev-raspberrypi

                          alexsh1A Offline
                          alexsh1A Offline
                          alexsh1
                          wrote on last edited by
                          #61

                          @marceloaqno OK, this must be the reason. I have tried the serial setup and it worked with a little tweak:

                          /dev/ttyUSB20 -> /dev/ttyMySensorsGateway
                          

                          For whatever reason Domoticz did not see ttyMySensorsGateway so I had to create ttyUSB20

                          E 1 Reply Last reply
                          0
                          • alexsh1A alexsh1

                            @marceloaqno OK, this must be the reason. I have tried the serial setup and it worked with a little tweak:

                            /dev/ttyUSB20 -> /dev/ttyMySensorsGateway
                            

                            For whatever reason Domoticz did not see ttyMySensorsGateway so I had to create ttyUSB20

                            E Offline
                            E Offline
                            emc2
                            Hardware Contributor
                            wrote on last edited by
                            #62

                            @alexsh1 said:

                            For whatever reason Domoticz did not see ttyMySensorsGateway so I had to create ttyUSB20

                            Domoticz seems to only look for ttyUSB* interfaces. One easy trick is to run ./configure with this option so you don't have to worry with symlinking

                            ./configure --my-serial-pty=/dev/ttyUSBMySensorsGateway
                            

                            BTW @marceloaqno , what does the option --my-serial-is-pty exactly do?
                            So far I've been running the gateway in ethernet mode for a little while and it's working flawlessly, thanks a lot for this port.

                            alexsh1A 1 Reply Last reply
                            1
                            • E emc2

                              @alexsh1 said:

                              For whatever reason Domoticz did not see ttyMySensorsGateway so I had to create ttyUSB20

                              Domoticz seems to only look for ttyUSB* interfaces. One easy trick is to run ./configure with this option so you don't have to worry with symlinking

                              ./configure --my-serial-pty=/dev/ttyUSBMySensorsGateway
                              

                              BTW @marceloaqno , what does the option --my-serial-is-pty exactly do?
                              So far I've been running the gateway in ethernet mode for a little while and it's working flawlessly, thanks a lot for this port.

                              alexsh1A Offline
                              alexsh1A Offline
                              alexsh1
                              wrote on last edited by
                              #63

                              @emc2 said:

                              ./configure --my-serial-pty=/dev/ttyUSBMySensorsGateway

                              Exallent fix! Thanks

                              @marceloaqno I can confirm that the Ethernet GW works fine without --my-controller-ip-address
                              MAny thanks for your port and help!

                              E 1 Reply Last reply
                              0
                              • alexsh1A alexsh1

                                @emc2 said:

                                ./configure --my-serial-pty=/dev/ttyUSBMySensorsGateway

                                Exallent fix! Thanks

                                @marceloaqno I can confirm that the Ethernet GW works fine without --my-controller-ip-address
                                MAny thanks for your port and help!

                                E Offline
                                E Offline
                                emc2
                                Hardware Contributor
                                wrote on last edited by
                                #64

                                @alexsh1 said:
                                I can confirm that the Ethernet GW works fine without --my-controller-ip-address

                                Just a guess, I see on your previous post that you used --my-controller-ip-address=127,0,0,1 it may have been a typo here, but did you try with --my-controller-ip-address=127.0.0.1? (dots instead of commas in the IP)?

                                alexsh1A 1 Reply Last reply
                                0
                                • E emc2

                                  @alexsh1 said:
                                  I can confirm that the Ethernet GW works fine without --my-controller-ip-address

                                  Just a guess, I see on your previous post that you used --my-controller-ip-address=127,0,0,1 it may have been a typo here, but did you try with --my-controller-ip-address=127.0.0.1? (dots instead of commas in the IP)?

                                  alexsh1A Offline
                                  alexsh1A Offline
                                  alexsh1
                                  wrote on last edited by
                                  #65

                                  @emc2 No, this is not a typo. This is a format. And yes, I have tried it with dots (127.0.0.1) - it did not compile.

                                  1 Reply Last reply
                                  1
                                  • E Offline
                                    E Offline
                                    emc2
                                    Hardware Contributor
                                    wrote on last edited by
                                    #66

                                    Good to know then, thanks!

                                    1 Reply Last reply
                                    1
                                    • alexsh1A Offline
                                      alexsh1A Offline
                                      alexsh1
                                      wrote on last edited by
                                      #67

                                      BTW, I am using a nice adapter for nrf24l01+ LNA+PA designed by @GertSanders :
                                      https://www.openhardware.io/view/17/Raspberry-Pi2-GPIO-interface-for-NRF24L01

                                      Works nicely with this port and RPi 3.

                                      1 Reply Last reply
                                      0
                                      • E Offline
                                        E Offline
                                        emc2
                                        Hardware Contributor
                                        wrote on last edited by emc2
                                        #68

                                        Same, I had one Pi with GertSanders adapter and now switched to the SMD versions to fit nicely in my case.
                                        https://www.openhardware.io/view/105/MySRaspiGW
                                        https://www.openhardware.io/view/116/MySRaspiGW-PALNA

                                        Interestingly the regular one is working better than the PA+LNA version since moved to 2.0, at least in term of sending commands. Receiving is fine. Compiling with --my-rf24-pa-level=RF24_PA_LOW helps a lot. It seems 2.0 is really more power hungry, any hope to optimize this?

                                        Which remind me of one thing, sorry to bother you again @marceloaqno (how) is the --my-rf24-irq-pin=<PIN> working?
                                        I installed wiringpi to get rid of the wiringPiISR: Can't find gpio program but I'm not sure if it's supposed to do anything in the long term.
                                        I was thinking updating the design of my PCB to link BCM 24 (pin 18) to the IRQ pin of the radio module but it's unclear to me if the IRQ will ever actually be used on the gateway.

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          marceloaqno
                                          Code Contributor
                                          wrote on last edited by
                                          #69

                                          Those are cool adapters, I need to build one for me.

                                          @emc2 It's no bother at all!
                                          Using nrf24 IRQ pin can give you more throughput and less chance of losing messages. It makes more sense to use if you have many sensors or need to transfer binary data (https://forum.mysensors.org/topic/3594/solar-powered-observation-nesting-box-network/).

                                          --my-serial-is-pty will simulate a serial port and create a symbolic link to it instead of using a real one.

                                          E 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          9

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

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