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. Announcements
  3. 💬 Building a Raspberry Pi Gateway

💬 Building a Raspberry Pi Gateway

Scheduled Pinned Locked Moved Announcements
1.1k Posts 173 Posters 422.6k Views 131 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

    @Christian-Simonsen you need to be within the MySensors folders to execute commands configure and make.
    I recommend you to test that everything is working before using the option --my-rf24-irq-pin=15

    Like this:

    cd MySensors
    ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my-radio=nrf24
    make
    sudo ./examples_linux/mysGateway -d
    
    Christian SimonsenC Offline
    Christian SimonsenC Offline
    Christian Simonsen
    wrote on last edited by
    #72

    @marceloaqno said:

    cd MySensors
    ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my

    Thanks for letting me know, didn't know that not running it from the specific folder would have an impact.

    I reconfigured it as you recommended. and restarted the gateway, with the result below.

    pi@raspberrypi:~/MySensors $ sudo ./examples_linux/mysGateway -d
    mysGateway: Starting gateway...
    mysGateway: Protocol version - 2.0.1-beta
    mysGateway: MCO:BGN:INIT GW,CP=RNNG---,VER=2.0.1-beta
    mysGateway: TSF:LRT:OK
    mysGateway: TSM:INIT
    mysGateway: TSM:INIT:TSP OK
    mysGateway: TSM:INIT:GW MODE
    mysGateway: TSM:READY
    mysGateway: MCO:REG:NOT NEEDED
    mysGateway: MCO:BGN:STP
    mysGateway: MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,0!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,0!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,0!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,0!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,0!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,14!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,0!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,0!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,14!=7
    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysGateway: !TSF:MSG:LEN,0!=7
    

    What is the best way to test if the gateway work? What sketch should I use on the arduino? and how do I see in Terminal that the mysGateway receive the transfer successfully?

    jerseyguy1996J M 2 Replies Last reply
    0
    • b0rmannB Offline
      b0rmannB Offline
      b0rmann
      wrote on last edited by
      #73

      very interesting data...

      journalctl -u mysgateway --since 13:15 | grep MSG:READ

      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:24.6
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
      Oct 21 13:16:31 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
      Oct 21 13:16:31 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
      Oct 21 13:17:17 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
      Oct 21 13:17:17 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=167,c=1,t=0,pt=7,l=5,sg=0:24.6
      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=167,c=1,t=0,pt=7,l=5,sg=0:24.6
      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
      Oct 21 13:17:19 pi mysGateway[30406]: TSF:MSG:READ,10-10-0,s=12,c=1,t=0,pt=7,l=5,sg=0:34
      Oct 21 13:17:19 pi mysGateway[30406]: TSF:MSG:READ,10-10-0,s=14,c=1,t=0,pt=7,l=5,sg=0:24
      

      node 2
      sensor 167 - dht18b20 indoor
      sensor 251 - dht18b20 indoor

      node 3
      sensor 0 - dht18b20 outdoor
      sensor 3 - light (0..100)
      sensor 4 - light (0..100)

      questions:
      why node 2 and node 3 send messages directly and via node 10?

      24.6 - is actual value from 2/251, but gateway receive this value from 3/0 How is it possible?

      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:24.6
      
      M 1 Reply Last reply
      0
      • Christian SimonsenC Offline
        Christian SimonsenC Offline
        Christian Simonsen
        wrote on last edited by Christian Simonsen
        #74

        Hi,

        Is there anyone here that can give me some one-to-one support this evening to setup the Raspberry Pi + NRF24L01 as a gateway with MyController, and a Arduino Uno + NRF24L01 as Sensor node. I'm stuck after trying various things over the past week, so looks like I need some additional skills/knowledge to get the first setup working.

        Maybe we can use Skype or some other medium. I will gladly pay a bit for this support if anyone is interested. I have some free time from 18:00 CET - 23:30 CET today...

        1 Reply Last reply
        0
        • nicoN Offline
          nicoN Offline
          nico
          wrote on last edited by
          #75

          hi, the gateway works but how display sensors in domoticz?
          Thank you very much

          alexsh1A 1 Reply Last reply
          0
          • nicoN nico

            hi, the gateway works but how display sensors in domoticz?
            Thank you very much

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

            @nico you need a sensor to send data to GW and assuming you have GW added to Domoticz, Domoticz will add up corresponding values to "Devices"

            1 Reply Last reply
            1
            • nicoN Offline
              nicoN Offline
              nico
              wrote on last edited by
              #77

              I have a gateway and 1 sensor ,obviously.
              I have added serial GW but anyone sensor appear, i'm sure that the sensor works, and the gateway also (see with the command mysGateway -d).
              Can you have any idea ? Thank you

              alexsh1A 1 Reply Last reply
              0
              • nicoN nico

                I have a gateway and 1 sensor ,obviously.
                I have added serial GW but anyone sensor appear, i'm sure that the sensor works, and the gateway also (see with the command mysGateway -d).
                Can you have any idea ? Thank you

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

                @nico I would suggest you open up a different post in the Troubleshooting section regarding this matter
                1 post GW and sensor logs
                2. How do you know that the GW was added to Domoticz? Logs please?

                1 Reply Last reply
                1
                • Christian SimonsenC Christian Simonsen

                  @marceloaqno said:

                  cd MySensors
                  ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my

                  Thanks for letting me know, didn't know that not running it from the specific folder would have an impact.

                  I reconfigured it as you recommended. and restarted the gateway, with the result below.

                  pi@raspberrypi:~/MySensors $ sudo ./examples_linux/mysGateway -d
                  mysGateway: Starting gateway...
                  mysGateway: Protocol version - 2.0.1-beta
                  mysGateway: MCO:BGN:INIT GW,CP=RNNG---,VER=2.0.1-beta
                  mysGateway: TSF:LRT:OK
                  mysGateway: TSM:INIT
                  mysGateway: TSM:INIT:TSP OK
                  mysGateway: TSM:INIT:GW MODE
                  mysGateway: TSM:READY
                  mysGateway: MCO:REG:NOT NEEDED
                  mysGateway: MCO:BGN:STP
                  mysGateway: MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,0!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,0!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,0!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,0!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,0!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,14!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,0!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,0!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,14!=7
                  mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                  mysGateway: !TSF:MSG:LEN,0!=7
                  

                  What is the best way to test if the gateway work? What sketch should I use on the arduino? and how do I see in Terminal that the mysGateway receive the transfer successfully?

                  jerseyguy1996J Offline
                  jerseyguy1996J Offline
                  jerseyguy1996
                  wrote on last edited by
                  #79

                  @Christian-Simonsen

                  You can pretty much test out using any of the arduino examples here:

                  https://github.com/mysensors/MySensors/tree/development/examples

                  Each one will present itself to the gateway when it starts up and you will see the presentation in the debug log. Make sure to run:

                  https://github.com/mysensors/MySensors/tree/development/examples/ClearEepromConfig

                  on the arduino first to make sure it starts with a fresh eeprom. After you select an Arduino sketch to test it with (seriously it doesn't matter which one you try) make sure to look at the sketch and add:

                  // Enable and select radio type attached
                  #define MY_RADIO_NRF24
                  #define MY_NODE_ID 4
                  

                  For MY_NODE_ID you can select any number. Just make sure that each new sensor node that you create has a different node number so like start out at MY_NODE_ID 1 and when you make another sensor node you can #define MY_NODE_ID 2 and so on.

                  Next load it up to the Arduino, open the serial monitor, and see what happens. If you watch the serial monitor on the arduino you will see it present itself to the gateway and then you can confirm it in the debug log on the raspberry pi.

                  I think it is pretty normal to have the problems you are having. I uninstalled and reinstalled the gateway 3 times on the Raspberry Pi before I finally got it all figured out. Once you get it running it is a glorious thing.

                  1 Reply Last reply
                  1
                  • Christian SimonsenC Christian Simonsen

                    @marceloaqno said:

                    cd MySensors
                    ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my

                    Thanks for letting me know, didn't know that not running it from the specific folder would have an impact.

                    I reconfigured it as you recommended. and restarted the gateway, with the result below.

                    pi@raspberrypi:~/MySensors $ sudo ./examples_linux/mysGateway -d
                    mysGateway: Starting gateway...
                    mysGateway: Protocol version - 2.0.1-beta
                    mysGateway: MCO:BGN:INIT GW,CP=RNNG---,VER=2.0.1-beta
                    mysGateway: TSF:LRT:OK
                    mysGateway: TSM:INIT
                    mysGateway: TSM:INIT:TSP OK
                    mysGateway: TSM:INIT:GW MODE
                    mysGateway: TSM:READY
                    mysGateway: MCO:REG:NOT NEEDED
                    mysGateway: MCO:BGN:STP
                    mysGateway: MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,14!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,14!=7
                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    

                    What is the best way to test if the gateway work? What sketch should I use on the arduino? and how do I see in Terminal that the mysGateway receive the transfer successfully?

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

                    @Christian-Simonsen

                    mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                    mysGateway: !TSF:MSG:LEN,0!=7
                    

                    looks like a power issue with the nrf24 module.

                    Christian SimonsenC 1 Reply Last reply
                    0
                    • b0rmannB b0rmann

                      very interesting data...

                      journalctl -u mysgateway --since 13:15 | grep MSG:READ

                      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
                      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
                      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
                      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:24.6
                      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
                      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
                      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
                      Oct 21 13:16:31 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
                      Oct 21 13:16:31 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
                      Oct 21 13:17:17 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
                      Oct 21 13:17:17 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=167,c=1,t=0,pt=7,l=5,sg=0:24.6
                      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
                      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
                      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=167,c=1,t=0,pt=7,l=5,sg=0:24.6
                      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
                      Oct 21 13:17:19 pi mysGateway[30406]: TSF:MSG:READ,10-10-0,s=12,c=1,t=0,pt=7,l=5,sg=0:34
                      Oct 21 13:17:19 pi mysGateway[30406]: TSF:MSG:READ,10-10-0,s=14,c=1,t=0,pt=7,l=5,sg=0:24
                      

                      node 2
                      sensor 167 - dht18b20 indoor
                      sensor 251 - dht18b20 indoor

                      node 3
                      sensor 0 - dht18b20 outdoor
                      sensor 3 - light (0..100)
                      sensor 4 - light (0..100)

                      questions:
                      why node 2 and node 3 send messages directly and via node 10?

                      24.6 - is actual value from 2/251, but gateway receive this value from 3/0 How is it possible?

                      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:24.6
                      
                      M Offline
                      M Offline
                      marceloaqno
                      Code Contributor
                      wrote on last edited by
                      #81

                      @b0rmann Can you provide a full debug log of all involved nodes?

                      1 Reply Last reply
                      0
                      • Patrik SöderströmP Offline
                        Patrik SöderströmP Offline
                        Patrik Söderström
                        wrote on last edited by
                        #82

                        Can I attach one or more DallasTemp sensors on the Raspberry Pi gateway?

                        mfalkviddM 1 Reply Last reply
                        0
                        • M marceloaqno

                          @Christian-Simonsen

                          mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                          mysGateway: !TSF:MSG:LEN,0!=7
                          

                          looks like a power issue with the nrf24 module.

                          Christian SimonsenC Offline
                          Christian SimonsenC Offline
                          Christian Simonsen
                          wrote on last edited by
                          #83

                          @marceloaqno said:

                          @Christian-Simonsen

                          mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                          mysGateway: !TSF:MSG:LEN,0!=7
                          

                          looks like a power issue with the nrf24 module.

                          Ok,

                          I've tested with the Voltmeter and the NRF24L01 module do get a steady 3.26 V. Both the gateway module and the Arduino sensor node...

                          Im now building a few extra sensor nodes, so I can test without the Raspberry pi. Hopefully I can atleast get them talking based on Arduinos first. Before testing the Raspberry Pi.

                          alexsh1A dopeeyeD 2 Replies Last reply
                          0
                          • Patrik SöderströmP Patrik Söderström

                            Can I attach one or more DallasTemp sensors on the Raspberry Pi gateway?

                            mfalkviddM Online
                            mfalkviddM Online
                            mfalkvidd
                            Mod
                            wrote on last edited by
                            #84

                            @Patrik-Söderström said:

                            Can I attach one or more DallasTemp sensors on the Raspberry Pi gateway?

                            I haven't seen anyone doing anything similar so it might require some work. But almost anything is possible given enough work :)

                            Patrik SöderströmP 1 Reply Last reply
                            0
                            • jerseyguy1996J Offline
                              jerseyguy1996J Offline
                              jerseyguy1996
                              wrote on last edited by
                              #85

                              Has anyone else had an issue with getting a sensor node to reconnect after a lost connection? I can see it attempting to reconnect but even though it is back within range of the gateway it won't reestablish the connection. If I reset the node it re-establishes the connection without any problem. This is the cycle that it gets stuck in:

                              TSM:FPAR
                              TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                              TSP:MSG:READ 0-0-3 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                              TSP:MSG:FPAR RES (ID=0, dist=0)
                              TSP:MSG:PAR OK (ID=0, dist=1)
                              TSM:FPAR:OK
                              TSM:ID
                              TSM:CHKID:OK (ID=3)
                              TSM:UPL
                              TSP:PING:SEND (dest=0)
                              !TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
                              TSP:CHKUPL:FAIL (hops=255)
                              !TSM:UPL:FAIL
                              TSM:FPAR
                              TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              TSM:FPAR
                              TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                              TSP:MSG:READ 0-0-3 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                              TSP:MSG:FPAR RES (ID=0, dist=0)
                              TSP:MSG:PAR OK (ID=0, dist=1)
                              TSM:FPAR:OK
                              TSM:ID
                              TSM:CHKID:OK (ID=3)
                              TSM:UPL
                              TSP:PING:SEND (dest=0)
                              !TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
                              TSP:CHKUPL:FAIL (hops=255)
                              !TSM:UPL:FAIL
                              TSM:FPAR
                              TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR
                              !TSP:SEND:TNR```
                              M 1 Reply Last reply
                              0
                              • Christian SimonsenC Christian Simonsen

                                @marceloaqno said:

                                @Christian-Simonsen

                                mysGateway: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
                                mysGateway: !TSF:MSG:LEN,0!=7
                                

                                looks like a power issue with the nrf24 module.

                                Ok,

                                I've tested with the Voltmeter and the NRF24L01 module do get a steady 3.26 V. Both the gateway module and the Arduino sensor node...

                                Im now building a few extra sensor nodes, so I can test without the Raspberry pi. Hopefully I can atleast get them talking based on Arduinos first. Before testing the Raspberry Pi.

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

                                @Christian-Simonsen multimeter will not detect issues with the power feed (noise or unstable). It just says that you voltage under zero load is 3.3V.

                                1 Reply Last reply
                                0
                                • carlylerC Offline
                                  carlylerC Offline
                                  carlyler
                                  wrote on last edited by
                                  #87

                                  Appears things are changing, please update wiki:
                                  Warning: --my-radio is deprecated, please use --my-transport

                                  M 1 Reply Last reply
                                  0
                                  • mfalkviddM mfalkvidd

                                    @Patrik-Söderström said:

                                    Can I attach one or more DallasTemp sensors on the Raspberry Pi gateway?

                                    I haven't seen anyone doing anything similar so it might require some work. But almost anything is possible given enough work :)

                                    Patrik SöderströmP Offline
                                    Patrik SöderströmP Offline
                                    Patrik Söderström
                                    wrote on last edited by
                                    #88

                                    @mfalkvidd Alright :) The thing is that I have my Raspberry Pi as a Gateway today near my server rack and would like to measure the temperatur. Maybe I just get a Nano to do the work for me. Just would have been great to use the Raspberry.

                                    mfalkviddM 1 Reply Last reply
                                    0
                                    • Patrik SöderströmP Patrik Söderström

                                      @mfalkvidd Alright :) The thing is that I have my Raspberry Pi as a Gateway today near my server rack and would like to measure the temperatur. Maybe I just get a Nano to do the work for me. Just would have been great to use the Raspberry.

                                      mfalkviddM Online
                                      mfalkviddM Online
                                      mfalkvidd
                                      Mod
                                      wrote on last edited by
                                      #89

                                      @Patrik-Söderström You can probably connect a temperature sensor to the gpio pins and have your controller read the sensor (without using MySensors)

                                      1 Reply Last reply
                                      0
                                      • carlylerC carlyler

                                        Appears things are changing, please update wiki:
                                        Warning: --my-radio is deprecated, please use --my-transport

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

                                        @carlyler Thanks for pointing that out.

                                        1 Reply Last reply
                                        0
                                        • jerseyguy1996J jerseyguy1996

                                          Has anyone else had an issue with getting a sensor node to reconnect after a lost connection? I can see it attempting to reconnect but even though it is back within range of the gateway it won't reestablish the connection. If I reset the node it re-establishes the connection without any problem. This is the cycle that it gets stuck in:

                                          TSM:FPAR
                                          TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                          TSP:MSG:READ 0-0-3 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                                          TSP:MSG:FPAR RES (ID=0, dist=0)
                                          TSP:MSG:PAR OK (ID=0, dist=1)
                                          TSM:FPAR:OK
                                          TSM:ID
                                          TSM:CHKID:OK (ID=3)
                                          TSM:UPL
                                          TSP:PING:SEND (dest=0)
                                          !TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
                                          TSP:CHKUPL:FAIL (hops=255)
                                          !TSM:UPL:FAIL
                                          TSM:FPAR
                                          TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          TSM:FPAR
                                          TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                          TSP:MSG:READ 0-0-3 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                                          TSP:MSG:FPAR RES (ID=0, dist=0)
                                          TSP:MSG:PAR OK (ID=0, dist=1)
                                          TSM:FPAR:OK
                                          TSM:ID
                                          TSM:CHKID:OK (ID=3)
                                          TSM:UPL
                                          TSP:PING:SEND (dest=0)
                                          !TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
                                          TSP:CHKUPL:FAIL (hops=255)
                                          !TSM:UPL:FAIL
                                          TSM:FPAR
                                          TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR
                                          !TSP:SEND:TNR```
                                          M Offline
                                          M Offline
                                          marceloaqno
                                          Code Contributor
                                          wrote on last edited by
                                          #91

                                          @jerseyguy1996 Are you using a decoupling capacitor?

                                          jerseyguy1996J R 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          14

                                          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