Before commenting read Forum rules
Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
Before commenting read Forum rules
Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
I am getting settings.media == null
how i can assign Media value without Media i can't proceed.
Kindly Guide me how can i solve this issue.
Thank you
Scanning for projects...
--------------------< com.mycompany:mavenproject1 >---------------------
Building mavenproject1 1.0-SNAPSHOT
--------------------------------[ jar ]---------------------------------
--- exec-maven-plugin:3.0.0:exec (default-cli) @ mavenproject1 ---
Example:
GuruxDlmsSample reads data from the DLMS/COSEM device.
GuruxDlmsSample -h [Meter IP Address] -p [Meter Port No] -c 16 -s 1 -r sn
-h host name or IP address.
-p port number or name (Example: 1000).
-S serial port.
-a Authentication (None, Low, High, HighMd5, HighSha1, HighGMac, HighSha256).
-P Password for authentication.
-c Client address. (Default: 16)
-s Server address. (Default: 1)
-n Server address as serial number.
-l Logical Server address.
-r [sn, ln] Short name or Logical Name (default) referencing is used.
-t [Error, Warning, Info, Verbose] Trace messages.
-g "0.0.1.0.0.255:1; 0.0.1.0.0.255:2" Get selected object(s) with given attribute index.
-C Security Level. (None, Authentication, Encrypted, AuthenticationEncryption or DigitallySigned)
-V Security Suite version. (Default: Suite0). (Suite0, Suite1 or Suite2)
-K Used Key agreement scheme (OnePassDiffieHellman or StaticUnifiedModel).
-v Invocation counter data object Logical Name. Ex. 0.0.43.1.1.255
-I Auto increase invoke ID
-o Cache association view to make reading faster. Ex. -o C:\device.xml
-T System title that is used with chiphering. Ex -T 4775727578313233
-A Authentication key that is used with chiphering. Ex -A D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF
-B Block cipher key that is used with chiphering. Ex -B 000102030405060708090A0B0C0D0E0F
-D Dedicated key that is used with chiphering. Ex -D 00112233445566778899AABBCCDDEEFF
-d Used DLMS standard. Ex -d India (DLMS, India, Italy, SaudiArabia, IDIS)
-E Export client and server certificates from the meter. Ex -E 0.0.43.0.0.255.
-R Generate new client and server certificates and import them to the server. Ex. -R 0.0.43.0.0.255.
-i Used communication interface. Ex. -i WRAPPER.
-m Used PLC MAC address. Ex. -m 1.
-W General Block Transfer window size.
-w HDLC Window size. Default is 1
-f HDLC Frame size. Default is 128
-L Manufacturer ID (Flag ID) is used to use manufacturer depending functionality. -L LGZ
Example:
Read LG device using TCP/IP connection.
GuruxDlmsSample -r sn -c 16 -s 1 -h [Meter IP Address] -p [Meter Port No]
Read LG device using serial port connection.
GuruxDlmsSample -r sn -c 16 -s 1 -S COM1 -i
Read Indian device using serial port connection.
GuruxDlmsSample -S COM1 -c 16 -s 1 -a Low -P [password]
Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:982)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:929)
at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:457)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 0.686 s
Finished at: 2022-01-03T12:02:09+04:00
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project mavenproject1: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
Hi,
Hi,
You need to set media settings in command line parameters. Something like this
-h YOUR_METER_IP_ADDRESS -p TCP/IP_PORT_NUMBER
BR,
Mikko
How can set it is directly
How can set it is directly showing me Error?
kindly Guide me in steps
kindly Guide me in steps because i am not too much Familiar with CMD and also i am using Macbook .
should i use windows ?
Hi,
Hi,
You need to set command line parameters for the Netbeans. Select Properties and then select Run. Add those command-line arguments for the "Arguments" text box.
BR,
Mikko
please check my properties
please check my properties
Hi,
Hi,
You need to select Run, not Configurations, and then set run time command-line arguments.
BR,
Mikko
Now Connection refused
Now Connection refused
here is my Argument
here is my Argument
Hi,
Hi,
Connection refused means that your IP address or port number is invalid.
That is TCP/IP error.
BR,
Mikko
so how can i solve this ?
so how can i solve this ?
I already connected with Meter.
Same i tried many different
Same i tried many different ports
Hi,
Hi,
You need to know exactly what port meter is listening to. You can't try with random numbers. If you have another application that can connect to the meter you can try to get the port number from there.
BR,
Mikko
now its working Thanks Alot
now its working Thanks Alot
but i need to configure that is how i can Authentication or everything?
Hi,
Hi,
You can change the authentication if you add parameters like this:
-a Low -P YOUR_METER_PASSWORD -c YOUR_METER_CLIENT_ADDRESS_FOR_LOW_AUTHENTICATION
I don't know those values and you need to check them from the meter documentation.
BR,
Mikko
Now it is responding Data
Now it is responding Data send failed. Try to resend 1/3
But with GXDLMSDirector it is working fine and getting data from meter is also perfectly fine
Hi,
Hi,
Please, don't add pictures. They are hard to read. Plain text is better. One of your settings is wrong.
Select this meter from GXDLMSDirector. You can see the command line parameters. Use them.
BR,
Mikko
Now it's working fine
Now it's working fine
Thanks alot :)
one more issue is remaining that is MaxReceivePDUSize and there is no command to handle this.
Thanks
Hi,
Hi,
The client proposes the max MaxReceivePDUSize and the meter returns what value is used. You don't need to care about that.
BR,
Mikko
Ok Kurumi Thank you for your
Ok Kurumi Thank you for your precious time.
Thanks Alot :)
is it possible to send this
is it possible to send this meter data to the Broker ?
Hi,
Hi,
If you want to send all the messages you can get more information from here:
https://www.gurux.fi/Gurux.MQTT
If you want to read only value and send data you can modify the client example for your needs.
BR,
Mikko