imx6q uart tx lost data

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx6q uart tx lost data

899 次查看
liyu1
Contributor III

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 !

标签 (2)
0 项奖励
回复
1 回复

749 次查看
igorpadykov
NXP Employee
NXP Employee

Hi li

in general this phenomenon can be caused by overrrun uart buffers,

it may be recommended to try to increase buffer size or decrease

uart baud rate.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复