CAI_Support said:
whatever your code wants to do will have half its RAM or VAR taken by storing the ADC values.
Thanks, yes, I realize that filling up the VARS with data could lead to a juggle, and I have been thinking about Ross' suggestion regarding his weather station method.
As it is, my plc is operating some lights, a fan, some pumps, a valve, gating an intermittent mist system on its own dedicated timer, and was also gating the fertigation controller that died from emp. It's making decisions about these things from the clock, the humidity, all the temps, and the on or off status of some other equipment, including a pc sending bits out a labjack. and I still haven't used a single VAR location.
I am popping a few things thru ram. Although it is running some equipment, its primary function is a sensor net for data logging, and if getting 8 more sensors takes half the ram, I haven't met the problem with that yet. I doubt my few lines of code are consuming half already. I don't know yet what the cogent PLC is going to be to operate the ADC, that effect on ram, so best results will depend principally on that, I think.
I was only planning on getting four inputs with the 1 wire solution, atm more is better, I'll take what I can get. If I have a leftover ADC the wc32 will absorb it.
As far as flashing up, I asked because I definitely do NOT want to do it at this time, unless my current firmware simply isn't going to let this ADC work. There's a string of reasons. It's in service already, even a successful flash will interrupt that, and I don't have a spare to fill in during the exercise. A bad flash would be semi catastrophic.
I've flashed plenty of devices thru the years and seen what can happen. I never use wifi, for the flash or the bin d/l, I always connect direct w/ a crossover cable, never a switch or hub, and I always use a UPS. Things can still go wrong.
I've already read two failed flash events here. The advised caution about wifi does not cover all the reasons, and I only saw that one of the two hapless campers was on wifi.
A bad d/l can also cause a flash to hang halfway thru, and there is no hash file in the firmware zip, so no way to verify the file integrity before throwing caution to the wind, except maybe asking here. If you have a SHA for this firmware link you posted, I really appreciate that for later. I don't know if the loader checks using a crc value inside the bin, but I thought I read here somewhere that it doesn't
Even a verified file can still fail upload for no apparent reasons. I have a small brick collection, only two, but it has happened
I'm just not ready to take *any* unnecessary chance of finding out if my router will object to ff:ff:ff:ff:ff:ff, or paying shipping + $10 to get a new mac address, and lose a week or more. not just yet
That's why I asked 'do I
need to'
I have Firmware Version: 3.02.18b5. On cainetworks /manuals, you have
WebControl 8 PLC FW 3.2.18a PDF
Version: 3.2.18a
Hardware Version: 2.2.2
Firmware Version: 3.02.18a,b,b2
Firmware datastamp: 5/8/2014
Doc last modified: 8/12/2014
You don't have it there anymore, but you used to have
WebControl 8 PLC FW 3.2.18d PDF
Version: 3.2.18d
Hardware Version: 2.2.2
Firmware Version: 3.02.18d
Firmware datastamp: 8/5/2014
My version is somewhere in between, and there is no other manual I've found that claims it, or is between these two. They are only three months apart
If I look in the 18a manual, I see a spare pin header with SCL and SDA for I2C
If I look in the 18d manual, I see that MOSI MISO & SCLK for SPI have been added
In the minor version changes over three months that span my version, there is ongoing development occurring, and I don't know where my board is in this, because there is no changelog past 17e, and the 17e pdf manual shows blank-nothing where the spare pin header will eventually be
Anyone home? ~ "We did have I2C firmware for testing, but that is not officially released." (22 May 2014 - 08:24 AM)
18a manual shows a firmware timestamp of May 8, but on May 22 it's not officially released. I can imagine how that might be, but it still adds some grey to the fog
I2C slave device support ~ On 27 May 2014 - 09:47 AM You ask Ross, "You got the test firmware working?"
So testing is ongoing. Ross' weatherstation is working w/ I2C on 11 June, and I take that as a golden indication, but saw no mention of which firmware
WC8 I2C related user guide updated Jun 18 2014 09:49 AM ~ might seem to be an announcement that this is all working, but still refers to 3.02.18a firmware. Doesn't seem unreasonable to wonder if 18 June is past my 18b5, as I can't seem to discover its datestamp. The modification date for the 18a manual is a few days after the release of 18d, but the 'Firmware Version:' string still hasn't been updated to show my b5 version. In other software, versions that go undocumented, between the others noted as stable releases, are often bugged versions, swept under the refactoring carpet. I'm not saying mine is, only asking
In the 18a manual under I2C is said
"WC8’s I2C support includes clock stretching up to 255 uS. It does not support bus mater arbitrition at this time." Other than the arbitration issue, still recently being discussed, I don't yet know what that might mean regarding the operation of this ADC, and in general it implies to me that 18a may not be in the 'fully supported' state. It includes one thing, and doesn't include something else, but is that the whole story? It's ambiguous to me, and I have read some incomplete and incorrect answers in other topics, so I'm trying to vet this.
Is 18b5 all the way there besides arbitration, or at least, has it the support necessary for this ADC? I dunno. Only you know that. Well, Ross might know, especially if he had one of these versions, and others with more I2C experience might know, but I don't
were there maybe fixes or additional feature support in 18c? Am I going to find trouble trying to use the ADC, then eventually be informed that I need to flash up because something was patched or added right after my release?
If so, that needs to be a planned event, if possible,
Please. I have to consider this ahead of time and plan for it if necessary. But I also need to skip it for now if I can
tried to discover this by looking in the docs and forum. didn't work, so asked. tried one sentence, in bold. A yes or no reply would have left this post much much shorter. sorry if I wasn't making it clear the first time. I really appreciate the help with this, but can't move ahead with equivocal answers