Skip to content

Commit 69f5d42

Browse files
committed
a bit better readme
1 parent d160014 commit 69f5d42

20 files changed

+88
-65
lines changed

config/README.md

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,2 @@
1-
# Ethercat ESI configuration files
1+
## EtherCAT configuration files
22

3-
This directory contains the Ethercat Slave Information (ESI) files for the Ethercat slaves used in the project. The ESI files are used by the Ethercat master to configure the slaves. The ESI files are generated by the slave manufacturers and are specific to each slave.
4-
5-
The ESI files are stored in the `esi/` directory.
6-
7-
8-
## Python ESI generator
9-
The directory contains a simple python esi file generator for orbita2d and orbita3d networks. It allows to create the files from the yaml files.
10-
You can use it by running the following command:
11-
```bash
12-
cd esi_generator
13-
python3 esi_from_yaml.py ../orbita2d.yaml # path to the yaml file
14-
```
15-
It generates the ESI files and saves it to the esi path given in the yaml file `ethercat>esi`.
16-
17-
You can also use the generator directly without the yaml file:
18-
19-
```python
20-
from ethercat_esi_generator import *
21-
22-
# Generate XML for the master with two slaves
23-
# 0: orbita 3d
24-
# 1: orbita 2d
25-
tree_3d = generate_xml([3,2])
26-
write_xml(tree_3d, "orbitas.xml")
27-
28-
print("XML files generated successfully.")
29-
```
30-
31-
32-
## Orbita Poulpe configuration - Flushing the EEPROM
33-
34-
The Orbita Poulpe slaves have an EEPROM that stores the configuration. If the EEPROM is not properly configured, the slaves will not work. To flush the EEPROM first we need to convert the ESI file to a binary file. This can be done using the `siitool` tool.
35-
36-
for orbita2d
37-
```bash
38-
siitool orbita2d.xml -m -o orbita2d.bin
39-
```
40-
or for 3d
41-
```bash
42-
siitool orbita3d.xml -m -o orbita3d.bin
43-
```
44-
> You can install the `siitool` by following the instructions in the [siitool repository](https://github.com/synapticon/siitool)
45-
46-
47-
Once you have the binary file, you can use the `ethercat` tool to flash the EEPROM.
48-
49-
```bash
50-
ethercat sii_write -p0 orbita2d.bin # may need sudo
51-
```
52-
Make sure to put the proper slave index `p0` is for slate 0, `p1` for slave 1, etc.
53-
Also make sure to use the proper binary file, `orbita2d.bin` for orbita2d and `orbita3d.bin` for orbita3d.

config/esi/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Ethercat ESI configuration files
2+
3+
This directory contains the Ethercat Slave Information (ESI) files for the Ethercat slaves used in the project. The ESI files are used by the Ethercat master to configure the slaves. The ESI files are generated by the slave manufacturers and are specific to each slave.
4+
5+
This directory contains:
6+
- XML ESI files for generic orbita2d/orbita3d (`orbitaXd.xml`)
7+
- compiled ESI files for generic orbita2d/orbita3d (`orbitaXd.bin`)
8+
- `reachy2` robot directory
9+
- XML/bin ESI files for all joints
10+
- XML/bin ESI file generation scripts
11+
12+
13+
## Orbita Poulpe configuration - Flushing the EEPROM
14+
15+
The Orbita poulpe stores tpe slaves have an EEPROM thathe configuration. If the EEPROM is not properly configured, the slaves will not work. To flush the EEPROM first we need to convert the ESI file to a binary file. This can be done using the `siitool` tool.
16+
17+
If the board is not configured, once connected to the ethercat network, you it will not display its proper name when you run `ethercat slave`
18+
19+
```sh
20+
$ ethercat slave
21+
0 0:0 OP + 00000000:00000000
22+
```
23+
24+
If you have the binary file, you can use the `ethercat` tool to flash the EEPROM.
25+
26+
```bash
27+
ethercat sii_write -p0 orbita2d.bin # may need sudo
28+
```
29+
30+
**Make sure to restart the boarda after this (diconnect the power)**
31+
32+
Make sure to put the proper slave index `p0` is for slate 0, `p1` for slave 1, etc.
33+
Also make sure to use the proper binary file, `orbita2d.bin` for orbita2d and `orbita3d.bin` for orbita3d.
34+
35+
36+
Then you should have the proper name of the device.
37+
```sh
38+
$ ethercat slave
39+
0 0:0 OP + Orbita2d
40+
```

0 commit comments

Comments
 (0)