shogo82148 / web-jjy

[JJY](http://jjy.nict.go.jp/) emulator with web audio
http://shogo82148.github.io/web-jjy/
MIT License
80 stars 22 forks source link

parity bits are not used. #2

Closed shogo82148 closed 5 years ago

shogo82148 commented 5 years ago

Comments via https://shogo82148.github.io/blog/2016/03/29/web-jjy/

kjs980 • 20時間前 サイトとソース両方見てきたんですが、36秒の時パリティ(PA1)と37秒の分パリティ(PA2)が必ず0になってましたので、パリティをちゃんとチェックしている電波時計では本当に両パリティが0の時刻以外は失敗しますね。 特に1、2、4、7、8、10、13、15、16、19、20、23時台は時パリティが必ず1なので全滅です。

Translated by Google bot.

kjs980 • 20 hours ago I saw both the site and the source, but since the parity (PA1) and the 37 minute parity (PA2) of 36 seconds surely became 0, the radio wave clock which is checking the parity properly is really both parity It fails at times other than 0. Especially in 1, 2, 4, 7, 8, 10, 13, 15, 16, 19, 20, 23 hour parity is absolutely 1 and it is annihilation.

kjs980 is right. pa is not used by anywhere.

https://github.com/shogo82148/web-jjy/blob/74ae974befc43ad073b0809b768b9c0c027d666d/jjy.js#L51-L52

shogo82148 commented 5 years ago

http://jjy.nict.go.jp/jjy/trans/index.html

  PA1 = (20h+10h+8h+4h+2h+1h) mod 2   PA2 = (40m+20m+10m+8m+4m+2m+1m) mod 2