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.
  • daulagariD daulagari

    I can not select the serial port yet, so could not test it further, likely have to do some mapping in wine.

    Took some time to find out but after:

    • Adding a mapping from the Linux serial port to the Wine dosdevice configuration:
      ln -s /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_* ~/.wine/dosdevices/COM3

    • Adding to ~/.wine/system.reg:

        [Hardware\\Devicemap\\Serialcomm] 1231984861
        @=""
        "Serial0"="COM1"
        "Serial1"="COM2"
        "Serial2"="COM3" 
    

    I could start MYSController.exe and select COM3 and get:

    File_not_open.png

    But after pressing OK things look to work however:

    Gateway_startup_complete.png

    @tekka : Thanks!

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

    @daulagari thanks for the workaround. Success with OTA?

    1 Reply Last reply
    0
    • daulagariD Offline
      daulagariD Offline
      daulagari
      Hero Member
      wrote on last edited by
      #28

      Doing OTA did work once but trying a second time did not work out yet.

      I found that it is important the user that runs "wine MYSController.exe" must have access to the port ~/.wine/dosdevices/COMx links to:

      $ ls -als /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_*
      0 lrwxrwxrwx 1 root root 13 25 jan 09:38 /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9SZN99X-if00-port0 -> ../../ttyUSB0
      

      Is not good ("root root"), I changed the link to to:

      $ ls -asl /dev/ttyUSB0 
      0 crw-rw---- 1 root dialout 188, 0 25 jan 11:34 /dev/ttyUSB0
      

      In the debug log I see the 0;0;3;0;14;Gateway startup complete. message but no messages from the sensor.

      Looks like the "File not open." window I am getting and:

      fixme:comm:set_queue_size insize 4096 outsize 0 unimplemented stub
      

      I am seeing on the command line has something to do with it.

      NB: Seems like the GUI is programmed using TK. How about compiling it for Linux?

      tekkaT 1 Reply Last reply
      0
      • daulagariD daulagari

        Doing OTA did work once but trying a second time did not work out yet.

        I found that it is important the user that runs "wine MYSController.exe" must have access to the port ~/.wine/dosdevices/COMx links to:

        $ ls -als /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_*
        0 lrwxrwxrwx 1 root root 13 25 jan 09:38 /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9SZN99X-if00-port0 -> ../../ttyUSB0
        

        Is not good ("root root"), I changed the link to to:

        $ ls -asl /dev/ttyUSB0 
        0 crw-rw---- 1 root dialout 188, 0 25 jan 11:34 /dev/ttyUSB0
        

        In the debug log I see the 0;0;3;0;14;Gateway startup complete. message but no messages from the sensor.

        Looks like the "File not open." window I am getting and:

        fixme:comm:set_queue_size insize 4096 outsize 0 unimplemented stub
        

        I am seeing on the command line has something to do with it.

        NB: Seems like the GUI is programmed using TK. How about compiling it for Linux?

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

        @daulagari
        interesting, do you get the "File not open" message with AutoFW disabled? Also, what happens if you reboot the gateway several times (reset button), does the "Gateway startup complete" message re-appear? I recall that I had problems with OTA with the debug-mode enabled in config.h, the gateway kept freezing when sending OTA messages.
        The controller is written in lazarus/fpc - porting to mac or *nix should be straight forward, I'll have a look.

        1 Reply Last reply
        0
        • daulagariD Offline
          daulagariD Offline
          daulagari
          Hero Member
          wrote on last edited by
          #30

          I have AutoFW disabled.

          The funny thing is that things do not work at all if I do not get the "File not open" error.
          No, rebooting the gateway does not make the "Gateway startup complete" message re-appear.

          Did watch the serial port using interceptty and see data is passed so it seems like Wine is not passing it.

          1 Reply Last reply
          0
          • daulagariD Offline
            daulagariD Offline
            daulagari
            Hero Member
            wrote on last edited by
            #31

            Did do some more experimenting using a sort of Ethernet gateway (actual the relayed Serial gateway data) and see that MYSController.exe can connect but once it prints the first data it gives the "File not open." error and no further data is printed.

            So it does not look like a serial port issue but something else.

            Did not know Lazarus but it looks pretty good!

            tekkaT 1 Reply Last reply
            0
            • daulagariD daulagari

              Did do some more experimenting using a sort of Ethernet gateway (actual the relayed Serial gateway data) and see that MYSController.exe can connect but once it prints the first data it gives the "File not open." error and no further data is printed.

              So it does not look like a serial port issue but something else.

              Did not know Lazarus but it looks pretty good!

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

              @daulagari
              ok, I could reproduce the error which seems to appear in connection with scrambled data from the gateway (during the gateway startup). If you press the dis- and connect-button a few times once the error appears, all pending messages will be processed and the controller should resume.

              1 Reply Last reply
              0
              • tekkaT Offline
                tekkaT Offline
                tekka
                Admin
                wrote on last edited by
                #33

                New version available with bug fixes 0.1.2.256:

                • "File not open" error fixed
                • Display errors fixed
                • Mac users: use wine to run program, no remapping of serial ports necessary - use e.g. /dev/ttyUSB0 in config window

                To update hit the update button or download here.


                AWIA S 2 Replies Last reply
                2
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #34

                  Great, I'll add a link from the main site to your project.

                  1 Reply Last reply
                  0
                  • daulagariD Offline
                    daulagariD Offline
                    daulagari
                    Hero Member
                    wrote on last edited by
                    #35

                    @tekka : Thanks, things work now fine! :+1:

                    1 Reply Last reply
                    0
                    • ch3b7C Offline
                      ch3b7C Offline
                      ch3b7
                      wrote on last edited by
                      #36

                      Any source code?

                      tekkaT 1 Reply Last reply
                      0
                      • tekkaT tekka

                        New version available with bug fixes 0.1.2.256:

                        • "File not open" error fixed
                        • Display errors fixed
                        • Mac users: use wine to run program, no remapping of serial ports necessary - use e.g. /dev/ttyUSB0 in config window

                        To update hit the update button or download here.


                        AWIA Offline
                        AWIA Offline
                        AWI
                        Hero Member
                        wrote on last edited by
                        #37

                        @tekka Hi, Chrome is blocking the download of the Windows GUI/Controller zip archive for being "harmfull". any clue?

                        tekkaT 1 Reply Last reply
                        0
                        • AWIA AWI

                          @tekka Hi, Chrome is blocking the download of the Windows GUI/Controller zip archive for being "harmfull". any clue?

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

                          @AWI My guess is because of the upx-packed executable (MYSController.exe) in the archive being recognized as false positive.

                          1 Reply Last reply
                          0
                          • ch3b7C ch3b7

                            Any source code?

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

                            @ch3b7 said:

                            Any source code?

                            Yes, I will provide the source code in the nearest future.

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              doblanch
                              wrote on last edited by doblanch
                              #40

                              Hello team, thanks for the great job. This tool is very useful.
                              however, I don't understand how the tool can snif. I guess, that I have to connect an arduino in serial ( I use the tool in a VM)... but with which sketch ? a gateway sketch...I think I missed something, but if somebody can elaborate a little bit. thanks

                              1 Reply Last reply
                              0
                              • ch3b7C Offline
                                ch3b7C Offline
                                ch3b7
                                wrote on last edited by
                                #41

                                You need upload the serialgateway sketch to the arduino connected with the nrf24 the n connect the usb to pc and select the correct com port in the program

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mvader
                                  wrote on last edited by
                                  #42

                                  " It works in connection with the modified optiboot/OTA bootloader mentioned in a previous post. "

                                  can someone link to that post? I couldn't find it
                                  Thanks

                                  tekkaT 1 Reply Last reply
                                  0
                                  • ch3b7C Offline
                                    ch3b7C Offline
                                    ch3b7
                                    wrote on last edited by
                                    #43

                                    You add ethernet support? Im add ethernet support in my program in .net its work good.

                                    1 Reply Last reply
                                    0
                                    • M mvader

                                      " It works in connection with the modified optiboot/OTA bootloader mentioned in a previous post. "

                                      can someone link to that post? I couldn't find it
                                      Thanks

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

                                      @mvader this is the MYSBootloader from the library.

                                      M 1 Reply Last reply
                                      0
                                      • tekkaT tekka

                                        @mvader this is the MYSBootloader from the library.

                                        M Offline
                                        M Offline
                                        mvader
                                        wrote on last edited by
                                        #45

                                        @tekka said:

                                        @mvader this is the MYSBootloader from the library.

                                        okay thanks!

                                        1 Reply Last reply
                                        0
                                        • HeinzH Offline
                                          HeinzH Offline
                                          Heinz
                                          Hero Member
                                          wrote on last edited by
                                          #46

                                          @tekka cool software! btw the sorting of the child sensors in the tree could be optimized.
                                          Right now the nodes are sorted like string instead of numbers:

                                          0 - ...
                                          1 - ...
                                          10 -
                                          11 -
                                          ...
                                          2 -
                                          21-
                                          ...

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


                                          11

                                          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