Logging multiple units?
Hello,I recently purchased the CT-2. It works well. I am very pleased with it.
I would like to use one PC to log data from 10 CT-2 units at the same time.
Can the KotomiApp do this?
If not, how can this be accomplished?
Can you expose a python library so that I can write my own scripts to handle the data?
Yes, you can open multiple KotomiApps to different CT-2s.
If you're not satisfied with opening multiple apps, ask me for protocol. May I please have the protocol?
For reading current & voltage, sending "Get Meter Data" in ASCII to the virtual usart port. Baudrate can be anything. It will sends you back a data packet a couple of dozens of milliseconds later, with data structure:
public class USBMeterData_t
{
public float Voltage;
public float Current;
public float Power;
public float VolatgeDP;
public float VoltageDM;
} I wrote a program that can read the data in Python: https://gitlab.com/bobobo1618/kt001-reader/tree/master
It works perfectly on Linux, I haven't tried it on Mac or Windows but it should work there too.
It logs to a binary format right now but you can easily add CSV or JSON or something.
页:
[1]