Hi ,
We are working with Indian Standard Bluetooth Smart Meter , when we try to read the data from meter via bluetooth using gurux.dlms library (python) , we get error , but , while using the Optical Cable the data was able to be read for the same library .
Kindly help us to resolve this issue.
Hi, I believe that one of…
Hi,
I believe that one of your settings is different from what the meter expects. The correct settings should be described in the meter documentation.
The baud rate is usually wrong if your Bluetooth connection uses an optical probe.
BR,
Mikko
If the meter does not…
If the meter does not support RFCOMM, how can we run the following command? python main.py -S /dev/rfcomm0 -t Verbose
Hi, You should read this and…
Hi,
You should read this and check that your meter supports Bluetooth.
https://gurux.fi/bluetooth
BR,
Mikko
Hi , Yes, our meter supports…
Hi ,
Yes, our meter supports Bluetooth (BLE 5.0); however, it does not support RFCOMM. We referred to this https://gurux.fi/bluetooth - link to communicate with and read data from the meter. Is there any other way to read the data via Bluetooth instead of using RFCOMM?
This is the errors we got,…
This is the errors we got,
OSError: [Errno 5] Input/output error
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/GXSerial.py", line 211, in __readThread
data = self.__h.read()
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/_handlers/GXLinuxHandler.py", line 395, in read
cnt = self.getBytesToRead()
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/_handlers/GXLinuxHandler.py", line 379, in getBytesToRead
fcntl.ioctl(self.h, termios.TIOCINQ, buf, True)
OSError: [Errno 5] Input/output error
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/GXSerial.py", line 211, in __readThread
data = self.__h.read()
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/_handlers/GXLinuxHandler.py", line 395, in read
cnt = self.getBytesToRead()
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/_handlers/GXLinuxHandler.py", line 379, in getBytesToRead
fcntl.ioctl(self.h, termios.TIOCINQ, buf, True)
OSError: [Errno 5] Input/output error
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/GXSerial.py", line 211, in __readThread
data = self.__h.read()
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/_handlers/GXLinuxHandler.py", line 395, in read
cnt = self.getBytesToRead()
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/_handlers/GXLinuxHandler.py", line 379, in getBytesToRead
fcntl.ioctl(self.h, termios.TIOCINQ, buf, True)
OSError: [Errno 5] Input/output error
Traceback (most recent call last):
File "/home/iot/ilm/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/main.py", line 112, in main
reader.readAll(settings.outputFile)
File "/home/iot/ilm/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 532, in readAll
self.initializeConnection()
File "/home/iot/ilm/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 306, in initializeConnection
self.readDLMSPacket(data, reply)
File "/home/iot/ilm/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 118, in readDLMSPacket
self.readDLMSPacket2(data, reply)
File "/home/iot/ilm/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 169, in readDLMSPacket2
raise e
File "/home/iot/ilm/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 164, in readDLMSPacket2
self.media.send(data, None)
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/GXSerial.py", line 172, in send
self.__h.write(data)
File "/usr/local/lib/python3.9/dist-packages/gurux_serial/_handlers/GXLinuxHandler.py", line 407, in write
ret = os.write(self.h, data)
OSError: [Errno 5] Input/output error
gurux_dlms version: 1.0.174
gurux_net version: 1.0.19
gurux_serial version: 1.0.20
Authentication: Authentication.NONE
ClientAddress: 0x10
ServerAddress: 0x1
Standard: Standard.DLMS
TX: 17:46:06 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: 17:46:16
DisconnectRequest
Ended. Press any key to continue.
Hi, If you don't want to use…
Hi,
If you don't want to use RFCOMM, you need to use Bluetooth library that can communicate with your meter and add the IGXMedia interface to Bluetooth library.
BR,
Mikko