Hi, after having this running for around a week successfully I suddenly get an error ? with the bluetooth. Emonhub log below. Any idea?
2017-07-31 06:57:56,449 INFO SMASolar Log into the SMA solar inverter 00:80:25:2F:B4:28
2017-07-31 06:57:56,451 INFO SMASolar Opening bluetooth address 00:80:25:2F:B4:28
2017-07-31 06:57:58,067 DEBUG SMASolar initaliseSMAConnection
2017-07-31 06:57:58,516 DEBUG SMASolar packet count = 0101
2017-07-31 06:57:58,587 DEBUG SMASolar packet count = 0102
2017-07-31 06:57:58,599 DEBUG SMASolar logon
2017-07-31 06:57:58,731 DEBUG SMASolar packet count = 0103
2017-07-31 06:57:58,824 ERROR SMASolar Failed to grab all the bytes needed for a Level 2 packet
2017-07-31 06:57:58,877 ERROR SMASolar [‘Traceback (most recent call last):\n’, ’ File “/home/pi/emonhub/src/interfacers/EmonHubSMASolarInterfacer.py”, line 203, in read\n self._login_inverter()\n’, ’ File “/home/pi/emonhub/src/interfacers/EmonHubSMASolarInterfacer.py”, line 90, in _login_inverter\n dictInverterData = SMASolar_library.getInverterDetails(self._btSocket, self._packet_send_counter, self.mylocalBTAddress, self.MySerialNumber)\n’, ’ File “/home/pi/emonhub/src/smalibrary/SMASolar_library.py”, line 141, in getInverterDetails\n data=request_data(btSocket, packet_send_counter, mylocalBTAddress, MySerialNumber, 0x58000200, 0x00821E00, 0x008220FF)\n’, ’ File “/home/pi/emonhub/src/smalibrary/SMASolar_library.py”, line 322, in request_data\n bluetoothbuffer = read_SMA_BT_Packet(btSocket, packet_send_counter, True,mylocalBTAddress)\n’, ’ File “/home/pi/emonhub/src/smalibrary/SMASolar_library.py”, line 81, in read_SMA_BT_Packet\n raise Exception(“Failed to grab all the bytes needed for a Level 2 packet”)\n’, ‘Exception: Failed to grab all the bytes needed for a Level 2 packet\n’]
2017-07-31 06:58:02,502 INFO SMASolar Log into the SMA solar inverter 00:80:25:2F:B4:28
2017-07-31 06:58:02,504 INFO SMASolar Opening bluetooth address 00:80:25:2F:B4:28
2017-07-31 06:58:02,506 ERROR SMASolar (16, ‘Device or resource busy’)
2017-07-31 06:58:02,518 ERROR SMASolar Bluetooth error while connecting to 00:80:25:2F:B4:28
hcitool scan still shows the inverter.
Scanning …
00:80:25:2F:B4:28 SMA001d SB 3000TL-21 613 SN2130330613
Thanks for any help.
Cheers, MikeC