奇偶校验位问题

发布于 2024-10-31 07:01:23 字数 466 浏览 0 评论 0原文

我已经阅读了有关“奇偶校验位”方法的信息,以及如何使用它来检查“数据包”是否正确接收。

所以使用奇校验:(来自wiki)

A wants to transmit:          1001
A computes parity bit value:  ~(1^0^0^1) = 1
A adds parity bit and sends:  10011
B receives:                   10011
B computes overall parity:    1^0^0^1^1 = 1
B reports correct transmission after observing expected odd result.

如果在传输过程中,而不是“10011”,会怎么样? 收到“11001”。奇偶校验将如何检查这一点,因为它只检查“1”的数量? 或者像我之前所说的那样,比特在传输过程中不可能改变?谢谢

i have been readin about the "parity bit" method, and how is is used to check is the "packet" is received correctly.

so using odd parity: (from wiki)

A wants to transmit:          1001
A computes parity bit value:  ~(1^0^0^1) = 1
A adds parity bit and sends:  10011
B receives:                   10011
B computes overall parity:    1^0^0^1^1 = 1
B reports correct transmission after observing expected odd result.

what if during the transmission, instead of "10011",
"11001" is received. how will the parity check for that, since it checks only the number of "1"'s ?
or is it impossible for bits to change during transmission like i stated before? thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

有深☉意 2024-11-07 07:01:23

奇偶校验位是最简单的错误检测技术。如果奇数位(包括奇偶校验位)传输不正确,它会起作用。因此,如果两个位损坏,则它将无法工作。

Parity bit is simplest error detection technique. It works if odd number of bits (including the parity bit) are transmitted incorrectly. So if two bits are corrupt then it will not work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文