generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from ut-issl/feature/divide_ctcp_to_ccp_and_ctp
CTCPをCCPとTCPに分離
- Loading branch information
Showing
46 changed files
with
824 additions
and
527 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
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
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,30 @@ | ||
# Communication | ||
|
||
## 概要 | ||
通信関連,ネットワーク関連などをまとめる. | ||
|
||
## C2A 内部を流れるパケットについて | ||
C2A 内部を流れるパケットは以下の 3 つである. | ||
- `CommonTlmCmdPacket` | ||
- CTCP | ||
- テレコマを区別しないパケット | ||
- CCSDS で規定される Space Packet に相当する | ||
- `CommonTlmPacket` | ||
- CTP | ||
- CTCP のうち,テレメトリパケットに限定したもの | ||
- `CommonCmdPacket` | ||
- CCP | ||
- CTCP のうち,コマンドパケットに限定したもの | ||
|
||
これらのパケットは,すべてユーザー定義であるが, C2A 標準を,ここ (TBA) で定義する. | ||
基本的にはこれを用いることを想定している. | ||
|
||
FIXME: 2022/01/24現在 | ||
現在, CTCP 大改修中 (https://github.com/ut-issl/c2a-core/issues/205) であり,現時点では,すべてのパケットの実体は TCP である. | ||
近いうちに整備される予定. | ||
|
||
## C2A 標準 Space Packet 定義 | ||
TBA | ||
|
||
## CCSDS 準拠状況 | ||
TBA |
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
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
31 changes: 31 additions & 0 deletions
31
Examples/minimum_user_for_s2e/src/src_user/Settings/TlmCmd/Ccsds/apid_define.h
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,31 @@ | ||
/** | ||
* @file | ||
* @brief CCSDS の APID を定義する | ||
* @note common_tlm_cmd_packet.h などから include されることを前提 | ||
*/ | ||
#ifndef APID_DEFINE_H_ | ||
#define APID_DEFINE_H_ | ||
|
||
#undef TCP_MAX_LEN | ||
|
||
#define TCP_MAX_LEN (432u) | ||
|
||
/** | ||
* @enum APID | ||
* @brief Application Process ID | ||
* @note 11bit | ||
*/ | ||
typedef enum | ||
{ | ||
APID_MOBC_CMD = 0x210, // 01000010000b: | ||
APID_AOBC_CMD = 0x211, // 01000010001b: | ||
APID_TOBC_CMD = 0x212, // 01000010010b: | ||
APID_TCAL_TLM = 0x410, // 10000010000b: APID for TIME CARIBLATION TLM | ||
APID_MIS_TLM = 0x510, // 10100010000b: APID for MIS TLM | ||
APID_DUMP_TLM = 0x710, // 11100010000b: APID for DUMP TLM | ||
APID_FILL_PKT = 0x7ff, // 11111111111b: APID for FILL PACKET | ||
APID_UNKNOWN | ||
} APID; | ||
|
||
|
||
#endif |
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
Oops, something went wrong.