summaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
* Operator Selection (Andrzej Zaborowski)laforge2007-08-161-4/+73
| | | | | | | | | | | | | | | | | | | | | | | | This adds gsmd/libgsmd/libgmsd-tool commands to: * query available operators, * register to given operator, * register automatically (like gsmd did until now), * deregister, * get current operator name, * query signal quality, * query current connection state (a bit hacky, but it's the only way I found to satisfy the synchronous prototype in misc.h). The operator cache is not used as it wouldn't give any benefit here. Retrieving the list of present operators takes very long but there doesn't seem to exist any way around it and all other phones I used also take that long. The libgmsd call for registration to an automatically chosen operator now takes a parameter of a different type so all libgsmd clients need to be updated (this patch updates libgsmd-tool already, but not libmokogsmd which is not a part of gsmd project). git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2713 99fdad57-331a-0410-800a-d7fa5415bdb3
* From 5b7c50fd08b8f76f761958c8a8243e6c23118fa3 Mon Sep 17 00:00:00 2001laforge2007-08-161-0/+8
| | | | | | | | | | | | | | | | | | | | | From: Andrzej Zaborowski <balrog@zabor.org> Date: Thu, 12 Jul 2007 14:26:46 +0200 Subject: [PATCH] Incoming SMS events This is a proposed patch to emit a gsmd event when a new SMS arrives, also modifies libgsmd-tool to display the notification. It makes sms_cb.c compile but only really implements the bits necessary to make it build and for the notifications to work. I chose AT+CNMI mode 1 (i.e. store messages in memory and report the location through +CMTI, rather than print the message right away through +CMT) because the parser doesn't support multiline unsolicited responses - in fact it can't support those because in a situation when a normal command is executing and an unsolicited response comes in (which is the case when sending a message to yourself) it is impossible for the parser to distinguish whether the line after the unsolicited response is part of that response or part of the command's response. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2711 99fdad57-331a-0410-800a-d7fa5415bdb3
* From 294d27e78680d497da22e3a8ad679f50d1ba29e5 Mon Sep 17 00:00:00 2001laforge2007-08-161-23/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | From: Andrzej Zaborowski <balrog@zabor.org> Date: Wed, 11 Jul 2007 16:11:10 +0200 Subject: [PATCH] SMS support in gsmd and in libgsmd. This adds the proper support for sms related calls in libgsmd and their implementation in gsmd. I assumed that conversion between data coding schemes is to be done on the client side because the {packing,unpacking}* calls were exported. TEXT mode support is non-functional, but the code only has to be filled in the right places to make it work, if it is ever needed. I had been lucky to be able to test with the different kinds of messages with exotic formats because I just got a bunch of network messages today (urging to top-up the credit). I tried to not modify the libgsmd api, although I would prefer to have a totally different api, possibly with synchronous calls that just return the result of an operation, for a exmaple a whole list of messages, rather than the client waiting for an unknown number of events each with one message. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2710 99fdad57-331a-0410-800a-d7fa5415bdb3
* From: Andrzej Zaborowski <balrog@zabor.org>laforge2007-08-161-3/+5
| | | | | | | | | | | | | | | | | | | | | Date: Wed, 11 Jul 2007 16:03:16 +0200 Subject: [PATCH] Multiline commands support. Miscellaneous bugs. This adds support for commands like +CMGS and +CMGW that span mroe than one line and the lines can't be sent to modem as separate commands because every next line has to wait for a "> " prompt from modem before writing (otherwise beginnings of the lines get eaten). This patch also corrects a number of miscellaneous glitches that I have hit. I can split them each out if needed, but they are all quite obvious. The cms_error variable is introduced because there are CME and possibly other errors with the same codes, which resulted in that when I was sending a message and got error 42 ("congestion") on sending, openmoko-dialer asked for PIN because CMS event 42 happens to be PIN inquiry. The change in libgsmd-tool fixes the issue described by Philipp Zabel on the list, with usock locking up. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2709 99fdad57-331a-0410-800a-d7fa5415bdb3
* Flush stdout after handling each event.shoragan2007-07-121-0/+1
| | | | | | This should fix http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=606 git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2381 99fdad57-331a-0410-800a-d7fa5415bdb3
* * add (still incomplete) SMS and phonebook support from Sean Chianglaforge2007-04-151-0/+164
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1765 99fdad57-331a-0410-800a-d7fa5415bdb3
* * properly implement PIN/PUK handling throughout gsmd/libgsmd/utillaforge2007-03-101-7/+24
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1314 99fdad57-331a-0410-800a-d7fa5415bdb3
* don't power down the device before trying to register with the network ;)laforge2007-03-081-1/+0
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1280 99fdad57-331a-0410-800a-d7fa5415bdb3
* revert 'bug108' patch from tony guan. laforge2007-02-282-65/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1161 99fdad57-331a-0410-800a-d7fa5415bdb3
* resolved bug 108, please varify it. thks.tony_guan2007-02-282-1/+65
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1156 99fdad57-331a-0410-800a-d7fa5415bdb3
* - Add copyright / license notice to all source code fileslaforge2007-01-135-0/+110
| | | | | | | - Add some 'get operator name' skeleton git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@546 99fdad57-331a-0410-800a-d7fa5415bdb3
* add DTMF tone command to helplaforge2007-01-121-0/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@545 99fdad57-331a-0410-800a-d7fa5415bdb3
* - use talloc (of samba project) to debug memory allocations and simplify codelaforge2007-01-123-2/+71
| | | | | | | | | | | - introduce new ucmd_alloc() function - add DTMF support to gsmd, libgsmd and gsmd-util - fix crash of libgsmd when events don't have handlers registered - implement call progress for TI modem - split modem init string in separate commands to fit our parser git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@544 99fdad57-331a-0410-800a-d7fa5415bdb3
* use non-blocking I/Olaforge2007-01-101-0/+4
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@533 99fdad57-331a-0410-800a-d7fa5415bdb3
* use non-blocking i/o to prevent missing of eventslaforge2007-01-101-0/+4
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@532 99fdad57-331a-0410-800a-d7fa5415bdb3
* fix help messagelaforge2007-01-101-1/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@531 99fdad57-331a-0410-800a-d7fa5415bdb3
* fix lots of header-related issues with autotoolslaforge2007-01-081-0/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@520 99fdad57-331a-0410-800a-d7fa5415bdb3
* - clean up header files (all in include/gmsd now)laforge2006-10-242-4/+13
| | | | | | | | - finish vendor plugin support - add call progress indicator and signal quality unsolicited support to vendor_ti.c git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@120 99fdad57-331a-0410-800a-d7fa5415bdb3
* first working revision of gsmd, libgsmd and libgsmd-toollaforge2006-10-238-8/+148
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@115 99fdad57-331a-0410-800a-d7fa5415bdb3
* more gsmd/libgsm implementationlaforge2006-10-237-12/+140
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@114 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd passthrough mode now workinglaforge2006-10-221-0/+5
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@109 99fdad57-331a-0410-800a-d7fa5415bdb3
* some further gsmd/libgsmd worklaforge2006-10-223-3/+69
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@96 99fdad57-331a-0410-800a-d7fa5415bdb3
* - some more gsmd / libgsmd codelaforge2006-10-202-0/+73
- use autotools for build process git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@94 99fdad57-331a-0410-800a-d7fa5415bdb3
personal git repositories of Harald Welte. Your mileage may vary