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. MyController.org
  4. MyController.org

MyController.org

Scheduled Pinned Locked Moved MyController.org
100 Posts 22 Posters 62.2k Views 14 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 davidbd

    Nice ! Very clean GUI !

    I installed this controller on RPI with serial gateway and it works like a charm with two TEMP sensors.

    It will be good if you can use the RPI GPIO to connect directly to NRF24 RF module instead on adding the serial gateway ( see http://iot-playground.com ..)

    I wish you good luck with this project.

    J Offline
    J Offline
    jkandasa
    Plugin Developer
    wrote on last edited by jkandasa
    #47

    @davidbd said:

    It will be good if you can use the RPI GPIO to connect directly to NRF24 RF module instead on adding the serial gateway ( see http://iot-playground.com ..)

    Yes, I have plan to implement NRF24l01 directly. I have to learn more about how mysensors gateway is working. Also planing to implement RPI GPIO port access from MyController.org directly

    I wish you good luck with this project.

    Thank you! @davidbd

    1 Reply Last reply
    0
    • GertSandersG GertSanders

      Actually, you can add the NRF24 directly to the Raspberry and use it as a gateway at the same time:

      http://forum.mysensors.org/topic/1151/tutorial-raspberry-pi-nrf24l01-direct-connection

      J Offline
      J Offline
      jkandasa
      Plugin Developer
      wrote on last edited by jkandasa
      #48

      @GertSanders said:

      Actually, you can add the NRF24 directly to the Raspberry and use it as a gateway at the same time:

      http://forum.mysensors.org/topic/1151/tutorial-raspberry-pi-nrf24l01-direct-connection

      Thank you @GertSanders let me have a look. As MyController.org is designed with pure Java language I have to implement with some wrapper or with the help of pi4j module

      1 Reply Last reply
      0
      • GertSandersG Offline
        GertSandersG Offline
        GertSanders
        Hardware Contributor
        wrote on last edited by
        #49

        @jkandasa
        I used the Raspberry version of Mysensors gateway for software to set up a serial gateway. Then Inadded a symlink link with shorter name so domoticz could see it. If your software can detect the normal ttyMySensorGateway then no need for a symlink.
        Hardware toconnect radio and raspberry is simple interconnect with GPIO. Same connections as with wire. I made a little board for it. Link to that is also somewhere on the forum.

        J 1 Reply Last reply
        0
        • GertSandersG GertSanders

          @jkandasa
          I used the Raspberry version of Mysensors gateway for software to set up a serial gateway. Then Inadded a symlink link with shorter name so domoticz could see it. If your software can detect the normal ttyMySensorGateway then no need for a symlink.
          Hardware toconnect radio and raspberry is simple interconnect with GPIO. Same connections as with wire. I made a little board for it. Link to that is also somewhere on the forum.

          J Offline
          J Offline
          jkandasa
          Plugin Developer
          wrote on last edited by
          #50

          @GertSanders said:

          @jkandasa
          I used the Raspberry version of Mysensors gateway for software to set up a serial gateway. Then Inadded a symlink link with shorter name so domoticz could see it. If your software can detect the normal ttyMySensorGateway then no need for a symlink.
          Hardware toconnect radio and raspberry is simple interconnect with GPIO. Same connections as with wire. I made a little board for it. Link to that is also somewhere on the forum.

          @GertSanders This is nice, I guess no need to change anything in MyController software. Let me check this and update you. Thank you.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jkandasa
            Plugin Developer
            wrote on last edited by
            #51

            @GertSanders @davidbd Just now I tested https://github.com/mysensors/Raspberry with MyController.org server it is working perfectly. Thank you very much! you guys saved hardware cost and added direct NRF24 support to MyController.org :smiley:

            I did all the steps as root user (running MyController.org server also as a root user). Kindly let me know if you face any issues.

            Install https://github.com/mysensors/Raspberry and connect NRF24L01+ as mentioned on the page.

            Now we have to point-out ttyMySensorsGateway port to MyController.org server via it is configuration file

            Stop your MyController server change a line,
            File Name: mycontroller/conf/mycontroller.properties

            mcc.serialport.name=/dev/ttyMySensorsGateway
            

            Start your MyController server. That is it :)

            D 2 Replies Last reply
            1
            • GertSandersG Offline
              GertSandersG Offline
              GertSanders
              Hardware Contributor
              wrote on last edited by
              #52

              link to my board:

              https://oshpark.com/shared_projects/aXLXBO3f

              1 Reply Last reply
              0
              • GertSandersG Offline
                GertSandersG Offline
                GertSanders
                Hardware Contributor
                wrote on last edited by
                #53

                http://forum.mysensors.org/topic/1974/domoticz-as-controller-and-a-gateway-for-mysensor-nodes-running-on-a-raspberry-pi-2

                My setup described here

                J 1 Reply Last reply
                1
                • GertSandersG GertSanders

                  http://forum.mysensors.org/topic/1974/domoticz-as-controller-and-a-gateway-for-mysensor-nodes-running-on-a-raspberry-pi-2

                  My setup described here

                  J Offline
                  J Offline
                  jkandasa
                  Plugin Developer
                  wrote on last edited by
                  #54

                  @GertSanders said:

                  http://forum.mysensors.org/topic/1974/domoticz-as-controller-and-a-gateway-for-mysensor-nodes-running-on-a-raspberry-pi-2

                  My setup described here

                  Thank you @GertSanders

                  1 Reply Last reply
                  0
                  • J jkandasa

                    @GertSanders @davidbd Just now I tested https://github.com/mysensors/Raspberry with MyController.org server it is working perfectly. Thank you very much! you guys saved hardware cost and added direct NRF24 support to MyController.org :smiley:

                    I did all the steps as root user (running MyController.org server also as a root user). Kindly let me know if you face any issues.

                    Install https://github.com/mysensors/Raspberry and connect NRF24L01+ as mentioned on the page.

                    Now we have to point-out ttyMySensorsGateway port to MyController.org server via it is configuration file

                    Stop your MyController server change a line,
                    File Name: mycontroller/conf/mycontroller.properties

                    mcc.serialport.name=/dev/ttyMySensorsGateway
                    

                    Start your MyController server. That is it :)

                    D Offline
                    D Offline
                    davidbd
                    wrote on last edited by
                    #55

                    @jkandasa Well Done ! Thanks ! you are doing great Job here.

                    1 Reply Last reply
                    0
                    • J jkandasa

                      @GertSanders @davidbd Just now I tested https://github.com/mysensors/Raspberry with MyController.org server it is working perfectly. Thank you very much! you guys saved hardware cost and added direct NRF24 support to MyController.org :smiley:

                      I did all the steps as root user (running MyController.org server also as a root user). Kindly let me know if you face any issues.

                      Install https://github.com/mysensors/Raspberry and connect NRF24L01+ as mentioned on the page.

                      Now we have to point-out ttyMySensorsGateway port to MyController.org server via it is configuration file

                      Stop your MyController server change a line,
                      File Name: mycontroller/conf/mycontroller.properties

                      mcc.serialport.name=/dev/ttyMySensorsGateway
                      

                      Start your MyController server. That is it :)

                      D Offline
                      D Offline
                      davidbd
                      wrote on last edited by
                      #56

                      @jkandasa

                      Hi,

                      I just install the PiGatewaySerial in RPI and run as a daemon but found CPU is almost 100% !

                      2173 root 20 0 3740 1624 1416 R 98.8 0.4 2:17.91 PiGatewaySerial

                      J 1 Reply Last reply
                      0
                      • D davidbd

                        @jkandasa

                        Hi,

                        I just install the PiGatewaySerial in RPI and run as a daemon but found CPU is almost 100% !

                        2173 root 20 0 3740 1624 1416 R 98.8 0.4 2:17.91 PiGatewaySerial

                        J Offline
                        J Offline
                        jkandasa
                        Plugin Developer
                        wrote on last edited by
                        #57

                        @davidbd said:

                        @jkandasa

                        Hi,

                        I just install the PiGatewaySerial in RPI and run as a daemon but found CPU is almost 100% !

                        2173 root 20 0 3740 1624 1416 R 98.8 0.4 2:17.91 PiGatewaySerial

                        @davidbd I donot face any issue like you said.

                        root@raspbx:~# ps -p 11415 -o %cpu,%mem,cmd
                        %CPU %MEM CMD
                         0.0  0.0 /usr/local/sbin/PiGatewaySerial -d
                        

                        I do not have much knowledge on PiGatewaySerial we have a discussion about this topic on http://forum.mysensors.org/topic/1151/tutorial-raspberry-pi-nrf24l01-direct-connection/39

                        Some people already reported 100% cpu usage. Can you please check and post your query there?

                        My RPI setup.

                        root@raspbx:~# uname -a
                        Linux raspbx 3.18.6-v7+ #753 SMP PREEMPT Sun Feb 8 14:53:56 GMT 2015 armv7l GNU/Linux
                        root@raspbx:~# cat /etc/issue
                        Raspbian GNU/Linux 8 \n \l
                        
                        root@raspbx:~# cat /etc/debian_version
                        8.0
                        

                        RPI Model: Raspberry pi 2 Model B

                        I ran everything as a root user.

                        D 1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          ericvdb
                          wrote on last edited by
                          #58

                          The 100% cpu usage happens only if nothing connects to /dev/ttyMySensorsGateway, at least thats what i experienced.

                          1 Reply Last reply
                          0
                          • GertSandersG Offline
                            GertSandersG Offline
                            GertSanders
                            Hardware Contributor
                            wrote on last edited by
                            #59

                            My CPU load hardly ever goes over 1%, and that is including a running Domoticz controller in parallel with the serial gateway.

                            Gert

                            1 Reply Last reply
                            0
                            • J jkandasa

                              @davidbd said:

                              @jkandasa

                              Hi,

                              I just install the PiGatewaySerial in RPI and run as a daemon but found CPU is almost 100% !

                              2173 root 20 0 3740 1624 1416 R 98.8 0.4 2:17.91 PiGatewaySerial

                              @davidbd I donot face any issue like you said.

                              root@raspbx:~# ps -p 11415 -o %cpu,%mem,cmd
                              %CPU %MEM CMD
                               0.0  0.0 /usr/local/sbin/PiGatewaySerial -d
                              

                              I do not have much knowledge on PiGatewaySerial we have a discussion about this topic on http://forum.mysensors.org/topic/1151/tutorial-raspberry-pi-nrf24l01-direct-connection/39

                              Some people already reported 100% cpu usage. Can you please check and post your query there?

                              My RPI setup.

                              root@raspbx:~# uname -a
                              Linux raspbx 3.18.6-v7+ #753 SMP PREEMPT Sun Feb 8 14:53:56 GMT 2015 armv7l GNU/Linux
                              root@raspbx:~# cat /etc/issue
                              Raspbian GNU/Linux 8 \n \l
                              
                              root@raspbx:~# cat /etc/debian_version
                              8.0
                              

                              RPI Model: Raspberry pi 2 Model B

                              I ran everything as a root user.

                              D Offline
                              D Offline
                              davidbd
                              wrote on last edited by
                              #60

                              @jkandasa As reported by users ... the 100% cpu usage happens only if nothing connects to /dev/ttyMySensorsGateway
                              I am OK now but maybe worth to check why as this is not good behaviour.

                              1 Reply Last reply
                              0
                              • tbowmoT Offline
                                tbowmoT Offline
                                tbowmo
                                Admin
                                wrote on last edited by tbowmo
                                #61

                                Just finished setting up MyController, so it runs besides domoticz, and NodeRed. Looks fine so far, but haven't had that much time to delve into MyController specifics yet.

                                Have set it up so that when ever I turn a light on / off in MyController, Domoticz also sees this (and of course the sensor network).

                                Plan was to try and use MyController for OTA firmware updates, and keep track of firmware versions in my network.

                                J 1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  diggs
                                  wrote on last edited by diggs
                                  #62

                                  For some reason cannot seem to get it running.

                                  Have installed the software and the server appears to start, but there is no web access and this is what I get when I check the log.

                                  Have I setup something incorrect

                                  Running on a PI

                                  Exception in thread "main" java.lang.UnsupportedClassVersionError: org/mycontroller/standalone/StartApp : Unsupported major.minor version 52.0
                                          at java.lang.ClassLoader.defineClass1(Native Method)
                                          at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
                                          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
                                          at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
                                          at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
                                          at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
                                          at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
                                          at java.security.AccessController.doPrivileged(Native Method)
                                          at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
                                          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
                                          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
                                          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
                                          at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
                                  

                                  java version "1.7.0_40"
                                  Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
                                  Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode)

                                  J 1 Reply Last reply
                                  0
                                  • D diggs

                                    For some reason cannot seem to get it running.

                                    Have installed the software and the server appears to start, but there is no web access and this is what I get when I check the log.

                                    Have I setup something incorrect

                                    Running on a PI

                                    Exception in thread "main" java.lang.UnsupportedClassVersionError: org/mycontroller/standalone/StartApp : Unsupported major.minor version 52.0
                                            at java.lang.ClassLoader.defineClass1(Native Method)
                                            at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
                                            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
                                            at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
                                            at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
                                            at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
                                            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
                                            at java.security.AccessController.doPrivileged(Native Method)
                                            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
                                            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
                                            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
                                            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
                                            at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
                                    

                                    java version "1.7.0_40"
                                    Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
                                    Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode)

                                    J Offline
                                    J Offline
                                    jkandasa
                                    Plugin Developer
                                    wrote on last edited by jkandasa
                                    #63

                                    @diggs said:

                                    For some reason cannot seem to get it running.

                                    java version "1.7.0_40"
                                    Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
                                    Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode)

                                    You should update your java version to 1.8 or later. For raspberry PI oracle java is recommended for MyController.

                                    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

                                    jdk-8u60-linux-arm32-vfp-hflt.tar.gz

                                    @diggs hope this link will help you to update your java: http://www.rpiblog.com/2014/03/installing-oracle-jdk-8-on-raspberry-pi.html

                                    D 1 Reply Last reply
                                    0
                                    • tbowmoT tbowmo

                                      Just finished setting up MyController, so it runs besides domoticz, and NodeRed. Looks fine so far, but haven't had that much time to delve into MyController specifics yet.

                                      Have set it up so that when ever I turn a light on / off in MyController, Domoticz also sees this (and of course the sensor network).

                                      Plan was to try and use MyController for OTA firmware updates, and keep track of firmware versions in my network.

                                      J Offline
                                      J Offline
                                      jkandasa
                                      Plugin Developer
                                      wrote on last edited by
                                      #64

                                      @tbowmo said:

                                      Just finished setting up MyController, so it runs besides domoticz, and NodeRed. Looks fine so far, but haven't had that much time to delve into MyController specifics yet.

                                      Have set it up so that when ever I turn a light on / off in MyController, Domoticz also sees this (and of course the sensor network).

                                      Plan was to try and use MyController for OTA firmware updates, and keep track of firmware versions in my network.

                                      @tbowmo Nice! you can give try for other features also which is available in MyController ;)
                                      Alarm, Timer, Forward Payload, UID, etc.,

                                      1 Reply Last reply
                                      0
                                      • J jkandasa

                                        @diggs said:

                                        For some reason cannot seem to get it running.

                                        java version "1.7.0_40"
                                        Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
                                        Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode)

                                        You should update your java version to 1.8 or later. For raspberry PI oracle java is recommended for MyController.

                                        http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

                                        jdk-8u60-linux-arm32-vfp-hflt.tar.gz

                                        @diggs hope this link will help you to update your java: http://www.rpiblog.com/2014/03/installing-oracle-jdk-8-on-raspberry-pi.html

                                        D Offline
                                        D Offline
                                        diggs
                                        wrote on last edited by
                                        #65

                                        @jkandasa Thanks for that.

                                        The latest Java version has go me going as far as server access goes, but I am having issues opening the serial port it seems.

                                        I am trying to run in parallel with Domoticz, but I maybe having an issue trying to access the same port I am guess.

                                        Suggestions on how to get around that?

                                        2015-09-27 15:45:16,568 ERROR [main] [org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl:68] Failed to load serial port,
                                        java.io.IOException: Unable to open the serial port/device. (Error #2)
                                                at com.pi4j.jni.Serial.open(Native Method) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                at com.pi4j.io.serial.impl.SerialImpl.open(SerialImpl.java:151) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                at com.pi4j.io.serial.impl.SerialImpl.open(SerialImpl.java:242) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                at org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl.initialize(SerialPortPi4jImpl.java:61) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                at org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl.<init>(SerialPortPi4jImpl.java:40) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                at org.mycontroller.standalone.StartApp.startServices(StartApp.java:217) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                at org.mycontroller.standalone.StartApp.main(StartApp.java:78) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                        2015-09-27 15:45:16,646 INFO [main] [org.mycontroller.standalone.db.TimerUtils:144] Updated Time:[SunRise:Sun Sep 27 10:36:00 AEST 2015, SunSet:Sun Sep 27 22:41:00 AEST 2015], City:[latitude:11.2333, longit$
                                        [Sun Sep 27 15:45:21 AEST 2015] TJWS httpd 0.0.0.0 - [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,localport=8443]] is listening.
                                        
                                        J 1 Reply Last reply
                                        0
                                        • D diggs

                                          @jkandasa Thanks for that.

                                          The latest Java version has go me going as far as server access goes, but I am having issues opening the serial port it seems.

                                          I am trying to run in parallel with Domoticz, but I maybe having an issue trying to access the same port I am guess.

                                          Suggestions on how to get around that?

                                          2015-09-27 15:45:16,568 ERROR [main] [org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl:68] Failed to load serial port,
                                          java.io.IOException: Unable to open the serial port/device. (Error #2)
                                                  at com.pi4j.jni.Serial.open(Native Method) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                  at com.pi4j.io.serial.impl.SerialImpl.open(SerialImpl.java:151) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                  at com.pi4j.io.serial.impl.SerialImpl.open(SerialImpl.java:242) ~[mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                  at org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl.initialize(SerialPortPi4jImpl.java:61) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                  at org.mycontroller.standalone.gateway.serialport.SerialPortPi4jImpl.<init>(SerialPortPi4jImpl.java:40) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                  at org.mycontroller.standalone.StartApp.startServices(StartApp.java:217) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                                  at org.mycontroller.standalone.StartApp.main(StartApp.java:78) [mycontroller-standalone-0.0.2-alpha4-single.jar:na]
                                          2015-09-27 15:45:16,646 INFO [main] [org.mycontroller.standalone.db.TimerUtils:144] Updated Time:[SunRise:Sun Sep 27 10:36:00 AEST 2015, SunSet:Sun Sep 27 22:41:00 AEST 2015], City:[latitude:11.2333, longit$
                                          [Sun Sep 27 15:45:21 AEST 2015] TJWS httpd 0.0.0.0 - [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,localport=8443]] is listening.
                                          
                                          J Offline
                                          J Offline
                                          jkandasa
                                          Plugin Developer
                                          wrote on last edited by
                                          #66

                                          @diggs said:

                                          @jkandasa Thanks for that.

                                          The latest Java version has go me going as far as server access goes, but I am having issues opening the serial port it seems.

                                          I am trying to run in parallel with Domoticz, but I maybe having an issue trying to access the same port I am guess.

                                          Suggestions on how to get around that?

                                          I guess you cannot share same port for two different applications. We may go with some third party tools to share serial port across applications. But, I do not have any experience on it.

                                          In this case to run MyController server, stop MyController server and Domoticz controller, then start MyController server, it will work.

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


                                          24

                                          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