Siemens Tc65 GPRS trouble

I've tried the following (simplified code for brevity):

ATCommand at =new ATCommand(false);

String response = ata.send("AT^SJNET=gprs,internet,\"\",\"\"\r");

HttpConnection c = (HttpConnection)Connector.open("http://www.google.nl/");

int rc = c.getResponseCode();

The last line generates the following exception: "java.io.IOException: Profile could not be activated". What does this mean and how do I fix it? (Note that if I give a 'ATD*99***#' command on a hyperterminal I do establish some kind of connection as it starts generating characters.)

[737 byte] By [EvilBroa] at [2007-11-27 4:17:14]
# 1
Hai,This might be related to the SJNET command send to the ATParser.Please try with the following command: ata.send( "AT^SJNET=\"gprs\",\"internet\",\"\",\"\",\"\",0")Regards,Mano
manoPa at 2007-7-12 9:23:50 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

I recommend to use the Connector.open() methode to define bearer and apn. In that case the AT Command is not needed. Details can be found in the HTML API Spec (SocketConnection).

HttpConnection c = (HttpConnection)Connector.open("http://www.google.nl;bearer_type=gprs;access_point=internet");

That should work :o)

TC65_Insidera at 2007-7-12 9:23:50 > top of Java-index,Java Mobility Forums,Java ME Technologies...