Commit 7b34922a authored by Radek Polak's avatar Radek Polak

gta04 - AT_OPSYS setting in neocontrol, charging log in file

parent 2cfa24ef
......@@ -158,10 +158,21 @@ NeoModemService::NeoModemService
("_OSIGQ:", this, SLOT(sigq(QString)));
// Determine AT_OPSYS value - by default disable UMTS, use only GSM 0,2
// this can help reduce modem reenumerations.
// Some references:
// see [1] at the end of this source file
QSettings cfg("Trolltech", "Modem");
QString opsys = cfg.value("Value", "AT_OPSYS=0,2").toString();
qLog(Modem) << "OPSYS value:" << opsys;
chat("AT+CSCS=\"GSM\""); // GSM encoding
chat("AT_OSQI=1"); // unsolicited reporting of antenna signal strength, e.g. "_OSIGQ: 3,0"
chat("AT_OPCMENABLE=1"); // enable the PCM interface for voice calls
chat("AT_OPSYS=0,2"); // disable UMTS, use only GSM
// Modem input device - reports keys when modem generates interrupt (e.g.
// on incoming call or sms).
......@@ -372,3 +383,24 @@ void NeoVibrateAccessory::setVibrateNow(const bool value, int timeoutMs, int str
/* [1]
first number (mode):
0: GSM only (2G only which IMHO includes GPRS and EDGE)
1: WDMA only (3G only)
2: GSM first (i.e. 2G over 3G)
3: WCDMA first (i.e. 3G over 2G)
4: no change
5: auto
second number (service domain):
0: circuit switched only (i.e. no GPRS/EDGE)
1: packet switched only
2: circuit and/or packed switched
3: no preference
4: no change
5: demand PS attach
6: demand PS detach
\ No newline at end of file
......@@ -25,7 +25,6 @@
#include <QDateTime>
#ifdef QTOPIA
#include <Qtopia>
#include <QValueSpaceItem>
#include <QtopiaApplication>
#ifdef Q_WS_WIN
......@@ -57,7 +56,7 @@ private:
Screen screen;
bool updatingModem;
bool updatingScreen;
snd_mixer_t *mixerFd;
QVBoxLayout *layout;
QHBoxLayout *buttonLayout;
......@@ -66,8 +65,8 @@ private:
QPushButton *bBack;
QPushButton *bNext;
QPushButton *bSave;
QCheckBox *chkMux;
QCheckBox *chkFso;
QCheckBox *chkCharge;
QLabel *label4;
QLabel *label5;
MixerSlider *slider4;
......@@ -75,9 +74,6 @@ private:
QFont normalFont;
QFont smallFont;
QString chargeLog;
#ifdef QTOPIA
QValueSpaceItem chargeLogVsi;
void showScreen(NeoControl::Screen scr);
int openAlsaMixer();
......@@ -94,8 +90,8 @@ private slots:
void updateModem();
void updateSysfs();
void updateCharge();
void muxStateChanged(int);
void fsoStateChanged(int);
void chargeStateChanged(int);
void fsoChange();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment