|
测试了两款屏,DC10600M101_1111_0X(TCN)和DC19108X215_1VX1_C_X。
测试未连接用户设备,只是屏自己空发。
设置了两个控件,一个是填串口要发的字节数,一个是发送按钮,发送的数据内容任意。
发现串口发送数据字节数超过1036会出错,一个重启(或死机),一个死机。不超过1036正常。
请问是我什么地方没弄对,还是屏确实有这个限制?
程序:
function on_init()
uart_set_timeout(1000,200)
end
function on_systick() --定时回调函数,系统每隔1秒钟自动调用。
end
function on_screen_change(screen)
end
function on_audio_callback (state)
end
function on_timer(timer_id)
end
function on_uart_recv_data(packet) --串口接收
end
function on_control_notify(screen,control,value)
if screen ==1 then
if control==2 and value==0 then
local prtstrC={1,1}
tmp=get_text(1,1)
for i=0,tmp do
prtstrC[i]=0
end
uart_send_data(prtstrC)
end
end
end
|
|