大红鹰dhy登录界面「网站首页」欢迎您 /how-to-implement-checksum-and-rolling-counter-localization-support-in-tsmaster/ /how-to-implement-checksum-and-rolling-counter-localization-support-in-tsmaster/#respond Fri, 26 Aug 2022 09:37:24 +0000 /?p=6138 overview鍓嶈█ TSMaster杩戞棩鏇存柊浜嗕簲澶фā鍧楃殑鏂板姛鑳斤紝涓昏鍖呭惈缃戠粶浠跨湡涓殑checksum鍜宺ol […]

The post 鏂板姛鑳藉彂甯 | TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔 first appeared on 涓婃捣鍚屾槦鏅鸿兘绉戞妧鏈夐檺鍏徃.

]]>
overview鍓嶈█

TSMaster杩戞棩鏇存柊浜嗕簲澶фā鍧楃殑鏂板姛鑳斤紝涓昏鍖呭惈缃戠粶浠跨湡涓殑checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔銆丣1939澶氬抚鎶ユ枃鏀跺彂銆丮ATLAB鑷姩鍖栨帶鍒舵ā鍧楃瓑绛夈€傚皬缂栨帴涓嬫潵灏嗗湪涔嬪悗鎺ㄦ枃涓粰澶у浠ュ浘鏂囨暀绋嬬殑褰㈠紡涓€涓€璁茶В銆侟/p>

浠婂ぉ浠嬬粛TSMaster鐨勬柊鍔熻兘鈥旂綉缁滀豢鐪熶腑鐨刢hecksum鍜宺olling counter鐨勬湰鍦板寲鏀寔锛岃鍔熻兘鍙互杞绘澗鍋氬埌涓嶅啓涓€琛屼唬鐮佸氨鍙互瀹炵幇甯hecksum鍜宺c鐨勭綉缁滀豢鐪熴€侟/p>

涓€銆佹棫鐗堟湰 VS 鏂扮増鏈?/h2>

Old VS New version

鏃х増鏈 >

棣栧厛鍥為【涓€涓嬫棫鐨勬柟娉曪紝涔熷氨鏄娇鐢ㄥ皬绋嬪簭瀵规瘡涓俊鍙疯繘琛屾ā鎷燂紝鎵撳紑杩欎釜绀轰緥闅忓悗鎸塅5鍚姩浠跨湡锛屽氨鍙互鐪嬪埌涓嶆柇閫掑鐨剅olling counter锛屼篃灏辨槸钃濊壊鐨勮繖涓笁瑙掓尝銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

鎴戜滑灞曞紑trace锛屼粠涓妸杩欎釜checksum鎷栧埌鍥惧舰绐楀彛涓紝灏卞彲浠ヨ瀵焎hecksum鐨勫疄鏃舵洸绾裤€傚啀鐪嬫垜浠殑灏忕▼搴忎唬鐮侊紝鍦╬retx鐨勫洖璋冨嚱鏁颁腑锛岄渶瑕佸啓绋嬪簭鏉ョ洿鎺ユ帶鍒禼hecksum鍜宺olling counter鐨勪俊鍙凤紝鍊樿嫢娑夊強鍒板ぇ鍨嬬殑缃戠粶浠跨湡锛岄偅涔堝氨闇€瑕佽姳璐瑰ぇ閲忕殑鏃堕棿锛屾瘡涓俊鍙疯繘琛岄€愪釜澶勭悊瀹规槗鍑洪敊锛屽悓鏃朵篃浼氬甫鏉ユ晥鐜囩殑闂銆侟/p>

鏂扮増鏈 >

鏂板姛鑳藉垯涓嶉渶瑕佹墜鍔ㄥ鐞嗘瘡涓俊鍙凤紝鎴戜滑鏉ユ柊寤轰竴涓伐绋嬭瘯涓€璇曘€傛墦寮€宸ョ▼-宸ョ▼鐩綍锛屾壘鍒癟SMaster鐨勫畨瑁呭寘鑷甫鐨勭ず渚嬫暟鎹簱銆備緥濡俻owertrain锛屾垜浠皢瀹冩嫋鍏ワ紝鍙互鐪嬪埌鏁版嵁搴撳凡缁忚浇鍏ャ€侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

鎴戜滑閫夋嫨涓€甯ф姤鏂囷紝浠BS data涓轰緥锛屽彲浠ョ湅鍒拌繖涓姤鏂囧苟娌℃湁checksum鍜宺c锛屾垜浠渶瑕佷慨鏀规暟鎹簱缁欎粬鍔犱笂杩欎袱涓俊鍙凤紝鐐瑰嚮缂栬緫鎸夐挳锛屾墦寮€鏁版嵁搴撶紪杈戝櫒锛屾垜浠柊寤轰袱涓俊鍙凤紝鍒嗗埆鍛藉悕涓篈BS checksum銆俢hecksum涓€鑸槸8浣嶇殑鏃犵鍙凤紝鐒跺悗杩樻湁涓€涓槸ABS銆俽c涓€鑸槸4浣嶆棤绗﹀彿锛屽啀灏嗚繖涓や釜淇″彿鎷栧叆ABS data杩欎釜鎶ユ枃閲岄潰锛岄殢鍚庢垜浠墦寮€杩欎釜鎶ユ枃鐨勯厤缃獥鍙o紝灏哾lc鏀逛负8锛屽垏鎹㈠埌layout銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

鎴戜滑鍙互灏嗘垜浠柊寤虹殑rc鎷栧姩鍒板悎閫傜殑浣嶇疆锛屾帴涓嬪幓鏄瀹歝hecksum鐨勪綅缃紝杩欐槸鎴戜滑鏂板鐨刢hecksum淇″彿锛岀敱浜巆hecksum鏄繚鎶ゆ姤鏂囩殑鏁版嵁鍐呭鐨勶紝涓€鑸綅浜庢姤鏂囩殑绗竴涓瓧鑺傛垨鑰呮槸鏈€鍚庝竴涓瓧鑺傘€傚湪杩欓噷鎴戜滑鎶婅繖涓俊鍙锋嫋鍒版渶鍚庝竴涓瓧鑺傦紝杩欐剰鍛崇潃淇濇姢鐨勮寖鍥存槸浠?鍒?瀛楄妭锛岀偣鍑荤‘瀹氾紝鍐嶇偣鍑讳繚瀛橈紝鍐嶇偣鍑诲叧闂€傚彲浠ョ湅鍒癟SMaster浼氳嚜鍔ㄥ埛鏂版墍缂栬緫鐨勬暟鎹簱銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

杩欐椂鍊欐垜浠睍寮€鎶ユ枃锛岄€夋嫨abs data锛屽垏鎹㈠埌甯冨眬绐楀彛锛屾垜浠氨鍙互鐪嬪埌鎴戜滑鏂板鐨勪袱涓俊鍙凤紝涓€涓槸rolling counter锛屽湪52-55浣嶄箣闂达紱鍙﹀涓€涓槸checksum锛屽湪56-63涔嬮棿銆傛柊澧炵殑checksum鍜宺c宸茬粡鎸夌収鎴戜滑鐨勮姹傝缃垚鍔熶簡銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

浜屻€乧hecksum鍜宺c鐨勬湰鍦板寲鏀寔

localization support for checksum & rc

>鍏抽棴鏁版嵁搴撶紪杈戝櫒锛屽垏鎹㈠埌浠跨湡锛屾墦寮€rbs绐楀彛锛屽弻鍑绘縺娲籩ngine鑺傜偣锛岃缃负鑷惎鍔ㄤ豢鐪燂紝闅忓悗鎸変笅F5鍚姩浠跨湡锛岃繖灏卞彲浠ヨrbs鏉ヤ豢鐪焑ngine杩欎釜鑺傜偣鐨勬墍鏈夋姤鏂囥€侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

鍒囨崲鍒板垎鏋愶紝鎵撳紑trace绐楀彛锛屽睍寮€abs data鎶ユ枃锛屽彲浠ョ湅鍒版垜浠柊澧炵殑rc鍜宑hecksum閮芥槸榛樿鐨?锛岃繖鏃跺€欏氨闇€瑕佽繘琛岄厤缃紝鍥炲埌rbs绐楀彛锛屽湪rc淇″彿涓婄偣鍑诲彸閿紝璁剧疆瀹冧负rolling counter淇″彿锛岃缃皢浼氱珛鍗崇敓鏁堬紝鍙互鐪嬪埌rolling counter鍦ㄥ彉鍖栥€侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

>鎺ョ潃鎵撳紑涓€涓浘褰㈢獥鍙o紝鎶妑c鎷栧叆鍥惧舰灏卞彲浠ョ湅鍒伴敮榻挎尝锛岃鏄巖c宸茬粡鐢熸晥锛屾帴涓嬫潵灏辫閰嶇疆checksum銆傜敱浜巆hecksum娑夊強鍒癱rc绠楁硶搴撶殑瀹夎鍜岀紪杈戯紝杩欎釜淇″彿鏄笉鑳藉瀹炴椂鐨勫幓閰嶇疆瀹冪殑锛屾墍浠ユ垜浠厛鎸塅6鍋滄浠跨湡锛屽啀鍦╟hecksum淇″彿涓婂彸鍑婚€夋嫨璁句负checksum淇″彿锛岄偅涔堢涓€娆¤缃細鐪嬪埌绯荤粺浼氬畨瑁呴粯璁ょ殑crc鐨勭畻娉曞簱锛屽苟涓斿湪瀹夎鎴愬姛鍚庝細寮瑰嚭crc绠楁硶鍒楄〃銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

鎴戜滑鍙互闅忎究閫変竴涓畻娉曟瘮濡傝crc 8銆傝繖涓椂鍊欐垜浠氨宸茬粡鎴愬姛鐨勫皢crc 8鐨勭畻娉曞拰杩欎釜checksum淇″彿浜х敓浜嗗叧鑱斻€傛鏃惰繕鏈変竴涓厤缃」闇€瑕佺‘璁わ紝閭e氨鏄繖涓猚hecksum淇″彿鐨勪繚鎶よ寖鍥达紝榛樿鏄粠0瀛楄妭寮€濮嬶紝淇濇姢鍚庨潰7涓瓧鑺傦紝閭d箞杩欐槸鍙互闅忔椂鏇存敼銆傛垜浠彲浠ョ偣鍑诲彸閿紝閫夋嫨缂栬緫crc绠楁硶鍙傛暟锛屽氨鍙互鐪嬪埌宸茬粡閰嶇疆杩囩殑crc淇″彿琛ㄣ€侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

閭d箞鍙屽嚮杩欎釜琛ㄩ噷闈换浣曚竴涓俊鍙凤紝杩樺彲浠ョ户缁慨鏀逛粬鍏宠仈鐨刢rc绠楁硶锛岃繖涓椂鍊欐垜浠厛涓嶄慨鏀圭畻娉曪紝鎴戜滑鍙渶瑕佺煡閬撹繖涓獥鍙f槸鍙互鏇存敼淇濇姢鐨勫瓧鑺傝捣濮嬩互鍙婁繚鎶ょ殑瀛楄妭鏁板氨鍙互浜嗐€傞偅涔堟垜浠幇鍦ㄥ厛鐐瑰嚮纭锛岀劧鍚庢垜浠啀娆℃寜涓婩5鍚姩浠跨湡锛屽睍寮€abs data鎶ユ枃锛屾垜浠氨鍙互鐪嬪埌checksum宸茬粡鍦ㄥ埛鏂颁簡銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

>鎴戜滑鎶婅繖涓俊鍙锋嫋鍒板浘褰㈢獥鍙d腑锛屽氨鍙互鐪嬪埌浜哻hecksum鐨勫疄鏃舵洸绾匡紝鑰屼竴鑸儏鍐典笅锛宑hecksum鐨勭畻娉曢兘鏄叕鍙歌嚜瀹氫箟鐨勶紝鎴戜滑瀹屽叏鍙互鏀瑰啓榛樿鐨刢rc鐨勭畻娉曞簱鏉ュ仛鍒拌繖涓€鐐广€傜偣鍑讳豢鐪?灏忕▼搴忓簱锛屽彲浠ョ湅鍒伴粯璁ょ殑crc鐨勭畻娉曞簱涔熶笉杩囧氨鏄竴涓皬绋嬪簭搴撹€屽凡锛屼粬鎻愪緵浜?1涓粯璁ょ殑绠楁硶銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

鎴戜滑鍙互鍦╟浠g爜缂栬緫鍣ㄤ腑鎵惧埌杩欎釜绠楁硶搴撶殑婧愪唬鐮侊紝娉ㄦ剰鐨勬槸杩欎釜灏忕▼搴忔槸浠ュ簱鏂囦欢鐨勬柟寮忔彁渚涚殑锛屾槸娌℃湁鐙珛鐨勫惎鍔ㄥ拰鍋滄鎸夐挳鐨勶紝鎴戜滑鍦ㄦ鍒跺畾涓€涓猚rc绠楁硶銆傜偣鍙抽敭娣诲姞鑷畾涔夊嚱鏁板彇鍚嶄负mycrc锛屽弬鏁拌〃鍙互闅忎究閫変竴涓猚opy锛岀劧鍚庢垜浠彲浠ユ妸鐜版湁鐨勭畻娉曠殑鍐呭鎶勮繘鏉ャ€傛瘮濡傝杩欎釜crc8锛岀劧鍚庡湪杩欎釜鍩虹涓婅繘琛屼慨鏀癸紝鎴戜滑鍙互闅忔剰鐨勬敼锛屾瘮濡傝灏嗚繖涓猵oly = 0x17锛屽鏋滆鎯虫妸鎴戜滑鏂扮殑杩欎釜鍑芥暟瀹夎鍒扮郴缁熶腑锛屽彧闇€瑕佺紪璇戣繖涓畻娉曞簱灏卞彲浠ワ紝褰撶劧缂栬瘧鐨勮繃绋嬮渶瑕佷繚璇併€侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

棣栧厛瑕佸仠姝豢鐪燂紝鍥犱负褰撳墠鐨勮繖涓畻娉曞簱渚濈劧鍦ㄨrbs寮曟搸浣跨敤锛屾鏃舵垜浠啀鐐瑰嚮缂栬瘧灏卞彲浠ョ湅鍒扮紪璇戞垚鍔燂紝骞朵笖宸茬粡鑷姩瀹夎鍒版垜浠殑绯荤粺涓€侟/p>

涓夈€佸浣曞疄鐜板疄鏃舵洸绾军/h2>

How to achieve real-time curves

鎴戜滑鎵撳紑鎬荤嚎浠跨湡锛屽湪杩欎釜淇″彿涓婄偣鍙抽敭锛岄噸鏂伴€夋嫨涓€涓媍rc绠楁硶锛岄€夋嫨鎴戜滑鐨刴ycrc锛屽氨鍙互鍏宠仈鎴愬姛銆傜劧鍚庢垜浠寜F5鍚姩浠跨湡鍒囨崲鍒板浘褰㈢獥鍙o紝灏卞彲浠ョ湅鍒颁笉涓€鏍风殑checksum鐨勫疄鏃舵洸绾匡紝杩欐槸鍥犱负杩欎釜鏁翠釜鎶ユ枃閲岄潰灏卞彧鏈塺olling counter鐨勪竴涓俊鍙峰湪鍙樺寲锛屾墍浠ヨ繖涓猚hecksum鐨勪俊鍙风殑鏇茬嚎鍏锋湁涓€瀹氱殑瑙勫緥锛岄偅涔堝悓鏃舵垜浠篃鍙互璁╁叾浠栫殑淇″彿涔熷姩璧锋潵锛岃繖璇ユ€庝箞鍋氬憿锛烖/p>

1銆佹墜鍔ㄨ缃柟娉旤/strong>

鏈€蹇殑涓€绉嶆槸浣跨敤鍙戦€佺獥鍙g殑淇″彿鐢熸垚鍣ㄣ€傛垜浠彲浠ラ鍏堝湪rbs绐楀彛涓皢杩欎釜鎶ユ枃鐨勫懆鏈熸敼涓?锛岄偅杩欐牱鐨勮瘽rbs灏变笉浼氳嚜鍔ㄥ彂閫佽繖涓姤鏂囷紝鐒跺悗鎴戜滑鍒囨崲鍒板彂閫佺獥鍙o紝鐐瑰嚮娣诲姞鏉ヨ嚜鏁版嵁搴撶殑鎶ユ枃锛岄€夋嫨鎴戜滑鐨刟bs data锛屾垜浠偣鍑诲彂閫侊紝鐒跺悗鍒囨崲鍒板浘褰㈢獥鍙o紝灏卞彲浠ョ湅鍒拌窡涔嬪墠涓€鏍风殑鏇茬嚎銆傝繖鏄柊鍔熻兘鐨勫己澶т箣澶勶紝涔熷氨鏄笉绠¤鎶ユ枃鍦ㄧ郴缁熺殑鍝釜妯″潡琚彂鍑猴紝鍙rbs鏄縺娲荤姸鎬侊紝鎶ユ枃鐨刢hecksum鍜宺olling counter灏辫兘澶熻姝g‘閰嶇疆銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

鎺ヤ笅鏉ユ垜浠彲浠ユ縺鍔卞叾涓殑鍏朵粬淇″彿锛屾瘮濡傝carspeed杩欎釜淇″彿锛屾垜浠彲浠ュ皢鐢熸垚鍣ㄩ€夋嫨涓烘寮︽尝锛岄厤缃亸绉婚噺涓?50锛屽洜涓哄畠鐨勮寖鍥存槸0鍒?00锛岀劧鍚庣偣鍑诲簲鐢ㄥ叧闂紝鐐瑰嚮鍚姩鐢熸垚锛岃繖涓椂鍊欏氨鍙互鐪嬪埌checksum鍙戠敓浜嗗彉鍖栵紝杩欐椂鍊欐垜浠妸carspeed鎷栬繘鏉ワ紝灏卞彲浠ョ湅鍒版墍鏈変俊鍙风殑瀹炴椂鏇茬嚎銆傝繖鏃跺€欑殑checksum灏辨樉绀哄嚭浜嗘棤瑙勫垯鐨勫彉鍖栵紝杩欐槸鍥犱负鍚屾椂鏈変簡涓や釜淇″彿鍦ㄥ彉鍖栵紝閭d箞浠ヤ笂灏辨槸checksum鍜宺olling counter鐨勬墜鍔ㄨ缃柟娉曘€侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

2銆佽嚜鍔ㄨ缃柟娉旤/strong>

鎴戜滑杩樺彲浠ラ€氳繃灏忕▼搴廇PI鏉ュ仛鍒拌嚜鍔ㄨ缃紝棣栧厛鍙互娓呯┖杩欎袱涓俊鍙风殑閰嶇疆锛屽彧瑕佸湪涓婇潰鐐瑰嚮鍙抽敭锛岄€夋嫨璁句负鏅€氫俊鍙凤紝閭h繖涓や釜淇″彿灏变笉鍐嶅叿鏈夊姛鑳斤紝鍙互鐪嬪埌杩欎袱涓俊鍙峰氨鍙樻垚浜嗛粯璁ょ殑鍊硷紝鐒跺悗鎴戜滑鍙互鎵撳紑鑷姩鍖栨ā鍧楋紝鏂板涓€涓嚱鏁拌皟鐢紝鎼渞c鍙互浠庝腑鎵惧埌璺焤olling counter鏈夊叧鐨勫氨鏄繖涓猚an rbs set rc Signal銆備粬鍙湁涓€涓紶鍏ュ弬鏁帮紝灏辨槸淇″彿鐨勬暟鎹簱鍦板潃銆傛帴鐫€鎴戜滑鍒版€荤嚎浠跨湡閲岄潰锛屾妸杩欎釜rc淇″彿椤跺彸閿殑鏁版嵁搴撳湴鍧€鎷疯礉杩囨潵锛岃繖鏍峰氨瀹炵幇浜嗚繖涓俊鍙风殑璁剧疆銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

閭d箞鎴戜滑鍙互鍐嶅鍔犱竴涓嚱鏁拌皟鐢紝鎸夊洖杞︽柊寤轰竴涓柊鐨勫姩浣滐紝鐒跺悗鎴戜滑閫夋嫨crc鐩稿叧鐨勫嚱鏁帮紝閭d箞鍙互鐪嬪埌杩欎釜鍑芥暟鍚嶅彨set crc Signal锛屼粬鏈?涓弬鏁般€傜涓€涓篃鏄俊鍙峰湴鍧€锛屾垜浠氨濡傛硶鐐埗锛岄€夋嫨checksum鐨勬暟鎹簱鍦板潃锛屽~鍏ュ悗绗簩涓氨鏄畻娉曠殑鍚嶇О锛岄偅杩欎釜鍚嶇О鍏跺疄灏辨槸鍒氭墠鎴戜滑鎵€閫夌殑mycrc锛岄偅涔堝湪杩欎釜鍓嶉潰闇€瑕佸姞涓婂皬绋嬪簭鐨勫墠缂€锛屾墍浠ユ槸crc.mycrc銆傞偅涔堝皬绋嬪簭鍙互鐪嬪埌浠栫殑鍚嶇О鏄痗rc锛屾墍浠ュ彧闇€瑕佹妸杩欎釜杩欎釜鍚嶇О鍔犱笂鐐癸紝鍐嶅姞涓婂嚱鏁板悕鎶勮繃鏉ュ氨鍙互浜嗭紝鐒跺悗浠栨墍淇濇姢鐨勫瓧鑺傝捣濮嬫槸浠庣0涓瓧鑺傚紑濮嬶紝寰€鍚庝繚鎶?涓瓧鑺傦紝閭d箞杩欐牱灏辩畻璁剧疆瀹屾瘯銆侟/p>

TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔

About More

浠ヤ笂灏辨槸鏈鍙戝竷鐨勬柊鍔熻兘鐨勫叏閮ㄧ敤娉曪紝鎴戜滑涓嬫湡鍐嶈锛侊紙鍏蜂綋鎿嶄綔姝ラ璇︽儏鍙洿鎺ヨ鐪嬫垜浠殑B绔欒棰戝摝~锛堻/p>

The post 鏂板姛鑳藉彂甯 | TSMaster濡備綍瀹炵幇checksum鍜宺olling counter鐨勬湰鍦板寲鏀寔 first appeared on 涓婃捣鍚屾槦鏅鸿兘绉戞妧鏈夐檺鍏徃.

]]>
/how-to-implement-checksum-and-rolling-counter-localization-support-in-tsmaster/feed/ 0