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. Sensebender Micro

Sensebender Micro

Scheduled Pinned Locked Moved Announcements
584 Posts 84 Posters 401.8k Views 35 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.
  • ximinezX Offline
    ximinezX Offline
    ximinez
    wrote on last edited by
    #410

    The personalization fails to compile for my sensebender micro. There's a few undeclared:

    Personalizer:225: error: 'EEPROM_SIGNING_SOFT_HMAC_KEY_ADDRESS' was not declared in this scope
    Personalizer:225: error: 'hwReadConfigBlock' was not declared in this scope
    Personalizer:236: error: 'EEPROM_SIGNING_SOFT_SERIAL_ADDRESS' was not declared in this scope
    Personalizer:247: error: 'EEPROM_RF_ENCRYPTION_AES_KEY_ADDRESS' was not declared in this scope
    Personalizer:697: error: 'hwMillis' was not declared in this scope

    I'm trying to compile this against master however. Do I have to have dev branch to compile that sketch?

    1 Reply Last reply
    0
    • ximinezX Offline
      ximinezX Offline
      ximinez
      wrote on last edited by
      #411

      Fails with the same errors on Uno for me.

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

        @ximinez and you are certain you have no local changes to the code? Jenkins builds both master and development branches every night for both the SenseBender and the uno and it builds all examples, including the personalizer without issues.

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

        1 Reply Last reply
        0
        • ximinezX Offline
          ximinezX Offline
          ximinez
          wrote on last edited by
          #413

          Pretty sure.
          I'll wipe my library dir and redownload master.

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

            If memory serves me, some of the errors you get seem to originate from code on development branch. The eeprom addresses are to my knowledge not yet available on master.

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

            1 Reply Last reply
            0
            • ximinezX Offline
              ximinezX Offline
              ximinez
              wrote on last edited by
              #415

              Ok, moved from master to dev. Sketch compiled. Not quite the output I expected however.

              EEPROM configuration:
              SOFT_HMAC_KEY | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
              SOFT_SERIAL | FFFFFFFFFFFFFFFFFF
              AES_KEY | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

              AnticimexA 1 Reply Last reply
              0
              • ximinezX ximinez

                Ok, moved from master to dev. Sketch compiled. Not quite the output I expected however.

                EEPROM configuration:
                SOFT_HMAC_KEY | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                SOFT_SERIAL | FFFFFFFFFFFFFFFFFF
                AES_KEY | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

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

                @ximinez it is the output I expected. You have gone for soft signing, and you see the reset values of the eeprom. You need to pick atsha settings. The link I gave you gives the exact settings to personalize both for software and atsha backends.

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

                1 Reply Last reply
                0
                • ximinezX Offline
                  ximinezX Offline
                  ximinez
                  wrote on last edited by
                  #417

                  Got it now :)
                  I had two different sketches and had edited the wrong one. Now I have actual values.
                  Is there an example GW sketch that I can load quickly to my Uno/W5100 shield/NRF24?

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

                    :thumbsup:
                    I'm rusty on the gateways. But on development branch, configuring signing is easier than on master branch. My link gives the details on signing configuration for both nodes and gateways with examples.

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

                    1 Reply Last reply
                    0
                    • ximinezX Offline
                      ximinezX Offline
                      ximinez
                      wrote on last edited by ximinez
                      #419

                      Yeah, I'm struggling a bit with those instructions. I've set up my gateway with soft signing, and got sane values written to EEPROM.
                      Now, do I need any of the three values to personalize the sensebender?
                      SOFT_HMAC_KEY?

                      AnticimexA 1 Reply Last reply
                      0
                      • ximinezX ximinez

                        Yeah, I'm struggling a bit with those instructions. I've set up my gateway with soft signing, and got sane values written to EEPROM.
                        Now, do I need any of the three values to personalize the sensebender?
                        SOFT_HMAC_KEY?

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

                        @ximinez the SenseBender you have patched/cut needs atsha personalization, so no SOFT anything. But you need to have the same hmac key stored on the atsha on the SenseBender as you have picked as soft hmac key in eeprom of your gateway (the node you have personalized for soft signing).

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

                        ximinezX 1 Reply Last reply
                        0
                        • AnticimexA Anticimex

                          @ximinez the SenseBender you have patched/cut needs atsha personalization, so no SOFT anything. But you need to have the same hmac key stored on the atsha on the SenseBender as you have picked as soft hmac key in eeprom of your gateway (the node you have personalized for soft signing).

                          ximinezX Offline
                          ximinezX Offline
                          ximinez
                          wrote on last edited by
                          #421

                          @Anticimex Yeah, that's what I asked ;)

                          I get:
                          Writing key to slot 0...
                          Data lock failed. Response: D3

                          AnticimexA 1 Reply Last reply
                          0
                          • ximinezX ximinez

                            @Anticimex Yeah, that's what I asked ;)

                            I get:
                            Writing key to slot 0...
                            Data lock failed. Response: D3

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

                            @ximinez locking data is a very bad idea. It will prevent you from changing the hmac key. You only need to (and should) lock configuration. Only lock data if you really know what you are doing.

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

                            1 Reply Last reply
                            0
                            • ximinezX Offline
                              ximinezX Offline
                              ximinez
                              wrote on last edited by
                              #423

                              Writing key to slot 0...
                              Data not locked. Define LOCK_DATA to lock for real.

                              Personalization is now complete.
                              Configuration is LOCKED
                              Data is UNLOCKED

                              AnticimexA 1 Reply Last reply
                              0
                              • ximinezX ximinez

                                Writing key to slot 0...
                                Data not locked. Define LOCK_DATA to lock for real.

                                Personalization is now complete.
                                Configuration is LOCKED
                                Data is UNLOCKED

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

                                @ximinez looks good. You should be done with personalization. Remember to require signatures from the SenseBender in addition to "enabling" it. You can also require signature on the GW, thus forcing all communications between them to be signed. The serial console will reveal how it goes. You can enable verbose debug (MY_DEBUG_VERBOSE_SIGNING) for the signing if you want more details on the signing parts.

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

                                1 Reply Last reply
                                0
                                • ximinezX Offline
                                  ximinezX Offline
                                  ximinez
                                  wrote on last edited by
                                  #425

                                  I have the sensor sketch mostly done, but I'll have to do some soldering again tomorrow. It looks like D7 got burnt when I plugged in my ESP8266, giving ~0,5v out on that pin. Will have to work around that:

                                  Sôártinç óensor (RÎONA-, 2.0.0-beta)
                                  Raäio init æáiìåd. Ãèeck wiring.

                                  When that is OK, I'll look at the GW sketch.

                                  AnticimexA 1 Reply Last reply
                                  0
                                  • ximinezX ximinez

                                    I have the sensor sketch mostly done, but I'll have to do some soldering again tomorrow. It looks like D7 got burnt when I plugged in my ESP8266, giving ~0,5v out on that pin. Will have to work around that:

                                    Sôártinç óensor (RÎONA-, 2.0.0-beta)
                                    Raäio init æáiìåd. Ãèeck wiring.

                                    When that is OK, I'll look at the GW sketch.

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

                                    Sounds good. Bedtime here too.

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

                                    1 Reply Last reply
                                    0
                                    • ximinezX Offline
                                      ximinezX Offline
                                      ximinez
                                      wrote on last edited by
                                      #427

                                      D3, D4 and D7 are all funky, and do not give ~3v when set high. So I'm back to the radio being on all the time.
                                      D5 and D6 mysteriously work just fine.

                                      Radio is now OK, but the sensebender reboots before it gets to setup().
                                      Stárting óensor (ÒÎONA-, 2.0.0-beôá)
                                      Ráäio init suããessæuì.
                                      æéîä parenô
                                      send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,óô=bc:
                                      [reboot and repeat]

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

                                        @ximinez

                                        Sounds like it's on its way to the "other side"..

                                        1 Reply Last reply
                                        0
                                        • ximinezX Offline
                                          ximinezX Offline
                                          ximinez
                                          wrote on last edited by
                                          #429

                                          Yup. Setting up my other sensebender as a proper signing sensor and my uno as a gateway. This will have to wait until I get a couple more working sensors.

                                          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