Post
Topic
Board Hardware
Re: Klondike - 16 chip ASIC Open Source Board - Preliminary
by
loshia
on 09/07/2013, 09:17:04 UTC
Maybe the ATX power is helping error rates. I'm getting 6 / 406 now, or about 1.5%. Much lower than last night on the wall wart, about 5%. Neither makes me happy but this is starting to get into a decent ball park.

Now tell me again how to calculate this properly using non 1-diff shares? I can't see a total count that includes difficulty accounted for. I know the git version now counts 1-diff shares, but is there a place to find that count on 3.3.1?

yes you can With little hack of course

Here is the magic:
Driver avalon.c near line 736
if (avalon_decode_nonce(thr, avalon, info, ar, work)) {
   mutex_lock(&info->lock);
  if (!info->nonces++)
  gettemp = true;
  info->auto_nonces++;
  info->auto_totnonces++;
  mutex_unlock(&info->lock);
} else if (opt_avalon_auto) {
  mutex_lock(&info->lock);
  info->auto_hw++;
 info->totauto_hw++;
  mutex_unlock(&info->lock);
} else {
mutex_lock(&info->lock);
  info->totauto_hw++;
  mutex_unlock(&info->lock);
}

Define  info->auto_totnonces and   info->totauto_hw in driver avalon.h both int

Init/zero them somewhere in avalon_detect_one just to make it pretty Smiley
and finally around line 1285

root = api_add_int(root, "no_matching_work", &(info->no_matching_work), false);

Add
root = api_add_int(root, "totauto_hw", &(info->totauto_hw), false);
root = api_add_int(root, "auto_totnonces", &(info->auto_totnonces), false);

That is how i do that for the avalon and it works  Wink
And i can calculate good nonces per sec also ...and other fancy stuff
What i can tell that Con auto-freq code works rock solid and keeps hw% below 2% as advertised