This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

does UART will stop working while receiving remote Msg (or Under in PM2)



Hi all,

      i  initial a UART by mysel (do not using MT) like below :

     ps:HAL_UART_DMA == 1

void SerialInit(void)
{
  halUARTCfg_t uartconfig;
  uartconfig.configured = TRUE;
  uartconfig.baudRate = FS_UART_DEFAULT_BAUDRATE;//57600
  uartconfig.flowControl = FALSE;

  uartconfig.flowControlThreshold = 5;
  uartconfig.rx.maxBufSize        = 128;
  uartconfig.tx.maxBufSize        = 128;
  uartconfig.idleTimeout          = 6;
  uartconfig.intEnable            = TRUE;
  
  uartconfig.callBackFunc =FS_UartProcessZToolData;//SerialCallBackFunc;   
  
  HalUARTOpen(0,&uartconfig);
}

       

          when the device do not joined the network, the UART was worked.  there is not any problem with TX and RX。

          when the device joined  the network ,and working under  PM2 mode  which Poll Rate was set as  20s.

          

          and  i found that  the UART Tx was not working  well,    when i using HalUARTWrite()   to sending  a array , it seems that it was interrupted

          by  "someone" 

          TX array :0xEF 01 ff  ff ff ff 01 03 01 00 05

          Codeing:

          uint8 AttachData[12]={0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x01,0x00,0x03,0x01,0x00,0x05};

          HalUARTWrite(0,AttachData, 12 );

        

         what  is matter of the UART ?