Meniscus applications for the Current Cost clip on meter

 
We have provided,under the GNU General Public License (GPL), the Open Source code to download data from a Current Cost device and upload to an ftp site.
 
The source files can be found at http://code.google.com/p/currentcost-ftpupload/ and all release notes, bug fixes and bug reporting will be handled through the Google Code site.
 
There are two applications available. A Python version for running on Linux based operating systems and a Windows .NET version for running the application on Windows platforms.

 
USB drivers
 
Please make sure you are using the correct USB driver and follow the details found on the current cost website - http://www.currentcost.com/software-downloads.html
 
There are two commonly available leads which have different coloured USB connector ends (the large plastic tablet parts that connect directly to your computer).
 
If it has a white end use the driver from http://currentcost.com/download/Driver_for_Win7_and_Vista_32_64bits.zip
 
If black use this one http://currentcost.com/download/win_drivers.zip

If you already have a driver installed, I would suggest you first uninstall it and reboot your PC.
Make sure the USB is NOT plugged into the PC and install which ever driver you think is the right one and again reboot your PC.
 
You should now be able to plug in your USB lead and it will configure the new hardware.
 
 
Windows .Net Application
 
You can find both a standalone and a service version of software to upload data to our FTP site for display on the dashboard - Go to Google Code to download.  This runs on Windows XP, Vista and 7.
 
 
 
 
Python application for Linux
 
This comprises 5 files of which 1 is a configuration file and the other 4 are Python files. The application is designed to run under the Linux operating syustems and we have tested and run this under Ubuntu. Data is uploaded to the ftp site in XML.
 
Some useful information
 
Example XML ouput
Configuration file layout
Drivers
Example XML ouput
An example XML output from the this application is set out below:
 
 <?xml version="1.0" ?>
- <CurrentCostReadings date="30/03/2010">
-  <msg>
    <src>CC128-v0.12</src>
    <dsb>00022</dsb>
    <time>21:58:49</time>
    <tmpr>24.5</tmpr>
    <sensor>0</sensor>
    <id>00077</id>
    <type>1</type>
- <ch1>
   <watts>00686</watts>
</ch1>
- <ch2>
   <watts>00759</watts>
</ch2>
</msg>
Configuration file layout - used in the Python
 
The configuration file includes a field for the IP address of the ftp site as well as a username and password. The user can also enter a unique name for the meter which will be appended to the front of the file uploaded to the ftp site. The batch field dictates how many readings will be 'batched' into each file. A new batch file will always be created at the start of a new day to ensure that batches do not span across two days.
 
The configuration file is as follows:
[CurrentCostMeter]
port: /dev/ttyUSB0
baud: 57600
bytesize: 8
parity: N
stopbits: 1
timeout: 3

[Upload]
host:
user: CurrentCost
password:
file: Enter the Unique Number we mail you in here
tmp: samples.dat
batch: 20
Drivers for Current Cost meter
To access the Current Cost meter from your PC you need the USB Serial PL2303 driver
 
You will also need a serial to USB calble that you can purchase from the Current Cost web site
 
The Current Cost web site and other web sites provide a link to http://www.prolific.com.tw/eng/downloads.asp?ID=31 BUT our experience is that this driver does not work well with Ubuntu and we use the driver from http://www.cooldrives.com/wividrforprc.html
 
 
 
© 2017 Meniscus Systems Ltd.
Unit B, Huntingdon Business Centre, Blackstone Road, Huntingdon, PE29 6EF
tel : 01480 433714   email : sales@meniscus.co.uk

privacy statement - terms of use of website