<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmoko-gsmd/src/gsmd, branch master</title>
<subtitle>Openmoko gsmd/libgsmd</subtitle>
<id>https://git.gnumonks.org/cgit/openmoko-gsmd/atom?h=master</id>
<link rel='self' href='https://git.gnumonks.org/cgit/openmoko-gsmd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/'/>
<updated>2013-10-14T17:50:43+00:00</updated>
<entry>
<title>gsmd/AT@COPS: don't use cmd before it is allocated</title>
<updated>2013-10-14T17:50:43+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-10-14T17:50:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=ea175de97e6ecf87129a7412a67ce3146f56b5d1'/>
<id>urn:sha1:ea175de97e6ecf87129a7412a67ce3146f56b5d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wavecom: Don't do AT+CFUN=1 in wavecom_inittsettings</title>
<updated>2013-10-13T16:24:19+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-10-13T16:24:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=4f7067bee006a52b3ae0338fb430c0a3b8b2ac9a'/>
<id>urn:sha1:4f7067bee006a52b3ae0338fb430c0a3b8b2ac9a</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>wavecom/sysmocom: use AT@COPS if available, instead of AT+COPS</title>
<updated>2013-10-13T16:22:44+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-10-13T16:22:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=2aa67b809f5b06fb86a6f8dfc556bfb7c9169729'/>
<id>urn:sha1:2aa67b809f5b06fb86a6f8dfc556bfb7c9169729</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>some modems (like wavecom) require a CR after the Ctrl+Z in PDU mode</title>
<updated>2013-09-29T13:39:28+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-09-29T13:39:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=25c512a7b622daf2efcf67ab707d12ca09b172ab'/>
<id>urn:sha1:25c512a7b622daf2efcf67ab707d12ca09b172ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>permit gsmd and libgsm to handle multiple instances</title>
<updated>2013-09-29T12:56:44+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-09-27T20:42:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=a72236a1d0effb1fe985f5685d40e6dc33ab65a3'/>
<id>urn:sha1:a72236a1d0effb1fe985f5685d40e6dc33ab65a3</id>
<content type='text'>
By using differntly-named unix domain sockets, we can run
multiple gsmd instances in parallel.
</content>
</entry>
<entry>
<title>make gsmd fail if the serial device disappears</title>
<updated>2013-09-29T12:56:41+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-09-27T20:48:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=292e73a08c3445b4aa96057e559dbcec44b0d8f7'/>
<id>urn:sha1:292e73a08c3445b4aa96057e559dbcec44b0d8f7</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>wavecom: Fix unaligned memory access and silent stack corruption</title>
<updated>2013-03-17T09:40:26+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>zecke@selfish.org</email>
</author>
<published>2013-03-16T21:05:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=6cdf70598ab71bad6b1aff95b9be9d972e581747'/>
<id>urn:sha1:6cdf70598ab71bad6b1aff95b9be9d972e581747</id>
<content type='text'>
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", &amp;aux-&gt;u.cell_info.ci);
                             ~~   ^~~~~~~~~~~~~~~~~~~~
                             %hx
</content>
</entry>
<entry>
<title>Add run-time changing of gsmd log level via libgsm/libgsmd-tool</title>
<updated>2013-03-15T10:07:12+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-15T10:07:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=3ec111676ff9e34058b3bf2e482a236f341c10eb'/>
<id>urn:sha1:3ec111676ff9e34058b3bf2e482a236f341c10eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vendor_wavecom: Reset the modem on initialization using AT+CFUN=1</title>
<updated>2013-03-15T09:32:51+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-15T09:32:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=4c14b6eb4183905dea8f0a2cea695cebb174815f'/>
<id>urn:sha1:4c14b6eb4183905dea8f0a2cea695cebb174815f</id>
<content type='text'>
In some cases the modem might be stuck once we start up, so it's best to
re-initialize it at gsmd startup.
</content>
</entry>
<entry>
<title>update copyright notice</title>
<updated>2013-03-14T19:52:35+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-14T19:52:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=cf9ad6fe4dda247c47d0df10ef95fcaa45d87558'/>
<id>urn:sha1:cf9ad6fe4dda247c47d0df10ef95fcaa45d87558</id>
<content type='text'>
</content>
</entry>
</feed>
