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 425.3k 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.
  • Flor SandersF Offline
    Flor SandersF Offline
    Flor Sanders
    wrote on last edited by
    #172

    I got the previous problem out of the way for now...
    Now onto the next one.

    I started a node and now I can clearly see data being sent and received on my serial log and ssh. (See picture)
    0_1482941358792_upload-08fe5f75-3536-4fb5-a0f4-2ee7d0edbc6a

    So I tried adding the gateway to domoticz using following settings:
    0_1482941417649_upload-ce92a80a-a5aa-4713-bfe8-227c71b8ce72

    Yet if I check hardware setup I can see no nodes being presented.
    0_1482941455435_upload-e36e2fbf-ac80-4381-895d-293e6e638ead

    Are there settings or steps I missed?
    Greetings
    Flor

    TigroenotT 1 Reply Last reply
    0
    • Flor SandersF Flor Sanders

      I got the previous problem out of the way for now...
      Now onto the next one.

      I started a node and now I can clearly see data being sent and received on my serial log and ssh. (See picture)
      0_1482941358792_upload-08fe5f75-3536-4fb5-a0f4-2ee7d0edbc6a

      So I tried adding the gateway to domoticz using following settings:
      0_1482941417649_upload-ce92a80a-a5aa-4713-bfe8-227c71b8ce72

      Yet if I check hardware setup I can see no nodes being presented.
      0_1482941455435_upload-e36e2fbf-ac80-4381-895d-293e6e638ead

      Are there settings or steps I missed?
      Greetings
      Flor

      TigroenotT Offline
      TigroenotT Offline
      Tigroenot
      wrote on last edited by
      #173

      @Flor-Sanders I think you maybe should choose not USB but Ethernet gateway in domoticz.

      1 Reply Last reply
      1
      • Flor SandersF Offline
        Flor SandersF Offline
        Flor Sanders
        wrote on last edited by
        #174

        @Tigroenot
        That fixed it indeed XD
        Thanks for helping me out

        1 Reply Last reply
        1
        • P pettib

          Hi everyone.
          I´m trying to build a new homeController with the following parts / software.

          Raspberry Pi 3
          Home Assistant
          MySensors
          Tellstick
          Mosquitto MQTT Broker

          I got everything working beside the MySensors. I´m trying to connect the NRF 24L01+ chip directly to the RPI with help from https://www.mysensors.org/build/raspberry.

          I want to use MQTT between MySensors and HomeAssistant
          The MQTT broker is working when i´m testing it.
          The Mosquitto is configurated with username and Password in the config of Mosquitto.

          The config i´m using when Make Mysensors is the following:
          ./configure --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-transport=nrf24 --my-rf24-irq-pin=15

          I also changed in the file /examples_linux/mysgw.cpp
          #define MY_MQTT_USER "My User"
          #define MY_MQTT_PASSWORD "My Password"

          When i´m running the command: sudo systemctl status mysgw I got following result.

          ● mysgw.service - MySensors Gateway daemon
          Loaded: loaded (/etc/systemd/system/mysgw.service; enabled)
          Active: active (running) since tis 2016-12-27 18:52:34 CET; 25min ago
          Main PID: 1405 (mysgw)
          CGroup: /system.slice/mysgw.service
          └─1405 /usr/local/bin/mysgw

          dec 27 19:18:10 HomeAssistant mysgw[1405]: failed to connect
          dec 27 19:18:10 HomeAssistant mysgw[1405]: socket: Too many open files
          dec 27 19:18:10 HomeAssistant mysgw[1405]: failed to connect
          dec 27 19:18:10 HomeAssistant mysgw[1405]: socket: Too many open files
          dec 27 19:18:10 HomeAssistant mysgw[1405]: failed to connect
          dec 27 19:18:10 HomeAssistant mysgw[1405]: socket: Too many open files
          dec 27 19:18:10 HomeAssistant mysgw[1405]: failed to connect
          dec 27 19:18:10 HomeAssistant mysgw[1405]: socket: Too many open files
          dec 27 19:18:10 HomeAssistant mysgw[1405]: failed to connect
          dec 27 19:18:10 HomeAssistant mysgw[1405]: socket: Too many open files

          When trying to run command sudo mysgw -d it shows following info in a endless loop:
          mysgw: Attempting MQTT connection...
          mysgw: connected to 127.0.0.1
          mysgw: Attempting MQTT connection...
          mysgw: connected to 127.0.0.1
          mysgw: Attempting MQTT connection...
          mysgw: connected to 127.0.0.1
          mysgw: Attempting MQTT connection...
          mysgw: connected to 127.0.0.1
          mysgw: Attempting MQTT connection...
          mysgw: connected to 127.0.0.1
          mysgw: Attempting MQTT connection...
          mysgw: connected to 127.0.0.1
          mysgw: Attempting MQTT connection...
          mysgw: connected to 127.0.0.1
          mysgw: Attempting MQTT connection...
          mysgw: connected to 127.0.0.1

          Please help figure this out.

          //PeTi

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

          @pettib Could it be that you are using an old version of Mosquitto?

          mosquitto -h
          
          Flor SandersF 1 Reply Last reply
          0
          • M marceloaqno

            @pettib Could it be that you are using an old version of Mosquitto?

            mosquitto -h
            
            Flor SandersF Offline
            Flor SandersF Offline
            Flor Sanders
            wrote on last edited by
            #176

            @marceloaqno
            How so?
            I've tried running the command you've supplied, but it doesn't work... Do I have to install mosquitto?
            I didn't see it anywhere in the guide.
            Everything is working at the moment, you think it can pose a problem later?

            1 Reply Last reply
            0
            • Robinek70R Offline
              Robinek70R Offline
              Robinek70
              wrote on last edited by
              #177

              Hello everyone,
              I've been working gateway on RPi, but I don't know how to configure MY_SIGNING_SOFT .
              File mysgw.cpp contains MY_SIGNING_SOFT definition and I can uncomment it, but I don't know where and how I should define: SOFT_HMAC_KEY, SOFT_SERIAL and AES_KEY ?
              Could you give more details how to configure soft signing on RPi?
              thanks
              //Robert

              M 1 Reply Last reply
              0
              • aandA Offline
                aandA Offline
                aand
                wrote on last edited by
                #178

                Has anyone successfully built on an Orange Pi One running armbian? RPi running raspbinan is supported, but on my Orange Pi One running armbian I get
                ./MySensors.h:258:2: error: #error No support for nRF24 radio on this platform

                I already have TMRh20's RF24 code running on this system, so I know it's capable.

                T 1 Reply Last reply
                0
                • aandA aand

                  Has anyone successfully built on an Orange Pi One running armbian? RPi running raspbinan is supported, but on my Orange Pi One running armbian I get
                  ./MySensors.h:258:2: error: #error No support for nRF24 radio on this platform

                  I already have TMRh20's RF24 code running on this system, so I know it's capable.

                  T Offline
                  T Offline
                  Tag
                  wrote on last edited by Tag
                  #179

                  @aand

                  working on the same setup, unfortunately was not able to compile the mysensors gateway...
                  this is the error i get:

                  root@orangepizero:~/MySensors# make
                  g++ -MT build/examples_linux/mysgw.o -MMD -MP -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DMY_IS_SERIAL_PTY -Ofast -g -Wall -Wextra -I. -I./core -I./drivers/Linux -c examples_linux/mysgw.cpp -o build/examples_linux/mysgw.o
                  In file included from examples_linux/mysgw.cpp:74:0:
                  ./MySensors.h:258:2: error: #error No support for nRF24 radio on this platform
                  #error No support for nRF24 radio on this platform
                  ^
                  In file included from ./drivers/RF24/RF24.cpp:23:0,
                  from ./MySensors.h:294,
                  from examples_linux/mysgw.cpp:74:
                  ./drivers/RF24/RF24.h:52:17: fatal error: SPI.h: No such file or directory
                  #include <SPI.h>
                  ^
                  compilation terminated.
                  Makefile:98: recipe for target 'build/examples_linux/mysgw.o' failed
                  make: *** [build/examples_linux/mysgw.o] Error 1
                  root@orangepizero:~/MySensors#

                  seems spi is missing...

                  however it seems to be available in the system:

                  root@orangepizero:~/MySensors# ll /dev/spidev0.0
                  crw------- 1 root root 153, 0 Dec 30 16:26 /dev/spidev0.0

                  root@orangepizero:~/MySensors# dmesg | grep -i spi
                  [ 0.814155] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
                  [ 0.814185] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator.
                  [ 0.815261] spi spi0: master is unqueued, this is deprecated

                  setup:
                  Orangepi zero
                  Armbian

                  hope that we get native OPI support soon, any way all help is appreciated!!

                  kind regards,

                  Tag

                  jirmJ 1 Reply Last reply
                  0
                  • T Tag

                    @aand

                    working on the same setup, unfortunately was not able to compile the mysensors gateway...
                    this is the error i get:

                    root@orangepizero:~/MySensors# make
                    g++ -MT build/examples_linux/mysgw.o -MMD -MP -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DMY_IS_SERIAL_PTY -Ofast -g -Wall -Wextra -I. -I./core -I./drivers/Linux -c examples_linux/mysgw.cpp -o build/examples_linux/mysgw.o
                    In file included from examples_linux/mysgw.cpp:74:0:
                    ./MySensors.h:258:2: error: #error No support for nRF24 radio on this platform
                    #error No support for nRF24 radio on this platform
                    ^
                    In file included from ./drivers/RF24/RF24.cpp:23:0,
                    from ./MySensors.h:294,
                    from examples_linux/mysgw.cpp:74:
                    ./drivers/RF24/RF24.h:52:17: fatal error: SPI.h: No such file or directory
                    #include <SPI.h>
                    ^
                    compilation terminated.
                    Makefile:98: recipe for target 'build/examples_linux/mysgw.o' failed
                    make: *** [build/examples_linux/mysgw.o] Error 1
                    root@orangepizero:~/MySensors#

                    seems spi is missing...

                    however it seems to be available in the system:

                    root@orangepizero:~/MySensors# ll /dev/spidev0.0
                    crw------- 1 root root 153, 0 Dec 30 16:26 /dev/spidev0.0

                    root@orangepizero:~/MySensors# dmesg | grep -i spi
                    [ 0.814155] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
                    [ 0.814185] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator.
                    [ 0.815261] spi spi0: master is unqueued, this is deprecated

                    setup:
                    Orangepi zero
                    Armbian

                    hope that we get native OPI support soon, any way all help is appreciated!!

                    kind regards,

                    Tag

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

                    @aand said:

                    Orange Pi One

                    @aand

                    I think, maybe the hardware nrf24 radio its not properly detected or ready on OPI?
                    Seems ready state of the nrf24 board is needed in the moment to build/make the compilation of that module for the myGateway.

                    We have any chance to run any Raspbian version (not armbian) on OPI ?
                    Sure have so much differences about raspbian and armbian to aply same softw installation methods on both without adaptat in each case.

                    Im so interesed too for use OPI One like my HA Controller and MQTT Gateway, so will be really good if you can post here any evolution and impressions about using OPI for that.

                    Cheers

                    1 Reply Last reply
                    0
                    • aandA Offline
                      aandA Offline
                      aand
                      wrote on last edited by
                      #181

                      jirm daid "I think, maybe the hardware nrf24 radio its not properly detected or ready on OPI?"

                      nrf24l01 radios WORK FINE on the Orange Pi One running armbian.

                      I downloaded TMRh20's RF24 GitHub files and successfully tested the Linux example code "gettingstarted" in which an Orange Pi One (tx) sent data to another Orange Pi One (rx).

                      jirmJ 1 Reply Last reply
                      0
                      • aandA aand

                        jirm daid "I think, maybe the hardware nrf24 radio its not properly detected or ready on OPI?"

                        nrf24l01 radios WORK FINE on the Orange Pi One running armbian.

                        I downloaded TMRh20's RF24 GitHub files and successfully tested the Linux example code "gettingstarted" in which an Orange Pi One (tx) sent data to another Orange Pi One (rx).

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

                        @aand.
                        No dubt that NRF24 is detected and working on Armbian, but seems not properly detected on the build module process for the gateway installation process made for Raspbian. Sure because OS diferences from Raspbian and Armbian, raise this issue.
                        Why not directly use Raspbian on OPI to avoid that and sure other issues that will by found because all software are mainly build for Raspberry (Raspbian OS) and that is the only well tested?

                        I see Raspbian is available and updated for OPI trough his manufacturer.

                        http://www.orangepi.org/downloadresources/orangepipc/oragepipc_e930546e866b23585721e5d2a6.html

                        Regards

                        1 Reply Last reply
                        1
                        • aandA Offline
                          aandA Offline
                          aand
                          wrote on last edited by
                          #183

                          @jirm Thanks for the suggestion. I've downloaded the raspian image. To duplicate the path I used with armbian, I downloaded TMRh20's RF24 code so I can test the radio with code I've already had up and running on the hardware.. However, this version of raspbian is really bad. So far nothing compiles. Regular raspbian, and armbian on the orange pi one do not have this kind of problem out of the box; they compile a wide range of packages. I'll spend some more time on it to be diligent, but this distro looks like it needs to be put on the abandon pile.

                          I tried compiling mysensors gateway too but no luck with that yet either. This is what I get:

                          ./configure
                          [SECTION] Detecting target machine.
                          [OK] machine detected: SoC=H3, Type=unknown, CPU=armv7l.
                          [OK] init system detected: sysvinit
                          [SECTION] Saving configuration.
                          [SECTION] Cleaning previous builds.
                          [OK] Finished.

                          make
                          gcc -MT build/drivers/Linux/log.o -MMD -MP -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RA
                          DIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -Ofast -g -Wall -Wextra -I. -I./core -I./drivers/Linux -c drivers/Linux/log
                          .c -o build/drivers/Linux/log.o
                          cc1: error: bad value (armv8-a) for -march switch
                          cc1: error: bad value (cortex-a53) for -mtune switch
                          Makefile:102: recipe for target 'build/drivers/Linux/log.o' failed
                          make: *** [build/drivers/Linux/log.o] Error 1

                          jirmJ 3 Replies Last reply
                          1
                          • aandA aand

                            @jirm Thanks for the suggestion. I've downloaded the raspian image. To duplicate the path I used with armbian, I downloaded TMRh20's RF24 code so I can test the radio with code I've already had up and running on the hardware.. However, this version of raspbian is really bad. So far nothing compiles. Regular raspbian, and armbian on the orange pi one do not have this kind of problem out of the box; they compile a wide range of packages. I'll spend some more time on it to be diligent, but this distro looks like it needs to be put on the abandon pile.

                            I tried compiling mysensors gateway too but no luck with that yet either. This is what I get:

                            ./configure
                            [SECTION] Detecting target machine.
                            [OK] machine detected: SoC=H3, Type=unknown, CPU=armv7l.
                            [OK] init system detected: sysvinit
                            [SECTION] Saving configuration.
                            [SECTION] Cleaning previous builds.
                            [OK] Finished.

                            make
                            gcc -MT build/drivers/Linux/log.o -MMD -MP -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RA
                            DIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -Ofast -g -Wall -Wextra -I. -I./core -I./drivers/Linux -c drivers/Linux/log
                            .c -o build/drivers/Linux/log.o
                            cc1: error: bad value (armv8-a) for -march switch
                            cc1: error: bad value (cortex-a53) for -mtune switch
                            Makefile:102: recipe for target 'build/drivers/Linux/log.o' failed
                            make: *** [build/drivers/Linux/log.o] Error 1

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

                            @aand

                            Ok. Arrrggg ! .
                            So sad ear that OPI Raspbian fork is too not working out the box and but its not surprise because the poor software support form manufacturer. Maybe this is another no way road.
                            So seems only keep fighting with both OS (arm and rasp) to make it working.
                            Some sugestions ...
                            Will be fine if can post this issue but in software section here on mysensors forums. Maybe some mysensors gateway developers or any linux hack can help to trace the error you have on armbian or raspbian.
                            Maybe can find another "no official" OPI Raspbian fork that compile better to mygateway. Maybe post this issue in OPI forums will be good and someone there can help or provide other better Raspbian fork.

                            Sadly in this days I dont have time to try install on my OPI´s to help more. :-1:

                            Regards

                            1 Reply Last reply
                            0
                            • aandA aand

                              @jirm Thanks for the suggestion. I've downloaded the raspian image. To duplicate the path I used with armbian, I downloaded TMRh20's RF24 code so I can test the radio with code I've already had up and running on the hardware.. However, this version of raspbian is really bad. So far nothing compiles. Regular raspbian, and armbian on the orange pi one do not have this kind of problem out of the box; they compile a wide range of packages. I'll spend some more time on it to be diligent, but this distro looks like it needs to be put on the abandon pile.

                              I tried compiling mysensors gateway too but no luck with that yet either. This is what I get:

                              ./configure
                              [SECTION] Detecting target machine.
                              [OK] machine detected: SoC=H3, Type=unknown, CPU=armv7l.
                              [OK] init system detected: sysvinit
                              [SECTION] Saving configuration.
                              [SECTION] Cleaning previous builds.
                              [OK] Finished.

                              make
                              gcc -MT build/drivers/Linux/log.o -MMD -MP -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RA
                              DIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -Ofast -g -Wall -Wextra -I. -I./core -I./drivers/Linux -c drivers/Linux/log
                              .c -o build/drivers/Linux/log.o
                              cc1: error: bad value (armv8-a) for -march switch
                              cc1: error: bad value (cortex-a53) for -mtune switch
                              Makefile:102: recipe for target 'build/drivers/Linux/log.o' failed
                              make: *** [build/drivers/Linux/log.o] Error 1

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

                              @aand

                              The las error you posted...is not on Raspbian but in Armbian ????

                              "gcc -MT build/drivers/Linux/log.o -MMD -MP -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RA
                              DIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -Ofast -g -Wall -Wextra -I. -I./core -I./drivers/Linux -c drivers/Linux/log
                              .c -o build/drivers/Linux/log.o
                              cc1: error: bad value (armv8-a) for -march switch
                              cc1: error: bad value (cortex-a53) for -mtune switch"

                              In any case seems this is a gcc compiler error maybe because "wrong" version for that processor...so maybe trying to update gcc compiler can help to avoid that error?

                              1 Reply Last reply
                              0
                              • aandA Offline
                                aandA Offline
                                aand
                                wrote on last edited by
                                #186

                                @jirm The compiler error was from the raspbian image running on the orange pi one hardware. I installed the image, ran apt-get update and apt-get upgrade, then tried the mysensors installation. The error was unusual enough to stop me in my tracks ... it didn't look like a simple dependency error.

                                armbian is not as well known as raspbian, but it is a very good distribution with an active and friendly development team. I like raspbian because it is a mature distro, and that's why I wanted to give it a try when you pointed out it's availability, but armbian is a very good alternative. I like armbian a lot and I hope we can get mysensors to work on it. Armbian also supports some of the newest and exciting hardware like the Nano Pi Neo and the Orange Pi Zero, each with a lot of IoT possibilities (they are very small form factors and low cost).

                                As you can tell, I think it's a big win if we can get it working on armbian. I will look for the place you mentioned on the forum that might be a good place to post this issue -- please let me know if you have a suggestion on where it's best to post. And I'd like to thank you for your consideration of this problem.

                                1 Reply Last reply
                                0
                                • jirmJ Offline
                                  jirmJ Offline
                                  jirm
                                  wrote on last edited by
                                  #187

                                  I´m in the same boat as you, because for the moment I choose OPI hardware for my HA (Home Automation) system.
                                  Agree with you that Armbian is much better OS than Raspbian in general terms and preferably the path to walk through for OPI, but in that case always we walk on a parallel side because Raspbian is today the most prefered OS for IoT on developments because Raspberry is the predominant hardware. So that means in future we need fight each installation.

                                  In that case, Armbian forums sure is necesary place that can help to solve that problem too, but I think first better post here on mysensors software forums to try to get some more light about that specific error about mysensors gateway install process, and then at least have more info to report to someone that can help in Armbian.

                                  I'm trying to find some help more about the issues you raise and if you maintain posting updates here will be so good for me and sure for others that can use OPI too now or on future.

                                  OPI´s I´m sure is in near future a very good hardware (because they're so good relation cost-performance and quality) that mucho more people would choose for next coming IoT projects.

                                  Regards

                                  jirmJ 1 Reply Last reply
                                  0
                                  • jirmJ jirm

                                    I´m in the same boat as you, because for the moment I choose OPI hardware for my HA (Home Automation) system.
                                    Agree with you that Armbian is much better OS than Raspbian in general terms and preferably the path to walk through for OPI, but in that case always we walk on a parallel side because Raspbian is today the most prefered OS for IoT on developments because Raspberry is the predominant hardware. So that means in future we need fight each installation.

                                    In that case, Armbian forums sure is necesary place that can help to solve that problem too, but I think first better post here on mysensors software forums to try to get some more light about that specific error about mysensors gateway install process, and then at least have more info to report to someone that can help in Armbian.

                                    I'm trying to find some help more about the issues you raise and if you maintain posting updates here will be so good for me and sure for others that can use OPI too now or on future.

                                    OPI´s I´m sure is in near future a very good hardware (because they're so good relation cost-performance and quality) that mucho more people would choose for next coming IoT projects.

                                    Regards

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

                                    @aand

                                    The error you post seems because gcc compiler is not well supporting the processor, so maybe need substitute all gcc compiler version in the OS to solve the issue (that's I wanted say before with update).

                                    apt-get update/upgrade cannot substituting "any" software to other because doing this only can push to last version the existing installed branch on the yet installed software on the OS.

                                    So It's not any dependence error it's a gcc compiler error raised for some weird version incompatibility with the hardware installed. Strange error but this is seems means message error you posted. So seems needed reinstall all gcc compiler to avoid that.

                                    Hope I explain enough...sorry about my bad english ;-)

                                    See you...

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      musthafa
                                      wrote on last edited by
                                      #189

                                      Can I install mysensors on a openhab installed RPi ?

                                      M 1 Reply Last reply
                                      0
                                      • Robinek70R Robinek70

                                        Hello everyone,
                                        I've been working gateway on RPi, but I don't know how to configure MY_SIGNING_SOFT .
                                        File mysgw.cpp contains MY_SIGNING_SOFT definition and I can uncomment it, but I don't know where and how I should define: SOFT_HMAC_KEY, SOFT_SERIAL and AES_KEY ?
                                        Could you give more details how to configure soft signing on RPi?
                                        thanks
                                        //Robert

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

                                        @Robinek70

                                        $ sudo mysgw -h
                                        Usage: mysgw [options]
                                        
                                        Options:
                                          -h, --help                 Display a short summary of all program options.
                                          -d, --debug                Enable debug.
                                          -b, --background           Run as a background process.
                                          --gen-soft-hmac-key        Generate and print a soft hmac key.
                                          --gen-soft-serial-key      Generate and print a soft serial key.
                                          --gen-aes-key              Generate and print an aes encryption key.
                                          --print-soft-hmac-key      Print the soft hmac key from the config file.
                                          --print-soft-serial-key    Print the soft serial key from the config file.
                                          --print-aes-key            Print the aes encryption key from the config file.
                                          --set-soft-hmac-key        Write a soft hmac key to the config file.
                                          --set-soft-serial-key      Write a soft serial key to the config file.
                                          --set-aes-key              Write an aes encryption key to the config file.
                                        

                                        To generate a soft hmac key, run:

                                        sudo mysgw --gen-soft-hmac-key
                                        

                                        and set it using:

                                        sudo mysgw  --set-soft-hmac-key=KEY
                                        

                                        For example:

                                        $ sudo mysgw --gen-soft-hmac-key
                                        SOFT_HMAC_KEY | 7F3F1A1C1EA32B72BF4BEDE2D16543971C26442F69572177D9CCDE393BFB8126
                                        
                                        The next line is intended to be used in SecurityPersonalizer.ino:
                                        #define MY_SOFT_HMAC_KEY 0X7F,0X3F,0X1A,0X1C,0X1E,0XA3,0X2B,0X72,0XBF,0X4B,0XED,0XE2,0XD1,0X65,0X43,0X97,0X1C,0X26,0X44,0X2F,0X69,0X57,0X21,0X77,0XD9,0XCC,0XDE,0X39,0X3B,0XFB,0X81,0X26
                                        
                                        To use this key, run mysgw with:
                                         --set-soft-hmac-key=7F3F1A1C1EA32B72BF4BEDE2D16543971C26442F69572177D9CCDE393BFB8126
                                        
                                        $ sudo mysgw --set-soft-hmac-key=7F3F1A1C1EA32B72BF4BEDE2D16543971C26442F69572177D9CCDE393BFB8126
                                        

                                        The same process applies to generate/set the other key types.

                                        1 Reply Last reply
                                        1
                                        • M Offline
                                          M Offline
                                          marceloaqno
                                          Code Contributor
                                          wrote on last edited by marceloaqno
                                          #191

                                          @aand @Tag @jirm MySensors uses its own nrf24 drivers, and OrangePi is not currently supported. It will be in the future.

                                          jirmJ T 2 Replies 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.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