com.honeywell.ioctl
Class HoneywellIOCTL

java.lang.Object
  extended by com.honeywell.ioctl.HoneywellIOCTL

public class HoneywellIOCTL
extends java.lang.Object

The platform includes numerous Honeywell custom functions that could be used to perform system functions or obtain data coming from the manufacturing data store. The HoneywellIOCTL class provides a mechanism for accessing custom Honeywell functions.

Author:
E525542 Jay Meng, E532815 Roy Xu

Field Summary
static int HSM_BATTERY_SERIAL_NUM
          This is the serial number of the battery.
static int HSM_CONFIG_NUM
          The device configuration number.
static int HSM_CUSTOM_SERIAL_NUM
          The device serial number, set by the ODM.
static int HSM_FEATURE_SET
          An integer describing the feature set available on the device.
static int HSM_FLASH_SIZE
          The size of the NAND flash in megabytes.
static int HSM_HARDWARE_REV
          The hardware revision number.
static int HSM_KEYBOARD_TYPE
          The identifier of the keyboard type present on the device.
static int HSM_MCU_VERSION
          The version string for the on-board co-processor
static int HSM_MFG_DATA_VALID
          A Boolean indication of whether the manufacturing data block is valid on the device.
static int HSM_MFG_DATE
          The device manufacture date.
static int HSM_MFG_MODEL_NUM
          The device model number.
static int HSM_MFG_PART_NUM
          The device part number.
static int HSM_MFG_SERIAL_NUM
          The device serial number.
static int HSM_ODM_TRACKING_NUM
          The device tracking number, specific to the ODM.
static int HSM_OSIMAGE_VERSION
          The version string for the Android image.
static int HSM_RECOVERY_VERSION
          The version string for the recovery image
static int HSM_RESET_REASON
          An integer identifier for one of: factory reset, cold boot and escalated reset.
static int HSM_UBOOT_VERSION
          The version string for the u-boot bootloader
static int HSM_WAKE_SOURCE
          An integer identifier for the most recent wake source.
static int HSM_XLOADER_VERSION
          The version string for the x-loader bootloader
 
Constructor Summary
HoneywellIOCTL()
           
 
Method Summary
 int hsmReadData(IoctlRWStruct data)
          provides a method to retrieve data for a specific data element.
 int hsmWriteData(IoctlRWStruct data)
          provides a method for writing data to be stored for a specific data element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HSM_XLOADER_VERSION

public static final int HSM_XLOADER_VERSION
The version string for the x-loader bootloader

See Also:
Constant Field Values

HSM_UBOOT_VERSION

public static final int HSM_UBOOT_VERSION
The version string for the u-boot bootloader

See Also:
Constant Field Values

HSM_RECOVERY_VERSION

public static final int HSM_RECOVERY_VERSION
The version string for the recovery image

See Also:
Constant Field Values

HSM_OSIMAGE_VERSION

public static final int HSM_OSIMAGE_VERSION
The version string for the Android image.

See Also:
Constant Field Values

HSM_MCU_VERSION

public static final int HSM_MCU_VERSION
The version string for the on-board co-processor

See Also:
Constant Field Values

HSM_BATTERY_SERIAL_NUM

public static final int HSM_BATTERY_SERIAL_NUM
This is the serial number of the battery. This data is not supported at this time.

See Also:
Constant Field Values

HSM_FLASH_SIZE

public static final int HSM_FLASH_SIZE
The size of the NAND flash in megabytes.

See Also:
Constant Field Values

HSM_KEYBOARD_TYPE

public static final int HSM_KEYBOARD_TYPE
The identifier of the keyboard type present on the device.

See Also:
Constant Field Values

HSM_HARDWARE_REV

public static final int HSM_HARDWARE_REV
The hardware revision number.

See Also:
Constant Field Values

HSM_MFG_DATE

public static final int HSM_MFG_DATE
The device manufacture date.

See Also:
Constant Field Values

HSM_MFG_MODEL_NUM

public static final int HSM_MFG_MODEL_NUM
The device model number.

See Also:
Constant Field Values

HSM_MFG_SERIAL_NUM

public static final int HSM_MFG_SERIAL_NUM
The device serial number.

See Also:
Constant Field Values

HSM_MFG_PART_NUM

public static final int HSM_MFG_PART_NUM
The device part number.

See Also:
Constant Field Values

HSM_ODM_TRACKING_NUM

public static final int HSM_ODM_TRACKING_NUM
The device tracking number, specific to the ODM.

See Also:
Constant Field Values

HSM_CONFIG_NUM

public static final int HSM_CONFIG_NUM
The device configuration number.

See Also:
Constant Field Values

HSM_CUSTOM_SERIAL_NUM

public static final int HSM_CUSTOM_SERIAL_NUM
The device serial number, set by the ODM.

See Also:
Constant Field Values

HSM_FEATURE_SET

public static final int HSM_FEATURE_SET
An integer describing the feature set available on the device.

See Also:
Constant Field Values

HSM_RESET_REASON

public static final int HSM_RESET_REASON
An integer identifier for one of: factory reset, cold boot and escalated reset.

See Also:
Constant Field Values

HSM_WAKE_SOURCE

public static final int HSM_WAKE_SOURCE
An integer identifier for the most recent wake source.

See Also:
Constant Field Values

HSM_MFG_DATA_VALID

public static final int HSM_MFG_DATA_VALID
A Boolean indication of whether the manufacturing data block is valid on the device. 1 means valid, 0 means invalid.

See Also:
Constant Field Values
Constructor Detail

HoneywellIOCTL

public HoneywellIOCTL()
Method Detail

hsmReadData

public int hsmReadData(IoctlRWStruct data)
provides a method to retrieve data for a specific data element.

Parameters:
data - corresponds to one of the elements in the Read and Write Data Items.
Returns:
0 for success, non-zero for failure.

hsmWriteData

public int hsmWriteData(IoctlRWStruct data)
provides a method for writing data to be stored for a specific data element.

Parameters:
data - corresponds to one of the elements in the Read and Write Data Items.
Returns:
0 for success, non-zero for failure.