[Gta04-owner] Modem logs

Neil Jerram neil at ossau.homelinux.net
Wed Nov 7 19:41:24 CET 2012


Denis 'GNUtoo' Carikli <GNUtoo at no-log.org> writes:

> On Tue, 06 Nov 2012 18:44:11 +0000
> Neil Jerram <neil at ossau.homelinux.net> wrote:
>
>> Denis 'GNUtoo' Carikli <GNUtoo at no-log.org> writes:
>> 
>> > Hi,
>> >
>> > I found a way to get the modem logs:
>> 
>> This is great!  Do you have an example of the output?
> $ ./show_msm_messages.rb telnet
> [TS 829023732509] <HIGH>  (rfgsm_mc.c:402)
[...]

> Maybe we could use that to see what happens before/after the USB reset
> of the modem (the problem where /dev/ttyHS* disapear, for instance
> during a call)?

Yes indeed, that's what I was thinking too.

Here's what I did to set this up on QtMoko:

  # apt-get install mercurial ruby
  # cd /root
  # mkdir src
  # cd src
  # hg clone https://code.google.com/p/qcombbdbg/

Then just part of your patch, since I will run ruby directly on GTA04:

  root at neo:~/src/qcombbdbg# hg diff
  diff -r b47921522aaf scripts/tools/dbgupload.rb
  --- a/scripts/tools/dbgupload.rb	Thu Aug 16 00:59:05 2012 +0200
  +++ b/scripts/tools/dbgupload.rb	Wed Nov 07 18:32:27 2012 +0000
  @@ -69,7 +69,8 @@
   # Get firmware version
   #
   STDERR.print "[*] Querying firmware revision... "
  -version = @diag.get_extended_build_id[:mob_sw_rev]
  +version = "2.5.13Hd"
  +#version = @diag.get_extended_build_id[:mob_sw_rev]
   STDERR.puts "Found #{version}"
   
   unless DEVICE_OFFSETS.include?(version)

Then I wrote the following into /opt/qtmoko/bin/fast_charge - since this
has an entry "Fast Charge Mode" in the Tools menu but doesn't currently
do anything useful:

  #!/bin/sh
  echo "Modem diagnostics..."
  cd /root/src/qcombbdbg/scripts/tools
  ./show_msm_messages.rb /dev/ttyHS_Diagnostic | grep ERROR | tee /root/modemlog-$$

(I also then needed to rename /opt/qtmoko/bin/fast_charge to
/opt/qtmoko/bin/fast-charge.)

Now I can enable the modem diagnostics by choosing "Fast Charge Mode".
(Ironically, the effect is more like "Fast Discharge Mode", because
enabling the diagnostics does seem to eat a lot of CPU!)

Now I just need the modem crash to reproduce...

         Neil


More information about the Gta04-owner mailing list