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. Development
  3. Problem with Rpi mqtt gateway
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Problem with Rpi mqtt gateway

Scheduled Pinned Locked Moved Development
18 Posts 5 Posters 3.3k Views 5 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.
  • T tchoblond59

    Hello ! I am new in MySensors project and i follow this guide

    But i get this error message when launch mysgw

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0-beta
    mysgw: MCO:BGN:INIT GW,CP=RNNG----,VER=2.2.0-beta
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: !TSM:INIT:TSP FAIL
    mysgw: TSM:FAIL:CNT=1
    mysgw: TSM:FAIL:DIS
    mysgw: TSF:TDI:TSL
    

    I double check the wiring, SPI is activated, my NRF24L01 module works on an Arduino and mosquitto works fine on my Rpi.

    Did i miss something ?

    mfalkviddM Online
    mfalkviddM Online
    mfalkvidd
    Mod
    wrote on last edited by
    #2

    @tchoblond59 the gateway software is unable to communicate with the nrf. Are you using a PA+LNA version? If so, you'll need a separate power source. If you can upload a picture of your wiring that might help us help you.

    rozpruwaczR 1 Reply Last reply
    0
    • T Offline
      T Offline
      tchoblond59
      wrote on last edited by
      #3

      I try both PA+NLA and the other. I know about the power issue and i also add a little capacitor betwenn VCC and GND.

      That's hard to take a photo of this but...

      Thanks for the help0_1497952514893_20170620_115410[1].jpg
      0_1497952530717_20170620_115335[1].jpg

      1 Reply Last reply
      0
      • mfalkviddM Online
        mfalkviddM Online
        mfalkvidd
        Mod
        wrote on last edited by
        #4

        Where do the red, grey, black and black cables from pin 2, 3, 4 and 7 on the Pi go?

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

          I strongly suggest try with a voltage regulator and a capacitor

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tchoblond59
            wrote on last edited by
            #6

            They go on the official rpi screen 7"

            I try to power the nrf24 from an arduino. Is it enough or should i try with dedicated power supply ?

            My capacitor is 100uF is it enough ?

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tchoblond59
              wrote on last edited by
              #7

              Wow you were right... I connect it on another Raspberry without screen and it seems to work.

              Now i'am gonna try to build my first arduino node to make some test and debug with mqtt.

              (The project behind this is to build a home made controller based on Laravel (php framework) to control my house)

              Thanks guys !

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

                I am using the adapters for NRF24 that are on gearbest and so far I'am happy: they have voltage regulator, capacitor and a 2x4 pin socket for quickly replace the radio module.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tchoblond59
                  wrote on last edited by
                  #9

                  Ok. I'am just using it like this for testing. When i will be ready i'am gonna make or buy an all in one hat for my rpi. But i'am gonna look at your nrf24 socket

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

                    I like those because I can test different modules very quickly

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      tchoblond59
                      wrote on last edited by
                      #11

                      Can you post the link ?

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

                        http://www.gearbest.com/transmitters-receivers-module/pp_453011.html

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          rhannink
                          wrote on last edited by
                          #13
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • mfalkviddM mfalkvidd

                            @tchoblond59 the gateway software is unable to communicate with the nrf. Are you using a PA+LNA version? If so, you'll need a separate power source. If you can upload a picture of your wiring that might help us help you.

                            rozpruwaczR Offline
                            rozpruwaczR Offline
                            rozpruwacz
                            wrote on last edited by
                            #14

                            @mfalkvidd said in Problem with Rpi mqtt gateway:

                            LNA

                            why is that ? How much current the PA+LNA version consumes ? a have PA+LNA module connected directly to the 3.3V pi power pin and it works without problems. And actually during nrf initialization the amplifiers are disabled so the power consumptyion is much lower, this can;t be the cause of the initialization problem.

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

                              not all rpi are built equal and not all nrf24 modules are the same :)

                              1 Reply Last reply
                              0
                              • rozpruwaczR Offline
                                rozpruwaczR Offline
                                rozpruwacz
                                wrote on last edited by
                                #16

                                I suppose You're right :P

                                1 Reply Last reply
                                0
                                • mfalkviddM Online
                                  mfalkviddM Online
                                  mfalkvidd
                                  Mod
                                  wrote on last edited by
                                  #17

                                  Running electronics outside of the specification results in undefined behavior. That means that it sometimes works and sometimes not. And often it half-works.

                                  1 Reply Last reply
                                  0
                                  • rozpruwaczR Offline
                                    rozpruwaczR Offline
                                    rozpruwacz
                                    wrote on last edited by
                                    #18

                                    yes, I understand that, I have a masters degree in electronics ;) but rpi has 1A capable buck converter on 3.3V rail so the question is how much current consumes the PA+LNA nrf module so it may not fit into the power budget ?

                                    1 Reply Last reply
                                    0
                                    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.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