| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
By using differntly-named unix domain sockets, we can run
multiple gsmd instances in parallel.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
In some cases the modem might be stuck once we start up, so it's best to
re-initialize it at gsmd startup.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
we simply convert the sysmocom specific unsolicited messages into
an usock event which is transported to the client[s] who subscribed
to it.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4245 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4215 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4174 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4162 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4159 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4115 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4101 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4098 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4091 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4084 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4067 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4066 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4061 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4060 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3994 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3965 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3964 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3943 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3915 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3876 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3861 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3853 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3808 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3807 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3791 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3784 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3760 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3759 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3758 99fdad57-331a-0410-800a-d7fa5415bdb3
|
|
|
|
| |
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3684 99fdad57-331a-0410-800a-d7fa5415bdb3
|