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.
  • tekkaT tekka

    Hi all,

    I've been working on this project since some time, basically it's a GUI for controlling/updating/debugging a network of MySensors nodes. OTA functionality is supported via MYSBootloader - read posts for further instructions/troubleshooting or PM.

    link updated: MYSController Version 1.0.0.3316 released

    New features:

    • support OTA FW update Sensebender board
    • metric/imperial system I_CONFIG
    • save nodes

    Update via update button in MYSController or download here.

    MYSController_0_1_2_282.png

    DomoJimboD Offline
    DomoJimboD Offline
    DomoJimbo
    wrote on last edited by
    #387

    @tekka

    Hi tekka,

    I have tested MYSController, and it was a massive success ! thanks a lot for your work.

    I have just one question, in the csv file there is a type.
    According to my reading this is to tag a node type, but where are the already known types ?
    Type 1 => only temperature
    Type 2 => only humidity
    Type 3 => temp & hum
    etc
    Is there another config file where to specify user types ?

    Type,Name,Version,File,Comments
    10,Blink,1,Blink.hex,blinking example
    20,TimeReporter,1,TimeReporter.hex,TimeReporter
    100,Sensebender Micro,1,SensebenderMicro.cpp.hex,Sensebender Micro
    110,Sensebender Blink,1,SensebenderBlink.cpp.hex,Sensebender Blink

    tekkaT 1 Reply Last reply
    0
    • P Offline
      P Offline
      pdey
      wrote on last edited by
      #388

      @hek - would it be possible to get a subforum for MYSController stood up in the Controllers forum? This thread is getting pretty long and off topic (also, the RSS feed stops at the 27th post)

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

        I'll have a talk with @tekka about it. But you always have the optaion to start a new thread.

        1 Reply Last reply
        0
        • DomoJimboD DomoJimbo

          @tekka

          Hi tekka,

          I have tested MYSController, and it was a massive success ! thanks a lot for your work.

          I have just one question, in the csv file there is a type.
          According to my reading this is to tag a node type, but where are the already known types ?
          Type 1 => only temperature
          Type 2 => only humidity
          Type 3 => temp & hum
          etc
          Is there another config file where to specify user types ?

          Type,Name,Version,File,Comments
          10,Blink,1,Blink.hex,blinking example
          20,TimeReporter,1,TimeReporter.hex,TimeReporter
          100,Sensebender Micro,1,SensebenderMicro.cpp.hex,Sensebender Micro
          110,Sensebender Blink,1,SensebenderBlink.cpp.hex,Sensebender Blink

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

          @DomoJimbo No, you are free to choose the node types. This information is used for OTA FW updates.

          1 Reply Last reply
          0
          • ThomasDrT Offline
            ThomasDrT Offline
            ThomasDr
            wrote on last edited by
            #391

            Hello,

            for Linux, it works with wine, with TCP and serial.

            regards
            Thomas

            1 Reply Last reply
            0
            • tekkaT tekka

              For completeness, here are the MYSBootloader instructions for OTA updates via MYSController:

              1. Load gw sketch and connect arduino either via serial or ethernet port. No special bootloader needed for that part (i.e. standard optiboot bootloader will do the job).

              2. Add these lines to the boards.txt file in your Arduino IDE installation folder (located somewhere like C:/Program Files/Arduino/hardware/arduino/avr)

                proMYSBL16.name=ATmega328 external 16Mhz with MYSBootloader
                proMYSBL16.upload.tool=avrdude
                proMYSBL16.upload.protocol=arduino
                proMYSBL16.upload.maximum_size=30720
                proMYSBL16.upload.maximum_data_size=2048
                proMYSBL16.upload.speed=115200
                proMYSBL16.bootloader.tool=avrdude
                proMYSBL16.bootloader.low_fuses=0xF7
                proMYSBL16.bootloader.high_fuses=0xDA
                proMYSBL16.bootloader.extended_fuses=0x06
                proMYSBL16.bootloader.unlock_bits=0x3F
                proMYSBL16.bootloader.lock_bits=0x3F
                proMYSBL16.bootloader.file=MySensors/MYSBootloader.hex
                proMYSBL16.build.mcu=atmega328p
                proMYSBL16.build.f_cpu=16000000L
                proMYSBL16.build.board=AVR_UNO
                proMYSBL16.build.core=arduino
                proMYSBL16.build.variant=standard

                ######## settings for 8Mhz internal clock

                proMYSBL8.name=ATmega328 internal 8Mhz with MYSBootloader
                proMYSBL8.upload.tool=avrdude
                proMYSBL8.upload.protocol=arduino
                proMYSBL8.upload.maximum_size=30720
                proMYSBL8.upload.maximum_data_size=2048
                proMYSBL8.upload.speed=57600
                proMYSBL8.bootloader.tool=avrdude
                proMYSBL8.bootloader.low_fuses=0xE2
                proMYSBL8.bootloader.high_fuses=0xDA
                proMYSBL8.bootloader.extended_fuses=0x06
                proMYSBL8.bootloader.unlock_bits=0x3F
                proMYSBL8.bootloader.lock_bits=0x3F
                proMYSBL8.bootloader.file=MySensors/MYSBootloader.hex
                proMYSBL8.build.mcu=atmega328p
                proMYSBL8.build.f_cpu=8000000L
                proMYSBL8.build.board=AVR_UNO
                proMYSBL8.build.core=arduino
                proMYSBL8.build.variant=standard

              3. Copy MYSBootloader.hex (from MYSController/Bootloader folder) to the Arduino IDE installation folder C:/Program Files/Arduino/hardware/arduino/avr/bootloaders/MySensors/

              4. Restart Arduino IDE, choose under Tools | Board | ATmega328 external 16Mhz with MYSBootloader or Tools | Board | ATmega328 internal 8Mhz with MYSBootloader depending on your HW settings

              5. Connect USBasp to sensor node and select Tools | Burn Bootloader

              6. If everything worked well until here, you now have the MYSBootloader with the fuse settings from above burnt to your sensor node (16Mhz extXTAL or 8Mhz intRC, BOOTSZ 1024W, BOD 1V8).

              7. Please use the AVR fuse calculator to retrieve the individual fuse settings. If you need to change frequency, BOD or other settings, change the fuse settings based on the fuse calculator.
                Important: The MYSBootloader.hex file was compiled for 16Mhz oscillators but it should also work at 8Mhz. If you intend to go below 8Mhz, I highly recommend to compile the bootloader with adjusted frequency settings.

              8. Start MYSController, hit config and adjust settings (COM-Port & baud or IP address:port)

              9. Hit connect: Connection to gateway should be established (gateway answers with gateway ready message), the node should appear and request an ID & FW.

              10. Right-mouse click on that node, select assign FW, choose for example **TimeReporter ** (demo firmware included in the MYSController/Firmware folder). Then click reboot and wait until FW is uploaded and node boots.

              11. TimeReporter firmware reports every few seconds some values such as time, millis, and voltage.

              12. Custom firmware: compile your sketch and retrieve the generated .hex file (activate verbose mode in the Arduino IDE to get compiler messages and output path).

              13. Copy .hex file to MYSController/Firmware folder and edit firmware_config.csv file according to the existing lines.

              14. Hit Refresh Repo in MYSController and the newly copied firmware should appear in the Assign FW dropdown list, ready to be uploaded.

              Have fun :)

              M Offline
              M Offline
              MarkV
              wrote on last edited by
              #392

              @tekka

              I'Ve done the steps witch you describe but it doesn't show up in the ArduinoIDE.
              Step 1, added the lines to boards.txt
              Step 2, made a directory \MySensors under
              D:\Program Files\Arduino\hardware\arduino\avr\bootloaders
              Step 3, copied the .hex file into D:\Program Files\Arduino\hardware\arduino\avr\bootloaders\MySensors

              What did i do wrong???

              1 Reply Last reply
              0
              • C Offline
                C Offline
                cdr
                wrote on last edited by
                #393

                @MarkV you might want to check your "AppData" folder, I noticed the same behaviour and had to change boards.txt in this location.

                C:\Users{{user}}\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10

                GL

                1 Reply Last reply
                0
                • Mark SwiftM Offline
                  Mark SwiftM Offline
                  Mark Swift
                  wrote on last edited by Mark Swift
                  #394

                  Guys,

                  I'm trying to get this working with my nano clone but am having no luck.

                  When I flash the boot loader the nano doesn't send the request (the light on the nano comes on red and stays on).

                  I'm presuming it's because I haven't updated the fuse settings etc for the nano? Would someone be so kind as to offer some help with regards what I need to change?

                  Edit: I'm up and running!

                  1 Reply Last reply
                  0
                  • Mark SwiftM Offline
                    Mark SwiftM Offline
                    Mark Swift
                    wrote on last edited by
                    #395

                    Did anyone figure out how to get MySensors debug messages to show? My sketch has debug uncommented and I can see them via serial, but not in the app?

                    tekkaT P 2 Replies Last reply
                    0
                    • Mark SwiftM Mark Swift

                      Did anyone figure out how to get MySensors debug messages to show? My sketch has debug uncommented and I can see them via serial, but not in the app?

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

                      @Mark-Swift The MySensors debug tab only shows gateway debug messages (not sensor debug).

                      1 Reply Last reply
                      0
                      • Mark SwiftM Offline
                        Mark SwiftM Offline
                        Mark Swift
                        wrote on last edited by
                        #397

                        @tekka Yeah, I get that, that's what I'm struggling with. I have the debug line uncommented on my ESP8266 gateway, but see nothing in the mysensors debug tab? I'm using the latest beta build as I run 2.0.0.

                        Also, I've asked a couple of times, is the default firmware pre release 1.3 bootloader (16mhz) suitable in its default state for both my Uno's and Nano's?

                        Thanks in advance,

                        Mark

                        tekkaT 1 Reply Last reply
                        0
                        • Mark SwiftM Mark Swift

                          @tekka Yeah, I get that, that's what I'm struggling with. I have the debug line uncommented on my ESP8266 gateway, but see nothing in the mysensors debug tab? I'm using the latest beta build as I run 2.0.0.

                          Also, I've asked a couple of times, is the default firmware pre release 1.3 bootloader (16mhz) suitable in its default state for both my Uno's and Nano's?

                          Thanks in advance,

                          Mark

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

                          @Mark-Swift the ESP8266 GW is not sending debug msgs over TCP/IP - only over the serial console.
                          And yes, MYSBootloader 1.3pre/16Mhz is suitable for Uno and Nano V3 (both share the same atmega328p mcu)

                          1 Reply Last reply
                          0
                          • Mark SwiftM Offline
                            Mark SwiftM Offline
                            Mark Swift
                            wrote on last edited by
                            #399

                            @tekka That explains it then :) Thank you very much for the confirmations!

                            1 Reply Last reply
                            0
                            • Mark SwiftM Mark Swift

                              Did anyone figure out how to get MySensors debug messages to show? My sketch has debug uncommented and I can see them via serial, but not in the app?

                              P Offline
                              P Offline
                              pdey
                              wrote on last edited by
                              #400

                              @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.

                              Mark SwiftM jumpingJ 2 Replies Last reply
                              1
                              • 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.

                                Mark SwiftM Offline
                                Mark SwiftM Offline
                                Mark Swift
                                wrote on last edited by
                                #401

                                @pdey Let me get this straight, this allows me to see the serial debug messages from my nodes running the modified boot loader? That would be a dream come true, I really miss debug messages...

                                Thank you!

                                P 1 Reply Last reply
                                0
                                • Mark SwiftM Mark Swift

                                  @pdey Let me get this straight, this allows me to see the serial debug messages from my nodes running the modified boot loader? That would be a dream come true, I really miss debug messages...

                                  Thank you!

                                  P Offline
                                  P Offline
                                  pdey
                                  wrote on last edited by pdey
                                  #402

                                  @Mark-Swift: You'll need to replace Serial.Print with node.logMessage - but yes, I use it for transmitting debug messages, wirelessly, to the controller.

                                  No gateway modifications required (the gateway will just pass the message over to the controller). Old versions of MYSController (e.g. 0.1.2.276) would actually show the debug messages as a LOG_MESSAGE in the "Messages" tab; later versions hide it away in the "Debug" tab.

                                  0_1462266612982_MYSController_LogMessage.png

                                  tekkaT 1 Reply Last reply
                                  0
                                  • Mark SwiftM Offline
                                    Mark SwiftM Offline
                                    Mark Swift
                                    wrote on last edited by Mark Swift
                                    #403

                                    @pdey That's fantastic, the only thing I was missing with the modified boot loader was debug...

                                    @hek @tekka Any reason why we can't implement this into development, it seems a great feature.

                                    Now if I can only figure out how to apply @pdey 's fix to the current dev branch....

                                    1 Reply Last reply
                                    1
                                    • G Offline
                                      G Offline
                                      gonzalonal
                                      wrote on last edited by
                                      #404

                                      Hi @tekka ,
                                      Just starting testing beta version and it looks really nice. Thanks for sharing this great tool.
                                      I usually use it to debug mysensors network.

                                      I think I have found a little bug regarding message subtype.
                                      For example, when I choose to send a message using as subtype V_VAR1, it sends out as V_VAR4.
                                      To actually send it as V_VAR1 I have to choose as Subtype V_HVAC_FLOW_STATE.

                                      Can someone try this in their MYSController Beta 1.0.0beta so as to verify if it is only happening to me, or is a funny bug in the beta.

                                      Once againg, thank you very much.
                                      Regards.
                                      Gonzalo

                                      D 1 Reply Last reply
                                      0
                                      • G gonzalonal

                                        Hi @tekka ,
                                        Just starting testing beta version and it looks really nice. Thanks for sharing this great tool.
                                        I usually use it to debug mysensors network.

                                        I think I have found a little bug regarding message subtype.
                                        For example, when I choose to send a message using as subtype V_VAR1, it sends out as V_VAR4.
                                        To actually send it as V_VAR1 I have to choose as Subtype V_HVAC_FLOW_STATE.

                                        Can someone try this in their MYSController Beta 1.0.0beta so as to verify if it is only happening to me, or is a funny bug in the beta.

                                        Once againg, thank you very much.
                                        Regards.
                                        Gonzalo

                                        D Offline
                                        D Offline
                                        Dirk_H
                                        Contest Winner
                                        wrote on last edited by
                                        #405

                                        @gonzalonal @tekka
                                        Yes I can confirm the exact same behaviour gonzalonal describes. Please say if you need any more details tekka (with the @ function).

                                        tekkaT 1 Reply Last reply
                                        0
                                        • D Dirk_H

                                          @gonzalonal @tekka
                                          Yes I can confirm the exact same behaviour gonzalonal describes. Please say if you need any more details tekka (with the @ function).

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

                                          @Dirk_H @gonzalonal This has been fixed in the most recent build (3314). Thanks for reporting.
                                          => update pushed.

                                          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