Commit Graph
1145 Commits
Author SHA1 Message Date
Aleksander Morgado ea8b4c80b7 sms: don't allow sending received messages 2012-03-15 14:15:02 +01:00
Aleksander Morgado 4e4078ef2e sms: implement default storing 2012-03-15 14:15:02 +01:00
Aleksander Morgado 183e7c3205 sms-part: include the submit-pdu building code
It currently doesn't do multi-part. When do support that, we may end up needing
to move all this code to mm-sms.c
2012-03-15 14:15:02 +01:00
Aleksander Morgado bf5276d4c7 broadband-modem: implement the use-pdu-mode flag property 2012-03-15 14:15:02 +01:00
Aleksander Morgado 6bb4f9cb57 iface-modem-messaging: handle the flag to use PDU mode as a property 2012-03-15 14:15:02 +01:00
Aleksander Morgado 556efdd378 sms-list: refactor SMS removal
If any of the parts couldn't be removed, an error is reported and the SMS is
left in the list.
2012-03-15 14:15:02 +01:00
Aleksander Morgado 572565c1e0 sms: delete() just removes the parts from the storage
It's left to the delete() caller to unexport the SMS object from DBus and such.
2012-03-15 14:15:02 +01:00
Aleksander Morgado 40a39e4d47 sms-part: allow reseting part index
so that we can for example, tell the index is INVALID
2012-03-15 14:15:02 +01:00
Aleksander Morgado a8b3b50f45 sms: 'number' and 'text' are mandatory when creating from properties 2012-03-15 14:15:02 +01:00
Aleksander Morgado b61c94016a api,dbus: remove the option to send the SMS in the Create() call
An SMS must be first created with the Messaging interface, and then sent using the
Send() method from the SMS-specific interface.
2012-03-15 14:15:02 +01:00
Aleksander Morgado 8a4a7ca4dc broadband-modem: get and use SMS part state when parsing CMGL reply 2012-03-15 14:15:02 +01:00
Aleksander Morgado 714e4ca44b sms: export uncomplete multipart messages as well
Uncompleted multipart SMS will be exported to DBus, where only the "state"
property is valid, so that we allow completely removing those uncompleted
multipart SMS which will never get completed due to one reason or another.
2012-03-15 14:15:02 +01:00
Aleksander Morgado 186584f26f broadband-modem: ensure text mode SMS list doesn't pick up too much text
This is the port of commit 2104cd725a to the
06-api branch.
2012-03-15 14:15:02 +01:00
Aleksander Morgado 3c886d2579 broadband-modem: fix text SMS list regex
This is a port of commit c7f54a635a to the
06-api branch.
2012-03-15 14:15:02 +01:00
Aleksander Morgado ad3b3d0ba7 iface-modem-messaging: don't allow method calls if not enabled 2012-03-15 14:15:02 +01:00
Aleksander Morgado a1dc38360c iface-modem: don't force port closing here, it breaks the open/close count 2012-03-15 14:15:02 +01:00
Aleksander Morgado 214a146a28 iface-modem: simplify disabling sequence
Avoid the _ready() function generator macro, not really needed here.
2012-03-15 14:15:02 +01:00
Aleksander Morgado 7bc586258d sim: leave up to 10s for CRSM queries 2012-03-15 14:15:01 +01:00
Aleksander Morgado 470d9b933e sms: handle message storing and sending actions from DBus 2012-03-15 14:15:01 +01:00
Aleksander Morgado fb02fbf7a0 sms-part: new symbol to define invalid indexes
SMS parts with invalid indexes are NOT stored yet in the device
2012-03-15 14:15:01 +01:00
Aleksander Morgado 14baeff88d api,dbus: renamed To' to Number' in the SMS interface 2012-03-15 14:15:01 +01:00
Aleksander Morgado 76aaac23ec iface-modem-messaging: allow creating new SMS objects 2012-03-15 14:15:01 +01:00
Aleksander Morgado f414350b24 sms: allow creating SMS objects from the common properties 2012-03-15 14:15:01 +01:00
Aleksander Morgado f9a7533ac4 sms-list: allow adding full SMS objects to the list 2012-03-15 14:15:01 +01:00
Aleksander Morgado 9fd2c3a1dc sms-list: handle NULL paths in SMS objects
They will have NULL paths when they are not exported yet
2012-03-15 14:15:01 +01:00
Aleksander Morgado 69b8742ca3 api,header: renamed MMModemSmsState' to MMSmsState' 2012-03-15 14:15:01 +01:00
Aleksander Morgado c15fbedc03 sms: pass known state when creating the MMSms object 2012-03-15 14:15:01 +01:00
Aleksander Morgado c17d6c09a4 sms-part: include validity 2012-03-15 14:15:01 +01:00
Aleksander Morgado 0841f12315 iface-modem-messaging: allow subclassing SMS object creation methods 2012-03-15 14:15:00 +01:00
Aleksander Morgado 61a8452893 sms: allow sublassing the part deletion procedure 2012-03-15 14:15:00 +01:00
Aleksander Morgado 9ca03ba9f2 sms: rename method which creates MMSms from single part 2012-03-15 14:15:00 +01:00
Aleksander Morgado 61697b0054 modem-helpers: use new common charset converter when parsing operator name/code
This is the port of commit 4af8483ae4 into the
06-api branch.
2012-03-15 14:15:00 +01:00
Aleksander Morgado 9c5e8d697c broadband-modem: try to get SMS text and number in the current charset 2012-03-15 14:15:00 +01:00
Aleksander Morgado 23a6156059 broadband-modem: allow listing SMS parts in Text mode 2012-03-15 14:15:00 +01:00
Aleksander Morgado ffedaf2ec3 sms-part: allow creating MMSmsParts not only from parsing a PDU 2012-03-15 14:15:00 +01:00
Aleksander Morgado dc5ff06b4f broadband-modem: implement generic unsolicited SMS events handling 2012-03-15 14:15:00 +01:00
Aleksander Morgado d9f5779bbb iface-modem-messaging: allow setting up unsolicited events 2012-03-15 14:15:00 +01:00
Aleksander Morgado ee13bbe4a3 base-modem: ignore every unsolicited CMTI until we set up messaging 2012-03-15 14:15:00 +01:00
Aleksander Morgado 3912bf062e modem-helpers: new common CMTI regex getter 2012-03-15 14:15:00 +01:00
Aleksander Morgado 1eb7f60e4c sms: assemble and export the SMS when its completed 2012-03-15 14:15:00 +01:00
Aleksander Morgado 6f103c1366 sms-list: don't signal completed messages
We will instead not export an SMS until completed and assembled
2012-03-15 14:15:00 +01:00
Aleksander Morgado a91948879c sms: set modem object, so that the SMS are exported in DBus 2012-03-15 14:15:00 +01:00
Aleksander Morgado 0cdc8e8dd7 broadband-modem: don't assume CIEV/CIND signal quality is in the [0,5] range
When running AT+CIND=? we get the real range for the signal quality indications,
like: "signal",(1-7).

The max value doesn't need to be 5; so if we do get min and max, we will
normalize the returned quality using the proper range and scale it to the
[0,100] range.
2012-03-15 14:15:00 +01:00
Aleksander Morgado aee2b32a35 modem-helpers: allow strings instead of indexes in CIEV unsolicited events
Some modems will report strings instead of indicator indexes, like:
 +CIEV: roam,1

So allow non-integer indicators.
2012-03-15 14:15:00 +01:00
Aleksander Morgado eb37fc1589 broadband-modem: log the indexes expected in CIEV unsolicited messages 2012-03-15 14:15:00 +01:00
Aleksander Morgado 18ca53b667 modem-helpers: update the regex for the AT+CIND=? response
Cinterion modems seem to include
   "signal",(0-7,99)

We just get rid of the ',99' part.
2012-03-15 14:15:00 +01:00
Aleksander Morgado 664f407b99 broadband-modem: by default use PDU mode for SMS operations
Currently the support for text mode lacks a lot of functionality.
2012-03-15 14:15:00 +01:00
Aleksander Morgado 0f94abd3ae iface-modem-3gpp: avoid segfault with empty MCCMNC 2012-03-15 14:15:00 +01:00
Aleksander Morgado cd5e9c27a3 broadband-modem: if locked, don't try to initialize remaining interfaces
Whenever we get unlocked, the modem initialization sequence will be run again.
2012-03-15 14:14:59 +01:00
Aleksander Morgado 47a9903901 iface-modem-messaging: handle SMS listing 2012-03-15 14:14:59 +01:00