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. Serial Gateway crash and reloads

Serial Gateway crash and reloads

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 5 Posters 4.7k Views 4 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.
  • martinsM
    martinsM
    martins
    wrote on last edited by
    #5

    I comment out one msg.set from the sensor and that fix the problem. I really don't think this is power related. And this is the gateway guys. It is only powering an arduino mini pro and a rfm69.

    1 Reply Last reply
    0
    • martinsM
      martinsM
      martins
      wrote on last edited by
      #6

      Even connected directly via usb to the ide I get the same symptom.

      1 Reply Last reply
      0
      • gohanG
        gohanG
        gohan
        Mod
        wrote on last edited by gohan
        #7

        Post your code and some more details on your hardware used. Btw, have you tried to swap the arduino in the gateway?

        1 Reply Last reply
        0
        • martinsM
          martinsM
          martins
          wrote on last edited by gohan
          #8

          This works perfect without the gateway reloading:

          void granted (int setDelay) {
            value = 1;
            send(msg.set(value==HIGH ? 1 : 0));
            delay(setDelay);
            value = 0;
            send(msg.set(value==HIGH ? 1 : 0));
            #ifdef MY_DEBUG
              Serial.print("UID sent to Controller: ");
              Serial.println(uid_rfid_str);
            #endif
          									
          // Send to gateway the UID to keep log of who entered
          //  send(TEXTMsg.set(uid_rfid), false);
          }
          

          However as soon as I uncomment this it reloads:

           send(TEXTMsg.set(uid_rfid), true);
          

          Some more code:

          MyMessage msg(CHILD_ID,V_TRIPPED);
          MyMessage TEXTMsg(CHILD_ID_TXT,V_TEXT);  // Send UID of RFID tag
          
          
          void presentation() {
            sendSketchInfo("RFID Gate", "1.0");
            present(CHILD_ID, S_DOOR);
            
            sendSketchInfo("RFID UID", "0.0.1");
            present(CHILD_ID_TXT, S_INFO, "RFID UID", true);
          }
          
          1 Reply Last reply
          0
          • martinsM
            martinsM
            martins
            wrote on last edited by
            #9

            Changed the arduino pro mini. Same effect. As soon as this is executed the serial gateway restarts send(TEXTMsg.set(uid_rfid), true);

            Output on serial gateway:
            0;255;3;0;9;!TSF:MSG:SEND,0-0-10-10,s=9,c=1,t=47,pt=0,l=8,sg=0,ft=0,st=NACK:c350fd4b
            Gateway restart:cry:
            0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGA--,VER=2.1.1
            0;255;3;0;9;TSM:INIT
            0;255;3;0;9;TSF:WUR:MS=0
            0;255;3;0;9;TSM:INIT:TSP OK
            0;255;3;0;9;TSM:INIT:GW MODE
            0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
            0;255;3;0;9;MCO:REG:NOT NEEDED
            0;255;3;0;14;Gateway startup complete.
            0;255;0;0;18;2.1.1
            0;255;3;0;11;MySensors Serial Gateway
            0;255;3;0;12;2.0.0
            0;255;3;0;9;MCO:BGN:STP
            0;255;3;0;9;MCO:BGN:INIT OK,TSP=1

            1 Reply Last reply
            0
            • martinsM
              martinsM
              martins
              wrote on last edited by
              #10

              Narrowed it down a bit more. As soon as I change the true (req ack) to false the gateway don't crash anymore. So my question now is why would a ack req cause the gateway to crash ?

                send(TEXTMsg.set(uid_rfid), false);```
              1 Reply Last reply
              0
              • gohanG
                gohanG
                gohan
                Mod
                wrote on last edited by gohan
                #11

                What Arduino ide version are you using? And what avr boards definitions?

                PS I corrected the code tags in your previous post as you didn't put them on separate lines and they were not working correctly

                1 Reply Last reply
                0
                • martinsM
                  martinsM
                  martins
                  wrote on last edited by
                  #12

                  IDE 1.8.1

                  0_1489826183494_upload-88d0d7f0-c39a-47e1-aa30-6f49a3310a96

                  YveauxY 1 Reply Last reply
                  0
                  • martinsM martins

                    IDE 1.8.1

                    0_1489826183494_upload-88d0d7f0-c39a-47e1-aa30-6f49a3310a96

                    YveauxY
                    YveauxY
                    Yveaux
                    Mod
                    wrote on last edited by
                    #13

                    @martins the 3v3 from rpi can only supply very low currents iirr. This could cause issues as soon as you start using the radio (sending messages).
                    Could you try powering from a different, beefier power supply to rule out the supply?

                    http://yveaux.blogspot.nl

                    gohanG 1 Reply Last reply
                    0
                    • YveauxY Yveaux

                      @martins the 3v3 from rpi can only supply very low currents iirr. This could cause issues as soon as you start using the radio (sending messages).
                      Could you try powering from a different, beefier power supply to rule out the supply?

                      gohanG
                      gohanG
                      gohan
                      Mod
                      wrote on last edited by
                      #14

                      @Yveaux he said he connected directly the USB to computer but still gets reboots. Maybe downgrading avr boards to 1.6.11 or earlier?

                      YveauxY 1 Reply Last reply
                      0
                      • gohanG gohan

                        @Yveaux he said he connected directly the USB to computer but still gets reboots. Maybe downgrading avr boards to 1.6.11 or earlier?

                        YveauxY
                        YveauxY
                        Yveaux
                        Mod
                        wrote on last edited by
                        #15

                        @gohan I couldn't tell if he switched power supply. USB is 5v, his pro mini 3v3, so where does the 3v3 come from?

                        http://yveaux.blogspot.nl

                        martinsM 1 Reply Last reply
                        1
                        • YveauxY Yveaux

                          @gohan I couldn't tell if he switched power supply. USB is 5v, his pro mini 3v3, so where does the 3v3 come from?

                          martinsM
                          martinsM
                          martins
                          wrote on last edited by martins
                          #16

                          @Yveaux

                          alt text

                          YveauxY J 2 Replies Last reply
                          0
                          • martinsM martins

                            @Yveaux

                            alt text

                            YveauxY
                            YveauxY
                            Yveaux
                            Mod
                            wrote on last edited by
                            #17

                            @martins Ok, clear. I have an almost identical board that only delivers 5V to the target.

                            http://yveaux.blogspot.nl

                            1 Reply Last reply
                            0
                            • martinsM martins

                              @Yveaux

                              alt text

                              J
                              J
                              Jan Gatzke
                              wrote on last edited by
                              #18

                              @martins Did you ever find a solution for this? I am facing similar problems with the serial gateway: https://forum.mysensors.org/topic/6684/serial-gateway-restarting/13

                              1 Reply Last reply
                              0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              10

                              Online

                              12.4k

                              Users

                              11.2k

                              Topics

                              113.4k

                              Posts


                              Copyright 2025 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