Ahmed 发表于 19-02-2018 05:28:25

Connect to Java application

I have a java application that interfaces with a USB device

Is it possible for my JAVA application to connect to AVHz CT-2 module in order to acquire current and volt reading ?

yanke928 发表于 27-02-2018 18:35:59

No, we didn't provide the interface so far.

Ahmed 发表于 28-02-2018 05:25:31


thanks for response

Do you provide API for this device so that we can connect to the USP meter through our application ?

yanke928 发表于 28-02-2018 18:27:15

If you don't care accessing the device by serial port directly, you can do this thing as following:

Send a command in ASCII: "Get Meter Data", then wait for about 20ms, and it will reply you with a struct, and it's defined as following:

typedef struct {
float Voltage;
float Current;
float Power;
float VoltageDP;
float VoltageDM;
}USBMeterStruct;

I think you know what to do next :)

Ahmed 发表于 01-03-2018 00:44:41

Thank you very much :)
页: [1]
查看完整版本: Connect to Java application