Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. DLMS Android Sample Not Opening Settings

DLMS Android Sample not opening Settings

Forum Rules

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.

By p1j , 29 November, 2022
Forums
Gurux DLMS for Android

Hi,

I was trying to compile DLMS Android Sample on my Android Studio Dolphin 2021/Win 11 was able to build the apk with as is code, but when I tried to test it on my Google Pixel using Optical Probe on Genus meter [working fine on GxDLMSDirector] it didnt open the settings page for some error.. I realized the error was on Authentication block on GxSettings.Java

When I commented out the following lines and regenerated apk, it actually started opening the meter settings page, but now my Genus meter is not listed in Manufacturers list with this code commented.

for (GXAuthentication it : selected.getSettings()) {
// if (it.toString() == authentication.toString()) {
// index = pos;
// }
authentications.add(it);
++pos;

Not sure what setting I am missing as its my early days on DLMS.

thanks in advance

Image

p1j

3 years 6 months ago

The authentication setting is

The authentication setting is working on GxDLMSDirector with auth type - low

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi,

Hi,

The new version for Android is released next week where are fixed some compiler issues for Android Studio Dolphin. Let me know if that doesn't solve your problems.

BR,
Mikko

p1j

3 years 6 months ago

Are you sure this is Compiler

Are you sure this is Compiler issue? Can you suggest a stable compiler version to which I can go back..

A few more inputs to my problem

The adb logcat has following issue

111-30 02:06:48.790 13968 13968 E AndroidRuntime: FATAL EXCEPTION: main
11-30 02:06:48.790 13968 13968 E AndroidRuntime: Process: gurux.dlms.android, PID: 13968
11-30 02:06:48.790 13968 13968 E AndroidRuntime: java.lang.RuntimeException: Stub!
11-30 02:06:48.790 13968 13968 E AndroidRuntime: at gurux.dlms.manufacturersettings.GXManufacturerCollection.writeToParcel(GXManufacturerCollection.java:396)
11-30 02:06:48.790 13968 13968 E AndroidRuntime: at android.os.Parcel.writeParcelable(Parcel.java:2538)

as well as getting this screenshot error when using a different cable - The meter is Genus

Image

p1j

3 years 6 months ago

Another issue I found is as

Another issue I found is as below

12-01 01:36:27.580 4088 4088 E AndroidRuntime: FATAL EXCEPTION: main
12-01 01:36:27.580 4088 4088 E AndroidRuntime: Process: gurux.dlms.android, PID: 4088
12-01 01:36:27.580 4088 4088 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String gurux.dlms.manufacturersettings.GXAuthentication.toString()' on a null object reference
12-01 01:36:27.580 4088 4088 E AndroidRuntime: at gurux.dlms.android.GXSettings.updateAuthentications(GXSettings.java:344)
12-01 01:36:27.580 4088 4088 E AndroidRuntime: at gurux.dlms.android.GXSettings.access$200(GXSettings.java:67)

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi,

Hi,

Your serial port chipset is not added to device_filter file. Do you know what chipset your USB converter is using?

You can see it in Windows if you select Device Manager and then select properties.

BR,
Mikko

p1j

3 years 6 months ago

Hi Mikko,

Hi Mikko,

Appreciate the quick response. Has the new version of Gurux.DLMS.Android released already [as you mentioned above]? or what date it is scheduled to go live on GitHub?

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi,

Hi,

The Gurux.Common.Android and gurux.serial.android have been released. The gurux.dlms.android is released this week.

BR,
Mikko

p1j

3 years 6 months ago

Thanks You.. I was checking

Thanks You.. I was checking regularly.. and the Update really worked with my Xamarin solution for Android on .Net.. The USB.Serial is behaving fine now... Thanks a ton for this..

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin