Skip to content

Commit 43d0131

Browse files
committed
Add note about IP address and add new datatypes
1 parent d5cb14a commit 43d0131

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

index.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ async def main():
291291
# ...
292292
```
293293

294-
## Starting the application
294+
## Starting The Application
295295

296-
Finally it is time to start the application. If you are using Linux, make sure to join the multicast group for your network interface used for the service discovery. In our example we use 224.224.224.245 and the loopback interface. Make sure to adjust the command for your project. Otherwise it will not be possible for clients to subscribe to your SOME/IP service.
296+
If you are using Linux, make sure to join the multicast group for your network interface used for the service discovery before starting the applicaiton. In our example we use 224.224.224.245 and the loopback interface. Make sure to adjust the command for your project. Otherwise it will not be possible for clients to subscribe to your SOME/IP service.
297297

298298
```bash
299299
sudo ip addr add 224.224.224.245 dev lo autojoin
@@ -304,3 +304,18 @@ Afterwards start your app:
304304
```bash
305305
python3 send_events_udp.py
306306
```
307+
308+
## Running Two Applications On The Same Machine
309+
310+
It is recommended two have one someipy application on a machine that communicates to other PCs or ECUs. But, in case you want to run two applications on the same machine, they should use different interfaces, i.e. bind to different IP addresses. If the two applications shall communicate locally, you can add another IP address to the localhost interface, e.g. 127.0.0.2.
311+
312+
```bash
313+
sudo ip addr add 127.0.0.2/24 dev lo
314+
```
315+
316+
Afterwards start one application working with 127.0.0.1 and the other application with 127.0.0.2:
317+
318+
```bash
319+
python3 send_events_udp.py --interface_ip 127.0.0.1
320+
python3 receive_events_udp.py --interface_ip 127.0.0.2
321+
```

service_interface.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ For inquiries about support for additional data types, contact us at:
168168
[LinkedIn](https://www.linkedin.com/in/ch-herzog/)
169169

170170

171-
| SOME/IP Datatype | someipy Datatype |
171+
| SOME/IP Data Type | someipy Data Type |
172172
|---------------------------|--------------------------|
173173
| boolean | Uint8 |
174174
| uint8 | Uint8 |
@@ -182,8 +182,8 @@ For inquiries about support for additional data types, contact us at:
182182
| float32 | Float32 |
183183
| float64 | Float64 |
184184
| structs | SomeIpPayload |
185-
| fixed-length strings | not supported |
186-
| dynamic-length strings | not supported |
185+
| fixed-length strings | SomeIpFixedSizeString |
186+
| dynamic-length strings | SomeIpDynamicSizeString |
187187
| arrays (fixed-length) | SomeIpFixedSizeArray |
188-
| arrays (dynamic-length) | not supported |
188+
| arrays (dynamic-length) | SomeIpDynamicSizeArray |
189189
| union | not supported |

0 commit comments

Comments
 (0)