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
miljumeM

miljume

@miljume
About
Posts
37
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @mfalkvidd Good! I have now succeded in getting 2.2.0 Beta up and running with Ethernet GW

    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @Jokgi Mots probably they are not genuine (bought from Aliexpress) but these devices themselves have not caused me any issues before. It started when I upgraded to 2.1.1. Although, after a clean install with 2.2.0 Beta it started working again so I am 100% sure that it's not the modules

    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @gohan Yes, otherwise it fails already during build

    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @gohan I have tried a clean install both with Rapbian Stretch and Raspbian Jessie but the results are the same

    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @Yveaux The FAIL´s all occur with 2.1.1 and the OK is with 2.2.0 Beta. Same radio connections for both so the FAIL´s should not be connected to communication with the radio module. I have also tried 3 radios and 2 different ways of connecting them (Shield and Dupont cables) Even if 2.2.0 starts OK the problem is that it for the Ethernet GW it fails to connect

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0-beta
    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-beta
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: connect: Connection refused
    mysgw: failed to connect
    mysgw: Eth: connect
    mysgw: connect: Connection refused
    mysgw: failed to connect
    mysgw: Eth: connect
    

    And for the Serial GW it gives the following error in Domoticz

    2017-10-10 18:43:07.538 MySensors: Using serial port: /dev/ttyUSB020
    2017-10-10 18:43:07.538 Error: Serial Port closed!... Error: End of file
    2017-10-10 18:43:08.538 MySensors: retrying in 30 seconds...
    

    None of them picks up sensor reports

    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @gohan Now I have tried compiling it with one line command but the GW still don't start with 2.1.1

    ./configure --my-transport=nrf24 --my-gateway=ethernet --my-port=5003
    
    mysgw: Starting gateway...
    mysgw: Protocol version - 2.1.1
    mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=1
    mysgw: TSM:FAIL:PDT
    
    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @Yveaux Thanks for the feedback but I am using a RPI Shield so the connections should be stable

    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @gohan Thanks, will try that as soon as I can

    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @mfalkvidd Sure, below are commands and debug logs for both 2.1.1 and 2.2.0 Beta

    As you can see both of the Gateways fails with 2.1.1. I have seen other people having the exact same problem so that is why I thought it could be something with the libraries

    Commands with 2.2.0 Beta (serial GW)

    ./configure --my-transport=nrf24
    ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
    make
    

    Debug Log

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0-beta
    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-beta
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    

    Domoticz Log

    2017-10-10 18:43:07.538 MySensors: Using serial port: /dev/ttyUSB020
    2017-10-10 18:43:07.538 Error: Serial Port closed!... Error: End of file
    2017-10-10 18:43:08.538 MySensors: retrying in 30 seconds...
    

    Repeats every 30th second,

    Commands with 2.2.0 Beta (Ethernet GW)

    ./configure --my-transport=nrf24
    ./configure --my-gateway=ethernet --my-port=5003
    ./configure --my-gateway=ethernet --my-controller-ip-address=127.0.0.1
    make
    

    Debug Log

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0-beta
    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-beta
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: connect: Connection refused
    mysgw: failed to connect
    mysgw: Eth: connect
    mysgw: connect: Connection refused
    mysgw: failed to connect
    mysgw: Eth: connect
    

    Commands with 2.1.1 (serial GW)

    ./configure --my-transport=nrf24
    ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
    make
    

    Debug Log

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.1.1
    mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=1
    mysgw: TSM:FAIL:PDT
    

    Commands with 2.1.1 (Ethernet GW)

    ./configure --my-transport=nrf24
    ./configure --my-gateway=ethernet --my-port=5003
    ./configure --my-gateway=ethernet --my-controller-ip-address=127.0.0.1
    make
    

    Debug Log

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.1.1
    mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=1
    mysgw: TSM:FAIL:PDT
    
    Bug Reports

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    @gohan Yes, I have tried compiling it as Ethernet GW but that didn't work either

    Output:

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0-beta
    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-beta
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: Listening for connections on 0.0.0.0:5003
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: New connection from 127.0.0.1
    mysgw: Client 0 connected
    mysgw: Client 0: 0;0;3;0;2;
    mysgw: Client 0: 0;0;3;0;2;Get Version
    mysgw: Client 0: 0;0;3;0;18;PING
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=3,t=18,pt=0,l=4,sg=0:PING
    mysgw: !TSF:MSG:LEN,0!=11
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=3,t=18,pt=0,l=4,sg=0:PING
    mysgw: !TSF:MSG:LEN,0!=11
    
    

    Then the GW repeats the last 2 lines forever

    Compiled it with IP 127.0.0.1 for the controller and port 5003

    It does not pick up the sensors and values

    If I compile it with the local IP of the controller I get the following errors

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0-beta
    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-beta
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: connect: Connection refused
    mysgw: failed to connect
    mysgw: Eth: connect
    mysgw: connect: Connection refused
    

    After that the last 2 lines repeats forever

    Bug Reports

  • Can't connect to radio on raspPi with latest stable 2.1.1 build, but works with 2.2.beta but with beta mqtt gateway very unstable...
    miljumeM miljume

    I have submitted a bug report on this

    Troubleshooting

  • NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
    miljumeM miljume

    Hello,

    I would like to submit a bug report for these libraries in the use of NRF24L01+ radio

    I have problems with NRF24L01+ on both 2.1.1 and 2.2.0 Beta

    I have installed a fresh RPI with all new libraries and trying to make a RPI Serial GW

    In 2.1.1 it doesn't start at all but in 2.2.0 it starts but in the log I constantly receive the following in the Domoticz log where I have added the GW

    I2017-10-09 19:25:12.306 MySensors: Gateway Version: 2.2.0-beta
    2017-10-09 19:25:12.306 Error: Serial Port closed!... Error: End of file
    2017-10-09 19:25:13.306 MySensors: retrying in 30 seconds...
    

    After a while I get the following in the console

    mysgw: TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    mysgw: !TSF:MSG:LEN,0!=18 
    

    The above points at something wrong with the radio connection

    I have tried 3 different radios but still no luck so I guess it has something to do with the libraries

    Bug Reports

  • Can't connect to radio on raspPi with latest stable 2.1.1 build, but works with 2.2.beta but with beta mqtt gateway very unstable...
    miljumeM miljume

    I also have problems with NRF24L01+ on both 2.1.1 and 2.2.0 Beta

    I have installed a fresh RPI with all new libraries and trying to make a RPI Serial GW

    In 2.1.1 it doesn't start at all but in 2.2.0 it starts but in the log I constantly receive the following in the Domoticz log where I have added the GW

    2017-10-09 19:25:12.306 MySensors: Gateway Version: 2.2.0-beta
    2017-10-09 19:25:12.306 Error: Serial Port closed!... Error: End of file
    2017-10-09 19:25:13.306 MySensors: retrying in 30 seconds...
    

    After a while I get the following in the console

    mysgw: TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    mysgw: !TSF:MSG:LEN,0!=18 
    

    The above points at something wrong with the radio connection

    I have tried 3 different radios but still no luck

    So I guess it all boils down to that there is some problems with these libraries and the NRF24L01

    Any guesses?

    Troubleshooting

  • 💬 LoRa Ra-01 ATmega328P Node
    miljumeM miljume

    Nice work! Any chance you can post some code samples to interact with MySensors gateway?

    OpenHardware.io

  • 💬 My Slim 2AA Battery Node
    miljumeM miljume

    @sundberg84 Thank you for your feedback! I used the design found here so the sensor is OK. I had also tried to use a pulldown resistor but it showed that I had used too low value. When I use 10k as you suggested it worked like a charm, thank you! What I dont understand is why I should need the pulldown resistor in the first place? Shouldn't it be possible to solve that in the software?

    OpenHardware.io arduino mysensors low power battery enclosure nrf24l01

  • 💬 My Slim 2AA Battery Node
    miljumeM miljume

    Hello, I have built a number of these sensor nodes and really like the generic design!
    However I have run into trouble when trying to build a power meter with a photo sensor.
    I am using the code from MySensors but also tried other sources but my problem is that the digital pin i am using (D3) dont drop enough for the sensor to treat it as digital 0 as it stays at 2.3 V with a 2 AA battery power attached

    When trying the pulse sensor with external power it works perfect so it seems like D3 is floating which also is confirmed when I measure on D3 without the sensor attached. (approx 2.7V)
    I have used this row in my sketch pinMode(DIGITAL_INPUT_SENSOR,INPUT_PULLUP);

    Any clues what I can try?

    OpenHardware.io arduino mysensors low power battery enclosure nrf24l01

  • 💬 MyPulse Sensor
    miljumeM miljume

    The electronics work perfect in the TH version but it seems like the enclosure is too small for it to fit.
    I needed to carve a bit both on the bottom and lid to be able to mount them together

    OpenHardware.io counter pulse sensor

  • 💬 MyPulse Sensor
    miljumeM miljume

    Nice work! Can you please upload the STL file as well?

    OpenHardware.io counter pulse sensor

  • Slim Node Si7021 sensor example
    miljumeM miljume

    @Eawo Domoticz groups sensors after the order you present them in, see: https://forum.mysensors.org/topic/5132/ds18b20-ans-sht31-d-show-up-as-combined-sensors-on-domoticz/15

    I send every 5 minutes and check the value before so that I only send if the value has changed

    I have been running my sensor for nearly 2 months now and battery level has only decreased 1-2%

    Make sure you use 1 MHz bootloader

    My Project
  • Login

  • Don't have an account? Register

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