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
pentti12P

pentti12

@pentti12
Unfollow Follow
About
Posts
47
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Where to find working MySensors Binding for OpenHAB 2 beta 5?
    pentti12P pentti12
    OpenHAB

    When I enable the startup connection check of the MySensors Ethernet Gateway, I get the following listing:
    16:36:08.633 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Connecting to IP bridge [192.168.1.201:5003]
    16:36:08.838 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    16:36:09.657 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    16:36:10.657 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    16:36:11.658 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    16:36:12.658 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    16:36:13.658 [ERROR] [al.protocol.ip.MySensorsIpConnection] - Cannot start reading/writing thread, probably sync message (I_VERSION) not received. Try set skipStartupCheck to true
    16:36:13.664 [ERROR] [al.protocol.ip.MySensorsIpConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:8)
    16:36:13.666 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Disconnecting from IP bridge ...
    16:36:13.668 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Stopping Writer thread
    16:36:13.672 [ERROR] [rs.internal.protocol.MySensorsWriter] - (java.lang.InterruptedException) on writing from serial port, message: class org.openhab.binding.mysensors.internal.protocol.ip.MySensorsIpWriter
    16:36:13.694 [DEBUG] [rs.internal.protocol.MySensorsReader] - Stopping Reader thread
    16:36:13.700 [ERROR] [rs.internal.protocol.MySensorsReader] - (java.lang.InterruptedException: sleep interrupted) on reading from serial port, message: class org.openhab.binding.mysensors.internal.protocol.ip.MySensorIpReader

    But my question still is, when I will get the working MySensors binding for OH2 beta 5?


  • Where to find working MySensors Binding for OpenHAB 2 beta 5?
    pentti12P pentti12
    OpenHAB

    I started from scratch one's again. Now I am running OpenHAB2 beta5. It can control Philips HUE lamps without problems, but not the MySensors nodes. I am using the MySensors Ethernet Gateway and listed from Karaf console:184 | Active | 80 | 2.0.0.201612221259 | MySensors Binding.
    I get following listing:

    17:20:44.890 [ERROR] [rs.internal.protocol.MySensorsReader] - (java.lang.InterruptedException: sleep interrupted) on reading from serial port, message: class org.openhab.binding.mysensors.internal.protocol.ip.MySensorIpReader
    17:20:44.913 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-eth:5c0d1e86' changed from ONLINE to OFFLINE
    17:20:44.912 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Connecting to IP bridge [192.168.1.201:5003]
    17:20:45.096 [WARN ] [al.protocol.ip.MySensorsIpConnection] - Skipping I_VERSION connection test, not recommended...
    17:20:45.119 [INFO ] [al.protocol.ip.MySensorsIpConnection] - Successfully connected to MySensors Bridge.
    17:20:45.121 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-eth:5c0d1e86' changed from OFFLINE to ONLINE
    17:20:55.125 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
    17:21:05.128 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped

    So there are still something wrong in the MySensors binding, because i cannot read actual values from sensor node.


  • MySensors Ethernet Gateway goes to OFFLINE state
    pentti12P pentti12
    OpenHAB

    @jogant I moved to different location here in Espoo, so it will take a couple of days before I can continue with proposed MySensors binding, but it is good to know that there is at least one working solution available.


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    Do you have interest to try OH2 together with MySensors Ethernet Gateway to get working?

    I do not have enough force to push developers to make this happen. At the moment there is some problem on this, because full control is not possible. I think that MySensors Serial Gateway is working with OH2, but I don't like to use it. I like to connect my devices into LAN not cabling via old fashioned way using serial wires.


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    Update:

    I can control locally the IKEA DIODER now. So the hardware is more or less working as expected, but do you have good instructions how I can get OpenHAB2 and MySensors Ethernet Gateway working together. Today I can see MySensors Ethernet Gateway ONLINE state and I can manually add Custom Sensor as a thing, but I cannot control items via Openhab.

    I use the latest OH2 Snapshot ( on Pine64 with Debian Jessie) and latest MySensors GatewayW5100 (library 2.0) on the MySensors Gateway (Arduino UNO based) and I have tried to start/stop/restart OH2 after MySensors Gateway is up and running without success.

    OH2 is capable to control for example Philips HUE lights without problems at the moment.


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    Update:

    I changed Arduino Board from Arduino Mega R3 to Arduino UNO board. I placed my protoshield above UNO-board and now I got following response:

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    RF24:write register, reg=0, value=14
    RF24:write register, reg=3, value=3
    RF24:write register, reg=4, value=95
    RF24:write register, reg=5, value=76
    RF24:write register, reg=6, value=39
    RF24:read register, reg=6, value=39
    RF24:read register, reg=5, value=76
    RF24:write register, reg=16, value=115
    RF24:write register, reg=29, value=6
    RF24:write register, reg=2, value=2
    RF24:write register, reg=1, value=0
    RF24:write register, reg=28, value=3
    RF24:flushRX
    RF24:flushTX
    RF24:write register, reg=7, value=112
    TSM:RADIO:OK
    RF24:write register, reg=2, value=3
    RF24:write register, reg=1, value=1
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:ASSIGNID:OK (ID=9)
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    RF24:read message, len=8
    RF24:write register, reg=7, value=64
    TSP:MSG:READ 0-0-9 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=9)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=8
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    RF24:read message, len=8
    RF24:write register, reg=7, value=64
    TSP:MSG:READ 0-0-9 s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSP:MSG:PONG RECV (hops=1)
    TSP:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    Setup... end.
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=9
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=12
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=8
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0
    RF24:read message, len=9
    RF24:write register, reg=7, value=64
    TSP:MSG:READ 0-0-9 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    Incoming message: 15
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=21
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=11,pt=0,l=14,sg=0,ft=0,st=ok:MySensorDioder
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=12
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=12,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=0,c=0,t=4,pt=0,l=0,sg=0,ft=0,st=ok:
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=1,c=0,t=26,pt=0,l=0,sg=0,ft=0,st=ok:
    Request registration...
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=8
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2
    RF24:read message, len=8
    RF24:write register, reg=7, value=64
    TSP:MSG:READ 0-0-9 s=255,c=3,t=27,pt=1,l=1,sg=0:1
    Node registration=1
    Init complete, id=9, parent=0, distance=1, registration=1
    Wheel position changed.
    Wheel position: 0
    Hue value of the Wheel position: 0
    Send command to lights.
    Bright: 0
    Red: 0
    Green: 0
    Blue: 0
    RGB in HEX: 000000

    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=11
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=0,c=1,t=3,pt=4,l=4,sg=0,ft=0,st=ok:0
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=0
    RF24:write register, reg=10, value=0
    RF24:write register, reg=16, value=0
    RF24:send message to 0, len=13
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=9
    TSP:MSG:SEND 9-9-0-0 s=1,c=1,t=40,pt=0,l=6,sg=0,ft=0,st=ok:000000

    Now sketch seems to work. I will continue by adding IKEA DIODER Leds. More info later.


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    At least I have ordered nRF24L01+ versions. And I use them on other MySensors node and they are working OK.


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    I added 10uF capasitor between VCC and GND pins of the radio module. I also added #define MY_DEBUG_VERBOSE_RF24 line into sketch. I got the following response:

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    RF24:write register, reg=0, value=14
    RF24:write register, reg=3, value=3
    RF24:write register, reg=4, value=95
    RF24:write register, reg=5, value=76
    RF24:write register, reg=6, value=39
    RF24:read register, reg=6, value=255
    RF24:read register, reg=5, value=255
    RF24:Sanity check failed: configuration mismatch! Check wiring, replace module or non-P version
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    RF24:write register, reg=0, value=12
    RF24:power down

    I have changed the radio module to new one without success. So there must be some other reason why this sketch does not work in my hardware. Any ideas?


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    Wiring was OK, but 10uF elko is missing from the 3.3V supply. I have only 440nF capasitor at the moment. This seems to be too small value. I will have 10uF elko on next monday available. So project will take a break.


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    I changed my Radio-module to new one. Does not help. So I have to check my wiring on prototype board.


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    OK, I added the line and now I get:

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT

    So I have to check my radio-module or replace it with new one. I will continue ...


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    I tested this latest sketch in my actual hardware (Arduino Mega + Proto shield with additionla components + Ikea Dioder control board). I cannot get system working, nothing happens when I press UP, DOWN buttons. Led-lights stay ON after power up.
    I also tested to compile your sketch with Arduino IDE and MySensors Library V2.0.0. Compiling went OK, no progress with actual hardware.

    How can I test step by step what is happening during startup?


  • MySensors Ethernet Gateway goes to OFFLINE state
    pentti12P pentti12
    OpenHAB

    I am using Ethernet Gateway in my LAN. Gateway has static IP and it is accessible (ping works). Also port number 5003 is detected correctly.

    I am using standard GatewayW5100.ino sketch.

    How can I force OH2 to use only Ethernet-connection?


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    Hi

    I changed my Arduino IDE 1.6.11 using the MySensors development library v2.1.0-beta. Now the compiling went OK. I will continue with that. It will take few days before I have more info about how things went with actual hardware.


  • MySensors Ethernet Gateway goes to OFFLINE state
    pentti12P pentti12
    OpenHAB

    Can someone explain, why I cannot get real values from MySensors node, which has only temperature and humidity sensors?

    I can get the MySensors Ethernet Gateway into ONLINE STATE. I can get humidity and Temperature Sensors ONLINE STATE, but I cannot get real values from the node.

    What I see from OpenHAB2 log side is:

    09:31:45.356 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    09:31:45.375 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
    09:31:48.356 [WARN ] [otocol.MySensorsNetworkSanityChecker] - I_VERSION message response is not arrived. Remained attempts before disconnection 1
    09:31:55.377 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
    09:32:05.380 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped

    I think that there must be some error in MySensors Binding at the moment, because for example the Philips HUE bridge is working corretly via Openhab2 in the same Pine64 controller.


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    Sorry, but the compiler found a missing library file:

    MyTransportNRF24.h

    MySensors library 2.0 has MyTransportNRF24.cpp only


  • 💬 MySensor Dioder (Ikea)
    pentti12P pentti12
    OpenHardware.io contest2017 dioder mysensors hue rgb led trimmer arduino ikea

    Mortommy: Can you change your sketch so that it support MySensors 2.0 library?


  • MySensors Ethernet Gateway goes to OFFLINE state
    pentti12P pentti12
    OpenHAB

    Now I am confused, why I should bridge Ethernet Gateway, if I have USB-connection to MySensors Gateway only?

    I tried to use Ethernet Gateway connected into my local IP-network without success, so I think that I will end this work to this point. There seems no good instructions available what is missing or wrong on the MySensors openhab binding..


  • MySensors Ethernet Gateway goes to OFFLINE state
    pentti12P pentti12
    OpenHAB

    I added into demo.things following line:

    Bridge mysensors:bridge-ser:gateway [ serialPort="dev/ttyUSB0", sendDelay=200 ] {

    In OH2 MySensor Serial Gateway stays OFFLINE state now. And also the Philips HUE things went OFFLINE state even if they have their own Bridge.

    Looks bad!


  • MySensors Ethernet Gateway goes to OFFLINE state
    pentti12P pentti12
    OpenHAB

    OK, now Gateway is connected via USB into Pine64 and it is shown as /dev/ttyUSB0.

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular