-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Segmentation API defined + pyroma fix + safety automated in CI (#111)
- pyroma execution fix - payload attribute remuval for packet classes - add dependency checking with safety package - define UDS Segmentation API - prepare user documentation for Segmentation - update Segmentation chapter in knowledge base
- Loading branch information
1 parent
cb07777
commit 7199236
Showing
17 changed files
with
552 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
.. _knowledge-base-segmentation: | ||
|
||
.. _knowledge-base-desegmentation: | ||
|
||
Segmentation | ||
============ | ||
|
||
|
||
.. _knowledge-base-message-segmentation: | ||
|
||
Message Segmentation | ||
-------------------- | ||
If diagnostic message data to be transmitted does not fit into a single frame, then segmentation process is required | ||
to divide :ref:`diagnostic message <knowledge-base-diagnostic-message>` into smaller pieces called | ||
:ref:`UDS packets <knowledge-base-uds-packet>`. | ||
|
||
|
||
.. _knowledge-base-packets-desegmentation: | ||
|
||
Packets Desegmentation | ||
---------------------- | ||
Desegmentation is a reverse process to a `message segmentation`_. It transforms one or more | ||
:ref:`UDS packets <knowledge-base-uds-packet>` into a :ref:`diagnostic message <knowledge-base-diagnostic-message>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Segmentation | ||
============ | ||
Implementation related to :ref:`segmentation <knowledge-base-segmentation>` is located in :mod:`uds.segmentation` | ||
sub-package. | ||
|
||
|
||
AbstractSegmenter | ||
----------------- | ||
:class:`~uds.segmentation.abstract_segmenter.AbstractSegmenter` defines common API and contains common code for all | ||
segmenter classes. Each concrete segmenter class implements segmentation | ||
`strategy <https://www.tutorialspoint.com/design_pattern/strategy_pattern.htm>`_ for a specific bus. | ||
|
||
A **user shall not use** :class:`~uds.segmentation.abstract_segmenter.AbstractSegmenter` **directly**, but one is able | ||
(and encouraged) to use :class:`~uds.segmentation.abstract_segmenter.AbstractSegmenter` implementation with any of its | ||
children classes. | ||
|
||
Attributes defined in :class:`~uds.messages.uds_packet.AbstractUdsPacketType` class: | ||
- :attr:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.supported_packet_classes` - readable and abstract (bus specific) | ||
- :attr:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.initial_packet_types` - readable and abstract (bus specific) | ||
|
||
Methods defined in :class:`~uds.messages.uds_packet.AbstractUdsPacketType` class: | ||
- :meth:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.is_supported_packet` | ||
- :meth:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.is_supported_packets_sequence` | ||
- :meth:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.is_initial_packet` | ||
- :meth:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.get_consecutive_packets_number` | ||
- :meth:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.is_following_packets_sequence` | ||
- :meth:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.is_complete_packets_sequence` | ||
- :meth:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.segmentation` | ||
- :meth:`~uds.segmentation.abstract_segmenter.AbstractSegmenter.desegmentation` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
safety>=1.10.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.