ATD*99***1# gives unspecified GPRS error when Java is running

654 views
Skip to first unread message

Lee Karwai

unread,
Jun 16, 2014, 1:17:30 AM6/16/14
to java...@googlegroups.com
Dear all,

My Java application is require to send ATD*99***1# to the EHS6 and the response I received after is "+CME ERROR: unspecified GPRS error". But when I execute ATD*99***1# without switching on the Java application it is working fine.

I have tried to configure the PDP context via AT^SJNET (at^sjnet=“gprs”,”sunsurf”,””,””,””,30) but still it does not fixed the issue.

Therefore would like to know:
1. Is ATD*99***1# not available when Java is running?
2. What are the equivalent API or AT command to ATD*99***1# when Java is running?

Ondřej Janovský

unread,
Jun 16, 2014, 5:04:31 AM6/16/14
to java...@googlegroups.com
Hello,

did you set GPRS params by AT+CGDCONT ?
AT+CGDCONT=1,"IP","ibox.tim.it","0.0.0.0",0,0
Why do you need to use ATD*99***1#? Java in module needs not AT commands.

Ondrej

Dne 16.6.2014 07:17, Lee Karwai napsal(a):
--
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/d/optout.

Lee Karwai

unread,
Jun 16, 2014, 6:16:19 AM6/16/14
to java...@googlegroups.com
Hi Ondrej ,

Thanks for your prompt reply.

Yes I have set the GPRS parameter via AT+CGDCONT before ATD*99***1# is call.
in my application, I have a device connected to EHS6 and this device will send at commands to EHS6. Due to some of the command response from EHS6 is different from the device expected response, therefore I'm using Java to reformat the command response.

The problem that I have encounter is that the device is going to use "ATD*99***1#" for internet connection and it gives me an error when this command is send via send(String AtCmd) API.

By the way, would like to know what do you mean by "Java in module needs not AT commands" ?

Regards,
kwlee

Ondřej Janovský

unread,
Jun 16, 2014, 6:35:28 AM6/16/14
to java...@googlegroups.com
Hi,

when I need open connection from Java in modem, I use

SocketConnection sc = (SocketConnection)
                         Connector.open("socket://host.com:79;bearer_type=gprs;access_point=internet ....");

I need not some AT commands for context settings.

But, I understand you, that your device uses modem as normal modem and sends AT commands for internet connection. I am afraid of using JAVA as bridge for these AT commands. I think, that it is not possible.
What error code do you have from AT commander?

 


Dne 16.6.2014 12:16, Lee Karwai napsal(a):

Lee Karwai

unread,
Jun 16, 2014, 6:41:24 AM6/16/14
to java...@googlegroups.com
When "ATD*99***1#" is sent out from the device, it is expect to receive LCP Packets and the device shall response to these LCP packets.

Lee Karwai

unread,
Jun 16, 2014, 7:00:21 AM6/16/14
to java...@googlegroups.com
Hi, 

The error code that I received was "+CME ERROR: unspecified GPRS error". 

Lee Karwai

unread,
Jun 16, 2014, 7:06:03 AM6/16/14
to java...@googlegroups.com
On the other hand, when Java is running I am not facing any problem to initial Transparent TCP client service using at^sist
Reply all
Reply to author
Forward
0 new messages