What is required in MySensors nodes to make the send heartbeat option in the binding actually work. Do I need to explicitly include code in my node implementations? What happens if my nodes are sleeping?
tomkxy
Posts
-
sendHeartbeat in binding? -
Cannot get Sensebender_GW / W5100 to connect to router.@johnrob said in Cannot get Sensebender_GW / W5100 to connect to router.:
From what I see you probably should try to define an IP address in your sketch...
#define MY_IP_ADDRESS 192,xxx,xxx,xx7
-
ClearEprom does not work for Sensebender GWThe changed the sketch as follows:
#define MY_CORE_ONLY #include <MySensors.h> void setup() { unsigned long enter = hwMillis(); while (hwMillis() - enter < (unsigned long)15000); Serial.begin(MY_BAUD_RATE); Serial.print("EEPROM_LOCAL_CONFIG_ADDRESS: "); Serial.println(EEPROM_LOCAL_CONFIG_ADDRESS); Serial.println("Started clearing. Please wait..."); for (int i=0; i<EEPROM_LOCAL_CONFIG_ADDRESS; i++) { hwWriteConfig(i,0xFF); } Serial.println("Clearing done. You're ready to go!"); } void loop() { // Nothing to do here... }The output is:
EEPROM_LOCAL_CONFIG_ADDRESS: 413
Started clearing. Please wait...I use the following versions:
My Arduino version is: 1.8.5
MySensors Board Version: 1.0.5
Arduino SAMD Board Version: 1.6.11 (M3), 1.6.17 (M0+)Interesting observation which might be hinting at a fundamental problem:
I need to double the baud rate in the serial monitor. So in order to get any output I need to set the baud rate to 230400 -
ClearEprom does not work for Sensebender GWI just tried to delete the EEPROM of my Sensebender GW with the sample sketch coming with the MySensor library (ClearEepromConfig) It does not seem to work. At least as far I can deduce from the debug statements I inserted. I put a print just before the for loop in the setup function and one after hwWriteConfig. The code does not reach the hwWriteConfig.
I am using MySensors 2.1.1
-
Sensebender GW no output on serialOk, now I think I have a workaround...The sketch SecurityPersonalizer gave me the right hint. I need to extend the waiting time in setup. If I extend it to around 10secs it seems to work.
void setup() { unsigned long enter = hwMillis(); while (hwMillis() - enter < (unsigned long)10000); Serial.begin(115200); Serial.println("here you go"); } -
Sensebender GW no output on serialOk. I have some new findings. Serial.print works after I sent a couple of thousands. Here is some code (not nice, but anyway...)
This will not print anything in the Serial Monitor:
#define MY_CORE_ONLY #include <MySensors.h> int i = 0; void setup() { Serial.begin(9600); for (; i< 10000; i++) { Serial.println(i); } } void loop() { if (i < 150000) { i = 200000; Serial.println("Started clearing. Please wait..."); Serial.println("Clearing done."); } }Changing the loop end in the for loop in setup to 50000 for example, Serial.prints show up.
-
Sensebender GW no output on serialVersion 2.1.1
-
Sensebender GW no output on serialAfter being away for almost one year. I picked up some of my stuff lying around in my cellar :-) Part of that is a Sensebender Gateway which is supposed to replace my current ATMega Gateway. However, I have a really strange behavior (Arduino 1.8.5):
- Uploaded Gateway5100 code -> I can see in my OpenHab controller that it works
- However, I cannot see any output from serial.println. - I tried other MySensor sketches, like SecurityPersonalizer -> doesn't work
I tried it with some of the basic Arduino sketches where no MySensor code is involved: This works.
I tried a re-install of Arduino, also deleting everything under /Users/tom/Library/Arduino15 and installed the boards (MySensors SAMD Boards 1.05) again.
I am really stuck. Any ideas are highly appreciated.
-
MySensors 2.0.0 Released@Anticimex said:
:mega: We are happy to announce a major release of the MySensors library to 2.0.0!
For details, see here.
Doxygen links on the master github frontpage are not working. These are the correct links:
master developmentThanks a lot for that great piece of work!!!
-
Manufacture a custom wristband@nemik said:
My advice would be to visit Alibaba and try to find someone who sells the product most similar to what you want. Then reach out to them about modifying it and branding it for you.
Some sell iBeacons and such in wristbands already, so it might not be too big of a stretch for them to customize it with some other electronics that you might have in mind.Good luck!
Thanks!
-
Meet in Malmö, Summer 2016?Looks like you had a good time :-)
-
Multisensor PIR based on IKEA Molgan@TimO said:
@tomkxy Nice write up! Do you have an idea on the accuracy of the humidity sensor within the case?
I did some comparison measure regarding temp and humidity. I place an open Sensebender just beside the modded Molgan. The humidity measured at the Molgan was about 11% lower than the humidity measured by the open Sensebender. With respect to temp the Molgans temp was about 6% lower than the temp measured by the open Sensebender.
-
Manufacture a custom wristbandI know that this is not a MySensor topic, but I guess there are a couple of users in this forum who might give me some direction. Provided that I would like to manufacture a wristband having some electronics on board. How would you go with the wristband? Is somebody aware of companies offering customized wristbands?
-
Ceech-Board BuyersI bought twice @ceech and delivery was prompt. Also all questions I had were promptly answered. So I would buy from ceech again without hesitating.
-
Multisensor PIR based on IKEA MolganI made a couple of additional modifications based on posts here and google results:
- put a short wait before the node goes to sleep -> based on reports from that forum
- read the motion pin twice with a small wait in between
- put a small alu foil between the radio and the PCB -> there are some reports in the internet that RF interference could cause false triggers
I had a close look at the sensor today and everything looked okay so far. However, I was moving into the room in and out. Let's see what the result tomorrow will be.
-
Multisensor PIR based on IKEA MolganI googled a bit regarding PIR false alarms and found a couple of links. Apart from small bugs - which I have not in the room - air vents could trigger false alarms. Thus, I put back the plastic dome and now have sind 4 hours no false alarms. I am now convinced that my false alarms a most probably triggered by placement and may be air vents.
http://de.actmeters.com/advice/five-causes-of-pir-false-alarms/
https://www.youtube.com/watch?v=h0bp91xy5vY
http://www.hkvstar.com/technology-news/how-to-install-pir-sensor-minimize-the-false-alarm.html -
Signing: no active verification session?@anticimex Thanks to your excellent working, it is working now.
-
Help Debug st=failDid you try different radios? Anyway, I would try to solder a cap on the radio.
-
Help Debug st=fail@tcontrada Do you use signing? What is the range of distances you tried. A couple of weeks ago I had to realize that if put my nodes to near to each other I received transmission failures.
-
Multisensor PIR based on IKEA Molgan@Yveaux Unfortunately, I still get false triggers. Do you also use a sensebender? Any ideas, what I can try. I tapped into as you suggested to the second battery.