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. Gateway and Sensors are not connecting

Gateway and Sensors are not connecting

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 1.6k 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.
  • J Offline
    J Offline
    jhns
    wrote on last edited by
    #1

    Hi,

    i found this project about a year ago and bought some sensors etc.
    This week I got some time and motivation, so I started playing around.
    So I loaded the "SerialGateway" Example from the mysensors library on my arduino UNO and the "DimmableLight" Example on a fake Nano (first on a fake Mega, but the Mega threw the error message "failed init radio" or something like that).

    My Problem:
    I think they see each other, but the sensor node isn't registered by the gateway.
    I use MYSController for testing. The Debug tab shows the following:

    05.10.2015 19:21:59	STARTUP	Initialize message logging
    05.10.2015 19:21:59	STARTUP	MYSController 0.1.2.282
    05.10.2015 19:21:59	STARTUP	FPC 2.6.4 / Lazarus 1.4.2
    05.10.2015 19:21:59	STARTUP	still under development :) tekka 2015
    05.10.2015 19:21:59	STARTUP	Load INI file...
    05.10.2015 19:21:59	STARTUP	INI version 0.1.2.282
    05.10.2015 19:21:59	INFO	*** Logging START ***
    05.10.2015 19:21:59	VERSION	MYSController 0.1.2.282
    05.10.2015 19:21:59	STARTUP	INI file loaded
    05.10.2015 19:21:59	STARTUP	Loading FW repository...
    05.10.2015 19:21:59	REPO	FW "Blink" loaded. t=10, v=1, blocks=72, crc=0xD098
    05.10.2015 19:21:59	REPO	FW "TimeReporter" loaded. t=20, v=1, blocks=840, crc=0x4AC5
    05.10.2015 19:21:59	REPO	FW "Sensebender Micro" loaded. t=100, v=1, blocks=1344, crc=0x3482
    05.10.2015 19:21:59	REPO	FW "Sensebender Blink" loaded. t=110, v=1, blocks=768, crc=0x1314
    05.10.2015 19:21:59	REPO	FW repository loaded. Items=4
    05.10.2015 19:21:59	STARTUP	Initialize message types
    05.10.2015 19:21:59	NODE	New node discovered, node id=0
    05.10.2015 19:21:59	NODE	New node discovered, node id=255
    05.10.2015 19:22:08	UPDATE	4295098650
    05.10.2015 19:22:16	INFO	Flushing FIFO
    05.10.2015 19:22:16	INFO	Connected to COM3
    05.10.2015 19:22:18	CHILD	New child discovered, node id=0, child id=0
    05.10.2015 19:22:18	RX	0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    05.10.2015 19:22:18	RX	0;0;3;0;14;Gateway startup complete.
    # HERE IS THE SENSOR NODE POWERED ON
    05.10.2015 19:22:29	RX	0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    05.10.2015 19:22:30	RX	0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    05.10.2015 19:22:31	RX	0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    05.10.2015 19:22:32	RX	0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    05.10.2015 19:22:33	RX	0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    05.10.2015 19:22:34	RX	0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    05.10.2015 19:22:35	RX	0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    05.10.2015 19:22:36	RX	0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    05.10.2015 19:22:37	RX	0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    05.10.2015 19:22:38	RX	0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    

    And the sensor node Serial output prints the following:

    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    sensor started, id=255, parent=255, distance=255
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    Light state: OFF
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    Node ready to receive messages...
    

    I also tried this with the SerialGateway and Dimmer example from the mysensors website, but same failure.
    I downloaded the library a few days ago so it should be everything the current version. Arduino IDE Version is: 1.6.5
    I already tried different radios (also one with external antenna), all chips are marked with the + version, but RF24 library GettingStarted example doesn't show the +. I haven't added capacitors to the radios, but I think this problem is software sided because it looks to me like they find each other.

    Any help appreciated :smiley:

    Greetings from Germany,
    Johannes

    PS: this project looks very cool and would be great if I get it to work.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #2

      Gateway answers the FIND_PARENT request from node... But node does not seem to get the response.

      Could very well be a powering issue. Caps usually resolves this type of behaviour.

      1 Reply Last reply
      1
      • J Offline
        J Offline
        jhns
        wrote on last edited by
        #3

        Ok thank you very much!
        You were right. Today my Caps came and now it's working perfect! :heart_eyes:

        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


        18

        Online

        12.1k

        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