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. MySensors controller with Rasberry Pi 3 & Windows IoT

MySensors controller with Rasberry Pi 3 & Windows IoT

Scheduled Pinned Locked Moved Development
15 Posts 6 Posters 3.9k 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #6

    Keep in mind that mysensors gw also works over ethernet and mqtt

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MrVince
      wrote on last edited by
      #7

      Hy everyone ! So, THIS IS WORKING ! Thanks a lot :)

      Now, new problemes ! (It's not funny without)

      I build a serial gateway and a motionsensor

      This is my log

      0_1496323093938_Screenshot_1.jpg image url)

      0;0;3;0;9 -> ok it's a gateway init
      0;0;3;0;14 -> gateway is ready

      but, what is the next one? Normally I will receive just x;x;x;x;x; right? what's about read: 255-255....

      Thank you :)

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

        take a look at https://www.mysensors.org/build/parser

        1 Reply Last reply
        1
        • M Offline
          M Offline
          MrVince
          wrote on last edited by
          #9

          Ok, if I right, there is a trouble with a motionsensor who want an ID ?

          Do I need to give it one, or it's done by a gateway?

          sundberg84S 1 Reply Last reply
          0
          • M MrVince

            Ok, if I right, there is a trouble with a motionsensor who want an ID ?

            Do I need to give it one, or it's done by a gateway?

            sundberg84S Offline
            sundberg84S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by sundberg84
            #10

            @MrVince - It is done by the controller. The GW never assign ID.
            You could set a static ID in the node as well.

            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

            M 1 Reply Last reply
            1
            • sundberg84S sundberg84

              @MrVince - It is done by the controller. The GW never assign ID.
              You could set a static ID in the node as well.

              M Offline
              M Offline
              MrVince
              wrote on last edited by
              #11

              @sundberg84 It's work ! Thank you :)

              1 Reply Last reply
              1
              • M Offline
                M Offline
                MrVince
                wrote on last edited by MrVince
                #12

                Hi everyone !

                Let's do a check up :

                • Read from a GW in serial connection : ok
                • Read information when I give a static ID : ok
                • Find a node who want an ID : ok
                • Give an ID to a node with my controller : nope

                So, the question is, if I receive '255;255;3;0;3;' my controller understand it's an ID_REQUEST and I need to use an ID_RESPONSE, but if I want to give an ID I need to build something like this :

                node-id ; child-sensor-id ; command ; ack ; type ; payload

                node-id : ??
                child-id : ??
                command : 3 for internal
                ack : 0 ?
                type : 4 for response
                payload : new ID (ex: 101)

                What are the node-id & child-id if the sensor doesn't have one?

                One more time, I want to thank's all of you, with your help it's more easier to understand and I start to see the end !

                EDIT : One more thing, I have an idea. I want to open a pop-up when a new sensor is on to choose for wich room is it.
                Can I give an temporary ID (like 254), wait for a first message with ID 254, with a first message I can see what type of sensor is, open a pop up, and give a new ID after I choose the room?

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

                  the controller should keep track of the assigned IDs and respond with the following free one, I don't think you can change the ID via software, unless there is a way to change it in eeprom and reboot node so it will read it from eeprom and boot with that

                  M 1 Reply Last reply
                  0
                  • gohanG gohan

                    the controller should keep track of the assigned IDs and respond with the following free one, I don't think you can change the ID via software, unless there is a way to change it in eeprom and reboot node so it will read it from eeprom and boot with that

                    M Offline
                    M Offline
                    MrVince
                    wrote on last edited by MrVince
                    #14

                    @gohan ok

                    I understand for the controller, but I think I miss something about the ID_RESPONSE

                    Imagine this situation:

                    I have just one sensor with no ID
                    The GW send me (the controller) : '255;255;3;0;3;' // Sensor want a node_ID
                    If I want to give it the ID 1, what I need to send to the gw? I think something like '255;255;3;0;4;1', that's right?

                    EDIT : I try and it's work now, but I need to clear EEPROM first

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      carolynlawson
                      wrote on last edited by
                      #15

                      Thank you for sharing the details.

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


                      21

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      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