Wifi gateway is it working?



  • Well have finally made my first sensor (humidity sensor with DHT22)
    With the sensor i see the following on the serial console

    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    T: 23.50
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    H: 28.00
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    H: 28.10
    find parent
    

    So it seems the sensor is working (although the humidity is offset)

    But on my wifi gateway i see none. I haven't connected them to any controller yet
    goes like

    ESP8266 MySensors Gateway
    Connecting to xxx
    .....Connected!
    IP: 172.16.1.93
    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    

    Am i supposed to see some data received from the sensor in the telnet session to gateway?


  • Hardware Contributor

    Hi.

    I think it is because you have no controller yet. When gw.begin is in dynamic mode, it is the controller which give an id to your node. The GW does not give any id.
    So if you have no controller yet, you can play with mysensors by giving a static id to your sensor node.
    Here you have an example:
    http://forum.mysensors.org/topic/2676/mysensors-network-static-or-dinamic/2
    and here explanation for parameters ("Starting Up the Library Section"):
    http://www.mysensors.org/download/sensor_api_15
    If you don't need to receive any msg, you can use "null" instead of "incomingMessage"



  • Change

    gw.begin();
    

    to

    gw.begin(null, 10, false);
    

    where 10 is the Node ID in this example.



  • Well still out of luck.
    Installed mysensors.org controller just for a quick check
    Chose mcc.ethernet.gateway.type=ethernet
    And that's about all the config
    In status gateway i see
    "Connection Status Reconnected Successfully"

    So it seems the gateway is working. This is what i see in logs

    Dec 31, 2015 6:54:13 PM	Sensor Internal	Received	[I_GATEWAY_READY], [NodeId:0, SensorId:0, PayLoad: Gateway startup complete.]
    Dec 31, 2015 6:52:08 PM	Sensor Internal	Received	[I_GATEWAY_READY], [NodeId:0, SensorId:0, PayLoad: Gateway startup complete.]
    Dec 31, 2015 6:50:19 PM	Sensor Internal	Received	[I_GATEWAY_READY], [NodeId:0, SensorId:0, PayLoad: Gateway startup complete.]
    Dec 31, 2015 6:50:03 PM	Sensor Internal	Received	[I_GATEWAY_READY], [NodeId:0, SensorId:0, PayLoad: Gateway startup complete.]
    

    But that's about it... (



  • This is what i get on gateway by sending a REQ from MYSController

    Client 0 connected
    0;0;3;0;14;Gateway startup complete.
    Client 0: 0;0;2;1;1;
    
    Exception (28):
    epc1=0x4000bf80 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
    
    ctx: cont 
    sp: 3ffefe40 end: 3fff00e0 offset: 01a0
    
    >>>stack>>>
    3ffeffe0:  3ffeebf1 3fffc6fc 00000001 3ffeee84  
    3ffefff0:  00000000 00000000 3fff001e 4020102c  
    3fff0000:  40217d96 3fffc6fc 3ffeee8b 40203cd8  
    3fff0010:  3fff0130 00000001 3ffe88d5 40206168  
    3fff0020:  3fff0130 00000009 3ffeebf1 00000000  
    3fff0030:  00000002 00000000 3ffeef6c 40205d85  
    3fff0040:  00000001 3ffeebe8 3fff0130 40205d85  
    3fff0050:  3ffeebe8 3ffeebe8 3fff0130 3fff0130  
    3fff0060:  3ffeebe8 3ffeee84 3ffeee8b 402023ec  
    3fff0070:  3ffeedec 3ffeebe8 00000000 402026b4  
    3fff0080:  3ffe8628 00000000 000003e8 402051e6  
    3fff0090:  00000000 3fff1818 040510ac 3ffef0ac  
    3fff00a0:  00000000 0000000a 00000000 00000000  
    3fff00b0:  40205499 5d0510ac 00000000 3ffef0ac  
    3fff00c0:  3fffdc20 00000000 3ffef0a4 402054c1  
    3fff00d0:  00000000 00000000 3ffef0c0 40100114  
    <<<stack<<<
    
     ets Jan  8 2013,rst cause:2, boot mode:(3,6)
    
    load 0x4010f000, len 1264, room 16 
    tail 0
    chksum 0x42
    csum 0x42
    ~ld
    
    
    ESP8266 MySensors Gateway
    

  • Admin

    Try adding a cap on between GND/VCC to stabilise the power supply.


Log in to reply
 

Suggested Topics

  • 4
  • 5
  • 2
  • 1
  • 274
  • 3

1
Online

11.2k
Users

11.1k
Topics

112.5k
Posts