# AT+CGATT=1 -\> Error

**URL:** <https://forum.sierrawireless.com/t/at-cgatt-1-error/5308>\
**Category:** Legacy FX/FXT series\
**Created:** [October 28, 2011, 11:52am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308 "2011-10-28T11:52:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![quimisur](https://avatars.discourse-cdn.com/v4/letter/q/96bed5/32.png) [@quimisur](https://forum.sierrawireless.com/u/quimisur)\
**Post date:** [October 28, 2011, 11:52am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/1 "2011-10-28T11:52:07Z")

</div>

Hi!

I’m using the firmware version 7.44 on a XTEND FXT009 EDGE. When I connect by serial port and try to execute command AT+CGATT=1 just waits for a few seconds and answers with error.

I’m trying to initiate the gprs stack, is there any way to do it instead of this one?

Thank you!

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.sierrawireless.com/u/lotam)\
**Post date:** [October 29, 2011, 3:17am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/2 "2011-10-29T03:17:19Z")

</div>

Are you using a working SIM card with subscription and works ok on cell phone?  
If the SIM detected and working in XTEND and GSM able to register?

Try to send AT+CMEE=1 before AT+CGATT=1 which give you the error code.  
and send below after the failure.  
AT+CPIN? AT+CREG?

GPRS Attach is automatically done during GPRS Activate or dialup…  
Not sure your particular usage but which may not needed…

---

<div class="post-metadata">

**Author:** ![quimisur](https://avatars.discourse-cdn.com/v4/letter/q/96bed5/32.png) [@quimisur](https://forum.sierrawireless.com/u/quimisur)\
**Post date:** [November 2, 2011, 6:31am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/3 "2011-11-02T06:31:50Z")

</div>

I’m afraid I’m not much familiar with at commands so I really don’t know what these commands are doing. Anyway, this is the output of commands.

AT+CMEE=1  
OK  
AT+CPIN?  
+CPIN: READY  
AT+CREG?  
+CREG: 0,1

OK  
AT+CMEE=0  
OK

Thank you

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.sierrawireless.com/u/lotam)\
**Post date:** [November 3, 2011, 5:05am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/4 "2011-11-03T05:05:59Z")

</div>

Hi,

Maybe my previous post is not clear enough.  
Please try below AT cmd sequence and share the complete response.

AT+CMEE=1  
AT+CSQ  
AT+CREG?  
AT+CGATT=1  
AT+CPIN?  
AT+CREG?  
AT+CEER  
AT+CSQ

Thanks.

---

<div class="post-metadata">

**Author:** ![quimisur](https://avatars.discourse-cdn.com/v4/letter/q/96bed5/32.png) [@quimisur](https://forum.sierrawireless.com/u/quimisur)\
**Post date:** [November 3, 2011, 6:40am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/5 "2011-11-03T06:40:37Z")

</div>

Ok. Output for the commands is this:

+CSQ: 16,0  
+CREG: 0,1  
AT + CGATT -\> OK(son it seems to be working now. Why? I cannot say… humm)  
AT+CPIN? -\> READY  
+CREG: 0,1  
+CERR -\> 0(No error?)  
CSQ: 17,0

By the way, is it mandatory for CGATT to have the cable plugged? It isn’t the original reason for the failure, but I notice that doing it without cable plugged made CREG returns 148(unrecognized error?) and CEER returns 266…

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.sierrawireless.com/u/lotam)\
**Post date:** [November 4, 2011, 2:35am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/6 "2011-11-04T02:35:49Z")

</div>

Hi,  
That’s a good news.

BTW, you mentioned “cable”, what exactly it is? Are you saying the antenna or UART/USB cable?

For failure cause, 266, it does not seems to be a valid code.  
If in case it is a typo of 226, then it make sense with antenna disconnected as no network signal…  
226 - Unsuccessful attach cause NO SERVICE

---

<div class="post-metadata">

**Author:** ![quimisur](https://avatars.discourse-cdn.com/v4/letter/q/96bed5/32.png) [@quimisur](https://forum.sierrawireless.com/u/quimisur)\
**Post date:** [November 4, 2011, 6:21am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/7 "2011-11-04T06:21:32Z")

</div>

Yeah! Sorry, I meant the antenna when I was talking about the cable.

Concerning to the error number, it was a typo, you were right, number is 226, so it seems fine, no service because you have no antenna. Is it right?

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.sierrawireless.com/u/lotam)\
**Post date:** [November 17, 2011, 1:33am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/8 "2011-11-17T01:33:29Z")

</div>

> [@quimisur](#):
>
> Yeah! Sorry, I meant the antenna when I was talking about the cable.
> 
> Concerning to the error number, it was a typo, you were right, number is 226, so it seems fine, no service because you have no antenna. Is it right?

Correct!  
Enjoy using your XTEND. :mrgreen:  
L

---

<div class="post-metadata">

**Author:** ![quimisur](https://avatars.discourse-cdn.com/v4/letter/q/96bed5/32.png) [@quimisur](https://forum.sierrawireless.com/u/quimisur)\
**Post date:** [November 18, 2011, 6:44am UTC](https://forum.sierrawireless.com/t/at-cgatt-1-error/5308/9 "2011-11-18T06:44:05Z")

</div>

I would, but I’m afraid it doesn’t want me to enjoy, lets see this thread:

FXT 009 tries to register with wrong operator!

[https://forum.sierrawireless.com/t/fxt-009-tries-to-register-with-wrong-operator/5322/1](https://forum.sierrawireless.com/t/fxt-009-tries-to-register-with-wrong-operator/5322/1)

😊
