Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Regarding The Dlms Android Project

Regarding the dlms android project

By atuldd, 1 September, 2025
Forums
Gurux DLMS for Android

I am trying to use a USB optical probe where, in the media settings, the port shows as Prolific Technology, Inc with the following configuration: Baud rate 9600, Data bits 8, Parity None, Stop bits 1, and Chipset Prolific. However, when I click Read and Open in the Android application, I get the error Failed to open serial port. On Windows, the same setup works fine and data is fetched successfully, but it fails on Android.

Profile picture for user Kurumi

Kurumi

2 months 1 week ago

Hi, Press the info button…

Hi,

Press the info button. What are the vendor ID and product ID values?

BR,
Mikko

atuldd

2 months 1 week ago

Vendor:Prolific Technology…

Vendor:Prolific Technology,Inc.ID:67b

Product:null ID:23a3

Profile picture for user Kurumi

Kurumi

2 months 1 week ago

Hi, This is tested with your…

Hi,

This is tested with your chipset, and it worked without problems.

Did you give the access rights when you connected the USB to Android device?

If it still fails, change the serial port version to 3.0.2. Select "Media Settings" and select correct serial port and press the Info button. What version number is the chipset using?

BR,
Mikko

atuldd

2 months 1 week ago

I am using a USB optical…

I am using a USB optical probe with Prolific chipset. On Windows it works fine, but on Android I get "Failed to open serial port".

In your reply you mentioned:

"If it still fails, change the serial port version to 3.0.2."

I am not fully sure what you mean by "serial port version".
Do you mean that I should update the Gradle dependency version in my Android project?
Currently I am using:

guruxCommonAndroid = "2.0.2"
guruxSerialAndroid = "2.0.11"
guruxNetAndroid = "1.0.3"
guruxDlmsAndroid = "2.0.14"

Should I update only guruxSerialAndroid to 3.0.2, or should I also upgrade all Gurux Android libraries (guruxCommonAndroid, guruxNetAndroid, guruxDlmsAndroid) to the latest 3.x versions to keep them compatible?

Profile picture for user Kurumi

Kurumi

2 months 1 week ago

Hi, You can't compare…

Hi,

You can't compare Windows and Android serial port handling. They are totally different.

Update your references:

guruxCommonAndroid = "3.0.4"
guruxSerialAndroid = "3.0.2"
guruxNetAndroid = "3.0.1"

BR,
Mikko

atuldd

2 months 1 week ago

1. I am using a USB optical…

1. I am using a USB optical probe with a Prolific (PL2303) chipset but I get the error:

Failed to open serial port.

2. I saw in the forum that you suggested updating to:

guruxCommonAndroid = "3.0.4"
guruxSerialAndroid = "3.0.2"
guruxNetAndroid = "3.0.1"

I want to confirm:

Does Gurux Serial officially support Prolific (PL2303) cables on Android?

After changing dependencies to the above versions, my build fails with:

Execution failed for task ':UI:mergeDebugAndroidTestNativeLibs'.
> Could not resolve all files for configuration ':UI:debugAndroidTestRuntimeClasspath'.
> Could not find org.gurux:Gurux.Common.Android:3.0.4.
Required by:
project :UI

Profile picture for user Kurumi

Kurumi

2 months 1 week ago

Hi, Our customers are using…

Hi,

Our customers are using PL2303 chipsets.

I don't know what version they are using.
You need to get the latest version or change Gurux.Common.Android to org.gurux:gurux.common.android

BR,
Mikko

shashi_deva

1 month 3 weeks ago

Still with latest versions…

Still with latest versions

guruxCommonAndroid = "3.0.4"
guruxSerialAndroid = "3.0.2"
guruxNetAndroid = "3.0.1"

couldn't open the port
when I click Read and Open in the Android application, I get the error Failed to open serial port

Profile picture for user Kurumi

Kurumi

1 month 3 weeks ago

Hi, I need the Prolific…

Hi,

I need the Prolific chipset version information.

If it still fails, change the serial port version to 3.0.2. Select "Media Settings" and select correct serial port and press the Info button. What version number is the chipset using?

BR,
Mikko

shashi_deva

1 month 3 weeks ago

Vendor:Prolific Technology…

Vendor:Prolific Technology,Inc.ID:67b
Product:null ID:23a3

Profile picture for user Kurumi

Kurumi

1 month 3 weeks ago

Hi, This looks like CadyCE…

Hi,

This looks like CadyCE USB to RS-232 converter, but the product name is null.
You haven't shared the firmware version. It's under the product field.

Add also the Raw descriptors value here so I can verify that.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901
  • Thu, 10/16/2025 - 09:59
    gurux.dlms.java 4.0.83
  • Wed, 10/08/2025 - 10:21
    gurux.dlms.c 9.0.2510.0801
  • Fri, 09/26/2025 - 10:02
    gurux.dlms.cpp 9.0.2509.2601
  • Fri, 09/26/2025 - 09:45
    gurux.dlms.c 9.0.2509.2601

New forum topics

  • Guidance on using the source codes
  • How to get/convert user readable format data from readRowsByRange
  • Insufficient memory to continue the execution of the program.
  • The client instance code failed to connect to the electricity meter for authentication
  • Unable to Release Request when closing connection with meter.
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin