Skip to content

Dev202503 #9

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

Merged
merged 20 commits into from
Mar 29, 2025
Merged

Dev202503 #9

merged 20 commits into from
Mar 29, 2025

Conversation

nevstop
Copy link
Contributor

@nevstop nevstop commented Mar 8, 2025

No description provided.

@nevstop nevstop marked this pull request as ready for review March 26, 2025 14:55
@nevstop nevstop self-assigned this Mar 28, 2025
@nevstop nevstop requested a review from Copilot March 28, 2025 07:22
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the documentation for the reusable TCP communication layer by introducing a dedicated protocol section in both the English and Chinese README files and adding new protocol definition documents.

  • Updated the English README with a new “## Protocol” section detailing the TCP packet format.
  • Updated the Chinese README with a new “## 通讯协议” section and a link to the detailed protocol documents.
  • Added new protocol definition files for both English (v0) and Chinese (v0 and v1).

Reviewed Changes

Copilot reviewed 24 out of 30 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Added Protocol section with TCP packet format details.
README(zh-cn).md Added 通讯协议 section; note an inconsistency in header order.
.doc/Protocol.v1.(zh-cn).md New advanced protocol definition with additional fields.
.doc/Protocol.v0.(zh-cn).md New Chinese version of the original protocol definition.
.doc/Protocol.v0.(en).md New English version of the original protocol definition.
Files not reviewed (6)
  • .doc/CSM-TCP-Router.drawio: Language not supported
  • CSM-TCP-Router.vipb: Language not supported
  • src/CSM-TCP-Router.lvcsm: Language not supported
  • src/CSM-TCP-Router.lvproj: Language not supported
  • src/Server/_support/Module/CSM-TCP-Router.lvlib: Language not supported
  • src/csm-app.ini: Language not supported
Comments suppressed due to low confidence (1)

.doc/Protocol.v1.(zh-cn).md:28

  • [nitpick] Consider using a consistent bit literal format (i.e. '0b00010000') for FLAG_CRC to match the style used for FLAG_TEXT and FLAG_BIN.
FLAG_CRC = 0B00010000  # 存在CRC校验(置1时需解析CRC校验)

CSM-TCP-Router 中 TCP 数据包格式定义如下:

```
| 数据长度(4B) | 版本(1B) | FLAG1(1B) | FLAG2(1B) | TYPE(1B) | 文本数据 |
Copy link
Preview

Copilot AI Mar 28, 2025

Choose a reason for hiding this comment

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

The header field order in the Chinese README is inconsistent with the protocol definition in .doc/Protocol.v0.(zh-cn).md. Consider reordering the fields to match the established order.

Suggested change
| 数据长度(4B) | 版本(1B) | FLAG1(1B) | FLAG2(1B) | TYPE(1B) | 文本数据 |
| 数据长度(4B) | 版本(1B) | TYPE(1B) | FLAG1(1B) | FLAG2(1B) | 文本数据 |

Copilot uses AI. Check for mistakes.

@nevstop nevstop merged commit 207ca7b into main Mar 29, 2025
1 check passed
@nevstop nevstop deleted the Dev202503 branch March 29, 2025 02:11
@github-project-automation github-project-automation bot moved this from Linked to PR to Done in Communicable State Machine(CSM) Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant