Return ( false != preg_match($pattern, $sim_id) & self::isValidLuhn( $sim_id ) ) check to see if the pattern is valid followed by the Luhn checksum In my code I first validate using a regular expression, since the regex should be decently efficient, and then calculate the Luhn check digit to make sure the number itself is correct. The first two are hard coded to “89” for “telecommunications”, followed by a “1” for the United States country code, and then 3 digits identifying the Verizon Mobile Network Code (MNC) – see the previous link for valid values for other carriers – and then a final check digit using the Luhn algorithm. The ICCID values we are expecting will be 19 digits + a check digit for a total length of 20 numeric characters. I needed to identify valid ICCID values for a project I was working on, and more specifically SIM Cards that are valid on the Verizon LTE network in the United States. ![]() ![]() The SIM Card is in turn identified by an Integrated Circuit Card Identifier (ICCID) which is printed on the card. Boot the Amazon FreeRTOS Project from a MicroSD Card. The Subscriber Identification Module (SIM) Card is an chip that stores your wireless devices’ International Mobile Subscriber Identity (IMSI). connector from the debugger to the 10-pin connector on the NXP IoT module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |