Skip Headers
Oracle® Java ME Embedded Getting Started Guide for the Reference Platform (Qualcomm IoE)
Release 8
E48513-02
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

A Device I/O Preconfigured List

This appendix provides information about the various peripheral ports and buses for the Qualcomm IoE embedded board, as well as device mappings and important notes, which are accessible using the Device I/O APIs.

Note that any IMlet that accesses the Device I/O APIs must be digitally signed using a trusted certificate authority. An IMlet that is not signed will encounter an authentication error when attempting to access the Device I/O APIs.


Note:

Power Management, and MMIO are not supported on the Qualcomm IoE embedded board.


To access any device from the preconfigured peripheral list, the following permission is required:

jdk.dio.DeviceMgmtPermission(%Name%:%ID%);

The names and IDs for specific devices can be found in the tables below in this appendix. You must also specify an action. An empty string means open.

The tables use the following legend:

AT Devices

The following AT devices are pre-configured.

Device ID Device Name Mapped Configuration

800

DEFAULT

Brew's AT command interface

controllerNumber = DeviceConfig.DEFAULT

channelNumber = DeviceConfig.DEFAULT


For a complete list of AT commands that can be used, see the Qualcomm IoE Development Platform User Guide.

Please note the following when using AT commands:

Analog-to-Digital Converter (ADC) Devices

The following Analog-to-Digital (ADC) devices are pre-configured.

Device ID Device Name Mapped Configuration

100

VTHERM_N

ADT7481

controllerNumber = DeviceConfig.DEFAULT

channelNumber = 0

resolution = DeviceConfig.DEFAULT

samplingInterval = DeviceConfig.DEFAULT

samplingTime = DeviceConfig.DEFAULT

101

HKAIN1

Any pin from J10 header.

Pin number is chosen according to

the configuration of ADC multiplexer

controllerNumber = DeviceConfig.DEFAULT

channelNumber = 1

resolution = DeviceConfig.DEFAULT

samplingInterval = DeviceConfig.DEFAULT

samplingTime = DeviceConfig.DEFAULT


Note the following:

Digital-to-Analog Converter (DAC) Devices

The following Digital-to-Analog (DAC) devices are preconfigured.

Device ID Device Name Mapped Configuration

700

PDM0

Header J5 pin 18

controllerNumber = DeviceConfig.DEFAULT

channelNumber = 0

resolution = DeviceConfig.DEFAULT

samplingInterval = DeviceConfig.DEFAULT

701

PDM1

Reserved for future use; not available on Qualcomm IoE

deviceNumber = DeviceConfig.DEFAULT

channelNumber = 1

resolution = DeviceConfig.DEFAULT

samplingInterval = DeviceConfig.DEFAULT


Note the following:

GPIO Pins

The following GPIO pins are preconfigured.

Device ID Device Name Mapped Configuration

0

GPIO0

Header J5 pin 3

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 26

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_RISING_EDGE

initValue - ignored

1

GPIO1

Header J5 pin 5

JP7 ADC MUX 0

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 25

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_RISING_EDGE

initValue - ignored

2

GPIO2

Header J5 pin 7

JP8 ADC MUX 1

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 31

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_FALLING_EDGE

initValue - ignored

3

GPIO3

Header J5 pin 9

JP9 ADC MUX 2

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 17

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_HIGH_LEVEL

initValue - ignored

4

GPIO4

Header J5 pin 11

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 32

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_HIGH_LEVEL

initValue - ignored

5

GPIO5

Header J6 pin 3

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 28

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_HIGH_LEVEL

initValue - ignored

6

GPIO6

Header J6 pin 5

JP11 pin 2 (to connect to G-sensor interrupt)

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 27

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_RISING_EDGE

initValue - ignored

7

GPIO7

Header J6 pin 7

JP12 pin 2 (to connect to light sensor interrupt)

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 30

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_FALLING_EDGE

initValue - ignored

8

GPIO8

Header J6 pin 7

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 38

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_LOW_LEVEL

initValue - ignored

9

GPIO9

Header J6 pin 11

JP13 pin 1(to connect to temperature sensor interrupt)

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 33

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_FALLING_EDGE

initValue - ignored

10

GPIO10

Header J7 pin 1

Relay 1

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 18

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

11

GPIO11

Header J7 pin 3

Relay 2

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 24

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

12

GPIO12

Header J7 pin 5

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 29

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

13

GPIO13

Header J7 pin 7

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 35

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

14

GPIO14

Header J7 pin 9

Jumper P2 pin 2

(Used by LED)

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 13

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

15

GPIO15

Header J7 pin 11

Jumper P3 pin 2

(Used by LED)

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 34

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

16

GPIO16

Header J7 pin 13

Jumper P4 pin 2

(Used by LED)

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 12

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

17

GPIO17 or

LED2

Header J7 pin 15

Jumper P5 pin 2

(Used by LED)

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 16

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

18

GPIO18

Header J7 pin 17

Jumper P6 pin 2

(Used by LED)

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 36

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

19

GPIO19

Header J7 pin 19

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 15

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

20

GPIO20

Header J7 pin 2

DB9 J12 lower pin 3

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 10

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_LOW_LEVEL

initValue - ignored

21

GPIO21

Header J7 pin 4

DB9 J12 lower pin 2

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 14

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_LOW_LEVEL

initValue - ignored

22

GPIO22

Header J7 pin 6

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 11

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

23

GPIO23

Header J7 pin 8

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 9

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

24

GPIO24

Header J7 pin 10

DB9 J10 lower pin 2

controllerNumber = DeviceConfig.DEFAULT

pinNumber = 37

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = DeviceConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false


Note the following:

GPIO Ports

The following GPIO ports are preconfigured.

Device ID Device Name Mapped Configuration

200

LEDS

Header J7 pin 9 and Jumper P2 pin 2 (used by LED)

Header J7 pin 11 and Jumper P3 pin 2 (used by LED)

Header J7 pin 13 and Jumper P4 pin 2 (used by LED)

Header J7 pin 15 and Jumper P5 pin 2 (used by LED)

Header J7 pin 17 and Jumper P6 pin 2 (used by LED)

direction = GPIOPortConfig.DIR_OUTPUT_ONLY

initValue = false

pins = 13, 34, 12, 16, 36

mode of pins = DeviceConfig.DEFAULT

trigger of pins = GPIOPinConfig.TRIGGER_NONE

80

ADC-MUX-SEL

Header J5 pin 5 and JP7 ADC MUX 0

Header J5 pin 7 and JP8 ADC MUX 1

Header J5 pin 9 and JP9 ADC MUX 2

direction = GPIOPortConfig.DIR_OUTPUT_ONLY

initValue = false

pins = 25, 31, 17

mode of pins = DeviceConfig.DEFAULT

trigger of pins = GPIOPinConfig.TRIGGER_NONE


I2C

The following configurations can be used to communicate to I2C slaves.

Device ID Device Name Mapped Configuration

300

G-SENSOR

BMA150

controllerNumber = 1

address = 56

addressSize = DeviceConfig.DEFAULT

clockFrequency = 400000

301

LIGHT-SENSOR

ISL29011

controllerNumber = 1

address = 68

addressSize = DeviceConfig.DEFAULT

clockFrequency = 400000

302

TEMP-SENSOR

ADT7481

controllerNumber = 1

address = 75

addressSize = DeviceConfig.DEFAULT

clockFrequency = 400000

303

BATTERY-GAUGE

On-board battery gauge (specification is unknown)

controllerNumber = 1

address = 85

addressSize = DeviceConfig.DEFAULT

clockFrequency = 400000


Note the following:

Pulse Counter

The pulse counter has the following configuration.

Device ID Device Name Mapped Configuration

600

COUNTER

GPIO pin 35, Header J7 pin 7

controllerNumber = DeviceConfig.DEFAULT

channelNumber = DeviceConfig.DEFAULT

type = TYPE_RISING_EDGE_ONLY

GPIO controllerNumber = DeviceConfig.DEFAULT

GPIO pinNumber = 35


Note the following:

SPI

The SPI has a single static configuration with the following parameters.

Device ID Device Name Mapped Configuration

400

G-SENSOR

BMA150

controllerNumber = 1

wordLength = 8

clockFrequency = 26000000

clockMode = 3

address = 0

bitOrdering = DeviceConfig.DEFAULT


Note the following:

There are also some global SPI-related options that are set for all SPI slaves:

If you must change any of these properties for some SPI device, you can add the following in the jwc_properties.ini file:

deviceaccess.spi.{bus_id}.{slave_address}.csMode = {value}
deviceaccess.spi.{bus_id}.{slave_address}.minFreq = {value}
deviceaccess.spi.{bus_id}.{slave_address}.deassertionTime = {value}

There are restrictions on Java SPI API usage:

To connect to an external SPI device, remove JP17 jumper. See section 5.2.3, "SPI" in Qualcomm IoE Development Platform User Guide for more information.

UART Devices

The following UART devices are preconfigured:

Device ID Device Name Mapped Configuration

40

COM1

DB9 J10 upper port

controllerNumber =DeviceConfig.DEFAULT

baudRate = 19200

dataBits = DATABITS_8

parity = PARITY_NONE

stopBits = STOPBITS_1

flowcontrol = FLOWCONTROL_NONE

inputBufferSize - ignored

outputBufferSize - ignored


Note the following:

Watchdog

The following watchdog devices are pre configured:

Device ID Device Name Mapped Configuration

500

WDG

Platform Watchdog

N/a

501

WWDG


N/a


Watchdog peripheral with the name WDG is a basic platform WatchdogTimer while with the name WWDG is a WindowedWatchdogTimer.