1657 views|0 replies

1140

Posts

0

Resources
The OP

Design example: Card 82H external authentication, ESAM04H, 05H, 06H external authentication [Copy link]

/******************************************* Function name: AllExternVerify Function function: Card 82H external authentication, ESAM04H, 05H, 06H external authentication Input parameter: cApplySerialNumber2[8] Card application serial number Output parameter: Authentication result Description: Card 82H external authentication--ESAM04H--ESAM05H--ESAM06H external authentication **********************************************/ unsigned char AllExternVerify(unsigned char cApplySerialNumber2[8]) { //Card external authentication icflag1=ICSAM|icflag1; CardAndEsamExternVerify(cApplySerialNumber2,CardInfoUpKey); if(!((ErrorCardExtAuthBIT+ErrorReadWriteBIT)&iErrorRWrCard)) { //esam 04H external authentication, information update external authentication EsamExternVerify(EsamInfoUpdateKEY,CardInfoUpdateKEY); if(!((ErrorEsamExtAuthBIT+ErrorReadWriteBIT)&iErrorRWrCard)) { //esam 05H external authentication, key update external authentication//EsamExternVerify(EsamKEYUpdateKey,CardKEYUpdateKey); //if(!((ErrorEsamExtAuthBIT+ErrorReadWriteBIT)&iErrorRWrCard)) //{ //esam 06H external authentication, gas volume update external authentication//EsamExternVerify(EsamVolumeUpdateKey,CardVolumeUpdateKey); //if(!((ErrorEsamExtAuthBIT+ErrorReadWriteBIT)&iErrorRWrCard)) //{ return 1; //} //} } } return 0; }

This post is from Microcontroller MCU

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    About Us Customer Service Contact Information Datasheet Sitemap LatestNews

    Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list