summaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
* add new utility to take GPS and AIS messages and fwd them via UDPHarald Welte2013-02-272-1/+188
| | | | this is useful if you wish to send them into gpsd, e.g.
* add support for encapsulating and forwarding GPS and AIS dataHarald Welte2013-02-271-0/+8
| | | | | | we simply convert the sysmocom specific unsolicited messages into an usock event which is transported to the client[s] who subscribed to it.
* add new cell_log program, scanning for networsk/cells and rf_locking BTSHarald Welte2012-06-012-1/+440
|
* shell: fix manual operator selectionHarald Welte2012-06-011-1/+1
|
* introduce new "Cell Info" EventHarald Welte2012-06-011-0/+9
|
* gsmd: fixing the missing prototype (Sudharshan S)erin_yueh2008-03-181-1/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4216 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Query Antenna Status (Erin Yueh)erin_yueh2008-03-061-0/+7
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4174 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: add vibrator at cmd (Sudharshan S)erin_yueh2008-02-261-1/+21
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4115 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: get battery status (Sudharshan S)erin_yueh2008-02-211-0/+10
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4091 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: bug fixed for some changes (Sudharshan S, Paulius Zaleckas)erin_yueh2008-02-181-6/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4084 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: add retrieving phone info (Erin Yueh)erin_yueh2008-02-151-0/+36
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4067 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: fix error handling in libgsmd-tool (Paulius Zaleckas)erin_yueh2008-02-082-1/+3
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4030 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: network registration query status (Paulius Zaleckas)erin_yueh2008-01-311-0/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3989 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: query network registration status (Erin Yueh)erin_yueh2008-01-241-0/+27
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3943 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: add 'lgsm_open_n_get' to retrieve the current country code (Sean Chiang)erin_yueh2008-01-181-0/+6
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3876 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: fix CMT_parse comma error (Sean Chiang)erin_yueh2008-01-171-0/+2
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3861 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: eliminate gcc warnings (Erin Yueh)erin_yueh2008-01-104-8/+16
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3807 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: add Call Forwarding function (Sean Chiang)erin_yueh2008-01-031-1/+56
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3760 99fdad57-331a-0410-800a-d7fa5415bdb3
* * src/util/event.c: (inds_handler):chris2007-12-211-1/+1
| | | | | | | Back out change - sms->stat just contains junk (uninitialised?) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3719 99fdad57-331a-0410-800a-d7fa5415bdb3
* * src/util/event.c: (inds_handler):chris2007-12-211-1/+1
| | | | | | | | Delivery status type is in sms->stat, not sms->payload.coding_scheme (which is always zero) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3715 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: set and get Voicemail number (Erin Yueh)erin_yueh2007-12-191-0/+29
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3684 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: conference call support (Sean Chiang)erin_yueh2007-12-172-5/+71
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3657 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: 2nd try for retrieving PIN status (Erin Yueh)erin_yueh2007-12-121-9/+13
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3636 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Bug 1082 - PIN Status Missing (Erin Yueh)erin_yueh2007-12-101-0/+9
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3621 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Provide Current Call status (sean_chiang)tick2007-12-041-0/+37
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3557 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Rewrite read, readrg and find of phonebook. (Sean Chiang)tick2007-12-031-48/+40
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3551 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Severe clean-up (Andrzej Zaborowski)tick2007-12-011-0/+1
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3546 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Submitting a PIN for authentication needs to respond with status ↵tick2007-12-013-13/+40
| | | | | | too.(Andrzej Zaborowski) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3545 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Modem power-up and -down result events.(Andrzej Zaborowski)tick2007-12-011-8/+25
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3544 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: Refactorying get_imsi from PHONEBOOK to PHONE (tick)tick2007-11-271-5/+15
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3519 99fdad57-331a-0410-800a-d7fa5415bdb3
* Print version number in libgsmd-tool.jserv2007-11-241-2/+10
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3503 99fdad57-331a-0410-800a-d7fa5415bdb3
* gsmd: fix typos and indentationmickey2007-11-233-33/+31
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3498 99fdad57-331a-0410-800a-d7fa5415bdb3
* [gsmd] New feature for power on/off GSM modem (Sean Chiang)tick2007-11-201-0/+8
| | | | 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: cleaning some dummy codes (Tick)tick2007-11-121-2/+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: Adding IMSI support (Jim Rayner)tick2007-10-311-0/+8
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3309 99fdad57-331a-0410-800a-d7fa5415bdb3
* handle CME and CMS errors (Erin Yueh)tick2007-10-251-1/+11
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3267 99fdad57-331a-0410-800a-d7fa5415bdb3
* Adding decoder TP-DCS, and it's based on 3GPP TS23.038 Clause 4. (Erin Yueh)tick2007-10-252-0/+4
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3265 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
* Added 'Ask Status report' option in shell.jserv2007-10-171-19/+16
| | | | | | | | | | | 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-171-1/+5
| | | | | | | | | | | | | | | 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
* remove 'struct llist_head' from phonebook messages becauselaforge2007-08-201-0/+10
| | | | | | | | | | | | | | | * 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
* Add retrieving phone's own subscriber number. (Andrzej Zaborowski)laforge2007-08-172-0/+23
| | | | git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2733 99fdad57-331a-0410-800a-d7fa5415bdb3
* SIM Phonebook access implementation.laforge2007-08-172-25/+149
| | | | | | | | | | | | | | | | | | | 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-171-2/+98
| | | | | | | | | | | | | 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-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* From: Andrzej Zaborowski <balrog@zabor.org>laforge2007-08-171-9/+67
| | | | | | | | | | | | | | | | | | | | | | | Date: Thu, 26 Jul 2007 00:32:38 +0200 Subject: [PATCH] SMSC and Preferred Storage operations. This adds setting and retrieval of SMS storage stats (memory type, used entries, all entries), and of the default service centre (SMSC) number for outgoing messages. The operation of setting a new SMSC number is untested because my SIM doesn't seem to allow this (that or I did something wrong). New "libgmsd-tool -m shell" commands for testing are also added. Other changes in this patch: * The third, optional, parameter to +CMGL: is a string, not an integer as I wrongly assumed earlier, this is now corrected. * Rename libgsmd API functions starting with lgsmd_.. to lgsm_.. for consistency with all other identifiers. * Move lgsm_send_simple() to libgsmd.c and add a prototype in lgsm_internals.h, this eliminates some compile-time warnings. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2720 99fdad57-331a-0410-800a-d7fa5415bdb3
personal git repositories of Harald Welte. Your mileage may vary