IOException: profile could not be activated

126 views
Skip to first unread message

Flavio Parodi

unread,
Dec 3, 2014, 4:32:25 AM12/3/14
to java...@googlegroups.com
Hello everybody,

I'm trying to open a socket connection with a TC65. I'm stuck right on the call of the Connector.open() method, which throws an IOException with error "profile could not be activated".
I'm using the code below:

    static String destHost = "11.11.11.11"; 
    static String destPort = "7777";
    static String connProfile = "access_point=m2mbis.vodafone.it;bearer_type=gprs";

...

            sendCommand("AT+CMEE=2");
            sendCommand("AT+CSCS=\"GSM\"");
            sendCommand("AT^SJNET=\"gprs\",\"m2mbis.vodafone.it\",\"\",\"\"");
            
            //String openParm = "socket://" + destHost + ":" + destPort+ ";" + connProfile;
            String openParm = "socket://" + destHost + ":" + destPort;
             
            SocketConnection sc = (SocketConnection) Connector.open(openParm);

I see that some other people in the group encountered this problem already, but I could actually not identify a solution for the problem. I also tried to include the connProfile string in the argument of the Connector.open() but this did not change the outcome. I'm new to programming on the TC65 so any help is more than welcome to get the connection up&running!

Thanks a lot

Flavio

Ondřej Janovský

unread,
Dec 3, 2014, 11:15:04 AM12/3/14
to java...@googlegroups.com
Hello Flavio,

I am using the same code on my TC65, TC65i, TC65ix project without problem.
You can use it without
            sendCommand("AT+CMEE=2");
            sendCommand("AT+CSCS=\"GSM\"");
            sendCommand("AT^SJNET=\"gprs\",\"m2mbis.vodafone.it\",\"\",\"\"");

Some time I get "profile could not be activated" by this reasons:

1. Simcard is not inserted
2. Simcard has PIN lock, but I forgot unlock it
3. Antenna is not connected to modem or I have bad signal

Please, check these points.

Regards
     Ondrej

Dne 3.12.2014 v 10:32 Flavio Parodi 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.

Reply all
Reply to author
Forward
0 new messages