Q2686G UART2 Write


#1

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,

#2

Might be some kind of error in datalength


#3

HI

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

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

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

somebody help me


#4

i discovered error :smiley:


#5

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


#6

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