Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Raspberry MQTT config give segment fault start gateway

    4
    0 Votes
    4 Posts
    1k Views
    M
    Ok, Thanks. Will do!
  • Need settling time for sct-013-030 (Used w/Nodemcu)

    nodemcu sct-013
    2
    0 Votes
    2 Posts
    522 Views
    YveauxY
    @goddur Hi, and welcome to the forum! So what exactly is your question/problem? If it is the time until you get a stable reading after reset of the Arduino, you could just count the time until you get a stable reading. Then include this delay after startup before reporting the first value and you're done. Something like: static int startupCycles = 10; // 10 seconds initial startup delay void loop() { delay(1000); Irms = emon1.calcIrms(1480); // Calculate Irms only if (startupCycles) { --startupCycles; return; } if (Irms < .2) { // your original code... } }
  • Raspberry gateway - radio problems

    4
    5
    0 Votes
    4 Posts
    566 Views
    mfalkviddM
    Sometimes a fresh pair of eyes is exactly what's needed :)
  • [solved] raspberry gateway - installation problems (and more)

    7
    0 Votes
    7 Posts
    1k Views
    narfN
    alright! now with new programmer a was able to upload the "standard" sketch to my sensebender micro and the gateway even gets "something": Nov 14 20:11:52 DEBUG TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0: Nov 14 20:11:52 DEBUG TSF:MSG:BC Nov 14 20:11:52 DEBUG TSF:MSG:FPAR REQ,ID=3 Nov 14 20:11:52 DEBUG TSF:PNG:SEND,TO=0 Nov 14 20:11:52 DEBUG TSF:CKU:OK Nov 14 20:11:52 DEBUG TSF:MSG:GWL OK Nov 14 20:11:52 DEBUG TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=O K:0 Nov 14 20:11:54 DEBUG TSF:MSG:READ,3-3-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 Nov 14 20:11:54 DEBUG TSF:MSG:PINGED,ID=3,HP=1 Nov 14 20:11:54 DEBUG TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st= OK:1 Nov 14 20:11:54 DEBUG TSF:MSG:READ,3-3-0,s=255,c=4,t=0,pt=6,l=10,sg=0:FFFFFFFFFF FFFFFF0300 Nov 14 20:11:54 DEBUG GWT:TPS:TOPIC=mysensors-out/3/255/4/0/0,MSG SENT Nov 14 20:11:54 DEBUG TSF:MSG:READ,3-3-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 Nov 14 20:11:54 DEBUG TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st= OK:0100 Nov 14 20:11:54 DEBUG TSF:MSG:READ,3-3-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1 Nov 14 20:11:54 DEBUG GWT:TPS:TOPIC=mysensors-out/3/255/0/0/17,MSG SENT Nov 14 20:11:54 DEBUG TSF:MSG:READ,3-3-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0 Nov 14 20:11:54 DEBUG GWT:TPS:TOPIC=mysensors-out/3/255/3/0/6,MSG SENT Nov 14 20:11:56 DEBUG TSF:MSG:READ,3-3-0,s=255,c=3,t=11,pt=0,l=17,sg=0:Sensebend er Micro Nov 14 20:11:56 DEBUG GWT:TPS:TOPIC=mysensors-out/3/255/3/0/11,MSG SENT Nov 14 20:11:56 DEBUG TSF:MSG:READ,3-3-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.4 Nov 14 20:11:56 DEBUG GWT:TPS:TOPIC=mysensors-out/3/255/3/0/12,MSG SENT Nov 14 20:11:56 DEBUG TSF:MSG:READ,3-3-0,s=1,c=0,t=6,pt=0,l=0,sg=0: Nov 14 20:11:56 DEBUG GWT:TPS:TOPIC=mysensors-out/3/1/0/0/6,MSG SENT Nov 14 20:11:56 DEBUG TSF:MSG:READ,3-3-0,s=2,c=0,t=7,pt=0,l=0,sg=0: Nov 14 20:11:56 DEBUG GWT:TPS:TOPIC=mysensors-out/3/2/0/0/7,MSG SENT Nov 14 20:11:56 DEBUG TSF:MSG:READ,3-3-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2 Nov 14 20:11:56 DEBUG TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st= OK:1 Nov 14 20:11:56 DEBUG TSF:MSG:READ,3-3-0,s=1,c=1,t=0,pt=7,l=5,sg=0:24.7 Nov 14 20:11:56 DEBUG GWT:TPS:TOPIC=mysensors-out/3/1/1/0/0,MSG SENT Nov 14 20:11:56 DEBUG TSF:MSG:READ,3-3-0,s=2,c=1,t=1,pt=2,l=2,sg=0:55 Nov 14 20:11:56 DEBUG GWT:TPS:TOPIC=mysensors-out/3/2/1/0/1,MSG SENT Nov 14 20:11:56 DEBUG TSF:MSG:READ,3-3-0,s=255,c=3,t=0,pt=1,l=1,sg=0:88 Nov 14 20:11:56 DEBUG GWT:TPS:TOPIC=mysensors-out/3/255/3/0/0,MSG SENT is this right? and if so, how can i translate all this stuff? :eye: ohhhhhhh. this makes sense: [20:17:18] openhabian@openHABianPi:~$ mosquitto_sub -t mysensors-out/# 22.3 61 cool cool. now i just have to figure out how to define my items on the openhab part! cheers
  • Ethernet W5100 gateway IP problem

    9
    0 Votes
    9 Posts
    2k Views
    K
    Dear Wayne, I copy my documentation for the Arduino Mega which I put in the header of my sketch (which means I did not think through all details again for this post, just wanted to help quickly) at the end of this post. It will help if you use an Arduino Mega. It might also help if you use an Arduino Nano. During my experiments I also made the following note to myself (did not validate all details though): " // final conclusion: // ============== // the Arduino Nano was not stable. Probably because it was low on SRAM. // However, for the Arduino Nano test I did not use the SPI patched RFM69 Library -> could improve stability // and I did not try to use an ethernet library with a smaller footprint -> could improve stability, too" Currently I use these libraries: #include <RFM69.h> #include <SPI.h> #include <Ethernet.h> I hope this points to the right direction. I currently use the Computourist RFM69 MQTT gateway sketch (get it here: https://github.com/computourist/RFM69-MQTT-client). But it is on my agenda to change all my code to MySensors. I just did not have time to do it. Anyway, long story short, if you send me a PM with an email address I could send you my sketch if you are interested. The code is not well structured currently, however, therefore I do not what to share it publicly. Sincerely Karl-Heinz KH: quick and dirty documentation (end of 2017): /* Connect Arduino Mega: * EthernetShield Labels = Mega Labels * 5V = 5V * GND = GND * IRQ = D2 = 2 * RST = = 4 * SCL = D13 = 52 * CS = 8 * Miso = D12 = 50 * Mosi = D11 = 51 */ /*This sketch only works under the following conditions:*/ /*============================================*/ /*1) An Arduino Mega must be used due to memory problems of Uno/Nano (SRAM) and it has to be an EthernetShield with W5100 chip, but it should be the newer version of the EthernetShield, because older versions have the SPI interface permanently blocked by the EthernetShield. Only after a hardware modification at the SENS pin of the W5100 chip the blocking is no longer the case. 2) the RFM69 Library of LowPowerLabs does not yet (end of 2017) contain all necessary adaptations, so that SPI conflicts between the Ethernet card and the RFM69 module can be solved. There is a patched version for this purpose: https://github.com/rrobinet/RFM69_Libary 3) The original Ethernet Library of the Arduino IDE does not consider the Arduino IDE's own current SPI library and must also be patched. Copy from the Internet: "[Changes to the Ethernet Library](http://harizanov.com/2012/04/rfm12b-and-arduino-ethernet-with-wiznet5100-chip/) I edited the Arduino Ethernet library file W5100.h so that it doesn’t allow RFM12b to interrupt while the SPI bus is busy handling Wiznet5100. I added a cli(); and sei(); as follows in the W5100 library." für Arduino Mega... [Reference](https://lowpowerlab.com/forum/moteino/moteino-w5100-ethernet-spi-support-spi_has_transaction/60/): In my case using an ATMEGA2560 changing the W5100.h library from: #if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) inline static void initSS() { DDRB |= _BV(4); }; inline static void setSS() { PORTB &= ~_BV(4); }; inline static void resetSS() { PORTB |= _BV(4); }; To #if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) inline static void initSS() { DDRB |= _BV(4); }; inline static void setSS() { cli ();PORTB &= ~_BV(4); }; inline static void resetSS() { PORTB |= _BV(4); sei();};"*/```
  • 0 Votes
    3 Posts
    690 Views
    N
    @electrik said in NodeManager: Motion/Door (Interrupt) Sensor stopping DHT22 from reading value after a while: How did you wire the dht22? I had problems with it when I didn't use a pull up resistor in the past The breakout board I'm using supposedly has one integrated, will verify later this week as I'm out of town. The stage thing is if I disable the interrupt sensors (Prevent them from triggering) then the DHT does not stop reporting in.
  • Servo control actuator

    9
    0 Votes
    9 Posts
    3k Views
    Steve HadleyS
    did you ever find a fix for this. I've just built a servo my sensors and have the exact same issue
  • [SOLVED] huge delay with multiple gateways

    10
    0 Votes
    10 Posts
    1k Views
    parachutesjP
    @yveaux I think this was the issue. I just found that #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xAD will specify the MAC. After adding it, no more issues. Changed back to same topics on both gateways, seems this is no problem. Even the gateways received different IPs via DHCP, they had the same MAC. Haven't seen an issue in any logs. I am not sure about long term, but short it works now. Let me see if it is a permanent fix. Still pretty strange that I receive different IPs from my router for the same MAC. Sometimes these are the easy fixes... Thanks for your help!
  • TSM:READY:UPL FAIL,STATP

    2
    0 Votes
    2 Posts
    550 Views
    mfalkviddM
    Hi @huex, welcome to the forum! Insufficient/unstable power supply is the most common reason for NACK. What capacitor(s) are you using? What power supply are you using? If you haven't already, see https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/ for the most common problems and how to troubleshoot them. You can also use the log parser to help interpret the logs.
  • Gateway stops sending data to controller...

    7
    0 Votes
    7 Posts
    1k Views
    skywatchS
    @skywatch Turns out that the Rpi 3B has a 'interesting' serial implementation. It seems that this was the issue with 99% of the problems I was experiencing.
  • Radio does not send properly when battery-powered

    4
    0 Votes
    4 Posts
    745 Views
    electrikE
    Is your voltage regulator powerful enough? Could you try a bigger capacitor?
  • Messages drop, messed topology?

    4
    0 Votes
    4 Posts
    609 Views
    Sergio RiusS
    If anyone is interested, that was my channel scan when I decided to migrate to 108 Starting Poor Man's Wireless 2.4GHz Scanner ... Channel Layout |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | +RRWRRWRWRWRWWWWWW+. .... | 27 | WWWWRWWWWRWRWWRWWW .. ......... | 26 | .RWWWRWWWWWWRWRWWRW* . ....... | 26 | +RRWWWRWWWWWWRWWWW*. ....... | 27 | ...RWRWRaRRWRWRRWRRRR.. ... | 29 | aWWRWRWRRWRWRWWWWR- ..... | 26 | =WWWWWWRWWWWRWRWRWR ...... | 26 | RWRWRWWWWRWRWWWWRW. . ...... | 27 | *aRRRWRWRWRRWRWRWW-. .... | 28 |...RWWRWRWRRWRWRWRRWRW.. . ..... | 29 | WWRWRWWWWRWRWWRWRWW ......... | 26 | WRWWWWRWRWWRWRWRRRa . ..... | 27 | RWRRWRWRWWWWRWWWWRW . ..... | 27 | RWRWRWRRWRWRWRRWRWR.. . . | 27 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| |...WRWWRWRWRWWRWRWRWRR... ......... | 29 | RWRRRRWRWRRWRWRWRWW ... | 27 | WRWWRWRWRRRRWRWRRWR ....... | 28 | RWWRWRWRRWRWRWRRWRW .. .... | 27 | RRRWRWRRWRWRWRRWRWR ......... | 28 |...*aWaWRWWRWaWRWWRWaa.. . .... | 31 | aWRWRRRRWRWRRWRWRWa .. .......... | 27 | WRWRWWRWRWRRWRWRWRR .......... | 27 | RWRRRRWaWRRRaWaWRRR ...... . | 28 | WRWWRWRWWWWRWRWWRWR. .. .... | 27 |...RWRRWaWRWRRWRWWWWRW... .. .... .. | 30 | WRRRRWRWRRWRWRWWRWR ......... | 27 | RWWRWRWRRWaWRWRRWRW .. .... | 27 | WWRWRWRRWRWRWRRRaWa ......... | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | ..RRWRWRRWRRaRaaWRRRR . . .. .. .. ... ... . . .. ... .. ... | 29 | ..RRaRRWRRRaWRWRaRaWa.. . .. . . . . .. ......... . | 33 | aRRRWRWRRWRWRWWRWRW . ..... .. | 28 | .RRaRaWaRRaWRWRRWRWR ... | 28 | RRWRWRWRaWRWRWWRWRW ..... | 27 | WWRWRWRRRRWRWRRWRWR ... | 27 | RRWRWRWRRWRWRRRaWRW ...... | 28 | WRRWRWRWRRWRWRWWRWR ...... | 27 | . RRRaWaWRRRaWRWRRWRW | 28 | WWRWRWRWRRWRWRWWRW* .. ....... | 27 | RWRRWRWRRRRWRWRRRR- . .. ... | 28 | WRRWRWRWRRWRWRRRaR ...... | 28 | +RRRWaWRRRRWRWRRRa- . . ........ | 28 | +RWRRWRWRRWRWRWWaa. .. | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | aaRaWRWRaWRWRWRRWRW. .... .... | 28 | aRRWaWRWRRWaWRWWRWa .. . .. | 29 | .RWRRWRWRWRRWRWRWWRW .. ....... | 26 | .WRWRRWRWRWRRWRWRRWaa . ... | 28 | aWRWRRWRWRWRRWaWRRRa . .... | 28 | RRWaWRRRRWRWRRWRWRRW ..... | 28 | RRaWRWRaRaWRWRRWRWRW . ...... | 28 | RWWRWRWRRWRWRWRRWRWR. .. | 27 | .WRWRRWRWRRWRWRWaaWaW... .. .. ... | 28 | ..RWRWRRWRWRWRRWRWRRWR . . ..... | 28 | RaWaWRaWRWRWRRWaWRR*. ..... | 29 | RRRWRWaaRaWRWRRWRWRa . . ......... | 28 | RRWRWRWRRRaWRRRaWRW. ...... | 27 |.. WRRWRWRWRaWaWRRRaWa. | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | RRWRWRWWRWRWRRWRWR . .... | 27 | RWRWRWRRRaWRRRaRaW. ....... | 28 | aRRRWRWRRWRWRWWRWRa.. ....... | 28 | aaaRaWRRRRWRWWWWaW=. .. ...... .. | 29 | aWWRWRWRRRaWRWRRWa=. . .. | 30 | WRWWRWRWRRRaWRWRRWR . ... .. ... | 27 | RWWRWRWRWRaRaWRRRaR . . . . .... | 28 | WRWRRWRWRWWRWRWRRRa . ...... | 29 | aWaRRaRRWRRRRWRWRRW . .. | 28 | WRWRRRaRaWRRWRWRWRR ......... | 28 | RWRWRRRRWaWRRWRWRWR . . ..... | 27 | WRWRWRRWRWRRRaWRWRR . ......... | 28 | RWRWRWWRWRWRRRRWaWR . .... | 28 | RRWRWRRWRWRWWRWRWR+ ...... | 27 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | *WRWRRWaWRWRRWRRRR+. . ....... | 29 | .aaRaRaRRRWaWWaWWWaW. . . ... . . .. .. .. . . .. .. . ... | 31 | . WRRRaWaRaaWRWaWRaWR . . . . .. .. . .. .. . .. . .... | 30 | RWRRWRWRWRRWRWRRWRW .. ... | 26 | WRRWRWRWRRRaWRRRaWa. ..... | 29 | .aWRRWRWRWRRWRWRWWRW+ .. . .. | 27 | .*aa*a*a**a*a*aaaaaaa . ...........::-++WWWWRaa=:. .. .... ...... ... ....... | 37 |. .*a*aa*a*aaaaaRaaa*Ra ..............:-*RWWR*=:.. .. .........:-:::.. | 33 | .RWRWWRWRRRRRRWRWWRWR . ..............::-+aRWW*+--::. ... . ........... | 27 | .WRWRWRaRaWRRaaRaRaRR | 29 | -RWRWRWWRWRWRRWRWRWRR . ... | 27 | -RWWWWRWRWWWWWWRWWRWW.......:.::........-++a+=-:.... ...... ..... ..::=*+-. | 27 | :****a*a*a*aa*aaaa*Ra ..............::=+aRWWa*=:... .. .... ....... | 35 | :RWRWWRWRWRWWRWRWRRWR..... .......:....::--:=----::... . ...........::::-..:....::. | 27 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | .-WaWRWRaWRWRWWaWRWRRW . .... | 28 | -WWRWRWRRWRWRRWRWRWRR | 27 | RRWRWRRWRWRWWRWRWRR. ..... | 27 | ..RRaWRWRRWRWWWWRWRWR-. ... | 30 | .aaWaWRRRRWRWWWWRWRW-... | 30 | RRaRaRaRRaWaRRRRRWRa ...... | 29 | ..*WWRWRWRRWRWRWWRWRW. . | 27 | .=RRWaWRRRaWaRRRRRWa .. | 28 | -RWRWRWRRWRWRRRaWRR .... | 28 | aRaRaWaaRaWRWRaWRWR.. ............. . . .... | 29 | RaRaWRRRaWRWRRWRWRW: . .. .. | 28 | aWRWRWRRRRWRWRRWRWW+.. . ..... | 27 | . aWWRWRWWRWRWRRRRWRW- . ...... | 27 | RRRWRWRWWRWRWRRRaWa= . . | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | =RWRWRWWRWRWRRRRWRR:... . ... | 28 | RRRWRWWRWRWRWRRWaWR- . ...... | 28 | aRRRWRWRRWRWRWWRWRW . . . . | 27 | aRaRaWRRRaWRWRRWRWR. ..... | 28 | *WWRWRWRRWRWRWWRWRW. . | 26 | .*RRWRWWRRRWRWRRWaWR*. . . | 28 | =WWRWRWRWWRWRWRRWRW. .. | 27 | .*aaRaWaRRaRaWRRRRWR.. ..... | 29 | .aWRRRaWRWRRWRWRWWRWR . | 28 | .aRWWRWRWRWRRWRWRRWa= . .... | 27 | .-RRWWRWRWWWWRWRWR==: | 27 | .RaWRRRaWRWRaRaWRRR*- .... | 29 | RWRWRRWRWWWWRWRWWWW: .... | 27 | :RaRaWRaWaWRRRaWRWRRa ..... | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| |..RaWRWRRRaWRRRaWaWRRRa .... | 29 | .aRRWaWRWRRWaWRRRRWRWa.. . . | 27 | ..WRRRaWRWRaRaRaRRaRaW . . . . .. .. .. . . .. . . .. ..... . | 29 | .:aWRWRaRRWRWaaWRRRRRR. . . .. .. .. .. .. .. : .. .. .. .. . | 30 | +RaWRWRWRRWRWRRWRWRWR .. ...... | 28 | ..WRRWaWRWRRWRWRWWRWRW ..... | 28 | .RWRRRRWRWRRWRWRWWRWa . . | 27 | .WRWRWRRWRWRRWRWWWRR+ . . .. .. . | 27 | -aWRWRWRaWRWRRRRWRRa+ ..... | 28 | -RRWRWRWWRWRWRWRRWaWR .. | 28 |..-WRWWRWRWRRRRWRWRRWRR .... | 28 | -RWRWRaWRWRWRRWRWRWWR . . | 27 | =RRWRWRRRRWRWRRRRWRWR .... | 27 | -WRRWRWRRRRWRWRaWaWRR . ... ..... | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | :RRWRWRWRaRaWRWRRWRWR ........ | 28 |. .WRRWRWRWRRWRWRWRaWaW ...... | 28 | -RWRWWRWRWRWWRWRWRaWa. ........ | 28 | .RaWaWRaRaWRWRRWRWRRR. ......... | 28 | .:WRaWaWRRRaWRWRRWRWRW .. . | 28 | -RWRRWRWRRRRWRWRRWRWR . . ....... | 27 |...WRWRRWRWRWaaWaRaRRaR.. .. | 31 | :aWRWRWRRWRWRRRRWRWRa . .. | 28 | :aaRaWaWRaWRWRWRRWRWR. . . . . ..... . | 29 | .:WaWRaRaRaWRRWRWRRWRW .. ... | 28 | ..RWRWRRWRWRWRaWRWRWR= .. .. | 27 |...WRWRWRWRaWaRaaRaRaR .. ... .... | 30 | :WRRWRWRWRRWaWRRRaWa: ... ........ | 28 | .:RWRRRRWRWRRWRWRWRRWa. .. ...... | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | ..WRWRRRRWRWRRWaWRRRa* ... .. . ....... | 28 | RWRWRRRRWRWWRWRWRWW: . .. ... ...... | 27 | -RaWaWWRRRWRWRRWRWRWR ... ...... | 30 | =WWRWRWRWRRWaWRRRRWRW ... ... | 27 | -*RRWRWRWWRWRWRRRa=. ....... | 27 | .RRWRRWRWRWWRWRWRRWa- ... ... | 28 | .aRaWRaWaWRRRRWRWRRR* ... . .... | 29 |..*RRWRWaaRRWRWRaWRWRWR ... .. . | 28 | aWRRWRWRWRaWRWRRWRWRW .. . .. | 27 |..=aWWRaaRRWWWWRWRWWRWa...... ..... .. . ............. . | 32 | aaWRWRWRaWRWRRRaWaR. ... ......... | 29 | .aRaRaWRRRRWRWRRWRWR- ... .... .. | 28 |...RWaRRRWRWRRWRWRWRaW= .. . . ... ... | 30 | WaWRRRaWaWRRRaWRWRR= ... .. .. | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | :aWRWRaWaRRWRRWRWRWW* . .. .. .. | 28 | :WRWRWWRRaWRWRRWRWRWW .. | 27 | *WRRWRWRWRRWRWRRWRWRR | 28 | .+aWaRRRWRWaaWaWRWRaR*. . . . . . . . . .. .. .. ... . | 31 |. -*a**R*Ra*RRWRWRaWaR*....... .... . . . .. .. .. .. .. .. .......... . | 36 | -*RaWRRaaWRWRRRaWRWWR....:...:::.:::-::::::.:::...::::::.::::::............... ...... .......... ........ ...... . . .| 30 |. =aWRRRRWRWRRWRWRRRWWR... .::..:............. . ...... ......... | 30 |..-aRWRWaWRRWRWRRRRWaWW.. . ... | 33 |..:aRWWWWWRRWWWRRWRWRRa.....:.::....:::...::::..::::::...:::.............. | 34 | ..RWWWWRWRWRRWRWWWWRWa....................... .. ... .. ... ..... | 29 |...RaWRWWWRRWRWRRWaWRW+... ............ ... .. .... .. ... | 31 |.. WRWRaWRWRRWRWRWRRWR. .... | 28 | ..RRRWWWWWWWWRWRWWWWR....::::...:----:...::::................ ....... ........ | 30 | ..RWRWRRRaWaWRRRaWaRR. . ...... | 28 |0 1 2 3 4 5 6 7 8 9 10 11 12 | And that's the worse I get today: |012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345| | . aRaRRRWRWaa .. | 28 | .RRaRWWWWRRR | 26 | WRWWWWWRWWW . | 25 | RRWWWWRRRWR | 24 | :WWWWRRRWWW | 25 | ....WWWRWRRWWa . | 25 | :WWWWRWWWW- | 27 | +WWWRWWWWWR | 25 | WWRRRWWWWRR . .. | 25 | ....aWRWRWRRRRR.... | 26 | ..:.RWRRWWWWRRW.:.. | 30 | ... . ... ..... :...+WRRRRaRWWW.... ... .. .. .. .. | 29 | :...WWWWRaaRRaW-:.. .. | 32 | RWWRRRRRWWR | 27 I'm using a new device so still I may have something to adjust in the scanner as I don't get the band being so clean. I've changed the old wifi AP for an ubiquity thou.
  • Sensors not detected by RPI Serial Gateway

    2
    0 Votes
    2 Posts
    478 Views
    skywatchS
    @bart-haezeleer I have found there are problems with Rpi3 serial port. Use a small pro-mini with a cheap serial-to-usb adapter and try with that. I think that will solve your problems. This will also allow you to add hardware signing of messages in the future which cannot be done with a nrf24l01+ directly attached to the pi.
  • 0 Votes
    1 Posts
    794 Views
    No one has replied
  • can't get DHT22 sensor to work with home assistant via mqtt gateway

    4
    0 Votes
    4 Posts
    815 Views
    B
    hi again I got it working Insex00|⸮⸮E⸮V⸮U⸮ 23:24:18.693 -> __ __ ____ 23:24:18.693 -> | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ 23:24:18.693 -> | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| 23:24:18.693 -> | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ 23:24:18.728 -> |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ 23:24:18.728 -> |___/ 2.3.0 23:24:18.728 -> 23:24:18.728 -> 16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.3.0 23:24:18.728 -> 25 TSM:INIT 23:24:18.728 -> 26 TSF:WUR:MS=0 23:24:18.728 -> 33 TSM:INIT:TSP OK 23:24:18.728 -> 35 TSM:INIT:STATID=22 23:24:18.728 -> 37 TSF:SID:OK,ID=22 23:24:18.728 -> 39 TSM:FPAR 75 TSF:MSG:SEND,22-22-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 880 TSF:MSG:READ,0-0-22,s=255,c=3,t=8,pt=1,l=1,sg=0:0 23:24:19.581 -> 885 TSF:MSG:FPAR OK,ID=0,D=1 2082 TSM:FPAR:OK 23:24:20.765 -> 2083 TSM:ID 23:24:20.765 -> 2084 TSM:ID:OK 23:24:20.800 -> 2086 TSM:UPL 23:24:20.800 -> 2089 TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 23:24:20.800 -> 2096 TSF:MSG:READ,0-0-22,s=255,c=3,t=25,pt=1,l=1,sg=0:1 23:24:20.800 -> 2101 TSF:MSG:PONG RECV,HP=1 23:24:20.800 -> 2104 TSM:UPL:OK 23:24:20.800 -> 2105 TSM:READY:ID=22,PAR=0,DIS=1 23:24:20.800 -> 2110 TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 23:24:20.800 -> 2116 TSF:MSG:READ,0-0-22,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 23:24:20.833 -> 2126 TSF:MSG:SEND,22-22-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.0 23:24:20.833 -> 2135 TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0 4142 TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=11,pt=0,l=5,sg=0,ft=0,st=OK:DHT22 23:24:22.854 -> 4151 TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0 23:24:22.854 -> 4159 TSF:MSG:SEND,22-22-0-0,s=1,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 23:24:22.854 -> 4166 TSF:MSG:SEND,22-22-0-0,s=0,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK: 23:24:22.854 -> 4172 MCO:REG:REQ 23:24:22.854 -> 4176 TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2 23:24:22.890 -> 4183 TSF:MSG:READ,0-0-22,s=255,c=3,t=27,pt=1,l=1,sg=0:1 23:24:22.890 -> 4188 MCO:PIM:NODE REG=1 23:24:22.890 -> 4190 MCO:BGN:STP 6192 MCO:SLP:MS=2000,SMS=0,I1=255,M1=255,I2=255,M2=255 23:24:24.891 -> 6197 TSF:TDI:TSL 6199 MCO:SLP:WUP=-1 23:24:27.107 -> 6200 TSF:TRI:TSB 6207 MCO:BGN:INIT OK,TSP=1 23:24:27.142 -> Failed reading temperature from DHT! 23:24:27.142 -> Failed reading humidity from DHT 16218 TSF:MSG:SEND,22-22-0-0,s=0,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:24.9 23:24:37.137 -> T: 24.90 23:24:37.137 -> 16227 TSF:MSG:SEND,22-22-0-0,s=1,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:51.7 23:24:37.137 -> H: 51.70 26242 TSF:MSG:SEND,22-22-0-0,s=0,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:24.8 23:24:47.138 -> T: 24.80 23:24:47.138 -> 26251 TSF:MSG:SEND,22-22-0-0,s=1,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:51.9 23:24:47.138 -> H: 51.90 rt Code Here but the sensor fails to show up in home assistant dashboard( afrter restarting homeassistant I found this in homeassistant log: 018-11-06 05:40:14 INFO (MainThread) [mysensors] Stopping gateway Config directory: /config starting version 3.2.5 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.setup] Setting up mqtt 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds. 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.loader] Loaded logger from homeassistant.components.logger 2018-11-06 05:40:34 INFO (MainThread) [homeassistant.setup] Setting up logger 2018-11-06 05:40:34 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused 2018-11-06 05:40:40 WARNING (MainThread) [homeassistant.components.mysensors] debug option for mysensors is deprecated. Please remove debug from your configuration file 2018-11-06 05:40:40 DEBUG (SyncWorker_0) [mysensors.persistence] Loading sensors from persistence file /config/mysensors1.pickle 2018-11-06 05:40:41 DEBUG (SyncWorker_1) [mysensors.persistence] Saving sensors to persistence file /config/mysensors1.pickle 2018-11-06 05:40:42 INFO (MainThread) [mysensors.gateway_mqtt] Setting up initial MQTT topic subscription 2018-11-06 05:40:42 DEBUG (MainThread) [mysensors.gateway_mqtt] Subscribing to: mygateway1-out/+/+/0/+/+, qos: 0 2018-11-06 05:40:42 DEBUG (MainThread) [mysensors.gateway_mqtt] Subscribing to: mygateway1-out/+/+/3/+/+, qos: 0 2018-11-06 05:40:42 DEBUG (MainThread) [mysensors.gateway_mqtt] Subscribing to: mygateway1-out/0/+/4/+/+, qos: 0 2018-11-06 05:40:42 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to mygateway1-out/+/+/0/+/+ 2018-11-06 05:40:42 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to mygateway1-out/+/+/3/+/+ 2018-11-06 05:40:42 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to mygateway1-out/0/+/4/+/+ 2018-11-06 05:40:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 279, in async_subscribe topic, msg_callback, qos, encoding) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 659, in async_subscribe await self._async_perform_subscription(topic, qos) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 694, in _async_perform_subscription _raise_on_error(result) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 779, in _raise_on_error 'Error talking to MQTT: {}'.format(mqtt.error_string(result_code))) homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected. 2018-11-06 05:40:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 279, in async_subscribe topic, msg_callback, qos, encoding) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 659, in async_subscribe await self._async_perform_subscription(topic, qos) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 694, in _async_perform_subscription _raise_on_error(result) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 779, in _raise_on_error 'Error talking to MQTT: {}'.format(mqtt.error_string(result_code))) homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected. 2018-11-06 05:40:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 279, in async_subscribe topic, msg_callback, qos, encoding) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 659, in async_subscribe await self._async_perform_subscription(topic, qos) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 694, in _async_perform_subscription _raise_on_error(result) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 779, in _raise_on_error 'Error talking to MQTT: {}'.format(mqtt.error_string(result_code))) homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected. 2018-11-06 05:40:50 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting 2018-11-06 05:40:54 WARNING (SyncWorker_9) [netdisco.ssdp] Error fetching description at http://192.168.1.68:49152/wps_device.xml any help is much appreciated thank you
  • [SOLVED] Communication between Gateway & Node with or without MY_NODE_ID

    5
    0 Votes
    5 Posts
    957 Views
    A
    You're right, it was my Node power supply. I remove my old power supply and connect directly with 3xAA NiMh and I will see later for upgrade this. Thank You
  • [SOLVED] 3.3V 8MHz pro mini as GW, should it work?

    13
    0 Votes
    13 Posts
    2k Views
    bjacobseB
    @skywatch That was a nasty one to find the rootcause for - how did you do it? I don't use BT on my 3B, so it's disabled so I feel I have been lucky not to dig for this rootcause
  • 1 Votes
    3 Posts
    722 Views
    mfalkviddM
    Great work @arnaud, thanks for posting the solution. To edit the topic title, edit your first post and change the title at the top
  • MQTT Nodemcu Gateway Compile Error

    3
    0 Votes
    3 Posts
    643 Views
    T
    @electrik I did not. Thank you for pointing me in that direction!
  • Motor status manager with Wemos D1 mini & current sensor ASC712

    11
    0 Votes
    11 Posts
    2k Views
    P
    @gohan Thank you.

32

Online

11.7k

Users

11.2k

Topics

113.1k

Posts