imx6q uart tx lost data

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6q uart tx lost data

902件の閲覧回数
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 返信

752件の閲覧回数
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 件の賞賛
返信