| |

AVHzY Forum

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

Connect to Java application

[复制链接]

1

主题

3

帖子

23

积分

Newbie

Rank: 1

积分
23

 Egypt

发表于: 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 ?
回复

使用道具 举报

0

主题

15

帖子

76

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
76

 China

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

使用道具 举报

1

主题

3

帖子

23

积分

Newbie

Rank: 1

积分
23

 Egypt

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

使用道具 举报

0

主题

15

帖子

76

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
76

 China

发表于: 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

主题

3

帖子

23

积分

Newbie

Rank: 1

积分
23

 Egypt

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

使用道具 举报

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

本版积分规则

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

GMT-8, 19-02-2019 01:46 , Processed in 0.089420 sec., 24 queries .

Powered by Discuz! X3.4

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

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