Replies: 3 comments 3 replies
-
The following comment was written by @LasseRosenow :
Is this a problem? We could generate this source code as well right? :) (RIOT OS also does this in code as far as I know: https://doc.riot-os.org/group__net__gnrc__netif.html) |
Beta Was this translation helpful? Give feedback.
-
The following comment was written by @LasseRosenow :
I would say: Because some platforms might not even support Or maybe we should allow to configure the defaultCHannel at the top of the program |
Beta Was this translation helpful? Give feedback.
-
The following comment was written by @LasseRosenow :I still have some issues with this:
Here we give CoAP and TCP different IP Addresses. This is not necessary.
Here we have 2 different IP endpoints for the TcpIpChannel, this can be useful when for example one uses What is still missing here is that if we are using multiple interfaces, we will need some place to map addresses to interfaces on the board that we flash to. I think this should maybe be solved using environment variables? So we could maybe generate something like:
But I find this is really easy to cause errors.
To make this run on the corresponding boards the user only needs to specify the following environment variables: |
Beta Was this translation helpful? Give feedback.
-
Let's settle on a syntax for specifying network channel properties for connections between federates. We add attributes in two places.
We must keep the possibility of banks of federates, multiport federates and arbitrary connection statements into mind. We should strive to have sane defaults such that it is possible to write programs without any attributes and they still work.
Federate instance attributes
For the federate instance we use attributes to express which NetworkChannels it supports, addresses and network interfaces.
Federate connection parameters
Is there something crucial I am overlooking? We still have the problem when there are multiple network interfaces. Unfortunately, Zephyr does not provide a nice way to configure multiple interfaces directly from a config file, you must do this in the source code, I am not sure how this works for RIOT.
@LasseRosenow @tanneberger
Beta Was this translation helpful? Give feedback.
All reactions