Harald Welte
ea175de97e
gsmd/AT@COPS: don't use cmd before it is allocated
2013-10-14 19:50:43 +02:00
Harald Welte
8781da796c
cell_log: Suppress syslog()ing CME ERRORS which are no errors
2013-10-13 18:26:44 +02:00
Harald Welte
4f7067bee0
wavecom: Don't do AT+CFUN=1 in wavecom_inittsettings
...
wavecom_initsettings is called _after_ the global initsettings,
i.e. we would loose anything that gsmd core has configured before
the AT+CFUN. This is particularly the case for AT+CMGF=0 (PDU mode).
2013-10-13 18:24:19 +02:00
Harald Welte
2aa67b809f
wavecom/sysmocom: use AT@COPS if available, instead of AT+COPS
...
In certain sysmocom proprietary versions of the wavecom modem,
we have a non-blocking operator scan command called AT@COPS=?,
which we can use instead of AT+COPS=?.
The wavecom vendor plugin checks at start time if the command is
available. If yes, iti s used in case a libgsm client is asking for an
operator scan, instead of the standard AT+COPS=? variant.
2013-10-13 18:22:44 +02:00
Holger Hans Peter Freyther
58a9b679e9
misc: Update the debian packaging for 0.1.0
2013-10-02 20:24:48 +02:00
Harald Welte
25c512a7b6
some modems (like wavecom) require a CR after the Ctrl+Z in PDU mode
2013-09-29 15:39:28 +02:00
Harald Welte
7792900d30
increment library version as we broke the ABI
2013-09-29 14:56:46 +02:00
Harald Welte
a72236a1d0
permit gsmd and libgsm to handle multiple instances
...
By using differntly-named unix domain sockets, we can run
multiple gsmd instances in parallel.
2013-09-29 14:56:44 +02:00
Harald Welte
292e73a08c
make gsmd fail if the serial device disappears
...
If the serial device disappears (e.g. because of a USB bus reset),
there's no point continuing. We simply exit() gsmd and wait for
somebody else (init?) to re-spawn us.
2013-09-29 14:56:41 +02:00
Harald Welte
0768e7c1ba
libgsmd/sms: make sure we have sufficient space for long MSISDN
...
warning: breaks ABI
2013-09-29 13:46:31 +02:00
Holger Hans Peter Freyther
92996ec6d5
util: Remove shadowin of the readset parameter
2013-09-24 01:36:52 +02:00
Holger Hans Peter Freyther
ed26988ead
debian: Add the skeleton for a Debian package of gsmd
2013-09-24 01:36:46 +02:00
Holger Hans Peter Freyther
32bf396bb5
lgsm: Allow to set any user data for the gsm handle
2013-09-24 01:36:42 +02:00
Holger Hans Peter Freyther
a1f259323f
misc: Ignore various files of Openmoko GSMD
2013-09-24 01:36:38 +02:00
Holger Hans Peter Freyther
a9e0fd355a
misc: Enable silent rules and such
2013-09-24 01:36:33 +02:00
Holger Hans Peter Freyther
de8f1175dc
cell_log: Use a custom RF-Lock handling to unlock the GSM network
...
Send a lock/unlock to the NITB application using the CTRL interface
and custom messages.
2013-03-17 10:40:26 +01:00
Holger Hans Peter Freyther
6cdf70598a
wavecom: Fix unaligned memory access and silent stack corruption
...
The parameters were uint16_t and we asked the libc to make a
store of uint32_t. So 16bit were written to the wrong part of
the struct and on ARM this is causing unaligned memory access.
Use the %hx to make a uint16_t store and avoid the above issue.
GDB
#0 0x4d4d0a20 in _IO_vfscanf () from /lib/libc.so.6
(gdb) bt
#0 0x4d4d0a20 in _IO_vfscanf () from /lib/libc.so.6
#1 0x4d4d5d54 in __isoc99_vsscanf () from /lib/libc.so.6
#2 0x4d4d5cd0 in __isoc99_sscanf () from /lib/libc.so.6
#3 0x400a597c in ?? () from /usr/lib/gsmd/libgsmd-vendor_wavecom.so
Cannot access memory at address 0x3
Clang:
vendor_wavecom.c:114:21: warning: format specifies type 'unsigned int *' but the argument has
type 'u_int16_t *' (aka 'unsigned short *') [-Wformat]
sscanf(tok, "%x", &aux->u.cell_info.ci);
~~ ^~~~~~~~~~~~~~~~~~~~
%hx
2013-03-17 10:40:26 +01:00
Holger Hans Peter Freyther
68a9cd68aa
cell_log: Move from LOG_INFO to LOG_NOTICE for the operator messages
...
We are ignoring the debug and info levels in the default configuration
of the syslog. Change it to notice to make sure it is written to the
log.
2013-03-16 14:43:58 +01:00
Holger Hans Peter Freyther
ee65ed386b
cell_log: Fix typo in the debug log message
2013-03-16 14:43:58 +01:00
Harald Welte
da770f8f34
cell_log: power-cycle the modem on CME ERROR 515
2013-03-15 11:25:30 +01:00
Harald Welte
3ec111676f
Add run-time changing of gsmd log level via libgsm/libgsmd-tool
2013-03-15 11:07:12 +01:00
Harald Welte
4c14b6eb41
vendor_wavecom: Reset the modem on initialization using AT+CFUN=1
...
In some cases the modem might be stuck once we start up, so it's best to
re-initialize it at gsmd startup.
2013-03-15 10:32:51 +01:00
Harald Welte
cf9ad6fe4d
update copyright notice
2013-03-14 20:52:35 +01:00
Harald Welte
4aeb40093b
gsmd: default log level is INFO, not DEBUG
2013-03-14 20:51:28 +01:00
Harald Welte
d9f04cf80f
Convert DEBUG to ERROR/INFO/NOTICE where applicable
2013-03-14 20:50:20 +01:00
Harald Welte
93b5b8fe5e
gsmd: introduce command line option for log level
2013-03-14 20:50:04 +01:00
Harald Welte
805406e9fb
wavecom/sysmocom: Directly send GPS/AIS via UDP to gpsd
...
This avoids having to have another client program which then passes
messages from gsmd into gpsd. Rather, gpsd can directly receive the
messages via UDP.
2013-03-14 20:20:50 +01:00
Harald Welte
06253f3620
vendor_wavecom: Make sure MCC of first reported cell is not zero
2013-03-02 12:39:37 +01:00
Harald Welte
ab81993da2
gsmd: Support Operator Names with parenthesis in their long/short name
...
The previous parser caused parsing errors when recognizing parenthesis
'()' inside a network operator name like "O2 (Germany) GmbH"
We now keep track if we are inside a quote, and ignore parenthesis until
the end of the quote mark.
2013-03-02 01:40:51 +01:00
Harald Welte
dd46f418be
add new utility to take GPS and AIS messages and fwd them via UDP
...
this is useful if you wish to send them into gpsd, e.g.
2013-02-27 19:05:34 +01:00
Harald Welte
821f3af2ac
add support for encapsulating and forwarding GPS and AIS data
...
we simply convert the sysmocom specific unsolicited messages into
an usock event which is transported to the client[s] who subscribed
to it.
2013-02-27 18:08:17 +01:00
Harald Welte
28e25ae42d
HACKS: Temporary hacks to make it work for wavecom / rf_lock
2012-06-01 23:29:11 +02:00
Harald Welte
b0b7419a68
add new cell_log program, scanning for networsk/cells and rf_locking BTS
2012-06-01 23:28:46 +02:00
Harald Welte
d5e1d344c5
add .gitignore file
2012-06-01 22:01:25 +02:00
Harald Welte
be32141745
add new (incomplete) Wavecom vendor module
2012-06-01 21:59:34 +02:00
Harald Welte
177b57c5c4
shell: fix manual operator selection
2012-06-01 21:59:08 +02:00
Harald Welte
b0c5b8a269
introduce new "Cell Info" Event
2012-06-01 21:58:06 +02:00
Harald Welte
eaea30c774
use talloc_zero_size instead of talloc_size
2012-06-01 21:57:27 +02:00
mickey
fe338bf5c9
add note about status
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4899 99fdad57-331a-0410-800a-d7fa5415bdb3
2009-01-23 01:02:38 +00:00
mickey
224af73699
remove changelog, it's incomplete
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4898 99fdad57-331a-0410-800a-d7fa5415bdb3
2009-01-23 01:00:12 +00:00
mickey
312d4782d4
add missing include of strl.h. patch by khorben. closing OM #2184
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4897 99fdad57-331a-0410-800a-d7fa5415bdb3
2009-01-23 00:59:23 +00:00
erin_yueh
d822e692f1
adjust return length for ticket #1591 (Erin Yueh)
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4618 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-09-02 08:26:48 +00:00
laforge
45973084b2
* fix segfault with generic machine plugin (by Jamal Selim)
...
the generic machine plugin doesn't have initsettings, therefore we cannot
blindly assume it exists.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4505 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-07-03 16:23:41 +00:00
erin_yueh
a5668a610b
gsmd: fix clip & colp parser problem (Erin Yueh)
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4245 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-03-25 10:33:45 +00:00
erin_yueh
233f48b64d
gsmd: fixing the missing prototype (Sudharshan S)
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4216 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-03-18 05:43:01 +00:00
erin_yueh
98fd14b2b4
gsmd: add AT commands for GTA01 devices (Erin Yueh)
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4215 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-03-18 05:35:59 +00:00
erin_yueh
636e8ecfdf
gsmd: Query Antenna Status (Erin Yueh)
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4174 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-03-06 09:35:12 +00:00
erin_yueh
dc73a4a864
gsmd: revert to r4158 (Erin Yueh)
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4162 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-03-04 06:57:19 +00:00
erin_yueh
ca7a544737
gsmd: change TE character set to UCS2 (olv)
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4159 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-03-04 03:56:36 +00:00
erin_yueh
5d459abf66
gsmd: sms data structure (Paulius Zaleckas)
...
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4116 99fdad57-331a-0410-800a-d7fa5415bdb3
2008-02-26 09:03:03 +00:00