Current Cost Envi-R on QNAP

Since google decided to remove Google Power Meter i’m without a serious energy monitor for my Envi-R. Current Cost give its dashboard, but it is quite poor compared with GPM (Google Power Meter). So i started thinking about a simple DIY monitor system based on Envi-R and its serial output. I also realized that i have a QNAP TS-112 which could help me. It is a 1 bay NAS, with low power consumption (about 13W in idle).

The first problem I found was the driver (module) of cable for serial connection between QNAP and Envi-R. It is a prolific USB-Serial converter. After a lots of search I was able to find the right module in a package downloaded from QNAP support forum. Here it is:

http://www.fileserve.com/file/FCXUSyb/usb-serial-adapter-2.6.33.2-Marvell.zip

Decompress the archive on some directory (like /tmp/) you can load it with:


insmod /share/Public/modules/usbserial.ko
insmod /share/Public/modules/pl2303.ko

now, if your dmesg don’t shows errors you should be able to look something typing:

hexdump /dev/usb/ttyUSB0

What you can see is the raw bits received from Envi. If you want to read the right string message from the serial you should use minicom, a command line serial interface. After setting the serial correctly you should get some lines with time, sensor channel, power consumption, temperature ecc.

….work in progress….

4 comments

  1. Jeroen

    The link to the usb-serial-adapter-2.6.33.2-Marvell.zip is dead.. Can you provide a new link to it?

  2. Jeroen

    Thanx!

    It’s not working on my NAS, I get the error:

    minicom: cannot open /dev/usb/ttyUSB0: Protocol error

    dmesg says:

    [13525.270000] usbcore: registered new interface driver usbserial
    [13525.270000] usbserial: USB Serial Driver core
    [13528.690000] USB Serial support registered for pl2303
    [13528.690000] pl2303 1-1.3.2:1.0: pl2303 converter detected
    [13528.720000] usb 1-1.3.2: pl2303 converter now attached to ttyUSB0
    [13528.730000] usbcore: registered new interface driver pl2303
    [13528.730000] pl2303: Prolific PL2303 USB to serial adaptor driver
    [13533.340000] pl2303 ttyUSB0: pl2303_open – failed submitting read urb, error -22

    So not working for me, but thanx anyway!

  3. rodezio

    I’ve upgrade the Qnap to 3.7.1 and now it doesn’t work not even in mine! I think it is because module is compiled for older version of kernel!

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