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.
  • 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
                                  • P pdey

                                    @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 Offline
                                    tekkaT Offline
                                    tekka
                                    Admin
                                    wrote on last edited by
                                    #407

                                    @pdey Filtering I_LOG_MESSAGE from the main message tab can be (de)activated in the settings.

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

                                      @tekka I've tried to apply @pdey 's change to the current dev branch; but due to the recent refactoring, wasn't successful - I'll keep trying.

                                      Would you happen to have any other suggestions how we can get debug messages back to the controller from remote nodes? Some of my nodes are running some fairly complex code and without debug it becomes a tedious task.

                                      Many thanks in advance,

                                      Mark

                                      V 1 Reply Last reply
                                      0
                                      • Mark SwiftM Mark Swift

                                        @tekka I've tried to apply @pdey 's change to the current dev branch; but due to the recent refactoring, wasn't successful - I'll keep trying.

                                        Would you happen to have any other suggestions how we can get debug messages back to the controller from remote nodes? Some of my nodes are running some fairly complex code and without debug it becomes a tedious task.

                                        Many thanks in advance,

                                        Mark

                                        V Offline
                                        V Offline
                                        vikasjee
                                        wrote on last edited by
                                        #409

                                        Was @pdey 's change applied to the dev branch?

                                        Any suggestions for debug messages to the controller from remote nodes?

                                        @Mark-Swift said:

                                        @tekka I've tried to apply @pdey 's change to the current dev branch; but due to the recent refactoring, wasn't successful - I'll keep trying.

                                        Would you happen to have any other suggestions how we can get debug messages back to the controller from remote nodes? Some of my nodes are running some fairly complex code and without debug it becomes a tedious task.

                                        Many thanks in advance,

                                        Mark

                                        1 Reply Last reply
                                        0
                                        • H Offline
                                          H Offline
                                          Harrdy
                                          wrote on last edited by
                                          #410

                                          My current running setup is a Arduino via USB-Serial attached to a Arduino with my Controller Software. But i want to use this Windows Controller at the same time. Anyone a idea how i can do this (local serial and serial2net at the same time on the same serial device)? if i start the serial2net my raspberry controller is broken and can't connect to the arduino usb serial but the serial2net work.

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


                                          8

                                          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