Reboot will be caused immediately as soon as it received Socket Bind command for the TCP protocol + Stream socket type. 

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

Reboot will be caused immediately as soon as it received Socket Bind command for the TCP protocol + Stream socket type. 

ソリューションへジャンプ
5,174件の閲覧回数
jasonchiang
NXP Employee
NXP Employee

Hello Sir,

      Does anybody has the fiollowing experience in Thread code with KW41 ?

We used router Eligible Device code loading into FRDM-KW41 and tried to create, bind and listen to the socket using TCP and UDP.  The KW41 will be reboot immediately as soon as it received Socket Bind command for the TCP protocol + Stream socket type.  If I used UDP protocol + datagram socket type, socket bind didn’t Return error but then we are  not able to listen to the socket – the command returned an error.

 

       The log from Test Tools is attached for your reference.

Original Attachment has been moved to: Router-Log_CreateNetwork_and_SocketBind---INET6_STREAM_TCP_and_INET6_DATAGRAM_UDP.log.zip

ラベル(1)
0 件の賞賛
返信
1 解決策
4,676件の閲覧回数
jc_pacheco
NXP Employee
NXP Employee

You can find attached Test Tool and Wireshark logs that demonstrate how to use UDP sockets on a Thread Host Controlled Device using SDK from MCUXpresso, Thread v1.1.1.15

元の投稿で解決策を見る

6 返答(返信)
4,677件の閲覧回数
jc_pacheco
NXP Employee
NXP Employee

You can find attached Test Tool and Wireshark logs that demonstrate how to use UDP sockets on a Thread Host Controlled Device using SDK from MCUXpresso, Thread v1.1.1.15

4,676件の閲覧回数
jasonchiang
NXP Employee
NXP Employee

Hi JC and Estephania,

     Thanks for help ! Customer issue is clarified.

0 件の賞賛
返信
4,676件の閲覧回数
stephanie_m
NXP TechSupport
NXP TechSupport

Dear Jason Chiang,

Thread only uses UDP. TCP is no longer supported, that function is probably a remains from legacy builds which is no longer supported and should be removed. 

Best Regards, 

Estephania

0 件の賞賛
返信
4,676件の閲覧回数
flaminatakam
Contributor II

hello Estephania,

why does is TCP no longer supported? Is there any we can do to enable it?

0 件の賞賛
返信
4,676件の閲覧回数
jasonchiang
NXP Employee
NXP Employee

    Hi Estephania,

        We just encountered some problems during UDP transfer test, with “router eligible deivce” sample code.   

        The first problem I encountered is that if I put the aforementioned source code( It is the compiled “router eligible device” sample code, with “Thread use THCI” option enabled in config.h header file) into the server and the client and tried to send data from the client, the server said no data available.

        The second problem is that if I recompiled the source code with “Thread with Shell” option on and loaded it into the client (the firmware

in the server was kept the same as previous case - “router eligible device” with “Thread with THCI” option on) , the server could receive

something but the data it received appeared completely something else.

        Your feedback is appreciated.

0 件の賞賛
返信
4,676件の閲覧回数
stephanie_m
NXP TechSupport
NXP TechSupport

Hello,

Sorry for the late response, could you please check this posts ? 

MKW41z NXP Thread stack socket decryption 

KW41Z Socket communication with PC 

Please, let me know if those work for you.

Best Regards, 

Estephania