Oracle® Java Micro Edition Software Development Kit Developer's Guide Release 8 for Windows E50624-01 |
|
Previous |
Next |
The External Events Generator enables you to test the capabilities of your device by simulating events on that device. For example, you can send pulses to a pulse counter.
To start the External Events Generator, click the External Events Generator icon in the main emulator window, or open the Tools menu and select External Events Generator. For information about starting the emulator, see Chapter 3, "Using the Emulators".
Although the External Events Generator functionality is similar for all default emulators (EmbeddedDevice1, EmbeddedDevice2, and Qualcomm_IoE_Device), the tabs are not the same.
The External Events Generator has the following tabs:
ADC: The Analog-to-Digital Converter (ADC) tab can be used to test analog input.
GPIO: The General Purpose Input/Output (GPIO) tab displays input pins for a specific device. You can create a custom device to represent a different GPIO device.
For information about the GPIO interface, see the Device I/O API docs in the device-io.zip
file under \docs\api\
in the Java ME SDK installation directory.
I2C: The Inter-Integrated Circuit (I2C) tab is available only for the Qualcomm_IoE_Device emulator. It enables to emulate input for all available sensors. You can adjust the settings of the G-sensor, light sensor, and temperature sensor on the device. For information about developing applications that use these sensors, see the documentation for the corresponding sensor. The emulator uses the following sensor models:
G-sensor: Bosch BMA150
Light sensor: Intersil ISL29011
Temperature sensor: ON Semiconductor ADT7481
Location: This tab can be used to set and test the location functionality of the device.
MMIO: The Memory-Mapped Input/Output (MMIO) tab is available only for the EmbeddedDevice1 and EmbeddedDevice2 emulator. If not already selected, select the following default device:
BIG_ENDIAN_DEVICE: A big endian device that contains all block types (byte, short, int, and block).
Note: If you are using a custom device created with the Custom Device Editor, the MMIO device list might include additional devices. For more information about the Custom Device Editor, see Chapter 5, "Working with Devices" |
For information about the MMIO interface, see the Device I/O API documents in the device-io.zip
file and the Embedded Support API documents in the embedded-support-api.zip
file under \docs\api\
in the Java ME SDK installation directory.
Power Management: The Power Management tab enables you to emulate the battery life of an external device, in seconds.
Pulse Counters: The Pulse Counters tab displays the current pulse counters on the device. The default configurations for EmbeddedDevice1 and EmbeddedDevice2 emulators are:
COUNTER_PA0
COUNTER_PB3
COUNTER_PB10
COUNTER_PA3
There is only one default counter for the Qualcomm_IoE_Device emulator.
You can configure the pulse counters you want and send a signal to the configured pulse counter by clicking Send Pulse.
SPI: The Serial Peripheral Interface (SPI) tab is available only for the Qualcomm_IoE_Device emulator. It can be used to configure a sample accelerometer sensor.
Move the slider of the X, Y, and Z acceleration scale to change the x, y, and z values transmitted over the SPI. The minimum and maximum values for the sliders in the G-sensor are defined by the Java ME application.
The G-sensor sample duplicates in emulation the functionality of the digital, triaxial acceleration sensor on the Qualcomm IoE embedded device. The acceleration sensor is used to sense tilt, motion, and shock vibration in embedded devices, such as medical instruments, computer peripherals, and monitoring devices. For information about writing applications that use the G-sensor, see the documentation for the sensor. The emulator uses the following G-sensor model: Bosch BMA150.