Skip to content

Chinese ZIIOT coding check code generater;China MA Cdoe,MA.156 UDI MA校验码;DI、PI校验码算法;MA码,IDCode,UDI校验码

Notifications You must be signed in to change notification settings

weirros/IdCodeChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

IdCodeChecker

Update2021-11-25

目前要求通过赋码接口取得字串值,无法在赋码接口外自行生码;因此目前这个算法已经不具有参考意义;

同时提醒目前不必再寻找其他的校验算法;此文档已经作废;

Chinese ZIIOT coding check code generater;China MA Cdoe,MA.156 UDI MA校验码;DI、PI校验码算法;MA码,IDCode,UDI校验码

2022年顺利起航,如果这片代码有用,记得给个星;

from idcodechecker import map2dec

dt=['MA.156.M0.100472.1110331',							#DI传参不必传最后一位,需要提前处理好
    '.S1576130942.P190101.LABS20191201.E191201'			#PI传参不必传校验字段,但是要携带带前面的点 
    ]

for do in dt:

    cd = map2dec(do)
    print (do,' => ',cd)


-----------
MA.156.M0.100472.1110331  => 6
.S1576130942.P190101.LABS20191201.E191201  => 7

http://check.idcode.net/

Thanks;

https://www.programminghunter.com/article/98401286738/

About

Chinese ZIIOT coding check code generater;China MA Cdoe,MA.156 UDI MA校验码;DI、PI校验码算法;MA码,IDCode,UDI校验码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages