-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does it output few values ? #1
Comments
I think here comes some issues together. For now it would be the easiest for you to skip the collection feature. Then it should be output every value as soon as gathered from the device. |
@birdie1 |
I have the same issue root@pi-zerow:~/git/stable/victron# python3 victron.py --debug -d 0 |
Hey @birdie1
your project is interesting and I'm using it with my Orion Smart and Smart solar devices via Bluetooth.
I'm sorry in advance if the questions may sound dumb but I'm new to working with bluetooth.
I used your same collection for the smart solar:
collections:
smartsolar:
device:
- Day sequence Number (0..364)
- Product ID
- Serial
- Firmware
- Production Date
latest:
- Voltage
- Current
- Voltage Panel
- SmartSolar Solar Voltage # added
- Power
- Status
- MPPT Tracker Operation Mode
- Off Reason
- Virtual Load Output
- Error Code
history:
- Energy All Time
- Energy Today
- Energy Today Max
- Energy Yesterday
- Energy Yesterday Max
But I only get this (when I run
python victron.py -d 1
)This is my log (when I run
python victron.py -d 1 -c --debug
):(.venv) rudloff@capsule:~/sources/CapsuleScripts/devices_driver/victron$ python victron.py -d 1 -c --debug
[INFO ] (2021-09-17 21:53:48,769) victron_bluetooth.py::213 SmartSolar: Connecting...
[INFO ] (2021-09-17 21:53:49,447) victron_gatt.py::50 SmartSolar: Connected!
[DEBUG ] (2021-09-17 21:53:49,608) victron_gatt.py::69 SmartSolar: [EF:7A:84:4F:EB:A1] Resolved services
[DEBUG ] (2021-09-17 21:53:49,611) victron_gatt.py::75 [EF:7A:84:4F:EB:A1] Service [306b0001-b081-4037-83dc-e59fcc3cdfd0] (vendor, smartsolar & BMV712 )
[DEBUG ] (2021-09-17 21:53:49,614) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [306b0004-b081-4037-83dc-e59fcc3cdfd0]
[DEBUG ] (2021-09-17 21:53:49,617) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [306b0003-b081-4037-83dc-e59fcc3cdfd0]
[DEBUG ] (2021-09-17 21:53:49,620) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [306b0002-b081-4037-83dc-e59fcc3cdfd0]
[DEBUG ] (2021-09-17 21:53:49,623) victron_gatt.py::75 [EF:7A:84:4F:EB:A1] Service [97580001-ddf1-48be-b73e-182664615d8e] (vendor, VE.Direct Smart)
[DEBUG ] (2021-09-17 21:53:49,626) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [97580006-ddf1-48be-b73e-182664615d8e]
[DEBUG ] (2021-09-17 21:53:49,628) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [97580004-ddf1-48be-b73e-182664615d8e]
[DEBUG ] (2021-09-17 21:53:49,631) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [97580003-ddf1-48be-b73e-182664615d8e]
[DEBUG ] (2021-09-17 21:53:49,633) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [97580002-ddf1-48be-b73e-182664615d8e]
[DEBUG ] (2021-09-17 21:53:49,636) victron_gatt.py::75 [EF:7A:84:4F:EB:A1] Service [68c10001-b17f-4d3a-a290-34ad6499937c] (vendor, VE.Direct Smart)
[DEBUG ] (2021-09-17 21:53:49,639) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [68c10003-b17f-4d3a-a290-34ad6499937c]
[DEBUG ] (2021-09-17 21:53:49,643) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [68c10002-b17f-4d3a-a290-34ad6499937c]
[DEBUG ] (2021-09-17 21:53:49,645) victron_gatt.py::75 [EF:7A:84:4F:EB:A1] Service [00001801-0000-1000-8000-00805f9b34fb] (generic attributes)
[DEBUG ] (2021-09-17 21:53:49,647) victron_gatt.py::77 [EF:7A:84:4F:EB:A1] Characteristic [00002a05-0000-1000-8000-00805f9b34fb]
[DEBUG ] (2021-09-17 21:53:49,649) victron_gatt.py::81 SmartSolar: Subscribe to notifications
[DEBUG ] (2021-09-17 21:53:49,650) victron_gatt.py::124 SmartSolar:subscribe notifications
[DEBUG ] (2021-09-17 21:53:49,651) victron_gatt.py::130 SmartSolar: notifications for 000c: 00002a05-0000-1000-8000-00805f9b34fb
[DEBUG ] (2021-09-17 21:53:49,652) victron_gatt.py::130 SmartSolar: notifications for 0010: 68c10002-b17f-4d3a-a290-34ad6499937c
[DEBUG ] (2021-09-17 21:53:49,653) victron_gatt.py::130 SmartSolar: notifications for 0013: 68c10003-b17f-4d3a-a290-34ad6499937c
[DEBUG ] (2021-09-17 21:53:49,654) victron_gatt.py::130 SmartSolar: notifications for 0016: 97580002-ddf1-48be-b73e-182664615d8e
[DEBUG ] (2021-09-17 21:53:49,656) victron_gatt.py::130 SmartSolar: notifications for 0018: 97580003-ddf1-48be-b73e-182664615d8e
[DEBUG ] (2021-09-17 21:53:49,656) victron_gatt.py::130 SmartSolar: notifications for 001b: 97580004-ddf1-48be-b73e-182664615d8e
[DEBUG ] (2021-09-17 21:53:49,657) victron_gatt.py::130 SmartSolar: notifications for 001d: 97580006-ddf1-48be-b73e-182664615d8e
[DEBUG ] (2021-09-17 21:53:49,658) victron_gatt.py::130 SmartSolar: notifications for 0021: 306b0002-b081-4037-83dc-e59fcc3cdfd0
[DEBUG ] (2021-09-17 21:53:49,659) victron_gatt.py::130 SmartSolar: notifications for 0024: 306b0003-b081-4037-83dc-e59fcc3cdfd0
[DEBUG ] (2021-09-17 21:53:49,660) victron_gatt.py::130 SmartSolar: notifications for 0027: 306b0004-b081-4037-83dc-e59fcc3cdfd0
[DEBUG ] (2021-09-17 21:53:49,661) victron_gatt.py::135 SmartSolar: enable notifications done
[DEBUG ] (2021-09-17 21:53:51,665) victron_gatt.py::84 SmartSolar: Send init sequence
[DEBUG ] (2021-09-17 21:53:51,665) victron_gatt.py::160 SmartSolar: sending 0021, databytearray(b'\xfa\x80\xff')
[DEBUG ] (2021-09-17 21:53:52,673) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:53:52,676) victron_gatt.py::160 SmartSolar: sending 0021, databytearray(b'\xf9\x80')
[DEBUG ] (2021-09-17 21:53:53,682) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:53:53,685) victron_gatt.py::160 SmartSolar: sending 0024, databytearray(b'\x01')
[DEBUG ] (2021-09-17 21:53:54,702) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:53:54,714) victron_gatt.py::160 SmartSolar: sending 0024, databytearray(b'\x03\x00')
[DEBUG ] (2021-09-17 21:53:55,725) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\x02\x9f\x00\x00\x01\x00\x03\x01\xff' - value_origin:b'\x02\x9f\x00\x00\x01\x00\x03\x01\xff'
[DEBUG ] (2021-09-17 21:53:55,726) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\xf9\x01\xf9\x01' - value_origin:b'\xf9\x01\xf9\x01'
[DEBUG ] (2021-09-17 21:53:55,726) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:53:55,726) victron_gatt.py::160 SmartSolar: sending 0024, databytearray(b"\x06\x00\x82\x18\x93B\x10'\x03\x01\x03\x03")
[DEBUG ] (2021-09-17 21:53:56,728) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\xf9\x01' - value_origin:b'\xf9\x01'
[DEBUG ] (2021-09-17 21:53:56,728) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\x07\x00\x03\x00' - value_origin:b'\x07\x00\x03\x00'
[DEBUG ] (2021-09-17 21:53:56,731) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:53:56,741) victron_gatt.py::160 SmartSolar: sending 0027, databytearray(b'\x05\x00\x81\x19\xec\x0f\x05\x00\x81\x19\xec\x0e\x05\x00\x81\x19\x01\x0c\x05\x00')
[DEBUG ] (2021-09-17 21:53:57,755) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\xf9\x01' - value_origin:b'\xf9\x01'
[DEBUG ] (2021-09-17 21:53:57,755) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b"\x08\x00\x18\x93B\x10'" - value_origin:b"\x08\x00\x18\x93B\x10'"
[DEBUG ] (2021-09-17 21:53:57,755) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\x07\x00\x03\x00\x07\x00\x03\x00' - value_origin:b'\x07\x00\x03\x00\x07\x00\x03\x00'
[DEBUG ] (2021-09-17 21:53:57,756) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:53:57,756) victron_gatt.py::160 SmartSolar: sending 0024, databytearray(b'\x81\x18\x90\x05\x00\x81\x19\xec?\x05\x00\x81\x19\xec\x12')
[DEBUG ] (2021-09-17 21:53:58,757) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:53:58,757) victron_gatt.py::160 SmartSolar: sending 0024, databytearray(b'\x19\xec\xdc\x05\x03\x81\x19\xec\xeb\x05\x03\x81\x19\xec\xed')
[DEBUG ] (2021-09-17 21:53:59,759) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\xf9\x01' - value_origin:b'\xf9\x01'
[DEBUG ] (2021-09-17 21:53:59,759) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\t\x00\x19\xec\x0f\x01': 'unknown command (in fixed len) 0x0'
[DEBUG ] (2021-09-17 21:53:59,760) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\t\x00\x19\xec\x0e\x01': 'unknown command (in fixed len) 0x0'
[DEBUG ] (2021-09-17 21:53:59,760) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\t\x00\x19\x01\x0c\x01': 'unknown command (in fixed len) 0x0'
[DEBUG ] (2021-09-17 21:53:59,760) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\t\x00\x18\x90\x01' - value_origin:b'\t\x00\x18\x90\x01'
[DEBUG ] (2021-09-17 21:53:59,760) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\x08\x00\x19\xec?A\x01': 'unknown command (in var len) 0x3f in dict_keys([140, 141, 142, 125, 143, 188, 189, 187, 239, 240, 246])'
[DEBUG ] (2021-09-17 21:53:59,761) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\x08\x00\x19\xec\x12B\xff\xff': 'unknown command (in var len) 0x12 in dict_keys([140, 141, 142, 125, 143, 188, 189, 187, 239, 240, 246])'
[DEBUG ] (2021-09-17 21:53:59,761) victron_bluetooth.py::353 SmartSolar: Collected SmartSolar Solar Voltage -> 0.03
[DEBUG ] (2021-09-17 21:53:59,761) victron.py::82 SmartSolar: SmartSolar Solar Voltage not in any collections, it will never be published
[DEBUG ] (2021-09-17 21:53:59,761) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:53:59,761) victron_gatt.py::160 SmartSolar: sending 0021, databytearray(b'\xf9A')
[DEBUG ] (2021-09-17 21:54:00,763) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\xf9\x01' - value_origin:b'\xf9\x01'
[DEBUG ] (2021-09-17 21:54:00,763) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\xf7\x03\x00' - value_origin:b'\xf7\x03\x00'
[DEBUG ] (2021-09-17 21:54:00,764) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\t\x03\x19\xec\xeb\x01': 'unknown command (in fixed len) 0x0'
[DEBUG ] (2021-09-17 21:54:00,764) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\t\x03\x19\xec\xed\x01': 'unknown command (in fixed len) 0x0'
[DEBUG ] (2021-09-17 21:54:00,764) victron_bluetooth.py::353 SmartSolar: Collected SmartSolar Solar Voltage -> 0.01
[DEBUG ] (2021-09-17 21:54:00,764) victron.py::82 SmartSolar: SmartSolar Solar Voltage not in any collections, it will never be published
[DEBUG ] (2021-09-17 21:54:00,765) victron_bluetooth.py::353 SmartSolar: Collected Identify -> normal operation (default)
[DEBUG ] (2021-09-17 21:54:00,765) victron.py::82 SmartSolar: Identify not in any collections, it will never be published
[DEBUG ] (2021-09-17 21:54:00,765) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:54:00,765) victron_gatt.py::160 SmartSolar: sending 0024, databytearray(b"\x06\x00\x82\x18\x93B\x10'")
[DEBUG ] (2021-09-17 21:54:01,769) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\x08\x03\x19\x02\x00A\x01': 35193608
[DEBUG ] (2021-09-17 21:54:01,770) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\x08\x03\x19\x02\x02D\x02\x00\x00\x00': 35193608
[DEBUG ] (2021-09-17 21:54:01,770) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:54:01,770) victron_gatt.py::160 SmartSolar: sending 0021, databytearray(b'\xf9A')
[DEBUG ] (2021-09-17 21:54:02,773) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\xf9\x01' - value_origin:b'\xf9\x01'
[DEBUG ] (2021-09-17 21:54:02,773) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b"\x08\x00\x18\x93B\x10'" - value_origin:b"\x08\x00\x18\x93B\x10'"
[DEBUG ] (2021-09-17 21:54:02,774) victron_gatt.py::96 SmartSolar: write succeeded
[DEBUG ] (2021-09-17 21:54:03,479) victron_bluetooth.py::244 UNRECOGNIZED DATA: SmartSolar: unknown single packet: value:b'\x08\x03\x18\x90A\x01' - value_origin:b'\x08\x03\x18\x90A\x01'
[DEBUG ] (2021-09-17 21:54:03,494) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\x08\x03\x19\x01PD\x01\x00\x00\x00': index out of range
[DEBUG ] (2021-09-17 21:54:05,804) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\x08\x03\x19\x02\x00A\x01': 35193608
[DEBUG ] (2021-09-17 21:54:05,819) victron_gatt.py::117 UNRECOGNIZED DATA: SmartSolar: error handling: b'\x08\x03\x19\x02\x02D\x02\x00\x00\x00': 35193608
[INFO ] (2021-09-17 21:54:10,789) victron_gatt.py::63 SmartSolar: Disconnected!
The text was updated successfully, but these errors were encountered: