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.
  • L lafleur

    Any plans for RFM69h(w) support??

    Thanks

    M Offline
    M Offline
    marceloaqno
    Code Contributor
    wrote on last edited by marceloaqno
    #17

    @lafleur Do you recommend any RFM69h library that works well in Pi? I could try to add support if there is any.

    1 Reply Last reply
    1
    • L Offline
      L Offline
      lafleur
      wrote on last edited by lafleur
      #18

      There are a number of ports to the RPI...

      http://rdepablos.merlitec.com/mixed/rfm69-library-for-raspberry-pi

      http://jeelabs.org/wp-content/uploads/2015/05/20/rfm69-on-raspberry-pi/index.html

      https://github.com/etrombly/RFM69

      https://123d.circuits.io/circuits/519561-raspberry-pi-and-rfm69hw-interface

      http://www.0x1.be/esa/domotic/arduino/node/domotic-howto-rfm69/

      and others...

      Thanks

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

        Just an update, I've been using this port on my raspberry pi during the last months and it has been quite stable, the code is also up to date with the mysensors development branch.

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

          That's great, thanks @marceloaqno

          I just started testing but I had to revert to 7d51087e589afb1296e71442fe2164807da399ef to have it working.
          Last commit SEGFAULT after

          Eth: Listening for connections on 0.0.0.0:5003
          

          Also, do you have an updated initscript to launch it automatically at boot? It seems the one from the old PiGateway is not working very well with this one. For now I just added a cronjob.

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

            @emc2 Could you give more information about your setup? I wasn't able to reproduce the error.

            For the initscript, I will try to add an updated version for systemd.

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

              So I did a few tests, one of my setup is working on the last commit, the other not. Both are model B.

              • Working Pi:
                Domoticz image, upgraded and up to date wheezy

              • Commit 7d51087e589afb1296e71442fe2164807da399ef Pi:
                Regular (non-Domoticz) old wheezy image updated to jessie

              All are up to date for all package on apt and firmware is up to date for rpi-update

              Linux domoticz 4.4.15+ #897 Tue Jul 12 18:38:58 BST 2016 armv6l GNU/Linux
              

              My bet is that my "non-working" Pi, wich is also my guinea pig Pi, is missing a dependency or something. Let me know if I can get you some logs to troubleshoot, but it may be very specific to this setup so may not be worthwhile investigation unless a common factor start to emerge.

              Anyways, thanks for the port! :+1:

              1 Reply Last reply
              0
              • M marceloaqno

                This is the initial support for Linux/RaspberryPi for the 2.0:
                https://github.com/marceloaqno/Arduino/tree/dev-raspberrypi

                Supports:

                • RF24 radio
                • Ethernet gateway
                • Store "eeprom" to a file (thanks to @aaron832 )
                • MQTT (thanks to @aaron832 )
                • Can be compiled in a linux machine other than Pi

                To be implemented:

                • Store "eeprom" to a file
                • Serial
                • MQTT
                • RF24 interrupts
                • UDP
                • Act as a client to connect to a controller

                I haven't extensively test it, so there are probably some bugs. Any suggestions or ideas for improvement are welcome.

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

                @marceloaqno

                very nice fork. but... i can't compile it:

                git clone https://github.com/marceloaqno/MySensors.git
                cd MySensors
                ./configure --my-gateway=mqtt --my-rf24-channel=1 --my-rf24-pa-level=RF24_PA_MAX --my-controller-ip-address=127,0,0,1 --my-mqtt-client-id=MyGW2 --my-mqtt-publish-topic-prefix="MyGW2out" --my-mqtt-subscribe-topic-prefix="MyGW2in"
                make
                
                g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/EthernetClient.o drivers/Linux/EthernetClient.cpp
                g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/compatibility.o drivers/Linux/compatibility.cpp
                g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/IPAddress.o drivers/Linux/IPAddress.cpp
                g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/EthernetServer.o drivers/Linux/EthernetServer.cpp
                g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o examples_linux/mysGateway.o examples_linux/mysGateway.cpp
                ./core/MyProtocolMySensors.cpp: In function ‘bool protocolMQTTParse(MyMessage&, char*, uint8_t*, unsigned int)’:
                <command-line>:0:32: error: ‘MyGW2in’ was not declared in this scope
                ./core/MyProtocolMySensors.cpp:125:21: note: in expansion of macro ‘MY_MQTT_SUBSCRIBE_TOPIC_PREFIX’
                     if (strcmp(str, MY_MQTT_SUBSCRIBE_TOPIC_PREFIX) != 0) {
                                     ^
                In file included from ./MySensors.h:225:0,
                                 from examples_linux/mysGateway.cpp:44:
                ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::connect(const char*, const char*, const char*, const char*, uint8_t, boolean, const char*)’:
                ./drivers/PubSubClient/PubSubClient.cpp:176:55: error: ‘millis’ was not declared in this scope
                             lastInActivity = lastOutActivity = millis();
                                                                       ^
                ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::readByte(uint8_t*)’:
                ./drivers/PubSubClient/PubSubClient.cpp:210:37: error: ‘millis’ was not declared in this scope
                    uint32_t previousMillis = millis();
                                                     ^
                ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::loop()’:
                ./drivers/PubSubClient/PubSubClient.cpp:284:34: error: ‘millis’ was not declared in this scope
                         unsigned long t = millis();
                                                  ^
                
                

                and more, more similar errors. with --my-gateway=ethernet compiled fine

                M 1 Reply Last reply
                0
                • b0rmannB b0rmann

                  @marceloaqno

                  very nice fork. but... i can't compile it:

                  git clone https://github.com/marceloaqno/MySensors.git
                  cd MySensors
                  ./configure --my-gateway=mqtt --my-rf24-channel=1 --my-rf24-pa-level=RF24_PA_MAX --my-controller-ip-address=127,0,0,1 --my-mqtt-client-id=MyGW2 --my-mqtt-publish-topic-prefix="MyGW2out" --my-mqtt-subscribe-topic-prefix="MyGW2in"
                  make
                  
                  g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/EthernetClient.o drivers/Linux/EthernetClient.cpp
                  g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/compatibility.o drivers/Linux/compatibility.cpp
                  g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/IPAddress.o drivers/Linux/IPAddress.cpp
                  g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/EthernetServer.o drivers/Linux/EthernetServer.cpp
                  g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o examples_linux/mysGateway.o examples_linux/mysGateway.cpp
                  ./core/MyProtocolMySensors.cpp: In function ‘bool protocolMQTTParse(MyMessage&, char*, uint8_t*, unsigned int)’:
                  <command-line>:0:32: error: ‘MyGW2in’ was not declared in this scope
                  ./core/MyProtocolMySensors.cpp:125:21: note: in expansion of macro ‘MY_MQTT_SUBSCRIBE_TOPIC_PREFIX’
                       if (strcmp(str, MY_MQTT_SUBSCRIBE_TOPIC_PREFIX) != 0) {
                                       ^
                  In file included from ./MySensors.h:225:0,
                                   from examples_linux/mysGateway.cpp:44:
                  ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::connect(const char*, const char*, const char*, const char*, uint8_t, boolean, const char*)’:
                  ./drivers/PubSubClient/PubSubClient.cpp:176:55: error: ‘millis’ was not declared in this scope
                               lastInActivity = lastOutActivity = millis();
                                                                         ^
                  ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::readByte(uint8_t*)’:
                  ./drivers/PubSubClient/PubSubClient.cpp:210:37: error: ‘millis’ was not declared in this scope
                      uint32_t previousMillis = millis();
                                                       ^
                  ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::loop()’:
                  ./drivers/PubSubClient/PubSubClient.cpp:284:34: error: ‘millis’ was not declared in this scope
                           unsigned long t = millis();
                                                    ^
                  
                  

                  and more, more similar errors. with --my-gateway=ethernet compiled fine

                  M Offline
                  M Offline
                  marceloaqno
                  Code Contributor
                  wrote on last edited by
                  #24

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

                  alexsh1A 1 Reply Last reply
                  1
                  • E Offline
                    E Offline
                    ericvdb
                    wrote on last edited by
                    #25

                    Do I get it right that this is a RPi gateway with directly connected RF24L01+ tranceiver with support for both ethernet and MQTT?

                    If so, is there a guide somewhere on how to set this all up?

                    M 1 Reply Last reply
                    0
                    • E ericvdb

                      Do I get it right that this is a RPi gateway with directly connected RF24L01+ tranceiver with support for both ethernet and MQTT?

                      If so, is there a guide somewhere on how to set this all up?

                      M Offline
                      M Offline
                      marceloaqno
                      Code Contributor
                      wrote on last edited by marceloaqno
                      #26

                      @ericvdb That's right. I hope to add support for RFM69, Serial and software signing very soon.

                      To use, clone the raspberryPi port for MySensors 2.0:

                      git clone https://github.com/marceloaqno/MySensors.git
                      cd MySensors
                      

                      To configure it, take a look at the options available within configure:

                      ./configure --help
                      

                      For other options, you may have to edit the sample file example_linux/mysGateway.cpp, and uncoment what you need.

                      Once done, run:

                      make
                      sudo make install
                      

                      To run the gateway you need to be root or use sudo:

                      sudo msyGateway -h
                      

                      For wiring, follow this guide:
                      https://forum.mysensors.org/topic/2437/step-by-step-procedure-to-connect-the-nrf24l01-to-the-gpio-pins-and-use-the-raspberry-as-a-serial-gateway-mysensors-1-x

                      ikkeTI W 2 Replies Last reply
                      1
                      • E Offline
                        E Offline
                        ericvdb
                        wrote on last edited by
                        #27

                        @marceloaqno thanks, will try this asap. What about the status leds, is that supported?

                        M 1 Reply Last reply
                        0
                        • E ericvdb

                          @marceloaqno thanks, will try this asap. What about the status leds, is that supported?

                          M Offline
                          M Offline
                          marceloaqno
                          Code Contributor
                          wrote on last edited by
                          #28

                          @ericvdb sorry, no support for status led.

                          b0rmannB 1 Reply Last reply
                          0
                          • M marceloaqno

                            @ericvdb sorry, no support for status led.

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

                            @marceloaqno

                            1. configuration read/save bug:
                            Aug 22 08:52:47 pi systemd[1]: Starting MySensors Gateway daemon...
                            Aug 22 08:52:47 pi systemd[1]: Started MySensors Gateway daemon.
                            Aug 22 08:52:47 pi mysGateway[22735]: Config file /tmp/MySensorGateway.cfg is not the correct size of 1024.  Please remove the file and a new one will be created.
                            Aug 22 08:52:47 pi systemd[1]: mysgateway.service: main process exited, code=exited, status=1/FAILURE
                            Aug 22 08:52:47 pi systemd[1]: Unit mysgateway.service entered failed state.
                            
                            root@pi:~# ls -la /tmp/MySensorGateway.cfg 
                            -rw-r--r-- 1 root root 828 Aug 22 08:50 /tmp/MySensorGateway.cfg
                            

                            gateway starting only after manual removing old (bad sized) config

                            p.s. content of config:

                            0000000  ff ff 48 05 02 00 ac 43  01 00 48 05 02 00 f0 02  |..H....C..H.....|
                            00000010  02 00 00 00 00 00 00 03  02 00 05 00 00 00 00 26  |...............&|
                            00000020  01 00 02 00 00 00 01 00  00 02 02 00 00 00 00 00  |................|
                            00000030  00 00 00 00 00 00 38 29  01 00 00 00 00 00 00 00  |......8)........|
                            00000040  00 00 00 00 00 00 00 00  f9 76 00 00 00 00 94 62  |.........v.....b|
                            00000050  c5 76 00 b0 d7 76 b4 fe  cd 7e 01 00 00 00 e0 24  |.v...v...~.....$|
                            00000060  01 00 20 d0 a4 76 00 00  f8 76 00 00 00 00 00 00  |.. ..v...v......|
                            00000070  00 00 38 29 01 00 00 00  00 00 00 00 00 00 00 00  |..8)............|
                            00000080  00 00 00 00 f9 76 00 00  00 00 d7 84 d8 38 e7 1b  |.....v.......8..|
                            00000090  d0 30 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |.0..............|
                            000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
                            000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
                            000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
                            000000d0  00 00 ff ff ff ff ff ff  ff ff 00 00 00 00 10 0b  |................|
                            000000e0  f9 76 00 f0 e4 76 18 42  0d 00 ff ff ff ff 00 00  |.v...v.B........|
                            000000f0  00 00 28 9e c4 76 00 00  f8 76 00 00 00 00 b8 f3  |..(..v...v......|
                            00000100  f6 76 00 d4 a4 76 01 00  00 00 01 00 00 00 00 00  |.v...v..........|
                            00000110  00 00 01 00 00 00 48 4e  c4 76 a4 ae f2 76 1c ff  |......HN.v...v..|
                            00000120  f1 76 01 00 00 00 58 09  f9 76 00 00 00 00 d4 02  |.v....X..v......|
                            00000130  02 00 c0 c4 a4 76 00 00  00 00 7c 0e 01 00 01 00  |.....v....|.....|
                            00000140  00 00 00 00 00 00 b8 f3  f6 76 20 d0 a4 76 01 00  |.........v ..v..|
                            00000150  00 00 01 00 00 00 00 00  00 00 00 a0 01 00 28 9e  |..............(.|
                            00000160  c4 76 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |.v..............|
                            00000170  00 00 00 00 00 00 00 00  00 00 00 00 f9 76 50 5f  |.............vP_|
                            00000180  f7 76 00 00 00 00 00 00  00 00 38 29 01 00 00 00  |.v........8)....|
                            00000190  00 00 00 00 00 00 64 29  01 00 88 ef 01 00 08 04  |......d)........|
                            000001a0  f7 76 b4 fe cd 7e 86 ff  cd 7e 00 00 00 00 a0 ff  |.v...~...~......|
                            000001b0  cd 7e 00 00 00 00 21 00  00 00 00 20 d2 7e 10 00  |.~....!.... .~..|
                            000001c0  00 00 d6 b0 3f 00 06 00  00 00 00 10 00 00 11 00  |....?...........|
                            000001d0  00 00 64 00 00 00 03 00  00 00 34 00 01 00 04 00  |..d.......4.....|
                            000001e0  00 00 20 00 00 00 05 00  00 00 08 00 00 00 07 00  |.. .............|
                            000001f0  00 00 00 00 f6 76 08 00  00 00 00 00 00 00 09 00  |.....v..........|
                            00000200  00 00 38 29 01 00 0b 00  00 00 00 00 00 00 0c 00  |..8)............|
                            00000210  00 00 00 00 00 00 0d 00  00 00 00 00 00 00 0e 00  |................|
                            00000220  00 00 00 00 00 00 17 00  00 00 00 00 00 00 19 00  |................|
                            00000230  00 00 72 ff cd 7e 1a 00  00 00 00 00 00 00 1f 00  |..r..~..........|
                            00000240  00 00 e2 ff cd 7e 0f 00  00 00 82 ff cd 7e 00 00  |.....~.......~..|
                            00000250  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
                            00000260  00 00 00 00 49 3b f4 2c  b7 79 15 46 6b 69 82 6b  |....I;.,.y.Fki.k|
                            00000270  8d d1 16 fc 76 37 6c 00  2f 75 73 72 2f 6c 6f 63  |....v7l./usr/loc|
                            00000280  61 6c 2f 62 69 6e 2f 6d  79 73 47 61 74 65 77 61  |al/bin/mysGatewa|
                            00000290  79 00 50 41 54 48 3d 2f  75 73 72 2f 6c 6f 63 61  |y.PATH=/usr/loca|
                            000002a0  6c 2f 73 62 69 6e 3a 2f  75 73 72 2f 6c 6f 63 61  |l/sbin:/usr/loca|
                            000002b0  6c 2f 62 69 6e 3a 2f 75  73 72 2f 73 62 69 6e 3a  |l/bin:/usr/sbin:|
                            000002c0  2f 75 73 72 2f 62 69 6e  3a 2f 73 62 69 6e 3a 2f  |/usr/bin:/sbin:/|
                            000002d0  62 69 6e 00 2f 75 73 72  2f 6c 6f 63 61 6c 2f 62  |bin./usr/local/b|
                            000002e0  69 6e 2f 6d 79 73 47 61  74 65 77 61 79 00 00 00  |in/mysGateway...|
                            000002f0  00 00                                             |..|
                            
                            1 Reply Last reply
                            0
                            • b0rmannB Offline
                              b0rmannB Offline
                              b0rmann
                              wrote on last edited by
                              #30
                              1. routing problems?
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=1
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=1
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                              Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                              
                              
                              M 1 Reply Last reply
                              0
                              • b0rmannB b0rmann
                                1. routing problems?
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=1
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=1
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
                                Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                
                                
                                M Offline
                                M Offline
                                marceloaqno
                                Code Contributor
                                wrote on last edited by
                                #31

                                @b0rmann Fixed a bug with the config file. Please remove your MySensorGateway.cfg and let the gateway re-create it.
                                Also the default config file name was changed to /etc/mysensors.dat

                                For the routing problem, do you have the output from the nodes that are communicating with the gateway?

                                b0rmannB 1 Reply Last reply
                                1
                                • M marceloaqno

                                  @b0rmann Fixed a bug with the config file. Please remove your MySensorGateway.cfg and let the gateway re-create it.
                                  Also the default config file name was changed to /etc/mysensors.dat

                                  For the routing problem, do you have the output from the nodes that are communicating with the gateway?

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

                                  @marceloaqno

                                  it was not a problem with the routing, but the powering nrf24 from 3v3 rpi output. It solved a separate power source

                                  1 Reply Last reply
                                  0
                                  • raptorjrR Offline
                                    raptorjrR Offline
                                    raptorjr
                                    wrote on last edited by
                                    #33

                                    I'm trying to get this to work, and it looked good. But after a day of running my Pi3 with Domoticz stopped answering to anything. Couldn't even connect with SSH.
                                    So now I need to start to troubleshoot. But I wonder if mysGateway produces a log somewhere? And where can I find the MySensorGateway.cfg? It is not in /tmp.

                                    After restart of the Pi3 I always get a error from Domoticz about not being able to send the command, although it does get through anyway.
                                    Don't know if mysGateway is the problem, but I need to gather all the logs I can find to figure it out.

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

                                      @raptorjr MySensorGateway.cfg was renamed to mysensors.dat in the last version. The default directory that the gateway keeps the file is /etc. The file is used mostly to keep the nodes routes, so you won't find anything useful there. Which linux distro/version you're using in your RPi?

                                      raptorjrR 1 Reply Last reply
                                      0
                                      • M marceloaqno

                                        @raptorjr MySensorGateway.cfg was renamed to mysensors.dat in the last version. The default directory that the gateway keeps the file is /etc. The file is used mostly to keep the nodes routes, so you won't find anything useful there. Which linux distro/version you're using in your RPi?

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

                                        @marceloaqno

                                        Thank you. I thought that the .cfg file contained some information about a log file, but now I know it's purpose =)

                                        I'm using a SD card image I found at the Domoticz site, preinstalled with Domoticz.

                                        Linux raspberrypi 4.1.18-v7+ #846 SMP Thu Feb 25 14:22:53 GMT 2016 armv7l GNU/Linux

                                        The problem could be with Domoticz also, but since I thought that mysGateway is still kind of beta I would start to look for the problem there.

                                        Now I found a entry in the Domoticz error log:
                                        2016-08-26 19:31:00.663 Error: Gateway hardware (4) thread seems to have ended unexpectedly

                                        So it seems that something maybe happened with the mysController. Maybe not died, but stopped answering and locking the whole Pi?
                                        Or if that error refers to some internal Domoticz gateway thread.

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

                                          @raptorjr you could try to pipe the gateway output to a file starting it manually:

                                          sudo mysGateway &> /tmp/mysensors.log &
                                          
                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          18

                                          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