Skip to content
  • 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. no debug logs on sensebender micro, why?
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

no debug logs on sensebender micro, why?

Scheduled Pinned Locked Moved Troubleshooting
13 Posts 3 Posters 2.6k Views 3 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.
  • ikkeTI Offline
    ikkeTI Offline
    ikkeT
    wrote on last edited by
    #2

    To be clear, this is what the printouts are. I changed the NodeId to make sure the code being run is mine, so the upload succeeded:

    TSM:INIT
    TSM:INIT:TSP OK
    TSM:INIT:STATID,ID=8
    TSF:ASID:OK,ID=8
    TSM:FPAR
    TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:NO REPLY
    TSM:FPAR
    TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:NO REPLY
    TSM:FPAR
    TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:NO REPLY
    TSM:FPAR
    TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    TSM:FAILURE
    TSM:FAILURE:PDT

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qu3Uk
      wrote on last edited by
      #3

      This is because the sensor is still initialising and unable to complete as it is unable to find the gateway. It'll loop until it does find a gateway/parent, once it has it'll then go on to process your code.

      Have you set up a gateway already?

      I had this problem recently. Turned out to be a bad radio.

      1 Reply Last reply
      0
      • ikkeTI Offline
        ikkeTI Offline
        ikkeT
        wrote on last edited by
        #4

        Thanks for the tip. I do have RaspberryPi with nrf24l01+ and I have terminal open there with serial gateway running in foreground. The radio on raspi side seems to report it's address and info at the start. Only very rarely I see some read:* send: pairs there. Both radios have a 100uF capacitor in place, as I didn't have smaller.

        Perhaps I need to try with a new radio. All the parts are brand new, apart from the Raspi.

        1 Reply Last reply
        0
        • ikkeTI Offline
          ikkeTI Offline
          ikkeT
          wrote on last edited by
          #5

          BTW, this is the output on Raspi side, somehow it sees the nodeid 8:

          $ sudo PiGatewaySerial
          Starting PiGatewaySerial...
          Protocol version - 1.4
          Created PTY '/dev/pts/1'
          Gateway tty: /dev/ttyMySensorsGateway
          ================ SPI Configuration ================
          CSN Pin = CE0 (PI Hardware Driven)
          CE Pin = Custom GPIO25
          Clock Speed = 8 Mhz
          ================ NRF Configuration ================
          STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
          RX_ADDR_P0-1 = 0xa8a8e1fc08 0xa8a8e1fc00
          RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
          TX_ADDR = 0xa8a8e1fc08
          RX_PW_P0-6 = 0x20 0x20 0x20 0x00 0x00 0x00
          EN_AA = 0x3b
          EN_RXADDR = 0x06
          RF_CH = 0x4c
          RF_SETUP = 0x23
          CONFIG = 0x0e
          DYNPD/FEATURE = 0x3f 0x06
          Data Rate = 250KBPS
          Model = nRF24L01+
          CRC Length = 16 bits
          PA Power = PA_LOW
          read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
          send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
          read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
          send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
          read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
          send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
          read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
          send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
          read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
          send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
          read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
          send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0

          1 Reply Last reply
          0
          • ikkeTI Offline
            ikkeTI Offline
            ikkeT
            wrote on last edited by
            #6

            and now after while there are occational OKs:
            send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
            read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
            send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
            read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
            send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
            read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
            send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0

            1 Reply Last reply
            0
            • ikkeTI Offline
              ikkeTI Offline
              ikkeT
              wrote on last edited by
              #7

              Damned. I changed both of the radios, and the sensebender. No help. Still no connection forming. Is there some radio parameters I could try tweaking? Or am I so unlucky that all the radios are broken as new?

              I get lots of these:
              !TSM:FPAR:NO REPLY
              TSM:FPAR
              TSF:MSG:SEND,8-8-255-255,s=255,c=3,t
              =7,pt=0,l=0,sg=0,ft=0,st=bc:

              !TSM:FPAR:NO REPLY
              TSM:FPAR
              TSF:MSG:SEND,8-8-255-255,s=255,c=3
              ,t=7,pt=0,l=0,sg=0,ft=0,st=bc:

              !TSM:FPAR:FAIL
              TSM:FAILURE
              TSM:FAILURE:PDT

              and on raspi side some of these:

              read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
              send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
              read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
              send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
              read: 8-8-0 s=255,c=3,t=24,pt=1,l=1:1
              read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
              send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
              read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
              send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
              read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
              send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0
              read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
              send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
              read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
              send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=ok:0
              read: 8-8-255 s=255,c=3,t=7,pt=0,l=0:
              send: 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,st=fail:0

              1 Reply Last reply
              0
              • hekH Offline
                hekH Offline
                hek
                Admin
                wrote on last edited by
                #8

                What happens if you create a 2.0 serial gateway (you could use one of your sensebenders) and attach it to your raspberry?

                ikkeTI 2 Replies Last reply
                0
                • hekH hek

                  What happens if you create a 2.0 serial gateway (you could use one of your sensebenders) and attach it to your raspberry?

                  ikkeTI Offline
                  ikkeTI Offline
                  ikkeT
                  wrote on last edited by
                  #9

                  @hek I'll try that.

                  1 Reply Last reply
                  0
                  • hekH hek

                    What happens if you create a 2.0 serial gateway (you could use one of your sensebenders) and attach it to your raspberry?

                    ikkeTI Offline
                    ikkeTI Offline
                    ikkeT
                    wrote on last edited by
                    #10

                    @hek to be honest, it's going to take some time, as I have yet no glue how I would attach it to my raspberry :)

                    1 Reply Last reply
                    0
                    • hekH Offline
                      hekH Offline
                      hek
                      Admin
                      wrote on last edited by
                      #11

                      Through the usb-port...

                      1 Reply Last reply
                      0
                      • ikkeTI Offline
                        ikkeTI Offline
                        ikkeT
                        wrote on last edited by
                        #12

                        Thanks, and now that I had a second thought, I recalled I already wired another arduino once via serial ports without usb. That would do. But I would like to do it without extra arduino, so I'll try the raspi2 + mysensors hinted in the other hardware thread. It seems to work for some, I'll give it a shot.

                        1 Reply Last reply
                        0
                        • ikkeTI Offline
                          ikkeTI Offline
                          ikkeT
                          wrote on last edited by
                          #13

                          Just FYI for someone googling this, it works immediately with Mysensors 2.0 with Raspi2 instead of Raspi1. The problem was I never realized the pinouts were not for the raspi with 26 pins but the raspis with 40 pins, like b+/2/3.

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


                          6

                          Online

                          11.7k

                          Users

                          11.2k

                          Topics

                          113.0k

                          Posts


                          Copyright 2019 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
                          • OpenHardware.io
                          • Categories
                          • Recent
                          • Tags
                          • Popular