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. Troubleshooting
  3. SerialGateway Standalone not working

SerialGateway Standalone not working

Scheduled Pinned Locked Moved Troubleshooting
serialgatewaypro minidebug mode
14 Posts 5 Posters 5.7k Views 1 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.
  • warawaraW Offline
    warawaraW Offline
    warawara
    wrote on last edited by
    #1

    I have tried everyhting i could think of and could find here on the forum.

    I have 2 Arduino pro mini's 3.3v.

    The first acts as a Motion Sensor with the HC-SR501 sensor connected as shown on the site here. Also used the standard example code. Only changed it to use a static radioId --> gw.begin(45); The arduino is connected with a FTDI cable to my macbook.

    The second arduino has the SerialGateway sketch uploaded and is connected to my Raspberry PI with another FTDI cable.

    The serial monitor on the sensor arduino outputs:
    Started sensor.
    Open ping reading pipe: 45
    Tx: fr=45,to=255,la=45,ne=255,ci=255,mt=4,ty=9,cr=15:
    No relay nodes was found. Trying again in 10 seconds.

    The serial monitor on the SerialGateway arduino outputs:
    0;0;4;11;Arduino startup complete.

    I'm using the same NRF24L01+ transceiver as in the example on the this page.

    I think my problem lies is the SerialGateway arduino. The things I have tried so far:

    • use different radioID on sensor arduino
    • used standard ping examples for RF24. (that works).
    • Tried to activate debug mode on the SerialGateway via these instructions (Serial output still the same as above, no extra info showing up)
    • Tried using an Arduino Uno for the SerialGateway sketch (same serial problems)
    • Used other (but same type) hardware transceivers just to make sure it's not a defect hardware component
    • sending a serial command to the SerialGateway 0;0;4;4; (I get the response 0;0;4;4;1.3b3 (67f4ca1) )
    • Tried lowering RF24_PA_LEVEL & RF24_DATARATE in all possible combinations (same problem)
    • tried change RF24_CHANNEL (same problem)

    I'm not sure what I am doing wrong. I should also get more detail when enabling debug mode, but for some reason my setup is not working.

    Does anybody have any suggestions why my Motion Sensor is not connecting to my SerialGateway or why I cannot get debug mode enabled?

    1 Reply Last reply
    0
    • jendrushJ Offline
      jendrushJ Offline
      jendrush
      wrote on last edited by
      #2

      Are you using serial gateway sketch, and example sketch in the same version?

      1 Reply Last reply
      0
      • warawaraW Offline
        warawaraW Offline
        warawara
        wrote on last edited by
        #3

        Yes. I have installed the libraries and examples according to the tutorial on the site.

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          You seem to have done some extensive testing. Especially if you get the RF24 ping examples working.

          Enabling debug mode on gateway will show more information when an actual radio message is picked up.. So it could be working (but does nor receive anything).

          Could you perhaps try the 1.4 development branch?

          1 Reply Last reply
          0
          • warawaraW Offline
            warawaraW Offline
            warawara
            wrote on last edited by
            #5

            @Hek I was already starting with some tests with the 1.4 development branch.

            Just finishing my initial tests. Don't know why, but the development branch is working perfect!

            hekH 1 Reply Last reply
            0
            • warawaraW warawara

              @Hek I was already starting with some tests with the 1.4 development branch.

              Just finishing my initial tests. Don't know why, but the development branch is working perfect!

              hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #6

              @warawara

              Both the development branch and the ping-examples uses shockburst mode of the NRF24l01.

              1 Reply Last reply
              0
              • warawaraW Offline
                warawaraW Offline
                warawara
                wrote on last edited by
                #7

                Then it looks like that did the trick for me.

                Thanks!

                1 Reply Last reply
                0
                • warawaraW Offline
                  warawaraW Offline
                  warawara
                  wrote on last edited by warawara
                  #8

                  @hek is it possible to use shockburst mode in the master branche with some kind of config setting?

                  hekH 1 Reply Last reply
                  0
                  • warawaraW warawara

                    @hek is it possible to use shockburst mode in the master branche with some kind of config setting?

                    hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #9

                    @warawara

                    It might be, but why?

                    1 Reply Last reply
                    0
                    • warawaraW Offline
                      warawaraW Offline
                      warawara
                      wrote on last edited by
                      #10

                      So i can use the master branche instead of the development.

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        Bandra
                        wrote on last edited by
                        #11

                        @warawara , the development branch is very stable. At this point there is no reason not to use it. It is superior in every way to 1.3.

                        YveauxY 1 Reply Last reply
                        0
                        • B Bandra

                          @warawara , the development branch is very stable. At this point there is no reason not to use it. It is superior in every way to 1.3.

                          YveauxY Offline
                          YveauxY Offline
                          Yveaux
                          Mod
                          wrote on last edited by
                          #12

                          @Bandra well, the protocol still changes every now and then, so be prepared to update your sensors and gateway when updating the library!

                          http://yveaux.blogspot.nl

                          B 1 Reply Last reply
                          0
                          • YveauxY Yveaux

                            @Bandra well, the protocol still changes every now and then, so be prepared to update your sensors and gateway when updating the library!

                            B Offline
                            B Offline
                            Bandra
                            wrote on last edited by
                            #13

                            @Yveaux
                            True. The library is changing constantly (for the better!).

                            I've not encountered any major bugs in the 1.4 beta libraries that I've tried. So if the OP was just starting out then there's value in pulling down the latest 1.4 (which should be quite stable) and starting their sketches from there. Once 1.4 goes to production, then upgrading sketches will be much easier from 1.4b -> 1.4 than from 1.3 -> 1.4.

                            1 Reply Last reply
                            0
                            • warawaraW Offline
                              warawaraW Offline
                              warawara
                              wrote on last edited by
                              #14

                              I'm aware of the superiority of 1.4. Because I just started with building my custom controller I will go with the development branch for now. I really like the new protocol so far.

                              I'm using very basic arduino sketches at the moment. The only thing I'm worried about is my custom controller that I'm building in Node-Red. Hopefully the feature changes will not have to much impact on that part.

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


                              17

                              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