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. Can't Find Available Serial Ports

Can't find available serial ports

By Meth13, 12 July, 2024
Forums
General discussion

Hi, I'm newbe here

I try to test my ch340 probe on my mac Big Sur with python gurux library. I've installed the ch340 driver and when i list with ls /dev/tty* i found /dev/tty.usbserial-1420, /dev/tty.wchusbserial1420 related to the probe.

But when I try the python main.py in Gurux.DLMS.Client.Example.python the Available serial ports is empty.

If i try python main.py -S /dev/tty.usbserial-1420 i get OSError: [Errno 25] Inappropriate ioctl for device

someone can help me?
thanks in advice

Profile picture for user Kurumi

Kurumi

1 year 6 months ago

Hi, I believe that your…

Hi,

I believe that your serial port name is not correct. Have you installed the correct driver for ch340?

You can test the driver if you download Arduino IDE and check that you can see the serial port. You can also get the port name.

BR,
Mikko

Meth13

1 year 6 months ago

Thanks Mikko, i try with…

Thanks Mikko,

i try with arduino Ide and find the same port name,

the serial monitor print something when flashed with TV remote control

Image
Profile picture for user Kurumi

Kurumi

1 year 5 months ago

Hi, The serial port name is…

Hi,
The serial port name is wrong. Try with this:

main.py -S /dev/cu.wchusbserial1420

BR,
Mikko

Meth13

1 year 5 months ago

Hi, It doesn't work with…

Hi, It doesn't work with MacOs, probably there are issue with driver

I try it on raspberry pi and it find the right port, and when do the python main.py -S /dev/ttyUSB0

this is what I receive:

python main.py -S /dev/ttyUSB0 -t verbose
gurux_dlms version: 1.0.156
gurux_net version: 1.0.19
gurux_serial version: 1.0.20
Authentication: Authentication.NONE
ClientAddress: 0x10
ServerAddress: 0x1
Standard: Standard.DLMS
TX: 21:43:29 7E A0 07 03 21 93 0F 01 7E
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
RX: 21:43:44
DisconnectRequest
Traceback (most recent call last):
File "/home/matteo/AMR/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/main.py", line 112, in main
reader.readAll(settings.outputFile)
File "/home/matteo/AMR/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 532, in readAll
self.initializeConnection()
File "/home/matteo/AMR/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 306, in initializeConnection
self.readDLMSPacket(data, reply)
File "/home/matteo/AMR/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 118, in readDLMSPacket
self.readDLMSPacket2(data, reply)
File "/home/matteo/AMR/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 169, in readDLMSPacket2
raise e
File "/home/matteo/AMR/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 162, in readDLMSPacket2
raise TimeoutException("Failed to receive reply from the device in given time.")
gurux_common.TimeoutException.TimeoutException: Failed to receive reply from the device in given time.
Ended. Press any key to continue.

Is possible that my meter couldn't be read?
I've a Sagemcom es4evo

Profile picture for user Kurumi

Kurumi

1 year 5 months ago

Hi, Check what baud rate…

Hi,

Check what baud rate your meter is using. It might be something other than 9600.

It might also be that one of your client settings differs from the meter's expectations.
It might be the server address. Check the meter manual to see if you can find the correct settings from there.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5
  • Mon, 12/15/2025 - 08:11
    Gurux.DLMS.Net 4.0.87
  • Fri, 12/12/2025 - 08:38
    Gurux.DLMS.Python 1.0.195
  • Thu, 12/11/2025 - 13:22
    Gurux.DLMS.Python 1.0.194
  • Thu, 12/11/2025 - 11:01
    gurux.dlms.java 4.0.88

New forum topics

  • Gurux DLMS Android App
  • AMR support for bidirectional meters.
  • addition of new object in object list, meter not working
  • old meter take to much time(l&t)
  • Unable to connect L&T ER300P Meter
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin