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

11 months 1 week 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

11 months 1 week 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

11 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

10 months 3 weeks 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

10 months 3 weeks 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

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

Hire Us!

Latest Releases

  • Thu, 06/19/2025 - 09:33
    Gurux.DLMS.Python 1.0.185
  • Wed, 06/18/2025 - 15:11
    Gurux.DLMS.Python 1.0.184
  • Wed, 06/18/2025 - 10:05
    Gurux.DLMS.Python 1.0.183
  • Wed, 06/18/2025 - 09:06
    GXDLMSDirector 9.0.2506.1801
  • Wed, 06/18/2025 - 08:41
    Gurux.DLMS.Net 9.0.2506.1801

New forum topics

  • Unable to read parameter values from Landis+Gyr E550 meter using GXDLMSDirector - NoAccess status
  • data.SetComplete(false); But all data recieved
  • Crash (endless loop)
  • Server is not able to download object list with maxPduSize 64 or 128 (or anything below 156-bytes PDU size)
  • Day profile action item add error (String is not recognized as valid DateTime value)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin