I have to create one simulator of smart meter using java but it shows error
D:\simulator\gurux.dlms.simulator.java>mvn clean backage
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.gurux:gurux.dlms.simulator.java >-----------------
[INFO] Building gurux.dlms.simulator.java 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.110 s
[INFO] Finished at: 2023-01-04T12:41:14+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "backage". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFound…
D:\simulator\gurux.dlms.simulator.java>java -jar target/gurux.dlms.simulator.java-0.0.1-SNAPSHOT.jar -S COM5 -o simulator_template.xml -t verbose
Ended. Press any key to continue.
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\DELL\AppData\Local\Temp\gurux.serial.java15936243905483016552.dll: Can't find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2404)
at java.base/java.lang.Runtime.load0(Runtime.java:785)
at java.base/java.lang.System.load(System.java:2011)
at gurux.serial.GXSerial.initialize(GXSerial.java:329)
at gurux.serial.GXSerial.<init>(GXSerial.java:179)
at gurux.dlms.simulator.Settings.getParameters(Settings.java:293)
at gurux.dlms.simulator.Simulator.main(Simulator.java:273)
Hi,
Hi,
There is a typo in your command line parameters.
mvn clean package
BR,
Mikko
After build package I tried
After build package I tried this it is not executing
D:\simulator\gurux.dlms.simulator.java>Gurux.Dlms.Simulator.Net -S COM5
I am using windows .NET is required for this simulator and how to connect dlms python library to access this meter simulator
Hi,
Hi,
You need to use .Net version, not the java version. You can download it from here:
https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Simulato…
You can connect with python something like this:
python main.py -S YOUR_SERIAL_PORT
Note that you need two serial ports that are connected. You might want to use TCP/IP to get started.
BR,
Mikko
BR,
Mikko
How to run java version as
How to run java version as the simulator and create the xml file for first time?
Hi,
Hi,
Read this to get started.
https://www.gurux.fi/Gurux.DLMS.Simulator
You can use crystal template or import existing device.
BR,
Mikko
BR,
Mikko
D:\simulator\gurux.dlms
D:\simulator\gurux.dlms.simulator.java>java -jar target/gurux.dlms.simulator.java-0.0.1-SNAPSHOT.jar -S COM5 -o simulator_template.xml -t verbose
Ended. Press any key to continue.
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\DELL\AppData\Local\Temp\gurux.serial.java15936243905483016552.dll: Can't find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2404)
at java.base/java.lang.Runtime.load0(Runtime.java:785)
at java.base/java.lang.System.load(System.java:2011)
at gurux.serial.GXSerial.initialize(GXSerial.java:329)
at gurux.serial.GXSerial.<init>(GXSerial.java:179)
at gurux.dlms.simulator.Settings.getParameters(Settings.java:293)
at gurux.dlms.simulator.Simulator.main(Simulator.java:273)
when I tried this command I am getting this error
Hi,
Hi,
What Java version are you using?
java --version
BR,
Mikko
java 19.0.1 2022-10-18
java 19.0.1 2022-10-18
Java(TM) SE Runtime Environment (build 19.0.1+10-21)
Java HotSpot(TM) 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)
Any solution?
Hi,
Hi,
This is the first time when someone has had this problem. I'll send more info as soon as this can be repeated. Is your Windows 64-bit or 32-bit?
BR,
Mikko
64 bit
64 bit
Any updates on this error?