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
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
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
Hi, The serial port name is…
Hi,
The serial port name is wrong. Try with this:
main.py -S /dev/cu.wchusbserial1420
BR,
Mikko
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
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