I have downloaded gurux.dlms.client and uploaded to my Eclipse, however when i try to run the sampleclient.java, it seem not work very well.
Refer to the command line,
if I run GuruxDlmsSample -r SN -c 16 -s 1 -sp COM3 -i
error: Invalid reference option
Found SN should be small cap, then i change to
GuruxDlmsSample -r sn -c 16 -s 1 -sp COM3 -i
error: "For input string: "COM3".
Then i found the COM3 should use option -S, so I change to
GuruxDlmsSample -r sn -c 16 -s 1 -S COM3 -i
error: Failed to load file. win64/gurux.serial.javajava.lang.NullPointerException
Could you please guide me what is the correct command & parameter to run this sampleclient.java ?
I believe that you have not installed Gurux.serial.java and that is causing the issue.
I asked to update help of client example to correct.
In general, command line parameters depends on what meter you try to read.
I believe that you don't need to use -sn. Are you using optical probe o direct serial port?
If you are not using optical probe, you can also skip -i parameter.
Hi,
Hi,
I believe that you have not installed Gurux.serial.java and that is causing the issue.
I asked to update help of client example to correct.
In general, command line parameters depends on what meter you try to read.
I believe that you don't need to use -sn. Are you using optical probe o direct serial port?
If you are not using optical probe, you can also skip -i parameter.
BR,
Mikko
I did install Gurux.serial
I did install Gurux.serial.java, beside that, I also install Gurux.net, Gurux.terminal, Gurux.sms & Gurux.common.
Moreover, from Eclipse, I did not see any command error or syntax error.
However, the getParameters(), i did amend arrayList to List.
After ensure no errors, then only I export it to Jar file, and I run from command line using java -jar xxxxx
Is it a must to import as a maven project ? (Cause i import it as Java Project as current)