EEPROM errors and Stack Overflow (ErrorFlags)

Discussion in 'C-Bus Toolkit and C-Gate Software' started by more-solutions, Apr 5, 2016.

  1. more-solutions

    more-solutions

    Joined:
    Apr 23, 2006
    Messages:
    283
    Likes Received:
    4
    Location:
    Peterborough, UK
    Based in large part on the info here I've recorded the value of ErrorFlags across all the units on one site.

    At the current time, I have 63 which have bit 1 set (Stack Overflow), something Don had never seen. I also have 13 showing EEPROM checksum error (bit 5).

    Additionally one unit is reporting both bits 4 and 7 ("reserved") - that unit has ErrorFlags=159, ie all errors except the two EEPROM ones.

    There are 1400 units in total.

    What should I deduce from this?
     
    more-solutions, Apr 5, 2016
    #1
  2. more-solutions

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    You have too much time on your hands? :eek:

    Jokes aside, as Don said in that linked thread, these flags were really only used for development. You may well be the first person to look at this on such a large scale.

    I would be interested to know if there is any pattern in the errors.. eg are they all certain unit types or firmware versions? Are they clustered by time or network or network segment?

    I'd also be interested in whether they are persistent/repeatable in certain units or whether these are just a collection of one-off events over time, many which could be attributed to transient events.

    Nick
     
    NickD, Apr 6, 2016
    #2
  3. more-solutions

    more-solutions

    Joined:
    Apr 23, 2006
    Messages:
    283
    Likes Received:
    4
    Location:
    Peterborough, UK
    Ha, yeah maybe.

    I have some of that data although it'll take a bit of playing to extract it. But I'm interested too so I'll see what I can find.

    That's the bit that most interests me but as has been discussed here before I don't seem to have any way to reset the flags (that works) so I don't know if they just "accumulate" or clear on their own periodically (and if so when/why). I thought in the past that restarting CGate (or close/flush/open/sync network) would clear them but all of the results in the OP were reasonably soon after a server restart so I don't think that's the case either.

    The logging of ErrorFlags came about because I already had code to log whether units have been overridden (which is a useful indicator that lights might not be doing what the head end thinks they're doing), and adding in ErrorFlags was a trivial addition. I would like to see the history of stuff like transmit errors over time - something the normal diagnostic tools can't give me. In the absence of a good way to reset errorflags I'm a bit stuck though.
     
    Last edited by a moderator: Apr 6, 2016
    more-solutions, Apr 6, 2016
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.