找回密码
 注册
查看: 6566|回复: 4

Connect to Java application

[复制链接]

1

主题

2

回帖

23

积分

Member

积分
23
发表于: 19-02-2018 05:28:25
| 显示全部楼层 |阅读模式
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 ?
回复

使用道具 举报

1

主题

45

回帖

207

积分

Moderator

积分
207
发表于: 27-02-2018 18:35:59
| 显示全部楼层
No, we didn't provide the interface so far.
回复

使用道具 举报

1

主题

2

回帖

23

积分

Member

积分
23
 楼主| 发表于: 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 ?
回复

使用道具 举报

1

主题

45

回帖

207

积分

Moderator

积分
207
发表于: 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
回复

使用道具 举报

1

主题

2

回帖

23

积分

Member

积分
23
 楼主| 发表于: 01-03-2018 00:44:41
| 显示全部楼层
Thank you very much
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archive|手机版|小黑屋|AVHzY Forum

GMT-8, 28-03-2024 12:50 , Processed in 0.094436 sec., 16 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

Release 20231001, © 2001-2024, Tencent Cloud.

MultiLingual version, Rev. 4300, © 2009-2024 codersclub.org

快速回复 返回顶部 返回列表