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. Hard to grab time and value sent from controller

Hard to grab time and value sent from controller

Scheduled Pinned Locked Moved Troubleshooting
20 Posts 3 Posters 7.4k Views 2 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.
  • sundberg84S Offline
    sundberg84S Offline
    sundberg84
    Hardware Contributor
    wrote on last edited by sundberg84
    #6

    Hi!
    Yea - compiles with no problems.
    This part is "stolen" from the original raingauge sketch and not something im used to working with.
    timeNotSet is a variable in time.h

    How would you code this?

    • Ask for time/counter
    • Check if recieved
    • If not recieved - ask again

    Controller: Proxmox VM - Home Assistant
    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

      Have you looked at the TimeAwareSensor example?

      1 Reply Last reply
      0
      • sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by
        #8

        Yea I did, and I dont see any difference from mine.
        The thing is that I sleep my Sensor so i need a loop inside the void loop() to check if I recieved the time.

        Maybe its hardware or the position of the sensor... ill try to relocate and load the sketch to another build

        Controller: Proxmox VM - Home Assistant
        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

        TheoLT 1 Reply Last reply
        0
        • sundberg84S sundberg84

          Yea I did, and I dont see any difference from mine.
          The thing is that I sleep my Sensor so i need a loop inside the void loop() to check if I recieved the time.

          Maybe its hardware or the position of the sensor... ill try to relocate and load the sketch to another build

          TheoLT Offline
          TheoLT Offline
          TheoL
          Contest Winner
          wrote on last edited by
          #9

          @sundberg84 I haven't looked at your code, but do you put the Arduino to sleep after you've received the time or after you made the timeRequest to the controller? I'm not sure, but if you do the latter that might be your problem. I'm guessing that the Node is not able to receive messages from the gateway, when it's in sleep mode.

          1 Reply Last reply
          0
          • sundberg84S Offline
            sundberg84S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by
            #10

            Hi.

            No i recieve the time, check if its a new day and then sleep the node.
            This is done every sleep cycle (20min),. (Im aware about the failure margin here).

            I do not sleep the sensor until i got the new time so that should not be a problem.

            Controller: Proxmox VM - Home Assistant
            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

            1 Reply Last reply
            0
            • sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by sundberg84
              #11

              Looking at MysController i get this when i get into the bad loop:

              2015-10-16 16:27:20	INFO	Reply time request
              2015-10-16 16:27:20	TX	7;255;3;0;1;1445012841
              2015-10-16 16:27:20	RX	7;255;3;0;1;
              2015-10-16 16:27:24	INFO	Reply time request
              2015-10-16 16:27:24	TX	7;255;3;0;1;1445012844
              2015-10-16 16:27:24	RX	7;255;3;0;1;
              2015-10-16 16:27:28	INFO	Reply time request
              2015-10-16 16:27:28	TX	7;255;3;0;1;1445012848
              2015-10-16 16:27:28	RX	7;255;3;0;1;
              2015-10-16 16:27:28	RX	5;0;1;0;4;1020
              2015-10-16 16:27:31	INFO	Reply time request
              2015-10-16 16:27:31	TX	7;255;3;0;1;1445012852
              2015-10-16 16:27:31	RX	7;255;3;0;1;
              2015-10-16 16:27:35	INFO	Reply time request
              2015-10-16 16:27:35	TX	7;255;3;0;1;1445012855
              2015-10-16 16:27:35	RX	7;255;3;0;1;
              2015-10-16 16:27:38	INFO	Reply time request
              2015-10-16 16:27:38	TX	7;255;3;0;1;1445012859
              2015-10-16 16:27:38	RX	7;255;3;0;1;
              

              @hek
              Its like its working one way (Sensor -> Repteter -> Controller) but not the other way around. Is it not using the repeater and thats why the request with time is not getting back?

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              1 Reply Last reply
              0
              • sundberg84S Offline
                sundberg84S Offline
                sundberg84
                Hardware Contributor
                wrote on last edited by
                #12

                Or its a bad NRF batch i got... AGAIN :(
                Notised its a new batch im on... have to try some other nrf in that patch. Works one way though...

                Controller: Proxmox VM - Home Assistant
                MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

                  Also make sure you're running the latest in master branch on gw/repeater. There was a bug there earlier affecting outgoing messages through repeaters.

                  1 Reply Last reply
                  0
                  • sundberg84S Offline
                    sundberg84S Offline
                    sundberg84
                    Hardware Contributor
                    wrote on last edited by
                    #14

                    I run 1.4 gw and updated repeaters after bug was reporter (bad routing causing à loop). Its à bit job to update gw to 1.5. Do you think it can make any difference @hek ?

                    Controller: Proxmox VM - Home Assistant
                    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

                      I doubt it would change anything. It's the intermittent failure behaviour that is weird.

                      1 Reply Last reply
                      0
                      • sundberg84S Offline
                        sundberg84S Offline
                        sundberg84
                        Hardware Contributor
                        wrote on last edited by
                        #16

                        I have ordered new nrf radios. Let's hope the makey the difference.

                        Controller: Proxmox VM - Home Assistant
                        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                        1 Reply Last reply
                        0
                        • sundberg84S Offline
                          sundberg84S Offline
                          sundberg84
                          Hardware Contributor
                          wrote on last edited by
                          #17

                          New radio, pro mini and still the same problems :(
                          I cant get it.

                          Looking at the gw leds the recieve led blinks when the node sends out the request. 1 second later the controller and gw responds accoring to MYSController and i see the transmit and error led blink.

                          i have the node right beside the gw now and no repeaters.
                          Any clues, anyone???

                          Controller: Proxmox VM - Home Assistant
                          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

                            And how does the node log look like?

                            Did you upgrade to 1.5?

                            1 Reply Last reply
                            0
                            • sundberg84S Offline
                              sundberg84S Offline
                              sundberg84
                              Hardware Contributor
                              wrote on last edited by sundberg84
                              #19

                              No i did not upgrade the gw since i had so much problems with the connections...

                              Nod serial as before:
                              (From startup)

                              send: 7-7-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
                              send: 7-7-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                              sensor started, id=7, parent=0, distance=1
                              send: 7-7-0-0 s=255,c=3,t=11,pt=0,l=10,sg=0,st=ok:Rain Gauge
                              send: 7-7-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.7
                              send: 7-7-0-0 s=1,c=0,t=10,pt=0,l=0,sg=0,st=ok:
                              Startup completed
                              send: 7-7-0-0 s=1,c=2,t=24,pt=0,l=0,sg=0,st=ok:
                              Request pulsecount
                              send: 7-7-0-0 s=1,c=2,t=24,pt=0,l=0,sg=0,st=ok:
                              Request pulsecount
                              send: 7-7-0-0 s=1,c=2,t=24,pt=0,l=0,sg=0,st=ok:
                              Request pulsecount
                              read: 0-0-7 s=1,c=2,t=24,pt=0,l=2,sg=0:52
                              Received last pulse count from gw: 52
                              send: 7-7-0-0 s=255,c=3,t=1,pt=0,l=0,sg=0,st=ok:
                              Getting Time
                              send: 7-7-0-0 s=255,c=3,t=1,pt=0,l=0,sg=0,st=ok:
                              Getting Time
                              read: 0-0-7 s=255,c=3,t=1,pt=0,l=10,sg=0:1446829805
                              Time received: 17
                              
                              

                              Controller: Proxmox VM - Home Assistant
                              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

                                DI you have a similar serial log for the gateway? Think you should try to upgrade to be aligned with 1.5. Don't remember what problems you had earlier...

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


                                15

                                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