Index |
Prev |
Next
Day 4 Conclusion
Congratulations! Your driver is now almost finished. In today's lesson you created a device discovery parameters structure, a device discovery request, a device discovery response, and a device discovery preferences structure. In Java code, you made some associations between these and your driver's network. By doing this, your driver should now support device discovery.
To discover field-devices on your field-bus:
Run a station and view your network's Dev Device Manager
- Run a station that has your driver's network component under the drivers folder.
- Open a Workbench.
- Connect to your station from Workbench.
- Expand the station in the Nav tree.
- Expand the Config component in the Nav tree.
- Expand the Drivers component in the Nav tree.
- Double-click your driver's network that you added in the previous day's lessons.
- Verify that the Dev Device Manager appears.
- You should see a Discover button at the bottom of the Dev Device Manager.
Discover the devices on your field-bus.
- Click the Discover button.
- Provided that you did not set the default value of the doNotAskAgain property on BYourDriverDeviceDiscoveryPreferences to true then you should see a window appear with property-sheet-like representation of BYourDriverDeviceDiscoveryPreferences. If you did decide to set the default of the doNoteAskAgain property to True then the discovery procedure will instantly begin within the station.
- Click Ok.
- The discovery should now be occurring in the station.
- The job progress bar at the top of the Dev Device Manager should provide visual feedback about the completion status of the discovery process.
|
In your station, the driver will loop through all possible combinations of BYourDriverDeviceParams from the min to max that was specified on the window that popped up after you clicked the Discover button.
|
|
If all went well then you should see one or more rows in the top half of the Dev Device Manager. This area of the Dev Device Manager is called the discover pane. The columns in the discover pane should correspond to the properties in BYourDriverDeviceId that are defined the MGR_INCLUDE facet.
|
Add one or more device components to your network.
- Select a row in the discover pane and click the Add button.
- A window should appear that allows you to optionally edit some information.
- Click Ok.
- An instance of BYourDriverDevice should appear under your driver's network in your station.
Tomorrow we will show you how to update your driver to support discovery of data points in your device. The procedure for point-discovery is very similar to the procedure that you followed today for adding device-discovery support to your driver.
Index |
Prev |
Next
Copyright © 2000-2016 Tridium Inc. All rights reserved.