Commit Graph

270 Commits

Author SHA1 Message Date
Tambet Ingo
d7c7ab2732 Implement signal quality and network mode querying for MBM modem.
Patch from Bjorn Runaker <bjorn.runaker@ericsson.com>.
2008-10-28 09:28:37 +02:00
Tambet Ingo
128021dc16 Add guards to public functions to validate passed arguments. 2008-10-24 17:46:01 +03:00
Tambet Ingo
705aa1c404 Update the NM and nm-applet patches. 2008-10-24 16:22:50 +03:00
Tambet Ingo
f82b187c2b Move the string parser with regexp from huawei plugin to generic utility function.
It's useful for other modems too that need to strip unsolicited messages from
responses.
2008-10-24 16:20:22 +03:00
Tambet Ingo
0bd4f4a604 More work with MBM plugin.
Author: Per Hallsmark.
2008-10-24 10:04:42 +03:00
Tambet Ingo
f7aeeafec8 Use only one serial device in Huawei plugin. 2008-10-22 16:36:25 +03:00
Tambet Ingo
fd4e78fe92 Add a default send delay to the serial class.
Show the correct error in case of write errors (EAGAIN).
2008-10-22 16:34:34 +03:00
Tambet Ingo
3201a1e6b7 Don't loop forever on EAGAIN (copied from NM). 2008-10-20 18:39:19 +03:00
Tambet Ingo
2b76d68854 Update NM patch. 2008-10-20 17:13:18 +03:00
Tambet Ingo
4d27cef5ed Add a response parser to the generic CDMA implementation. 2008-10-20 14:37:56 +03:00
Tambet Ingo
446a4752d6 Remove the fancy init string options, these do not seem to work very well. 2008-10-20 12:25:14 +03:00
Tambet Ingo
096246e2fd Fix mm-test.py. 2008-10-20 12:12:55 +03:00
Tambet Ingo
cdccfa8ac1 Return an error ig scan results can not be parsed (fixes a segfault). 2008-10-20 11:54:02 +03:00
Tambet Ingo
94501f0854 Update NetworkManager patch. 2008-10-20 11:23:50 +03:00
Tambet Ingo
ed5d81da8f Implement a plugin for Ericsson MBM modems (like F3507g) (Author Per Hallsmark). 2008-10-20 11:11:23 +03:00
Tambet Ingo
4c8088d8ba Fix a typo in 'SetApn' command in NetworkManager patch. 2008-10-20 10:29:53 +03:00
Tambet Ingo
ba166485e3 Update the NetworkManager and nm-applet patches. 2008-10-13 09:40:46 +03:00
Tambet Ingo
5853f2216c Specify call mode in the modem init string. 2008-09-18 14:31:45 +03:00
Tambet Ingo
5c403fb223 Reset the CID when the modem is enabled/disabled and disconnected. 2008-09-18 12:39:46 +03:00
Tambet Ingo
447bca91b0 Reduce the amount of power used to minimum when modem is disabled. 2008-09-18 12:33:25 +03:00
Tambet Ingo
36acdcb70e Finish the non-verbose (V0) mode parser. 2008-09-17 13:37:35 +03:00
Tambet Ingo
341c28de2f Add correct message to mobile (+CMEE) errors. 2008-09-17 12:37:27 +03:00
Tambet Ingo
6f9adb1980 Get the monitoring device from HAL. 2008-09-17 11:54:46 +03:00
Tambet Ingo
07f1b3cc3a Document DBus error codes and messages. 2008-09-16 14:00:10 +03:00
Tambet Ingo
da3bbdc893 Add marshallers so that RegistrationInfo signal can be enabled. 2008-09-16 13:10:44 +03:00
Tambet Ingo
e0c720e19c Fix the loadable module name checking. 2008-09-16 13:10:44 +03:00
Tambet Ingo
f1acf5aaec Disconnect modem if it's connected while disabling. 2008-09-16 13:10:37 +03:00
Tambet Ingo
8e1cabbefc Make sure the device is enabled before trying to send commands to it. 2008-09-15 17:20:00 +03:00
Tambet Ingo
f570e1517d Implement PIN changing and enabling/disabling. 2008-09-15 17:08:46 +03:00
Tambet Ingo
1455c424c2 Implement smarter APN choosing.
If the APN chosen by user is already configured in card, use that. If not,
find the highest used CID, the allowed range of CIDs and add new (or overwrite
the highest one).
2008-09-15 13:07:03 +03:00
Tambet Ingo
b4176325e5 Update the patches for NetworkManager and nm-applet.
Implement modem properties dialog for the applet which shows all sorts of
information about the modem, allows to scan for visible networks and create
NMConnections based on scan results.
2008-09-12 17:05:43 +03:00
Tambet Ingo
567278d19d Make sure the response buffer doesn't grow without bounds. 2008-09-11 16:55:44 +03:00
Tambet Ingo
675964a6b2 Fix device added and removed signals.
The device argument was a MMModem object, which conflicted with the spec.
Changed it to the modem's udi.
2008-09-11 16:37:01 +03:00
Tambet Ingo
e0b3d478b4 Fix the typos. 2008-09-11 16:36:41 +03:00
Tambet Ingo
37b716de8a Fix error codes. 2008-09-11 15:12:07 +03:00
Tambet Ingo
29387c24b0 Fix a bug where the serial command queue sent the same command multiple times. 2008-09-11 11:41:36 +03:00
Tambet Ingo
55bc5300db Cache signal quality after successful registration.
If trying to get signal quality when connected, use the cached value.
2008-09-11 11:22:04 +03:00
Tambet Ingo
40e4d2fed0 Don't try to send commands to the serial device if it's connected.
Implement mm_serial_is_connected() function and call it before trying to write
anything to the serial port.
2008-09-11 11:21:04 +03:00
Tambet Ingo
ac4409e7ce Rewrite serial device communications.
Instead of vague "send something, wait something" the responses are now
analyzed by (overridable) parsers. Makes all the modem implementations much
easier since each caller knows without any code whether the call succeeded
or failed.

Another thing that makes modem code simpler (and the whole thing more robust),
is the queueing of sent commands. Each queued command has a command and a
callback which is quaranteed to get called, even if sending failed.

Define and implement error reporting.
2008-09-11 08:35:32 +03:00
Tambet Ingo
bb874acea0 Update the NetworkManager and nm-applet patches. 2008-09-02 09:51:23 +03:00
Tambet Ingo
9c9de2d626 License ModemManager with GNU Lesser General Public License, version 2.1. 2008-09-01 18:54:28 +03:00
Tambet Ingo
ebd99af6a0 Disable the HSO modem in addition to just closing the device on Enable(False). 2008-09-01 18:51:48 +03:00
Tambet Ingo
c56d5a257b Handle reading failure replies correctly everywhere. 2008-09-01 16:01:55 +03:00
Tambet Ingo
1bb60347b5 Implement reading IMEI, IMSI, manufacturer, model, and version (revision). 2008-09-01 15:45:55 +03:00
Tambet Ingo
209a6390cb Fix up HSO modem plugin. 2008-09-01 11:27:35 +03:00
Tambet Ingo
2087ca49b6 Fix another upper case inconsistency in the public API (SetApn). 2008-08-29 18:09:23 +03:00
Tambet Ingo
c71ae54f88 Include the missing mm-gsm-modem-hso.xml to EXTRA_DIST. 2008-08-29 14:29:26 +03:00
Tambet Ingo
3d9fc420d2 Update the NetworkManager and nm-applet patches.
Update the NetworkManager and nm-applet patches to work with the DBus API reorganization.
2008-08-29 13:13:00 +03:00
Tambet Ingo
424f514b02 Implement the more granular GSM interfaces as agreed on NM mailing list.
Convert all exisiting code over to new DBus interfaces.
2008-08-29 11:43:36 +03:00
Tambet Ingo
2d00b75341 Make the timeout handling simpler in the NMSerial class. 2008-08-28 10:52:00 +03:00