Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. PI gateway + rfm69 - unable to connect door switch

PI gateway + rfm69 - unable to connect door switch

Scheduled Pinned Locked Moved Troubleshooting
1 Posts 1 Posters 195 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chipec
    wrote on last edited by
    #1

    Hello,

    I am not able to make the gateway and the switch communicate when gateway is RPI (meaning RFM69 is directly plugged onto the pi GPIOs)
    It seems that both the gateway and the switch are setup correctly (see code and logs below).
    (My radio modules are functional because everything is working fine when I use an ardouino gateway.)

    gateway : pi 3 + rfm69cw
    switch: ardouino pro-mini + rfm69cw
    MySensors: 2.3.1 on both gateway and switch

    I am able to setup the PI serial GW properly: (same result if I set direct port ttyAMA0)

    ./configure --my-transport=rfm69 --my-rfm69-frequency=868 --my-gateway=serial --my-serial-port=/dev/ttyMySensorsGateway --my-serial-baudrate=115200 --my-serial-is-pty

    INFO Starting gateway...
    INFO Protocol version - 2.3.1
    DEBUG Serial port /dev/ttyMySensorsGateway (115200 baud) created
    DEBUG MCO:BGN:INIT GW,CP=RPNGL---,REL=255,VER=2.3.1
    DEBUG TSF:LRT:OK
    DEBUG TSM:INIT
    DEBUG TSF:WUR:MS=0
    DEBUG TSM:INIT:TSP OK
    DEBUG TSM:INIT:GW MODE
    DEBUG TSM:READY:ID=0,PAR=0,DIS=0
    DEBUG MCO:REG:NOT NEEDED
    DEBUG MCO:BGN:STP
    DEBUG MCO:BGN:INIT OK,TSP=1
    DEBUG TSM:READY:NWD REQ
    DEBUG TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:

    switch setup:

    #define MY_DEBUG
    #define MY_PARENT_NODE_ID 0
    #define MY_NODE_ID 1
    #define CHILD_ID 3
    #define MY_RFM69_NEW_DRIVER
    #define MY_RADIO_RFM69
    #define RFM69_868MH
    #define MY_PASSIVE_NODE
    #include <MySensors.h>
    #include <Bounce2.h>
    #include <SPI.h>

    MCO:BGN:INIT NODE,CP=RPNPA---,REL=255,VER=2.3.1
    TSM:INIT
    TSF:WUR:MS=0
    TSM:INIT:TSP OK
    TSM:INIT:TSP PSM
    TSM:INIT:STATID=1
    TSF:SID:OK,ID=1
    TSM:FPAR
    TSM:FPAR:STATP=0
    TSM:ID
    TSM:ID:OK
    TSM:UPL:DISABLED
    TSM:READY:ID=1,PAR=0,DIS=1
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.1
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    TSF:MSG:SEND,1-1-0-0,s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
    MCO:REG:NOT NEEDED
    MCO:BGN:STP
    MCO:BGN:INIT OK,TSP=1
    PUSHED
    0
    TSF:MSG:SEND,1-1-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0

    I am running out of ideas to debug this...
    Thank you.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    39

    Online

    11.7k

    Users

    11.2k

    Topics

    113.1k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular