mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
CAN nodes: rx_queue_len 32 and canbus logs at INFO (SDO block overflowed the 5-frame queue); atoms3: OTA over CANopen from esphome#23831
This commit is contained in:
1 parent
a909041263
commit
a3f3d90b2b
4 files changed
+36
No files matched your search
@@ -79,6 +79,10 @@ external_components:
|
||||
- source: github://randybb/esphome-components
|
||||
components: [m5stack_keyboard]
|
||||
refresh: 1h
|
||||
# TEMP: esphome#23831 (OTA over CANopen, CiA 302-3); drop once merged
|
||||
- source: github://pr#23831
|
||||
components: [canopen]
|
||||
refresh: 1h
|
||||
|
||||
packages:
|
||||
common: !include common/common.yaml
|
||||
@@ -88,6 +92,11 @@ packages:
|
||||
vars:
|
||||
light_id: status_frame
|
||||
|
||||
logger:
|
||||
logs:
|
||||
# canbus logs every frame at DEBUG, which slows the loop during SDO block transfers
|
||||
canbus: INFO
|
||||
|
||||
i2c:
|
||||
- id: i2c_grove
|
||||
sda: 2
|
||||
@@ -105,6 +114,8 @@ canbus:
|
||||
tx_pin: 5
|
||||
can_id: 3
|
||||
bit_rate: 500kbps
|
||||
# IDF default is 5 frames; an SDO block (16 segments in ~8 ms) overflowed it (EMCY 0x8110, partial block acks)
|
||||
rx_queue_len: 32
|
||||
|
||||
canopen:
|
||||
- id: can_open
|
||||
@@ -150,6 +161,10 @@ script:
|
||||
uint8_t d[5] = {0, 0, 0, 0, (uint8_t) (millis() / 100)};
|
||||
id(pkp).send_frame(0x195, d, sizeof(d));
|
||||
|
||||
ota:
|
||||
- platform: canopen
|
||||
canopen_id: can_open
|
||||
|
||||
# CardKB sends only the press (Shift/Sym/Fn resolved in the CardKB): a consumer reacts to a change of key_count
|
||||
# and reads the key from key_code (both in the same frame), or watches key_event alone (count % 255 << 8 | key)
|
||||
canopen_entities:
|
||||
|
||||
Reference in new issue
Block a user