IMSI Property

Description:

The IMSI property returns the unique IMEI (International Mobile Subscriber Identity) code of the SIM (Subscriber Identity Module) used in the GSM Modem.

   

Usage strIMSI = ObjectName.IMSI
Value Type String
Access Mode Read Only
Remarks Returns blank string if the modem does not support reading of IMSI property.

Usage Example:

Visual Basic / ASP (VBScript)
Dim objSMS As mCore.SMS
Set objSMS = New mCore.SMS
' You can also use Set objSMS = CreateObject("mCore.SMS")
' In case of ASP (VBScript) to create object use
' Set objSMS = Server.CreateObject("mCore.SMS")
' In ASP use Response.Write instead of MsgBox
objSMS.Port = "COM2"
objSMS.BaudRate = 57600
objSMS.Parity = "N"
objSMS.DataBits = 8
objSMS.StopBits = "1"
' It is not necessary to execute the 'Connect' method.
' Connection state is detected internally by mCore and
' the 'Connect' method is executed accordingly.
MsgBox objSMS.IMEI
MsgBox objSMS.IMSI
MsgBox objSMS.Manufacturer
MsgBox objSMS.Model
MsgBox objSMS.Revision
' Disconnect method is executed internally
' whenever the SMS object is terminated.
Set objSMS = Nothing

   

Copyright © IG Logix Softech Pvt Ltd, All Rights Reserved