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. Controllers
  3. [Tutorial] Raspberry Pi NRF24l01 direct connection

[Tutorial] Raspberry Pi NRF24l01 direct connection

Scheduled Pinned Locked Moved Controllers
raspberry pinrf24l01
56 Posts 32 Posters 85.9k Views 24 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.
  • A Andreas Maurer

    ? Are you using the code that is available on github now?

    This behavior was Change by Holger a month ago. You can configure the Groups in the makefile:


    The standard configuration will build the Serial Gateway with a tty name of
    '/dev/ttyMySensorsGateway' and PTS group ownership of 'tty' the PTS will be group read
    and write. The default install location will be /usr/local/sbin. If you want to change
    that edit the variables in the head of the Makefile.


    Sander TeunissenS Offline
    Sander TeunissenS Offline
    Sander Teunissen
    wrote on last edited by
    #8

    @Andreas-Maurer Thanks for the quick answer. I used the code from github. I am going to check your suggestions tonight. (right now I am at work ;-)

    Sander.

    1 Reply Last reply
    0
    • Roberto BrunialtiR Offline
      Roberto BrunialtiR Offline
      Roberto Brunialti
      wrote on last edited by
      #9

      Sorry for my naive question: does it means I ca use a raspi as a nrd24l01 based gateway?

      Sander TeunissenS 1 Reply Last reply
      0
      • Roberto BrunialtiR Roberto Brunialti

        Sorry for my naive question: does it means I ca use a raspi as a nrd24l01 based gateway?

        Sander TeunissenS Offline
        Sander TeunissenS Offline
        Sander Teunissen
        wrote on last edited by Sander Teunissen
        #10

        @Roberto-Brunialti Yes. Works perfectly ! (apart from the root access ;-)
        As stated by blksun813 you need to "sudo make install in the librf24-bcm folder". (add the sudo...)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andriej
          wrote on last edited by andriej
          #11

          I'm currently at work, but there's a question: will it run on orangepi? (bananapi-like clone of RPi)
          I'll take a look at the code and try to manage... GPIOs are working almost the same (it's compatible).

          Maybe if I make a diff-file of things changed, you will be able to merge it and do some 'ifs' so code will be clone-compatible?

          Oh well... The library has -bcm in name so I guess it will be rather hard to get it to work...

          :-)

          1 Reply Last reply
          0
          • A Andreas Maurer

            ? Are you using the code that is available on github now?

            This behavior was Change by Holger a month ago. You can configure the Groups in the makefile:


            The standard configuration will build the Serial Gateway with a tty name of
            '/dev/ttyMySensorsGateway' and PTS group ownership of 'tty' the PTS will be group read
            and write. The default install location will be /usr/local/sbin. If you want to change
            that edit the variables in the head of the Makefile.


            Sander TeunissenS Offline
            Sander TeunissenS Offline
            Sander Teunissen
            wrote on last edited by
            #12

            @Andreas-Maurer

            to run the gateway:
            sudo ./PiGatewaySerial (without sudo I get the error below)

            Could not create a symlink '/dev/ttyMySensorsGateway' to PTY! (13) Permission denied
            

            running:
            ls -l ttyMySensorsGateway

            gives the following:

            lrwxrwxrwx 1 root root 10 May  7 17:27 ttyMySensorsGateway -> /dev/pts/2
            

            I checked the makefile and it says

            TTY_GROUPNAME := tty

            But it doesn't seem to do anything...Any ideas ?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Andreas Maurer
              wrote on last edited by
              #13

              The symlink alwayshas 777. Everyone can use it.
              Please have a look at /dev/pts/2 This device should have the configured groups.

              Ok?

              Sander TeunissenS 1 Reply Last reply
              0
              • A Andreas Maurer

                The symlink alwayshas 777. Everyone can use it.
                Please have a look at /dev/pts/2 This device should have the configured groups.

                Ok?

                Sander TeunissenS Offline
                Sander TeunissenS Offline
                Sander Teunissen
                wrote on last edited by
                #14

                @Andreas-Maurer said:

                The symlink alwayshas 777. Everyone can use it.
                Please have a look at /dev/pts/2 This device should have the configured groups.

                Ok?

                Yes. Ok!
                It works.
                Thanks !

                1 Reply Last reply
                0
                • SweebeeS Offline
                  SweebeeS Offline
                  Sweebee
                  wrote on last edited by
                  #15

                  I tested it on my Rpi B+ its working fine, but the cpu load is always 100%. Is this normal?

                  joaoabsJ 1 Reply Last reply
                  0
                  • Roberto BrunialtiR Offline
                    Roberto BrunialtiR Offline
                    Roberto Brunialti
                    wrote on last edited by
                    #16

                    An other silly question: can I install a controller into the same raspberry pi (the one with this gateway and nrf )? Are all controllers suitable for such a configuration ?
                    Thanks!

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      Andreas Maurer
                      wrote on last edited by
                      #17

                      For my Point of view, every Controller which is able to use the Serial Gateway.

                      1 Reply Last reply
                      0
                      • SweebeeS Sweebee

                        I tested it on my Rpi B+ its working fine, but the cpu load is always 100%. Is this normal?

                        joaoabsJ Offline
                        joaoabsJ Offline
                        joaoabs
                        wrote on last edited by
                        #18

                        @Sweebee

                        Same here. I'm afraid that with the PI at 100% there is no much use of this code becasue we can't do anything else...

                        Strange that the PI that is much powerfull than an arduino gets so high CPU for something that an arduino nano can do...

                        Could it be something that could be improved?

                        Cheers,
                        Joaoabs

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          Andreas Maurer
                          wrote on last edited by
                          #19

                          I have no problem with it. fhem as controler and mysql as DB is running on the same PI.
                          The Gateway is not even listed in "top"

                          joaoabsJ 1 Reply Last reply
                          0
                          • A Andreas Maurer

                            I have no problem with it. fhem as controler and mysql as DB is running on the same PI.
                            The Gateway is not even listed in "top"

                            joaoabsJ Offline
                            joaoabsJ Offline
                            joaoabs
                            wrote on last edited by
                            #20

                            @Andreas-Maurer

                            Do you mean you don't have any problems with the fact the CPU is at 100% or you simply don't have the same sympthom?

                            Thanks for replying,
                            Joaoabs

                            1 Reply Last reply
                            0
                            • H Offline
                              H Offline
                              hawk_2050
                              wrote on last edited by
                              #21

                              Hi,

                              I think the problem with the PiGatewaySerial showing as consuming 100% is not a real problem. I also see the CPU consuming 100% using the top utility, however as soon as you run another process, for example a user python script, on the Pi, you will notice that top will suddenly report that PiGatewaySerial is using only a few percent of the CPU.

                              Cheers
                              Richard

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                markusand
                                wrote on last edited by
                                #22

                                Hi! I want to use RPi as a controller, with direct radio connection and pimatic. I've followed both posts but not sure how to make it work together. I know @Vladut-Grecu is using the same configuration, could you please point me to the right direction?

                                1 Reply Last reply
                                0
                                • Roberto BrunialtiR Offline
                                  Roberto BrunialtiR Offline
                                  Roberto Brunialti
                                  wrote on last edited by Roberto Brunialti
                                  #23

                                  Ok. It seems the gateway is working as i get the same final screen when I run it. But... does it has a verbose mode? How can I know If it is working? I tried with a test node, unfortunately it seems not working ... or simply it does'nt give any feedback...

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    minscof
                                    wrote on last edited by minscof
                                    #24

                                    I used this gateway on a wheezy debian (RPI2) for several months and everything was ok. I upgraded my raspbian to jessie, and then the CPU load was always 100%. So I try to revert to wheezy, but i have now the same problem : CPU stays at 100 % .

                                    So there must be a system configuration somewhere to improve this gateway and prevent it to use all the CPU.

                                    Do you have an idea ?

                                    Thanks

                                    **Solved **: see this post

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      davy39
                                      wrote on last edited by
                                      #25

                                      Hi,
                                      I'm trying to setup a direct connection between domoticz and /dev/ttyMySensorsGateway
                                      Waiting for my hardware (no NRF24l01 attached yet), I'm actually playing around with the software part.
                                      I did install Domoticz and MySensorsGateway on the Pi and I'm getting a /dev/ttyMySensorsGateway symlink at boot time.

                                      The problem is that I can't see it on domoticz interface when trying to choose a serial port on "Mysensors gateway USB" device : only /dev/ttyAMA0 ....

                                      Is that because no NRF24 is connected or there is a specific configuration to make /dev/ttyMySensorsGateway appearing as a serial port (chown, udev ....)

                                      Thanks for your help

                                      1 Reply Last reply
                                      0
                                      • fetsF Offline
                                        fetsF Offline
                                        fets
                                        wrote on last edited by
                                        #26

                                        Hi everybody,
                                        I'm new in mysensors world and I would like to use my pi2 with direct connection to nrf24l01.
                                        There is a new release of the arduino library but I can't find the raspberry one.
                                        Somebody knows if it exists and where to find it ?

                                        I also tried to find an example of using raspberry as mqtt gateway without success, any ideabut was not able to find an example

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

                                          You could probably run the old one.

                                          Ideally I would like to have the same code-base for RPi but someone needs to help implement the HW-implementation-class.

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


                                          30

                                          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