# Q2686G UART2 Write

**URL:** <https://forum.sierrawireless.com/t/q2686g-uart2-write/4828>\
**Category:** Legacy AirPrime modules\
**Created:** [January 14, 2011, 5:13am UTC](https://forum.sierrawireless.com/t/q2686g-uart2-write/4828 "2011-01-14T05:13:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aezakmi](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@aezakmi](https://forum.sierrawireless.com/u/aezakmi)\
**Post date:** [January 14, 2011, 5:13am UTC](https://forum.sierrawireless.com/t/q2686g-uart2-write/4828/1 "2011-01-14T05:13:01Z")

</div>

Hai,  
Am using Q2686G. I did one simple echo kind of application in UART2,[ie., if i connected UART2 with COM1, whatever i typed in COM1 will sent back to COM1 by module].

```
      The application is working fine. But, some time the module is re-started during "write" into UART2.

   " ret=uart_if->read(uart1_hdl,buffer,32);
	        adl_atSendResponse ( ADL_AT_UNS, "\n After READ" );
		 uart_if->write(uart1_hdl,buffer,strlen(buffer)); "

  Opening COM port, adl_eventWait are working fine during the problem, and from M2M shell, i understood the program is coming till "After READ" line and after that the rebooting is happening. 

     The read and write are in task. 

 If the power off the unit and power it on means, its working fine. kindly help with this problem.

```

The firmware version is :: R74\_00gg.Q2686G  
Application OS :: 06.21  
Boot loader version :: V08b0e

```
                                         Thank you,
```

---

<div class="post-metadata">

**Author:** ![josepvr](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@josepvr](https://forum.sierrawireless.com/u/josepvr)\
**Post date:** [January 14, 2011, 1:35pm UTC](https://forum.sierrawireless.com/t/q2686g-uart2-write/4828/2 "2011-01-14T13:35:03Z")

</div>

Might be some kind of error in datalength

---

<div class="post-metadata">

**Author:** ![MIC00L](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@MIC00L](https://forum.sierrawireless.com/u/MIC00L)\
**Post date:** [February 29, 2012, 8:04pm UTC](https://forum.sierrawireless.com/t/q2686g-uart2-write/4828/3 "2012-02-29T20:04:17Z")

</div>

HI

😕  
DIDN’T TO RUN THE EXAMPLE OF UART OPENING. THE ERROR IT’S DISPLAYED IN THIS PART.

```auto
uart_if.write( uart2_hdl, "Tx Some bytes", 13 );
```

and it’s said ➡ Error =\> request for member ‘write’ in something not a structure or union

somebody help me

---

<div class="post-metadata">

**Author:** ![MIC00L](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@MIC00L](https://forum.sierrawireless.com/u/MIC00L)\
**Post date:** [March 12, 2012, 4:45pm UTC](https://forum.sierrawireless.com/t/q2686g-uart2-write/4828/4 "2012-03-12T16:45:54Z")

</div>

i discovered error 😃

---

<div class="post-metadata">

**Author:** ![ass25](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ass25](https://forum.sierrawireless.com/u/ass25)\
**Post date:** [May 15, 2012, 7:08am UTC](https://forum.sierrawireless.com/t/q2686g-uart2-write/4828/5 "2012-05-15T07:08:55Z")

</div>

See command at+WMFM.  
in this command ENABLE uart2 (in default Uart2, uart3 (usb) is DISABLED)

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [May 15, 2012, 6:07pm UTC](https://forum.sierrawireless.com/t/q2686g-uart2-write/4828/6 "2012-05-15T18:07:27Z")

</div>

> [@ass25](#):
>
> (in default Uart2, uart3 (usb) is DISABLED)

That’s true for old firmware versions - but hasn’t been the case for some time now.
