Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. b0rmann
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by b0rmann

    • RE: rs485 on nano

      @Reza

      no. rs485 must have LINEAR BUS topology.

      posted in General Discussion
      b0rmann
      b0rmann
    • RE: 💬 Building a Raspberry Pi Gateway

      every few days mysgw randomly dies 😞

      Jan 19 06:40:01 pi mysgw[17960]: TSF:MSG:READ,5-5-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
      Jan 19 06:40:01 pi mysgw[17960]: Sending message on topic: mysensors/out/1/5/255/3/0/21
      Jan 19 06:40:01 pi mysgw[17960]: TSF:MSG:READ,0-5-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
      Jan 19 06:40:01 pi mysgw[17960]: TSF:MSG:BC
      Jan 19 06:40:01 pi systemd[1]: mysgw.service: main process exited, code=killed, status=11/SEGV
      Jan 19 06:40:01 pi systemd[1]: Unit mysgw.service entered failed state.
      
      
      posted in Announcements
      b0rmann
      b0rmann
    • RE: Instructions how-to use Zabbix as your Controller with MQTT, part 1

      @gohan

      integration to existing monitoring infrastructure

      posted in Controllers
      b0rmann
      b0rmann
    • RE: 💬 Building a Raspberry Pi Gateway

      @Reza

      if you want use rpi /dev/ttyAMA0 for rs485 gateway -

      1. remove string "console=serial0,115200" from /boot/cmdline.txt
      2. add strings "enable_uart=1" and "dtoverlay=pi3-disable-bt" to /boot/config.txt (only on rpi3)
      3. reboot raspi
      posted in Announcements
      b0rmann
      b0rmann
    • RE: Node only works for a few days

      ...same problem 😞

      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: [Solved] routing problem?

      @tekka said:

      @b0rmann The routing tables look messed up - maybe worthwhile sending a clear routing table command (using C_INTERNAL / I_CHILDREN / C) to all repeaters and observe how they are re-established.

      problem solved after clearing routing via C_INTERNAL / I_DEBUG / E

      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: trash

      @tekka

      gateway has 5-10cm. node - on pcb

      p.s. after clearing repeater node (#10) eeprom it looks better

      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: trash

      no. i have not any nerdy neighbourd 🙂

      posted in Troubleshooting
      b0rmann
      b0rmann
    • [Solved] routing problem?

      i have repeater node 2,3,5,and 10. and normal nodes 11 and 18

      getting route table from node 2

      !TSF:MSG:SEND,0-0-10-2,s=255,c=3,t=28,pt=0,l=1,sg=0,ft=0,st=NACK:R
      TSF:MSG:READ,2-2-0,s=255,c=3,t=28,pt=0,l=1,sg=0:R
      TSF:MSG:ACK
      TSF:MSG:READ,2-2-0,s=255,c=3,t=28,pt=6,l=2,sg=0:000A
      TSF:MSG:READ,2-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:000A
      TSF:MSG:READ,2-2-0,s=255,c=3,t=28,pt=6,l=2,sg=0:040A
      TSF:MSG:READ,2-10-0,s=251,c=1,t=0,pt=7,l=5,sg=0:23.6
      TSF:MSG:READ,2-2-0,s=255,c=3,t=28,pt=6,l=2,sg=0:180A
      TSF:MSG:READ,2-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:040A
      TSF:MSG:READ,2-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:000A
      TSF:MSG:READ,2-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:180A
      TSF:MSG:READ,2-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:040A
      

      getting route table from node 3

      TSF:MSG:SEND,0-0-10-3,s=255,c=3,t=28,pt=0,l=1,sg=0,ft=0,st=OK:R
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=0,l=1,sg=0:R
      TSF:MSG:ACK
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=6,l=2,sg=0:000A
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=0,l=1,sg=0:R
      TSF:MSG:ACK
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=6,l=2,sg=0:000A
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=0,l=1,sg=0:R
      TSF:MSG:ACK
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0101
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0C0A
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:000A
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0101
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=6,l=2,sg=0:190A
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0C0A
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0101
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:000A
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0C0A
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:190A
      TSF:MSG:READ,3-3-0,s=255,c=3,t=28,pt=6,l=2,sg=0:190A
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0101
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0C0A
      TSF:MSG:READ,3-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:190A
      

      getting route table from node 5 (from 4 attempt):

      !TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=28,pt=0,l=1,sg=0,ft=0,st=NACK:R
      !TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=28,pt=0,l=1,sg=0,ft=0,st=NACK:R
      !TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=28,pt=0,l=1,sg=0,ft=0,st=NACK:R
      TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=28,pt=0,l=1,sg=0,ft=0,st=OK:R
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=0,l=1,sg=0:R
      TSF:MSG:ACK
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0000
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=0,l=1,sg=0:R
      TSF:MSG:ACK
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0101
      TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:11.9
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0202
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0000
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=0,l=1,sg=0:R
      TSF:MSG:ACK
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:030A
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0101
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0505
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0202
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0A0A
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:030A
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0B0B
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0505
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1010
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0202
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0A0A
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:030A
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0B0B
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0505
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1010
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0202
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0A0A
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1111
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0B0B
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1212
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1111
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1313
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0A0A
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1212
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1414
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1111
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:6464
      TSF:MSG:READ,5-10-0,s=251,c=3,t=28,pt=6,l=2,sg=0:1313
      TSF:MSG:READ,5-5-0,s=255,c=3,t=28,pt=6,l=2,sg=0:6565
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1414
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:6464
      TSF:MSG:READ,5-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:656
      

      getting route table from node 10

      !TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=28,pt=0,l=1,sg=0,ft=0,st=NACK:R
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=0,l=1,sg=0:R
      TSF:MSG:ACK
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0002
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0202
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0303
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:048C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0525
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:061C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0703
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:080C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:090C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0A02
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0B0B
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0C0C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:0E0C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1009
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1113
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1202
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1318
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1505
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1623
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1782
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1811
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:190C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:1C0C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:2202
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:230B
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:3031
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:3203
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:3603
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:4202
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:4303
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:4A03
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:52A2
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:6464
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:8011
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:8104
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:8206
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:830A
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:8619
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:8C18
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:9C19
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:A44E
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:AA5A
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:C11C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:CC0C
      TSF:MSG:READ,10-10-0,s=255,c=3,t=28,pt=6,l=2,sg=0:CE4
      

      it's normal routing?

      posted in Troubleshooting
      b0rmann
      b0rmann
    • trash

      last few days my gateway receive too much messages with non-existing node and sensor id, or with existing node/sensor id and malformed data or data from other nodes/sensors.

      samples (from Raspberry PI MQTT gateway log)

      Oct 21 08:27:20 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=167,c=1,t=0,pt=7,l=5,sg=0:23.5
      Oct 21 08:27:20 pi mysGateway[30406]: Sending message on topic: MyGW1-out/2/167/1/0/0
      Oct 21 08:27:20 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=251,c=1,t=1,pt=7,l=5,sg=0:23.4
      Oct 21 08:27:20 pi mysGateway[30406]: Sending message on topic: MyGW1-out/2/251/1/0/1
      Oct 21 08:27:20 pi mysGateway[30406]: TSF:MSG:READ,130-10-0,s=167,c=1,t=0,pt=7,l=5,sg=0:23.5
      Oct 21 08:27:20 pi mysGateway[30406]: Sending message on topic: MyGW1-out/130/167/1/0/0
      
      

      but I have not node with id 130!

      Oct 21 12:06:02 pi mysGateway[30406]: TSF:MSG:READ,11-11-0,s=4,c=1,t=4,pt=7,l=5,sg=0:1013
      Oct 21 12:06:02 pi mysGateway[30406]: Sending message on topic: MyGW1-out/11/4/1/0/4
      Oct 21 12:06:02 pi mysGateway[30406]: TSF:MSG:READ,11-10-0,s=4,c=1,t=4,pt=7,l=5,sg=0:1013
      Oct 21 12:06:02 pi mysGateway[30406]: Sending message on topic: MyGW1-out/11/4/1/0/4
      Oct 21 12:06:02 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:13.2
      Oct 21 12:06:02 pi mysGateway[30406]: Sending message on topic: MyGW1-out/3/0/1/0/0
      Oct 21 12:06:04 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=3,c=1,t=23,pt=2,l=2,sg=0:98
      Oct 21 12:06:04 pi mysGateway[30406]: Sending message on topic: MyGW1-out/3/3/1/0/23
      Oct 21 12:06:04 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=4,c=1,t=23,pt=2,l=2,sg=0:8
      Oct 21 12:06:04 pi mysGateway[30406]: Sending message on topic: MyGW1-out/3/4/1/0/23
      Oct 21 12:06:04 pi mysGateway[30406]: TSF:MSG:READ,11-11-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12
      Oct 21 12:06:04 pi mysGateway[30406]: Sending message on topic: MyGW1-out/11/0/1/0/0
      Oct 21 12:06:04 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=4,c=1,t=23,pt=2,l=2,sg=0:8
      Oct 21 12:06:04 pi mysGateway[30406]: Sending message on topic: MyGW1-out/3/4/1/0/23
      Oct 21 12:06:04 pi mysGateway[30406]: TSF:MSG:READ,11-10-0,s=4,c=1,t=4,pt=7,l=5,sg=0:13.3
      Oct 21 12:06:04 pi mysGateway[30406]: Sending message on topic: MyGW1-out/11/4/1/0/4
      

      sensor 11/4 is atmosferic pressure bmp180. 16:03:04 gateway receive message from this sensor and value from sensor 3/0 (ds18b20)

      Oct 21 14:37:17 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=251,c=1,t=0,pt=7,l=5,sg=0:23.8
      Oct 21 14:37:17 pi mysGateway[30406]: Sending message on topic: MyGW1-out/2/251/1/0/0
      Oct 21 14:37:17 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=167,c=1,t=0,pt=7,l=5,sg=0:24.0
      Oct 21 14:37:17 pi mysGateway[30406]: Sending message on topic: MyGW1-out/2/167/1/0/0
      Oct 21 14:37:17 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=250,c=1,t=0,pt=7,l=5,sg=0:23.8
      Oct 21 14:37:17 pi mysGateway[30406]: TSF:MSG:ACK REQ
      

      node 2 have not sensor 250. only 251

      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: 💬 Building a Raspberry Pi Gateway

      very interesting data...

      journalctl -u mysgateway --since 13:15 | grep MSG:READ

      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:24.6
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=3,c=1,t=23,pt=2,l=2,sg=0:97
      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-3-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
      Oct 21 13:16:31 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
      Oct 21 13:16:31 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=4,c=1,t=23,pt=2,l=2,sg=0:6
      Oct 21 13:17:17 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
      Oct 21 13:17:17 pi mysGateway[30406]: TSF:MSG:READ,2-2-0,s=167,c=1,t=0,pt=7,l=5,sg=0:24.6
      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:12.7
      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=167,c=1,t=0,pt=7,l=5,sg=0:24.6
      Oct 21 13:17:18 pi mysGateway[30406]: TSF:MSG:READ,2-10-0,s=251,c=1,t=0,pt=7,l=5,sg=0:24.5
      Oct 21 13:17:19 pi mysGateway[30406]: TSF:MSG:READ,10-10-0,s=12,c=1,t=0,pt=7,l=5,sg=0:34
      Oct 21 13:17:19 pi mysGateway[30406]: TSF:MSG:READ,10-10-0,s=14,c=1,t=0,pt=7,l=5,sg=0:24
      

      node 2
      sensor 167 - dht18b20 indoor
      sensor 251 - dht18b20 indoor

      node 3
      sensor 0 - dht18b20 outdoor
      sensor 3 - light (0..100)
      sensor 4 - light (0..100)

      questions:
      why node 2 and node 3 send messages directly and via node 10?

      24.6 - is actual value from 2/251, but gateway receive this value from 3/0 How is it possible?

      Oct 21 13:16:30 pi mysGateway[30406]: TSF:MSG:READ,3-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:24.6
      
      posted in Announcements
      b0rmann
      b0rmann
    • RE: 💬 Building a Raspberry Pi Gateway

      @marceloaqno

      it's my problem. accidentally disconnected power from nrf24 on running gw

      posted in Announcements
      b0rmann
      b0rmann
    • RE: 💬 FOTA (Wireless Programming)

      Is it possible OTA from linux without MYSController?

      posted in Announcements
      b0rmann
      b0rmann
    • RE: 💬 Building a Raspberry Pi Gateway

      @marceloaqno

      i am ready. after compiled and upload example node sketch i have on rs485 to usb convertor (/dev/ttyUSB0) output nice mysensors data:

      01 FF 00 58 07 02 FF FF - FF 02 03 07 FF 03 66 04
      01 FF 00 58 07 02 FF FF - FF 02 03 07 FF 03 66 04
      01 FF 00 58 07 02 FF FF - FF 02 03 07 FF 03 66 04
      01 FF 00 58 07 02 FF FF - FF 02 03 07 FF 03 66 04
      01 FF 00 58 07 02 FF FF - FF 02 03 07 FF 03 66 04
      01 FF 00 58 07 02 FF FF - FF 02 03 07 FF 03 66 04
      01 FF 00 58 07 02 FF FF - FF 02 03 07 FF 03 66 04
      01 FF 00 58 07 02 FF FF - FF 02 03 07 FF 03 66 04
      

      testing playground photo: 0_1476563966730_playground.jpg

      posted in Announcements
      b0rmann
      b0rmann
    • RE: 💬 Building a Raspberry Pi Gateway

      what's about RS485 transport on raspberry pi? especially from wired RS485 mysensors network to MQTT

      posted in Announcements
      b0rmann
      b0rmann
    • RE: MySensors Raspberry port suggestions

      @raptorjr

      gateway running 8 days:

      pi@pi:~$ ls -ld /proc/`pidof mysGateway`
      dr-xr-xr-x 7 root root 0 Aug 30 22:40 /proc/3935
      

      memory consumption (peak) - 22M

      pi@pi:~$ cat /proc/`pidof mysGateway`/status
      Name:   mysGateway
      State:  S (sleeping)
      Tgid:   3935
      Ngid:   0
      Pid:    3935
      PPid:   1
      TracerPid:      0
      Uid:    0       0       0       0
      Gid:    0       0       0       0
      FDSize: 256
      Groups:
      NStgid: 3935
      NSpid:  3935
      NSpgid: 3935
      NSsid:  3935
      VmPeak:    22108 kB
      VmSize:    22108 kB
      VmLck:         0 kB
      VmPin:         0 kB
      VmHWM:      3088 kB
      VmRSS:      3088 kB
      VmData:      236 kB
      VmStk:       136 kB
      VmExe:        80 kB
      VmLib:      4392 kB
      VmPTE:        30 kB
      VmPMD:         0 kB
      VmSwap:        0 kB
      Threads:        1
      SigQ:   0/7339
      SigPnd: 0000000000000000
      ShdPnd: 0000000000000000
      SigBlk: 0000000000000000
      SigIgn: 0000000000001000
      SigCgt: 0000000180004002
      CapInh: 0000000000000000
      CapPrm: 0000003fffffffff
      CapEff: 0000003fffffffff
      CapBnd: 0000003fffffffff
      Seccomp:        0
      Cpus_allowed:   f
      Cpus_allowed_list:      0-3
      Mems_allowed:   1
      Mems_allowed_list:      0
      voluntary_ctxt_switches:        71974874
      nonvoluntary_ctxt_switches:     167964
      
      posted in Development
      b0rmann
      b0rmann
    • RE: MySensors Raspberry port suggestions

      feature request: logging via syslog (journald). or unbuffered debug output to stdio

      posted in Development
      b0rmann
      b0rmann
    • RE: MySensors Raspberry port suggestions

      @marceloaqno

      it was not a problem with the routing, but the powering nrf24 from 3v3 rpi output. It solved a separate power source

      posted in Development
      b0rmann
      b0rmann
    • RE: [Solved] Nodes ignore I_FIND_PARENT_RESPONSE message?

      yes, it's too hard 🙂

      1. yes
      2. gw nave not "sketch", it's raspberry pi port of gw

      ...

      problem solved by using external power source on radio (instead 3v3 raspberry pi output)

      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: [Solved] Nodes ignore I_FIND_PARENT_RESPONSE message?

      log from node #3...

      MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.0.1-beta
      TSM:INIT
      TSM:INIT:TSP OK
      TSM:INIT:STATID,ID=3
      TSF:ASID:OK,ID=3
      TSM:FPAR
      TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:READ,5-5-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      !TSM:FPAR:NO REPLY
      TSM:FPAR
      TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      !TSM:FPAR:NO REPLY
      TSM:FPAR
      TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      !TSM:FPAR:NO REPLY
      TSM:FPAR
      TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      !TSM:FPAR:FAIL
      TSM:FAILURE
      TSM:FAILURE:PDT
      
      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: [Solved] Nodes ignore I_FIND_PARENT_RESPONSE message?

      node #5, with older mysensors library (2.0.0) work correctly

      TSF:MSG:READ,5-5-0,s=3,c=1,t=24,pt=7,l=5,sg=0:678627392
      Sending message on topic: MyGW1-out/5/3/1/0/24
      TSF:MSG:READ,5-5-0,s=255,c=3,t=22,pt=5,l=4,sg=0:32231
      Sending message on topic: MyGW1-out/5/255/3/0/22
      
      
      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: MySensors Raspberry port suggestions
      1. routing problems?
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=1
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=1
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=3
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:BC
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:FPAR REQ,ID=2
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:CHKUPL:OK,FCTRL
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:GWL OK
      Aug 22 09:02:16 pi mysGateway[22785]: TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      
      
      posted in Development
      b0rmann
      b0rmann
    • RE: MySensors Raspberry port suggestions

      @marceloaqno

      1. configuration read/save bug:
      Aug 22 08:52:47 pi systemd[1]: Starting MySensors Gateway daemon...
      Aug 22 08:52:47 pi systemd[1]: Started MySensors Gateway daemon.
      Aug 22 08:52:47 pi mysGateway[22735]: Config file /tmp/MySensorGateway.cfg is not the correct size of 1024.  Please remove the file and a new one will be created.
      Aug 22 08:52:47 pi systemd[1]: mysgateway.service: main process exited, code=exited, status=1/FAILURE
      Aug 22 08:52:47 pi systemd[1]: Unit mysgateway.service entered failed state.
      
      root@pi:~# ls -la /tmp/MySensorGateway.cfg 
      -rw-r--r-- 1 root root 828 Aug 22 08:50 /tmp/MySensorGateway.cfg
      

      gateway starting only after manual removing old (bad sized) config

      p.s. content of config:

      0000000  ff ff 48 05 02 00 ac 43  01 00 48 05 02 00 f0 02  |..H....C..H.....|
      00000010  02 00 00 00 00 00 00 03  02 00 05 00 00 00 00 26  |...............&|
      00000020  01 00 02 00 00 00 01 00  00 02 02 00 00 00 00 00  |................|
      00000030  00 00 00 00 00 00 38 29  01 00 00 00 00 00 00 00  |......8)........|
      00000040  00 00 00 00 00 00 00 00  f9 76 00 00 00 00 94 62  |.........v.....b|
      00000050  c5 76 00 b0 d7 76 b4 fe  cd 7e 01 00 00 00 e0 24  |.v...v...~.....$|
      00000060  01 00 20 d0 a4 76 00 00  f8 76 00 00 00 00 00 00  |.. ..v...v......|
      00000070  00 00 38 29 01 00 00 00  00 00 00 00 00 00 00 00  |..8)............|
      00000080  00 00 00 00 f9 76 00 00  00 00 d7 84 d8 38 e7 1b  |.....v.......8..|
      00000090  d0 30 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |.0..............|
      000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      000000d0  00 00 ff ff ff ff ff ff  ff ff 00 00 00 00 10 0b  |................|
      000000e0  f9 76 00 f0 e4 76 18 42  0d 00 ff ff ff ff 00 00  |.v...v.B........|
      000000f0  00 00 28 9e c4 76 00 00  f8 76 00 00 00 00 b8 f3  |..(..v...v......|
      00000100  f6 76 00 d4 a4 76 01 00  00 00 01 00 00 00 00 00  |.v...v..........|
      00000110  00 00 01 00 00 00 48 4e  c4 76 a4 ae f2 76 1c ff  |......HN.v...v..|
      00000120  f1 76 01 00 00 00 58 09  f9 76 00 00 00 00 d4 02  |.v....X..v......|
      00000130  02 00 c0 c4 a4 76 00 00  00 00 7c 0e 01 00 01 00  |.....v....|.....|
      00000140  00 00 00 00 00 00 b8 f3  f6 76 20 d0 a4 76 01 00  |.........v ..v..|
      00000150  00 00 01 00 00 00 00 00  00 00 00 a0 01 00 28 9e  |..............(.|
      00000160  c4 76 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |.v..............|
      00000170  00 00 00 00 00 00 00 00  00 00 00 00 f9 76 50 5f  |.............vP_|
      00000180  f7 76 00 00 00 00 00 00  00 00 38 29 01 00 00 00  |.v........8)....|
      00000190  00 00 00 00 00 00 64 29  01 00 88 ef 01 00 08 04  |......d)........|
      000001a0  f7 76 b4 fe cd 7e 86 ff  cd 7e 00 00 00 00 a0 ff  |.v...~...~......|
      000001b0  cd 7e 00 00 00 00 21 00  00 00 00 20 d2 7e 10 00  |.~....!.... .~..|
      000001c0  00 00 d6 b0 3f 00 06 00  00 00 00 10 00 00 11 00  |....?...........|
      000001d0  00 00 64 00 00 00 03 00  00 00 34 00 01 00 04 00  |..d.......4.....|
      000001e0  00 00 20 00 00 00 05 00  00 00 08 00 00 00 07 00  |.. .............|
      000001f0  00 00 00 00 f6 76 08 00  00 00 00 00 00 00 09 00  |.....v..........|
      00000200  00 00 38 29 01 00 0b 00  00 00 00 00 00 00 0c 00  |..8)............|
      00000210  00 00 00 00 00 00 0d 00  00 00 00 00 00 00 0e 00  |................|
      00000220  00 00 00 00 00 00 17 00  00 00 00 00 00 00 19 00  |................|
      00000230  00 00 72 ff cd 7e 1a 00  00 00 00 00 00 00 1f 00  |..r..~..........|
      00000240  00 00 e2 ff cd 7e 0f 00  00 00 82 ff cd 7e 00 00  |.....~.......~..|
      00000250  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      00000260  00 00 00 00 49 3b f4 2c  b7 79 15 46 6b 69 82 6b  |....I;.,.y.Fki.k|
      00000270  8d d1 16 fc 76 37 6c 00  2f 75 73 72 2f 6c 6f 63  |....v7l./usr/loc|
      00000280  61 6c 2f 62 69 6e 2f 6d  79 73 47 61 74 65 77 61  |al/bin/mysGatewa|
      00000290  79 00 50 41 54 48 3d 2f  75 73 72 2f 6c 6f 63 61  |y.PATH=/usr/loca|
      000002a0  6c 2f 73 62 69 6e 3a 2f  75 73 72 2f 6c 6f 63 61  |l/sbin:/usr/loca|
      000002b0  6c 2f 62 69 6e 3a 2f 75  73 72 2f 73 62 69 6e 3a  |l/bin:/usr/sbin:|
      000002c0  2f 75 73 72 2f 62 69 6e  3a 2f 73 62 69 6e 3a 2f  |/usr/bin:/sbin:/|
      000002d0  62 69 6e 00 2f 75 73 72  2f 6c 6f 63 61 6c 2f 62  |bin./usr/local/b|
      000002e0  69 6e 2f 6d 79 73 47 61  74 65 77 61 79 00 00 00  |in/mysGateway...|
      000002f0  00 00                                             |..|
      
      posted in Development
      b0rmann
      b0rmann
    • RE: [Solved] Nodes ignore I_FIND_PARENT_RESPONSE message?

      @tekka
      node 1, 2 and 3 have logging off 😞
      btw, problem not in the sketches.

      #define MY_SPECIAL_DEBUG 
      #define MY_BAUD_RATE 9600
      #define MY_RADIO_NRF24
      #define MY_NODE_ID 2
      #define MY_PARENT_NODE_ID 0
      #define MY_RF24_CE_PIN A0
      #define MY_RF24_CS_PIN 10
      #define MY_RF24_CHANNEL 1   
      #define MY_REPEATER_FEATURE
      
      #include <MySensors.h>
      #include <DallasTemperature.h>
      #include <OneWire.h>
      
      #define PIN_ONE_WIRE 4 
      
      #define MAX_ATTACHED_DS18B20 4
      #define TEMPERATURE_PRECISION 11
      
      #define MIN_TIMEOUT 600000ul
      #define MAX_TIMEOUT 900000ul
      
      // DS18B20
      OneWire oneWire(PIN_ONE_WIRE);
      DallasTemperature ds(&oneWire);
      
      unsigned long ds_last_read;
      
      DeviceAddress ds18b20[MAX_ATTACHED_DS18B20];
      int numDS=0;
      
      // Initialize temperature message
      MyMessage msg_t(0, V_TEMP);
      
      void sendDS ();
      
      void before() {
          ds.begin();
          numDS = ds.getDeviceCount();
      }
      
      void setup() {}
      
      void presentation() {
          wait(100);
          sendSketchInfo("Podlaha", "3.0");
      
          for ( int i = 0; i < MAX_ATTACHED_DS18B20; i++ ) {
              if ( ds.getAddress(ds18b20[i], i)) {
                  ds.setResolution(ds18b20[i], TEMPERATURE_PRECISION);
                  wait(100);
                  present(ds18b20[i][7], S_TEMP, "DS18B20");
              }
          }
      }
      void loop() {
          unsigned long time = millis();
      
          if ( ds_last_read && time - ds_last_read < MIN_TIMEOUT ) return;
      
          ds_last_read = time;
      
          ds.requestTemperatures();
      
          for ( int i=0; i < numDS && i < MAX_ATTACHED_DS18B20; i++ ) {
      
              if ( ! ds18b20[i] ) continue;
      
              float temperature = ds.getTempC(ds18b20[i]);
      
              if ( temperature < -50 ) continue;
              if ( temperature > 120 ) continue;
              if ( temperature == 85 ) continue;
      
              send( msg_t.setSensor(ds18b20[i][7]).set(temperature, 1), false );
          }
      }
      
      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: [Solved] Nodes ignore I_FIND_PARENT_RESPONSE message?

      nopde #1 - only repeater...

      #define MY_SPECIAL_DEBUG 
      #define MY_BAUD_RATE 9600
      #define MY_RADIO_NRF24
      #define MY_NODE_ID 1
      #define MY_PARENT_NODE_ID 0
      #define MY_RF24_CE_PIN 9
      #define MY_RF24_CS_PIN 10
      #define MY_RF24_CHANNEL 1   
      #define MY_REPEATER_FEATURE
      
      #include <MySensors.h>
      
      void setup() {}
      
      void presentation() {
        sendSketchInfo("Repeater", "1.1");
      }
      
      void loop() {}
      
      posted in Troubleshooting
      b0rmann
      b0rmann
    • [Solved] Nodes ignore I_FIND_PARENT_RESPONSE message?

      2.0.1-beta

      mqtt client gateway (RPi) log:

      TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=3
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=2
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=1
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=3
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=2
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=2
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=3
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=2
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      TSF:MSG:BC
      TSF:MSG:FPAR REQ,ID=2
      TSF:CHKUPL:OK,FCTRL
      TSF:MSG:GWL OK
      TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      
      
      posted in Troubleshooting
      b0rmann
      b0rmann
    • RE: MySensors Raspberry port suggestions

      @marceloaqno

      very nice fork. but... i can't compile it:

      git clone https://github.com/marceloaqno/MySensors.git
      cd MySensors
      ./configure --my-gateway=mqtt --my-rf24-channel=1 --my-rf24-pa-level=RF24_PA_MAX --my-controller-ip-address=127,0,0,1 --my-mqtt-client-id=MyGW2 --my-mqtt-publish-topic-prefix="MyGW2out" --my-mqtt-subscribe-topic-prefix="MyGW2in"
      make
      
      g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/EthernetClient.o drivers/Linux/EthernetClient.cpp
      g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/compatibility.o drivers/Linux/compatibility.cpp
      g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/IPAddress.o drivers/Linux/IPAddress.cpp
      g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o drivers/Linux/EthernetServer.o drivers/Linux/EthernetServer.cpp
      g++ -DMY_RADIO_NRF24 -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -DLINUX -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=MyGW2in -DMY_MQTT_PUBLISH_TOPIC_PREFIX=MyGW2out -DMY_MQTT_CLIENT_ID=MyGW2 -DMY_CONTROLLER_IP_ADDRESS=127,0,0,1 -DMY_RF24_PA_LEVEL=RF24_PA_MAX -DMY_RF24_CHANNEL=1  -I. -I./core -I./drivers/Linux -I/usr/local/include/RF24 -MMD -c -o examples_linux/mysGateway.o examples_linux/mysGateway.cpp
      ./core/MyProtocolMySensors.cpp: In function ‘bool protocolMQTTParse(MyMessage&, char*, uint8_t*, unsigned int)’:
      <command-line>:0:32: error: ‘MyGW2in’ was not declared in this scope
      ./core/MyProtocolMySensors.cpp:125:21: note: in expansion of macro ‘MY_MQTT_SUBSCRIBE_TOPIC_PREFIX’
           if (strcmp(str, MY_MQTT_SUBSCRIBE_TOPIC_PREFIX) != 0) {
                           ^
      In file included from ./MySensors.h:225:0,
                       from examples_linux/mysGateway.cpp:44:
      ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::connect(const char*, const char*, const char*, const char*, uint8_t, boolean, const char*)’:
      ./drivers/PubSubClient/PubSubClient.cpp:176:55: error: ‘millis’ was not declared in this scope
                   lastInActivity = lastOutActivity = millis();
                                                             ^
      ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::readByte(uint8_t*)’:
      ./drivers/PubSubClient/PubSubClient.cpp:210:37: error: ‘millis’ was not declared in this scope
          uint32_t previousMillis = millis();
                                           ^
      ./drivers/PubSubClient/PubSubClient.cpp: In member function ‘boolean PubSubClient::loop()’:
      ./drivers/PubSubClient/PubSubClient.cpp:284:34: error: ‘millis’ was not declared in this scope
               unsigned long t = millis();
                                        ^
      
      

      and more, more similar errors. with --my-gateway=ethernet compiled fine

      posted in Development
      b0rmann
      b0rmann
    • RE: 💬 MySensors Stable Node

      http://www.aliexpress.com/item/Free-shipping-5pcs-lot-NRF24L01-NRF24L01-24L01-QFN20-RF-chip-chip-handy-original-authentic/32595311069.html?spm=2114.30010308.3.10.wFCRgF&ws_ab_test=searchweb201556_1,searchweb201644_2_505_506_503_504_502_10001_10002_10017_10010_10005_10011_10006_10003_10004_10009_10008,searchweb201560_2,searchweb1451318400_-1,searchweb1451318411_6450&btsid=1ea90695-081d-42a0-a8a4-6d78f4b43406

      posted in OpenHardware.io
      b0rmann
      b0rmann
    • RE: Fake DS18B20 sensors.

      DS18S20?

      posted in General Discussion
      b0rmann
      b0rmann
    • RE: Error Compiling

      @Sparkman i do not use IDE...

      posted in Bug Reports
      b0rmann
      b0rmann
    • unusable

      hi! it's really broken. my sketch (do nothing, only test):

      #include <MySensor.h>
      
      MyTransportNRF24 transport();
      MyHwATMega328 hw;
      MySensor gw(transport, hw);
      
      void setup() {}
      void loop() {}
      

      and compiling:

      mkdir -p build-pro5v328
      /usr/bin/avr-g++ -x c++ -include Arduino.h -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=105  -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino//cores/arduino -I/usr/share/arduino/hardware/arduino//variants/standard    -I/usr/share/arduino/libraries/SPI    -I/home/andrej/Projects/Sensors/Energy/libraries/DallasTemperature   -I/home/andrej/Projects/Sensors/Energy/libraries/MySensors -I/home/andrej/Projects/Sensors/Energy/libraries/MySensors/utility   -I/home/andrej/Projects/Sensors/Energy/libraries/OneWire -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions  Energy.ino -o build-pro5v328/Energy.ino.o
      In file included from Energy.ino:2:0:
      /home/andrej/Projects/Sensors/Energy/libraries/MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
        MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                                                                            ^
      Energy.ino:5:1: error: ‘MyHwATMega328’ does not name a type
       MyHwATMega328 hw;
       ^
      Energy.ino:6:24: error: ‘hw’ was not declared in this scope
       MySensor gw(transport, hw);
                              ^
      
      posted in Bug Reports
      b0rmann
      b0rmann
    • RE: Best IDE to use for MySensors projects

      @axillent the best ide is vim + Arduino-Makefile

      posted in Development
      b0rmann
      b0rmann
    • Error Compiling

      all is broken in last version 🙂


      In file included from EnergyMeterPulseSensor.ino:38:0:
      /home/andrej/sketchbook/libraries/MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
      MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
      ^
      EnergyMeterPulseSensor.ino:47:10: error: call to ‘MySensor::MySensor(MyTransport&, MyHw&)’ uses the default argument for parameter 2, which is not yet defined


      In file included from DallasTemperatureSensor.ino:27:0:
      /home/andrej/sketchbook/libraries/MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
      MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
      ^
      DallasTemperatureSensor.ino:39:10: error: call to ‘MySensor::MySensor(MyTransport&, MyHw&)’ uses the default argument for parameter 2, which is not yet defined

      posted in Bug Reports
      b0rmann
      b0rmann
    • RE: External connector options?

      i use rj11 jack for sensors

      posted in General Discussion
      b0rmann
      b0rmann
    • RE: MQTT Client Gateway

      @rtenklooster
      ws5100.
      share... a bit of later.
      I had to fix some little bugs.

      posted in My Project
      b0rmann
      b0rmann
    • MQTT Client Gateway

      1.jpg
      10494771_10203968459785002_2398046145360484105_n.jpg

      posted in My Project
      b0rmann
      b0rmann
    • RE: Openhab MQTT Example

      @Marcus mqtt client gateway is not serial way 🙂

      i have mqtt-client-gateway + raspi (mosquitto + openhab + nodered)

      posted in OpenHAB
      b0rmann
      b0rmann
    • RE: Openhab MQTT Example

      MQTT-Ethernet-Gateway is mqtt brocker, not client 😞

      to connect mosquitto try use MQTTClientGateway http://forum.mysensors.org/topic/524/mqtt-client-gateway

      posted in OpenHAB
      b0rmann
      b0rmann
    • RE: MQTT Client gateway

      DEBUG:

      0;0;3;0;9;read: 16-16-0 s=61,c=1,t=0,pt=7,l=5:38.0
      publish: MyMQTT/16/61/V_TEMP 38.0
      0;0;3;0;9;send: 0-0-16-16 s=61,c=1,t=0,pt=0,l=5,st=ok:38.00 
      0;0;3;0;9;send: 0-0-18-18 s=1,c=1,t=2,pt=0,l=5,st=ok:18.00
      

      mqtt payload for node 18 contain only string '1' (it's relay), '8.00'- trash from previous message 😞
      yes, '18.00' may by interprait as boolean TRUE, but '01.00' (next par of log is not FALSE 😞

      0;0;3;0;9;read: 16-16-0 s=91,c=1,t=0,pt=7,l=5:61.0
      publish: MyMQTT/16/91/V_TEMP 61.0
      0;0;3;0;9;send: 0-0-16-16 s=91,c=1,t=0,pt=0,l=5,st=ok:61.00
      0;0;3;0;9;send: 0-0-18-18 s=4,c=1,t=2,pt=0,l=5,st=ok:01.00
      

      dirty hack - i use '000000000000' instead '0' to rewrite old data

      posted in Development
      b0rmann
      b0rmann
    • RE: Port of MySensors Library 1.4 to Raspberry

      @aliasdoc yes, i can 🙂

      ~/Raspberry $ make
      g++ -c -o MyGateway.o MyGateway.cpp -Wall -Ofast -mfpu=vfp -lpthread -g -D__Raspberry_Pi -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -Ilibrf24-bcm/
      g++ -c -o MySensor.o MySensor.cpp -Wall -Ofast -mfpu=vfp -lpthread -g -D__Raspberry_Pi -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -Ilibrf24-bcm/
      g++ -c -o MyMessage.o MyMessage.cpp -Wall -Ofast -mfpu=vfp -lpthread -g -D__Raspberry_Pi -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -Ilibrf24-bcm/
      g++ -c -o PiGateway.o PiGateway.cpp -Wall -Ofast -mfpu=vfp -lpthread -g -D__Raspberry_Pi -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -Ilibrf24-bcm/
      PiGateway.cpp: In function ‘void setup()’:
      PiGateway.cpp:26:88: warning: large integer implicitly truncated to unsigned type [-Woverflow]
      g++ -o PiGateway MyGateway.o MySensor.o MyMessage.o PiGateway.o -Wall -Ofast -mfpu=vfp -lpthread -g -D__Raspberry_Pi -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -Ilibrf24-bcm/ -lrf24-bcm
      MySensor.o: In function MySensor::setupRadio(rf24_pa_dbm_e, unsigned char, rf24_datarate_e)': /home/pi/Raspberry/MySensor.cpp:121: undefined reference to RF24::setPALevel(unsigned char)'
      MySensor.o: In function MySensor::sendWrite(unsigned char, MyMessage&, bool)': /home/pi/Raspberry/MySensor.cpp:231: undefined reference to RF24::write(void const*, unsigned char, bool)'
      /home/pi/Raspberry/MySensor.cpp:231: undefined reference to RF24::write(void const*, unsigned char, bool)' /home/pi/Raspberry/MySensor.cpp:231: undefined reference to RF24::write(void const*, unsigned char, bool)'
      /home/pi/Raspberry/MySensor.cpp:231: undefined reference to RF24::write(void const*, unsigned char, bool)' /home/pi/Raspberry/MySensor.cpp:231: undefined reference to RF24::write(void const*, unsigned char, bool)'
      MySensor.o:/home/pi/Raspberry/MySensor.cpp:231: more undefined references to `RF24::write(void const*, unsigned char, bool)' follow
      collect2: ld returned 1 exit status
      Makefile:18: recipe for target 'PiGateway' failed
      make: *** [PiGateway] Error 1

      posted in Development
      b0rmann
      b0rmann
    • RE: MQTT Client gateway

      PubSubClient library cannot currently be used with hardware based on the ENC28J60 😞

      posted in Development
      b0rmann
      b0rmann
    • RE: Port of MySensors Library 1.4 to Raspberry

      not functional

      MySensor.cpp:232: undefined reference to `RF24::write(void const*, unsigned char, bool)'

      posted in Development
      b0rmann
      b0rmann
    • RE: Wired Repeater/Relay

      @Avenger I have the same problem - 1m strong stone wall is a big problem...

      posted in General Discussion
      b0rmann
      b0rmann