doc - update for v47
Merge branch 'master' of github.com:radekp/qtmoko
make USSD requests work
Implement support for multi-Line USSD responses
qmplayer - fix painting on GTA02
phonebook - use UCS2 encoding only for AT+CPBR=x,x command

Don't leave UCS2 on after the phonebook records are read and switch
back to GSM encoding.

This allows us to get rid of decodeOperatorName funciton.

UCS2 is proably good for phone book because of diacritics. E.g. oFono
use it that way too.

Here is some IRC talk about it:

[19:19] <radekp> struppi: USSD patch is now merged, one more question - what is the ,15 after AT+CUSD good for?
[19:23] <radekp> hmm maybe i have asked it already but forgot it sorry in this case ;-)
[19:26] <radekp> struppi: btw i have found out that after reading phonebook the encoding is left to UCS2
[19:27] <radekp> i think correct is to set UCS2 ecoding before starting reading the book and then set it back to GSM
[19:27] <radekp> that way we will not need the AT+CSCS="IRA"
[19:27] <radekp> and we will also get operator name and other stuff correctly
[21:34] <struppi> radekp, it's the data coding scheme (dcs)
[21:34] <struppi> if you want to look, syntax is described here: http://www.3gpp.org/ftp/Specs/html-info/27007.htm
[21:35] <struppi> but if you hate scrolling through a million-page long .doc file, you can also look here: http://www.g1sat.com/files/HNS_9201_AT_Reference.htm#AT_plusCUSD
[21:37] <struppi> dcs is only metioned in these documents. The full description of it is here: http://www.3gpp.org/ftp/Specs/html-info/23038.htm
[21:42] <struppi> radekp: in the document from the URL i gave you first (3GPP TS 27.007), in the description of AT+CSCS it says:
[21:42] <struppi> "GSM"GSM 7 bit default alphabet (3GPP TS 23.038 [25]); this setting causes easily software flow control (XON/XOFF) problems.
[21:43] <struppi> so i have no idea if it's a good idea to set the encoding to GSM
[21:43] <struppi> is XON/XOFF relevant at all to us?
[23:49] <struppi> radekp: ok, reread those documents
[23:50] <struppi> radekp: ",15" means "GSM encoding, Language unspecified"
[23:51] <struppi> that's basically the only one that works at all for me
[23:52] <struppi> and even better, when i set the encoding to "GSM" (via +cscs), my gta04 also displays german "umlauts" in the ussd responses
[23:52] <struppi> so maybe the way you propose is the right thing
[23:52] <struppi> i don't know how bad those XON/XOFF problems will hit us, though
[05:23] <radekp> struppi: hmm i am not sure about it - but i think XON/XOFF is for software flow control...
[05:24] <radekp> struppi: i hope we have HW flow control - i checked oFono and they are using GSM encoding too
gta04 doc - update udev rules and use emdebian cross compiler
gta04 - working headset.state
This should correctly recognize all allowed USSD codes
Merge branch 'master' of github.com:radekp/qtmoko
Merge remote-tracking branch 'struppi/ussd_parser'

[10:09] <struppi> https://github.com/strupppi/qtmoko/commit/b0b1e2f27d39627742542c634029a2e4573a056b
[10:10] <struppi> with this patch, AT+CUDS should only be used for codes that should produce USSDs
[10:11] <struppi> the previous also applied to other stuff
[10:12] <struppi> like lots of stuff from that list: http://www.arcx.com/sites/gsmfeatures.htm
[10:12] <radekp> struppi: oki, should i pull it?
[10:13] <struppi> i don't know if all this call forwarding stuff is correctly handled yet
[10:14] <struppi> i think you can pull it. shouldn't make things worse :)
[10:15] <radekp> oki :)
gta04 - make headset detection and audio state switching work
gta04 gps - update to kernel 3.5

3.5 kernel can power on/off gps automatically when /dev/ttyO1 is
opened. We still have gps-toggle.sh script in case if no data are
comming.

In gps-poweron/poweroff we do rfkill block gps - which should power
on/off gps antenna.

Also get rid of gta02 scripts.
gta04 - turn off gps antena on startup

This seems to save a few mA in suspend
gta04 gps-poweron.sh - get rid of the setty line

It makes gps serial not working
Remove initializing of bmp085

It's not needed in 3.5 kernel and it causes dmesg errors:

http://lists.goldelico.com/pipermail/gta04-owner/2012-August/002852.html
qtopia - add qReadFile and qWriteFile macros

They are useful for e.g. easy writing to sysfs files.
use qWriteFile and qReadFile instead of custom functions
fix num of bytes in qWriteFile
neosuspend - compute current consuption from charge_now and suspend time

This will give us average current in suspend:

http://lists.goldelico.com/pipermail/gta04-owner/2012-August/002853.html

Thanks to Neil Brown for the idea and formula.