GetIMEI: Difference between revisions

From Opale Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 14: Line 14:


If ORIGINAL is specified then the original IMEI of the modem is returned. Otherwise, the last programmed IMEI is returned.
If ORIGINAL is specified then the original IMEI of the modem is returned. Otherwise, the last programmed IMEI is returned.
Note that the original IMEI numbers are store in the following files : /etc/slidn with n beeing the port index number. The file can be empty or not present as long as the IMEI has not been modified on the module.


Command output in the following format:
Command output in the following format:

Latest revision as of 15:36, 10 March 2026

This command gets module IMEI number for the specified GSM port.

COMMAND

Command Line Arguments Returns
GetIMEI Port_index [ORIGINAL] GSM port IMEI

OUTPUT

If ORIGINAL is specified then the original IMEI of the modem is returned. Otherwise, the last programmed IMEI is returned.

Note that the original IMEI numbers are store in the following files : /etc/slidn with n beeing the port index number. The file can be empty or not present as long as the IMEI has not been modified on the module.

Command output in the following format:

"%s\n", imei

EXAMPLES

~# GetIMEI 1
895825000699682

#  GetIMEI 0 ORIGINAL
895825000699682