Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. good karma

good karma

Scheduled Pinned Locked Moved Controllers
31 Posts 7 Posters 10.5k Views 2 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.
  • S Offline
    S Offline
    sensorsusr
    wrote on last edited by
    #1

    I'm a Linux newbie, so I won't be able to help out much with the Raspberry Pi gateway development. But I wanted to send some good karma this way because I'm really excited about it, and appreciate all the work you guys are doing.

    I'd like to better understand how the Raspberry Pi gateway would work though. These are some of my assumptions.

    1. The RPi runs a webserver, and presents all current sensor data as a webpage?

    2. RPi also acts as the interactive button provider, so you can actuate Arduino outputs from buttons in the webpage?

    3. Will there be data collection and trending? Is that what the cloud based service is? Can I use the RPi to send data to xively or similar services?

    4. Is the RPi doing to act as a scene agent? So you can make conditions (if Node 5 PIR sensor senses motion) and take action (activate LED on Node 6 Arduino)?

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

      The RPI gateway development will be a two phase thing.

      1. In the first phase we will just have a cache-and-forward from the RPI to the cloud-service. All trends and visualization takes place on MySensors web service. The RPI will only run a low footprint database (local backup/cache) and a node-app that keeps a bi-directional web socket open for sensor data and commands back to the RPI. If you also have a Vera it should be able to connect to the RPI (transparent to todays ethernet gateway). The RPI web interface will be minimal. Basically just a single page for entering your API key to the cloud-service and some debug logging. With some beta testers we can now start optimizing data storage and how we store data and how we do realtime processing. Our cloud API will be open for leaving data from other types of sensors and HA systems. Initially we'll offer REST and websocket. The API also opens up for APPs and other goodies.

      2. Phase 2 will be much more fun. We're thinking rule engine (with the possibility of pushing rules to RPI that can be executed when offline). Service integration (push notifications, email etc) for server-side rules. We might also offer a more advanced local web interface of the RPI.

      1 Reply Last reply
      1
      • jendrushJ Offline
        jendrushJ Offline
        jendrush
        wrote on last edited by
        #3

        It's great project, and probably all of this forum user know it, but i have question. Can i ask for possible timeline for developement? When could we expect cloud service launch?

        hekH 1 Reply Last reply
        0
        • jendrushJ jendrush

          It's great project, and probably all of this forum user know it, but i have question. Can i ask for possible timeline for developement? When could we expect cloud service launch?

          hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          @jendrush

          Timeline... yes, I only wish I knew... This is a project we are all doing on our free time (which varies over time). Giving an estimate might just give false hopes. One thing I know is that everything takes much longer than first anticipated.

          But, we'll work as much as we can without losing our families over it ;)

          1 Reply Last reply
          0
          • epierreE Offline
            epierreE Offline
            epierre
            Hero Member
            wrote on last edited by
            #5

            Hello,

            I've already made a sensors system interface to cosm in Perl, I could make the same for MySensors since I have all the basic and interface at the same time to some others domotics systems through JSON.

            I have already what I need to make the vera (uno+ethernet shield+nrf4L) but not yet enough on the other side(emitter) nor diversity.

            Is there a way I could simulate sensors reception, even run some lensors locally (I have humidity, dht11, FC-22-1, TCRT5000...) ? and thus try to emulate both in USB and Ethernet ?

            z-wave - Vera -> Domoticz
            rfx - Domoticz <- MyDomoAtHome <- Imperihome
            mysensors -> mysensors-gw -> Domoticz

            YveauxY 1 Reply Last reply
            0
            • epierreE epierre

              Hello,

              I've already made a sensors system interface to cosm in Perl, I could make the same for MySensors since I have all the basic and interface at the same time to some others domotics systems through JSON.

              I have already what I need to make the vera (uno+ethernet shield+nrf4L) but not yet enough on the other side(emitter) nor diversity.

              Is there a way I could simulate sensors reception, even run some lensors locally (I have humidity, dht11, FC-22-1, TCRT5000...) ? and thus try to emulate both in USB and Ethernet ?

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by
              #6

              @epierre I think you can. Use the serial command API to construct artificial messages as if they were coming from sensor nodes.
              Have a simple server socket report them to your domotics interface and you won't notice the difference!

              http://yveaux.blogspot.nl

              1 Reply Last reply
              0
              • epierreE Offline
                epierreE Offline
                epierre
                Hero Member
                wrote on last edited by
                #7

                Hello,

                Well, I thought I would have to wait for 30 days to have hardware, but I received it under 9 days.... well recommended hardware seller here are worth 5 stars !

                Some soldering away and I'll have actual nodes !

                Best !

                z-wave - Vera -> Domoticz
                rfx - Domoticz <- MyDomoAtHome <- Imperihome
                mysensors -> mysensors-gw -> Domoticz

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

                  9 days is good. It happens sometimes when the post-office gods is in the right mood.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aliasdoc
                    wrote on last edited by
                    #9

                    Hi all, i try to use your library in my project with Raspberry Pi as Gateway, I start with your example "piGateway", all starting is done, here debug lines:

                    Starting Gateway...
                    Sensor-1Gateway created...
                    Hej-begin-SPI device = /dev/spidev0.0
                    SPI speed = 8000000
                    CE GPIO = 25
                    STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
                    RX_ADDR_P0-1 = 0x7365727631 0xabcdabc000
                    RX_ADDR_P2-5 = 0xff 0xe3 0xe4 0xe5
                    TX_ADDR = 0x7365727631
                    RX_PW_P0-6 = 0x20 0x20 0x20 0x20 0x20 0x20
                    EN_AA = 0x3f
                    EN_RXADDR = 0x3f
                    RF_CH = 0x4c
                    RF_SETUP = 0x07
                    CONFIG = 0x0f
                    DYNPD/FEATURE = 0x3f 0x04
                    Data Rate = 1MBPS
                    Model = nRF24L01+
                    CRC Length = 16 bits
                    PA Power = PA_MAX
                    Radio setup complete-After setupRadio-After openReadingPipe-After startListening-After serial-Begin called

                    but if I run my arduino with any examples (HumiditySensor, BatteryPoweredSensor, ...) They don't communicate. I double checked wiring, all is OK. Need help thanks.

                    jendrushJ YveauxY 2 Replies Last reply
                    0
                    • A aliasdoc

                      Hi all, i try to use your library in my project with Raspberry Pi as Gateway, I start with your example "piGateway", all starting is done, here debug lines:

                      Starting Gateway...
                      Sensor-1Gateway created...
                      Hej-begin-SPI device = /dev/spidev0.0
                      SPI speed = 8000000
                      CE GPIO = 25
                      STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
                      RX_ADDR_P0-1 = 0x7365727631 0xabcdabc000
                      RX_ADDR_P2-5 = 0xff 0xe3 0xe4 0xe5
                      TX_ADDR = 0x7365727631
                      RX_PW_P0-6 = 0x20 0x20 0x20 0x20 0x20 0x20
                      EN_AA = 0x3f
                      EN_RXADDR = 0x3f
                      RF_CH = 0x4c
                      RF_SETUP = 0x07
                      CONFIG = 0x0f
                      DYNPD/FEATURE = 0x3f 0x04
                      Data Rate = 1MBPS
                      Model = nRF24L01+
                      CRC Length = 16 bits
                      PA Power = PA_MAX
                      Radio setup complete-After setupRadio-After openReadingPipe-After startListening-After serial-Begin called

                      but if I run my arduino with any examples (HumiditySensor, BatteryPoweredSensor, ...) They don't communicate. I double checked wiring, all is OK. Need help thanks.

                      jendrushJ Offline
                      jendrushJ Offline
                      jendrush
                      wrote on last edited by
                      #10

                      @aliasdoc said:

                      They don't communicate. I double checked wiring, all is OK. Need help thanks.

                      Do you have a capacitor between power, and ground? I have had same problem, and it helped.

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

                        Hi jendrush, yes I have a capacitor of 10uF, transmission is ok with another framework (RF24network).

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          aliasdoc
                          wrote on last edited by
                          #12

                          I have one arduino uno loaded with DallasTemperatureSensor sketch and on rPi running PiGateway example

                          1 Reply Last reply
                          0
                          • A aliasdoc

                            Hi all, i try to use your library in my project with Raspberry Pi as Gateway, I start with your example "piGateway", all starting is done, here debug lines:

                            Starting Gateway...
                            Sensor-1Gateway created...
                            Hej-begin-SPI device = /dev/spidev0.0
                            SPI speed = 8000000
                            CE GPIO = 25
                            STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
                            RX_ADDR_P0-1 = 0x7365727631 0xabcdabc000
                            RX_ADDR_P2-5 = 0xff 0xe3 0xe4 0xe5
                            TX_ADDR = 0x7365727631
                            RX_PW_P0-6 = 0x20 0x20 0x20 0x20 0x20 0x20
                            EN_AA = 0x3f
                            EN_RXADDR = 0x3f
                            RF_CH = 0x4c
                            RF_SETUP = 0x07
                            CONFIG = 0x0f
                            DYNPD/FEATURE = 0x3f 0x04
                            Data Rate = 1MBPS
                            Model = nRF24L01+
                            CRC Length = 16 bits
                            PA Power = PA_MAX
                            Radio setup complete-After setupRadio-After openReadingPipe-After startListening-After serial-Begin called

                            but if I run my arduino with any examples (HumiditySensor, BatteryPoweredSensor, ...) They don't communicate. I double checked wiring, all is OK. Need help thanks.

                            YveauxY Offline
                            YveauxY Offline
                            Yveaux
                            Mod
                            wrote on last edited by
                            #13

                            @aliasdoc Do the RX_ADDR_Px and TX_ADDR values match your configuration? If they are then communication seems to work ok.
                            Some other trivial questions:

                            • are both radio's on the same channel
                            • same baudrate
                            • both use CRC
                            • have same packet length/use dynamic packet length
                            • do you run the RPi code as root?

                            http://yveaux.blogspot.nl

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              aliasdoc
                              wrote on last edited by aliasdoc
                              #14

                              Hi Yveaux and thanks, effectively, config of my arduino is 2MBPS and RPi is 1MBPS, now it communicate but in RPI, I had "Unknown route from GW" error :

                              Dynamic payload size=7
                              Received: from=255, to=255, childId=79, mtype=9, type=0, crc=184, ''
                              Message crc ok.
                              header.type=0, header.to=255, radioId=0
                              Unknown route from GW

                              and from arduino:

                              Tx: fr=255,to=255,la=255,ne=255,ci=255,mt=4,ty=9,cr=184:
                              No relay nodes was found. Trying again in 10 seconds.

                              YveauxY hekH 2 Replies Last reply
                              0
                              • A aliasdoc

                                Hi Yveaux and thanks, effectively, config of my arduino is 2MBPS and RPi is 1MBPS, now it communicate but in RPI, I had "Unknown route from GW" error :

                                Dynamic payload size=7
                                Received: from=255, to=255, childId=79, mtype=9, type=0, crc=184, ''
                                Message crc ok.
                                header.type=0, header.to=255, radioId=0
                                Unknown route from GW

                                and from arduino:

                                Tx: fr=255,to=255,la=255,ne=255,ci=255,mt=4,ty=9,cr=184:
                                No relay nodes was found. Trying again in 10 seconds.

                                YveauxY Offline
                                YveauxY Offline
                                Yveaux
                                Mod
                                wrote on last edited by Yveaux
                                #15

                                @aliasdoc This one's for Hek ;-)

                                http://yveaux.blogspot.nl

                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  aliasdoc
                                  wrote on last edited by
                                  #16

                                  Sorry Yveaux but I don't understand "Hek", what is this ?? thanks :)

                                  jendrushJ greglG 2 Replies Last reply
                                  0
                                  • A aliasdoc

                                    Sorry Yveaux but I don't understand "Hek", what is this ?? thanks :)

                                    jendrushJ Offline
                                    jendrushJ Offline
                                    jendrush
                                    wrote on last edited by
                                    #17

                                    @aliasdoc Hek is founder/cofounder of mysensors:) I am right?:)

                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      aliasdoc
                                      wrote on last edited by
                                      #18

                                      thanks jendrush, i'm so stupid :-1:

                                      1 Reply Last reply
                                      0
                                      • A aliasdoc

                                        Hi Yveaux and thanks, effectively, config of my arduino is 2MBPS and RPi is 1MBPS, now it communicate but in RPI, I had "Unknown route from GW" error :

                                        Dynamic payload size=7
                                        Received: from=255, to=255, childId=79, mtype=9, type=0, crc=184, ''
                                        Message crc ok.
                                        header.type=0, header.to=255, radioId=0
                                        Unknown route from GW

                                        and from arduino:

                                        Tx: fr=255,to=255,la=255,ne=255,ci=255,mt=4,ty=9,cr=184:
                                        No relay nodes was found. Trying again in 10 seconds.

                                        hekH Offline
                                        hekH Offline
                                        hek
                                        Admin
                                        wrote on last edited by
                                        #19

                                        @aliasdoc
                                        It looks like the gateway/controller don't know where to send/route message for node 255.
                                        I haven't really analyzed the RPI code that deeply but it must mimic the EEPROM routing table that the serial/ethernet gateway has (by picking up incomings messages last node.id)... If that is missing then RPI-gw has no clue where to send outgoing messages to nodes.

                                        1 Reply Last reply
                                        0
                                        • A aliasdoc

                                          Sorry Yveaux but I don't understand "Hek", what is this ?? thanks :)

                                          greglG Offline
                                          greglG Offline
                                          gregl
                                          Hero Member
                                          wrote on last edited by
                                          #20

                                          @aliasdoc said:

                                          Sorry Yveaux but I don't understand "Hek", what is this ?? thanks

                                          Hek is the son of HAL...and the secret sauce who made all this possible....

                                          All Hail Hek!!!

                                          ;-)

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


                                          14

                                          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