[RESOLVED] I'm new to this. Cannot do a simple gateway.



  • I'm new with all this. I have basic programmer notion but that's about it.

    I'm trying to get a setup with multiple temperature sensor for the pool and house. I found out about Mysensors on some forums and it seems great. But I can't seem to make the gateway work.

    That's what I have at the moment :
    I tried hooking a ESP8266 wih a NRF24L01+ radio. First I connected the radio to the ESP8266, but after a few hours of not working, I did solder everything to make sure the connection were ok (without any success)

    Problem I am having is that it doesn't seem to be able to initiate transport.

    Here is me serial log :

    0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGE--,VER=2.1.1
    0;255;3;0;9;TSF:LRT:OK
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSF:WUR:MS=0
    scandone
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    aid 1
    cnt 
    
    connected with VIDEOTRONXXXX, channel 11
    dhcp client start...
    0;255;3;0;9;!TSM:INIT:TSP FAIL
    0;255;3;0;9;TSM:FAIL:CNT=1
    0;255;3;0;9;TSM:FAIL:PDT
    ip:192.168.0.120,mask:255.255.255.0,gw:192.168.0.1
    pm open,type:2 0
    0;255;3;0;9;TSM:FAIL:RE-INIT
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;!TSM:INIT:TSP FAIL
    0;255;3;0;9;TSM:FAIL:CNT=2
    0;255;3;0;9;TSM:FAIL:PDT
    

    I also tried doing a serial gateway with an arduino nano, but seems the errors are the same.

    After reading a couple of forum thread, the most commun answer to this is either "bad wiring" or "bad radio". I tried multiple radio (bought a bunch all together) and the all have the same output. And double checked the wiring (redid them more than 5 times)

    I installed HomeAssistant, but did no configuration since the gateway doesn't seem to be working.
    Do I need to have a sensor node and a working controller to test the gateway ?

    And I read that there are "cheap" radio clone out there and it seems that's what I got. Could this be the problem ? This is what I got : https://www.amazon.ca/gp/product/B01C3YNGI8/ref=oh_aui_detailpage_o00_s00?ie=UTF8&th=1 Notice that the ground doesn't have the white square around it.

    I'm using the latest Mysensor library from github and the latest Arduino IDE.

    And sorry for my english, not my first langage.

    Thank you


  • Mod

    Try adding a capacitor as shown in the instructions but usually it should start without it but will give you transmission problems. Also triple check you got the correct pins



  • I was already using a capacitor. a 4.7uF 50V one.

    I double check the connection and everything was correct.
    I think the capacitor was not completely making connection because now, I pushed it all the way in the female connector and it seems to be working.
    Or it's the 2.2.0-beta mysensors library that changed something.

    The first time, it worked great on the first try.

    I powered it off and tried a second time. This time, it seemed to have initialized transport on the second try.

    connected with VIDEOTRON1198, channel 11
    dhcp client start...
    0;255;3;0;9;!TSM:INIT:TSP FAIL
    0;255;3;0;9;TSM:FAIL:CNT=1
    0;255;3;0;9;TSM:FAIL:PDT
    ip:192.168.0.120,mask:255.255.255.0,gw:192.168.0.1
    pm open,type:2 0
    0;255;3;0;9;TSM:FAIL:RE-INIT
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:INIT:TSP OK
    0;255;3;0;9;TSM:INIT:GW MODE
    0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;MCO:REG:NOT NEEDED
    IP: 192.168.0.120
    0;255;3;0;9;MCO:BGN:STP
    sl
    f r0, 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    scandone
    usl
    

    Do I have to check this or is it normal ?

    This is with my ESP8266.
    I'll try with my arduino nano now to see if it's working



  • I can confirm that my arduino nano is working now.

    So what seems to be correcting my issu is using the Mysensors 2.2.0-beta librairies.

    Last question :
    Do I need a controller to test a complete setup with a gateway and 2 or 3 sensors ?


  • Mod

    If you want to check only communication you can use myscontroller, but using a proper controller will give you a more complete test.


Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 6
  • 1
  • 5

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts