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. OpenHardware.io
  3. 💬 Sensebender Gateway

💬 Sensebender Gateway

Scheduled Pinned Locked Moved OpenHardware.io
mysensorsgatewaysamd
382 Posts 59 Posters 151.2k Views 53 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.
  • M meddie

    yes i have seen this an my console is set to 115200 bauds, but no output

    AnticimexA Offline
    AnticimexA Offline
    Anticimex
    Contest Winner
    wrote on last edited by
    #196

    Hm. Then I don't know what's wrong. I have not yet used that hardware.

    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      meddie
      wrote on last edited by
      #197

      i just get the output, the serial console must be open while uploading the sketch, immedialty after the upload i see the output.
      But all Keys are FFFFFFF

      SOFT_HMAC_KEY | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
      SOFT_SERIAL   | FFFFFFFFFFFFFFFFFF
      AES_KEY       | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
      ATSHA204A DATA:
      
      

      Why this?

      1 Reply Last reply
      0
      • tbowmoT Offline
        tbowmoT Offline
        tbowmo
        Admin
        wrote on last edited by
        #198

        The personalizer doesn't wait for the usb port to be enumerated / attached. We need to add the following code in the start of setup() (if I remember right)

        While(! Serial()) {} 
        

        But only for devices using native USB (I thought that I had added it already, but I might be wrong)

        AnticimexA 1 Reply Last reply
        0
        • tbowmoT tbowmo

          The personalizer doesn't wait for the usb port to be enumerated / attached. We need to add the following code in the start of setup() (if I remember right)

          While(! Serial()) {} 
          

          But only for devices using native USB (I thought that I had added it already, but I might be wrong)

          AnticimexA Offline
          AnticimexA Offline
          Anticimex
          Contest Winner
          wrote on last edited by
          #199

          @tbowmo ah, I will add that then for samd targets. The personalizer uses MY_CORE_ONLY so your line perhaps is not run.

          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

          T 1 Reply Last reply
          0
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #200

            @Anticimex
            I think something in the line of

            #if defined(ARDUINO_ARCH_SAMD)
            while (!Serial) {} // halts operation until something attaches to the USB device
            #endif
            

            above, is based on hwInit function in MyHwSAMD.cpp

            AnticimexA 1 Reply Last reply
            0
            • tbowmoT tbowmo

              @Anticimex
              I think something in the line of

              #if defined(ARDUINO_ARCH_SAMD)
              while (!Serial) {} // halts operation until something attaches to the USB device
              #endif
              

              above, is based on hwInit function in MyHwSAMD.cpp

              AnticimexA Offline
              AnticimexA Offline
              Anticimex
              Contest Winner
              wrote on last edited by
              #201

              @tbowmo Yep, I have already (locally) done this:

              #if defined(ARDUINO_ARCH_SAMD)
              	while(!Serial()); // Wait for USB enumeration before setting up serial device
              #endif
              	Serial.begin(MY_BAUD_RATE);
              

              Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

              1 Reply Last reply
              0
              • AnticimexA Offline
                AnticimexA Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #202

                I have moved the signing specific discussion in this thread here where it belongs.

                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                1 Reply Last reply
                0
                • FleischtorteF Offline
                  FleischtorteF Offline
                  Fleischtorte
                  wrote on last edited by
                  #203

                  hi all,

                  i have some problems to enable encryption on the gateway. When i upload the cleareeprom sketch, the gateway dont clear the eeprom,
                  the same problem comes up when i want to set the ENC-Key. Both sketches work with my moteino-gateway and my ProMini-Node, so do i miss something with the SensebenderGW-Config?

                  ClearEEPROM:

                  #if defined(ARDUINO_ARCH_SAMD)
                  while (!Serial) {} // Wait for USB enumeration before setting up serial device
                  #endif
                    Serial.begin(MY_BAUD_RATE);
                  	Serial.println("Started clearing. Please wait...");
                  	for (int i=0; i<EEPROM_LOCAL_CONFIG_ADDRESS; i++) {
                  		hwWriteConfig(i,0xFF);
                  	}
                  	Serial.println("Clearing done. You're ready to go!");
                  

                  Set ENC-Key:

                   #if defined(ARDUINO_ARCH_SAMD)
                   while (!Serial) {} // Wait for USB enumeration before setting up serial device
                   #endif
                    Serial.begin(MY_BAUD_RATE);
                    Serial.println("Set ENC-Key. Please wait...");
                      uint8_t key[32];
                      memcpy(key, user_aes_key, 16);
                      hwWriteConfigBlock((void*)key, (void*)EEPROM_RF_ENCRYPTION_AES_KEY_ADDRESS, 16);
                      Serial.println("Set ENC-Key. Done");
                  
                  AnticimexA 1 Reply Last reply
                  0
                  • FleischtorteF Fleischtorte

                    hi all,

                    i have some problems to enable encryption on the gateway. When i upload the cleareeprom sketch, the gateway dont clear the eeprom,
                    the same problem comes up when i want to set the ENC-Key. Both sketches work with my moteino-gateway and my ProMini-Node, so do i miss something with the SensebenderGW-Config?

                    ClearEEPROM:

                    #if defined(ARDUINO_ARCH_SAMD)
                    while (!Serial) {} // Wait for USB enumeration before setting up serial device
                    #endif
                      Serial.begin(MY_BAUD_RATE);
                    	Serial.println("Started clearing. Please wait...");
                    	for (int i=0; i<EEPROM_LOCAL_CONFIG_ADDRESS; i++) {
                    		hwWriteConfig(i,0xFF);
                    	}
                    	Serial.println("Clearing done. You're ready to go!");
                    

                    Set ENC-Key:

                     #if defined(ARDUINO_ARCH_SAMD)
                     while (!Serial) {} // Wait for USB enumeration before setting up serial device
                     #endif
                      Serial.begin(MY_BAUD_RATE);
                      Serial.println("Set ENC-Key. Please wait...");
                        uint8_t key[32];
                        memcpy(key, user_aes_key, 16);
                        hwWriteConfigBlock((void*)key, (void*)EEPROM_RF_ENCRYPTION_AES_KEY_ADDRESS, 16);
                        Serial.println("Set ENC-Key. Done");
                    
                    AnticimexA Offline
                    AnticimexA Offline
                    Anticimex
                    Contest Winner
                    wrote on last edited by
                    #204

                    @Fleischtorte we have confirmed a bug in the I2C eeprom management in the samd platform. A fix is in the works.

                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                    1 Reply Last reply
                    2
                    • FleischtorteF Offline
                      FleischtorteF Offline
                      Fleischtorte
                      wrote on last edited by
                      #205

                      @Anticimex okay, thanks for the fast response :+1:

                      1 Reply Last reply
                      1
                      • scalzS scalz

                        @alexsh1 why, i don't understand :stuck_out_tongue_winking_eye:

                        Here it is : http://www.thingiverse.com/thing:2084269

                        alexsh1A Offline
                        alexsh1A Offline
                        alexsh1
                        wrote on last edited by
                        #206

                        @scalz Did you manage to do the 3D case for the PA LNA transceiver for the sensebender gateway please?

                        1 Reply Last reply
                        0
                        • AnticimexA Anticimex

                          @tbowmo ah, I will add that then for samd targets. The personalizer uses MY_CORE_ONLY so your line perhaps is not run.

                          T Offline
                          T Offline
                          ted
                          wrote on last edited by
                          #207

                          @Anticimex said in 💬 Sensebender Gateway:

                          MY_CORE_ONLY

                          Just curious, what does "MY_CORE_ONLY" do? The library mentioned that it should be enabled " if you want to use core functions without loading the framework" . What are the core functions and what is the framework?

                          AnticimexA 1 Reply Last reply
                          0
                          • T ted

                            @Anticimex said in 💬 Sensebender Gateway:

                            MY_CORE_ONLY

                            Just curious, what does "MY_CORE_ONLY" do? The library mentioned that it should be enabled " if you want to use core functions without loading the framework" . What are the core functions and what is the framework?

                            AnticimexA Offline
                            AnticimexA Offline
                            Anticimex
                            Contest Winner
                            wrote on last edited by
                            #208

                            @ted core functions are things like the HAL and debug logging functionality. Framework means all the presentation message transmissions and handshaking. Basically, MY_CORE_ONLY allow you to leverage the functionality provided by the library without having the library execute things out of your control.

                            Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                            1 Reply Last reply
                            0
                            • scalzS Offline
                              scalzS Offline
                              scalz
                              Hardware Contributor
                              wrote on last edited by scalz
                              #209

                              @alexsh1
                              woops, yes i made it but forgot the upload. it's now uploaded here https://www.mysensors.org/hardware/sensebender-gateway#design-files

                              Enjoy :)

                              alexsh1A zboblamontZ 2 Replies Last reply
                              0
                              • scalzS scalz

                                @alexsh1
                                woops, yes i made it but forgot the upload. it's now uploaded here https://www.mysensors.org/hardware/sensebender-gateway#design-files

                                Enjoy :)

                                alexsh1A Offline
                                alexsh1A Offline
                                alexsh1
                                wrote on last edited by alexsh1
                                #210

                                @scalz Thank you.

                                Does anyone have the PA transceiver version with Sensebender Gateway?
                                Any feedback please?

                                1 Reply Last reply
                                0
                                • tbowmoT Offline
                                  tbowmoT Offline
                                  tbowmo
                                  Admin
                                  wrote on last edited by
                                  #211

                                  @alexsh1

                                  If you mean using a nrf24 with lna/pa, with the gateway. Then yes.. I have had it running for some months now.

                                  Anything in particular that you want to know?

                                  alexsh1A 1 Reply Last reply
                                  0
                                  • tbowmoT tbowmo

                                    @alexsh1

                                    If you mean using a nrf24 with lna/pa, with the gateway. Then yes.. I have had it running for some months now.

                                    Anything in particular that you want to know?

                                    alexsh1A Offline
                                    alexsh1A Offline
                                    alexsh1
                                    wrote on last edited by alexsh1
                                    #212

                                    @tbowmo yes, that's what I meant
                                    I am thinking about installing either a normal nrf24l01+ or lna/pa version. I have had some issues with power in the past with the lna/pa transceiver.
                                    What's your experience? What kind of power supply do you use? How better is the coverage?

                                    1 Reply Last reply
                                    0
                                    • tbowmoT Offline
                                      tbowmoT Offline
                                      tbowmo
                                      Admin
                                      wrote on last edited by
                                      #213

                                      I haven't checked if the coverage is any better with the lna/pa version, compared to standard modules.

                                      Currently the gateway is connected to a RPI2, which in turn is powered by a 2A powersupply from RS Components

                                      I haven't had any issues with it yet, but then again.. I mainly receive data from sensor nodes, and not that much sending data to distant nodes from the gateway

                                      alexsh1A 1 Reply Last reply
                                      0
                                      • tbowmoT tbowmo

                                        I haven't checked if the coverage is any better with the lna/pa version, compared to standard modules.

                                        Currently the gateway is connected to a RPI2, which in turn is powered by a 2A powersupply from RS Components

                                        I haven't had any issues with it yet, but then again.. I mainly receive data from sensor nodes, and not that much sending data to distant nodes from the gateway

                                        alexsh1A Offline
                                        alexsh1A Offline
                                        alexsh1
                                        wrote on last edited by
                                        #214

                                        @tbowmo It is probably not Sensebender topic, but more lna+pa range one.
                                        I am not sure about my RPi3 as though it is powered by the 3A PSU, I have a USB z-wave stick, three transceivers, one UPS Plco (as HAT) and a 20x4 screen. I lot of power is consumed so not sure adding yet another one. (lna+pa is power hungry during peaks).

                                        I'll get the nrf24l01+ lna+pa ordered and test the range. In my view rfm69 range is probably better, but I have the rfm69 gateway on moteino with a trace antenna (very small footprint and it is based on ATMega1284P so 128KB sketch flash memory - more than I need).

                                        @hek - is it the intention to combine rfm69 and nrf24l01+ gateways in one in the future?
                                        I understand Sensebender GW is ready for it, but it is more a software limitation???
                                        I am really looking forward to combined GW.
                                        I also have a separate one for rfm95 so that I can use some remote sensors.

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

                                          No, I haven't heard of any near plans in the core team about doing multi radio/sub-network support in 2.0.

                                          This requires some extra thoughts and would probably only fit on SAMD/ESP nodes.

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


                                          10

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular