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.
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.
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)
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?
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..
The authentication setting is
The authentication setting is working on GxDLMSDirector with auth type - low
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
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
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)
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
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?
Hi,
Hi,
The Gurux.Common.Android and gurux.serial.android have been released. The gurux.dlms.android is released this week.
BR,
Mikko
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..