This is an example of udev rules creating IMEI- and IMSI-based symlinks of serial devices.
Symlinks are created in /dev/modem/by-imei
and /dev/modem/by-imsi
directories.
- IMEI - International Mobile Equipment Identity.
- IMSI - International Mobile Subscriber Identity.
-
Copy
65-modem.rules
file to/etc/udev/rules.d
directory. -
Copy
read-modem-properties.sh
file to/usr/lib/udev
directory. -
Reload udev rules:
sudo udevadm control --reload sudo udevadm trigger
AT+CGSN
- Request product serial number identification.AT+CIMI
- Request international mobile subscriber identity.