DllTest setup in eclipse

Follow these steps to setup an Eclipse-Helios Java project for the Libraries project.

Unzip in a new directory

The directory structure should look like this:

1

Import an existing project

File/Import...General/Existing Projects into Workspace

2

Check the Java build path:

Properties/Java Build Path

3

Create a new "Run configuration" :

Run/Run Configurations.../Java Application

4

Then, run it without arguments; your output should be as follows:

5

Define the arguments

We will use the test case 1 that opens an HDLC connection and then sends an AssociationRequest. If your meter uses short names then select the file AssociationRequest_SN_NoPW.xml else select AssociationRequest_LN_NoPW.xml.

Please note that you may have to set the HDLC addresses and parameters. In this demo, the default values are:

 ClientMACAddress = 16 (public client),

ServerAddressSize = 1 (one byte addressing) and

 ServerUpperMACAddressValue = 1 (management logical device)

6

Here we specify to send "AssociationRequestSN_NoPW.xml" and print the response from the server.

Run it and you should have something like this:

7