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. Bug Reports
  3. NRF24L01+ problems in 2.1.1 and 2.2.0 Beta
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

NRF24L01+ problems in 2.1.1 and 2.2.0 Beta

Scheduled Pinned Locked Moved Bug Reports
49 Posts 9 Posters 10.1k Views 12 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.
  • gohanG gohan

    @miljume said in NRF24L01+ problems in 2.1.1 and 2.2.0 Beta:

    ./configure --my-transport=nrf24
    ./configure --my-gateway=ethernet --my-port=5003

    it should be on a single line like this

    ./configure --my-transport=nrf24 --my-gateway=ethernet --my-port=5003
    

    --my-controller-ip-address=127.0.0.1 is not needed

    miljumeM Offline
    miljumeM Offline
    miljume
    wrote on last edited by
    #15

    @gohan Now I have tried compiling it with one line command but the GW still don't start with 2.1.1

    ./configure --my-transport=nrf24 --my-gateway=ethernet --my-port=5003
    
    mysgw: Starting gateway...
    mysgw: Protocol version - 2.1.1
    mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=1
    mysgw: TSM:FAIL:PDT
    
    YveauxY 1 Reply Last reply
    0
    • miljumeM miljume

      @gohan Now I have tried compiling it with one line command but the GW still don't start with 2.1.1

      ./configure --my-transport=nrf24 --my-gateway=ethernet --my-port=5003
      
      mysgw: Starting gateway...
      mysgw: Protocol version - 2.1.1
      mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
      mysgw: TSM:INIT
      mysgw: TSF:WUR:MS=0
      mysgw: !TSM:INIT:TSP FAIL
      mysgw: TSM:FAIL:CNT=1
      mysgw: TSM:FAIL:PDT
      
      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #16

      @miljume I see alternating !TSM:INIT:TSP Fail and TSM:INIT:TSP OK in your logs.
      The fails indicate a failure to communicate with the radio module.
      Is there a pattern in these fails between software versions?

      http://yveaux.blogspot.nl

      miljumeM 1 Reply Last reply
      0
      • YveauxY Yveaux

        @miljume I see alternating !TSM:INIT:TSP Fail and TSM:INIT:TSP OK in your logs.
        The fails indicate a failure to communicate with the radio module.
        Is there a pattern in these fails between software versions?

        miljumeM Offline
        miljumeM Offline
        miljume
        wrote on last edited by miljume
        #17

        @Yveaux The FAIL´s all occur with 2.1.1 and the OK is with 2.2.0 Beta. Same radio connections for both so the FAIL´s should not be connected to communication with the radio module. I have also tried 3 radios and 2 different ways of connecting them (Shield and Dupont cables) Even if 2.2.0 starts OK the problem is that it for the Ethernet GW it fails to connect

        mysgw: Starting gateway...
        mysgw: Protocol version - 2.2.0-beta
        mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-beta
        mysgw: TSF:LRT:OK
        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: connect: Connection refused
        mysgw: failed to connect
        mysgw: Eth: connect
        mysgw: connect: Connection refused
        mysgw: failed to connect
        mysgw: Eth: connect
        

        And for the Serial GW it gives the following error in Domoticz

        2017-10-10 18:43:07.538 MySensors: Using serial port: /dev/ttyUSB020
        2017-10-10 18:43:07.538 Error: Serial Port closed!... Error: End of file
        2017-10-10 18:43:08.538 MySensors: retrying in 30 seconds...
        

        None of them picks up sensor reports

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #18

          Do you have a spare microsd and try a clean install ?

          miljumeM 1 Reply Last reply
          0
          • gohanG gohan

            Do you have a spare microsd and try a clean install ?

            miljumeM Offline
            miljumeM Offline
            miljume
            wrote on last edited by
            #19

            @gohan I have tried a clean install both with Rapbian Stretch and Raspbian Jessie but the results are the same

            1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #20

              Did you check if spi is enabled in configuration? Sorry for stupid questions, but I need to broaden the search for the issue

              W miljumeM 2 Replies Last reply
              0
              • gohanG gohan

                Did you check if spi is enabled in configuration? Sorry for stupid questions, but I need to broaden the search for the issue

                W Offline
                W Offline
                wergeld
                wrote on last edited by
                #21

                @gohan, I can only speak for me but I have done the following on my RPi 2 B:
                Changed out radios
                Used shield for radio or just straight wiring to radio
                New flash of latest minimal Raspbian
                Enabled SPI

                And various combinations of those. Maybe something broke in an update to Raspbian or some other change to the mysensors repo?

                1 Reply Last reply
                0
                • gohanG gohan

                  Did you check if spi is enabled in configuration? Sorry for stupid questions, but I need to broaden the search for the issue

                  miljumeM Offline
                  miljumeM Offline
                  miljume
                  wrote on last edited by
                  #22

                  @gohan Yes, otherwise it fails already during build

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    arraWX
                    wrote on last edited by
                    #23
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      arraWX
                      wrote on last edited by arraWX
                      #24

                      With 2.1.1 I have the exact same problems.

                      However, everything seems to be fine with 2.2.0 Beta:

                      git clone https://github.com/mysensors/MySensors.git --branch development
                      cd MySensors
                      ./configure --my-transport=nrf24 --my-gateway=ethernet --my-port=5003 --my-rf24-pa-level=RF24_PA_MAX
                      make
                      

                      In domoticz:
                      0_1508010294046_Udklip.PNG

                      The result:

                      pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw -d
                      mysgw: Starting gateway...
                      mysgw: Protocol version - 2.2.0-beta
                      mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-beta
                      mysgw: TSF:LRT:OK
                      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
                      mysgw: TSF:MSG:READ,2-2-0,s=1,c=1,t=0,pt=7,l=5,sg=0:24.0
                      mysgw: TSF:MSG:READ,2-2-0,s=2,c=1,t=1,pt=2,l=2,sg=0:58
                      

                      After success with 2.2.0 Beta I tried to go back to 2.1.1. However, it still does not work.

                      I am on rpi3 and use a socket adapter board for the radio.

                      1 Reply Last reply
                      2
                      • W Offline
                        W Offline
                        wergeld
                        wrote on last edited by
                        #25

                        So, I did a lot of re-configuring and using 2.2.0 beta when a node sends a value payload (in my case a temp/humidity/battery value I get this while running my RPi ethernet gateway in debug:

                        mysgw: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                        mysgw: TSF:MSG:BC
                        mysgw: TSF:MSG:FPAR REQ,ID=3
                        mysgw: TSF:CKU:OK,FCTRL
                        mysgw: TSF:MSG:GWL OK
                        mysgw: !TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
                        mysgw: TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                        mysgw: TSF:MSG:BC
                        mysgw: TSF:MSG:FPAR REQ,ID=3
                        mysgw: TSF:CKU:OK,FCTRL
                        mysgw: TSF:MSG:GWL OK
                        

                        This continues until I kill the process. In the middle of all of these error messages though, it also reports client PING events:

                        mysgw: Client 0: 0;0;3;0;18;PING
                        

                        Other interesting items of note:
                        Domoticz says the values for temp have not been updated for 3+ hours for that node.
                        Domoticz says that node only has a temp sensor.
                        MYSController reports it having 2 sensors (temp and humidity) and it reports the values when i would expect them to be sent (ie, not 3+ hours old but updated continuously when temp changes).

                        I am at my wits end here.

                        1 Reply Last reply
                        0
                        • gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #26

                          NACK on the gateway usually means that the radio module is not powered correctly or there is a range issue (or you didn't set max tx power on the gateway)

                          W 1 Reply Last reply
                          0
                          • W Offline
                            W Offline
                            wergeld
                            wrote on last edited by
                            #27

                            This is getting odder and odder.
                            I am running 2.2.1 beta on my RPi2B. It is running on channel 76, with power max, and using ethernet gateway config.
                            I have MYSController running on separate laptop and it is seeing updates to temp/hum and/or battery level. However, neither Domoticz or OpenHab2 have seen a change since last night at 9pm.

                            In Domoticz - Setup - Hardware - Mysensors 2.2.0 Gateway it shows 2 nodes. First node is the gateway, of course, and the second is the sensor node. The data and the last seen times are correct! But, the Domoticz - Setup - Device list only shows the Temp sesnor and a last seen date of last night at 9pm. There are not other mysensors devices available.
                            So, what is different between MYSControler and Domoticz and OpenHab?

                            1 Reply Last reply
                            0
                            • gohanG gohan

                              NACK on the gateway usually means that the radio module is not powered correctly or there is a range issue (or you didn't set max tx power on the gateway)

                              W Offline
                              W Offline
                              wergeld
                              wrote on last edited by
                              #28

                              @gohan This doesnt really make sense to me. This happens after I get data from a sensor and the gateway gets stuck in a loop of those messages. MYSControler shows the correct value that triggered these messages while OpenHab and Domoticz do not.

                              1 Reply Last reply
                              0
                              • gohanG Offline
                                gohanG Offline
                                gohan
                                Mod
                                wrote on last edited by
                                #29

                                Do you have capacitors on the radio modules? If you move the node closer to the gateway (3/4 meters apart) , does it work better?

                                W 1 Reply Last reply
                                0
                                • gohanG gohan

                                  Do you have capacitors on the radio modules? If you move the node closer to the gateway (3/4 meters apart) , does it work better?

                                  W Offline
                                  W Offline
                                  wergeld
                                  wrote on last edited by
                                  #30

                                  @gohan Yes, capacitors on both the node(s) and the gateway radios. Moving the nodes closer to gateway has no affect. The gateway is sending out udpates (per MYSControler at least) but Domoticz sees no new devices and OpenHab has not seen an update either. So frustrating.

                                  1 Reply Last reply
                                  0
                                  • gohanG Offline
                                    gohanG Offline
                                    gohan
                                    Mod
                                    wrote on last edited by
                                    #31

                                    Try to stop the gateway and run it with debug from console and c'è if you see any NACK occurring, also on the node if you can, because probably the controller is not accepting messages with NACK. If you can, try to make another arduino based gateway and see if you still get same errors. Keep in mind that if radio modules are not genuine you have to consider they are the cause of your problems.

                                    W 1 Reply Last reply
                                    0
                                    • gohanG gohan

                                      Try to stop the gateway and run it with debug from console and c'è if you see any NACK occurring, also on the node if you can, because probably the controller is not accepting messages with NACK. If you can, try to make another arduino based gateway and see if you still get same errors. Keep in mind that if radio modules are not genuine you have to consider they are the cause of your problems.

                                      W Offline
                                      W Offline
                                      wergeld
                                      wrote on last edited by
                                      #32

                                      @gohan unable to run my node in debug with radio attached at the moment (no 3.3v FTDI or mosfets available right now).
                                      But, that being said - the MYSControler does get the updated values. Just not Domoticz or OpenHab. So, why does one client connecting to the gateway get data while the other two do not?

                                      1 Reply Last reply
                                      0
                                      • gohanG Offline
                                        gohanG Offline
                                        gohan
                                        Mod
                                        wrote on last edited by
                                        #33

                                        Myscontroller doesn't see all debug messages. Get a ftdi adapter quickly 😁

                                        W 1 Reply Last reply
                                        0
                                        • gohanG gohan

                                          Myscontroller doesn't see all debug messages. Get a ftdi adapter quickly 😁

                                          W Offline
                                          W Offline
                                          wergeld
                                          wrote on last edited by
                                          #34

                                          @gohan Yea, I have one on order taking the slow boat from China. But, it bothers me that MYSControler "gets" the sensor node values and the other controlers do not. Same IP config. And the weird NACK errors. Something just seems screwy as this hardware was working up until about 3 months ago - no changes made.

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


                                          9

                                          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