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. Development
  3. Mysensors Gateway on OrangePi (Zero) (opi)

Mysensors Gateway on OrangePi (Zero) (opi)

Scheduled Pinned Locked Moved Development
117 Posts 11 Posters 43.1k Views 11 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.
  • jirmJ jirm

    @Tag

    Thanks to you to make the effort to try our "suppositions" ...

    Mmmm...I see some interesting things on your results.

    First all your results on OPI really differ from @eyesoft posted on the github. That can mean that Banana are much different (on drivers aspect) than OPI and then same solution cannot be applied to both...bad thing for us.

    Then I see on make that the soc (and cpu) are bad seleected (I said this issue yesterday to @marceloaqno on general support post for mysensors gateway) because seems in the configure file have a bad selection about that specs when soc are a H3, and select a bad A53 type of cpu when is Armv7.

    Then I don't know if all subsequent errors raised are significant or simply derived from that initially bad cpu selection.

    Last I see that have issues on GPIO pins, but this is something we hoped would happen.

    Anyway, I'm not coder so maybe are totally grong on all my observations and we need some coder (preferible @marceloaqno ) help us to deal with all that.

    Regards and thanks to you !

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

    @Tag

    I just see than on your previous compilation for NRF24 build from Tmr24h that you confirm is working OK, the compilation have same "bad" cpu type A53 that I figure that is a bad selection for H3 and seems that is not any problem...so now I'dont understand nothing..
    Well mean only understand that we need a mysensor coder for help an guidance and if available make to it all the changes needed for OPI on mysenros.

    So we need help for all.

    Regards

    jirmJ 1 Reply Last reply
    0
    • jirmJ jirm

      @Tag

      I just see than on your previous compilation for NRF24 build from Tmr24h that you confirm is working OK, the compilation have same "bad" cpu type A53 that I figure that is a bad selection for H3 and seems that is not any problem...so now I'dont understand nothing..
      Well mean only understand that we need a mysensor coder for help an guidance and if available make to it all the changes needed for OPI on mysenros.

      So we need help for all.

      Regards

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

      @jirm
      As a side comment, posting interesting good info about Orange PI GPIO ports assignment and usage, that can help too:

      http://www.cnx-software.com/2015/09/26/status-of-orange-pi-boards-gpio-support/

      1 Reply Last reply
      0
      • pansenP Offline
        pansenP Offline
        pansen
        wrote on last edited by
        #22

        Great info indeed, thanks! I will join the effort again when the OPi+nRF24 arrived. Just compiling without any hardware feels like baking a cake and not eating it...

        Orange Pi Plus 2e connected to nrf24 PA via SPI running git-development MySensors gateway, OpenHAB2, mosquitto and MySQL persistence.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mihai.aldea
          wrote on last edited by
          #23

          @Tag The RF24 won't work on the OPi out of the box. Since the GPIO numbering is different it will work but only after some tweaks. I'm not sure if you're familiar with:
          http://linux-sunxi.org/GPIO
          Once you get the pin numbering figured out you can use the TMRh20 library. I confirm that it works on my OPi PC. Didn't unboxed my OPi Zero yet :yum:
          However it's not very clear what sort of gateway you're trying to build. My project will have an OPi Zero running MyController, hooked up to an ATmega328 running the GatewaySerial sketch. The radio will be be connected to the ATmega328 chip. This way I wouldn't have to worry about GPIO pin numbering.

          jirmJ 1 Reply Last reply
          0
          • H Offline
            H Offline
            hausinger
            wrote on last edited by hausinger
            #24

            I'm using a orangepi one and with your help I can compile it.
            I tried it with a serial gateway. I connected a arduino nano with the gateway serial scath on it through USB to my orangepi one. DMESG say to me, that it is attached to ttyUSB0
            So i tried to build the gateway with:
            ./configure --my-gateway=serial --my-serial-port=/dev/ttyUSB0 --my-serial-baudrate=115200

            make has no errors

            after that, i tried to start it with:
            sudo ./bin/mysgw -d

            Is started but i get this problem:
            (0_1483630831348_Gateway_problem.JPG

            Do you know whats wrong with it?

            jirmJ M 2 Replies Last reply
            0
            • pansenP Offline
              pansenP Offline
              pansen
              wrote on last edited by pansen
              #25

              @hausinger: try to change

              ./configure --my-gateway=serial --my-serial-port=/dev/USB0 --my-serial-baudrate=115200
              to
              ./configure --my-gateway=serial --my-serial-port=/dev/ttyUSB0 --my-serial-baudrate=115200

              Be aware that USB devices are enumerated in the order they have been plugged in, so you cannot rely 100% on the arduino being "0".

              @mihai-aldea: haha I didn't even consider this. are there any disadvantages except for the increased power consumption? (and slightly higher cost)

              Orange Pi Plus 2e connected to nrf24 PA via SPI running git-development MySensors gateway, OpenHAB2, mosquitto and MySQL persistence.

              H 1 Reply Last reply
              0
              • H hausinger

                I'm using a orangepi one and with your help I can compile it.
                I tried it with a serial gateway. I connected a arduino nano with the gateway serial scath on it through USB to my orangepi one. DMESG say to me, that it is attached to ttyUSB0
                So i tried to build the gateway with:
                ./configure --my-gateway=serial --my-serial-port=/dev/ttyUSB0 --my-serial-baudrate=115200

                make has no errors

                after that, i tried to start it with:
                sudo ./bin/mysgw -d

                Is started but i get this problem:
                (0_1483630831348_Gateway_problem.JPG

                Do you know whats wrong with it?

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

                @hausinger

                Hi again to all OPI users.

                I like see that are great movements here.

                I think main goal here is achieve that OPI board can run mysensors for herself connected radio boards.
                Of course that can work OPI (or any board) if we attach over some port the radio board, because use of any "conventional" port (means usb, serial, eth) is the same for any hardware from the software view.

                Said this, I would simplificate (and reduce all hardware to minimum) all things I can and with a powerful board I can concentrate much of the roles needed.
                Attach directly (means through GPIO) all hardware the board can manage without issues is my goal, and I think other much people.

                I think the error posted @hausinger for run mysgw seems derived from de main problem we see when try compile mysensors on OPI, and is that the need (maybe although not always necessary) that SPIDEV driver are up and working properly and mysensors software can not detect SPI bus (then fail SPIDEV) on OPI while is not being adapted all software stuff from some mysensor coder.

                I hope some mysensors coder hear our call and soon can help here.

                Regards

                H 1 Reply Last reply
                0
                • pansenP pansen

                  @hausinger: try to change

                  ./configure --my-gateway=serial --my-serial-port=/dev/USB0 --my-serial-baudrate=115200
                  to
                  ./configure --my-gateway=serial --my-serial-port=/dev/ttyUSB0 --my-serial-baudrate=115200

                  Be aware that USB devices are enumerated in the order they have been plugged in, so you cannot rely 100% on the arduino being "0".

                  @mihai-aldea: haha I didn't even consider this. are there any disadvantages except for the increased power consumption? (and slightly higher cost)

                  H Offline
                  H Offline
                  hausinger
                  wrote on last edited by hausinger
                  #27

                  @pansen said:

                  @hausinger: try to change

                  ./configure --my-gateway=serial --my-serial-port=/dev/USB0 --my-serial-baudrate=115200
                  to
                  ./configure --my-gateway=serial --my-serial-port=/dev/ttyUSB0 --my-serial-baudrate=115200

                  Be aware that USB devices are enumerated in the order they have been plugged in, so you cannot rely 100% on the arduino being "0".

                  @mihai-aldea: haha I didn't even consider this. are there any disadvantages except for the increased power consumption? (and slightly higher cost)

                  ooh sorry. Sure, i wrote "ttyUSB0". It was a typing mistake here on the forum. In my configuration I already typed ttyUSB0
                  I edited my last post.

                  But the issue is still the same.

                  1 Reply Last reply
                  0
                  • M mihai.aldea

                    @Tag The RF24 won't work on the OPi out of the box. Since the GPIO numbering is different it will work but only after some tweaks. I'm not sure if you're familiar with:
                    http://linux-sunxi.org/GPIO
                    Once you get the pin numbering figured out you can use the TMRh20 library. I confirm that it works on my OPi PC. Didn't unboxed my OPi Zero yet :yum:
                    However it's not very clear what sort of gateway you're trying to build. My project will have an OPi Zero running MyController, hooked up to an ATmega328 running the GatewaySerial sketch. The radio will be be connected to the ATmega328 chip. This way I wouldn't have to worry about GPIO pin numbering.

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

                    @mihai.aldea

                    Indeed good info about GPIO port.

                    I will be aware about your progress...seems your approach is a sure win.

                    Thanks

                    1 Reply Last reply
                    0
                    • jirmJ jirm

                      @hausinger

                      Hi again to all OPI users.

                      I like see that are great movements here.

                      I think main goal here is achieve that OPI board can run mysensors for herself connected radio boards.
                      Of course that can work OPI (or any board) if we attach over some port the radio board, because use of any "conventional" port (means usb, serial, eth) is the same for any hardware from the software view.

                      Said this, I would simplificate (and reduce all hardware to minimum) all things I can and with a powerful board I can concentrate much of the roles needed.
                      Attach directly (means through GPIO) all hardware the board can manage without issues is my goal, and I think other much people.

                      I think the error posted @hausinger for run mysgw seems derived from de main problem we see when try compile mysensors on OPI, and is that the need (maybe although not always necessary) that SPIDEV driver are up and working properly and mysensors software can not detect SPI bus (then fail SPIDEV) on OPI while is not being adapted all software stuff from some mysensor coder.

                      I hope some mysensors coder hear our call and soon can help here.

                      Regards

                      H Offline
                      H Offline
                      hausinger
                      wrote on last edited by hausinger
                      #29

                      @jirm said:

                      @hausinger

                      Hi again to all OPI users.

                      I like see that are great movements here.

                      I think main goal here is achieve that OPI board can run mysensors for herself connected radio boards.
                      Of course that can work OPI (or any board) if we attach over some port the radio board, because use of any "conventional" port (means usb, serial, eth) is the same for any hardware from the software view.

                      Said this, I would simplificate (and reduce all hardware to minimum) all things I can and with a powerful board I can concentrate much of the roles needed.
                      Attach directly (means through GPIO) all hardware the board can manage without issues is my goal, and I think other much people.

                      I think the error posted @hausinger for run mysgw seems derived from de main problem we see when try compile mysensors on OPI, and is that the need (maybe although not always necessary) that SPIDEV driver are up and working properly and mysensors software can not detect SPI bus (then fail SPIDEV) on OPI while is not being adapted all software stuff from some mysensor coder.

                      I hope some mysensors coder hear our call and soon can help here.

                      Regards

                      In my case, why should it be necessary to have a working spi bus? I wanted to connect a working arduino with the mysensors gw scetch on it throug USB to the OPI and use this as a ethernet gateway.

                      My last goal is to use a USB to RS485 converter on my OPI (works as a Gateway) without a connected arduino, because my whole mysensors communication should be over RS485.

                      jirmJ 1 Reply Last reply
                      0
                      • H hausinger

                        @jirm said:

                        @hausinger

                        Hi again to all OPI users.

                        I like see that are great movements here.

                        I think main goal here is achieve that OPI board can run mysensors for herself connected radio boards.
                        Of course that can work OPI (or any board) if we attach over some port the radio board, because use of any "conventional" port (means usb, serial, eth) is the same for any hardware from the software view.

                        Said this, I would simplificate (and reduce all hardware to minimum) all things I can and with a powerful board I can concentrate much of the roles needed.
                        Attach directly (means through GPIO) all hardware the board can manage without issues is my goal, and I think other much people.

                        I think the error posted @hausinger for run mysgw seems derived from de main problem we see when try compile mysensors on OPI, and is that the need (maybe although not always necessary) that SPIDEV driver are up and working properly and mysensors software can not detect SPI bus (then fail SPIDEV) on OPI while is not being adapted all software stuff from some mysensor coder.

                        I hope some mysensors coder hear our call and soon can help here.

                        Regards

                        In my case, why should it be necessary to have a working spi bus? I wanted to connect a working arduino with the mysensors gw scetch on it throug USB to the OPI and use this as a ethernet gateway.

                        My last goal is to use a USB to RS485 converter on my OPI (works as a Gateway) without a connected arduino, because my whole mysensors communication should be over RS485.

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

                        @hausinger

                        Of course you dont need any SPI bus.
                        And so sorry but before I checked so badly the error you posted.

                        Not seems any related working error for mysgw. I think you have mysgw working fine, seems only they can not connect/work with sensor node.

                        You seems only need check node communication and adjust node configuration to have your mysgw working.

                        I don't see you found so much trouble to make working from usb-rs485 adapter if you can do it with usb/serial node, it's only matter that the driver of adapter can work with mysgw without so much issues.

                        Regards

                        H 1 Reply Last reply
                        0
                        • jirmJ jirm

                          @hausinger

                          Of course you dont need any SPI bus.
                          And so sorry but before I checked so badly the error you posted.

                          Not seems any related working error for mysgw. I think you have mysgw working fine, seems only they can not connect/work with sensor node.

                          You seems only need check node communication and adjust node configuration to have your mysgw working.

                          I don't see you found so much trouble to make working from usb-rs485 adapter if you can do it with usb/serial node, it's only matter that the driver of adapter can work with mysgw without so much issues.

                          Regards

                          H Offline
                          H Offline
                          hausinger
                          wrote on last edited by
                          #31

                          @jirm said:

                          @hausinger

                          Of course you dont need any SPI bus.
                          And so sorry but before I checked so badly the error you posted.

                          Not seems any related working error for mysgw. I think you have mysgw working fine, seems only they can not connect/work with sensor node.

                          You seems only need check node communication and adjust node configuration to have your mysgw working.

                          I don't see you found so much trouble to make working from usb-rs485 adapter if you can do it with usb/serial node, it's only matter that the driver of adapter can work with mysgw without so much issues.

                          Regards

                          Thank you for your fast answer.
                          I try to answer it as best as I can.

                          I tried it once again:
                          connected the arduino to the USB port on my OPI
                          DMESG says it is port ttyUSB0

                          If i start the Gateway with:
                          sudo ./bin/mysgw -d

                          I got the same result as posted before. My CPU Usage is at 100% on one core.

                          if I kill the process of mysgw and start openhab2 (my used controller) it can connect direct to the Arduino (connected as USB as before) and it worked fine.

                          So my configuration of my nodes (currently only 1 for testing) is working fine through rs485.

                          Summary:
                          Connection node -> Arduino Gateway = OK
                          Connetion from openhab2 to Arduino Gateway = OK (openhab2 on same OPI as Arduino)
                          OPI as a Ethernet - Serial Gateway = NOT OK, Problem is shown on my screenshot.

                          USB-RS485:
                          I also tried this, but after my configuration:
                          ./configure --my-gateway=ethernet --my-port=5003 --my-transport=rs485 --my-rs485-serial-port=/dev/ttyUSB0 --my-rs485-baudrate=57600
                          I can do the "make" command.
                          After that I start it with:
                          sudo ./bin/mysgw -d
                          I only get this:
                          0_1483635312443_GatewayRS485.JPG
                          I can now type a new command in the console (Gateway quit itself)

                          M 1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            Tag
                            wrote on last edited by Tag
                            #32

                            Hi All,
                            Collected some info on the OPI zero CPU:

                            root@orangepizero:/proc# more cpuinfo
                            Processor : ARMv7 Processor rev 5 (v7l)
                            processor : 0
                            BogoMIPS : 2400.00

                            processor : 1
                            BogoMIPS : 2400.00

                            processor : 2
                            BogoMIPS : 2400.00

                            processor : 3
                            BogoMIPS : 2400.00

                            Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
                            CPU implementer : 0x41
                            CPU architecture: 7
                            CPU variant : 0x0
                            CPU part : 0xc07
                            CPU revision : 5

                            Hardware : sun8i
                            Revision : 0000
                            Serial : 2467783d034e20000098
                            root@orangepizero:/proc#

                            Dmesg Output:
                            [ 0.000000] Initializing cgroup subsys cpu
                            [ 0.000000] Linux version 3.4.113-sun8i (root@xenial) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #50 SMP PREEMPT Mon Nov
                            14 08:41:55 CET 2016
                            [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
                            [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
                            [ 0.000000] Machine: sun8i

                            It should be a H2+, but I have seen H3 (think that was with an FTDI interface on the debug port....

                            1 Reply Last reply
                            0
                            • H hausinger

                              @jirm said:

                              @hausinger

                              Of course you dont need any SPI bus.
                              And so sorry but before I checked so badly the error you posted.

                              Not seems any related working error for mysgw. I think you have mysgw working fine, seems only they can not connect/work with sensor node.

                              You seems only need check node communication and adjust node configuration to have your mysgw working.

                              I don't see you found so much trouble to make working from usb-rs485 adapter if you can do it with usb/serial node, it's only matter that the driver of adapter can work with mysgw without so much issues.

                              Regards

                              Thank you for your fast answer.
                              I try to answer it as best as I can.

                              I tried it once again:
                              connected the arduino to the USB port on my OPI
                              DMESG says it is port ttyUSB0

                              If i start the Gateway with:
                              sudo ./bin/mysgw -d

                              I got the same result as posted before. My CPU Usage is at 100% on one core.

                              if I kill the process of mysgw and start openhab2 (my used controller) it can connect direct to the Arduino (connected as USB as before) and it worked fine.

                              So my configuration of my nodes (currently only 1 for testing) is working fine through rs485.

                              Summary:
                              Connection node -> Arduino Gateway = OK
                              Connetion from openhab2 to Arduino Gateway = OK (openhab2 on same OPI as Arduino)
                              OPI as a Ethernet - Serial Gateway = NOT OK, Problem is shown on my screenshot.

                              USB-RS485:
                              I also tried this, but after my configuration:
                              ./configure --my-gateway=ethernet --my-port=5003 --my-transport=rs485 --my-rs485-serial-port=/dev/ttyUSB0 --my-rs485-baudrate=57600
                              I can do the "make" command.
                              After that I start it with:
                              sudo ./bin/mysgw -d
                              I only get this:
                              0_1483635312443_GatewayRS485.JPG
                              I can now type a new command in the console (Gateway quit itself)

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

                              @hausinger That shouldn't happen (gateway quitting itself). Could you submit the debug log with MY_DEBUG_VERBOSE_RF24 enabled?

                              H 1 Reply Last reply
                              0
                              • M marceloaqno

                                @hausinger That shouldn't happen (gateway quitting itself). Could you submit the debug log with MY_DEBUG_VERBOSE_RF24 enabled?

                                H Offline
                                H Offline
                                hausinger
                                wrote on last edited by
                                #34

                                @marceloaqno said:

                                @hausinger That shouldn't happen (gateway quitting itself). Could you submit the debug log with MY_DEBUG_VERBOSE_RF24 enabled?

                                Yes i can check that, but how?
                                I tried it to enable it in "example_linux" => mysgw.cpp (added the line "#define MY_DEBUG_VERBOSE_RF24")
                                I also tried it in the file: "MyConfig.h" (also added the line "#define MY_DEBUG_VERBOSE_RF24")

                                But my output is still the same in the console.

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mihai.aldea
                                  wrote on last edited by
                                  #35

                                  @Tag Just to make it clear, do you want to connect the RF24 radio directly on the OPi's GPIO pins? Or do you want to connect it first to an Arduino and then to the OPi?
                                  I haven't used the mysgw because so far I only played with EasyIoT (directly attached RF24 to RPi GPIO - doesn't work on OPi) and MyController (using an Arduino connected to the OPi's serial port).
                                  Since MySensors is open source you can definitely change the pin numbers to match the OPI's Sunxi pin numbering. I don't have a setup in place right now to point you in the exact direction but will cook one tomorrow and get back with the details.
                                  Meanwhile you can burn the GatewaySerial sketch on your Arduino and either use /bin/mysgw or:

                                  apt-get -y update
                                  apt-get -y install minicom
                                  minicom -D /dev/ttyUSB0
                                  

                                  It's likely that the minicom will scramble the text on your screen but you can:

                                  Ctrl+Z
                                  O
                                  Screen and Keyboard
                                  T
                                  Esc
                                  Save setup as df1
                                  

                                  Close the minicom window then open it again and all should be fine.

                                  T 1 Reply Last reply
                                  0
                                  • M mihai.aldea

                                    @Tag Just to make it clear, do you want to connect the RF24 radio directly on the OPi's GPIO pins? Or do you want to connect it first to an Arduino and then to the OPi?
                                    I haven't used the mysgw because so far I only played with EasyIoT (directly attached RF24 to RPi GPIO - doesn't work on OPi) and MyController (using an Arduino connected to the OPi's serial port).
                                    Since MySensors is open source you can definitely change the pin numbers to match the OPI's Sunxi pin numbering. I don't have a setup in place right now to point you in the exact direction but will cook one tomorrow and get back with the details.
                                    Meanwhile you can burn the GatewaySerial sketch on your Arduino and either use /bin/mysgw or:

                                    apt-get -y update
                                    apt-get -y install minicom
                                    minicom -D /dev/ttyUSB0
                                    

                                    It's likely that the minicom will scramble the text on your screen but you can:

                                    Ctrl+Z
                                    O
                                    Screen and Keyboard
                                    T
                                    Esc
                                    Save setup as df1
                                    

                                    Close the minicom window then open it again and all should be fine.

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

                                    @mihai.aldea

                                    Hi!, my idea is to have the NRF24 radio directly attached to the GPIO header on the OPI, (got this already working on my RPI system). So the idea is to run mysgw on the OPI system.
                                    (already got an extensive sensor network running with multiple arduinos and Mycontroller on thae RPI) On the RPI i had the arduino GW attached to USB and the NRF24 directly attached at the GPIO header at the same time, MyController saw 2 gateways :) )

                                    The other option like you already mentioned is to attach the arduino using USB read from /dev/ttyUSB0. I see this as a last resort only if mysgw will never run on the OPI zero.

                                    I read on the OPI website that the 26 pin header from the OPI is directly compatible with the RPI, however other sources of information tell me differently. So if you want to help out with the pin numbering this is greatly appreciated!

                                    but again mysgw on the OPI with the radio on the GPIO header would be great!!

                                    At this moment we try to build/compile mysgw on the OPI board, however that fails at the SPI part.

                                    Thanks!

                                    1 Reply Last reply
                                    0
                                    • H hausinger

                                      I'm using a orangepi one and with your help I can compile it.
                                      I tried it with a serial gateway. I connected a arduino nano with the gateway serial scath on it through USB to my orangepi one. DMESG say to me, that it is attached to ttyUSB0
                                      So i tried to build the gateway with:
                                      ./configure --my-gateway=serial --my-serial-port=/dev/ttyUSB0 --my-serial-baudrate=115200

                                      make has no errors

                                      after that, i tried to start it with:
                                      sudo ./bin/mysgw -d

                                      Is started but i get this problem:
                                      (0_1483630831348_Gateway_problem.JPG

                                      Do you know whats wrong with it?

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

                                      @hausinger The problem you are having with your serial gateway (./configure --my-gateway=serial --my-serial-port=/dev/ttyUSB0 --my-serial-baudrate=115200) may be related to this bug:
                                      https://github.com/mysensors/MySensors/issues/720#issuecomment-270712256

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        mihai.aldea
                                        wrote on last edited by
                                        #38

                                        @Tag I made the test setup and retraced my steps from the previous experiment. While the TMRh20 is working, the problem indeed lies with the ** mysgw** compilation. I'm getting the same error.
                                        After spending quite some time trying to mitigate the errors I hit a wall and I concluded that the problem is not the different pin numbering but the mysgw source code. I believe the problem is the lack of support for this architecture and with MySensors being so complex and my C++ skills so average, I'm afraid I can't help.
                                        However, if someone can mitigate the source code to successfully compile, the radio should be initialized with:
                                        RF24 radio(7, 0);
                                        7 - CE pin
                                        0 - CS pin
                                        More details here: https://github.com/TMRh20/RF24/issues/257

                                        T 1 Reply Last reply
                                        0
                                        • M mihai.aldea

                                          @Tag I made the test setup and retraced my steps from the previous experiment. While the TMRh20 is working, the problem indeed lies with the ** mysgw** compilation. I'm getting the same error.
                                          After spending quite some time trying to mitigate the errors I hit a wall and I concluded that the problem is not the different pin numbering but the mysgw source code. I believe the problem is the lack of support for this architecture and with MySensors being so complex and my C++ skills so average, I'm afraid I can't help.
                                          However, if someone can mitigate the source code to successfully compile, the radio should be initialized with:
                                          RF24 radio(7, 0);
                                          7 - CE pin
                                          0 - CS pin
                                          More details here: https://github.com/TMRh20/RF24/issues/257

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

                                          @mihai.aldea said:

                                          us experiment. While the TMRh20 is working, the problem indeed lies with the ** mysgw** compilation. I'm getting the same error.

                                          Thanks for the confirmation!!, now lets hope that mysgw, will be fixed/ported to the OPI boards soon!
                                          would be great to expand the number of systems it will run on..

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


                                          17

                                          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