GPRS activation

184 views
Skip to first unread message

Atef Ben Nasr

unread,
Jul 26, 2013, 6:51:11 AM7/26/13
to java...@googlegroups.com
Hello guys, 
i need to access an URL from my TC65i, i found the example developped by Florent here.
However, even though this serves my purpose utterly, i'm using GET instead of POST, but still that is not the issue, the problem is that apparently the TC65i module isn't configured to support GPRS connection or so i understood, i get an error message:
java.io.IOException: Profile could not be activated
- com.sun.midp.io.j2me.socket.Protocol.openPrim(), bci=94
I'd really appreciate any available help whether as a diagnostic of the error origin or a much more appreciated solution to the problem.

-Atef

Nikita Kapitonov

unread,
Jul 26, 2013, 8:44:35 AM7/26/13
to java...@googlegroups.com
Hello Atef!

Usually, I get this error from time to time if my GPRS connection hangs or some kind of GSM error appears. But then, if I try again some times, usually connection can be restored. Check if your SIM-card supports GPRS connection by inserting in a smartphone or modem, and also check your GPRS parameters like APN, login, password.

Best regards, | С уважением,
Nikita Kapitonov | Никита Капитонов

2013/7/26 Atef Ben Nasr <atefben...@gmail.com>

--
javacint group - http://www.javacint.com/
---
You received this message because you are subscribed to the Google Groups "Cinterion Java enabled chips support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javacint+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Atef Ben Nasr

unread,
Jul 26, 2013, 8:51:27 AM7/26/13
to java...@googlegroups.com, nikita.k...@teplomonitor.ru
Yeah done that, checked the connection from the chip and it works fine on phone.
I would like to know how to configure the APN and other configurations for the connection,i think that might be the issue.
PS: Recently the TC has been acting weird, with putty i get few seconds to put on AT commands before an error message from putty is screened and i can no longer type anything on. I tried the autostart switch off thing provided with the wtk, it says the app is unable to connect to the modem. This is really frustrating, any idea what might be the cause, a reset may be for the device?

Atef Ben Nasr

unread,
Jul 26, 2013, 11:04:38 AM7/26/13
to java...@googlegroups.com, nikita.k...@teplomonitor.ru
Okay update:
I used CDGCONT to configure the APN and the protocol, and i used CGATT to make sure the GPRS connection is attached, and all is well the modem responds with OK for both, but still i can't manage to open the url.
At least im advancing.

Nikita Kapitonov

unread,
Jul 26, 2013, 11:55:06 AM7/26/13
to java...@googlegroups.com
Use AT^SJNET to set your GPRS settings. Execute AT+CSCS="GSM" before it, if your encoding could be changed somewhere before.

Atef Ben Nasr

unread,
Jul 29, 2013, 11:23:14 AM7/29/13
to java...@googlegroups.com, nikita.k...@teplomonitor.ru
works like a charm, muches gracias :)

eppie

unread,
Aug 19, 2013, 10:28:44 AM8/19/13
to java...@googlegroups.com

Why not using the Connector factory class for creating a http connection?

Nikita Kapitonov

unread,
Aug 20, 2013, 4:28:12 AM8/20/13
to java...@googlegroups.com
If you know you want to open HTTP connection, why would you use Connector factory?

Nikita


2013/8/19 eppie <epp...@gmail.com>

--
Reply all
Reply to author
Forward
0 new messages