hardware:channels:meters:power:wittech_witenergy_e100
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
hardware:channels:meters:power:wittech_witenergy_e100 [2018/03/25 11:07] – alte Version wiederhergestellt (2018/02/15 13:59) jau | hardware:channels:meters:power:wittech_witenergy_e100 [2023/03/28 16:49] (aktuell) – r00t | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ===== Wittech WiTenergy E100 ===== | + | ==== Wittech WiTenergy E100 (Conrad Voltcraft SEM-3600BT) |
{{ : | {{ : | ||
Zeile 21: | Zeile 21: | ||
Development: | Development: | ||
- | Manufacturing: | + | Manufacturing: |
- | ==== reverse engineering: | + | === Auslesen |
- | === PCB pictures === | + | nach weiteren untersuchungen (und mit hilfe von [[https:// |
- | == control board == | + | |
- | {{:hardware:channels:meters:power:wittech_witenergy_e100:control_comp.jpg? | + | eine quick& |
- | {{:hardware:channels:meters:power:wittech_witenergy_e100:control_sold.jpg?200|}} | + | # apt install bluez |
+ | |||
+ | # hcitool lescan | ||
+ | D0:FF:50:7A:73:6C WiT Power Meter | ||
+ | |||
+ | # while sleep 1 ;do | ||
+ | gatttool -b D0: | ||
+ | cut -d: -f2 | | ||
+ | awk '{print " | ||
+ | done | ||
+ | |||
+ | Voltage: 232.125 V | ||
+ | Load: 63.53 W | ||
+ | Frequency: 50.062Hz | ||
- | == power board == | + | ausgereiftere software ist in arbeit. |
- | {{: | + | (es ist nich noetig, das geraet zu pollen, es kann von sich aus reports senden. |
- | {{: | + | ausserdem sind dies jeweils momentanwerte der leistung, sinnvoller waere, den auch vorhandenen leistungszaehler auszulesen.) |
- | === general === | ||
- | einmal aufgeschraubt, | ||
- | chinesischen OEMs: | ||
- | http:// | ||
- | das geraet heisst dann wohl " | ||
- | ist auf der produktliste nicht enthalten. | ||
- | (lustigerweise scheint das "EM200 WiTmeter" | ||
- | zu sein, gleiches gehaeuse zumindest.) | ||
- | auch gleich ein uebler produktionsmangel... die pufferbatterie ist so | + | === Pages === |
- | schlecht verloetet, dass sie von der platine faellt. | + | {{indexmenu> |
- | + | ||
- | === metering IC === | + | |
- | {{:hardware:channels:meters: | + | |
- | darin wohl wieder ein metering-IC, | + | |
- | SOIC-gehaeuse, | + | |
- | aber mit einem 4.096MHz quarz daneben, was zumindest einen | + | |
- | recht intelligenten chip nahelegt. | + | |
- | + | ||
- | === bluetooth | + | |
- | {{: | + | |
- | there' | + | |
- | (which is an obvious choice, as those tend to be more powerful than an average microcontroller anyway.) | + | |
- | + | ||
- | seems to be a TI device, related to the TI " | + | |
- | http:// | + | |
- | http:// | + | |
- | + | ||
- | === eeprom === | + | |
- | {{: | + | |
- | labeled " | + | |
- | + | ||
- | === power supply === | + | |
- | {{: | + | |
- | switching power supply without isolation? | + | |
- | + | ||
- | LNK304: http:// | + | |
- | + | ||
- | ==== reverse engineering: | + | |
- | + | ||
- | das geraet benutzt die low-energy variante die bei BT 4.0 spezifiziert | + | |
- | ist, und nicht zu aelteren bluetooth-interfaces kompatibel ist: | + | |
- | http:// | + | |
- | + | ||
- | (es erscheint etwas witzlos, bei einem geraet das per definition | + | |
- | am aus dem stromnetz versorgt wird, das low-energy profile zu | + | |
- | | + | |
- | die verlustleistung des netzteils ist damit sicher deutlich hoeher, | + | |
- | als der verbrauch des geraetes...) | + | |
- | + | ||
- | < | + | |
- | # hcitool lescan | + | |
- | LE Scan ... | + | |
- | D0: | + | |
- | D0: | + | |
- | </ | + | |
- | < | + | |
- | # gatttool -b D0: | + | |
- | attr handle = 0x0001, end grp handle = 0x000b uuid: 00001800-0000-1000-8000-00805f9b34fb | + | |
- | attr handle = 0x000c, end grp handle = 0x000f uuid: 00001801-0000-1000-8000-00805f9b34fb | + | |
- | attr handle = 0x0010, end grp handle = 0x0019 uuid: 0000fee0-494c-4f47-4943-544543480000 | + | |
- | attr handle = 0x001a, end grp handle = 0xffff uuid: 0000180a-0000-1000-8000-00805f9b34fb | + | |
- | </ | + | |
- | < | + | |
- | # gatttool -b D0: | + | |
- | handle = 0x0002, char properties = 0x02, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0006, char properties = 0x0a, char value handle = 0x0007, uuid = 00002a02-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0008, char properties = 0x08, char value handle = 0x0009, uuid = 00002a03-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x000a, char properties = 0x02, char value handle = 0x000b, uuid = 00002a04-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x000d, char properties = 0x20, char value handle = 0x000e, uuid = 00002a05-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0011, char properties = 0x12, char value handle = 0x0012, uuid = 0000fee1-494c-4f47-4943-544543480000 | + | |
- | handle = 0x0014, char properties = 0x1a, char value handle = 0x0015, uuid = 0000fee2-494c-4f47-4943-544543480000 | + | |
- | handle = 0x0017, char properties = 0x1a, char value handle = 0x0018, uuid = 0000fee3-494c-4f47-4943-544543480000 | + | |
- | handle = 0x001b, char properties = 0x02, char value handle = 0x001c, uuid = 00002a23-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x001d, char properties = 0x02, char value handle = 0x001e, uuid = 00002a24-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x001f, char properties = 0x02, char value handle = 0x0020, uuid = 00002a25-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0021, char properties = 0x02, char value handle = 0x0022, uuid = 00002a26-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0023, char properties = 0x02, char value handle = 0x0024, uuid = 00002a27-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0025, char properties = 0x02, char value handle = 0x0026, uuid = 00002a28-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0027, char properties = 0x02, char value handle = 0x0028, uuid = 00002a29-0000-1000-8000-00805f9b34fb | + | |
- | </ | + | |
- | < | + | |
- | # gatttool -b D0: | + | |
- | handle = 0x0001, uuid = 00002800-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0002, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0004, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0006, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0007, uuid = 00002a02-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0008, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0009, uuid = 00002a03-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x000a, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x000b, uuid = 00002a04-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x000c, uuid = 00002800-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x000d, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x000e, uuid = 00002a05-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x000f, uuid = 00002902-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0010, uuid = 00002800-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0011, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0012, uuid = 0000fee1-494c-4f47-4943-544543480000 | + | |
- | handle = 0x0013, uuid = 00002902-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0014, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0015, uuid = 0000fee2-494c-4f47-4943-544543480000 | + | |
- | handle = 0x0016, uuid = 00002902-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0017, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0018, uuid = 0000fee3-494c-4f47-4943-544543480000 | + | |
- | handle = 0x0019, uuid = 00002902-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x001a, uuid = 00002800-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x001b, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x001c, uuid = 00002a23-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x001d, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x001e, uuid = 00002a24-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x001f, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0020, uuid = 00002a25-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0021, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0022, uuid = 00002a26-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0023, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0024, uuid = 00002a27-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0025, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0026, uuid = 00002a28-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0027, uuid = 00002803-0000-1000-8000-00805f9b34fb | + | |
- | handle = 0x0028, uuid = 00002a29-0000-1000-8000-00805f9b34fb | + | |
- | </ | + | |
- | < | + | |
- | # for x in $(seq 1 40) ;do gatttool -b D0: | + | |
- | 01: 00 18 | + | |
- | 02: 02 03 00 00 2a | + | |
- | 03: 57 69 54 20 50 6f 77 65 72 20 4d 65 74 65 72 "WiT Power Meter" | + | |
- | 04: 02 05 00 01 2a | + | |
- | 05: 00 00 | + | |
- | 06: 0a 07 00 02 2a | + | |
- | 07: 00 | + | |
- | 08: 08 09 00 03 2a | + | |
- | 09: Characteristic value/ | + | |
- | 0A: 02 0b 00 04 2a | + | |
- | 0B: 50 00 a0 00 00 00 e8 03 | + | |
- | 0C: 01 18 | + | |
- | 0D: 20 0e 00 05 2a | + | |
- | 0E: Characteristic value/ | + | |
- | 0F: 00 00 | + | |
- | 10: 00 00 48 43 45 54 43 49 47 4f 4c 49 e0 fe 00 00 | + | |
- | 11: 12 12 00 00 00 48 43 45 54 43 49 47 4f 4c 49 e1 fe 00 00 | + | |
- | 12: 00 | + | |
- | 13: 00 00 | + | |
- | 14: 1a 15 00 00 00 48 43 45 54 43 49 47 4f 4c 49 e2 fe 00 00 | + | |
- | 15: 23 03 42 00 00 00 00 00 00 10 00 00 05 00 87 00 00 00 00 | + | |
- | 16: 00 00 | + | |
- | 17: 1a 18 00 00 00 48 43 45 54 43 49 47 4f 4c 49 e3 fe 00 00 | + | |
- | 18: 00 | + | |
- | 19: 00 00 | + | |
- | 1A: 0a 18 | + | |
- | 1B: 02 1c 00 23 2a | + | |
- | 1C: 6c 73 7a 00 00 50 ff d0 | + | |
- | 1D: 02 1e 00 24 2a | + | |
- | 1E: 57 49 54 20 45 31 30 30 00 | + | |
- | 1F: 02 20 00 25 2a | + | |
- | 20: 53 4e 3a 20 30 30 30 30 30 30 00 "SN: 000000" | + | |
- | 21: 02 22 00 26 2a | + | |
- | 22: 46 2f 57 3a 20 56 30 31 2e 33 32 00 "F/W: V01.32" | + | |
- | 23: 02 24 00 27 2a | + | |
- | 24: 48 2f 57 3a 20 56 30 30 2e 30 30 00 "H/W: V00.00" | + | |
- | 25: 02 26 00 28 2a | + | |
- | 26: 53 2f 57 3a 20 56 30 30 2e 31 31 00 "S/W: V00.11" | + | |
- | 27: 02 28 00 29 2a | + | |
- | 28: 57 69 74 74 65 63 68 20 43 6f 6d 70 61 6e 79 20 4c 74 64 2e 00 " | + | |
- | </ | + | |
- | < | + | |
- | 48 43 45 54 43 49 47 4f 4c 49 " | + | |
- | </ | + | |
- | + | ||
- | ==== reverse engineering: | + | |
- | + | ||
- | original manufacturer' | + | |
- | https:// | + | |
- | \\ | + | |
- | conrad' | + | |
- | https:// | + | |
- | + | ||
- | < | + | |
- | [~/ | + | |
- | 1069410 cei.android.ble.smartenergymeter.apk | + | |
- | 1107808 wit.android.ble.smartenergymeter.apk | + | |
- | </ | + | |
- | + | ||
- | the whole thing seems to be based on TI's " | + | |
- | < | + | |
- | [~/ | + | |
- | Length | + | |
- | --------- | + | |
- | | + | |
- | | + | |
- | [...] | + | |
- | </ | + | |
- | < | + | |
- | [~/ | + | |
- | assets/ | + | |
- | assets/ | + | |
- | assets/ | + | |
- | assets/ | + | |
- | assets/ | + | |
- | </ | + |
hardware/channels/meters/power/wittech_witenergy_e100.1521968863.txt.gz · Zuletzt geändert: 2018/03/25 11:07 von jau