| |
| | |

AVHzY Forum

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

Connect to Java application

[Copy link]

1

Threads

3

Posts

23

Credits

Newbie

Rank: 1

Credits
23

 Egypt

Post time: 19-02-2018 05:28:25
| Show all posts |Read mode
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 ?
Reply

Use magic Report

0

Threads

27

Posts

122

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
122

 China

Post time: 27-02-2018 18:35:59
| Show all posts
No, we didn't provide the interface so far.
Reply

Use magic Report

1

Threads

3

Posts

23

Credits

Newbie

Rank: 1

Credits
23

 Egypt

 Author| Post time: 28-02-2018 05:25:31
| Show all posts

thanks for response

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

Use magic Report

0

Threads

27

Posts

122

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
122

 China

Post time: 28-02-2018 18:27:15
| Show all posts
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
Reply

Use magic Report

1

Threads

3

Posts

23

Credits

Newbie

Rank: 1

Credits
23

 Egypt

 Author| Post time: 01-03-2018 00:44:41
| Show all posts
Thank you very much
Reply

Use magic Report

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

Points Rules

Archive|Mobile|Dark room|AVHzY Forum

15-10-2019 16:31 GMT-8 , Processed in 0.077892 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