Arduino as Gateway via USB crash on PI


  • Hardware Contributor

    I'm investigating what's the problem here.

    Pi1 with domoticz and Arduino UNO (original), both feeded via a HUB USB with power (so Arduino did not get power from PI directly).

    Sometimes, in some hour, I did not get anymore update from both or single node (I have a powered relay + ds18b20 and a battery dht22).

    Investigating and opening the serial I don't get nothing, but after a reboot of Arduino (with the button on the Arduino itself), I have the serial flooded from:

    0;255;3;0;9;TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    0;255;3;0;9;!TSF:MSG:LEN,0!=18
    0;255;3;0;9;TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    0;255;3;0;9;!TSF:MSG:LEN,0!=18
    0;255;3;0;9;TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    0;255;3;0;9;!TSF:MSG:LEN,0!=18
    0;255;3;0;9;TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    0;255;3;0;9;!TSF:MSG:LEN,0!=18
    0;255;3;0;9;TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    0;255;3;0;9;!TSF:MSG:LEN,0!=18
    0;255;3;0;9;TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    0;255;3;0;9;!TSF:MSG:LEN,0!=18
    0;255;3;0;9;TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt=0,l=11,sg=0:Get Version
    0;255;3;0;9;!TSF:MSG:LEN,0!=18
    0;255;3;0;9;TSF:MSG:READ,0-0-0,s=0,c=3,t=2,pt
    

    The serial is flodeed continuosly.

    For some weeks, I did have the PI directly feeded via Samsung charger + Arduino with direct power from USB. I did want to change with a autopower HUB usb to no stress the PI. All is behind an UPS, to filter home current (not the max stability in my house, I need to say).

    Do you have some idea?

    Thank you


  • Mod

    @sineverba !TSF:MSG:LEN,0!=18 typically indicates an error in the SPI transfer with the radio. How did you wire things up? Jumper wires can be the cause of flaky connections.


  • Hardware Contributor

    The issue seems to be related to the USB hub powered. Seems that Arduino feeded directly from pi via USB goes well ....


  • Mod

    @sineverba is gnd on arduino connected with gnd on raspberry pi?


  • Hardware Contributor

    @mfalkvidd they are connected only with USB cable


  • Mod

    @sineverba if you can, check with a multimeter that the usb hub grounds the different usb ports together. If it doesn't, that could be the cause.


Log in to reply
 

Suggested Topics

21
Online

11.2k
Users

11.1k
Topics

112.5k
Posts