CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PPP GPRS on Pic18F452

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
puppie7777



Joined: 09 Jun 2004
Posts: 25
Location: Monterey, CA

View user's profile Send private message

PPP GPRS on Pic18F452
PostPosted: Thu Jun 17, 2004 4:06 am     Reply with quote

Hi,
i am developing an application on Pic18F452 which need to build in PPP to connect to the internet through GPRS.
Now i can get the ACK of PAP from the GPRS modem (with a "welcome" word), but instead of responsing me an IPCP config request, the modem responsed me Terminating Request of LCP twice (two times for different ID), after that followed one request for config of PAP, and then come out with an error message: +CME ERROR: 133 and then NO CARRIER ... ...
Below is the sinffer data on my Rx pin (Rs232), anybody got any good suggestion will be highly appreciated!
00 FF
0D 0A 4F 4B 0D 0A 0D 0A 4F 4B 0D 0A 0D 0A 4F 4B
0D 0A 0D 0A 4F 4B 0D 0A 0D 0A 43 4F 4E 4E 45 43
54 20 31 31 35 32 30 30 0D 0A

(response of modem GPRS initialization)

7E
FF 7D 23 C0 21
7D 21 7D 21 7D 20 7D 36
7D 21 7D 24 7D 25 DC
7D 22 7D 26 7D 20 7D 20 7D 20 7D 20
7D 27 7D 22
7D 28 7D 22
7D 23 7D 24 C0 23
26 B4
7E

(LCP resuest)


7E
FF 7D 23 C0 21
7D 21 7D 22 7D 20 7D 28 7D 23 7D 24 C0 23
23 EB
7E

7E
FF 7D 23 C0 21
7D 22 7D 22 7D 20 7D 29 7D 23 7D 25 C0 23 7D 25
30 7A
7E

7E
FF 7D 23 C0 21
7D 21 7D 22 7D 20 7D 28 7D 23
7D 24 C0 23
23 EB
7E

7E
FF 7D 23 C0 23
7D 21 7D 21 7D 20 7D 33 7D 28 6A 6F 68 6E 5F 64 6F 65 7D 25 64 75 6D 6D 79 7D
26 A2
7E
(PAP Request)

7E
FF 7D 23 C0 23
7D 22 7D 23 7D 20 7D 2D 7D 28
57 65 6C 63 6F 6D 65 21
BF 5D
7E
(PAP ACK with Welcome! word)

(by right, from now should response me IPCP request ... ...)

7E
FF 7D 23 C0 21 7D 25 7D 23 7D 20 7D 24 85 72
7E
(LCP Terminating Req)

7E
FF 7D 23 C0 21 7D 25 7D 24 7D 20 7D 24 80 FE
7E
(LCP Terminating Req)

7E
FF 7D 23 C0 23 7D 21 7D 21 7D 20 7D 33 7D
28 6A 6F 68 6E 5F 64 6F 65 7D 25 64 75 6D 6D 79 7D 26 A2
7E
(PAP Config Req)

7E
FF 7D 23 C0 21 7D 25 7D 25 7D 20 7D 24 5C A4
7E 7E FF 7D 23 C0 23 7D 21 7D 21 7D 20 7D 33 7D
28 6A 6F 68 6E 5F 64 6F 65 7D 25 64 75 6D 6D 79
7D 26 A2
7E

7E
FF 7D 23 C0 23 7D 21 7D 21 7D 20 7D 33 7D 28
6A 6F 68 6E 5F 64 6F 65 7D 25 64 75 6D 6D 79 7D
26 A2
7E

0D 0A 2B 43 4D 45 20 45 52 52 4F 52 3A
20 31 33 33 0D 0A 0D 0A 4E 4F 20 43 41 52 52 49
45 52 0D 0A

(+CME Error: 133 ... NO CARRIER...)

Thx!
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Jun 17, 2004 4:13 am     Reply with quote

Your question has nothing to do with the PIC processor or the CCS compiler. I suggest you ask this question in another forum where you will find more experts in your subject.
puppie7777



Joined: 09 Jun 2004
Posts: 25
Location: Monterey, CA

View user's profile Send private message

PostPosted: Thu Jun 17, 2004 7:04 pm     Reply with quote

Thanks for your reply. i am just hoping that there's other people who also developing similar application, maybe they got some experience ... ...
djpark



Joined: 02 Mar 2004
Posts: 49

View user's profile Send private message

PostPosted: Sat Jun 19, 2004 8:26 am     Reply with quote

It is Off-Topic indeed, but I sense you lost hope, so...

The typical reason for such error is caused by auth error, commonly the GSM/GPRS module is insisting on CHAP while you are expecting PAP for auth.

If you are using a Siemens module or phone, "at^sgaith=1" to force PAP may help.

-- dj
puppie7777



Joined: 09 Jun 2004
Posts: 25
Location: Monterey, CA

View user's profile Send private message

PostPosted: Sun Jun 20, 2004 9:19 pm     Reply with quote

Thanks so much for djPark!

I have solved the problem, it is due to my GPRS isp, they changed the AT command. now my ppp connection works fine.

Thx!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group