fault C0 in the serial output

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
aleconakad
Posts: 47
Joined: 18 Jan 2016 15:25

fault C0 in the serial output

Post by aleconakad »

Hi,

I am trying to implement an RGBW controller that fits my needs. Everything is fine until now, except that I receive from time to time a system fault of ZUNO_LOGGING_EVENT_QUEUE_OVERLOAD.

I have implemented my sys_event_handler as folows:

Code: Select all

void sys_event_handler(byte event, byte param) {
  switch (event) {
    case ZUNO_LOGGING_EVENT_LEARNSTART:
      // some action
      break;
    case ZUNO_LOGGING_EVENT_LEARNCOMPLETE:
    case ZUNO_LOGGING_EVENT_SETDEFAULT:
#ifdef SERIAL_DEBUG
      Serial.println("Learn complete / Set default event.");
#endif
      // some action
      rgbw.beginAll(0);
      energyWs = 0;
      saveEnergyToEeprom();
      break;
    case ZUNO_LOGGING_EVENT_FWAUTH:
      // some action
      break;
    case ZUNO_LOGGING_EVENT_STACKOVERFLOW:
#ifdef SERIAL_DEBUG
      Serial.println("stack overflow. Reboot");
      delay(3000);
#endif
      zunoReboot();
      break;
    default:
#ifdef SERIAL_DEBUG
      Serial.println("fault");
      //delay(3000);
#endif
      break;
  }
}
In the Seril monitor output I see the message

Code: Select all

fault:
53975:C0:2
Looking up code C0 in the ZUNO_Definitions.h, I see that it indicates ZUNO_LOGGING_EVENT_QUEUE_OVERLOAD.
What does this fault means and which Queue is being referred to and how to get rid of it?
If I am not mistaken, when I change the color through the color wheel from my gateway, I believe that my Gateway is sending the new color and is fetching it directly afterwards. Could this be causing the problem?

firmware data:
----------------------------------------------------------
FIRMWARE DATA
----------------------------------------------------------
REVISION:02.17
Z-WAVE FREQUENCY:EU
ORIGINAL FW. CRC32: D6 D2 9D 43
MAXIMUM CODE SIZE: 30 KB
CURRENT FW. CRC16: 8C FB
RADIO CHANNELS: 02
User avatar
PoltoS
Posts: 6340
Joined: 26 Jan 2011 19:36

Re: fault C0 in the serial output

Post by PoltoS »

This means the Z-Uno send queue is full. The queue is filled with Reports (caused by zunoSendReport or explicit Get from the controller) and Set commands (zunonSendToGroup - sends to Association groups).

Make sure your controller is not sending a tons of Get requests at once and make sure not to have too big association group.
aleconakad
Posts: 47
Joined: 18 Jan 2016 15:25

Re: fault C0 in the serial output

Post by aleconakad »

Thanks,

what helped a lot is setting config parameter 11 to 0 instead of 30. I also introduced some timers before sending the reports on change.
Post Reply