[PATCH 1/2] emulator: Test already done in g_at_server_resume()
by Guillaume Zajac
---
src/emulator.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/emulator.c b/src/emulator.c
index e7c7d41..c3165eb 100644
--- a/src/emulator.c
+++ b/src/emulator.c
@@ -100,9 +100,6 @@ static void cleanup_ppp(struct ofono_emulator *em)
__ofono_private_network_release(em->pns_id);
em->pns_id = 0;
- if (em->server == NULL)
- return;
-
g_at_server_resume(em->server);
g_at_server_send_final(em->server, G_AT_SERVER_RESULT_NO_CARRIER);
}
--
1.7.5.4
9 years, 10 months
[PATCH 0/7] phonesim: Add UCS2 encoding support for CBS/USSD
by Philippe Nunes
phonesim is extended to support UCS2 encoding regarding CBS/USSD messages:
- for CBS, a scheme combobox is now available for user selection.
- for USSD, the best scheme is used based on the content of the USSD text string.
phonesim is also able now to split the CBS text (according the chosen scheme) and send all the pages of the CBS message.
Philippe Nunes (7):
control: Fix empty sender checking
controbase: Add combobox for CBS scheme selection
qcbsmessage: Extend QCBSMessage class
hardwaremanipulator: Add UCS2 encoding support for CBS message
hardwaremanipulator: Add multi-page support for CBS message
sms: Extend CBS message formating to use UCS2 scheme
hardwaremanipulator: Add USC2 encoding support for USSD.
src/control.cpp | 8 +--
src/controlbase.ui | 36 ++++++-----
src/hardwaremanipulator.cpp | 90 ++++++++++++++++++++++------
src/hardwaremanipulator.h | 6 +-
src/qcbsmessage.cpp | 140 ++++++++++++++++++++++++++++++++++++++++++-
src/qcbsmessage.h | 7 +++
src/qsmsmessage.cpp | 119 +++++++++++++++++++++++++++++++++---
7 files changed, 357 insertions(+), 49 deletions(-)
--
1.7.9.5
9 years, 10 months
GPRS re-connect problem
by August Mayer
Hello,
When connecting again to GPRS / PPP, after an Internet connection has
been closed previously, the connection seems to fail. It looks like the
ofono_modem serial data channel is completely closed when a PPP
connection is shut down. I'm using a Telit Modem, which provides several
serial ports, and am right now using separate serials for the AT chat
and the data/PPP; for this reason, the AT chat continues working, but
the data channel is dead.
My question is, is it somehow necessary to re-initialise the modem data
serial channel after a PPP connection? Or could there be a conceptual
problem that I have overlooked?
Many thanks & greetings August
--
Scanned by MailScanner.
9 years, 10 months
[PATCH 0/6] mmsd : Add delivery report support
by Ronald Tessier
This set of patches concerns mmsd and implements the first task listed in the
MMS Delivery Report section of TODO.
Ronald Tessier (6):
mmsutil: Add delivery report to send_req struct
doc: Modify SendMessage D-Bus API
service: Retrieve delivery-report parameter
mmsutil: Encode delivery-report in send_req msg
unit: Add delivery_report to send_req testing
test: Support delivery_report in Send-Message script
doc/service-api.txt | 3 ++-
src/mmsutil.c | 9 ++++++++-
src/mmsutil.h | 6 ++++++
src/service.c | 12 +++++++++++-
test/send-message | 19 +++++++++++++------
unit/test-mmsutil.c | 3 ++-
6 files changed, 42 insertions(+), 10 deletions(-)
--
1.7.4.1
9 years, 10 months
[PATCHv2 0/2] mmsd: new tasks definition
by Ronald Tessier
These patches concern mmsd and update documentation to describe new
functionalities to add to mmsd.
Ronald Tessier (2):
doc: Describe delivered group in storage doc
doc: Add new D-Bus methods to service interface
doc/service-api.txt | 20 ++++++++++++++++++++
doc/storage.txt | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 0 deletions(-)
--
1.7.4.1
9 years, 10 months
[PATCH 0/6] phonesim: CBS/USSD improvments
by Philippe Nunes
-CBS message is encoded using the best CBS data coding scheme. In case of
non-GSM characters in the plain text body, the UCS-2 alphabet is used.
-CBS message is splitted automatically in pages if needed. The UI entries
related to the page number and the maximum of pages are removed since this is
handled internally.
-USSD answer and cancellation commands are now supported.
Philippe Nunes (6):
controbase: Remove entries in CBM UI
qcbsmessage: Add bestScheme method in QCBSMessage class
hardwaremanipulator: Use the best scheme for CBS message
hardwaremanipulator: Add multi-page support for CBS message
phonesim: Add support for USSD answer
phonesim: Add support for USSD session cancellation
src/control.cpp | 9 +--
src/controlbase.ui | 184 ++++++++++++++++---------------------------
src/default.xml | 14 ++++
src/hardwaremanipulator.cpp | 70 +++++++++-------
src/hardwaremanipulator.h | 6 +-
src/qcbsmessage.cpp | 10 ++-
src/qcbsmessage.h | 1 +
7 files changed, 137 insertions(+), 157 deletions(-)
--
1.7.9.5
9 years, 10 months
[PATCH] test-ussd: USSD request is optional to monitor SS interface
by Philippe Nunes
---
test/test-ussd | 60 ++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 41 insertions(+), 19 deletions(-)
diff --git a/test/test-ussd b/test/test-ussd
index c21f5e3..c8099b0 100755
--- a/test/test-ussd
+++ b/test/test-ussd
@@ -9,12 +9,28 @@ import dbus.mainloop.glib
state = None
+def clear_screen(numlines=100):
+ import os
+ if os.name == "posix":
+ os.system('clear')
+
+ elif os.name in ("nt", "dos", "ce"):
+ os.system('CLS')
+
+ else:
+ print '\n' * numlines
+
+def print_menu():
+ if state == "user-response":
+ print "Enter response (c for cancel - x for exit):"
+ elif state == "idle":
+ print "Enter USSD request (x for exit):"
+
def ussd_notification_received(content):
print("Network sent a Notification: " + content)
def ussd_request_received(content):
print("Network sent a Request: " + content)
- ss.Cancel()
def ussd_property_changed(name, value):
global state
@@ -23,23 +39,27 @@ def ussd_property_changed(name, value):
print("USSD session state is " + value)
state = str(value)
+ print_menu()
+
def stdin_handler(fd, condition):
- s = os.read(fd.fileno(), 160).rstrip()
- if not s:
- ss.Cancel()
+ s = os.read(fd.fileno(), 182).rstrip()
+
+ if s == 'c':
+ if state == "user-response" or state == 'active':
+ clear_screen
+ ss.Cancel()
+ elif s == 'x':
+ sys.exit(1)
elif state == "user-response":
+ clear_screen()
print ss.Respond(s, timeout = 100)
elif state == "idle":
+ clear_screen()
print ss.Initiate(s, timeout = 100)
- else:
- print "Invalid state", state
+
return True
if __name__ == "__main__":
- if (len(sys.argv) < 2):
- print "Usage: %s [modem] <ussd-string>" % (sys.argv[0])
- sys.exit(1)
-
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
bus = dbus.SystemBus()
@@ -50,24 +70,26 @@ if __name__ == "__main__":
modems = manager.GetModems()
modem = modems[0][0]
- if (len(sys.argv) == 2):
- ussd = sys.argv[1]
- else:
+ if (len(sys.argv) == 3):
modem = sys.argv[1]
- ussd = sys.argv[2]
ss = dbus.Interface(bus.get_object('org.ofono', modem),
'org.ofono.SupplementaryServices')
- props = ss.GetProperties()
- for p in props:
- ussd_property_changed(p, props[p])
-
ss.connect_to_signal("NotificationReceived", ussd_notification_received)
ss.connect_to_signal("RequestReceived", ussd_request_received)
ss.connect_to_signal("PropertyChanged", ussd_property_changed)
- print ss.Initiate(ussd, timeout=100)
+ if (len(sys.argv) > 1):
+ if (len(sys.argv) == 2):
+ ussd = sys.argv[1]
+ elif (len(sys.argv) == 3):
+ ussd = sys.argv[2]
+ print ss.Initiate(ussd, timeout=100)
+ else:
+ props = ss.GetProperties()
+ for p in props:
+ ussd_property_changed(p, props[p])
gobject.io_add_watch(sys.stdin, gobject.IO_IN, stdin_handler)
--
1.7.9.5
9 years, 10 months
[PATCH] bluetooth: ignore error if driver returns -EALREADY
by Luiz Augusto von Dentz
From: Luiz Augusto von Dentz <luiz.von.dentz(a)intel.com>
---
plugins/bluetooth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index dbf79eb..cb5fe24 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -275,7 +275,7 @@ static void bluetooth_probe(GSList *uuids, const char *path,
continue;
err = driver->probe(path, device, adapter, alias);
- if (err == 0)
+ if (err == 0 || err == -EALREADY)
continue;
ofono_error("%s probe: %s (%d)", driver->name, strerror(-err),
--
1.7.10.2
9 years, 11 months
oFono DUN server issue
by Guillaume Zajac
Hi,
I tested oFono DUN server to be sure it was still working with latest
oFono version, however I have an issue with udev/udevng.
My current "phone like" configuration is:
- laptop with Ubuntu 11.10
- oFono + ConnMan running together (network-manager + modem-manager
stopped)
- Huawei dongle for data connection
I am using a Windows 7 DUN client to connect to the laptop.
Binding with client is fine but when I try to dial to connect to the
server with the DUN client I got this into oFono log:
...
ofonod[20340]: plugins/udev.c:udev_event() subsystem tty add
ofonod[20340]: plugins/udev.c:udev_event() subsystem tty finished
ofonod[20340]: plugins/udev.c:udev_event() subsystem tty move
ofonod[20340]: plugins/udev.c:udev_event() subsystem tty finished
ofonod[20340]: plugins/udev.c:udev_event() subsystem tty move
ofonod[20340]: plugins/udev.c:udev_event() subsystem tty finished
ofonod[20340]: plugins/udevng.c:remove_device()
/sys/devices/virtual/tty/rfcomm0
ofonod[20340]: plugins/udev.c:udev_event() subsystem tty remove
ofonod[20340]: plugins/udev.c:remove_modem() /devices/virtual/tty/rfcomm0
ofonod[20340]: plugins/udev.c:udev_event() subsystem tty finished
ofonod[20340]: plugins/udevng.c:check_modem_list()
...
and the DUN client is getting a timeout error.
Does anybody have any idea about this issue?
Thanks.
Kind regards,
Guillaume
9 years, 11 months