Skip to content

Enable SCI sensor access from Lua#32

Open
rockets-cn wants to merge 1 commit intoespressif:masterfrom
rockets-cn:codex/add-dfrobot-sci-lua
Open

Enable SCI sensor access from Lua#32
rockets-cn wants to merge 1 commit intoespressif:masterfrom
rockets-cn:codex/add-dfrobot-sci-lua

Conversation

@rockets-cn
Copy link
Copy Markdown

Summary

  • add a dedicated lua_module_sci component for DFRobot RP2040 SCI reads
  • register the SCI Lua module behind Kconfig and app_claw component wiring
  • add bundled Lua scripts and skill metadata for basic SCI read/probe workflows

Verification

  • idf.py build
  • idf.py -p /dev/cu.usbmodem2201 build flash
  • boot monitor showed Lua runtime ready and QQ gateway ready on K10

Not Tested

  • Live SCI hardware data read; the connected K10 could not be reached directly from the Mac network path and USB console input is not wired for commands.

@rockets-cn
Copy link
Copy Markdown
Author

test in k10 it's worked.

@rockets-cn rockets-cn force-pushed the codex/add-dfrobot-sci-lua branch from f50de86 to d952181 Compare May 8, 2026 04:08
DFRobot's RP2040 SCI module remains exposed through a dedicated Lua module after upstream split hardware peripherals into lua_driver components. The app_claw integration now keeps upstream's driver/module layout and adds only the SCI Kconfig option, component dependency, module registration hooks, and module README required by lua_module_builder.

Constraint: Upstream master moved ADC/GPIO/I2C/MCPWM/TOUCH/UART into lua_driver entries, removed app_claw's manual CMake requires list, and now requires each Lua module to provide README.md for generated docs/skills.

Rejected: Keep the original conflict-side app_claw CMake dependency additions | upstream now resolves component dependencies through idf_component.yml rules.

Confidence: medium

Scope-risk: narrow

Directive: Keep SCI registered as a higher-level lua_module unless it is later split into a generic hardware driver API.

Tested: Rebased onto origin/master fa0d2aa; resolved all conflict markers; git diff --check origin/master...HEAD; rg confirmed no conflict markers; idf.py build in application/edge_agent with ESP-IDF v5.5.4 and CN component registry mirror.

Not-tested: Fresh hardware flash after conflict resolution; earlier pre-rebase build/flash on K10 succeeded.
@rockets-cn rockets-cn force-pushed the codex/add-dfrobot-sci-lua branch from d952181 to e6a0ee3 Compare May 8, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant