ffcrg / ecpiww

A wireless EnergyCam Setup with a Raspberry Pi to monitor the energy usage
34 stars 18 forks source link

no csv - no xml #3

Closed GarethFox closed 9 years ago

GarethFox commented 9 years ago

Hi,

I succeed to install a ECam RF and read Electricity index through ECWin, then get index within ECCollectorWin using an IMST iM871A-USB, starting without encryption and in a second time setting an AES128 key.

I installed the repo on a rpi 2 according to your procedure starting from // compile and run //. The script works well when USB stick mounts on ttyUSB0, so I added a persistent link to connect it automatically. Meter 1 is set properly with product id, type and key but no supplemetary csv is created under /var/www/ecpiww/data/ only ecpiwwM0.csv is present with datas from 2013 (beta trace I guess). Same situation when I pass through custom line like this one ./ecpiww -f /home/pi/projects -p 0 -m T -l XML no xml found after a "u" updating data or pushing manually using button untill "1" sequence.

Any idea how to generate database ?

Thx

EDIT :

Is ther any way, log or debug mode to check if pairing is done and communication established between device and collector ?

Thx in advance

ffcrg commented 9 years ago

Hi, we are able to reproduce the issue and are working on it.

The reason is probably the module from IMST (libwmbus.so) or the USB serial driver from Silicon Labs. The newest image contains a new version of that driver: raspberry pi : cp210x 1-1.2:1.0: cp210x converter detected raspberry pi 2 : cp210x 1-1.4:1.0: cp210x converter detected

Best regards

ffcrg commented 9 years ago

Hi, we have changed the implementation and now using a different API.

Please check out the latest version.

Best regards

GarethFox commented 9 years ago

Hello,

I got it working now on a rpi2 updated kernel and IMST stick with new API.

Thanks !