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. Hardware
  3. Minimal design thoughts

Minimal design thoughts

Scheduled Pinned Locked Moved Hardware
299 Posts 34 Posters 177.6k Views 17 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.
  • T Offline
    T Offline
    Tibus
    wrote on last edited by
    #112

    @tbowmo said:

    ATSHA204

    This module is verry interesting but how it work? What you have to do in code to make it work, crypting messages,...?

    tbowmoT 1 Reply Last reply
    0
    • D Offline
      D Offline
      Dirk_H
      Contest Winner
      wrote on last edited by
      #113

      @tbowmo I don't see a Load Capacitor on the crystal. Especially if you need a precise clock you should use some. Have a look at https://www.adafruit.com/blog/2012/01/24/choosing-the-right-crystal-and-caps-for-your-design/ for example about Load Capacitors.

      tbowmoT 1 Reply Last reply
      0
      • D Dirk_H

        @tbowmo I don't see a Load Capacitor on the crystal. Especially if you need a precise clock you should use some. Have a look at https://www.adafruit.com/blog/2012/01/24/choosing-the-right-crystal-and-caps-for-your-design/ for example about Load Capacitors.

        tbowmoT Offline
        tbowmoT Offline
        tbowmo
        Admin
        wrote on last edited by
        #114

        @Dirk_H said:

        @tbowmo I don't see a Load Capacitor on the crystal. Especially if you need a precise clock you should use some. Have a look at https://www.adafruit.com/blog/2012/01/24/choosing-the-right-crystal-and-caps-for-your-design/ for example about Load Capacitors.

        I know that normally the crystal require load capacitors, but for the low freq. oscilator (32Khz) its not necessary (as far as I have read), that's why I omitted them from the design. I'll try and dig out the datasheets when I'm at home and double check things.

        tbowmoT 1 Reply Last reply
        0
        • T Tibus

          @tbowmo said:

          ATSHA204

          This module is verry interesting but how it work? What you have to do in code to make it work, crypting messages,...?

          tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by
          #115

          @Tibus said:

          @tbowmo said:

          ATSHA204

          This module is verry interesting but how it work? What you have to do in code to make it work, crypting messages,...?

          There are other threads about the ATSHA204 around in the forum. It's basically just a method for signing messages between units, not encryption. I haven't made any code for it myself, just thinking about implementing it for future plans (and for others to pick up on)

          RJ_MakeR 1 Reply Last reply
          0
          • tbowmoT tbowmo

            @Tibus said:

            @tbowmo said:

            ATSHA204

            This module is verry interesting but how it work? What you have to do in code to make it work, crypting messages,...?

            There are other threads about the ATSHA204 around in the forum. It's basically just a method for signing messages between units, not encryption. I haven't made any code for it myself, just thinking about implementing it for future plans (and for others to pick up on)

            RJ_MakeR Offline
            RJ_MakeR Offline
            RJ_Make
            Hero Member
            wrote on last edited by
            #116

            @tbowmo said:

            @Tibus said:

            @tbowmo said:

            ATSHA204

            This module is verry interesting but how it work? What you have to do in code to make it work, crypting messages,...?

            There are other threads about the ATSHA204 around in the forum. It's basically just a method for signing messages between units, not encryption. I haven't made any code for it myself, just thinking about implementing it for future plans (and for others to pick up on)

            Ah but from what I've read it can indeed encrypt the data stream. Did I completely get it wrong?

            RJ_Make

            tbowmoT 1 Reply Last reply
            0
            • RJ_MakeR RJ_Make

              @tbowmo said:

              @Tibus said:

              @tbowmo said:

              ATSHA204

              This module is verry interesting but how it work? What you have to do in code to make it work, crypting messages,...?

              There are other threads about the ATSHA204 around in the forum. It's basically just a method for signing messages between units, not encryption. I haven't made any code for it myself, just thinking about implementing it for future plans (and for others to pick up on)

              Ah but from what I've read it can indeed encrypt the data stream. Did I completely get it wrong?

              tbowmoT Offline
              tbowmoT Offline
              tbowmo
              Admin
              wrote on last edited by
              #117

              @ServiceXp said:

              @tbowmo said:

              @Tibus said:

              @tbowmo said:

              ATSHA204

              This module is verry interesting but how it work? What you have to do in code to make it work, crypting messages,...?

              There are other threads about the ATSHA204 around in the forum. It's basically just a method for signing messages between units, not encryption. I haven't made any code for it myself, just thinking about implementing it for future plans (and for others to pick up on)

              Ah but from what I've read it can indeed encrypt the data stream. Did I completely get it wrong?

              It's a crypto authentication device, datasheet is at
              http://www.atmel.com/devices/ATSHA204A.aspx

              For sensor data it should be enough, it help to prevent replay attacks, so an intruder can't switch of the lights for example, because the attacker don't have the presharred keys available

              1 Reply Last reply
              0
              • daulagariD Offline
                daulagariD Offline
                daulagari
                Hero Member
                wrote on last edited by daulagari
                #118

                It's a crypto authentication device

                As discussed in the security thread I think authentication alone can be useful but encryption is providing both security and a reasonable form of authentication so why not go for an encryption IC instead of the ATSHA204A.

                Atmel has a nice IC doing AES:

                http://www.atmel.com/devices/ATAES132.aspx

                A bit larger (8 pins SOIC), but reasonable cheap € 0,782 (@10)

                It is also part of CryptoCape, so there should be some software support for it.

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

                  @daulagari

                  That chip is still only for authentication, only it's with aes-128 message auth instead of sha 256

                  Also another thing i noted, is that the supported supply range is from 2.5 to 5v, whereas the atsha204 could operate down to 2.0v.

                  1 Reply Last reply
                  0
                  • daulagariD Offline
                    daulagariD Offline
                    daulagari
                    Hero Member
                    wrote on last edited by
                    #120

                    That chip is still only for authentication, only it's with aes-128 message auth instead of sha 256

                    If I have a look at the datasheet I see:

                    Opcode Name        Description
                    0x06   Encrypt     Encrypts 16 or 32 bytes of plaintext data provided by the Host.
                    0x07   Decrypt     Decrypts 16 or 32 bytes of data provided by the Host after verifying the integrity MAC.
                    

                    So it does encrypt/decrypt.

                    The CryptoCape board has both ATSHA204A and ATAES132 where the ATAES132 can "Encrypt up to a 32 byte packet at a time with AES-128-CCM"

                    Not sure if it is handy to have the integrity MAC combined as that does require 16 additional bytes, but that is the same story for SHA-256.

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

                      Hmm I was tricked by the "crypto-authentication" note on atmel site, so thought it only did auth.

                      Still, lowest vcc is 2.5v. If they could make a device that could operate down to 1.8v instead instead, it would be more interesting.

                      RJ_MakeR 1 Reply Last reply
                      0
                      • tbowmoT tbowmo

                        Hmm I was tricked by the "crypto-authentication" note on atmel site, so thought it only did auth.

                        Still, lowest vcc is 2.5v. If they could make a device that could operate down to 1.8v instead instead, it would be more interesting.

                        RJ_MakeR Offline
                        RJ_MakeR Offline
                        RJ_Make
                        Hero Member
                        wrote on last edited by
                        #122

                        @tbowmo Yeah the 2.5v would be a problem, unless we can build an extremely efficient boost...

                        RJ_Make

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

                          @ServiceXp

                          Yes, but I am trying to avoid booster circuits at all costs in this design. Also the main function is to collect temperature and humidity values from around the house. So for my part encryption is not a must have for this device.

                          btw I'm almost there with rerouting rev 2 to make room for the atsha204 (in sot23 housing)

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

                            Just reading through the datasheet of ATAES132, and realise that I already have support for it on the board. It uses a standard I2C / SPI eeprom footprint, and that is already on the board. So if anyone would like to use it, they only need to replace the flash.

                            Anyway, I have finished re-routing things.. and the ATSHA204 is now incorporated in the design, so challenge/response authentication could be implemented.

                            Just need to do the last couple of reviews, before I press the order button for a new set of pcb's

                            AnticimexA 1 Reply Last reply
                            1
                            • RJ_MakeR Offline
                              RJ_MakeR Offline
                              RJ_Make
                              Hero Member
                              wrote on last edited by
                              #125

                              Is it not possible to just encrypt the entire packet with an AES library on both ends?

                              RJ_Make

                              1 Reply Last reply
                              0
                              • tbowmoT tbowmo

                                Just reading through the datasheet of ATAES132, and realise that I already have support for it on the board. It uses a standard I2C / SPI eeprom footprint, and that is already on the board. So if anyone would like to use it, they only need to replace the flash.

                                Anyway, I have finished re-routing things.. and the ATSHA204 is now incorporated in the design, so challenge/response authentication could be implemented.

                                Just need to do the last couple of reviews, before I press the order button for a new set of pcb's

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

                                @tbowmo Does your design support both I2C and single-write ATSHA204?

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

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

                                  @Anticimex

                                  It's single wire atsha204, it's connected to A3. I couldn't fit in the 8 pin variants of the atsha204, so that ruled out the full I2C bus version. It even took me a couple of hours of re-routing to make enough room for the sot23 housing of the ATSHA204.

                                  Anyway, schematic / pcb layouts are as follows

                                  MySensorV2-schematic.png
                                  MySensorV2-full.png MySensorV2-bottom.png MySensorV2-top.png

                                  AnticimexA RJ_MakeR 2 Replies Last reply
                                  1
                                  • tbowmoT tbowmo

                                    @Anticimex

                                    It's single wire atsha204, it's connected to A3. I couldn't fit in the 8 pin variants of the atsha204, so that ruled out the full I2C bus version. It even took me a couple of hours of re-routing to make enough room for the sot23 housing of the ATSHA204.

                                    Anyway, schematic / pcb layouts are as follows

                                    MySensorV2-schematic.png
                                    MySensorV2-full.png MySensorV2-bottom.png MySensorV2-top.png

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

                                    @tbowmo Excellent.

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

                                    1 Reply Last reply
                                    0
                                    • tbowmoT tbowmo

                                      @Anticimex

                                      It's single wire atsha204, it's connected to A3. I couldn't fit in the 8 pin variants of the atsha204, so that ruled out the full I2C bus version. It even took me a couple of hours of re-routing to make enough room for the sot23 housing of the ATSHA204.

                                      Anyway, schematic / pcb layouts are as follows

                                      MySensorV2-schematic.png
                                      MySensorV2-full.png MySensorV2-bottom.png MySensorV2-top.png

                                      RJ_MakeR Offline
                                      RJ_MakeR Offline
                                      RJ_Make
                                      Hero Member
                                      wrote on last edited by
                                      #129

                                      @tbowmo Once again,... Well Done!

                                      RJ_Make

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

                                        And for the fun of it.. Just made a github repository of the design

                                        https://github.com/tbowmo/MySensorMicro

                                        Just in case anyone would like to have a closer look in eagle.

                                        1 Reply Last reply
                                        1
                                        • RJ_MakeR Offline
                                          RJ_MakeR Offline
                                          RJ_Make
                                          Hero Member
                                          wrote on last edited by
                                          #131

                                          I wonder what kind of "hit" on battery life authentication/encryption will have?

                                          RJ_Make

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


                                          26

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


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

                                          • Don't have an account? Register

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