rfm69hw restarting when using plug on same multi-socket



  • Hi,

    I have an unusual power issue and I hope somebody can tell me how to solve it:

    I have a rfm69hw attached to an arduino pro mini 3v (as a serial gateway) attached to a raspberry pi 4 via USB. The setup works fine for the most part, but there is a plug attached to the same multi-socket the raspberry pi draws its power from.

    Schema:

    rpi4-> arduino pro mini3v -> rfm69hw

    multi-socket

    plug

    The plug is a tasmota-flashed Gosund SP1 that turns a lamp on and off. When the lamp is turned off/on it sometimes kills the gateway. No messages are received until the gateway "decides" to come online again (after max 15 minutes):

    2020-04-19 22:05:20 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:900026 !TSF:SAN:FAIL
    2020-04-19 22:05:20 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:900034 TSM:FAIL:CNT=1
    2020-04-19 22:05:20 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:900044 TSM:FAIL:DIS
    2020-04-19 22:05:20 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:900052 TSF:TDI:TSL
    2020-04-19 22:05:30 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:910063 TSM:FAIL:RE-INIT
    2020-04-19 22:05:30 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:910071 TSM:INIT
    2020-04-19 22:05:30 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:910082 TSM:INIT:TSP OK
    2020-04-19 22:05:30 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:910090 TSM:INIT:GW MODE
    2020-04-19 22:05:30 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:910100 TSM:READY:ID=0,PAR=0,DIS=0
    2020-04-19 22:05:30 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:910112 TSM:READY:NWD REQ
    2020-04-19 22:05:30 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:910127 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    2020-04-19 22:06:22 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:962252 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    2020-04-19 22:06:22 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:962269 TSF:MSG:BC
    2020-04-19 22:06:22 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:962277 TSF:MSG:FPAR REQ,ID=2
    2020-04-19 22:06:22 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:962289 TSF:PNG:SEND,TO=0
    2020-04-19 22:06:22 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:962299 TSF:CKU:OK
    2020-04-19 22:06:22 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:962308 TSF:MSG:GWL OK
    2020-04-19 22:06:23 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:963104 TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    2020-04-19 22:06:24 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:964259 TSF:MSG:READ,2-2-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
    2020-04-19 22:06:24 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:964278 TSF:MSG:PINGED,ID=2,HP=1
    

    Output from home assistant.

    When I put the plug/lamp-combo into another outlet I can toggle it as many times as I like without the gateway going down.

    Does somebody know how I can stabilize the power so that the plug doesn't kill the gateway? I have a 470uF capacitor between GND and 3.3v on the rfm69hw already.


  • Mod

    @kiesel can you test if the problem is with physical proximity or "electrical proximity"?

    What I mean is that the plug might send bad radio signals when toggled. If that is the case, the gateway might be affected by the plug even when the plug is connected to a different socket, if the plug is close to the gateway. If that is the case, it might be possible to shield the gateway.

    If the plug sends bad signals down the electrical line, RF shielding won't help.

    You could also change (or disconnect) the lamp, to see if the disturbance comes from the lamp and not the plug.

    What power adapter are you using for the rpi? Can you change to a different power adapter and see if it makes a difference?

    Narrowing the number of possible problem sources is probably the best strategy towards a solution.



  • @mfalkvidd

    That was a good catch! It's indeed the lamp. I removed the lamp from the switch and everything else being equal I I can now toggle the switch as much as I want without the gateway going bye bye.

    The bulb is a "Osram dulux Superstar micro twist", 7w, 825 lumen, 220-240v, 7mA, 50/60Hz.

    It works as expected when I take the bulb out of the socket. Can I somehow shield this or should I buy a new bulb?


  • Mod

    @kiesel I would start with putting something else in (another bulb is probably easiest). It could be that the problem is with the plug, but it only happens when something is powered by the plug.



  • @mfalkvidd

    I plugged my soldering iron in and you were right, the problem reappears. I only have that one wall socket in thqt corner of the apartment so I can't plug the switch into another wall socket, unfortunately.

    Would one of those multi plugs work that come with an extra fuse to guard against lightning strike induced fluctuations?

    /edit: forgot to mention I am using the official charger for the pi 4. I'll try to find a different one.


Log in to reply
 

Suggested Topics

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts