Ethercat Setupのロゴ

Ethercat Setup

組織
Seeed-Projects
ethercat-setup

Establish EtherCAT communication between Jetson and EtherCAT slave devices using the EtherLab EtherCAT Master driver. Covers driver installation, configuration, slave scanning, and motor control example (MyActuator X4). Requires JetPack 6.2 (L4T 36.4.3).

概要

公開者Seeed-Projects
リポジトリSeeed-Jetson-DevelopTool
スキル名ethercat-setup
スター
58
フォーク
9
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Seeed-ProjectsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルEthercat SetupをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/ethercat-setup
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool.git /tmp/Seeed-Jetson-DevelopTool
mkdir -p .claude/skills
cp -r /tmp/Seeed-Jetson-DevelopTool/seeed_jetson_develop/skills/openclaw/ethercat-setup .claude/skills/ethercat-setup
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでEthercat Setupを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にEthercat Setupを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ethercat Setupは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

EtherCAT Setup on Jetson with EtherLab Master


Execution model

Run one phase at a time. After each phase:

  • Relay all command output to the user.
  • If output contains [STOP] → stop immediately, consult the failure decision tree below.
  • If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.

Prerequisites

RequirementDetails
HardwarereComputer Robotics J401 (or compatible Jetson) as EtherCAT master
Slave deviceEtherCAT slave (e.g. MyActuator X4) with external power
JetPack6.2 (L4T 36.4.3)
CableEthernet cable + adapter if slave uses 4-pin interface (Tx+, Tx–, Rx+, Rx–)

Most slave devices require additional external power after physical Ethernet connection.


Phase 1 — Hardware connection (~2 min)

Connect the Jetson Ethernet interface directly to the EtherCAT slave device. If the slave uses a 4-pin interface, use an Ethernet-to-4-pin adapter.

Identify the Ethernet interface name:

bash
ifconfig

Note the interface name (e.g. eno1). This will be used in subsequent configuration.

[OK] — proceed to Phase 2.


Phase 2 — Install EtherCAT driver (~5–10 min)

Install build dependencies and compile the EtherLab EtherCAT master:

bash
sudo apt update
sudo apt install build-essential cmake libtool autoconf automake
bash
git clone https://gitlab.com/etherlab.org/ethercat.git
cd ethercat
./bootstrap
./configure --sysconfdir=/etc
make all modules
sudo make modules_install install
sudo depmod -a

Verify the kernel modules are loaded:

bash
sudo lsmod | grep "ec_"

Expected: ec_master and ec_generic modules listed.

[OK] — proceed to Phase 3. [STOP] if modules not found.


Phase 3 — Configure EtherCAT master (~2 min)

Edit the configuration file:

bash
sudo vim /etc/ethercat.conf

Set these parameters (replace eno1 with your interface name):

MASTER0_DEVICE="eno1"
DEVICE_MODULES="generic"

Restart the service and verify:

bash
sudo systemctl restart ethercat
ls /dev/EtherCAT*

Expected: /dev/EtherCAT0 appears.

(Optional) If /dev/EtherCAT is not found, try loading modules manually:

bash
sudo modprobe ec_master devices="eno1"
sudo modprobe ec_generic
sudo systemctl restart ethercat

(Optional) If the interface is occupied by NetworkManager:

bash
sudo nmcli dev set eno1 managed no
sudo nmcli dev set eno1 managed on

[OK] — proceed to Phase 4. [STOP] if /dev/EtherCAT0 does not appear.


Phase 4 — Test communication (~2 min)

Scan for EtherCAT devices and check packet loss:

bash
sudo ethercat rescan
sudo ethercat master

List all slaves on the bus:

bash
sudo ethercat rescan
sudo ethercat slaves -v

View PDOs of slave at index 0:

bash
sudo ethercat rescan
sudo ethercat pdos -p 0

[OK] — slaves detected and communication verified. [STOP] if no slaves found.


Phase 5 — Motor control example (MyActuator X4, optional) (~5 min)

Clone and build the example motor control code:

bash
git clone https://github.com/jjjadand/ethercat-myctor.git
cd ethercat-myctor/src/build
cmake ..
make

Lock CPU frequency and run:

bash
sudo jetson_clocks
sudo ./ethercat_master

Expected: after ~2 seconds, the motor begins to move in a loop.

[OK] — EtherCAT motor control working.

Each EtherCAT motor uses a different communication protocol. Adapt the example for your specific device.


Failure decision tree

SymptomAction
./bootstrap failsEnsure autoconf and automake are installed.
ec_master / ec_generic not in lsmodRe-run sudo depmod -a and sudo modprobe ec_master. Check kernel version compatibility.
/dev/EtherCAT0 not foundVerify MASTER0_DEVICE in /etc/ethercat.conf matches your interface. Try manual modprobe.
Interface occupied by NetworkManagerRun sudo nmcli dev set <iface> managed no then restart ethercat service.
ethercat slaves shows no slavesCheck physical cable connection. Ensure slave has external power. Try different Ethernet port.
High packet loss in ethercat masterCheck cable quality. Use Cat5e or better. Avoid switches between master and slave.
Motor example doesn't compileEnsure EtherCAT master is installed. Check cmake can find EtherCAT headers.

Reference files

  • references/source.body.md — full original Seeed tutorial with hardware diagrams, motor control flowchart, and CiA-402 state machine details (reference only)

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Ethercat Setup」では何ができますか?

Establish EtherCAT communication between Jetson and EtherCAT slave devices using the EtherLab EtherCAT Master driver. Covers driver installation, configuration, slave scanning, and motor control example (MyActuator X4). Requires JetPack 6.2 (L4T 36.4.3).

TypingMindでEthercat Setupを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ethercat Setupはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにEthercat Setupをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/ethercat-setupを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ethercat Setupを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Ethercat Setupは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもEthercat Setupを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ethercat Setup」は無料ですか?

はい。Seeed-ProjectsがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇