User's Guide

II-VI Incorporated
375 Saxonburg Boulevard
Saxonburg, PA 16056
T. 724.352.4455 | F. 724.352.5284 | www.ii-vi.com
OTDR_DEVICE_OFF,
OTDR_POWERING_UP,
OTDR_POWERING_OFF
If there is issue with
Device on XMFH, OFF to
ON transition will
indicate status sequence
as:
OTDR_DEVICE_OFF >
OTDR_POWERING_UP >
Post 6-7 Sec timeout >
OTDR_DEVICE_OFF
6.1.2 OCM Library Usage
1. User needs to include the header file of the library into the application. For OCM, It will be
<ocm_interface.h> file.
2. After including the header file user needs to initialize the library by calling the
OcmInterfaceInit() function. API returns 0 on success and error code on failure.
[Once Init is successful, multiple APIs can be called before deinit.]
3. Call the relevant API from following list in OCM Interface Table to perform operation on OCM
serial interface. This functions expects different arguments. ocm_interface.h describes all OCM
functions operations, input & output parameters.
API returns 0 on success, -1 if OcmInterfaceInit not performed / failed and relevant error code
on other failures.
4. De-initialize the library by calling the OcmInterfaceDeInit(). API returns 0 on success and error
code on failure.
5. Link the library while compiling the application by -locminterface”.
OCM Interface Table:
Sr
No.
Command
API
Remarks
1
Init - Custom API
int OcmInterfaceInit(void)
2
DeInit - Custom
API
int OcmInterfaceDeInit(void)
3
DREV
int OcmGetDREV(char *revision)