Referencing the enhancement request on https://github.com/mysensors/NodeManager/issues/233
dakipro created this issue in mysensors/NodeManager
[enhancement] Optimization for button cell batteries (CR2032 and the likes)
@tekka, Thanks for the link to the beta.4. bootloader. I have tried burning nodes using these and tested them by uploading the FW using MySController 1.0beta_b3316 (latest update meant for MySensors2.2.0) with SerialGatewaySketches using both MySensors2.2.0_rc1 and MySensrs2.2.0_pre1 libraries.
MysController doesn't seem to even recognize the Beta.4 bootloaded Nodes (Promini 5V16Mhz with default provided fuse settings from Makefile). The extra nRF chip wiring checks and precautions (0.01uF and 100uF Caps) have been taken. What might be the problem? How to debug when SerialMontitor cant be used? Any Network Sniffer link if that helps...
I guess the MySensors library version of the SerialGateway sketch may be posing a problem. Can you please help me with a link of the correct MySensors library version to use with beta.4 bootloaded nodes?
Any help will be appreciated...
But if I'm not using MYSB, I can flash a sketch with defined ID and this will work instantly in the network.
With MYSB I always have to do assign a new ID just to get the node to run the first time after flashing.
Only true if EEPROM (i.e. ID address location) was cleared.
Any chance to get MYSB to know, if a sketch is an flash?
And start this sketch, which then will use the defined ID or request a new ID from controller and writes the eeprom?
During booting, MYSBootloader calculates the FW CRC in flash and verifies it against the FW CRC stored in EEPROM (which is written after a successful OTA FW update) - if it matches, the sketch starts, if not, the bootloader remains active.
To use the FTDI connection:
You need a ceramic cap (not polarised).
RTS - CAP - RESET pin of ATMEGA
RESET pin needs a pull up resistor of 10K, connect as follows: VCC - 10K resistor - RESET pin of ATMEGA
Would it be possible if you could make a new video that's more up to date? I know that this could be asking a lot but I tried multiple times to combine sketches/examples to no avail. I presently have nodes next to each other that I would love to be able to combine them together. Also, possibly adding in how to add two of the same examples, for example two door/window sensors?
I really want to get a grasp on this and have been reading a lot but unfortunately I’m still missing something.
Either way thanks you for your video. Even though I haven’t been able to get anything working I now have a better understanding of what needs to be done.
@Yveaux said in ESP8266 WiFi gateway port for MySensors:
@Mark-Swift that issue apparently addressed an issue in the vs1053 library, which surfaced because the esp8266 doesn't support interrupts on spi transfers.
The issue was closed because the vs1053 library was modified to support esp8266, unfortunately not because esp interrupt support for spi was implemented...
@Yveaux You're right, should have read more before jumping to conclusions
Damn, I thought I could finally dump my serial gateway!
@bluezr1 Good progress!
In case you are interested in how to shorten this kind of code and be more flexible in assigning PINs, you may have a look at this post here: https://forum.mysensors.org/topic/4847/multi-button-relay-sketch/33# by @korttoma
Just delete the relay part...
@gohan Encrypted Mysensors network? I do not know, did not test. You can try. If the gateway in the encrypted MySensors network can receive (do not process) the message, the scanner will find out about it. I think so.
@plantex i never seen that before. do you have a controler? i use domoticz and the last dimming seems to work properly. but it's right that i dont switch off my nodes when they work, i will check that.
There is no driver for the radio, so someone needs to write that. Currently it is not on the roadmap to support other radio chipsets than Nordic and Hope RF.
But if you see a need for it, then we are willing to look at PR's that include new radios.
@dbemowsk Nah it's better, I run around with a Surface tablet and look like I'm on %random_forensic_crime_drama% How much more Hollywood can one get?
I did split the serial and send it both to the NodeMCU and the TFT screen, but the TFT kept missing lines as it couldn't keep up (rather the Arduino Pro Mini couldn't keep up) so while it'd look nice, was useless for debugging purposes.
Back to testing the inclusion button, now that the gateway is up and running.
I am trying to see in serial monitor, MYS Controller and Domoticz to see if it works, but nothing.
What would be the easiest way to see if the function actually is working?