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
Pavel HrudkaP

Pavel Hrudka

@Pavel Hrudka
About
Posts
9
Topics
2
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • Minimum sketch requirement for OpenHAB discovery to work
    Pavel HrudkaP Pavel Hrudka

    Thank you.
    I did eprom reset and then uploaded another sketch from mysensors examples at arduino.

    Where i start the node everything seems to be fine
    log from gw

    2019-02-09 20:26:15.253 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Presentation Message received
    2019-02-09 20:26:15.272 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [0,1,2,3]
    2019-02-09 20:26:15.289 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 3;255;3;0;11;DimmableLED
    2019-02-09 20:26:15.293 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 3;255;3;0;12;1.1
    2019-02-09 20:26:15.298 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 3;0;2;0;3;
    2019-02-09 20:26:15.304 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 3 found in gateway
    2019-02-09 20:26:15.309 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 3
    2019-02-09 20:26:15.314 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Request received!
    2019-02-09 20:26:15.322 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 3;0;1;0;3;0
    2019-02-09 20:26:15.350 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 3;0;1;0;2;0
    2019-02-09 20:26:15.355 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 3 found in gateway
    2019-02-09 20:26:15.361 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 3
    2019-02-09 20:26:15.378 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 3;0;1;0;3;0
    2019-02-09 20:26:15.383 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 3 found in gateway
    2019-02-09 20:26:15.388 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 3
    

    log from node

    16 MCO:BGN:INIT NODE,CP=RNNNA---,REL=255,VER=2.3.1
    26 TSM:INIT
    27 TSF:WUR:MS=0
    33 TSM:INIT:TSP OK
    35 TSM:FPAR
    37 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    730 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    735 TSF:MSG:FPAR OK,ID=0,D=1
    2046 TSM:FPAR:OK
    2048 TSM:ID
    2049 TSM:ID:REQ
    2052 TSF:MSG:SEND,255-255-0-0,s=1,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    2138 TSF:MSG:READ,0-0-255,s=255,c=3,t=4,pt=0,l=1,sg=0:3
    2143 TSF:SID:OK,ID=3
    2145 TSM:ID:OK
    2147 TSM:UPL
    2173 TSF:MSG:SEND,3-3-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2185 TSF:MSG:READ,0-0-3,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2189 TSF:MSG:PONG RECV,HP=1
    2192 TSM:UPL:OK
    2193 TSM:READY:ID=3,PAR=0,DIS=1
    2198 TSF:MSG:SEND,3-3-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2207 TSF:MSG:READ,0-0-3,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2214 TSF:MSG:SEND,3-3-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.1
    2223 TSF:MSG:SEND,3-3-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2272 TSF:MSG:READ,0-0-3,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    2278 TSF:MSG:SEND,3-3-0-0,s=0,c=0,t=4,pt=0,l=0,sg=0,ft=0,st=OK:
    2286 TSF:MSG:SEND,3-3-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:DimmableLED
    2295 TSF:MSG:SEND,3-3-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1
    2301 MCO:REG:REQ
    2306 TSF:MSG:SEND,3-3-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2312 TSF:MSG:READ,0-0-3,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    2317 MCO:PIM:NODE REG=1
    2319 MCO:BGN:STP
    2322 TSF:MSG:SEND,3-3-0-0,s=0,c=2,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    2328 MCO:BGN:INIT OK,TSP=1
    2371 TSF:MSG:READ,0-0-3,s=0,c=1,t=3,pt=0,l=1,sg=0:0
    Changing level to 0, from 0
    2378 TSF:MSG:SEND,3-3-0-0,s=0,c=1,t=2,pt=1,l=1,sg=0,ft=0,st=OK:0
    2385 TSF:MSG:SEND,3-3-0-0,s=0,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=OK:0
    
    

    But I still cant see it in OpenHab inbox or find it using autodiscovery.

    When I add thing manually everything works as it should.

    Are there some cashes which needs to be cleared?
    Thank you.

    OpenHAB

  • Minimum sketch requirement for OpenHAB discovery to work
    Pavel HrudkaP Pavel Hrudka

    Hi.
    I upgraded my gateway to latest stable version. (great tutorial btw)

    I had some really old nodes which I decommissioned and want to build new ones.

    Since there were some major changes in mysensors since ver 1.4 upon which they were built,
    I was thinking that I would like OpenHAB to autodetect new nodes and would like to know what is the minimum that has to be done in sketch to be autodetected by OpenHAB.

    Right now Iam testing actuator sktech with staticaly set address.
    here

    When I delete this manually added node, I would like to be discovered by OpenHAB.
    Or does it work only with new nodes (never registered to gateway?)

    Or is there any other rule which I need to follow?

    Thank you.
    p.
    p.s.:
    Iam running on RPI2 wheezy latest apt-get update & upgrade,
    GW is on RPI2 connected using SPI and built from latest stable git repo.
    OpenHAB ver 2.4 from apt-get.
    MySensors binding ver 2.4.0.
    Communication is tested and I can see node on gateway (in debug logs)

    OpenHAB

  • DHT22 generates off scale values
    Pavel HrudkaP Pavel Hrudka

    Just to let you know, that best result I got was when I changed the DHT library (sparkfun) for the one with this sketch. with this sketch.

    Thank toy for your time.
    PH

    Hardware spike dht22 pro mini

  • DHT22 generates off scale values
    Pavel HrudkaP Pavel Hrudka

    Connected DHT22 to 5V suply and spikes are still present.
    Ill try to move capacitor closer to radio to decouple it from the rest.

    Cheers.

    Hardware spike dht22 pro mini

  • DHT22 generates off scale values
    Pavel HrudkaP Pavel Hrudka

    Hi thank you for responding.
    Interesting thing for me is that first Arduino does not show the spikes.

    Anyway I tried to connect DHT22 sensor on second one to 5V DC from USB and will monitor it.

    Maybe its in the way that DHT22 likes 3.3V and any fluctuations will lead to instabilities?

    Cheers PH

    Hardware spike dht22 pro mini

  • DHT22 generates off scale values
    Pavel HrudkaP Pavel Hrudka

    Hi.
    Iam building battery node for temperature.
    Before I move to battery related stuff I wanted to have two nodes up and running. In that way I can have reference node which is powered from USB DC 5V and battery powered node.

    This way I could evaluate battery nodes measurements before moving in to production.

    BTW: All nodes are hooked to NRF radio, I did not mentioned it before. That is why there is 4.7 uF capacitor.

    1. I left my second node powered from programmer, but its measurements were total different. So I connected it to the same 5V DC as the first one. Its values are now almost identical.
    2. However, from time to time I see reading offscale values (spikes).

    alt text

    R = 4K7
    V = 4.7uF

    Here are some graphs
    alt text
    and
    alt text

    Iam using
    Arduino 1.6.7
    DHT sensor library by Adafruit v 1.2.3 (also Adafruit DHT unified 1.0.0)
    MySensors library 1.5.4
    OpenHab 1.8.3 with openHab binding.

    Sketch is here: 0_1465243821164_HumiditySensor_101.ino

    Only reference to similar problem I found here.
    Which says that when connected to 5V problem disappeared. But DHT22 should be running fine from 3V?

    Does anyone have idea what could cause these occasional spikes?
    Please help.

    Thank you.
    PH

    UPDATE 2016-06-07 DHT22 connected to 5V suply. Spikes are still there. Ill try to move capacitor closer to radio.

    Hardware spike dht22 pro mini

  • openHAB binding
    Pavel HrudkaP Pavel Hrudka

    Hi thank you.
    I solved my issue, but when I wanted to update my post, the thread was locked.

    Here in this post its said that I should create link to virtual port like this

    sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20
    

    Pointing OpenHab binding to this port solved my problem.

    I did try to add command line parameter to /init.d script for OpenHab but that did not work.

    Cheers.
    Pavel

    OpenHAB

  • Cheap LDO for battery usage
    Pavel HrudkaP Pavel Hrudka

    Hi.
    Last few days I spent my free time with searching for step up converter.
    I need to powet DHT22 from batteries, It needs 3.3V.

    You can either get one on alliexpress or build one.

    Using nowdays ICs which are very efficient and need only four or five components was my choice.
    I found MAXIM-DALLAS MAX856CSA+ or LINEAR TECHNOLOGY LT1300CS8#PBF which are both step up converters with choice of voltage (3.3/5V) using digital input.

    Both are able to handle your currents.

    Nice tutorial can found here

    You can also find some tutorial on instrucatables .

    Also nice post about this is here.

    I know you wanted step down regulators but if you head to pages of Linear technology (http://www.linear.com/) or Maxim (www.maximintegrated.com) you will find what you are looking for.

    Happy digging!

    Hardware

  • openHAB binding
    Pavel HrudkaP Pavel Hrudka

    Hi.
    I just added your binding and I am very happy for it because I have spent quite some time to figure out, how do I integrate mySensors in to Openhab.

    My setup
    RPI2
    did apt-get update && apt-get upgrade
    OpenHab (openHAB runtime has been started (v1.8.1))
    I have NRF24L01+ connected directly to RPI using SPI.
    I am running PiGatewaySerial service and Iam able to see communication when i do

    sudo cat /dev/ttyMySensorsGateway
    

    for example

    7;255;3;0;15;0
    7;255;0;0;17;1.5.4
    7;255;3;0;6;0
    7;255;3;0;11;Humidity
    7;255;3;0;12;1.0
    7;0;0;0;7;
    7;1;0;0;6;
    
    

    My problem is that openHab is unable to access /dev/ttyMySensorsGateway
    I see error in my logs

    2016-03-11 23:30:11.288 [ERROR] [.o.b.m.internal.gateway.Serial] - Unable to find Serial port '/dev/ttyMySensorsGateway'
    
    java.lang.NullPointerException: null
            at org.openhab.binding.mysensors.internal.gateway.Serial.write(Serial.java:82) ~[na:na]
            at org.openhab.binding.mysensors.internal.MySensorsBinding.execute(MySensorsBinding.java:178) ~[na:na]
            at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
            at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
    
    
    

    I found @BastienVH post and modified /etc/init.d/openhab JAVA_ARGS_DEFAULT section and added at the end of defintion

     -Dgnu.io.rxtx.SerialPorts=/dev/ttyMySensorsGateway"
    

    and restarted service

    Sadly, there was no change.
    Please can you help?

    Thank you.

    OpenHAB
  • Login

  • Don't have an account? Register

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