Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 756
  • Last Modified:

Sending Username and Password with TC45

Hi!

I am currently programming a Siemens TC45 using the integrated Java environment (J2ME).

The APN I am connecting to requires the IPCP fields password and username to be filled in (the GGSN is rejecting any pdp-context request without these fields set).

As I want to use more than one simultaneously pdp-context I can not only use the at^sjnet command to specify the APN, username and password.

Consequently, I was hoping that the

at+cgdcont=1,"ip","myapn"
at+cgdata="ppp",1

would provide me with the possibility to negotiate PPP between the Java code and the TC45 GSM stack.

When I issue the at+cgdata command from the Java program it hangs until the command returns

CONNECT
~ }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }
'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~
 }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'
}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~
}#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'}
"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }
#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~
NO CARRIER

Could anyone please help me to establish a pdp-context using the at+cgdata from the Java code on the TC45?

Best Regards
Leif Einar
0
einaraune
Asked:
einaraune
1 Solution
 
einarauneAuthor Commented:
According to Siemens the only GPRS connection that is supported from Java is using the AT^sjnet command.

So, when using J2ME on the TC45 you can only utilise one of the three PDP-contexts the terminal supports. (Of course you may use the other pdp-contexts by using an external entity connecting via the RS232 port, but then the whole point about embedded Java seems to be gone ;-)

What a pitty.

Leif Einar
0
 
SimonTayCommented:
http://www.tdc.co.uk/gprs/tc45.htm has a program : externalcommands.jar which provides a modified dial command which may well do what you want.

Simon
0
 
Computer101Commented:
PAQed - no points refunded (of 50)

Computer101
E-E Admin
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now