Enter SIM card PIN via script for Huawei 3G USB modems |
|
|
I always found it annoying that when I start Huawei's MobileConnect application, I must first enter the PIN for accessing the SIM card of my USB 3G modem before I can connect to the provider. Luckily, the program is rather verbose with debug output. So it was quite easy to retrieve the essential part for entering the PIN. It simply consists of some good old Hayes AT modem-communication commands.
I wrote a Perl script that fetches the PIN to your SIM card from a Keychain entry. In order to use this script, you have to create a Keychain entry under the account simpin. Here's how:
Open Keychain Access (in Applications » Utilities)
Menu: File » New Password Item
Keychain Item Name: Enter something useful to you.
Account Name: simpin
Password: Enter the PIN to your SIM card (usually a number)
Press Add
Note: when the ...
|