Hi, thanks for the answer, I saw your thread, but for me it is strange because AT command does not return SIM PIN2 but READY, but reading with library returns that SIM PIN2 is required.
BR, Vanja From: Ulrich Mohr <u.m...@semex-engcon.com> Sent: Wednesday, January 11, 2023 09:46 To: Vanja Žerić <vanja.ze...@ttcontrol.com>; modemmanager-devel@lists.freedesktop.org Cc: Igor Vinčić <igor.vin...@tttech.com> Subject: Re: ModemManger behaves strange CAUTION: This message was sent from outside of TTTech Group. Please do not click links or open attachments unless you recognize the source of this email and know the content is safe. Hello, I had the same question a while ago, and found an explanation: https://lists.freedesktop.org/archives/modemmanager-devel/2018-January/006142.html<https://urldefense.com/v3/__https:/lists.freedesktop.org/archives/modemmanager-devel/2018-January/006142.html__;!!Cm4lpUGrlw!g4EDhARApmzCxYKVH_cZJfyXBDqxZar11vtDrXtD7bLPNAjqiQF_pLfYqIpSmJNxUoBrVV0Ds-CKRc_CnzGmdYH4$> Best regards, Uli Am 11.01.2023 um 09:10 schrieb Vanja Žerić: Hello everyone, I am working with some USB Connectivity Module and I am using ModemManager to get status of SIM PIN. When I am using C app that is using ModemManager library and when I extract status of SIM PIN, I am getting that SIM requires PIN2 (MM_MODEM_LOCK_SIM_PIN2), but when I send AT command I am getting that SIM is READY, that means that SIM is unlocked. SIM is connected correctly, but it seems only that message is wrong. After calling test app: [cid:image001.png@01D925A2.2C2BADD0] After calling AT command: [cid:image002.png@01D925A2.2C2BADD0] I am getting correct PIN status messages if SIM requires PIN or PUK, I tested it, but when I send correct PIN, SIM connects, but PIN status message is that SIM requires PIN2. This is how I am extracting the status: This is prototype of my function: [cid:image003.png@01D925A2.2C2BADD0] This is how I extract status in that function: [cid:image004.png@01D925A2.2C2BADD0] Hal_modem_pin_status_enum convert MM PIN status to my enum… Does anyone has any idea? Best regars, Vanja Zeric CONFIDENTIALITY: The contents of this e-mail are confidential and intended only for the above addressee(s). If you are not the intended recipient, or the person responsible for delivering it to the intended recipient, copying or delivering it to anyone else or using it in any unauthorized manner is prohibited and may be unlawful. If you receive this e-mail by mistake, please notify the sender and the systems administrator at straym...@tttech.com<mailto:straym...@tttech.com> immediately. -- Best regards / Mit freundlichen Grüßen / Salutations distinguées Ulrich Mohr SEMEX-EngCon GmbH Carl-Merz-Strass 26 76275 Ettlingen Phone: +49 (0) 7243 5143596 email: u.m...@semex-engcon.com<mailto:u.m...@semex-engcon.com> ___________________________________________ Executive board: A. Stiegler, H.-J. Nitzpon Commercial register: Mannheim, HRB 718881 Company domicile: Ettlingen