Digitax 4GMCU Technical Manual page 39

Mobile control unit
Table of Contents

Advertisement

void _modem_NetOperatorChanged(string
{
if
(InvokeRequired)
{
BeginInvoke(new
NetworkOperatorChangedHandler(_modem_NetOperatorChanged),
return;
}
txtNetOperator.Text = newOperatorName;
}
void _modem_IMSIChanged(string
{
if
(InvokeRequired)
{
BeginInvoke(new
IMSIChangedHandler(_modem_IMSIChanged),
return;
}
txtImsi.Text = newIMSI;
}
void _modem_IMEIChanged(string
{
if
(InvokeRequired)
{
BeginInvoke(new
IMEIChangedHandler(_modem_IMEIChanged),
return;
}
txtImei.Text = newIMEI;
}
void
_modem_DataProtocolChanged(DataProtocolType
{
if
(InvokeRequired)
{
BeginInvoke(new
DataProtocolChangedHandler(_modem_DataProtocolChanged),
return;
}
switch
(protocolType)
{
case
DataProtocolType.EDGE:
case
DataProtocolType.GPRS:
case
DataProtocolType.None:
txtDataProtocol.Text = protocolType.ToString();
break;
default:
txtDataProtocol.Text = "";
break;
}
}
void _modem_CellNameChanged(string
{
if
(InvokeRequired)
{
BeginInvoke(new
CellNameChangedHandler(_modem_CellNameChanged),
return;
}
txtCellName.Text = newCellName;
}
void
_modem_RxSms(Sms
sms)
{
MessageBox.Show(
"NEW SMS\r\n"
+
"==============\r\n"
sms.Time.ToString() +
"From "
+ sms.Sender +
sms.Text,
"New
SMS");
}
#endregion
#region
RAS events handlers
/* This region contains the handlers for the events fired by the RAS entry manager
*/
void
_rasEntry_ConnectionStateChanged(RasConnectionState
{
if
(InvokeRequired)
{
BeginInvoke(
new
RasEntryManager.ConnectionStateChangedHandler(_rasEntry_ConnectionStateChanged),
new
object[] { oldConnState, newConnState });
return;
}
txtRasStatus.Text = newConnState.ToString();
switch
(newConnState)
{
case
RasConnectionState.Connected:
btnDial.Enabled = false;
btnHangUp.Enabled = true;
break;
case
RasConnectionState.Disconnected:
btnDial.Enabled = true;
btnHangUp.Enabled = false;
break;
newOperatorName)
newIMSI)
newIMEI)
protocolType)
newCellName)
+
"\r\n\r\n"
+
"\r\n"
+
oldConnState,
new
object[] { newOperatorName });
new
object[] { newIMSI });
new
object[] { newIMEI });
new
object[] { protocolType });
new
object[] { newCellName });
RasConnectionState
newConnState)
39

Advertisement

Table of Contents
loading

Table of Contents