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
S

sineverba

@sineverba
Hardware Contributor
About
Posts
156
Topics
23
Shares
0
Groups
1
Followers
1
Following
0

Posts

Recent Best Controversial

  • 💬 Battery Powered Sensors
    S sineverba

    @Sebex I run all my nodes with 2xAA rechargable NiMh (or 1 x LifePo4) with Si7021.

    1. Use MiniCore bootloader (https://github.com/MCUdude/MiniCore)
    2. Set BOD at 1.8V for NiMh
    3. Set speed @8Mhz :)

    Enjoy your 1 or 2 years node life at transmit every 5 minutes.

    PS Remove the LED and the regulator, of course ;)

    PPS I use spare AtMega328p on custom PCB board, but same result with a couple of Nano without regulator.

    Announcements battery

  • 💬 Security & Signing
    S sineverba

    @pepson Last time. Please.
    REMOVE
    WHITELISTING
    FROM
    YOUR
    SKETCH

    Clear EEPROM and paste here output of debug. No other.

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson Don't need all copy and paste, enough link :).

    Btw, before move to Home Assistant, where is the output of debug of MySensors?

    sudo mysgw -d

    Of course, you need before stop service.

    Resetting the node, what you get in debug?

    When ALL ok, move to HomeAssistant.

    And remember, after check that debug is ok...

    sudo make install && sudo systemctl enable mysgw.service && sudo systemctl start mysgw.service

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson This is the serial OF GATEWAY. Not your Arduino. You need to put serial of GATEWAY.

    Please, first of all, DONT' USE WHITELISTING. And pay attention: if you enabled it, remove it and:

    1 - clear eeprom
    2 - flash eeprom with keyes
    3 - reload sketch (without whitelisting)

    Announcements

  • 💬 NRF24 to RFM69 adapter
    S sineverba

    @alowhum thank you :)

    OpenHardware.io rfm69 nrf24 mysensors radio nrf24l01

  • 💬 NRF24 to RFM69 adapter
    S sineverba

    Oh, you are right. I will edit the description. My "prerequisites" - overall for battery powered sensors node - is to have the node at 3v3 (or less). This is the reason because I never thought to level converter :)
    Thank you for nice work :)

    OpenHardware.io rfm69 nrf24 mysensors radio nrf24l01

  • 💬 Security & Signing
    S sineverba

    @pepson only one word. Try. Really, you are lost in 1 cm of water. Try. And if it doesn't work, open your topic, showing exactly your sketches and what have you done.

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson And, last all, you can use the mysensors debug options. Try. Try. Try! This is the best option offered to you to learn. Try!
    At max, nothing works ;)

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson

    Let's summarize. Last time.

    1. compile gateway with weak security (make your research, also in my github guide, there is ;) )
    2. create the 3 keyes for gateway
    3. set the 3 keyes for gateway.
    4. clean your EEPROM arduinos with the sketch present in my guide and in examples of library
    5. set the keyes in EEPROM arduinos.

    Stop. End. Fin. Fine. These steps are MANDATARY. You NEED to do.

    You will have in EEPROM the keyes (arduino) and in gateway.

    From now, you select:

    a) Do I need security? Perfect, in sketch arduino add #define bla bla bla on top with security and other stuff.
    b) Do I NOT need security? Perfect, in sketch arduino DON'T ADD #define bla bla related to security.

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson you need to setup gateway with weak security.

    You need generate keyes and set in gateway.

    You need to personalize nodes with the sketch and set keyes on Arduino EEPROM.

    From now, you have two ways: Your node need security? Set use security bla-bla on top with other define(s).

    Don't Need security? Don't define use security.

    Simpler than ever.

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson you can use a special flag define to "downgrade/reduce" security MY_WEAK_SECURITY

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson no need to remove. Simply, in your sketches, don't use signing at all.

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson

    Too many ack lost and slow communication. And other that I don't remember.

    That line on the sketches means that you need add on the node that you want whitelist the serial of gateway.

    You got serial gateway on the steps for 2.2.0.

    You have it.

    You don't need to put anything in no file with 2.2.0. In my guide is NOT mentioned. In my guide, at the bottom, there is the final "set keyes" with only a line OR you can set them everytime you get them.

    Please, take your time to read 1, 2, 3 times before type anything. I think it is very clear, and every step is write down for you.

    ;) Enjoy :)

    PS Don't offend, I want help you, 'cause I used a bit of times before getting security working. And I used so many time write down a guide. But you need to read and follow carefully

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson You use RFM69(H/W/HW). So I. My hint is remain with 2.2.0. I got so many issues with 2.3.0 and RFM that I reverted to 2.2.0 in 1 minute.

    HMAC is not LAN MAC, is HMAC got from MYsensors gateway. Same for other 2 keyes.

    I think that in long explain on my guide you have all info to get your keyes. I follow my same guide everytime I need to reinstall mysensors / domoticz / an entire PI. It is fully tested :)

    Announcements

  • 💬 Security & Signing
    S sineverba

    @pepson see here for 2.2.0 and on left menu for 2.3.0

    https://github.com/sineverba/domapi/wiki/MySensors-2.2.0-Security-and-signin

    Announcements

  • Mysensors 2.2.0: need to force restart of nodes if controller or gateway are not available. How to do?
    S sineverba

    @gohan do u mean bootloader? Optiboot with BOD @1.8 with AA and @2.7 with LifePo4

    Troubleshooting

  • Mysensors 2.2.0: need to force restart of nodes if controller or gateway are not available. How to do?
    S sineverba

    @eric007 Yes, Im sure at 100%. No more transmit. Also if I heat sensors with my Hands (and After 6h the temp surely changed a bit). I think that wd reset is called internally by MyS. If controller and gateway are live, I have no issues. So I think (also answering to @gohan ) that It is not an issues....

    Troubleshooting

  • Mysensors 2.2.0: need to force restart of nodes if controller or gateway are not available. How to do?
    S sineverba

    Hi to all! My environment: Domoticz on RPI3 + Battery LIfePo4 nodes (temp/hum, baro etc). Preamble: all nodes with RFM69W and HW on the gateway. All is very stable from +3 months, no restart, all works as charme.

    From a couple of week I have issues with domoticz that hangs (I will need to solve, but this is another story).

    I need, absolutely, to force the nodes to check if uplink (gateway/domoticz) is "alive", if not, sleep and repeat for infinite, until I can restart Domoticz.

    In effect my nodes for the moment have this logic: try send for 30 times, if cannot receive an ACK delay 5000. I have watchdog at 2 sec, so of course the node restart. For same strange obscure reason, node hangs instead when Domoticz off.

    TL;DR:

    Currently, this is my sketch: https://pastebin.com/raw/0qWBn6iQ

    I found this instructions:

    https://www.mysensors.org/apidocs/group__RoutingNodeSettingGrpPub.html#ga7117d6c2ab335ad8a03caae3ef2c46e7

    If I did understand right, can I at the start of the sketch for node add simply:

    #define MY_TRANSPORT_SANITY_CHECK true
    #define MY_TRANSPORT_SANITY_CHECK_INTERVAL_MS 10 * 60 * 1000ul

    To check every 10 minutes the transport?

    1. What will be happening if transport is not ready? It will go to sleep? Eg. Node sleeping. Awaking after 10 minutes, tryng to transmit and No uplink available. It will be restart continuously? Is it possible to put in sleep for example 10 minutes and retry and go on?

    2. I cannot understand the purpose of:

    MY_SLEEP_TRANSPORT_RECONNECT_TIMEOUT_MS 10000 Timeout (in ms) to re-establish link if node is put to sleep and transport is not ready.

    (got here https://www.mysensors.org/download/sensor_api_20 )

    Thank you

    Troubleshooting

  • RFM69 new driver delay
    S sineverba

    @pepson said in RFM69 new driver delay:

    Finally
    In my opinion on MySensors 2.2.0 all my sketches (switch relay and cover ) works better. With no problem. NO PROBLEM.
    Cover works perfect and switch works perfect without any timeout and delay. ANd all node works without REPEATER.
    My opinion is that in version 2.3.0 something not working correct with radio RFM69HW.
    Maybe for sensors which send data from time to time is ok , but for cover which transfer data when cover is roll, it is problem... and gateway can not recived all data when node send position cover. Maybe developer read this thread and can do any changes to correct it.

    RFM69W / HW user here. I can confirm that V 2.3.0 on both nodes and PI has some broken. My nodes, stable for 3+ months, with new version they have issues. In detail, they cannot get ACK. In my sketch, I check for ACK when transmitting, to force the watchdog or no. NO ACK received (1 every 20/30) :(

    And my nodes are "perfect". LifePo4 or AA, someone feeded directly, RPI3 with 2.5a... And I repeat, no issues in 3+ months from switching from NRF to RFM.

    Troubleshooting

  • 💬 MySensors Gateway for Raspberry PI
    S sineverba

    @mfalkvidd I'm Sorry. For error I did confuse "official" page with OpenHardware project for double gateway. Sorry 😖

    OpenHardware.io raspberry mysensors gateway
  • Login

  • Don't have an account? Register

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