当前位置:网站首页>Description of module data serial number positioning area code positioning refers to GBK code

Description of module data serial number positioning area code positioning refers to GBK code

2022-06-24 07:26:00 Little yellow man software

 Description of the positioning of the module data :
 With GBK For example 
GBK  Yes  GB2312  It has been extended . The first byte is  0x81~0xFE, The second word 
 This section is divided into two parts , One is  0x40~0x7E, Two is  0x80~0xFE.

 namely (0x7f-0x40+0xff-0x80)= A district 190 A word .	

 The positioning method is as follows :
 Subtract... From the first byte  0x81, Is the right location , The size of each area depends on the bytes occupied by each word ×190
(0x7f-0x40+0xff-0x80) that will do . If the second byte is less than  0x7f  Then subtract  0x40,
 If the second byte is greater than or equal to  0x80  Then subtract  0x41.


 High position of positioning =( Area code high bit -0x81)*0xBE
 Low position of positioning =  If   Area code low order <0x7F  , Area code low order -0x40
						 If   Area code low order >=0x80  , Area code low order -0x41
						
 such as D2BB  One 
 High position of positioning =D2-81   =0x51
 Low position of positioning =BB-41   =0x7A
0x51*0xBE+0x7A=0x3C98=15512

 namely 
 location 1 Corresponding area code 0x8140    A bird's nest 
 location 2 Corresponding area code 0x8141    A kind of 
 location 190 Corresponding area code 0x8240  侤 
 location 15512 Corresponding area code 0xD2BB  One 

 

原网站

版权声明
本文为[Little yellow man software]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240108030395.html