Re: [RFI] UDH in MO messages

"Bruno David Rodrigues" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <028c01c1c6f3$32f98350$6e01290a@hobbes>
----- Original Message -----
From: "Andreas Fink" <[email protected]>
To: "Bruno David Simões Rodrigues" <[email protected]>
Cc: <[email protected]>
Sent: Friday, March 08, 2002 10:19 PM
Subject: Re: [RFI] UDH in MO messages


> I've found the problem why my Siemens TC35 doesnt want to work with latest
CVS.
>
> in previous releases it worked like this:
>
> 2002-03-02 17:14:10 [6] DEBUG: AT2[/dev/ttyS0]: --> AT\Q3^M
> 2002-03-02 17:14:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK
> 2002-03-02 17:14:10 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CPIN?^M
> 2002-03-02 17:14:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CPIN: READY
> 2002-03-02 17:14:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK
> 2002-03-02 17:14:10 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGF=0^M
> 2002-03-02 17:14:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK
>
>
> Now its doing AT+CPIN?^M, reads the +CPIN answer and then continues.
> the remaining "OK" is forgotton. The result of that is that further
> down the road, the communication between AT command and answer gets
> screwed up.
>
> I'm committing a patch in a few minutes. I'm surprised that no one
> else had this problem. Bruno, what was the intention of
>
>
http://www.kannel.3glab.org/cgi-bin/viewcvs.cgi/gateway/gw/smsc_at2.c.diff?r
1=1.25&r2=1.26
>
> line 700 / 719 ?

I've changed because as you can see in
http://www.kannel.3glab.org/cgi-bin/viewcvs.cgi/gateway/gw/smsc_at2.c.diff?r
1=1.24&r2=1.26

line 759+, it was returning -10 and everything worked because every other
line that called this
function were expecting a -1 as error and therefore we never got an error.

When I corrected the -10 to -1 at revision 1.25, every check started to work
but CPIN don't,
because some modems reply with the +CPIN and OK and other don't (or reply
the OK much
later).

I'm now doing some patches to at2 ;) and double-checking everything with my
ericsson and nokia.





>
>
>
> --
>
> Andreas Fink
> Fink-Consulting
>
> ------------------------------------------------------------------
> Tel: +41-61-6932730 Fax: +41-61-6932729  Mobile: +41-79-2457333
> Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland
> E-Mail:  [email protected]  Homepage: http://www.finkconsulting.com
> ------------------------------------------------------------------
> Something urgent? Try http://www.smsrelay.com/  Nickname afink
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.