Detecting SIM card in laptop

Yes. Use the modems serial console and issue AT commands.
For a Sierra Modem the AT command is
AT!ICCID
This will return the SIM chips ICC ID (Integrated Circuit Card ID)
To show if SIM is ready:
AT+CPIN?

To find the modems serial console check with ls /dev and look for cuaU*.* ports and ttyU*.* ports.
For example:
cu -l /dev/ttyU0.2
Connected
at
OK
ati
Manufacturer: Sierra Wireless, Incorporated
Model: MC7700
Revision: SWI9200X_03.05.29.03ap r6485 CNSHZ-ED-XP0031 2014/12/02 17:53:15
IMEI: 012626000778$$$
IMEI SV: 23
FSN: CDC0183099710
3GPP Release 8
+GCAP: +CGSM,+DS,+ES
at
AT+CPIN?
+CPIN:READY
OK
at
AT+CPIN?
+CME ERROR: SIM not inserted
 
Doesn't pciconf() show the presence of a SIM socket?
There are no OS tools to show a SIM slot.
SIM card slots use special circuitry and tie directly into the MiniPCIe socket for a modem.
Cellular Modems use special MiniPCIe sockets that have USB Signaling connections.
Most all cellular modems use this USB Signaling.
Code:
usbconfig ugen1.3
ugen1.3: <Sierra Wireless, Incorporated MC7700> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (0mA)
So Cellular Modem slots are not the same as a slot for MiniPCIe WiFi socket.
WiFi Cards and TV tuners use pure MiniPCIe signaling.
There are a few exceptions for WiFi cards that actually do use USB Signaling MiniPCIe sockets.
RALink makes one. Some of the really cheap no-name router boxes from China use these.
 
Here is an example of a box that uses USB Signaling Wifi Cards:
Notice in the fine print:
Optional Wireless card kit is available from Protectli. Card is USB Channel and fits in a designated PCIe form factor slot with USB communications

Theoretically you could use a cellular modem in this slot.
Problem is No SIM slot.
Well they do make a cool little widget that overcomes this problem.
This fits in the MiniPCIE socket and folds over the Cellular Modem connectors.
 
I've noticed under Windows, that it detects a Sierra Wireless AirCard HSDPA Modem under Device Manager. What would I use under FreeBSD to identify the same item? I don't see anything in dmesg which looks relevant to it.
 
Back
Top