beautypg.com

Instruction set, Command syntax, Usb command summary – Ocean Optics Apex User Manual

Page 6: Usb command descriptions

background image

Apex Data Sheet

6

892-00000-000-05-201302

Instruction Set

Command Syntax

The list of the commands is shown in the following table followed by a detailed description of each
command. The length of the data depends on the command. All commands are sent to the Maya
through End Point 1 Out (EP1). All spectra data is acquired through End Point 2 In and all other
queries are retrieved through End Point 1 In (EP1). The endpoints enabled and their order is:

Pipe #

Description

Type

Hi Speed

Size (Bytes)

Full Speed

Size (Bytes)

Endpoint

Address

0

End Point 1 Out

Bulk

64

64

0x01

1

End Point 2 In

Bulk

512

64

0x82

2

End Point 6 In

Unused

Unused

Unused

Unused

3

End Point 1 In

Bulk

64

64

0x81

USB Command Summary

EP1 Command

Byte Value

Description

Version

0x01

Initialize Apex

1.01.0

0x02

Set Integration Time

1.01.0

0x05

Query Information

1.01.0

0x06

Write Information

1.01.0

0x09

Request Spectra

1.01.0

0x6A

Write Register Information

1.01.0

0x6B

Read Register Information

1.01.0

0x6D

Read Irradiance Calibration Factors

1.01.0

0x6E

Write Irradiance Calibration Factors

1.01.0

0xFE

Query Information

1.01.0

USB Command Descriptions

A detailed description of all Apex commands follows. While all commands are sent to EP1 over the
USB port, the byte sequence is command dependent. The general format is the first byte is the
command value and the additional bytes are command specific values.