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. Failed To Read Meter Through Raspberry Pi 5 and Probe

Failed to read meter through raspberry pi 5 and probe

By Achille, 11 June, 2025
Forums
Gurux.DLMS

Hi everyone,
I tried to read a electrical meter with gurux python library buy I'm facing with an error below. I installed gurux dlms library on raspberry pi 5 and I connect the meter with probe to the raspberry and I'm not able to reach it. I have an Exception("Serial port is not selected.". can you please have an issue to my problem. Thank you

python main.py -S /dev/ttyUSB0
gurux_dlms version: 1.0.181
gurux_net version: 1.0.22
gurux_serial version: 1.0.2
Authentication: 0
ClientAddress: 0x10
ServerAddress: 0x1
Traceback (most recent call last):
File "/home/gs2e/Desktop/gurux/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/main.py", line 89, in main
settings.media.open()
File "/home/gs2e/.local/lib/python3.11/site-packages/gurux_serial/GXSerial.py", line 226, in open
raise Exception("Serial port is not selected.")
Exception: Serial port is not selected.
Ended. Press any key to continue.

Profile picture for user Kurumi

Kurumi

4 weeks ago

Hi, For some reason the…

Hi,

For some reason the Serial port version number was wrong in requirements.txt. It's now updated to the correct 1.0.21. Update the serial port component to version 1.0.21 and it works.

BR,
Mikko

Achille

3 weeks 6 days ago

Hi Mr Kurumi, Thank you for…

Hi Mr Kurumi,
Thank you for the solution to my concern. However, a new error has occurred. Here it is: Gurux.DLMS.python/Gurux.DLMS.XmlClient.python $ python main.py -S /dev/ttyUSB0
gurux_dlms version: 1.0.181
gurux_net version: 1.0.19
gurux_serial version: 1.0.21
------------------------------------------------------------
Messages\LN
Traceback (most recent call last):
File "/home/gs2e/Desktop/test/Gurux.DLMS.python/Gurux.DLMS.XmlClient.python/main.py", line 118, in main
actions = settings.client.load(file)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gs2e/.local/lib/python3.11/site-packages/gurux_dlms/GXDLMSXmlClient.py", line 92, in load
tree = ET.parse(filename)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 1218, in parse
tree.parse(source, parser)
File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 569, in parse
source = open(source, "rb")
^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'Messages\\LN'
Ended. Press any key to continue.

Profile picture for user Kurumi

Kurumi

3 weeks 6 days ago

Hi, Use Gurux.DLMS.Client…

Hi,

Use Gurux.DLMS.Client.Example, not Gurux.DLMS.XmlClient.python. You don't have the correct XML files.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 07/09/2025 - 16:41
    Gurux.Serial.Android 2.0.13
  • Wed, 07/09/2025 - 12:07
    gurux.dlms.c 9.0.2507.0901
  • Sat, 07/05/2025 - 15:04
    Gurux.DLMS.Python 1.0.188
  • Tue, 07/01/2025 - 10:09
    Gurux.DLMS.Python 1.0.187
  • Tue, 07/01/2025 - 09:54
    gurux.dlms.c 9.0.2507.0101

New forum topics

  • Regarding the dlms android project
  • Unable to read attribute =3 (1.0.94.91.0.255) IC=7 for Indian Metering, while I'm able to read attribute 3 for other Profile generic class
  • Register Activation class (class_id = 9) attribute index 3 data is not visible
  • Load profile
  • DLMS Decryption Implementation Status and Clarification Needed
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin