How to tell if the card being inserted is a SIM card or a Usim card

Source: Internet
Author: User
1. Determine if the card is a SIM card or a UICC card.

Driver judging the history of the ATR after power on byte:0x80 0x31 0xXX 0x73
You can view the system trace from catcher log:
Message: [sim_drv]:atr= 3B9E11801FC38031E073FE211B66D00026010B00AF
Message: [sim_drv]: L1usim_reset OK v:2, t:0, App:1, speed:0
If driver detects the blue content above, it is the UICC card.
Otherwise it is recognized as a SIM card.

2. If it is a UICC card, it will determine if the file Efdir contains a record whose aid value starts with A0 00 00 00 87 10 02.
If this record is included, the UICC card supports the Usim app, which is a Usim card.
Otherwise it is recognized as a SIM card.
3. If it is a USIM card, subsequent initialization of the USIM application will be initiated based on the Select aid.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.