This tutorial describes how to configure a Simulator using Oracle Sensor Edge Server.
Time to Complete
Approximately 35 minutes
This tutorial covers the following topics:
|Configure a Simulator|
|Monitor the Event Data|
Place the cursor over this icon to load and view all the screenshots for this tutorial. (Caution: This action loads all screenshots simultaneously, so response time may be slow, depending on your Internet connection.)
Note: Alternatively, you can place the cursor over each individual icon in the following steps to load and view only the screenshot associated with that step.
Oracle Sensor Edge Server provides companies that want to adopt Radio Frequency Identification (RFID) technology with a comprehensive set of capabilities to capture, manage, analyze, access, and respond to data from different sensors such as RFID, location, and temperature. On the basis of Oracle's mature, proven technology (including Oracle Database 10g, Oracle Application Server 10g, Oracle Enterprise Manager 10g, and Oracle E-Business Suite 11 i), Oracle sensor-based services enable companies to quickly and easily integrate sensor-based information into their enterprise systems to gain near real-time supply chain visibility and leverage this insight to optimize business process.
The primary goal of the Sensor Edge Server is to transform raw data from the physical world into meaningful business events in your Enterprise Information System. This can be achieved in a closed loop, directly on the Sensor Edge Server, or by sending events to an Enterprise Information System. Access to the raw data and additional contextual and system information is always available through the data repository.
In this tutorial, you plug in a simulator driver in the driver framework to simulate the RFID reader. As a result of this integration, you see the events generated by the Sensor Edge Server and the simulation driver.
Before starting this tutorial, you should:
Have access to or have installed Oracle Application Server 10g Release 3 (10.1.3). You can download Oracle Application Server 10g 10.1.3 software from here.
|2.||Have access to or have installed Oracle Sensor Edge Server 10.1.3. You can download Oracle Sensor Edge Server software from here.|
Oracle Sensor Edge Server collects sensor information, filters it, and performs local sensor event processing. Oracle Sensor Edge Server then securely and reliably dispatches event data back to the central applications or databases. You perform Oracle Sensor Edge Server administration, configuration, and monitoring using the SES console.
The Edge Simulator Driver generates events to simulate a real device. You use the Edge Simulator Driver to test configurations and deployment designs. You can also use the simulator for internal functional testing to see how events are processed throughout the system. The Edge Simulator Driver emulates a regular driver. Except that instead of connecting to a physical device to read events, it takes parameters from an input file as instructions on when to generate false events. This simulator driver is very useful for testing and to see how events are processed throughout the system.
Open your Browser and enter the following URL:
Log in as oc4jadmin/<oc4jadmin password you specified during installation>. Click Login.
Creating a device group is the first step to connecting the Oracle Sensor Edge Server instance to devices and filters. Once you create a device group, you populate it with devices (the instances of the available drivers) and then attach filter instances to the individual devices (or to the entire device group).
In the Group Management page, enter Streams in the Group Name field. Click Create New Group.
The Configure Group page appears for the new device group. Click Add new device to create a device for the device group.
The Search and Select: Add new device page appears, listing the drivers in the repository. Select Edge Simulator Driver. Click Select.
The Configure Group page reappears, listing the device in the Devices section. Click Edge Simulator Driver1.
The Device Configuration page appears, displaying the parameters specific to the driver.
The Edge Simulator Driver generates events to simulate a real device. The Edge Simulator Driver behaves the same way as any driver, except that instead of connecting to a physical device to read events, it takes parameters from an input file such as Simulation.xml. The input file provides instructions about when to generate events.
A sample Simulation.xml file looks like this:
The <EventList> element defines a loop. This element is also the main block that groups all the other instructions together. The <EventList> element has one attribute, repeat, which must be present to control looping. The value for repeat must be a decimal number from 0 to LONG_MAX.
The <EventInterval> element instructs the simulator to pause for a certain period of time before proceeding.
The <type> element represents the number value that corresponds to the type of event.
The <subtype> element represents the number value for the subtype. For example, the subtype value corresponds with a General Instruction Event, which is an event sent by the application or device to instruct a specific device to perform an operation. The value 1 turns on the device.
The <id> element represents a text value that identifies a tag (that is, a read or target) to an event instruction. One of the <id> values for a tag is 03ffff045679.
The <data> element is optional.
The <deviceName> element represents the name of the device or application that generates the event. The <deviceName> enables the simulator to appear as if it is another device when generating events.
When you make any change in an Oracle Sensor Edge Server instance, the SES Console displays a message notifying you to restart the Oracle Sensor Edge Server instance using OracleAS Enterprise Manager. Click Enterprise Manager link in the message.
The login page for OracleAS Enterprise Manager appears. Enter the OC4J user name and password. Click Login.
Click the home link in the Cluster Topology page.
Select edge and click Restart.
Click Yes in the Confirmation page.
Oracle Sensor Edge Server instance has been restarted successfully.
Click Logout to exit from Oracle Enterprise Manager.
Verify that your OC4J server is running. If OC4J Server is not running, start the OC4J Server using the following command. Switch to the command prompt, change directory to <edgeserver_home>ORACLE_HOME\opmn\bin and issue the command:
Open your browser, and enter the following URL:
http://< host name>.< domain>:< port>/edge
For example, http://localhost:8888/edge.
Log in as oc4jadmin with the OC4J administrator password that you specified during installation. Click Login.
The SES console enables you to know the condition of Oracle Sensor Edge Server from the event data that is displayed on the Monitor Events and Event Reports tabbed pages. Click the
Monitor Events tab to view the data currently in the queue. The inbound and outbound event data includes:
If no event has been generated, you will not view any event data under Inbound Queue and Outbound Queue.
In this lesson, you learned how to:
|Plug in a simulator to simulate an RFID device|
To learn more about Oracle Sensor Edge Server on Windows, you can refer to:
|Additional OBEs on the OTN Web site.|
Place the cursor over this icon to hide all screenshots.