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. [SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAIL

[SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAIL

Scheduled Pinned Locked Moved Troubleshooting
20 Posts 7 Posters 3.3k Views 6 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.
  • MGHaffM Offline
    MGHaffM Offline
    MGHaff
    wrote on last edited by MGHaff
    #11

    This is what i use to configure my raspberry pi3 to work vi serial.

    --my-transport=rf24 --my-rf24-pa-level=RF24_PA_LOW --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18

    Built using this page. https://www.mysensors.org/build/raspberry

    And when recieving this error "Dec 31 11:07:50 DEBUG !TSM:INIT:TSP FAIL" I had found a bad jumper that I had used. Hope This helps!

    1 Reply Last reply
    1
    • B Offline
      B Offline
      badisensors
      wrote on last edited by badisensors
      #12

      As kebibg said you must also configure the pins for CE and CS. The configure i used was :

      --my-transport=rf24 --my-rf24-pa-level=RF24_PA_LOW --my-gateway=serial --my-serial-is-pty --my-serial-port=/dev/ttyUSB020 --my-rf24-ce-pin=22 --my-rf24-cs-pin=24 --my-rf24-irq-pin=15 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18

      Also you must connect MISO to pin 21, Mosi to pin 19 and CLK to pin 23 on raspberry

      MGHaffM 1 Reply Last reply
      0
      • B badisensors

        As kebibg said you must also configure the pins for CE and CS. The configure i used was :

        --my-transport=rf24 --my-rf24-pa-level=RF24_PA_LOW --my-gateway=serial --my-serial-is-pty --my-serial-port=/dev/ttyUSB020 --my-rf24-ce-pin=22 --my-rf24-cs-pin=24 --my-rf24-irq-pin=15 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18

        Also you must connect MISO to pin 21, Mosi to pin 19 and CLK to pin 23 on raspberry

        MGHaffM Offline
        MGHaffM Offline
        MGHaff
        wrote on last edited by
        #13

        @badisensors said in Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAIL:

        As kebibg said you must also configure the pins for CE and CS. The configure i used was :

        --my-transport=rf24 --my-rf24-pa-level=RF24_PA_LOW --my-gateway=serial --my-serial-is-pty --my-serial-port=/dev/ttyUSB020 --my-rf24-ce-pin=22 --my-rf24-cs-pin=24 --my-rf24-irq-pin=15 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18

        Also you must connect MISO to pin 21, Mosi to pin 19 and CLK to pin 23 on raspberry

        The only pin's I needed to specify on my setup was IRQ and leds. The GW has been working great for 2+ years on my raspberry pie 3b with nrf24+.

        Why did I Not have to specify them in my setup? did something change? I am running version 2.3.1.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          badisensors
          wrote on last edited by
          #14

          2 years ago were you using version 2.3.1 ?

          MGHaffM 1 Reply Last reply
          0
          • B badisensors

            2 years ago were you using version 2.3.1 ?

            MGHaffM Offline
            MGHaffM Offline
            MGHaff
            wrote on last edited by MGHaff
            #15

            @badisensors 2.0.0 not really 2 years ago more like 1 1/2. Why do you ask?

            1 Reply Last reply
            0
            • B Offline
              B Offline
              badisensors
              wrote on last edited by
              #16

              Because in 1.5-2 years many things are changing. Did you try my config?

              MGHaffM 1 Reply Last reply
              0
              • B badisensors

                Because in 1.5-2 years many things are changing. Did you try my config?

                MGHaffM Offline
                MGHaffM Offline
                MGHaff
                wrote on last edited by
                #17

                @badisensors I did try your config and it works just as mine does. Just wondering if the adding this --my-rf24-ce-pin=22 --my-rf24-cs-pin=24 to the config was necessary. But from the my test it is not. Thanks.

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  badisensors
                  wrote on last edited by
                  #18

                  If we use pin 22 for CE and pin 24 for CS it is not necessery to declare as you said. But if we want to use other pins we need to declare. I havent try though with other pins.

                  1 Reply Last reply
                  1
                  • xandaX Offline
                    xandaX Offline
                    xanda
                    wrote on last edited by
                    #19

                    I changed cables, get new NRF24L01+ PA/LNA and make clean install of rasbian. Nothing helped, but then out of nothing it started to work (at least no fail). Its a mystery to me why. Thank you all for help.

                    pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw
                    Jan 12 10:05:42 INFO  Starting gateway...
                    Jan 12 10:05:42 INFO  Protocol version - 2.3.1
                    Jan 12 10:05:42 DEBUG Serial port /dev/ttyUSB020 (115200 baud) created
                    Jan 12 10:05:42 DEBUG MCO:BGN:INIT GW,CP=RNNGL-Q-,REL=255,VER=2.3.1
                    Jan 12 10:05:42 DEBUG TSF:LRT:OK
                    Jan 12 10:05:42 DEBUG TSM:INIT
                    Jan 12 10:05:42 DEBUG TSF:WUR:MS=0
                    Jan 12 10:05:42 DEBUG !TSM:INIT:TSP FAIL
                    Jan 12 10:05:42 DEBUG TSM:FAIL:CNT=1
                    Jan 12 10:05:42 DEBUG TSM:FAIL:DIS
                    Jan 12 10:05:42 DEBUG TSF:TDI:TSL
                    Jan 12 10:05:52 DEBUG TSM:FAIL:RE-INIT
                    Jan 12 10:05:52 DEBUG TSM:INIT
                    Jan 12 10:05:52 DEBUG !TSM:INIT:TSP FAIL
                    Jan 12 10:05:52 DEBUG TSM:FAIL:CNT=2
                    Jan 12 10:05:52 DEBUG TSM:FAIL:DIS
                    Jan 12 10:05:52 DEBUG TSF:TDI:TSL
                    ^CJan 12 10:05:53 NOTICE Received SIGINT
                    
                    pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw
                    Jan 12 10:14:30 INFO  Starting gateway...
                    Jan 12 10:14:30 INFO  Protocol version - 2.3.1
                    Jan 12 10:14:30 DEBUG Serial port /dev/ttyUSB020 (115200 baud) created
                    Jan 12 10:14:30 DEBUG MCO:BGN:INIT GW,CP=RNNGL-Q-,REL=255,VER=2.3.1
                    Jan 12 10:14:30 DEBUG TSF:LRT:OK
                    Jan 12 10:14:30 DEBUG TSM:INIT
                    Jan 12 10:14:30 DEBUG TSF:WUR:MS=0
                    Jan 12 10:14:30 DEBUG TSM:INIT:TSP OK
                    Jan 12 10:14:30 DEBUG TSM:INIT:GW MODE
                    Jan 12 10:14:30 DEBUG TSM:READY:ID=0,PAR=0,DIS=0
                    Jan 12 10:14:30 DEBUG MCO:REG:NOT NEEDED
                    Jan 12 10:14:30 DEBUG MCO:BGN:STP
                    Jan 12 10:14:30 DEBUG MCO:BGN:INIT OK,TSP=1
                    Jan 12 10:14:30 DEBUG TSM:READY:NWD REQ
                    Jan 12 10:14:30 DEBUG TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:```
                    1 Reply Last reply
                    3
                    • gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #20

                      dodgy cable/pin maybe?

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


                      16

                      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