28
JK802/804/808 User's Guide
IN_REPORT_LEN,
&recvBytes,
&ol);
Use ReadFileto read HID equipment. Report based on the data fransferred
from
IN.
WriteFile( hD
ev,
reportBuf, OUT_REPORT_LEN,
&sendBytes,
&ol);
WriteFile is used to transfer an output report to HID equipment.
Communication
Parameters VIP:0825
PID:0826
Packet size:64bits
Any problems in programming, please contact our
tech
Tips
:
department, you can send an email to
USB is always a vailable, yo u needn’t set any
parameters.
Command set
Command packet
Use 64 bits/pack to transfer data; every USB-HID command is 1 pack.
Command packets have a fixed format, the user must
follow the format agreed by the instrument of writing, and
otherwise it is
Tips
:
impossible to establish communication.
The command word is case-insensitive.
Each command packet contains the first 60 bytes of
checksum, fill in the last four bytes.
PC command pack format(a C language-defined pack structure):
#define program pack(1)
typedef
{
__packed struct
uint
cSize;
//packet size 4bytes
=60
char sHeader[24]; //command 24bytes
char
sPara[28];//parameter
28bytes
uint
nSignature;
//signature
4bytes
uint
nChecksum;
//Checksum
4bytes
} TUSB_CMD;
Содержание JK802
Страница 1: ...Operating Instruction JK802 804 808 Multi channel Handheld Temperature Meter ...
Страница 26: ...26 OFF APO off JK802 804 808User s Guide Tips Timer will be reset when press any keys or touch screen ...
Страница 28: ...RemoteControl 28 recvBuffer ...
Страница 30: ... define program pack Here ...
Страница 34: ......
Страница 38: ...34 JK802 804 808User s Guide 7 Invalid command ...