Skip to content

Commit

Permalink
Stream:PDU: Socket Adapter union for DoIP and SOMEIP tables.
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Rule (VM/EMT3) <Timothy.Rule@de.bosch.com>
  • Loading branch information
timrulebosch committed Feb 4, 2025
1 parent 66a4291 commit 48d2bfe
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions schemas/stream/pdu.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,8 @@ table CanMessageMetadata {


/**
SoAd Metadata
-------------
*/
table SoAdMetadata {
}


/**
DoIP Metadata
-------------
Socket Adapter Metadata
-----------------------
*/
table DoIpMetadata {
/// DoIP: Protocol Version.
Expand All @@ -130,11 +122,6 @@ table DoIpMetadata {
payload_type:uint16;
}


/**
SOME/IP Metadata
----------------
*/
table SomeIpMetadata {
/// SOME/IP: Message ID.
message_id:uint32;
Expand All @@ -152,6 +139,13 @@ table SomeIpMetadata {
return_code:uint8;
}

union SocketAdapter {
/// DoIp: Diagnostic Communication over Internet Protocol.
do_ip:DoIpMetadata,
/// Some/IP: Scalable service-Oriented Midedleware over IP.
some_ip:SomeIpMetadata,
}


/**
IP Message Metadata
Expand Down Expand Up @@ -224,17 +218,10 @@ table IpMessageMetadata {
ip_dst_port:uint16;

/**
Module Protocols
----------------
Presense of these tables are an indicator that a module protocol
is associated with the PDU encoded in the stream.
Adapter Protocols
-----------------
*/
/// SoAd: Socket Adapter module.
so_ad:SoAdMetadata;
/// DoIp: Diagnostic Communication over Internet Protocol module.
do_ip:DoIpMetadata;
/// Some/IP: Scalable service-Oriented Midedleware over IP.
some_ip:SomeIpMetadata;
adapter:SocketAdapter;
}


Expand Down

0 comments on commit 48d2bfe

Please sign in to comment.