Test2 发表于 25-06-2019 14:21:23

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?

yanke928 发表于 26-06-2019 07:23:35

Yes, you can open multiple KotomiApps to different CT-2s.

If you're not satisfied with opening multiple apps, ask me for protocol.

Test2 发表于 03-07-2019 18:24:51

May I please have the protocol?

yanke928 发表于 07-07-2019 08:49:50

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;
    }

bobob1618 发表于 12-07-2019 11:26:21

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]
查看完整版本: Logging multiple units?