Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: TSP (tlm space packet) Ver.2 の仕様を追加 #551

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions Docs/Core/communication.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ Secondary Header は CCSDS Space Packet 定義において,ユーザー定義
https://github.com/ut-issl/c2a-core/blob/e84ac663187adb7b9d51939f2228b9ecfa7ae292/TlmCmd/Ccsds/tlm_space_packet.h#L1-L51

#### 各フィールドの説明
##### バージョン共通
- Secondary Header Version
- `0x00`: バージョン不定
- `0x01`: Version 1
- `0x02`: Version 2
- Board Time
- テレメトリが生成されたボード (OBC など) の時刻 (TI など)

##### Version 1
- Telemetry ID
- テレメトリID
- APID 内でユニークであればいい
Expand Down Expand Up @@ -105,6 +109,51 @@ https://github.com/ut-issl/c2a-core/blob/e84ac663187adb7b9d51939f2228b9ecfa7ae29
- 例えば,Stored Telemetry 時には Data Recorder のどのパーティションに配送されるかを規定する
- 将来拡張の可能性あり

##### Version 2
- On-Board Subnetwork Time (将来拡張)
- 各ボードで作られたパケットの時刻を統一的に管理するために,オンボードサブネットワークで共通の時刻体系に基づくテレメトリ生成時刻
- `0xFFFFFFFF` の場合, パケット中継中に MOBC (地上局とつながる OBC) で,上書き設定される
- On-Board Subnetwork Time を取得できない機器向け
Comment on lines +112 to +116
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここもきになる

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

つまり,

  • ver1, ver2 で offset が異なってしまっても良いのか
  • そもそもこれ必要か?


#### バージョンの使い分け
- Version 1
- 主に,Telemetry ID で区別される,パケットごとに構造化され定義されたテレメトリ (Character Tlm Packet) に使う
- C2A では,Tlm Cmd DB の Tlm DB によってスキーマが定義され,時系列データベースなどに格納されることが一般的である
- 基本的にはパケット分割されない(Sequence Flag が Standalone Packet である)
- Version 2
- 主に,画像などのミッションデータやメモリダンプ (Binary Tlm Packet) を送信するときに使う
- パケット分割は許容される
Comment on lines +118 to +125
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sksat @KOBA789 ここの表記が気になってる.




メモ

| offset [byte] | Ver. 1<br>(deprecated) | Ver. 2 | Ver. 3 |
| -- | -- | -- | -- |
| 0 | Sec. HDR Ver | Sec. HDR Ver | Sec. HDR Ver |
| 1 | Board Time | Board Time | Board Time |
| 2 | \| | \| | \| |
| 3 | \| | \| | \| |
| 4 | \| | \| | \| |
| 5 | Tlm ID | On-Board<br>Subnetwork Time | On-Board<br>Subnetwork Time |
| 6 | Global Time | \| | \| |
| 7 | \| | \| | \| |
| 8 | \| | \| | \| |
| 9 | \| | Global Time | --- |
| 10 | \| | \| | |
| 11 | \| | \| | |
| 12 | \| | \| | |
| 13 | \| | \| | |
| 14 | On-Board<br>Subnetwork Time | \| | |
| 15 | \| | \| | |
| 16 | \| | \| | |
| 17 | \| | Tlm ID | |
| 18 | Dest Flags | Dest Flags | |
| 19 | Dest Info | Dest Info | |





### Secondary Header (Command)
Secondary Header は CCSDS Space Packet 定義において,ユーザー定義部分であるため,ここで定義する.
Expand Down