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.
  • 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
      • H Harrdy

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

        @Harrdy you can use the "GW mode" in the latest release and have your controller pointing to your PC's IP.

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

          Thanks @ @tekka I saw the button "gw mode" but pimatic unfortunately only supports serial gateways. so if i use the "gw mode" i need a package like net2ser (instead of ser2net). But i think something like that does not exist

          edit:
          okay, it works with socat

          sudo socat -d -d pty,link=/dev/ttyPimaticGW,raw,echo=0,waitslave tcp:192.168.170.32:5003;

          tekkaT 1 Reply Last reply
          0
          • H Harrdy

            Thanks @ @tekka I saw the button "gw mode" but pimatic unfortunately only supports serial gateways. so if i use the "gw mode" i need a package like net2ser (instead of ser2net). But i think something like that does not exist

            edit:
            okay, it works with socat

            sudo socat -d -d pty,link=/dev/ttyPimaticGW,raw,echo=0,waitslave tcp:192.168.170.32:5003;

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

            @Harrdy cool, thanks for reporting 👍

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

              @Harrdy I made the experience that a socat tcp tunnel is not stable all the time. I was trying to establish a connection between my ESP8266 gateway and a serial port (to be used with pimatic), but that tended to disconnect after few hours/days. This was also reported by other users in the pimatic forum. But maybe this is only a problem in relation with a ESP gateway.
              I would just recommend to check your connection regularly.
              If it is also unstable for you, I am testing node-red for that purpose at the moment and it looks promising. I will report when testing is finished.

              1 Reply Last reply
              0
              • techRHT Offline
                techRHT Offline
                techRH
                wrote on last edited by
                #415

                Maybe this helps any one else:
                I run openHAB on a RPI3 and i have made a Mysensors serial GW on a arduino nano.
                I want to use openHAB for the interface and MySController for the managment. So i need to forward my serial communication to a TCP socket.

                ser2net is a nice tool works fast but it block the Serial connection for openHAB.
                socat works better for me by executing the following command:
                $ sudo socat tcp-l:5003,reuseaddr,fork file:/dev/mySensorsCOM,nonblock,waitlock=/var/run/mySensorsCOM.lock

                next step will be to put it in a script and sends the process to the background and restarts it if there went something go's wrong.

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

                  @Harrdy there is a ethernet branch of the mysensors plugin for pimatic now under development. You can have a look at the mysensors thread in the pimatic forum to find the instructions.

                  1 Reply Last reply
                  0
                  • techRHT techRH

                    Maybe this helps any one else:
                    I run openHAB on a RPI3 and i have made a Mysensors serial GW on a arduino nano.
                    I want to use openHAB for the interface and MySController for the managment. So i need to forward my serial communication to a TCP socket.

                    ser2net is a nice tool works fast but it block the Serial connection for openHAB.
                    socat works better for me by executing the following command:
                    $ sudo socat tcp-l:5003,reuseaddr,fork file:/dev/mySensorsCOM,nonblock,waitlock=/var/run/mySensorsCOM.lock

                    next step will be to put it in a script and sends the process to the background and restarts it if there went something go's wrong.

                    R Offline
                    R Offline
                    robosensor
                    wrote on last edited by
                    #417

                    Does anyone know how to allow multiple TCP connections forwarded to one MYS tty port? This socat command blocks second TCP connection until first one disconnected.

                    I just want to connect MYSController using TCP without disconnecting my custom MQTT<=>serial controller script. I'm using RPi with USB-serial gateway.

                    P.S. @tekka is there any chances that MQTT access will be implemented in MYSController?

                    @techRH said:

                    $ sudo socat tcp-l:5003,reuseaddr,fork file:/dev/mySensorsCOM,nonblock,waitlock=/var/run/mySensorsCOM.lock

                    P 1 Reply Last reply
                    0
                    • 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

                      jmkhaelJ Offline
                      jmkhaelJ Offline
                      jmkhael
                      wrote on last edited by
                      #418

                      @tekka great work! thank you for sharing this.
                      Your controller and great contribution had me quickly started with mysensors. I am interested in a way to do OTA updates using MYSController via api or a script call or even rewriting the logic in an outside code. I'll try to explain the need based on my setup below.

                      Given that I am using jeedom right now as a controller, but sadly it doesn't seem to support yet OTA updates. I'd like to be able to reuse or even contribute to this feature and I'd appreciate pointers to start doing that.
                      My setup has it that jeedom runs off a raspi and has a mysensors serial gateway attached. (1 to 2 Watts draw for this setup). MYSController can work as an ethernet relay gateway, but if I understand correctly I have to run it on windows (more moving parts), or a much hungrier box than my raspi.

                      Is there a way I can make that work somehow? I am ready and appreciate any type of suggestions with the current setup I have or an evolution which goes into that direction.

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

                        @robosensor you could try nodered. It can connect multiple inputs (mqtt, tcp,...) and merge it to a single serial output and vice versa. You might have to add some logic, but that shouldn't be a problem.

                        1 Reply Last reply
                        1
                        • R robosensor

                          Does anyone know how to allow multiple TCP connections forwarded to one MYS tty port? This socat command blocks second TCP connection until first one disconnected.

                          I just want to connect MYSController using TCP without disconnecting my custom MQTT<=>serial controller script. I'm using RPi with USB-serial gateway.

                          P.S. @tekka is there any chances that MQTT access will be implemented in MYSController?

                          @techRH said:

                          $ sudo socat tcp-l:5003,reuseaddr,fork file:/dev/mySensorsCOM,nonblock,waitlock=/var/run/mySensorsCOM.lock

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

                          @robosensor I wrote a bridge to use on the Linino side of the Arduino Yun for this:
                          https://github.com/peterdey/Yun-Linino-NewBridge

                          But there's no reason you couldn't use this on an rPi - you'll probably just need to turn the baud rate down to 115200.

                          1 Reply Last reply
                          0
                          • jmkhaelJ jmkhael

                            @tekka great work! thank you for sharing this.
                            Your controller and great contribution had me quickly started with mysensors. I am interested in a way to do OTA updates using MYSController via api or a script call or even rewriting the logic in an outside code. I'll try to explain the need based on my setup below.

                            Given that I am using jeedom right now as a controller, but sadly it doesn't seem to support yet OTA updates. I'd like to be able to reuse or even contribute to this feature and I'd appreciate pointers to start doing that.
                            My setup has it that jeedom runs off a raspi and has a mysensors serial gateway attached. (1 to 2 Watts draw for this setup). MYSController can work as an ethernet relay gateway, but if I understand correctly I have to run it on windows (more moving parts), or a much hungrier box than my raspi.

                            Is there a way I can make that work somehow? I am ready and appreciate any type of suggestions with the current setup I have or an evolution which goes into that direction.

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

                            @jmkhael You can use "GW mode" (=proxy mode) in the tab bar

                            1 Reply Last reply
                            0
                            • techRHT Offline
                              techRHT Offline
                              techRH
                              wrote on last edited by
                              #422

                              I thought the socat command is to slow in switching so i have created a python script which will readout the mysensors serial GW and sends the data to a virtual serial port to connect to openhab and a TCP socket for the MySensors controller.

                              https://github.com/Rutger798/serial_to_serial_and_tcp/blob/master/serial_to_serial_and_tcp.py

                              1 Reply Last reply
                              2
                              • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          19

                                          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