<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I've started writing libdivecomputer code for the Cochran and I have a few questions that I expect are easy answers.<br><br></div>1. I'm wondering how much I should read in the _init function. It seems I should read enough to verify I'm talking to the right device and get the serial number. Is that right?<br>


<br></div>2. There are other reads I can do that will get things like # of dives, gas mixtures, conservatism, etc. I need number of dives to read the log book. Should I do this in _read? And does it make sense to do this read before setting progress information?<br>


<br></div>3. I have extra information that I can offer the user, pre- and post-dive things like battery voltage, tissue load, time to fly, previous SIT, repetitive dive count and dive profiles samples like tissue load every 24 seconds, NDL remaining (I think), deco required (I think), ascent rate. I can also get post dive off-gassing tissue load and temperature samples. The DC continues to log samples until off-gassed<br>


</div>I can't see any structure for all of this, or a way to carry around that kind of data.<br><br></div>4. The DC requires some prodding to accept commands, after being prompted it emits a byte every second. Initially it's a 0xAA but after reading dive samples it's a 0x00. The only way I've been able to prompt it is to send a byte to it. The vendor software doesn't do this. Could it be a USB signal of some sort. I see "Sync Reset Pipe and Clear Stall" in the USB capture and "Vendor Device" and "Control transfer". Any ideas on what I might try?<br>


<br><div><div><div><div><div><div><br><br><div><div><div><div><div><div><div><div>-- <br><div dir="ltr"><div>John Van Ostrand<br></div><div>At large on sabbatical<br></div><br></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>