ModemManger behaves strange
Vanja Žerić
vanja.zeric at ttcontrol.com
Wed Jan 11 08:50:45 UTC 2023
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.mohr at semex-engcon.com>
Sent: Wednesday, January 11, 2023 09:46
To: Vanja Žerić <vanja.zeric at ttcontrol.com>; modemmanager-devel at lists.freedesktop.org
Cc: Igor Vinčić <igor.vincic at 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 at 01D925A2.2C2BADD0]
After calling AT command:
[cid:image002.png at 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 at 01D925A2.2C2BADD0]
This is how I extract status in that function:
[cid:image004.png at 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 straymail at tttech.com<mailto:straymail at 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.mohr at semex-engcon.com<mailto:u.mohr at semex-engcon.com>
___________________________________________
Executive board: A. Stiegler, H.-J. Nitzpon
Commercial register: Mannheim, HRB 718881
Company domicile: Ettlingen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230111/a1002171/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 25147 bytes
Desc: image001.png
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230111/a1002171/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 2457 bytes
Desc: image002.png
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230111/a1002171/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 6019 bytes
Desc: image003.png
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230111/a1002171/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 27809 bytes
Desc: image004.png
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230111/a1002171/attachment-0007.png>
More information about the ModemManager-devel
mailing list