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. Controllers
  3. Windows GUI/Controller for MySensors

Windows GUI/Controller for MySensors

Scheduled Pinned Locked Moved Controllers
myscontrollermysbootloader
486 Posts 101 Posters 348.2k Views 73 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.
  • dopeeyeD Offline
    dopeeyeD Offline
    dopeeye
    wrote on last edited by
    #423

    How do i use MYSController with a Raspberry Pi ?
    I have a RPi2 with a NRF24 radio as a gateway and want to troubleshoot some communication issues i have been having. I usually log into the RPi2 via ssh to make adjustments.
    Can I just download the files and rund the .exe via command-line?

    Thanks

    1 Reply Last reply
    0
    • AndurilA Offline
      AndurilA Offline
      Anduril
      wrote on last edited by
      #424

      I think it's windows software only. If you want to use it this way you should make you gateway device accessible via ethernet, maybe socat or nodered is an option for you.

      dopeeyeD 1 Reply Last reply
      0
      • AndurilA Anduril

        I think it's windows software only. If you want to use it this way you should make you gateway device accessible via ethernet, maybe socat or nodered is an option for you.

        dopeeyeD Offline
        dopeeyeD Offline
        dopeeye
        wrote on last edited by
        #425

        ok thanks for clarifying.

        gonna give the node-red a try

        1 Reply Last reply
        0
        • P pdey

          @Mark-Swift : If you're happy to modify the MySensors library in an unsupported way, I've added a logMessage function to transmit text/debug messages from remote nodes:
          https://github.com/peterdey/MySensors-Arduino/commit/f5f339b71620ec3cd896304a2ca6aba40ad40218

          Found it useful, particularly in conjunction with MYSController OTA firmware updates.

          jumpingJ Offline
          jumpingJ Offline
          jumping
          wrote on last edited by
          #426

          @pdey said:

          @Mark-Swift : If you're happy to modify the MySensors library in an unsupported way, I've added a logMessage function to transmit text/debug messages from remote nodes:
          https://github.com/peterdey/MySensors-Arduino/commit/f5f339b71620ec3cd896304a2ca6aba40ad40218

          Found it useful, particularly in conjunction with MYSController OTA firmware updates.

          is it possible to use with mysensor 2.0 API ?

          Raspberrry PI3 - Domoticz
          ESP8266 GW - MySensors 2.1.1

          1 Reply Last reply
          0
          • interxisI Offline
            interxisI Offline
            interxis
            wrote on last edited by
            #427

            Very cool. It also works on Ubuntu with Wine.
            You have to create a COM port like this:

            ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
            
            1 Reply Last reply
            0
            • karlheinz2000K Offline
              karlheinz2000K Offline
              karlheinz2000
              wrote on last edited by
              #428

              How do I get MYSController to save info about each node?
              I always have to set "battery-powered" after each upload and it does not save sketch name etc.

              1 Reply Last reply
              0
              • meanmrgreenM Offline
                meanmrgreenM Offline
                meanmrgreen
                wrote on last edited by
                #429

                Ok this might be a realy stupid question but im what you call a "nuub" ;)

                If i want to monitor my current setup (serial gateway on a pi3) on windows/mint. Do i build another gateway and plug it in the pc?

                Sorry if i missed the instructions on this

                tekkaT 1 Reply Last reply
                0
                • meanmrgreenM meanmrgreen

                  Ok this might be a realy stupid question but im what you call a "nuub" ;)

                  If i want to monitor my current setup (serial gateway on a pi3) on windows/mint. Do i build another gateway and plug it in the pc?

                  Sorry if i missed the instructions on this

                  tekkaT Offline
                  tekkaT Offline
                  tekka
                  Admin
                  wrote on last edited by
                  #430

                  @meanmrgreen no, you can only have one GW in your setup. You could connect your GW to the PC, configure it for serial input, enable GW mode and have your rpi controller pointing at it (IP).

                  meanmrgreenM 1 Reply Last reply
                  0
                  • tekkaT tekka

                    @meanmrgreen no, you can only have one GW in your setup. You could connect your GW to the PC, configure it for serial input, enable GW mode and have your rpi controller pointing at it (IP).

                    meanmrgreenM Offline
                    meanmrgreenM Offline
                    meanmrgreen
                    wrote on last edited by
                    #431

                    @tekka
                    How about I'f i replace my serial with a Ethernet gw?

                    Do not want my pc running all the time. Just to debug

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Samuel235
                      Hardware Contributor
                      wrote on last edited by
                      #432

                      Hi @tekka - I'm currently running OpenHAB connected to mysensors by a GatewayW5100MQTTClient gateway and at the moment I have to manual upgrades to the nodes by disconnecting them and plugging them into the PC and recompiling all the software for each node. Would there be any way around this setup? I would like to keep OpenHAB as my controller and I really like the MQTT Client software too. Its simple and it just works for me. However, i would be open to change from MQTT if needed.

                      What is your recommendation of implementing MYScontroller to use for OTA firmware updates only?

                      MySensors 2.1.1
                      Controller - OpenHAB (Virtual Machine)
                      Gateway - Arduino Mega MQTT Gateway W5100

                      1 Reply Last reply
                      0
                      • AndurilA Offline
                        AndurilA Offline
                        Anduril
                        wrote on last edited by
                        #433

                        @tekka how do I initiate a reboot of a node from gateway side? I don't know how, but it's needed for updating OTA. Thanks in advance.

                        techRHT 1 Reply Last reply
                        0
                        • AndurilA Anduril

                          @tekka how do I initiate a reboot of a node from gateway side? I don't know how, but it's needed for updating OTA. Thanks in advance.

                          techRHT Offline
                          techRHT Offline
                          techRH
                          wrote on last edited by
                          #434

                          @Anduril said in Windows GUI/Controller for MySensors:

                          itiate a reboot of a node from gateway side? I don't know how, but it's needed for updating OTA. Th

                          Right click on the node and than "reboot"

                          AndurilA 1 Reply Last reply
                          0
                          • techRHT techRH

                            @Anduril said in Windows GUI/Controller for MySensors:

                            itiate a reboot of a node from gateway side? I don't know how, but it's needed for updating OTA. Th

                            Right click on the node and than "reboot"

                            AndurilA Offline
                            AndurilA Offline
                            Anduril
                            wrote on last edited by
                            #435

                            @techRH that doesn't work for the new bootloader/MySensors 2.x

                            tekkaT 1 Reply Last reply
                            0
                            • AndurilA Anduril

                              @techRH that doesn't work for the new bootloader/MySensors 2.x

                              tekkaT Offline
                              tekkaT Offline
                              tekka
                              Admin
                              wrote on last edited by
                              #436

                              @Anduril it does work, unless your node is sleeping and not able to process incoming messages

                              1 Reply Last reply
                              0
                              • AndurilA Offline
                                AndurilA Offline
                                Anduril
                                wrote on last edited by
                                #437

                                @tekka ok and whats the way to deal with sleeping nodes? Do I have to add a wait(xx) to receive reboot commands?

                                tekkaT 1 Reply Last reply
                                0
                                • AndurilA Anduril

                                  @tekka ok and whats the way to deal with sleeping nodes? Do I have to add a wait(xx) to receive reboot commands?

                                  tekkaT Offline
                                  tekkaT Offline
                                  tekka
                                  Admin
                                  wrote on last edited by
                                  #438

                                  @Anduril The solution is to use smart sleep. If you are on MySensors 2.1.x, use:

                                  sleep(xyz_MS, true);
                                  

                                  This will issue a heartbeat message followed by a short wait() interval to process incoming messages, and finally send the node to sleep. The heartbeat message triggers the release of pending messages (i.e. reboot request) in MYSController (node has to be defined as battery-powered / sleeping node).

                                  In the upcoming MySensors 2.2.0 release we will introduce a dedicated sleep intention message.

                                  1 Reply Last reply
                                  0
                                  • AndurilA Offline
                                    AndurilA Offline
                                    Anduril
                                    wrote on last edited by
                                    #439

                                    @tekka thanks for your hint. Is smartsleep supported if the controller (pimatic) does not? So do I get problems when using withoug MYSController for debug?

                                    And another thing is that this node tries to save power and only sends updates if values have changed. So using smartsleep and sending a messag every sleep cycle would be against that. Can I simply put a wait(50) after the first message sending is triggered? What would be the necessary time to do wait(x)?

                                    tekkaT 1 Reply Last reply
                                    0
                                    • AndurilA Anduril

                                      @tekka thanks for your hint. Is smartsleep supported if the controller (pimatic) does not? So do I get problems when using withoug MYSController for debug?

                                      And another thing is that this node tries to save power and only sends updates if values have changed. So using smartsleep and sending a messag every sleep cycle would be against that. Can I simply put a wait(50) after the first message sending is triggered? What would be the necessary time to do wait(x)?

                                      tekkaT Offline
                                      tekkaT Offline
                                      tekka
                                      Admin
                                      wrote on last edited by
                                      #440

                                      @Anduril Yes, smartsleep is just a sequence of events (sending heartbeat message, wait(default=500), sleep()) that gives the controller the possibility to react before the node is going to sleep.

                                      1 Reply Last reply
                                      0
                                      • dirkcD Offline
                                        dirkcD Offline
                                        dirkc
                                        wrote on last edited by
                                        #441

                                        I have problems using the OTA feature with MYSController.

                                        1. "undefined firmware/type" reported.
                                          My setup:
                                        • ESP8266 Gateway 2.1.1
                                        • MYSController Version 1.0.0beta (build 3314)
                                        • atmega328p chip with own pcb, internal osc 8MHz, and MYSBootloaderV13pre.hex (taken from the same zip file as MYSController.exe)

                                        The log file in MYSController shows "undefined firmware/type" :
                                        alt text

                                        Where can I find the latest software (exe and boot loader)?

                                        1. the "Reload repo" toolbar button is always greyed, but the "firmware_config" is available, has all entries and the hex files are in the same directory.

                                        2. is there a more detailed description available for the columns of the "firmware_config" file?

                                        thanks in advance

                                        Controller: Home Assistant & FHEM - Gateway: ESP8266wifi - MySensors: 2.3.2 (nRF24)

                                        tekkaT 1 Reply Last reply
                                        0
                                        • dirkcD dirkc

                                          I have problems using the OTA feature with MYSController.

                                          1. "undefined firmware/type" reported.
                                            My setup:
                                          • ESP8266 Gateway 2.1.1
                                          • MYSController Version 1.0.0beta (build 3314)
                                          • atmega328p chip with own pcb, internal osc 8MHz, and MYSBootloaderV13pre.hex (taken from the same zip file as MYSController.exe)

                                          The log file in MYSController shows "undefined firmware/type" :
                                          alt text

                                          Where can I find the latest software (exe and boot loader)?

                                          1. the "Reload repo" toolbar button is always greyed, but the "firmware_config" is available, has all entries and the hex files are in the same directory.

                                          2. is there a more detailed description available for the columns of the "firmware_config" file?

                                          thanks in advance

                                          tekkaT Offline
                                          tekkaT Offline
                                          tekka
                                          Admin
                                          wrote on last edited by tekka
                                          #442

                                          @dirkc If you are using MYSBootloader there is no need to define MY_OTA_FIRMWARE_FEATURE since the FW update happens offline, see here for additional infos.

                                          See here for a firmware_config.csv example:

                                          Type,Name,Version,File,Comments
                                          1,DoorSensor_V1,1,DoorSensorV1.hex,Door sensor version 1
                                          1,DoorSensor_V2,2,DoorSensorV2.hex,Door sensor version 2
                                          1,DoorSensor_V3,3,DoorSensorV3.hex,Door sensor version 3
                                          10,TestSensor,1,TestSensor.hex,Test FW
                                          11,LightSensor,1,LightSensor.hex,Light sensor
                                          20,TempSensor Indoor V1,1,TempSensorIndoorV1.hex,Temp. Sensor indoor V1
                                          20,TempSensor Indoor V2,2,TempSensorIndoorV2.hex,Temp. Sensor indoor V2
                                          30,TempSensor Outdoor V1,1,TempSensorOutdoorV1.hex,Temp. Sensor outdoor V2
                                          

                                          Impotant: All defined files need to be present in the directory, only comma delimiters are allowed.

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


                                          14

                                          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