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. Announcements
  3. 💬 Building a Raspberry Pi Gateway

💬 Building a Raspberry Pi Gateway

Scheduled Pinned Locked Moved Announcements
1.1k Posts 173 Posters 423.1k Views 131 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.
  • eyesoftE Offline
    eyesoftE Offline
    eyesoft
    wrote on last edited by
    #214

    @marceloaqno

    git clone https://github.com/TMRh20/RF24.git
    cd RF24
    ./configure
    [SECTION] Detecting arm compilation environment.
    [OK] arm-linux-gnueabihf-gcc detected.
    [OK] arm-linux-gnueabihf-g++ detected.
    [SECTION] Detecting target machine.
    [OK] machine detected: SoC=A20, Type=unknown, CPU=armv7l.
    [SECTION] Detecting DRIVER
    [OK] DRIVER detected:SPIDEV.
    [SECTION] Detecting OS.
    [INFO] OS detected:LINUX.
    [SECTION] Preparing configuration.
    [SECTION] Saving configuration.
    [SECTION] Cleaning previous builds.
    [OK] Finished.

    make
    arm-linux-gnueabihf-g++ -fPIC -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -Ofast -Wall -pthread -c RF24.cpp
    arm-linux-gnueabihf-g++ -fPIC -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -Ofast -Wall -pthread -c utility/SPIDEV/spi.cpp
    arm-linux-gnueabihf-g++ -fPIC -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -Ofast -Wall -pthread -c utility/SPIDEV/gpio.cpp
    arm-linux-gnueabihf-gcc -fPIC -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -Ofast -Wall -pthread -c utility/SPIDEV/compatibility.c
    arm-linux-gnueabihf-g++ -fPIC -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -Ofast -Wall -pthread -c utility/SPIDEV/interrupt.c
    [Linking]
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-soname,librf24.so.1 -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -Ofast -Wall -pthread -o librf24.so.1.2.0 RF24.o spi.o gpio.o compatibility.o interrupt.o

    1 Reply Last reply
    1
    • OliO Oli

      How can I update MySensors Gateway from 2.1.0 beta to 2.1.0 stable/final release?

      M Offline
      M Offline
      marceloaqno
      Code Contributor
      wrote on last edited by
      #215

      @Oli After these steps:

      git clone https://github.com/mysensors/MySensors.git
      cd MySensors
      

      to switch to the master branch, run:

      git checkout master
      

      and reinstall the gateway following the same steps from the instructions.

      1 Reply Last reply
      1
      • eyesoftE Offline
        eyesoftE Offline
        eyesoft
        wrote on last edited by
        #216

        @marceloaqno
        i've tried on banana pi pro :

        cat /etc/debian_version
        8.6
        cat /etc/bananian_platform
        BananaPro

        M 1 Reply Last reply
        0
        • eyesoftE eyesoft

          @marceloaqno
          i've tried on banana pi pro :

          cat /etc/debian_version
          8.6
          cat /etc/bananian_platform
          BananaPro

          M Offline
          M Offline
          marceloaqno
          Code Contributor
          wrote on last edited by
          #217

          @eyesoft thanks for the feedback, we need to add support for SPIDEV driver in order to use the BananaPi.

          jirmJ 1 Reply Last reply
          1
          • M marceloaqno

            @jirm The configure script from MySensor repo is based on the https://github.com/TMRh20/RF24/blob/master/configure. Could you try with theTMRh20 master branch and post the result?

            git clone https://github.com/TMRh20/RF24.git
            cd RF24
            ./configure
            make
            
            jirmJ Offline
            jirmJ Offline
            jirm
            wrote on last edited by jirm
            #218

            @marceloaqno Sadly I´m so much bussy and traveling for few days and cannot acces to my OPI´s :-( , but I´m sure someone here (@aand , @hausinger, etc.. ) can give a try on her OPI the things we said before. At least I hope this ...

            1 Reply Last reply
            0
            • M marceloaqno

              @eyesoft thanks for the feedback, we need to add support for SPIDEV driver in order to use the BananaPi.

              jirmJ Offline
              jirmJ Offline
              jirm
              wrote on last edited by jirm
              #219

              @marceloaqno I see some huge steps up on BananaPi...seems only need add SPIDEV support for make it working... :-)

              1 Reply Last reply
              0
              • OliO Offline
                OliO Offline
                Oli
                wrote on last edited by
                #220

                @marceloaqno I am rather copy/paste not a programming kind a guy, so sorry for my lame questions.

                pi@raspberrypi ~ $ git clone https://github.com/mysensors/MySensors.git
                fatal: destination path 'MySensors' already exists and is not an empty directory

                pi@raspberrypi ~/MySensors $ git checkout master
                Branch master set up to track remote branch master from origin.
                Switched to a new branch 'master'

                but after that:

                pi@raspberrypi ~/MySensors $ make
                make: *** No targets specified and no makefile found. Stop.
                pi@raspberrypi ~/MySensors $ sudo make install
                make: *** No rule to make target 'install'. Stop.

                1 Reply Last reply
                0
                • eyesoftE Offline
                  eyesoftE Offline
                  eyesoft
                  wrote on last edited by
                  #221

                  @Oli ... try :
                  ./configure
                  make
                  sudo make install

                  1 Reply Last reply
                  0
                  • OliO Offline
                    OliO Offline
                    Oli
                    wrote on last edited by
                    #222

                    @eyesoft same errors

                    jirmJ 1 Reply Last reply
                    0
                    • eyesoftE Offline
                      eyesoftE Offline
                      eyesoft
                      wrote on last edited by
                      #223

                      @Oli see commands above how to Install and Build, with git checkout master you are on master if you :
                      cat README.md
                      MySensors Library v2.1.0

                      default on git clone you are on development :
                      cat README.md
                      MySensors Library v2.2.0-beta

                      1 Reply Last reply
                      0
                      • OliO Oli

                        @eyesoft same errors

                        jirmJ Offline
                        jirmJ Offline
                        jirm
                        wrote on last edited by jirm
                        #224

                        @Oli First you need delete all Mysensors directory on your machine.
                        Then use step by step the guide on Mysensors Gateway installation process:
                        https://www.mysensors.org/build/raspberry
                        Dont forget put command sudo on sentences if needed.

                        Regards

                        1 Reply Last reply
                        0
                        • OliO Offline
                          OliO Offline
                          Oli
                          wrote on last edited by
                          #225

                          I wanna update not to re install of MySensors. I thought about something like ./updaterelease or ./updatebeta... I spend hours of make it work before, so I leave it as it is. No time or nerves for fighting next couple of days.

                          mfalkviddM jirmJ 2 Replies Last reply
                          0
                          • OliO Oli

                            I wanna update not to re install of MySensors. I thought about something like ./updaterelease or ./updatebeta... I spend hours of make it work before, so I leave it as it is. No time or nerves for fighting next couple of days.

                            mfalkviddM Offline
                            mfalkviddM Offline
                            mfalkvidd
                            Mod
                            wrote on last edited by mfalkvidd
                            #226

                            @Oli what did you have to do to make it work? It should just be a matter of following the instructions that @jirm linked to.

                            EDIT: Since you already have the MySensors repo cloned from git, you can update by running

                            pi@raspberrypi ~/MySensors $ git pull
                            

                            Than run configure, make, etc as per the original instructions.

                            1 Reply Last reply
                            0
                            • OliO Offline
                              OliO Offline
                              Oli
                              wrote on last edited by
                              #227

                              @mfalkvidd I could not find ttyMySensorsGateway on Domoticz. Only ttyUSB0, ttyUSB20 and ttyAMA0. Even after I did ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway

                              mfalkviddM 1 Reply Last reply
                              0
                              • OliO Oli

                                @mfalkvidd I could not find ttyMySensorsGateway on Domoticz. Only ttyUSB0, ttyUSB20 and ttyAMA0. Even after I did ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway

                                mfalkviddM Offline
                                mfalkviddM Offline
                                mfalkvidd
                                Mod
                                wrote on last edited by
                                #228

                                @Oli so what did you do to make it work?

                                1 Reply Last reply
                                0
                                • OliO Oli

                                  I wanna update not to re install of MySensors. I thought about something like ./updaterelease or ./updatebeta... I spend hours of make it work before, so I leave it as it is. No time or nerves for fighting next couple of days.

                                  jirmJ Offline
                                  jirmJ Offline
                                  jirm
                                  wrote on last edited by jirm
                                  #229

                                  @Oli I´m thinking is hard to "only" update (changing from develop to master branch) directly from github if the repository is not been previously prepared to do this kind of updates... but maybe I´m wrong.

                                  Will be good you give feedback if you get it.

                                  Cheers

                                  jirmJ 1 Reply Last reply
                                  0
                                  • OliO Offline
                                    OliO Offline
                                    Oli
                                    wrote on last edited by
                                    #230

                                    @mfalkvidd hah... thats a good question, don't know. After dozen or more reinstallations, spending hours on Google I finally make it work. Got some notes but frankly I am worrying it will happen again. Hahaha

                                    mfalkviddM 1 Reply Last reply
                                    0
                                    • OliO Oli

                                      @mfalkvidd hah... thats a good question, don't know. After dozen or more reinstallations, spending hours on Google I finally make it work. Got some notes but frankly I am worrying it will happen again. Hahaha

                                      mfalkviddM Offline
                                      mfalkviddM Offline
                                      mfalkvidd
                                      Mod
                                      wrote on last edited by
                                      #231

                                      @Oli ah, ok. Then I'd recommend backing up everything before doing git pull, configure, make, etc so you can restore if it stops working.

                                      1 Reply Last reply
                                      0
                                      • jirmJ jirm

                                        @Oli I´m thinking is hard to "only" update (changing from develop to master branch) directly from github if the repository is not been previously prepared to do this kind of updates... but maybe I´m wrong.

                                        Will be good you give feedback if you get it.

                                        Cheers

                                        jirmJ Offline
                                        jirmJ Offline
                                        jirm
                                        wrote on last edited by jirm
                                        #232

                                        @Oli :-) :-)
                                        Good !
                                        I like when people can make something work that nobody even knows what it is :-)

                                        For me it usually happens just the opposite I am not able to make work even the things I know perfectly well ... maybe it will be a matter of "bad karma" :-)

                                        1 Reply Last reply
                                        2
                                        • OliO Offline
                                          OliO Offline
                                          Oli
                                          wrote on last edited by
                                          #233

                                          OK, I did it, I f....g did it, and guess what...
                                          s...t happened again.
                                          Everything went as it should, no errors at all, but no ttyUSBMySensorsGateway...
                                          0_1483469802904_Nowy dokument tekstowy.jpg

                                          log error message:
                                          2017-01-03 19:56:38.784 MySensors: Using serial port: /dev/ttyUSBMySensorsGateway
                                          2017-01-03 19:56:38.785 Error: MySensors: Error opening serial port!
                                          2017-01-03 19:56:39.785 MySensors: retrying in 30 seconds...

                                          and again...
                                          and again...
                                          ...

                                          any help would be appreciated.

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


                                          10

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