Shane Duffy

CurrentCost cc128 Ubuntu data logging

Posted on: March 19, 2009

I decided to get some logging data from the CurrentCost (cc128) model which I have but I was having issues with getting data from the /dev/ttyUSB0 port at which it was attached using the pl2303 drivers for usb to serial.

A simple cat of /dev/ttyUSB0 lead to just gibberish been output on the terminal. Poking around at the system I found that the cable im using has the pl2303x chip set which can have driver issues with some older kernel modules. There are patchs for the older kernal modules which stop this device been picked up as the older incompatible pl2303 (see here).  The real cause of my problems was the serial port settings which I was able to resolve by using minicom to set the right settings for the port.

The cc128 uses 57600 bps 8N1

You can use the minicom application to set this and then using cat /dev/ttyUSB0 will work fine for you.

Ill add another update later once I start logging the data. Plan is to be able to log all data to mysql DB, create a RRD file at the same time for some simple graphs and also allow a real time feed of the application in the form of an AJAX web client I think.

Update: Just found the link to the full xml spec of the CurrentCost cc128 v11 that I have thanks to the CurrentCost founder MartinDix

On a note for anyone who needs to factory reset there CurrentCost energy monitor you can just hold down any 2 of the buttons when powering up the device and it will reset everything to factory defaults.

About these ads

5 Responses to "CurrentCost cc128 Ubuntu data logging"

[…] Home CurrentCost cc128 Ubuntu data logging […]

Do you know to what extent Ubunto supports data logging equipment? My team would like to move to Ubunto but we are concerned that half of our sensors and loggers will have issues with that OS.

Hi,
How do I set the speed of /dev/ttyUSB0 using minicom? I can read the port ok in minicom, but I can’t see how to write the settings to the port.
Cheers,
Simon

Hi,

I tried your “to factory reset there CurrentCost energy monitor you can just hold down any 2 of the buttons when powering up the device and it will reset everything to factory defaults.”

but it appears that it didnt work as i can still see data from over 7 days ago.

What am i doing wrong?

Its actually the Up and Down button, whilst powering on.

Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: