
27
RemoteControl
7.
RemoteControl
This chapter provides the following information to remotely control the
AT4202/4204/4208 via the USB interface.
7.1
USB-HID
The USB-Serial Interface allows you to connect AT824/825/826 to a USB port
on you PC.
You needn’t to install a driver in Windows system.
Figure7-1 The APPLENT USB logo in windows device manager
7.2
Programming guide
The instrument goes along with data communication and acquisition software.
You can also go to our website:
www.applent.com
to download.
Tips:
If you want to program the software by yourself, you need
to know some basic knowledge about USB and USB-HID.
Go to
www.usb.org
to find out more.
Basic API functions:
l
CreateFile(
devDetail->DevicePath,
ENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED,
NULL);
Use CreateFile to open HID equipment, equipment communication channels
can be found through functionSetupDiGetInterfaceDeviceDetail.
l
ReadFile(
hDev,
recvBuffer,
IN_REPORT_LEN,