AnsweredAssumed Answered

imx6q uart tx lost data

Question asked by li yu on Jul 12, 2015
Latest reply on Jul 13, 2015 by igorpadykov

Hi all:

       My OS :android jb 4.4.2-ga

              QQ图片20150712150422.jpg

          As shown below, using the middle layer test program the latest SF for our printer hit them. Figure is visible in the lower right SF icon print exception. Printer connection serial port 5 (ttymxc4). Working mechanism: the printer sends a packet of 7K around the 300ms, every time it sends a 1024 byte, every time a. It was found that fifth or sixth would be lost, which is the reason of the phenomenon of the loss of the packet.

 

Every time the data is sent to the change, the change is sent to 800 bytes each time, every 300ms hair, many times the test does not appear in the phenomenon. Please help me to solve this problem.

 

       I modify kernel_imx/arch/arm/mach-mx6/serial.h

 

  

#define UART5_UCR4_CTSTL   -1
71 #define UART5_DMA_ENABLE   1
72 #define UART5_DMA_RXBUFSIZE2048
73 #define UART5_UFCR_RXTL    16
74 #define UART5_UFCR_TXTL    16

 

    How to solve this issue ? Please help me !

Outcomes