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.
  • D Offline
    D Offline
    dakipro
    wrote on last edited by
    #339

    I think I have flashed MYSBootloader finaly, after ~6hours of trying and reading (persistent guy :) )
    The instructions are for the older version I guess, right board should be copied from MYSController/bootloader/boards.txt, not from this topic post#75. Now I am trying to figure how to flash the sketch, but I guess that is explained somewhere on the topic

    C: OpenHAB2 with node-red on linux laptop
    GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
    GW: Arduino Mega, RFLink 433Mhz

    tekkaT 1 Reply Last reply
    0
    • D Offline
      D Offline
      dakipro
      wrote on last edited by
      #340

      Just one more question, I didn't find it answered on the topic (maybe too tired), but:
      I have existing network with ethernet gateway and some nodes, and all is working fine. To make it OTA update-able, I need to

      1. i upload ethernet gateway to the Arduino Nano, then flash MYSBootloader on it,
      2. upload some sketch (which?) on Arduino Mini nodes, and then flash MYSBootloader on it, and then I can program it OTA?
      3. Or something else?

      Or did I miss the point completely? :(

      C: OpenHAB2 with node-red on linux laptop
      GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
      GW: Arduino Mega, RFLink 433Mhz

      1 Reply Last reply
      0
      • P Offline
        P Offline
        p0lar
        wrote on last edited by p0lar
        #341

        so from what I know.
        you DONT need the MYSBootloader on the gateway. just normal arduino bootloader. you DO need the MYSBootloader on ALL the sensors you with to connect to your gateway.
        Do the MYSBootloader first then use this tool to upload the firmware to your sensors OTA

        1 Reply Last reply
        0
        • D dakipro

          I think I have flashed MYSBootloader finaly, after ~6hours of trying and reading (persistent guy :) )
          The instructions are for the older version I guess, right board should be copied from MYSController/bootloader/boards.txt, not from this topic post#75. Now I am trying to figure how to flash the sketch, but I guess that is explained somewhere on the topic

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

          @dakipro I use the settings mentioned in #75 in Atmel studio, however, AVRDUDE does not support the upper two bits of the lock fuse (therefore the error message 0xFF!=0x3F). Changing the lock bits to 0x3F should do the job.

          And yes, as @p0lar pointed out, only the nodes and not the gateway should have MYSBootloader.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            p0lar
            wrote on last edited by
            #343

            HMM i cant build a DEBUG version of the ethernet gateway... even when I try to define it and print hello world it wont... weird.. any ideas?

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dakipro
              wrote on last edited by
              #344

              Aha, I get it now. Then I just flash MYSBootloader on the sensor, and attach the radio and it will automatically connect to the gateway (it has some sort of sketch/communication with MySensors built in)? And then I use the MYSController to upload my sketch as described?

              Or how do I upload a initial sketch if I cannot use arduino anymore?

              Btw, I love MYSController, i use it all the time in development as it shows all that is going on with the sensors, thank you very much for developing it!

              C: OpenHAB2 with node-red on linux laptop
              GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
              GW: Arduino Mega, RFLink 433Mhz

              1 Reply Last reply
              0
              • P Offline
                P Offline
                p0lar
                wrote on last edited by p0lar
                #345

                correct. you build the .hex file in arduino studio or whatever and copy it to the MY gui firmware folder and edit the csv file and then reload.

                http://forum.mysensors.org/topic/1066/bootloader/8

                This should help

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  p0lar
                  wrote on last edited by p0lar
                  #346
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    p0lar
                    wrote on last edited by
                    #347

                    I thinking I am build a DEBUG version of the GW code. but I dont think the logging is working in the app with my eth GW. am I mising something?

                    So. when I build a DEBUG version of the GW code I get this in the serial console hex size=29k so its bigger.

                    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
                    0;0;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:71.6
                    1;1;1;0;0;71.6
                    0;0;3;0;9;read: 2-2-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                    2;1;1;0;16;0

                    the NON DEBUG I get this. hex size = 26k
                    1;1;1;0;0;69.8
                    1;0;1;0;1;35.0
                    1;1;1;0;0;71.6
                    1;0;1;0;1;36.0
                    1;1;1;0;0;73.4
                    1;0;1;0;1;37.0
                    2;1;1;0;16;0

                    tekkaT 1 Reply Last reply
                    0
                    • P p0lar

                      I thinking I am build a DEBUG version of the GW code. but I dont think the logging is working in the app with my eth GW. am I mising something?

                      So. when I build a DEBUG version of the GW code I get this in the serial console hex size=29k so its bigger.

                      0;0;3;0;9;gateway started, id=0, parent=0, distance=0
                      0;0;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:71.6
                      1;1;1;0;0;71.6
                      0;0;3;0;9;read: 2-2-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                      2;1;1;0;16;0

                      the NON DEBUG I get this. hex size = 26k
                      1;1;1;0;0;69.8
                      1;0;1;0;1;35.0
                      1;1;1;0;0;71.6
                      1;0;1;0;1;36.0
                      1;1;1;0;0;73.4
                      1;0;1;0;1;37.0
                      2;1;1;0;16;0

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

                      @p0lar said:

                      So. when I build a DEBUG version of the GW code I get this in the serial console hex size=29k so its bigger.

                      0;0;3;0;9;gateway started, id=0, parent=0, distance=0
                      0;0;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:71.6
                      1;1;1;0;0;71.6
                      0;0;3;0;9;read: 2-2-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                      2;1;1;0;16;0

                      that looks good :)

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        p0lar
                        wrote on last edited by p0lar
                        #349

                        Still nothing in the MySensors Debug tab... and only the NON debug info in the log files. maybe this is a ethernet GW issue? So I get debug info in the Arduino Serial monitor but no debug via TCP?

                        [GENERAL]
                        VERSION=0.1.2.282

                        [COMMUNICATION]
                        COM=COM1
                        SPEED=4
                        IP=10.1.1.200
                        PORT=5003
                        TCPACTIVE=1

                        [STATUS]
                        LOGGING=1
                        DEBUGGING=1
                        SENDMSG=1
                        LOGPARSE=1
                        AUTOFW=0
                        AUTOID=1
                        UTCTIME=0
                        CLOSECONFIRM=0
                        FILTERLOG=1
                        SAVENODES=1
                        METRICSYSTEM=0

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          stebra
                          wrote on last edited by
                          #350

                          @tekka : I tested the ID reassign by hardcoding the functionality in the serial gw sketch. Reboot node 6, wait for FW_CONFIG_REQUEST, answer with FW_CONFIG_RESPONSE.

                          Works as expected & described in the MYSBootloader code. Please give me some hint why MYSController does not send the FW_CONFIG_RESPONSE packet with the bootloader commands after the reboot.

                          I trigger the reassign via the node´s context menu in the gui, MYSBootloader Commands --> reassign ID. Anything wrong with that ?

                          Maybe someone else has an idea what is happening/not happening ? @tekka could you find something in the log file?

                          Thanks a lot...

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            stebra
                            wrote on last edited by
                            #351

                            Has anyone tested successfully reassigning the node-id with MYSBootloader 1.1 and MYSController 1.2.282 ? Would give me some new motivation to hear it's possible and has been done before. At the very moment I m at a dead end.
                            If it is not working for you, I would also appreciate your feedback.

                            tekkaT 1 Reply Last reply
                            0
                            • greglG Offline
                              greglG Offline
                              gregl
                              Hero Member
                              wrote on last edited by
                              #352

                              @tekka
                              Is the (dev branch) MQTTClientGateway supported by MYSController?

                              I'm in the process of moving from Vera and Ethernet GW, to Openhab with MQTTClient gateway and would love to have the OTA functionality your bootloader and controller provides. I looked at this a while back, but ran out of time to play!

                              So yeah.. Can MYSController talk with the MQTTClientGateway ( over Ethernet) ?

                              Cheers,
                              Greg

                              1 Reply Last reply
                              0
                              • greglG Offline
                                greglG Offline
                                gregl
                                Hero Member
                                wrote on last edited by
                                #353

                                In answer to my own question... No..it doesnt seem to.. ;-(
                                I tried with the IP address of my MQTT client gateway board, and port 5003 ( same port that works for my 1.4 Ethernet GW )
                                It says it connects, but no data flows in....

                                @tekka @hek - Is it unlikely that the MQTTClient Gateway will be usable with MYSController??

                                If not, would this work?

                                Have two networks -
                                1 for MYSController to perform OTA's using a serial gateway on the PC we typically do sketch changes on.

                                2 for normal MySensors operation. When you want to invoke an update, you could send a I_REBOOT command ( MQTT message in my case), which would reboot the node and if i understand correctly, look for an update on the other network channel.

                                I guess you would loose all the other functionility of MYSController, but at least we could do OTA.

                                Cheers,
                                Greg

                                tekkaT 1 Reply Last reply
                                0
                                • S stebra

                                  Has anyone tested successfully reassigning the node-id with MYSBootloader 1.1 and MYSController 1.2.282 ? Would give me some new motivation to hear it's possible and has been done before. At the very moment I m at a dead end.
                                  If it is not working for you, I would also appreciate your feedback.

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

                                  @stebra The log looks normal - is the node directly communicating with the gw or via a repeater? Does the clearEEPROM option work?

                                  1 Reply Last reply
                                  0
                                  • greglG gregl

                                    In answer to my own question... No..it doesnt seem to.. ;-(
                                    I tried with the IP address of my MQTT client gateway board, and port 5003 ( same port that works for my 1.4 Ethernet GW )
                                    It says it connects, but no data flows in....

                                    @tekka @hek - Is it unlikely that the MQTTClient Gateway will be usable with MYSController??

                                    If not, would this work?

                                    Have two networks -
                                    1 for MYSController to perform OTA's using a serial gateway on the PC we typically do sketch changes on.

                                    2 for normal MySensors operation. When you want to invoke an update, you could send a I_REBOOT command ( MQTT message in my case), which would reboot the node and if i understand correctly, look for an update on the other network channel.

                                    I guess you would loose all the other functionility of MYSController, but at least we could do OTA.

                                    Cheers,
                                    Greg

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

                                    @gregl MYSController is currently not supporting MQTT, I'll add it to my feature request w/o ETA.

                                    crankyC 1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      stebra
                                      wrote on last edited by
                                      #356

                                      @tekka
                                      No repeater, clear eeprom via MYSController gui does not work. Clear eeprom via sketch works, node gets new id after reboot.
                                      My assumption is that MYSController does not respond to the FW_CONFIG_REQU after reboot.

                                      1 Reply Last reply
                                      0
                                      • tekkaT tekka

                                        @gregl MYSController is currently not supporting MQTT, I'll add it to my feature request w/o ETA.

                                        crankyC Offline
                                        crankyC Offline
                                        cranky
                                        wrote on last edited by
                                        #357

                                        @tekka You might not have to. I've been working on Node-Red as a controller and more.

                                        With my kit, you need Node-Red, node-red-contrib-mysensors , Mosquitto, and some of my flows which I have available ( http://forum.mysensors.org/topic/2802/flow-to-turn-serialgateway-into-mqtt-serialgateway ).

                                        And it makes this:
                                        http://forum.mysensors.org/topic/2815/flow-to-turn-serialgateway-with-mqtt-flow-to-ethernetgateway

                                        The only flaw is that when you first connect MYSController, you need to send a junk topic so that MYSController can receive data. It's a bug/peculiarity with Node-Red, but honestly not a big deal. I'm also working on how to fix even that.

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          stebra
                                          wrote on last edited by
                                          #358

                                          @tekka
                                          Can you verify it works for you? Do you see any response packets with the bl commands in your log?

                                          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