Commit Graph

170 Commits

Author SHA1 Message Date
41f560524d Fixed device default to "/dev/modem" 2010-05-14 12:43:00 +00:00
754a5dbb7f Device, hardware flow and retry come from the configuration file if not given 2010-05-12 14:44:57 +00:00
d64de55f2d Added another couple of CMS errors 2010-05-12 12:03:35 +00:00
cbf256f9dc Added CMS error 321 2010-05-12 11:59:20 +00:00
0a6e11eecc Longer timeout when calling (should fix some modems eg Openmoko Freerunner) 2010-05-12 11:38:56 +00:00
d362a87362 Hopefully reporting the correct phone number when listing messages 2010-05-11 17:12:07 +00:00
810ea309ad Actually send an event upon incoming messages 2010-05-11 16:59:07 +00:00
1620f6a144 The Openmoko Freerunner may be identified differently 2010-05-11 16:22:18 +00:00
db0e2a5f89 Fixed a crash 2010-05-11 15:38:58 +00:00
6fa34aa104 Implemented the mute control over AT+CMUT (may not fit the hardware) 2010-05-11 14:12:02 +00:00
27799ec00f Now able to fetch the battery status 2010-05-11 13:44:09 +00:00
3931a523d3 Tighter check when checking for potential echo 2010-05-11 13:06:12 +00:00
29cb9922da Now able to read messages 2010-05-11 12:05:34 +00:00
9ba6e09f06 Fetching messages in text mode for the moment 2010-05-11 10:31:10 +00:00
0bb228fe93 Fetching the messages in PDU mode (without any conversion yet) 2010-05-11 09:46:04 +00:00
510ee0fff1 Partly implemented unsollicited and intermediate service notifications 2010-05-10 13:22:49 +00:00
efe1a37c46 Remove the timeout handler if a command was considered answered 2010-05-10 01:55:25 +00:00
9a8c41f8dc Now rejecting calls correctly 2010-05-10 01:39:08 +00:00
7fafe3261f Implemented full API access to +COLP and +CLIP 2010-05-10 01:32:42 +00:00
efe5e8811e Detect if a call is ongoing 2010-05-09 22:18:42 +00:00
0f1244eb5f Fetching incoming messages as they are reported 2010-05-09 21:35:22 +00:00
a7aca56b5b Minor optimization in the contact handling event trigger 2010-05-09 18:39:21 +00:00
b9197def55 Implemented call presentation (partly tested) 2010-05-09 18:34:24 +00:00
7568bb814e Detecting when phone calls terminate 2010-05-09 17:58:23 +00:00
02bca3b11f Correct error messages when the baudrate cannot be set 2010-05-09 02:04:08 +00:00
1c9304df2b Always report an error upon +CME ERROR 2010-05-09 01:08:03 +00:00
983eb1c371 The CME ERROR code 100 is "Unknown error" 2010-05-08 14:42:27 +00:00
1e735470f5 Forgot to inject "\r\n" in the timeout handler 2010-05-08 14:29:46 +00:00
e3c993c66e Re-inject the current command on timeout and then ensure the operation worked 2010-05-08 13:03:58 +00:00
5fb92d3189 Obtaining the functionality status before really using the phone 2010-05-08 03:07:47 +00:00
35164ad8dc Send a noop command after 2 seconds of inactivity 2010-05-08 02:32:26 +00:00
e003ea830e Use the correct error code when parsing +CME and +CMS errors 2010-05-08 02:00:07 +00:00
f90494db0b Gave triggers the optional possibility to consider a command answered 2010-05-08 01:45:44 +00:00
df6c2f84c3 Hardened the management of callbacks 2010-05-08 01:31:43 +00:00
2dfa1e0cec Let the modem command generation be done in its own class too 2010-05-08 01:23:56 +00:00
f0e4d57e23 Let the GSMCommand class have its own file 2010-05-08 00:22:44 +00:00
0f84098442 Try to fallback on a corresponding trigger when unable to parse a line 2010-05-07 23:51:34 +00:00
bc082be52d The quirks really need be distinct bitwise 2010-05-07 17:54:00 +00:00
6169060acb Make sure to always set 8 bits communication with no parity 2010-05-07 13:07:53 +00:00
2e6ef2b6f2 Make sure flow control is disabled when not explicitly required 2010-05-07 12:59:54 +00:00
81ac501def This seems to allow the modem to work with -F even when not supporting it 2010-05-07 12:54:53 +00:00
dd6f561357 Revert the whole "suffix" story 2010-05-07 12:52:38 +00:00
4d5b33d259 Signal and operator reporting is now performed in a Panel applet 2010-05-07 00:40:51 +00:00
8e47df04cc Enable phone functionality only once the SIM card is ready 2010-05-02 02:56:42 +00:00
f57a3d7846 Can now sometimes determine voice calls among incoming calls 2010-05-02 02:09:11 +00:00
4204bd82f9 Enable the extended ring format by default 2010-05-02 02:01:42 +00:00
b59e76248b Also detect incoming calls in the extended format 2010-05-02 01:52:14 +00:00
17dacffd0b Added a function to answer calls 2010-05-02 01:48:19 +00:00
c972e1a914 Incoming calls are now reported as well 2010-05-02 01:43:11 +00:00
1de8062925 Ignore errors when setting the baudrate (sigh) 2010-05-02 01:28:24 +00:00
d0597d6cd1 Also set the modem to verbose mode once settled 2010-05-02 01:12:41 +00:00
6527392636 Allow a different suffix to be specified by command queued 2010-05-02 01:01:46 +00:00
8e8c887592 Reverted last changes 2010-05-02 00:46:39 +00:00
da50d43cae Have a global quirk about carriage returns instead 2010-05-01 20:22:10 +00:00
6f39850241 Added another quirk for the Openmoko Freerunner 2010-05-01 19:49:02 +00:00
3a2c08debb Fixed sending the SIM PIN on the Openmoko Freerunner 2010-05-01 19:12:03 +00:00
e19a39ef2e Now consider that just "\r" or "\n" are enough to break a line 2010-05-01 18:38:27 +00:00
44ca5038ed Also support answers to COPS with only 3 arguments 2010-05-01 17:32:07 +00:00
65bd9451f8 Always enable the phone functionality 2010-05-01 17:05:09 +00:00
1001b38564 The Openmoko Freerunner's model identification string has quotes 2010-05-01 16:28:21 +00:00
c9bb017597 Support the Openmoko Freerunner's differing syntax when entering the SIM PIN code 2010-05-01 16:19:24 +00:00
df5e598e0b Some code shouldn't have survived the latest debugging session 2010-05-01 15:49:29 +00:00
ba6d6b7f6a Let hardware flow be optional 2010-05-01 05:25:53 +00:00
02833219c9 There was probably a race condition when trying to settle with the modem 2010-05-01 03:30:53 +00:00
a48cbb2c4c On Linux realloc(0xg00d, 0) may return NULL without being an error 2010-05-01 03:04:29 +00:00
e2c3b06bda Was probably having two read watchers in some cases 2010-05-01 02:50:49 +00:00
bce582c623 Letting gsm.c be more robust 2010-05-01 02:22:57 +00:00
b6b619c1af Hopefully fixed the last issue with tracking the PIN code status 2010-04-30 16:08:11 +00:00
3cd62b7fab Another attempt at getting SIM PIN interaction right 2010-04-30 15:45:54 +00:00
68d3c2a338 Implemented progress bar while checking the PIN code (untested) 2010-04-30 15:30:29 +00:00
ca60e90bc6 Tracking correctly if messages are sent 2010-04-30 15:16:43 +00:00
02d871d159 Avoid a potential memory leak 2010-04-30 03:57:18 +00:00
f9b27fcd10 Trying to avoid insertion of commands while in PDU mode 2010-04-30 03:55:05 +00:00
4e99b47eab Avoid some warnings 2010-04-30 03:27:38 +00:00
529471d850 Print out errors coherently 2010-04-30 03:25:54 +00:00
db7c61e9b9 Successfully sending SMS messages 2010-04-30 02:11:46 +00:00
9dff3cb94e Almost able to send SMS messages by now 2010-04-29 16:09:15 +00:00
9faadcf143 Attempt to convert contacts' names to UTF-8 2010-04-28 23:11:23 +00:00
7059a15680 Really implemented the callback mechanism this time 2010-04-28 22:57:15 +00:00
8bd75384fb Avoid a compilation warning 2010-04-28 22:55:01 +00:00
c9cd795a14 Much better error handling (should also track when the SIM is ready) 2010-04-28 22:53:36 +00:00
db87372b65 Only set the operator format once registered 2010-04-28 22:24:22 +00:00
0bb685f962 Improved status handling a lot (should register automatically now) 2010-04-28 21:24:05 +00:00
efe3a0a347 Send an event when the PIN code is known to be accepted already 2010-04-28 19:55:49 +00:00
2ce576a7cf Added a button to call the contact selected (untested) 2010-04-28 00:46:00 +00:00
ab895ba9b1 Probably fix compilation on Linux 2010-04-28 00:12:57 +00:00
99a36e265e Using more enumerated types 2010-04-28 00:09:46 +00:00
09bd6c126c Using more enumerated types 2010-04-27 23:57:48 +00:00
278bccfebe Default to the long operator format 2010-04-27 23:55:35 +00:00
4b6b043ec0 Tracking which events are not handled 2010-04-27 22:31:32 +00:00
fd5b309a3d Trying to remove ambiguities from the API 2010-04-27 22:18:41 +00:00
6f980ceb95 Optimizing GSM event reports 2010-04-27 21:35:45 +00:00
5fd3dde778 Trigger the PIN check outside of the GSM class 2010-04-27 21:03:32 +00:00
8e3da2cf3a Been working on registration and operators 2010-04-27 20:16:19 +00:00
5bf508fcfe Fetching contacts (with an encoding issue remaining) 2010-04-27 17:54:04 +00:00
378fac58ef More convenient handling of answers from the modem 2010-04-27 16:45:26 +00:00
800aeae74e Support for entering the PIN code 2010-04-27 14:31:19 +00:00
c9e02876a5 Updating the signal quality every two seconds 2010-04-27 02:58:33 +00:00
c44f799513 Translating error messages 2010-04-27 02:22:11 +00:00
08eca73b50 Slightly improved error tracking 2010-04-27 02:15:14 +00:00