Hello,

Selon Michael 'Mickey' Lauer <mic...@vanille-media.de>:

> Am Mittwoch, den 04.03.2009, 22:49 +0100 schrieb Alain2210:
> > > Ah right, that needs mergin.
> >
> > When you will have some time.
>
> I'll have some time next week -- taking my A780 with me (while my wife
> goes skiing with the guys, I'll work to finance her luxury lifestyle ;),
> ah well, at least I'll enjoy the evenings in .at and get some fresh air.

Thanks for the time you have spend on it. I have seen the commit on fso. And I
have tried them.

I have some observations : first, it works better thanks again. I have use
the e6c36e917cc75809f60fa587b68bbf6be0c5bf58

1) I still need a modified version of mediator.py for freescale_neptune. It is
quite the previous one : only timeout suppressed. I put it in attachment.
It is the diff1.

2) With this modem, I can do without problem (it seems) CFUN=0 or CFUN=1, and I
like it, because It do need the antenna often (for exemple when testing sms like
yesterday)

3)
>
> > 2009.03.03 19:58:56 ogsmd.modems.abstract.channel WARNING  UNHANDLED
> > INTERMEDIATE: +CPBR:
> 1,"888",129,"005F006D006500730073006100670065007200690065"
> > 2009.03.03 19:59:17 ogsmd.channel WARNING  <CallChannel via /dev/mux2>: Got
> > unicode input. Trying to convert to plain string...

Now it works. I can confirm it.

4)
> >
> > (I did only some clean up)
> >
> > By the way, I have 4 phonebooks : SM, FD, ON et SD. But frameworkd does not
> know
> > two of it.
>
> Oh really? Ok, then we need to fix that in the Neptune mediator.py. I
> had to override SimListPhonebooks, hardcoding it, since the modem does
> not support +CPBS=?

I have test it again and found finally only SM,ON and FD, the last one is
emergency number. So I have patch mediator.py of freescale_neptune (diff2 in
attachment) and const.py of gsm folder. I put the two patch in attachment.

By the way zhone only retrieve the SM one (that is contact), why ?

5)

> > 2009.03.03 19:59:33 ogsmd.channel DEBUG    <CallChannel via /dev/mux2>: got
> 253
> > bytes from: '\r\n+CMT:
> >
>
111\r\n07913386094000F00405851210F83900903030120061406CC13A08367BC166A0304816D3C160A0E99B4D2E83C6EF369C5E06C9CB6374587E2E87C5EC3208A40395E1F5F4BC0CB2BEEB7310FC5DB797F52079798C0ECBCF6539C8FEA6CBCBA0F1BB0DA79741F3BA1C249697D37A74FB2D4EB3CBAEF1BB0D\r\n'
> > 2009.03.03 19:59:33 ogsmd.modems.abstract.channel WARNING  UNHANDLED
> > INTERMEDIATE:
>
> Oh, now I see it. +CMT comes in via /dev/mux2, not via /dev/mux0 *sigh*.
> We have to change channel mapping (again) or teach the
> NeptuneCallChannel to deal with +CMT.
>

I works now, in the sense that I only get in frameworkd.log :
2009.03.15 19:58:03.235 ogsmd.device         INFO     incoming message
(unbuffered) from 21018
but I see nothing else (either in zhone) is it normal ? And I do not get the
text of the sms.


6) I did not succeed in getting sms from sim card, il the following sense :
I get this in frameworkd.log : after AT+CMGL=2

'+CMGL:
1,2,25\r\n07913386094000F0110100810000FF11E3F2380D2ACFE9A0BA1B549ECFC369FFFF\r\nOK\r\n'

It seems that in const.py another header is expected :
# +CMGL: 1,1,"",125
PAT_SMS_PDU_HEADER = re.compile(
'(?P<index>\d+),(?P<status>\d+),(?:"(?P<name>[^"]*)")?,(?P<pdulen>\d+)' )

that is the freescale_neptune does not give the "name".

Moreover after that I get another problem :

2009.03.16 00:01:59.678 ogsmd.channel        ERROR    (ignoring)
unhandled exception in response callback: string index out of range
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/gsm/channel.py",
line 414, in handleResponseToRequest
    ok_cb( reqstring.strip(), response )
  File
"/usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/modems/abstract/mediator.py",
line 936, in responseFromChannel
    sms = ogsmd.gsm.sms.SMS.decode( line, direction )
  File
"/usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/gsm/sms.py",
line 123, in decode
    sms.parse( bytes )
  File
"/usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/gsm/sms.py",
line 798, in parse
    (self.addr, skip) = self._parse_address( bytes, offset )
  File
"/usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/gsm/sms.py",
line 160, in _parse_address
    address = PDUAddress.decode( bytes[offset:offset+address_len] )
  File
"/usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/gsm/sms.py",
line 68, in decode
    number = bcd_decode( number )
  File
"/usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/gsm/convert.py",
line 49, in bcd_decode
    if s[-1] == "f":
IndexError: string index out of range

I do not know the the problem come from.

Sincerely,

Alain

Attachment: mediator.py.diff1
Description: Binary data

Attachment: mediator.py.diff2
Description: Binary data

--- const.py.orig       2009-03-15 21:12:36.000000000 +0100
+++ const.py    2009-03-16 00:16:15.000000000 +0100
@@ -689,6 +689,7 @@
     "own": "ON",
     "missed": "MC",
     "emergency": "EN",
+    "emergency2": "FD",
     # FIXME: Do we need more?
 } )
 
_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to