summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [gsmd] New feature for power on/off GSM modem (Sean Chiang)tick2007-11-209-1/+79
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3449 99fdad57-331a-0410-800a-d7fa5415bdb3
* [gsmd] Adding waiting mode for libgsmd-tool shell. (Andrzej Zaborowski)tick2007-11-203-18/+52
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3448 99fdad57-331a-0410-800a-d7fa5415bdb3
* [gsmd] Adding atcmd_terminate_matching (remove from the queues any command ↵tick2007-11-203-2/+32
| | | | | | whose .ctx matches given)(Andrzej Zaborowski) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3447 99fdad57-331a-0410-800a-d7fa5415bdb3
* [gsmd] Adding timeout scheme, and merge gta01 wakeup scheme as machine ↵tick2007-11-1614-159/+277
| | | | | | plug-in with timeout. (L. Sean) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3430 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: cleaning some dummy codes (Tick)tick2007-11-125-443/+0
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3394 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: adding sleep mode into libgsmd-tool shell mode(Tick)tick2007-11-121-0/+9
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3393 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: return some meaningful value from set_baudrate (Andrew & Tick)tick2007-11-121-7/+10
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3392 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Adding hang up control(Andrew & Tick)tick2007-11-121-4/+3
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3391 99fdad57-331a-0410-800a-d7fa5415bdb3
* keeping track of current registration state internally in gsmd. Without this ↵tick2007-11-122-9/+26
| | | | | | 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
* gsmd: fix typos in event.hmickey2007-11-081-2/+2
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3375 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Adding IMSI support (Jim Rayner)tick2007-10-315-0/+43
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3309 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Mainly for working around the bug of GTA01 HW with moko3, but it can ↵tick2007-10-312-0/+77
| | | | | | 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
* gsmd: Fix the bug 928, that user cannot hang up call/cancel_atcmd until a ↵tick2007-10-313-35/+84
| | | | | | call is connected.(Andrzej Zaborowski) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3307 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: install ts0707 and ts0705 headersmickey2007-10-291-1/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3297 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: install ts0705 and ts0707 header files, they're now required.mickey2007-10-291-1/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3296 99fdad57-331a-0410-800a-d7fa5415bdb3
* formal version generation for gsmd-version.h considering releasejserv2007-10-251-2/+7
| | | | | | | version or not (svn repository). git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3275 99fdad57-331a-0410-800a-d7fa5415bdb3
* Patch to enable CPHS ( Common PCN Handset Specification),tick2007-10-251-2/+41
| | | | | | | 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
* handle CME and CMS errors (Erin Yueh)tick2007-10-255-79/+124
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3267 99fdad57-331a-0410-800a-d7fa5415bdb3
* adding return rc to lgsm_send_simple (Andrzej Zaborowski)tick2007-10-251-6/+2
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3266 99fdad57-331a-0410-800a-d7fa5415bdb3
* Adding decoder TP-DCS, and it's based on 3GPP TS23.038 Clause 4. (Erin Yueh)tick2007-10-254-0/+158
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3265 99fdad57-331a-0410-800a-d7fa5415bdb3
* Get a correct message index value on reading a SMS (Erin Yueh)tick2007-10-251-0/+6
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3264 99fdad57-331a-0410-800a-d7fa5415bdb3
* Expose lgsm_signal_quality in order to replace lgsm_get_signal_quality.jserv2007-10-171-2/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3204 99fdad57-331a-0410-800a-d7fa5415bdb3
* Improvement for finding / reading phonebook records in shell.jserv2007-10-171-104/+52
| | | | | | | | | | | | 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
* Improvement for find and read phonebooks in gsmd.jserv2007-10-175-25/+240
| | | | | | | | | | | | 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
* Added 'Ask Status report' option in shell.jserv2007-10-175-20/+22
| | | | | | | | | | | 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
* SMS status reportjserv2007-10-172-12/+48
| | | | | | | | | | | | | | | 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
* http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=834 ↵jserv2007-10-171-6/+26
| | | | | | | | | | | | | 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
* Fixlet to libgsmd-tool does not flush stdout in atcmd mode.jserv2007-09-121-0/+2
| | | | | | | 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
* fix mlbuf handling (Phillip Zabel)laforge2007-08-232-5/+9
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2806 99fdad57-331a-0410-800a-d7fa5415bdb3
* remove 'struct llist_head' from phonebook messages becauselaforge2007-08-202-3/+11
| | | | | | | | | | | | | | | * 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
* gsmd: make it slightly more forgiving:mickey2007-08-192-9/+4
| | | | | | | | 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
* gsmd: remove ChangeLog, no one expect me used itmickey2007-08-191-3/+0
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2743 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: also allow ERROR as answer for the alive timer.mickey2007-08-191-2/+5
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2742 99fdad57-331a-0410-800a-d7fa5415bdb3
* Change copyrigt to OpenMoko and contributorslaforge2007-08-171-1/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2738 99fdad57-331a-0410-800a-d7fa5415bdb3
* Add Headers to pkginclude (Philipp Zabel <philipp.zabel@gmail.com>)laforge2007-08-171-1/+2
| | | | | | | | | | 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
* Add a flag to allow LFCR as a valid linebreak. (Alex Osborne)laforge2007-08-173-6/+21
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2736 99fdad57-331a-0410-800a-d7fa5415bdb3
* Change alive check and first commands to bare "AT"laforge2007-08-171-2/+2
| | | | | | | | | 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
* Add Broadcom BCM2132 vendor plugin (Alex Osborne)laforge2007-08-173-1/+119
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2734 99fdad57-331a-0410-800a-d7fa5415bdb3
* Add retrieving phone's own subscriber number. (Andrzej Zaborowski)laforge2007-08-176-0/+98
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2733 99fdad57-331a-0410-800a-d7fa5415bdb3
* mlbuf in gsmd struct (Andrzej Zaborowski)laforge2007-08-172-26/+30
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2732 99fdad57-331a-0410-800a-d7fa5415bdb3
* Ignore [WCDMA] messages in HTC Universal.laforge2007-08-171-1/+8
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2731 99fdad57-331a-0410-800a-d7fa5415bdb3
* HTC TI modem sequence fixlet.laforge2007-08-171-3/+6
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2730 99fdad57-331a-0410-800a-d7fa5415bdb3
* Wait for the AT Interpreter Ready message.laforge2007-08-171-1/+10
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2729 99fdad57-331a-0410-800a-d7fa5415bdb3
* Use vendor specific ext_chars.laforge2007-08-175-2/+6
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2728 99fdad57-331a-0410-800a-d7fa5415bdb3
* Implement GSMD version printout (Matt Mets <matt.mets@cibomahto.com>)laforge2007-08-172-1/+14
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2727 99fdad57-331a-0410-800a-d7fa5415bdb3
* SIM Phonebook access implementation.laforge2007-08-176-80/+328
| | | | | | | | | | | | | | | | | | | This patch adds primitive-but-working support for SIM phonebook access, including phonebook memory storage and entry read/write/delete. Also, libgsmd-tools shell is modified to perform listing actions. API changes: lgsm_pb_read_entryies -> lgsm_pb_read_entries lgsm_pb_list_storage (new): List of supported phonebook memory storage. lgsm_pb_set_storage (new); Select phonebook memory storage. lgsmd_pb_del_entry -> lgsm_pb_del_entry lgsmd_pb_write_entry -> lgsm_pb_write_entry git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2726 99fdad57-331a-0410-800a-d7fa5415bdb3
* From: Andrzej Zaborowski <balrog@zabor.org>laforge2007-08-174-3/+158
| | | | | | | | | | | | | | | | Date: Tue, 31 Jul 2007 22:26:36 +0200 Subject: [PATCH] Operations on the preferred operators list. This makes use of the AT+CPOL variants to add / delete / list entries in the preferred operators list on the SIM. There's some inconsistency, similarly as with operator selection, in that we return operator names in long alphanumeric format but we take only operators in numeric format as parameters. Either the client will have to convert between the formats or we should always use for example the long alphanumeric format, or maybe do something else. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2725 99fdad57-331a-0410-800a-d7fa5415bdb3
* From: Andrzej Zaborowski <balrog@zabor.org>laforge2007-08-171-18/+24
| | | | | | | | | | | | | | | Date: Tue, 31 Jul 2007 22:28:28 +0200 Subject: [PATCH] Correctly split long usock reads into packets. This is a patch for an unrelated to the above discussion timing issue in libgsmd. In particular, when the modem responds fast enough, gsmd generates usock packets fast enough for libgsmd to read multiple packets in a single read and concatenate them thus discarding all packets but first. This happens on Neo1973 when requesting for example the list of preferred operators or all operators or, sometimes, list of short messages. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2724 99fdad57-331a-0410-800a-d7fa5415bdb3
* From: Andrzej Zaborowski <balrog@zabor.org> ↵laforge2007-08-177-31/+202
| | | | | | | | | | | | | Date: Fri, 27 Jul 2007 19:39:15 +0200 Subject: [PATCH] Cell Broadcast message decoding and presentation in libgsmd-tool. This time Cell Broadcast is tested to work, I should have made tests earlier. Now I'm correctly getting a CB message with the human readable name of the city and district when I'm connecting. In the previous patches the CB PDU was not being decoded at all. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2723 99fdad57-331a-0410-800a-d7fa5415bdb3
* From: Andrzej Zaborowski <balrog@zabor.org>laforge2007-08-177-44/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Date: Fri, 27 Jul 2007 14:29:44 +0200 Subject: [PATCH] Multiline unsolicited responses parsing. +CMT, +CBM and +CDS responses two lines long in PDU mode and the parser has problem with them. As it was mentioned earlier there's no way for the parser to know if a new line is part of the most recent command response or unsolicited response, or a completely new unsolicited response, without looking at the contents of the first line. My idea is that the parser for the particular response decides if the response is too short, and returns -EAGAIN in which case the AT parser will append the following line to the response and resubmit it to the response parser. The disadvantage is that the generic parser gets one more special case to remember about, but it works quite well, hopefully there are no more cases where we will need to modify the parser. (We may need to use a separate multiline buffer (like the current mlbuf variable) to account for situations when a multiline unsolicited response comes in the middle of receiving a different response, which is also possible. Also, mlbuf should probably be moved into the parser state struct instead of being a global). This patch also moves initialisation of SMS options to after we are registered to the network, so that we don't get errors from the modem. Perhaps we want to have a dynamic list of callbacks to call on succesfull registration. Among other changes also prevents setting dev_state.on if the radio powering-on fails. --- include/gsmd/event.h | 8 +++++ include/gsmd/sms.h | 1 + src/gsmd/atcmd.c | 26 +++++++++++++++++ src/gsmd/sms_cb.c | 73 ++++++++++++++++++++++++------------------------ src/gsmd/unsolicited.c | 8 +++++ src/gsmd/usock.c | 21 ++++++++++++-- src/util/event.c | 10 +++---- 7 files changed, 103 insertions(+), 44 deletions(-) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2722 99fdad57-331a-0410-800a-d7fa5415bdb3
personal git repositories of Harald Welte. Your mileage may vary