Skip to content
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.

[XPCC] Require Identifier for containers. #204

Merged
merged 4 commits into from
Dec 10, 2016

Conversation

strongly-typed
Copy link
Member

In the progress of adding raw Ethernet frames as a backend for XPCC
communication, each container requires a unique id.

When using CAN as a backend filtering is done by component id.
Normally, each CAN controller has enough filters to accommodate up to
ten components per container. E.g. STM32F4 has 14 CAN filters.

When moving to Ethernet, the Ethernet MAC controller only has two or
six filters which may be not enough. The filters are more difficult to
configure.

The fifth byte of the MAC address will be used for the container Id and
the sixth byte for the component Id.
MAC filtering then can be easily implemented by filtering for the first
five bytes of the MAC address.

There is no overhead for CAN communication as container Id is omitted.

The round function is not available in the std namespace on all ARM libstdc++ implemenations.
See 6e8d74d
The plural of 'container' is 'containers'.
https://en.wiktionary.org/wiki/containers#English
This is consistent to the lists of actions and events.
In the progress of adding raw Ethernet frames as a backend for XPCC
communication, each container requires a unique id.

When using CAN as a backend filtering is done by component id.
Normally, each CAN controller has enough filters to accommodate up to
ten components per container. E.g. STM32F4 has 14 CAN filters.

When moving to Ethernet, the Ethernet MAC controller only has two or
six filters which may be not enough. The filters are more difficult to
configure.

The fifth byte of the MAC address will be used for the container Id and
the sixth byte for the component Id.
MAC filtering then can be easily implemented by filtering for the first
five bytes of the MAC address.

There is no overhead for CAN communication as container Id is omitted.
@salkinium salkinium self-assigned this Dec 10, 2016
@salkinium salkinium merged commit 5f5934a into roboterclubaachen:develop Dec 10, 2016
@strongly-typed strongly-typed deleted the feature/xpcc_ids branch December 11, 2016 01:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants