AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Freemodbus Integration

skill-easyzoom-aix-skills-freemodbus-integration · by easyzoom

Use when integrating, porting, configuring, or debugging FreeModbus RTU, ASCII, TCP, serial ports, timers, events, register callbacks, or Modbus protocol issues

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-easyzoom-aix-skills-freemodbus-integration

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-easyzoom-aix-skills-freemodbus-integration)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Freemodbus Integration? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

FreeModbus Integration

Overview

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.

When To Use

Use this skill when:

  • The user wants to add or debug FreeModbus RTU, ASCII, or TCP.
  • The issue involves portserial.c, porttimer.c, portevent.c, register callbacks, CRC errors, timeouts, slave ID, function codes, or Modbus TCP/lwIP integration.
  • A device does not respond, responds with exception codes, or has wrong register values.

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.

First Questions

Ask for:

  • Mode: RTU, ASCII, TCP, master, slave, or gateway.
  • MCU/RTOS/compiler and FreeModbus fork/version.
  • Transport: UART/RS-485, TCP/lwIP, or custom.
  • Baud, parity, stop bits, DE/RE control, slave ID, and timeout settings.
  • Register map and callback code.
  • Logic analyzer, serial capture, Modbus poll output, or exception codes.

Integration Checklist

  1. Prove transport timing.

For RTU, verify baud, parity, stop bits, inter-frame gap, and RS-485 direction control.

  1. Implement port files.

Serial, timer, and event callbacks must match the target scheduler and ISR rules.

  1. Confirm protocol mode.

RTU, ASCII, and TCP have different framing, timing, and porting requirements.

  1. Validate register callbacks.

Holding/input/coils/discrete callbacks must map Modbus addresses to internal storage correctly.

  1. Check address and endian assumptions.

Modbus register numbering, zero-based offsets, word order, and byte order must be explicit.

  1. Test one function at a time.

Start with a simple read holding register before adding writes, coils, or TCP gateway logic.

Common Failures

  • RS-485 transmit enable timing cuts off the last byte.
  • Timer tick is wrong, breaking RTU frame gap detection.
  • Register addresses are off by one.
  • Callback returns the wrong exception code or byte count.
  • Modbus TCP works but RTU fails due to serial timing.
  • Event handling blocks inside ISR or wrong task context.

Verification

Before claiming FreeModbus works:

  • State mode, role, slave ID, baud/network settings, and register map.
  • Confirm one read and one write if writes are in scope.
  • Confirm CRC or TCP framing is valid using capture/tool evidence.
  • Confirm timeout and exception behavior.
  • State RS-485 direction control and timer source when RTU is used.

Example

User:

FreeModbus RTU 能收到包但主站一直超时。

Agent:

  1. Asks for UART settings, RS-485 DE/RE control, timer port, slave ID, and bus capture.
  2. Checks frame gap timer and direction timing before register callbacks.
  3. Verifies a single read holding register with known data.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.