Commit Graph

235 Commits

Author SHA1 Message Date
jserv f1b7cbfd7e Fixlet to dead code in cpmb_detect_cb.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3502 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-24 18:56:26 +00:00
jserv 10e507ef81 Indentation with consistent coding style of gsmd.
Remove C++ style comments.


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3501 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-24 18:52:38 +00:00
mickey 4735be6287 gsmd: fix typos and indentation
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3498 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-23 20:30:33 +00:00
mickey d411f56451 gsmd: add missing license headers
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3497 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-23 20:17:13 +00:00
tick c6d41650a8 [gsmd] slightly changed the cpmb callback because rc could be used uninitialised, and avoids using strtok() on a constant string (Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3451 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-20 09:10:06 +00:00
tick 059bd363a8 [gsmd] sorry forget to add the new file (Sean Chiang)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3450 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-20 06:19:55 +00:00
tick 66ce291b39 [gsmd] New feature for power on/off GSM modem (Sean Chiang)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3449 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-20 06:05:28 +00:00
tick ce08f5ee38 [gsmd] Adding waiting mode for libgsmd-tool shell. (Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3448 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-20 04:19:04 +00:00
tick 6ad8e1931d [gsmd] Adding atcmd_terminate_matching (remove from the queues any command whose .ctx matches given)(Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3447 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-20 04:17:35 +00:00
tick 5e9fde8743 [gsmd] Adding timeout scheme, and merge gta01 wakeup scheme as machine plug-in with timeout. (L. Sean)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3430 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-16 08:55:01 +00:00
tick cd687c0c2f gsmd: cleaning some dummy codes (Tick)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3394 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-12 09:42:38 +00:00
tick 5cd3cb1f92 gsmd: adding sleep mode into libgsmd-tool shell mode(Tick)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3393 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-12 09:41:54 +00:00
tick 687b3d7ae1 gsmd: return some meaningful value from set_baudrate (Andrew & Tick)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3392 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-12 09:41:03 +00:00
tick 54119f964d gsmd: Adding hang up control(Andrew & Tick)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3391 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-12 09:39:37 +00:00
tick 2d4b954be9 keeping track of current registration state internally in gsmd. Without this the"gsmd->dev_state.registered" variable had bogus values. (Andrew)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3390 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-12 09:38:04 +00:00
mickey 00277d6968 gsmd: fix typos in event.h
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3375 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-11-08 12:59:29 +00:00
tick df2acb0b0e gsmd: Adding IMSI support (Jim Rayner)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3309 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-31 06:42:58 +00:00
tick 68f58c51e2 gsmd: Mainly for working around the bug of GTA01 HW with moko3, but it can also solve the start up timing issue. (Tick)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3308 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-31 06:41:45 +00:00
tick f97ac00fa6 gsmd: Fix the bug 928, that user cannot hang up call/cancel_atcmd until a call is connected.(Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3307 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-31 06:40:26 +00:00
mickey 894fcad7ad gsmd: install ts0707 and ts0705 headers
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3297 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-29 08:09:25 +00:00
mickey 6e007a18f3 gsmd: install ts0705 and ts0707 header files, they're now required.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3296 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-29 07:59:50 +00:00
jserv 1f4e20745a formal version generation for gsmd-version.h considering release
version or not (svn repository).


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3275 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-25 18:57:25 +00:00
tick 0304fd5ff6 Patch to enable CPHS ( Common PCN Handset Specification),
and retrieve the voicemail number from SIM card for TI vendor.(Erin Yueh)


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3268 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-25 11:56:22 +00:00
tick bd3f1498cc handle CME and CMS errors (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3267 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-25 11:53:03 +00:00
tick b8b0521b4e adding return rc to lgsm_send_simple (Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3266 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-25 11:48:53 +00:00
tick 9e6cee624e Adding decoder TP-DCS, and it's based on 3GPP TS23.038 Clause 4. (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3265 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-25 10:35:26 +00:00
tick a4ee05b694 Get a correct message index value on reading a SMS (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3264 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-25 10:25:43 +00:00
jserv da0eabc5ec Expose lgsm_signal_quality in order to replace lgsm_get_signal_quality.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3204 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-17 08:27:28 +00:00
jserv b4818eb1c8 Improvement for finding / reading phonebook records in shell.
From: Sean Chiang <sean_chiang@openmoko.com>                                        
Subject: [PATCH] improvement for find and read phonebooks in shell

This patch improves the functions to find and read phonebooks in shell.
Besides prr and pf, I add two new commands pRr and pRf to retrieve the
phonebook.


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3203 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-17 06:20:14 +00:00
jserv 5e98804057 Improvement for find and read phonebooks in gsmd.
From: Sean Chiang <sean_chiang@openmoko.com>
Subject: [PATCH] Improvement for find and read phonebooks in gsmd

This patch is an improvement for find and read phonebooks.
After clients make a request to find / read phonebooks, then clients
should make a request to retrieve all the records.


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3202 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-17 06:18:34 +00:00
jserv 7247d56f67 Added 'Ask Status report' option in shell.
From: Andrzej Zaborowski <balrogg@gmail.com>

I also moved the .ask_ds field from struct gsmd_sms into struct
gsmd_sms_submit because it seemed more logical being a property
of SMS-SUBMIT PDU.


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3201 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-17 06:14:20 +00:00
jserv 6a95defd83 SMS status report
From: Erin Yueh <erin_yueh@openmoko.com>
Subject: [PATCH] SMS status report

I made a patch for SMS status report. It can change SMS-Submit messages
and ask for a status report. When  the destination address receives our
message, the service center will send a SMS-STATUS-REPORT to us. We can
tell what messages we sent by TP-MR (message reference number) value and
can know the sending result by TP-ST (Status) value from status report
messages.


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3200 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-17 06:10:26 +00:00
jserv 370e88780f http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=834
From: Kristian Mueller <kristian@mput.de>
Subject: [PATCH] libgsmd-tool does not allow sms with more than one word

libgsmd-tool only allows for command strings without spaces.
SMS messages with more than one word will be parsed as multible commands.
The patch introduces SMS message text in bracket and fixes a NULL pointer
reference on mailformed "ss" commands.


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3199 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-10-17 04:30:24 +00:00
jserv d5cbcad65c Fixlet to libgsmd-tool does not flush stdout in atcmd mode.
PR833 - http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=833


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2957 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-09-12 17:32:23 +00:00
laforge e1e1b68385 fix mlbuf handling (Phillip Zabel)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2806 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-23 04:44:29 +00:00
laforge 7814f977e3 remove 'struct llist_head' from phonebook messages because
* pointer in data structures passed along sockets is a bad idea, if that socket
  is later a network socket and the pointer size of both ends is different
* we cannot include linux_list.h into libgsmd, since libgsmd is LGPL and
  linux_list.h GPL licensed

libgsmd and gsmd are actually not using that list header, only the shell
program is effected massively.  I hope somebody will clean up after me.  At
least this now should solve the issue with non-compiling libgsmd users (such as
libmokogsmd).


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2748 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-20 15:53:47 +00:00
mickey 18f5f4d70a gsmd: make it slightly more forgiving:
1.) remove early-alive trigger
2.) don't use AT as initial command since TI firmware errors out


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2744 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-19 21:03:58 +00:00
mickey ca4ddb181f gsmd: remove ChangeLog, no one expect me used it
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2743 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-19 21:02:38 +00:00
mickey daf6af8bad gsmd: also allow ERROR as answer for the alive timer.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2742 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-19 20:20:54 +00:00
laforge 7eb970a1b1 Change copyrigt to OpenMoko and contributors
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2738 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 10:03:26 +00:00
laforge 4999c1777e Add Headers to pkginclude (Philipp Zabel <philipp.zabel@gmail.com>)
src/util/pin.h is a local header to libgsmd-tool. The pin.h
header of libgsmd is in include/libgsmd.
The attached patch adds libgsmd/sms.h and pin.h to the list of
installed headers.


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2737 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 10:03:06 +00:00
laforge 24a43c94ef Add a flag to allow LFCR as a valid linebreak. (Alex Osborne)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2736 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 10:02:26 +00:00
laforge bdd62a21ce Change alive check and first commands to bare "AT"
The BCM2132 responds ERROR to ATV and ATE when it is in the radio off
mode (AT+CFUN=0).  This causes the alive check and first command to both
fail so this changes them both to just bare AT. (Alex Osborne)


git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2735 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 10:02:02 +00:00
laforge 5f80949dc6 Add Broadcom BCM2132 vendor plugin (Alex Osborne)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2734 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 10:01:25 +00:00
laforge ad708e46d7 Add retrieving phone's own subscriber number. (Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2733 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 08:36:48 +00:00
laforge 1dc0db218c mlbuf in gsmd struct (Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2732 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 08:36:11 +00:00
laforge c6aa90bcc3 Ignore [WCDMA] messages in HTC Universal.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2731 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 08:35:29 +00:00
laforge 4a27ed37e2 HTC TI modem sequence fixlet.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2730 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 08:35:10 +00:00
laforge babd25d431 Wait for the AT Interpreter Ready message.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2729 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 08:34:52 +00:00
laforge 94bfe1d72a Use vendor specific ext_chars.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2728 99fdad57-331a-0410-800a-d7fa5415bdb3
2007-08-17 08:34:29 +00:00