| |
| | |

AVHzY Forum

 Forgot password?
 Register
Search
View: 77|Reply: 4

Logging multiple units?

[Copy link]

1

Threads

2

Posts

19

Credits

Newbie

Rank: 1

Credits
19

 United States

Post time: 25-06-2019 14:21:23
| Show all posts |Read mode
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?

Reply

Use magic Report

0

Threads

24

Posts

110

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
110

 Japan

Post time: 26-06-2019 07:23:35
| Show all posts
Yes, you can open multiple KotomiApps to different CT-2s.

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

Use magic Report

1

Threads

2

Posts

19

Credits

Newbie

Rank: 1

Credits
19

 United States

 Author| Post time: 03-07-2019 18:24:51
| Show all posts
May I please have the protocol?
Reply

Use magic Report

0

Threads

24

Posts

110

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
110

 China

Post time: 07-07-2019 08:49:50
| Show all posts
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
    {
        [FieldOffset(0)]
        public float Voltage;
        [FieldOffset(4)]
        public float Current;
        [FieldOffset(8)]
        public float Power;
        [FieldOffset(12)]
        public float VolatgeDP;
        [FieldOffset(16)]
        public float VoltageDM;
    }
Reply

Use magic Report

0

Threads

1

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 Switzerland

Post time: 5 day(s) ago
| Show all posts
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.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|AVHzY Forum

17-07-2019 05:12 GMT-8 , Processed in 0.057054 sec., 24 queries .

Powered by Discuz! X3.4

AVHzY version, Rev. 864, © 2009-2019 forum.avhzy.com

Quick Reply To Top Return to the list