8000 docs: Fix hallucination in CRC description by uist1idrju3i · Pull Request #9 · OpenBlink/openblink · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docs: Fix hallucination in CRC description #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 1 commit into from
May 19, 2025

Conversation

uist1idrju3i
Copy link
Contributor

This pull request updates the CRC16 checksum calculation details in the Bluetooth specification documentation across multiple language versions. The changes ensure consistency in the initial value and polynomial parameters, and provide additional context about the Hamming Distance protection. A reference link has also been added for further information.

Documentation updates for CRC16 checksum:

@uist1idrju3i uist1idrju3i self-assigned this May 19, 2025
@Copilot Copilot AI review requested due to automatic review settings May 19, 2025 15:01
@uist1idrju3i uist1idrju3i added the documentation Improvements or additions to documentation label May 19, 2025
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 corrects the CRC16 parameters in the Bluetooth spec docs, clarifies Hamming Distance protection, and adds a reference link for further reading.

  • Swapped the initial value and polynomial to the correct settings.
  • Annotated the polynomial with its Hamming Distance 4 protection range.
  • Appended a reference link to Carnegie Mellon’s CRC page.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
doc/bluetooth_specification.ja.md Updated CRC16 parameters, Hamming note, and added a reference link
doc/bluetooth_specification.md Applied the same CRC16 corrections and reference in English
doc/bluetooth_specification.zh-CN.md Mirrored CRC16 fixes, Hamming note, and reference in Simplified Chinese

- Input: bytecode buffer
- Length: bytecode length

Reference: https://users.ece.cmu.edu/~koopman/crc/index.html
Copy link
Preview
Copilot AI May 19, 2025

Choose a reason for hiding this comment

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

[nitpick] Use standard Markdown link syntax for clarity, for example:

Reference: Carnegie Mellon University CRC Page

Suggested change
Reference: https://users.ece.cmu.edu/~koopman/crc/index.html
Reference: [Carnegie Mellon University CRC Page](https://users.ece.cmu.edu/~koopman/crc/index.html)

Copilot uses AI. Check for mistakes.

- 输入:字节码缓冲区
- 长度:字节码长度

参考文献: https://users.ece.cmu.edu/~koopman/crc/index.html
Copy link
Preview
Copilot AI May 19, 2025

Choose a reason for hiding this comment

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

[nitpick] 在“参考文献”后使用中文全角冒号“:”以符合中文标点习惯,并考虑将 URL 转为 Markdown 链接格式以提高可读性。

Suggested change
参考文献: https://users.ece.cmu.edu/~koopman/crc/index.html
参考文献https://users.ece.cmu.edu/~koopman/crc/index.html

Copilot uses AI. Check for mistakes.

- 入力:バイトコードバッファ
- 長さ:バイトコード長

参考文献: https://users.ece.cmu.edu/~koopman/crc/index.html
Copy link
Preview
Copilot AI May 19, 2025

Choose a reason for hiding this comment

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

[nitpick] 「参考文献」の後には全角コロン「:」を使い、URL は Markdown リンク形式に変更すると可読性が向上します。

Suggested change
参考文献: https://users.ece.cmu.edu/~koopman/crc/index.html
参考文献https://users.ece.cmu.edu/~koopman/crc/index.html

Copilot uses AI. Check for mistakes.

@@ -134,7 +134,9 @@ The maximum bytecode size is defined by `BLINK_MAX_BYTECODE_SIZE` in the impleme

CRC16 checksum is calculated using the `crc16_reflect` function with the following parameters:

- Initial value: 0xd175
- Polynomial: 0xFFFF
- Initial value: 0xFFFF
Copy link
Preview
Copilot AI May 19, 2025

Choose a reason for hiding this comment

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

[nitpick] 当前列表项有的使用“--”有的使用“-”,建议统一为标准 Markdown 列表前缀(例如“- ”)并保持缩进一致。

Copilot uses AI. Check for mistakes.

@uist1idrju3i uist1idrju3i merged commit 58efb0e into main May 19, 2025
@uist1idrju3i uist1idrju3i deleted the feature/doc_fix_crc branch May 19, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0