z-uno 2 Sleep 5Sec and Transmit shortly

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
MMA
Posts: 2
Joined: 22 Jul 2022 10:28

z-uno 2 Sleep 5Sec and Transmit shortly

Post by MMA »

I want to send sensor data shortly and go to sleep after that for 5 sec. I want that the minimum of power is used. I thought the transmission time is just some milliseconds.

Unfortunately I measured that the z-uno 2 needs 1sec for transmission time and Z-Wave operation. Only 4 sec is the device in sleep mode.

The Z-Uno 2 is peered with an Z Wave Controller (Aeotec).

Attached you can see the timing diagram of the Z Uno 2 device current. It is measured with an oscilloscope and a 1Ohm resister.

That is the sketch:

Code: Select all

byte counter = 1;
#define SLEEP_MODE SLEEP_MODE_EM4 
#define WAKEUP_CUSTOM_INTERVAL 5 // Every 5 seconds

ZUNO_SETUP_SLEEPING_MODE(ZUNO_SLEEPING_MODE_SLEEPING) // It's sleeping device 
ZUNO_SETUP_CHANNELS(ZUNO_SWITCH_BINARY(counter, NULL));
  
void setup() 
{
}

void loop() 
{
 if(zunoIsSleepLocked()) 
 {  
    zunoSendReport(1); // Report will block sleep anyway
    zunoSetCustomWUPTimer(WAKEUP_CUSTOM_INTERVAL);
    zunoSendDeviceToSleep(SLEEP_MODE); // This just says I am ready but it doesn't stop usercode momentally & completely
    // User sleep latch is opened
 }
}
How can the transmission time and Z-Wave operating time reduced to about 50ms?
Attachments
timing diagram of the Z Uno 2  device current
timing diagram of the Z Uno 2 device current
Sleep Current.png (85.15 KiB) Viewed 1536 times
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: z-uno 2 Sleep 5Sec and Transmit shortly

Post by PoltoS »

I'm checking it with the R&D, but looks the doc is wrong. zunoIsSleepLocked should return true when it is not possible to sleep (before zunoSendDeviceToSleep was called).
MMA
Posts: 2
Joined: 22 Jul 2022 10:28

Re: z-uno 2 Sleep 5Sec and Transmit shortly

Post by MMA »

Could you talk R&D, could they find out why the transmittion time / CPU active time so long is? Please let me know. Is there anyway to reduce power consumption? Thanks
Post Reply