Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Thuraya sm2500 gprs connection with tcp/ip stack " Normal Termination by NCP" problem

Status
Not open for further replies.

zaltun

Newbie level 1
Joined
Jun 14, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,294
Thuraya sm2500 gprs connection with tcp/ip stack " Normal Termination by NCP" problem

Hi all,
We are making a board that will make a gprs connection over thuraya sm 2500 module. The problem is the sm-2500 doesnt have tcp/ip stack implemented.
So we are using the microchip tcp/ip stack 3.75 which is converted to CCS compiler with 18F46K20.
After sending ,
AT+CGDCONT = 1,"IP","get"
ATD*99#
I get connect and then PPP starts (many chars comes and goes)
but soon I get "Normal Termination by NCP" and disconnects.

Hope someone can help me.
Thanks.

while(TRUE) {

if (!ppp_is_connected() && !ppp_is_connecting()) {
printf(lcd_putc,"\fDialing");
delay_ms(1000);
fprintf(MODEM,"AT+cmee=2\r");
delay_ms(1000);
fprintf(MODEM,"ATE1V1&D2&C1S0=0\r");
delay_ms(1000);
fprintf(MODEM,"AT+CGDCONT = 1,\"IP\",\"get\"\r");
delay_ms(1000);
resp=ppp_connect(ppp_username, ppp_password, ppp_phonenumber);

if (resp==MODEM_BUSY) {
printf(lcd_putc,"\fBusy Signal");
delay_ms(2000);
}
else if (resp==MODEM_NO_DIALTONE) {
printf(lcd_putc,"\fNo Dialtone");
delay_ms(2000);
}
else if (resp!=MODEM_CONNECTED) {
printf(lcd_putc,"\fDial Error");
delay_ms(2000);
}
else {
printf(lcd_putc,"\f%LUbps", connected_baudrate);
printf(lcd_putc,"\nNegotiating PPP");
}

}

StackTask();
HTTPTask();
LCDTask();
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top