Skip to content

Commit

Permalink
Fix device info frame
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Feb 2, 2025
1 parent adf8521 commit 92f0b70
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.
20 changes: 0 additions & 20 deletions docs/neey-ek-24s4eb/pdus-device-info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,3 @@
0x00
0x17
0xff
0xaa
0x55
0x11
0x01
0x04
0x00
0x14
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x29
0xff
2 changes: 1 addition & 1 deletion docs/neey-ek-24s4eb/pdus.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
55:aa:11:01:01:00:64:00:45:4b:2d:32:34:53:34:45:42:00:00:00:00:00:00:00:48:57:2d:33:2e:32:2e:30:5a:48:2d:32:2e:30:2e:38:56:31:2e:32:2e:37:33:00:32:30:32:34:30:39:32:30:03:00:00:00:64:5d:40:00:33:43:41:35:35:31:39:43:31:31:30:43:31:32:33:34:35:36:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:17:ff:aa:55:11:01:04:00:14:00:00:00:00:00:00:00:00:00:00:00:29:ff
55:aa:11:01:01:00:64:00:45:4b:2d:32:34:53:34:45:42:00:00:00:00:00:00:00:48:57:2d:33:2e:32:2e:30:5a:48:2d:32:2e:30:2e:38:56:31:2e:32:2e:37:33:00:32:30:32:34:30:39:32:30:03:00:00:00:64:5d:40:00:33:43:41:35:35:31:39:43:31:31:30:43:31:32:33:34:35:36:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:17:ff

55:aa:11:01:04:00:64:00:10:0a:d7:a3:3b:00:00:80:40:9a:99:59:40:01:01:02:27:01:00:00:9a:99:69:40:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:dc:ff
55:aa:11:01:04:00:64:00:10:0a:d7:a3:3b:00:00:80:40:9a:99:59:40:01:01:02:27:01:00:00:9a:99:69:40:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:dc:ff
Expand Down
26 changes: 21 additions & 5 deletions tests/esp32-heltec-balancer-ble-example-faker-ek-24s4eb.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
<<: !include ../esp32-heltec-balancer-ble-example-debug.yaml
<<: !include ../esp32-heltec-balancer-ble-example.yaml

logger:
level: VERY_VERBOSE
logs:
esp32_ble_tracker: INFO
heltec_balancer_ble: VERY_VERBOSE
scheduler: DEBUG
component: INFO
sensor: DEBUG
mqtt: INFO
mqtt.idf: INFO
mqtt.component: INFO
mqtt.sensor: INFO
mqtt.switch: INFO
api.service: INFO
api: INFO
esp32_ble: INFO
esp32_ble_client: INFO

interval:
- interval: 20s
then:
- lambda: |-
const uint8_t device_info_frame[120] = {
const uint8_t device_info_frame[100] = {
0x55, 0xaa, 0x11, 0x01, 0x01, 0x00, 0x64, 0x00, 0x45, 0x4b, 0x2d, 0x32, 0x34, 0x53, 0x34, 0x45, 0x42,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x57, 0x2d, 0x33, 0x2e, 0x32, 0x2e, 0x30, 0x5a, 0x48,
0x2d, 0x32, 0x2e, 0x30, 0x2e, 0x38, 0x56, 0x31, 0x2e, 0x32, 0x2e, 0x37, 0x33, 0x00, 0x32, 0x30, 0x32,
0x34, 0x30, 0x39, 0x32, 0x30, 0x03, 0x00, 0x00, 0x00, 0x64, 0x5d, 0x40, 0x00, 0x33, 0x43, 0x41, 0x35,
0x35, 0x31, 0x39, 0x43, 0x31, 0x31, 0x30, 0x43, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0xff, 0xaa, 0x55,
0x11, 0x01, 0x04, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29,
0xff
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0xff
};
id(balancer0).assemble(device_info_frame, sizeof(device_info_frame));
Expand Down

0 comments on commit 92f0b70

Please sign in to comment.