Search found 33 matches

by ondrej_bajer
24 Aug 2018 20:04
Forum: Z-Uno
Topic: strings.h strncmp returs always a zero
Replies: 2
Views: 232

Re: strings.h strncmp returs always a zero

Hi guys, just wanted to share my findings. To be honest, I found a solution after couple of hours but I was too lazy to post it here immediatelly. Shame on me. So, the string.h library is okay, the problem is with the declaration. CharArray declared as char CharBuffer[50] = "123456789ABC" does not w...
by ondrej_bajer
10 Aug 2018 21:46
Forum: Z-Uno
Topic: strings.h strncmp returs always a zero
Replies: 2
Views: 232

strings.h strncmp returs always a zero

Hi guys, I want to use strncmp function in order to compare start of two chararrays. But it returns me zero in every case. What am I doing wrong, please? Test sketch here: void setup() { Serial.begin (9600); } #include <string.h> char CharBuffer[50] = "123456789ABC"; char CompareBuffer[50] = "123456...
by ondrej_bajer
08 Aug 2018 01:19
Forum: Z-Uno
Topic: Recommended RS232 "shield"?
Replies: 0
Views: 172

Recommended RS232 "shield"?

Hi guys, I'm looking for the best RS232 "shield" for Z-Uno. As of today, I'm using this one: https://www.ebay.com/itm/MAX3232-RS232-to-TTL-Serial-Port-Converter-Module-Male-or-Female-DB9-D-Sub/263286469667 For shame, I'm experiencing couple of issues with this one: 1) Despite the description, it nee...
by ondrej_bajer
05 Aug 2018 13:50
Forum: Z-Uno
Topic: Reported values got stuck sometimes
Replies: 17
Views: 874

Re: Reported values got stuck sometimes

So, I made a simple sketch, that reads input from Serial console and acts like this: - When any key is pressed, it increment values and print them out. - When "a" is pressed, it increment values, print them out and then calls ZunoSendReport 1-7. - When any getter function is called, it logs this eve...
by ondrej_bajer
05 Aug 2018 12:25
Forum: Z-Uno
Topic: Reported values got stuck sometimes
Replies: 17
Views: 874

Re: Reported values got stuck sometimes

logging.png
logging.png (15.6 KiB) Viewed 371 times
by ondrej_bajer
05 Aug 2018 12:24
Forum: Z-Uno
Topic: Reported values got stuck sometimes
Replies: 17
Views: 874

Re: Reported values got stuck sometimes

Hi p0lyg0n1,

I've upgraded to 2.1.5 and enabled loging to UART0, but there's no output. Only during reset, it writes a single character to UART0, as visible on the attached screenshot.Looks like I'm doing something wrong...
The attachment serial - serial0.png is no longer available
serial - serial0.png
serial - serial0.png (28.76 KiB) Viewed 371 times
by ondrej_bajer
03 Aug 2018 13:17
Forum: Z-Uno
Topic: Reported values got stuck sometimes
Replies: 17
Views: 874

Re: Reported values got stuck sometimes

Hi Micheal, yes of course. I'm printing all the values and actions taken to the USB serial console, to see what's happening. Looks like I have to create a super-simple testing sketch over the weekend. Something what will increment 7 variables and then report them periodically through multichannel. I...
by ondrej_bajer
03 Aug 2018 10:49
Forum: Z-Uno
Topic: Reported values got stuck sometimes
Replies: 17
Views: 874

Re: Reported values got stuck sometimes

Well, so I've tried to modify one of my older devices and implement the above method of sending unsolicited reports. - It has 2 multilevel sensors/channels. - Each channel sends a report if the value has changed, but not more often than one report per 10 seconds per channel. - Each channel sends at ...
by ondrej_bajer
01 Aug 2018 19:26
Forum: Z-Uno
Topic: Reported values got stuck sometimes
Replies: 17
Views: 874

Re: Reported values got stuck sometimes

The nice feature of polling is, that you can change intervals on the fly, directly from the Z-Wave controller. With unsolicited reports, you have to put min/max update intervals in the code itself, so the change is not so quick and easy. Second reason was, that polling all the channels at same time ...
by ondrej_bajer
01 Aug 2018 09:04
Forum: Z-Uno
Topic: Reported values got stuck sometimes
Replies: 17
Views: 874

Re: Reported values got stuck sometimes

Hi guys, I will walk through all my Z-Uno devices, extend intervals and remove zunoSendReport for all the channels except the 1st. Technically, I don't need zunoSendReport but I found that it helps HC2 to re-establish communication with a device after a power loss. In such a case, HC2 marks the devi...