Zitat von fhartlieb
Beitrag anzeigen
Nun habe ich jedoch ein komisches Verhalten, mitten während der Auslosung bzw. Decodierung ist das Plugin SMLx (oder etwas anders ausgestiegen) und versucht nun sekündlich dies wieder "gut zu machen":
noch fehlerfrei:
Code:
2024-03-23 21:25:42 CET DEBUG __init__ plugins.smlx.smlx Polling Smartmeter now -- (__init__.py:poll_device:277) 2024-03-23 21:25:42 CET INFO __init__ plugins.smlx.smlx SML: Connected to serial:///dev/ttySHNG_SMLX-Optokopf -- (__init__.py:connect:221) 2024-03-23 21:25:42 CET DEBUG __init__ plugins.smlx.smlx Connected, try to query -- (__init__.py:poll_device:284) 2024-03-23 21:25:42 CET DEBUG __init__ plugins.smlx.smlx Start read -- (__init__.py:_read:242) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx End read -- (__init__.py:_read:252) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Read 1024 bytes -- (__init__.py:poll_device:294) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Start sequence marker 1b 1b 1b 1b 01 01 01 01 found -- (__init__.py:poll_device:298) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx End sequence marker 1b 1b 1b 1b 1a found -- (__init__.py:poll_device:301) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Packet size is 260 -- (__init__.py:poll_device:302) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx 2 fill byte(s) -- (__init__.py:poll_device:305) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Checksum is 0xb964 -- (__init__.py:poll_device:307) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Buffer length is 274 -- (__init__.py:poll_device:310) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Buffer: 1b 1b 1b 1b 01 01 01 01 76 05 01 65 14 83 62 00 62 00 72 63 01 01 76 01 07 ff ff ff ff ff ff 05 00 77 06 d6 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 72 62 01 65 01 57 c1 88 01 63 f9 e3 00 76 05 01 65 14 84 62 00 62 00 72 63 07 01 77 07 ff ff ff ff ff ff 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 07 01 00 62 0a ff ff 72 62 01 65 01 57 c1 88 75 77 07 01 00 60 32 01 01 01 01 01 01 04 4c 47 5a 01 77 07 01 00 60 01 00 ff 01 01 01 01 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 01 77 07 01 00 01 08 00 ff 65 00 1c 01 04 72 62 01 65 01 57 c1 88 62 1e 52 ff 69 00 00 00 00 00 be 5e 1e 01 77 07 01 00 02 08 00 ff 01 72 62 01 65 01 57 c1 88 62 1e 52 ff 69 00 00 00 00 01 61 05 d7 01 77 07 01 00 10 07 00 ff 01 01 62 1b 52 00 59 00 00 00 00 00 00 00 e0 01 01 01 63 90 4a 00 76 05 01 65 14 85 62 00 62 00 72 63 02 01 71 01 63 68 2a 00 00 00 1b 1b 1b 1b 1a 02 -- (__init__.py:poll_device:311) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Calculated checksum is 0xb964, given CRC is 0xb964 -- (__init__.py:poll_device:315) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Checksum was ok, now parse the data_package -- (__init__.py:poll_device:332) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Data: 76 05 01 65 14 83 62 00 62 00 72 63 01 01 76 01 07 ff ff ff ff ff ff 05 00 77 06 d6 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 72 62 01 65 01 57 c1 88 01 63 f9 e3 00 76 05 01 65 14 84 62 00 62 00 72 63 07 01 77 07 ff ff ff ff ff ff 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 07 01 00 62 0a ff ff 72 62 01 65 01 57 c1 88 75 77 07 01 00 60 32 01 01 01 01 01 01 04 4c 47 5a 01 77 07 01 00 60 01 00 ff 01 01 01 01 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 01 77 07 01 00 01 08 00 ff 65 00 1c 01 04 72 62 01 65 01 57 c1 88 62 1e 52 ff 69 00 00 00 00 00 be 5e 1e 01 77 07 01 00 02 08 00 ff 01 72 62 01 65 01 57 c1 88 62 1e 52 ff 69 00 00 00 00 01 61 05 d7 01 77 07 01 00 10 07 00 ff 01 01 62 1b 52 00 59 00 00 00 00 00 00 00 e0 01 01 01 63 90 4a 00 76 05 01 65 14 85 62 00 62 00 72 63 02 01 71 01 63 68 2a 00 00 00 -- (__init__.py:_parse:370) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Entry {'objName': '1-0:96.50.1*1', 'status': None, 'valTime': None, 'unit': None, 'scaler': None, 'value': b'LGZ', 'signature': None, 'obis': '1-0:96.50.1*1', 'valueReal': 'LGZ', 'unitName': None, 'actualTime': None} -- (__init__.py:poll_device:339) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Entry {'objName': '1-0:96.1.0*255', 'status': None, 'valTime': None, 'unit': None, 'scaler': None, 'value': b'\n\x01LGZ\x00\x03\xc5\xd3\x1d', 'signature': None, 'obis': '1-0:96.1.0*255', 'valueReal': '0a014c475a0003c5d31d', 'unitName': None, 'actualTime': None} -- (__init__.py:poll_device:339) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Entry {'objName': '1-0:1.8.0*255', 'status': 1835268, 'valTime': [None, 22528392], 'unit': 30, 'scaler': -1, 'value': 12475934, 'signature': None, 'statRun': True, 'statFraudMagnet': False, 'statFraudCover': False, 'statEnergyTotal': False, 'statEnergyL1': False, 'statEnergyL2': False, 'statEnergyL3': False, 'statRotaryField': False, 'statBackstop': False, 'statCalFault': False, 'statVoltageL1': True, 'statVoltageL2': True, 'statVoltageL3': True, 'obis': '1-0:1.8.0*255', 'valueReal': 1247593.4, 'unitName': 'Wh', 'actualTime': 'Fri Sep 18 18:53:12 1970'} -- (__init__.py:poll_device:339) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Entry {'objName': '1-0:2.8.0*255', 'status': None, 'valTime': [None, 22528392], 'unit': 30, 'scaler': -1, 'value': 23135703, 'signature': None, 'obis': '1-0:2.8.0*255', 'valueReal': 2313570.3, 'unitName': 'Wh', 'actualTime': 'Fri Sep 18 18:53:12 1970'} -- (__init__.py:poll_device:339) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Entry {'objName': '1-0:16.7.0*255', 'status': None, 'valTime': None, 'unit': 27, 'scaler': 0, 'value': 224, 'signature': None, 'obis': '1-0:16.7.0*255', 'valueReal': 224, 'unitName': 'W', 'actualTime': None} -- (__init__.py:poll_device:339) 2024-03-23 21:25:45 CET DEBUG __init__ plugins.smlx.smlx Polling Smartmeter done. Poll cycle took 3.401836633682251 seconds. -- (__init__.py:poll_device:355) 2024-03-23 21:25:46 CET INFO __init__ plugins.smlx.smlx SML: Disconnected! -- (__init__.py:disconnect:236)
Code:
2024-03-23 21:26:42 CET DEBUG __init__ plugins.smlx.smlx Polling Smartmeter now -- (__init__.py:poll_device:277) 2024-03-23 21:26:42 CET INFO __init__ plugins.smlx.smlx SML: Connected to serial:///dev/ttySHNG_SMLX-Optokopf -- (__init__.py:connect:221) 2024-03-23 21:26:42 CET DEBUG __init__ plugins.smlx.smlx Connected, try to query -- (__init__.py:poll_device:284) 2024-03-23 21:26:42 CET DEBUG __init__ plugins.smlx.smlx Start read -- (__init__.py:_read:242) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx End read -- (__init__.py:_read:252) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Read 1024 bytes -- (__init__.py:poll_device:294) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Start sequence marker 1b 1b 1b 1b 01 01 01 01 found -- (__init__.py:poll_device:298) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx End sequence marker 1b 1b 1b 1b 1a found -- (__init__.py:poll_device:301) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Packet size is 260 -- (__init__.py:poll_device:302) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx 2 fill byte(s) -- (__init__.py:poll_device:305) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Checksum is 0xaffa -- (__init__.py:poll_device:307) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Buffer length is 274 -- (__init__.py:poll_device:310) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Buffer: 1b 1b 1b 1b 01 01 01 01 76 05 01 65 15 3a 62 00 62 00 72 63 01 01 76 01 07 ff ff ff ff ff ff 05 00 77 07 13 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 72 62 01 65 01 57 c1 c5 01 63 ad 0e 00 76 05 01 65 15 3b 62 00 62 00 72 63 07 01 77 07 ff ff ff ff ff ff 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 07 01 00 62 0a ff ff 72 62 01 65 01 57 c1 c5 75 77 07 01 00 60 32 01 01 01 01 01 01 04 4c 47 5a 01 77 07 01 00 60 01 00 ff 01 01 01 01 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 01 77 07 01 00 01 08 00 ff 65 00 1c 01 04 72 62 01 65 01 57 c1 c5 62 1e 52 ff 69 00 00 00 00 00 be 5e 44 01 77 07 01 00 02 08 00 ff 01 72 62 01 65 01 57 c1 c5 62 1e 52 ff 69 00 00 00 00 01 61 05 d7 01 77 07 01 00 10 07 00 ff 01 01 62 1b 52 00 59 00 00 00 00 00 00 00 df 01 01 01 63 4e 80 00 76 05 01 65 15 3c 62 00 62 00 72 63 02 01 71 01 63 d2 47 00 00 00 1b 1b 1b 1b 1a 02 -- (__init__.py:poll_device:311) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Calculated checksum is 0xaffa, given CRC is 0xaffa -- (__init__.py:poll_device:315) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Checksum was ok, now parse the data_package -- (__init__.py:poll_device:332) 2024-03-23 21:26:46 CET DEBUG __init__ plugins.smlx.smlx Data: 76 05 01 65 15 3a 62 00 62 00 72 63 01 01 76 01 07 ff ff ff ff ff ff 05 00 77 07 13 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 72 62 01 65 01 57 c1 c5 01 63 ad 0e 00 76 05 01 65 15 3b 62 00 62 00 72 63 07 01 77 07 ff ff ff ff ff ff 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 07 01 00 62 0a ff ff 72 62 01 65 01 57 c1 c5 75 77 07 01 00 60 32 01 01 01 01 01 01 04 4c 47 5a 01 77 07 01 00 60 01 00 ff 01 01 01 01 0b 0a 01 4c 47 5a 00 03 c5 d3 1d 01 77 07 01 00 01 08 00 ff 65 00 1c 01 04 72 62 01 65 01 57 c1 c5 62 1e 52 ff 69 00 00 00 00 00 be 5e 44 01 77 07 01 00 02 08 00 ff 01 72 62 01 65 01 57 c1 c5 62 1e 52 ff 69 00 00 00 00 01 61 05 d7 01 77 07 01 00 10 07 00 ff 01 01 62 1b 52 00 59 00 00 00 00 00 00 00 df 01 01 01 63 4e 80 00 76 05 01 65 15 3c 62 00 62 00 72 63 02 01 71 01 63 d2 47 00 00 00 -- (__init__.py:_parse:370) 2024-03-23 21:27:44 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:28:45 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:29:46 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:30:46 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:31:47 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:32:48 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:33:49 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:34:50 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:35:50 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:36:51 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:37:52 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:38:53 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:39:54 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:40:54 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:41:55 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:42:56 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:43:57 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:44:58 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:45:59 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:46:59 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-23 21:48:00 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360)
edit: Achso, ein SNHG-Neustart (nicht das System) hat geholfen:
Code:
2024-03-24 20:52:22 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-24 20:53:23 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-24 20:54:24 CET WARNING __init__ plugins.smlx.smlx Triggered poll_device, but could not acquire lock. Request will be skipped. -- (__init__.py:poll_device:360) 2024-03-24 20:54:35 CET DEBUG __init__ Main Plugin 'smlx': stop method called -- (__init__.py:stop:157) 2024-03-24 20:54:35 CET DEBUG smartplugin Main scheduler_remove: name = plugins.smlx.smlx -- (smartplugin.py:scheduler_remove:986) 2024-03-24 20:54:37 CET INFO __init__ Main SML: Disconnected! -- (__init__.py:disconnect:236) //Neustart// 2024-03-24 20:55:08 CET DEBUG __init__ Main Using CRC params poly=4129, reflect_in=True, xor_in=65535, reflect_out=True, xor_out=65535, swap_crc_bytes=False -- (__init__.py:load_parameters:131) 2024-03-24 20:55:10 CET DEBUG __init__ Main Attach TGA.Zaehler.Strom.Bezug with obis=1-0:1.8.0*255 and prop=valueReal -- (__init__.py:parse_item:179) 2024-03-24 20:55:10 CET DEBUG __init__ Main Attach TGA.Zaehler.Strom.Lieferung with obis=1-0:2.8.0*255 and prop=valueReal -- (__init__.py:parse_item:179) 2024-03-24 20:55:10 CET DEBUG __init__ Main Attach TGA.Zaehler.Strom.Leistung with obis=1-0:16.7.0*255 and prop=valueReal -- (__init__.py:parse_item:179) 2024-03-24 20:55:10 CET DEBUG __init__ Main Attach TGA.Zaehler.Strom.LeistungEinheit with obis=1-0:16.7.0*255 and prop=unitName -- (__init__.py:parse_item:179) 2024-03-24 20:55:10 CET DEBUG __init__ Main Attach TGA.Zaehler.Strom.LeistungRichtung with obis=1-0:1.8.0*255 and prop=statEnergyTotal -- (__init__.py:parse_item:179) 2024-03-24 20:55:11 CET DEBUG __init__ smlx Plugin 'smlx': run method called -- (__init__.py:run:138) 2024-03-24 20:55:11 CET DEBUG __init__ smlx Using CRC params poly=4129, reflect_in=True, xor_in=65535, reflect_out=True, xor_out=65535, swap_crc_bytes=False -- (__init__.py:load_parameters:131) 2024-03-24 20:55:11 CET DEBUG smartplugin smlx scheduler_add: name = plugins.smlx.smlx, parameters: prio=5, cycle=60, next=datetime.datetime(2024, 3, 24, 20, 55, 11, 359904, tzinfo=tzfile('/usr/share/zoneinfo/Europe/Berlin')) -- (smartplugin.py:scheduler_add:954) 2024-03-24 20:55:11 CET DEBUG __init__ smlx Plugin 'smlx': run method finished -- (__init__.py:run:150) 2024-03-24 20:55:11 CET DEBUG __init__ plugins.smlx.smlx Polling Smartmeter now -- (__init__.py:poll_device:277) 2024-03-24 20:55:11 CET INFO __init__ plugins.smlx.smlx SML: Connected to serial:///dev/ttySHNG_SMLX-Optokopf -- (__init__.py:connect:221) 2024-03-24 20:55:11 CET DEBUG __init__ plugins.smlx.smlx Connected, try to query -- (__init__.py:poll_device:284) 2024-03-24 20:55:11 CET DEBUG __init__ plugins.smlx.smlx Start read -- (__init__.py:_read:242) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx End read -- (__init__.py:_read:252) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Read 1024 bytes -- (__init__.py:poll_device:294) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Start sequence marker 1b 1b 1b 1b 01 01 01 01 found -- (__init__.py:poll_device:298) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx End sequence marker 1b 1b 1b 1b 1a found -- (__init__.py:poll_device:301) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Packet size is 260 -- (__init__.py:poll_device:302) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx 2 fill byte(s) -- (__init__.py:poll_device:305) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Checksum is 0x3647 -- (__init__.py:poll_device:307) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Buffer length is 274 -- (__init__.py:poll_device:310) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Buffer: 1b 1...gekürzt.. -- (__init__.py:poll_device:311) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Calculated checksum is 0x3647, given CRC is 0x3647 -- (__init__.py:poll_device:315) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Checksum was ok, now parse the data_package -- (__init__.py:poll_device:332) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Data: 76 05 ..gekürzt.. -- (__init__.py:_parse:370) 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Entry {'objName': '1-0:96.50.1*1', 'status': None, 'valTime': None, 'unit': None, 'scaler': None, 'value': b'LGZ', 'signature': None, 'obis': '1-0:96.50.1*1', 'valueReal': 'LGZ', 'unitName': None, 'actualTime': None} -- (__init__.py:poll_device:339) .. gekürzt.. 2024-03-24 20:55:14 CET DEBUG __init__ plugins.smlx.smlx Polling Smartmeter done. Poll cycle took 3.316547393798828 seconds. -- (__init__.py:poll_device:355) 2024-03-24 20:55:15 CET INFO __init__ plugins.smlx.smlx SML: Disconnected! -- (__init__.py:disconnect:236)
Kommentar