Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. ximinez
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    ximinez

    @ximinez

    6
    Reputation
    39
    Posts
    511
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    ximinez Follow

    Best posts made by ximinez

    • RE: Sensebender Micro

      Well that went south pretty fast. Was wondering why my sensebender was acting up. Took a while to see that I had plugged in an ESP8266 module instead of one of my NRF24 modules. Those modules look far too much alike 😡

      Serial output now looks like this: "Sånsebåndåò Micro FW 1.3" with random characters corrupted. I think I've killed it 😉
      I can still flash firmware to it via serial, so it's not completely dead.

      I can however confirm that both the SHA204A and SI7021 self-tests OK being powered on in-sketch:
      (Flash seems to randomly fail or test OK, not sure why yet)

      þSånseâånder Micòo F× 1.3 - TesôÍoäe
      Tåstiîg påòipheraló!
      -> ÓÉ7021 : ok!
      -> Æìasè : æailed!
      -> SÈA204 : Ïk (seòéal : 01234ÂBAÅ259E8AÄÅE)
      Tåót fiîésheä
      ----> Óelftest æaiìåä!

      posted in Announcements
      ximinez
      ximinez
    • RE: software AES encryption for NRF24

      @FotoFieber said:

      @Anticimex said:

      @FotoFieber with a SenseBender, there is no reason for soft signing. It should have a ATSHA204A chip. But nice that you have working setup 🙂

      Yes, but encryption and ATSHA204A is to big for the SenseBender... 😞

      Old thread, but... In the dev branch, there's a RF24 refactor that is much smaller. With that, and removing test-mode, there's plenty of space on the sensebender:

      #define MY_RADIO_NRF24
      #define MY_SIGNING_ATSHA204
      #define MY_SIGNING_REQUEST_SIGNATURES
      #define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0xBO,0xGU,0xSK,0xEY,0xZZ,0xFC,0xAD,0x04,0xD1}}}
      #define MY_OTA_FIRMWARE_FEATURE
      #define MY_RF24_ENABLE_ENCRYPTION

      Sketch uses 23,196 bytes (75%) of program storage space. Maximum is 30,720 bytes.
      Global variables use 1,386 bytes (67%) of dynamic memory, leaving 662 bytes for local variables. Maximum is 2,048 bytes.

      Even with debug it's only at 91%.

      My W5100 gateway ends up at 107% with AES though, but it fits (with 592 bytes to spare) if I use a static address instead of DHCP.
      Serial Gateway ends up at only 65%.

      posted in Development
      ximinez
      ximinez
    • RE: Radio fails to init on W5100

      Yes. When I say that I haven't changed the pins, I mean that I haven't changed the physical pins (or the CE/CSN numbers in my sketch) compared to when the same setup worked with the previous RF24 driver.

      I love the difference in available space the new driver gives, but I'd love it even more if the radio continued to work 😛

      posted in Bug Reports
      ximinez
      ximinez
    • RE: Sensebender Micro

      Ok, I've been looking at the image and my spare sensor. It looks like:
      Power to the NRF can be cut between C3 and VCC pin.
      ATSHA204a power can be cut on the trace that goes from the atsha and beneath the flash.
      Si7021 power can be cut at the trace that goes from C4.

      I just might have to dig out my scalpel and iron for this. If the components magically work without any extra initialization on powerup, modifying the code looks easy.

      I'll report back with my findings

      posted in Announcements
      ximinez
      ximinez

    Latest posts made by ximinez

    • RE: Sensebender Micro

      @hek said:

      @ximinez

      You can add a before()-method.

      It's that easy? I'll give it a try when I get around to it, unless @alexsh1 feels like trying it first 🙂

      posted in Announcements
      ximinez
      ximinez
    • RE: Sensebender Micro

      Is there a "pre setup" available yet? The failed transmits are before sensor values are transmitted, so they aren't in the actual sketch but somewhere in the library. I'd like to try just sleeping the sensor 5-10 seconds before the initial data is transmitted and see if that makes a difference.

      posted in Announcements
      ximinez
      ximinez
    • RE: Sensebender Micro

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

      posted in Announcements
      ximinez
      ximinez
    • RE: Sensebender Micro

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

      posted in Announcements
      ximinez
      ximinez
    • RE: software AES encryption for NRF24

      @FotoFieber said:

      @Anticimex said:

      @FotoFieber with a SenseBender, there is no reason for soft signing. It should have a ATSHA204A chip. But nice that you have working setup 🙂

      Yes, but encryption and ATSHA204A is to big for the SenseBender... 😞

      Old thread, but... In the dev branch, there's a RF24 refactor that is much smaller. With that, and removing test-mode, there's plenty of space on the sensebender:

      #define MY_RADIO_NRF24
      #define MY_SIGNING_ATSHA204
      #define MY_SIGNING_REQUEST_SIGNATURES
      #define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0xBO,0xGU,0xSK,0xEY,0xZZ,0xFC,0xAD,0x04,0xD1}}}
      #define MY_OTA_FIRMWARE_FEATURE
      #define MY_RF24_ENABLE_ENCRYPTION

      Sketch uses 23,196 bytes (75%) of program storage space. Maximum is 30,720 bytes.
      Global variables use 1,386 bytes (67%) of dynamic memory, leaving 662 bytes for local variables. Maximum is 2,048 bytes.

      Even with debug it's only at 91%.

      My W5100 gateway ends up at 107% with AES though, but it fits (with 592 bytes to spare) if I use a static address instead of DHCP.
      Serial Gateway ends up at only 65%.

      posted in Development
      ximinez
      ximinez
    • RE: Radio fails to init on W5100

      Both soft and hard SPI work on my cheap W5100 clone shield (with SD).

      posted in Bug Reports
      ximinez
      ximinez
    • RE: Radio fails to init on W5100

      @tekka said:

      @ximinez Just tested your setup/settings using an Arduino UNO + W5100 shield and I can confirm, that SOFTSPI (A2=MISO, A1=MOSI, A0=SCK, D6=CSN, D5=CE) and HWSPI (D12=MISO, D11=MOSI, D13=SCK, D6=CSN, D5=CE + #define MY_W5100_SPI_EN 4) work with the refactored RF24 driver.

      Please double check you are using the most recent MySensors 2.0.0-beta lib and GatewayW5100 sketch.

      I just did (for the second time), and lo and behold it works. Absolutely no clue why, but I'm sorry I've wasted your time.

      My gateway can finally have DHCP and signing at the same time 🙂

      posted in Bug Reports
      ximinez
      ximinez
    • RE: Radio fails to init on W5100

      #define MY_DEBUG
      #define MY_RADIO_NRF24
      #define MY_DEBUG_VERBOSE_RF24
      #define MY_GATEWAY_W5100
      #define MY_SIGNING_SOFT
      #define MY_SIGNING_REQUEST_SIGNATURES
      #define MY_RF24_CE_PIN 5
      #define MY_RF24_CS_PIN 6

      Using an UNO with an ethernet shield, wired up like this: https://www.mysensors.org/build/ethernet_gateway
      A2 MISO
      A1 MOSI
      A0 SCK
      6 CSN
      5 CE

      posted in Bug Reports
      ximinez
      ximinez
    • RE: Radio fails to init on W5100

      Yes. When I say that I haven't changed the pins, I mean that I haven't changed the physical pins (or the CE/CSN numbers in my sketch) compared to when the same setup worked with the previous RF24 driver.

      I love the difference in available space the new driver gives, but I'd love it even more if the radio continued to work 😛

      posted in Bug Reports
      ximinez
      ximinez
    • Radio fails to init on W5100

      I updated to dev branch yesterday, and on my W5100 gateway the radio now fails to initialize:

      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0-beta)
      0;255;3;0;9;write register, reg=0, value=6
      0;255;3;0;9;write register, reg=3, value=3
      0;255;3;0;9;write register, reg=4, value=95
      0;255;3;0;9;write register, reg=5, value=76
      0;255;3;0;9;write register, reg=6, value=35
      0;255;3;0;9;read register, reg=6, value=255
      0;255;3;0;9;read register, reg=6, value=255
      0;255;3;0;9;Sanity check failed: RF_SETUP register=255 instead of 35, check wiring, replace module or non-P version
      0;255;3;0;9;Radio init failed. Check wiring.

      I've tried three different (confirmed working on my sensebender micro) radios, I've quadruple-checked my wiring, and I haven't changed the pins. So something is funky after the RF24 refactor.

      posted in Bug Reports
      ximinez
      ximinez