# TCP\_CLIENT problem

**URL:** <https://forum.sierrawireless.com/t/tcp-client-problem/1419>\
**Category:** Open AT\
**Created:** [June 22, 2007, 3:42pm UTC](https://forum.sierrawireless.com/t/tcp-client-problem/1419 "2007-06-22T15:42:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wooje.kim](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@wooje.kim](https://forum.sierrawireless.com/u/wooje.kim)\
**Post date:** [June 22, 2007, 3:42pm UTC](https://forum.sierrawireless.com/t/tcp-client-problem/1419/1 "2007-06-22T15:42:35Z")

</div>

Hi.

I couldn’t get Q2687 to work with the TCP\_Client sample code provided from wavecom.

Whenever I run the sample code, I get

GPRS: open: -\> DISCONNECTED  
GPRS: start: -\> CONNECTING  
GPRS: GPRS EVENT SETUP OK (cid=1): GPRS activate  
GPRS: GPRS EVENT SETUP/ACTIVATE KO (cid=1): -\> DISCONNECTED

I have double checked the APN , UserID , Password and it was correct.

Please help.

Kind regards

Wooje Kim

---

<div class="post-metadata">

**Author:** ![Wallace](https://avatars.discourse-cdn.com/v4/letter/w/b4bc9f/32.png) [@Wallace](https://forum.sierrawireless.com/u/Wallace)\
**Post date:** [June 22, 2007, 3:54pm UTC](https://forum.sierrawireless.com/t/tcp-client-problem/1419/2 "2007-06-22T15:54:31Z")

</div>

Hi,

I suggest you to check your GPRS connection without OpenAT running first.

You can follow the steps to activate GPRS, getting IP address :

AT+CMEE=1  
AT=CGDCONT=1,“IP”,“APN\_NAME”  
AT+CGATT=1  
AT+CGACT=1,1  
AT+CGPADDR=1

You should get “OK” on entering the above commands, and get IP address finally. if not you may get some error codes, resd the AT manual for the reason.

---

<div class="post-metadata">

**Author:** ![wooje.kim](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@wooje.kim](https://forum.sierrawireless.com/u/wooje.kim)\
**Post date:** [June 22, 2007, 8:58pm UTC](https://forum.sierrawireless.com/t/tcp-client-problem/1419/3 "2007-06-22T20:58:43Z")

</div>

Thanks for your help.

I have tried to run those AT commands.  
When I run these steps

AT+CGATT=1 -\> I get CME ERROR 148  
AT+CGACT=1,1 -\> CME ERROR 3

also I found out that:

AT+CSQ -\> 99,99

Any Ideas?

Thanks

Kind regards

Wooje Kim

---

<div class="post-metadata">

**Author:** ![Wallace](https://avatars.discourse-cdn.com/v4/letter/w/b4bc9f/32.png) [@Wallace](https://forum.sierrawireless.com/u/Wallace)\
**Post date:** [June 25, 2007, 10:08am UTC](https://forum.sierrawireless.com/t/tcp-client-problem/1419/4 "2007-06-25T10:08:18Z")

</div>

"AT+CSQ -\> 99,99 "

Seems you module has not registered to the network, can you able to make a voice call ?

Check the module antenna connection , and verify if the SIM card can register to the network by putting it to a normal mobile phone first.

---

<div class="post-metadata">

**Author:** ![karen](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@karen](https://forum.sierrawireless.com/u/karen)\
**Post date:** [July 17, 2007, 12:39pm UTC](https://forum.sierrawireless.com/t/tcp-client-problem/1419/5 "2007-07-17T12:39:10Z")

</div>

by default the wavecom modem uses gsm 850 and 1900 MHZ frequency.  
you should change it via AT command to your GSM network frequency.
