PI 3 and Arduino uno: no communcation



  • Hi,

    I attached a nrf24l01 with 5 -> 3,3 V convertor to a PI3 and a Arduino uno.
    Running mysgw on the PI shows no error.
    The Arduino uno is also starting fine, but it cant' find the PI.

    I measured the 3.3V voltage and that's find. I don't see any drops.
    I soldered a capacitor on the VCC of both nrf24l01.
    Placing the PI and the Arduino closer togeher is also not helping.

    What else can I try?

    PI logs:
    mysgw: Starting gateway...
    mysgw: Protocol version - 2.1.1
    mysgw: MCO:BGN:INIT GW,CP=RNNG--Q,VER=2.1.1
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: Listening for connections on 0.0.0.0:5003
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1

    Arduino log:
    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSM:FPAR
    15 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2022 !TSM:FPAR:NO REPLY
    2024 TSM:FPAR
    2026 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4034 !TSM:FPAR:NO REPLY
    4036 TSM:FPAR
    4038 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6046 !TSM:FPAR:NO REPLY
    6048 TSM:FPAR
    6050 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:


  • Mod

    First you need to define a node ID on Arduino. Second, did you put a capacitor near the radio module?



  • Capacitor is soldered on both modules.

    And I thought the Arduino is broadcasting to the GW to request a node ID?

    Stef


  • Mod

    but it needs a controller to assign the ID, gateway is pretty much dumb



  • I have Openhab running as controller.

    But still, shouldn't I see any communication between the PI and Arduino?

    Stef


  • Mod

    you should, anyway just add the node id and try with mysensors library from development branch.

    You may also try to make a USB gateway with another arduino and see if you see any change. If you have more radio modules try them too. Sometimes it is just a faulty radio module and you loose all that time for nothing 😄



  • I finally had some time to do some further testing.
    Switching to the development branch of MySensors solved my problem.
    I have the feeling that the link is not really stable, but at least I can see data coming in.

    Stef


Log in to reply
 

381
Online

6.9k
Users

7.8k
Topics

82.9k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.