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.
  • alexsh1A alexsh1

    @hek said:

    @alexsh1

    When did you last update the library (on the gw)? @Yveaux recently added a irq-based de-queuing from the radios FIFO. It could help on improving things.

    Otherwise the only advice I have is to skip any amplified radio on gateway (if you have) and tweak powering of radio power on gw.

    @hek
    I downloaded the dev on 26/05 so it is very recent.
    I have normal radios both ends, but the idea is to have amplified one on the GW as well and change rf24_pa_max. Additionally, I'll try to mix as many radios as I can have. Who knows?

    To be honest, things were working OKish before as I took it seriously decoupling radios etc. This voodoo dance around radios really irritates me. Life is too short to waist it - I am now thinking seriously switching to RMF69W or probably to RFM95* (Lora)

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

    @alexsh1 yesh i have bashed my head on rf24 stability myself and have decided to base my network on rfm69:s instead. Too much chatter @2.4ghz. I hope the 69:s have better range and they also have the bonus of AES encryption in hw if you want to obfuscate the communication some. Signing adds netter security, but the paranoid can combine signing with encryption :) (yes rf24 can use AES encryption in software, but that cost memory and some overhead instead)

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

    1 Reply Last reply
    0
    • alexsh1A Offline
      alexsh1A Offline
      alexsh1
      wrote on last edited by
      #470

      Whatever I did, did not help to solve st=fail

      When I disable signing I have got the following (not a signle st=fail):

      Starting sensor (RNONA-, 2.0.0-beta)
      Radio init successful.
      Sensebender Micro FW 1.5 - Online!
      send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=17,sg=0,st=ok:Sensebender Micro
      send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.5
      send: 3-3-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,st=ok:
      send: 3-3-0-0 s=2,c=0,t=7,pt=0,l=0,sg=0,st=ok:
      send: 3-3-0-0 s=3,c=0,t=13,pt=0,l=0,sg=0,st=ok:
      isMetric: 1
      TempDiff :125.61
      HumDiff  :150.00
      T: 25.61
      H: 50
      send: 3-3-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.6
      send: 3-3-0-0 s=2,c=1,t=1,pt=2,l=2,sg=0,st=ok:50
      send: 3-3-0-0 s=3,c=1,t=38,pt=7,l=5,sg=0,st=ok:3.09
      send: 3-3-0-0 s=255,c=3,t=0,pt=1,l=1,sg=0,st=ok:85
      

      I am going to try different channels now with signing

      AnticimexA 1 Reply Last reply
      0
      • alexsh1A alexsh1

        Whatever I did, did not help to solve st=fail

        When I disable signing I have got the following (not a signle st=fail):

        Starting sensor (RNONA-, 2.0.0-beta)
        Radio init successful.
        Sensebender Micro FW 1.5 - Online!
        send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=17,sg=0,st=ok:Sensebender Micro
        send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.5
        send: 3-3-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,st=ok:
        send: 3-3-0-0 s=2,c=0,t=7,pt=0,l=0,sg=0,st=ok:
        send: 3-3-0-0 s=3,c=0,t=13,pt=0,l=0,sg=0,st=ok:
        isMetric: 1
        TempDiff :125.61
        HumDiff  :150.00
        T: 25.61
        H: 50
        send: 3-3-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.6
        send: 3-3-0-0 s=2,c=1,t=1,pt=2,l=2,sg=0,st=ok:50
        send: 3-3-0-0 s=3,c=1,t=38,pt=7,l=5,sg=0,st=ok:3.09
        send: 3-3-0-0 s=255,c=3,t=0,pt=1,l=1,sg=0,st=ok:85
        

        I am going to try different channels now with signing

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

        @alexsh1 yes, without signing your messages are significantly shorter, and thus have a better chance of getting through. You can try experimenting with amplification as well.

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

        YveauxY alexsh1A 2 Replies Last reply
        0
        • AnticimexA Anticimex

          @alexsh1 yes, without signing your messages are significantly shorter, and thus have a better chance of getting through. You can try experimenting with amplification as well.

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

          @Anticimex just a noob question: do you have an idea of the performance penalty of (software) signing? Any benchmark figures?

          http://yveaux.blogspot.nl

          AnticimexA 1 Reply Last reply
          0
          • YveauxY Yveaux

            @Anticimex just a noob question: do you have an idea of the performance penalty of (software) signing? Any benchmark figures?

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

            @Yveaux no, sorry have not got around to compare them. But software signing is actually quicker due to the single write bit banging for the atsha204a. One way to see the difference is measuring the delay for an ACK to come back from a node that require signed messages. I have no figures, but a node with software signing responds slightly faster.

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

            YveauxY 1 Reply Last reply
            0
            • AnticimexA Anticimex

              @Yveaux no, sorry have not got around to compare them. But software signing is actually quicker due to the single write bit banging for the atsha204a. One way to see the difference is measuring the delay for an ACK to come back from a node that require signed messages. I have no figures, but a node with software signing responds slightly faster.

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

              @Anticimex But is it significantly slower than without any signing?

              http://yveaux.blogspot.nl

              AnticimexA 1 Reply Last reply
              0
              • YveauxY Yveaux

                @Anticimex But is it significantly slower than without any signing?

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

                @Yveaux yes. But I know that significant improvements can be made in the nonce whitening. It incrementally calculates a hash which is which is far less efficient than calculate the hash of a buffer. So there are room for improvements. I just wish there were more time, and now my arduinos are packed down so I wont be able to test. But volunteers are welcome, I can still code :)

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

                1 Reply Last reply
                0
                • AnticimexA Anticimex

                  @alexsh1 yes, without signing your messages are significantly shorter, and thus have a better chance of getting through. You can try experimenting with amplification as well.

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

                  @Anticimex said:

                  @alexsh1 yes, without signing your messages are significantly shorter, and thus have a better chance of getting through. You can try experimenting with amplification as well.

                  Do you think a message size has anything to do with st=fail?

                  AnticimexA 1 Reply Last reply
                  0
                  • alexsh1A alexsh1

                    @Anticimex said:

                    @alexsh1 yes, without signing your messages are significantly shorter, and thus have a better chance of getting through. You can try experimenting with amplification as well.

                    Do you think a message size has anything to do with st=fail?

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

                    @alexsh1 yes, like I have said here and in other topics, signing often gets the blame for transmission problems because with signing the maximum message buffer is used, and larger messages are more difficult to transmit than short ones. So if you have a poor connection, odds are that a larger message will fail more often than a short one.

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

                    alexsh1A 1 Reply Last reply
                    0
                    • AnticimexA Anticimex

                      @alexsh1 yes, like I have said here and in other topics, signing often gets the blame for transmission problems because with signing the maximum message buffer is used, and larger messages are more difficult to transmit than short ones. So if you have a poor connection, odds are that a larger message will fail more often than a short one.

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

                      @Anticimex said:

                      @alexsh1 yes, like I have said here and in other topics, signing often gets the blame for transmission problems because with signing the maximum message buffer is used, and larger messages are more difficult to transmit than short ones. So if you have a poor connection, odds are that a larger message will fail more often than a short one.

                      I do not think its signing, but I think it is implementation of signing and sending.
                      I do not get st=fail after the initial 9 messages not even once. Something is just very-very odd.

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

                        I'm seeing the same failed signings when the device powers up, but it doesn't fail after those.

                        alexsh1A 1 Reply Last reply
                        0
                        • ximinezX ximinez

                          I'm seeing the same failed signings when the device powers up, but it doesn't fail after those.

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

                          @ximinez said:

                          I'm seeing the same failed signings when the device powers up, but it doesn't fail after those.

                          Did you manage to get it sorted?

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

                            I just ignore the first fails. It works after that, and has done so for close to a month.

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

                              Well, if you think the signing implementation cause initial radio transmissions to fail I am afraid I will need your help in explaining how. Because I fail to see any connection between signing and radio behaviour. st=fail is a transmission problem, and signing implementation require flawless transmissions. I also suspect you both use nrf24 and I also suspect you will not see this if you use rfm69 although I use nrf24 myself for testing and I have not seen what you report. But I am sure you really experience this strange behaviour. But I maintain that it is due to some startup problems of the radio. I am afraid I cannot find anything I can change in the signing codebase to have an influence on st=ok or st=fail. But I am all ears to suggestions of course if you see something suspicious.

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

                              alexsh1A 1 Reply Last reply
                              1
                              • AnticimexA Anticimex

                                Well, if you think the signing implementation cause initial radio transmissions to fail I am afraid I will need your help in explaining how. Because I fail to see any connection between signing and radio behaviour. st=fail is a transmission problem, and signing implementation require flawless transmissions. I also suspect you both use nrf24 and I also suspect you will not see this if you use rfm69 although I use nrf24 myself for testing and I have not seen what you report. But I am sure you really experience this strange behaviour. But I maintain that it is due to some startup problems of the radio. I am afraid I cannot find anything I can change in the signing codebase to have an influence on st=ok or st=fail. But I am all ears to suggestions of course if you see something suspicious.

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

                                @Anticimex Interesting observation - another node with the same rf24l01+ radio from the sensebender with the same GW and signing works without st=fail. This is now clear that this is not a rf24l01+ hardware issue.

                                AnticimexA 1 Reply Last reply
                                0
                                • alexsh1A alexsh1

                                  @Anticimex Interesting observation - another node with the same rf24l01+ radio from the sensebender with the same GW and signing works without st=fail. This is now clear that this is not a rf24l01+ hardware issue.

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

                                  @alexsh1 Indeed. And also that it is not a signing issue since I take it you use the same FW?
                                  I still think it is a HW issue. You have a new node, right? So the radio has a new power source?

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

                                  alexsh1A 1 Reply Last reply
                                  0
                                  • AnticimexA Anticimex

                                    @alexsh1 Indeed. And also that it is not a signing issue since I take it you use the same FW?
                                    I still think it is a HW issue. You have a new node, right? So the radio has a new power source?

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

                                    @Anticimex said:

                                    @alexsh1 Indeed. And also that it is not a signing issue since I take it you use the same FW?
                                    I still think it is a HW issue. You have a new node, right? So the radio has a new power source?

                                    Yes, I tried to compare apples with apples:

                                    1. it is the same distance / FW
                                    2. the code is different to the expend that the sensebender has got Si7021/ATSHA204a and the other sensor did not. I may try to upload a simplified code to the sensebender just to test it to make it a more equal comparison.
                                    3. the power source is the same - 5V 500mA via AMS1117 + cap
                                    AnticimexA 1 Reply Last reply
                                    0
                                    • alexsh1A alexsh1

                                      @Anticimex said:

                                      @alexsh1 Indeed. And also that it is not a signing issue since I take it you use the same FW?
                                      I still think it is a HW issue. You have a new node, right? So the radio has a new power source?

                                      Yes, I tried to compare apples with apples:

                                      1. it is the same distance / FW
                                      2. the code is different to the expend that the sensebender has got Si7021/ATSHA204a and the other sensor did not. I may try to upload a simplified code to the sensebender just to test it to make it a more equal comparison.
                                      3. the power source is the same - 5V 500mA via AMS1117 + cap
                                      AnticimexA Offline
                                      AnticimexA Offline
                                      Anticimex
                                      Contest Winner
                                      wrote on last edited by
                                      #486

                                      @alexsh1 You could also try soft signing on the sensebender and see if that makes a difference. Perhaps the atsha device interferes with the radio (this depends on routing and such things). I have no sensebender myself and I have not noticed the behavior you describe with nrf24 and atsha204a.

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

                                      alexsh1A 1 Reply Last reply
                                      1
                                      • AnticimexA Anticimex

                                        @alexsh1 You could also try soft signing on the sensebender and see if that makes a difference. Perhaps the atsha device interferes with the radio (this depends on routing and such things). I have no sensebender myself and I have not noticed the behavior you describe with nrf24 and atsha204a.

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

                                        @Anticimex I tried the sensebender with soft singing - still the same st=fail

                                        AnticimexA YveauxY 2 Replies Last reply
                                        0
                                        • alexsh1A alexsh1

                                          @Anticimex I tried the sensebender with soft singing - still the same st=fail

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

                                          @alexsh1 Ok. I guess that is "good news for me" as it rules out signing related hardware as well. I guess so far, the only conclusion is that rf performance is to some extent degraded on the sensebender.

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

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


                                          8

                                          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