From 2ca4e837b88d4d775916e4d9e6690620bcd08367 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Sun, 1 Jun 2014 00:31:48 +0200 Subject: [PATCH] fsogsmd: modem_cinterion_ps8: more complete command sequences Signed-off-by: Sebastian Krzyszkowiak --- fsogsmd/src/plugins/modem_cinterion_ps8/plugin.vala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fsogsmd/src/plugins/modem_cinterion_ps8/plugin.vala b/fsogsmd/src/plugins/modem_cinterion_ps8/plugin.vala index 7f0610ad..73f8f70e 100644 --- a/fsogsmd/src/plugins/modem_cinterion_ps8/plugin.vala +++ b/fsogsmd/src/plugins/modem_cinterion_ps8/plugin.vala @@ -52,6 +52,8 @@ class CinterionPS8.Modem : FsoGsm.AbstractModem modem_data.atCommandReleaseAllHeld = "+CHUP"; registerAtCommandSequence( "MODEM", "init", new AtCommandSequence( { + """E0V1""", + """+CMEE=1""", // report mobile equipment errors = numerical format """^SLED=2""", // enable STATUS LED (non-persistent) """+CFUN=4""", // power up the SIM card """^SSET=1""", // enable SIM ready indication @@ -60,6 +62,14 @@ class CinterionPS8.Modem : FsoGsm.AbstractModem """^SCFG="MEopMode/PowerMgmt/LCI","enabled"""" // enable Low Current Indicator (aka SLEEP LED), it's volatile as well } ) ); + registerAtCommandSequence( "main", "unlocked", new AtCommandSequence( { + "+CRC=1", // extended cellular result codes = enable + "+CLIP=0", // calling line id present = disable + "+CLIR=0", // calling line id restrict = disable + "+COLP=0", // connected line id present = disable + "+CCWA=0" // call waiting = disable + } ) ); + registerAtCommandSequence( "main", "suspend", new AtCommandSequence( { """+CREG=0""", // disable network status updates """^SIND="nitz",0""" // disable Network Identity and Time Zone indication -- 2.11.4.GIT