Integrates, ports, and debugs FreeModbus RTU, ASCII, TCP with serial/TCP transport, timing, events, and register callbacks. Helps resolve CRC errors, timeouts, and address mapping issues.
Ships in aix-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to integrate FreeModbus by proving the port layer first: serial/TCP transport, timing, event dispatch, and register callbacks. Modbus bugs are often timing, endian, addressing, or task-context problems rather than protocol logic.
Use this skill when:
portserial.c, porttimer.c, portevent.c, register callbacks, CRC errors, timeouts, slave ID, function codes, or Modbus TCP/lwIP integration.Do not use this skill when the UART or network transport is not verified. Use serial or lwIP skills first if the lower layer is unknown.
Ask for:
Prove transport timing. For RTU, verify baud, parity, stop bits, inter-frame gap, and RS-485 direction control.
Implement port files. Serial, timer, and event callbacks must match the target scheduler and ISR rules.
Confirm protocol mode. RTU, ASCII, and TCP have different framing, timing, and porting requirements.
Validate register callbacks. Holding/input/coils/discrete callbacks must map Modbus addresses to internal storage correctly.
Check address and endian assumptions. Modbus register numbering, zero-based offsets, word order, and byte order must be explicit.
Test one function at a time. Start with a simple read holding register before adding writes, coils, or TCP gateway logic.
Before claiming FreeModbus works:
User:
FreeModbus RTU 能收到包但主站一直超时。
Agent:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
freemodbus, modbus, modbus-rtu, modbus-tcp, embedded, serial-communication
/aix-skills:freemodbus-integrationfrom aix-skills
npx claudepluginhub easyzoom/aix-skills --plugin aix-skills76 skills in this plugin
/8051-mcu-debugUse when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers, UART, or startup failures/avem-integrationUse when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers, middleware, or application architecture/battery-charger-fuel-gauge-integrationUse when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start, watchdog host mode, NTC/JEITA faults, and SOC jumpsOther plugins' skills for the same job