seems a significant delay in socket connection in MQX 4.0.2

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

seems a significant delay in socket connection in MQX 4.0.2

1,133件の閲覧回数
David_Wu
Contributor III

I started to use MQX 4.0.2 with CW10.2 on K60 device. I noticed a significant delay on socket connection - either TCP or UDP.

EX:

in TFTP_read:

sock = TFTP_WAIT(time_left);

 

TFTP_read is called after issuing RTCS_load_TFTP_BIN() in my program.

The call above sometimes stops for very long time (time_left is 4999). Then continue with new time_left (10000).

This did not happen on MQX 4.0.0

I wonder what is the root cause. I know there are some HW timer related changes in MQX 4.0.2. Are they tested and worked fine?

ラベル(1)
タグ(4)
0 件の賞賛
返信
2 返答(返信)

847件の閲覧回数
David_Wu
Contributor III

it seems I have add a _time_delay(1). This will force a sched_yield. Is there something changed related to scheduler?

_time_delay(1);

sock = TFTP_WAIT(time_left);

Now I added _time_delay(1) everywhere before I call RTCS_selectset(). The TCP/UDP connection back to normal - as in MQX 4.0.0

0 件の賞賛
返信

847件の閲覧回数
Martin_
NXP Employee
NXP Employee

Try to use the attached tcpip.c. Does this help ? Suspect is the way how TCPIP_task computes events.

0 件の賞賛
返信