View Full Version : Precon Humidity & Temp Sensor Driver
Mikla
01-25-2008, 09:08 PM
Here is a beta release of the driver for the Precon HS-2000D temperature and relative humidity sensor. This is the web page for the sensor. I have also uploaded the web page description of the driver and a zip file with the CML.
- Edit 1/26/2008-
Updated driver to put delay back in after powering up device in order to wait for good data.
- Edit 2/2/2008
Added Manifest file to Zip and updated Html file with connection information.
Mikla
01-26-2008, 06:53 AM
Bump.. updated driver, see notes in first post.
robolo
02-02-2008, 12:16 PM
When I tried to import the driver package I get "The Package is not valid for this version of CQC" I am running ver 2.3.3
Mikla
02-02-2008, 02:17 PM
Hmmm... looks like I may have to upgrade. I am still on 2.1. Not sure what the differences are and whether I will run into problems. Been avoiding it since everything is working so well.
I did update the ZIP file to include both the CML and Manifest files. So you could recreate it. Just copy the manifest file into:
C:\Program Files\CQC\CQCData\DataServer\Manifests\User
Then open the Driver Test Harness.
Session => New Session....
Select the Precon manifest file
Create a Moniker
Select the comm port
Select C or F
Then past the CML code into the editor window
Press Ctrl-Alt-G to compile and save
You can then quit the Driver Test Harness
That should install the driver on the system and you should now be able to see it in Admin Interface. It is the long way around and may get you there quicker than me upgrading.
If you are not comfortable doing it, maybe someone else can do it who is running the same version.
robolo
02-02-2008, 03:00 PM
When I try to open the manifest in the Protocol Driver Harness I get "A protocol driver must use the GenProtoS server side driver library"
Actually I get this when I try to open ANY manifest. Now I'm really confused.
Dean Roddey
02-02-2008, 03:00 PM
You won't necessarily get the new manifest contents if you do that. They are cached, not read from disk on each access. That's the benefit of the driver pack, in that it forces it into the in-memory manifest cache when it's imported.
Dean Roddey
02-02-2008, 03:01 PM
When I try to open the manifest in the Protocol Driver Harness I get "A protocol driver must use the GenProtoS server side driver library"
It's the other driver test harness, the one for CML drivers.
robolo
02-02-2008, 03:25 PM
It's the other driver test harness, the one for CML drivers.
Thanks Dean,
It works now. I attached the updated file as driver version 0.3 which now works with CQC ver 2.3.3
Mikla
02-02-2008, 03:58 PM
Thanks Dean,
It works now. I attached the updated file as driver version 0.3 which now works with CQC ver 2.3.3
Thanks. Let me know how it works out.
robolo
02-02-2008, 07:44 PM
The new driver seems to be working well. THANK YOU
You might also want to include in the documentation for the driver how to arrange the serial pinout. Precon pin 1 (TXD) to DB9 pin 3, Precon pin 2 (RTS) to DB9 pin 7, Precon pin 3 (RXD) to DB9 pin 2 , Precon pin 4 (GRND) to DB9 pin 5
Mikla
02-02-2008, 08:24 PM
Glad it is working. And thanks for the tip on the connections, I updated the HTML doc.
Shaky
04-03-2013, 08:43 PM
Here's a driver that I've modified slightly due to some issues I've seen on my system. Compiled on CQC Beta 4.2.914. Driver version bumped to 0.4. This has worked fine for me for several months.
Also included ver 0.3 which I didn't touch, but compiled on newer CQC just in case.
Change Log:
0.4 11/11/2012
- Change Buffer read in to STX ETX to combat bad data I would see on my EdgePort on occasional reads. Now waits to see H char then CR vs just collecting a set # of characters and trying to parse. This throws out most bad data right away\waits for good data.
- Updated to only use data first seen in buffer vs getting again right away (1 data set per poll vs 2. Maybe there was a reason for doing this but I haven't seen any issues and was causing me some issues so removed)
- added com port reset on timeouts & increased Delay to read device on each power-up to address an error I was getting that wouldn't recover on its own after tripping. error:Can Not Set RTS's issue
- Poll Time reduced: SetPollTimes(20000, 50000) vs SetPollTimes(10000, 3000);
vBulletin v3.5.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.