This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi team,
I am a little familiar to pySpinel with WiSUN network but I might need to change to Wifantund because I need a Linux host working as gateway without needing an user to type commands etc.
In this scenario, I know that spinel has some commands available so I can manage network and get a lot of info. Does Wifantund have same available commands? What are the differences between these two interfaces?
Best regards,
Eduardo.
Hi Eduardo,
The commands going between the host and the embedded device are the same. For wisunfantund you can find the documentation here:
https://github.com/TexasInstruments/ti-wisunfantund/blob/release/ti_wisun_commands.md
Cheers,
Marie H
Thank you, Marie!
Also, if I am using wfantund where is the code that I need to modify if I want to be able to send messages from nodes to border router?
The training section (https://dev.ti.com/tirex4-desktop/content/cc13xx_cc26xx_simplelink_academy_7_41_00_00/_build_cc13xx_cc26xx_simplelink_academy_7_41_00_00/source/ti_wisunfan/wisun_coap/wisun_coap.html) mentions what I need to change when using pyspinel, where can I find the modifications when using wfantund?
Thank you.
Regards,
Eduardo.
Hi Eduardo,
The coap node example modifications should be the same, whether you're using pyspinel or wisunfantund. For the BR please see the coap client scripts documentation:
https://github.com/TexasInstruments/ti-wisunfantund/blob/release/coap-client-scripts/README.md
Cheers,
Marie H
Hi Marie,
Based on the coap client scripts I could see that it uses libcoap2-bin to work.
But to perform such thing I need to execute the python script to run it. What I need is a coap server that can receive and parse at any moment messages from the devices connected to the network. In this case I don't think I could write an script like the examples mentioned, could you please tell me how to implement this feature?
Regards,
Eduardo.
Hi Eduardo,
Do you mean that you want to implement a full Coap server?
Cheers,
Marie H
Hi Eduardo,
if you use the latest version of wfantund (07) then you can assign the host and the border router different IP addresses (command: IPv6:WfantundGlobalAddress, explanation in the wfantund readme). Using this feature you can send IP packets from host to border router, host to embedded node or host to host given that you know their IP address. This is possible because the IP traffic is forwarded to the host from the border router through the wfantund interface.
To use now CoAP you can follow the CoAP client scripts that show how a put or get (as in the SimpleLink academy) is performed with wfantund. https://github.com/TexasInstruments/ti-wisunfantund/tree/release/coap-client-scripts
Please let me know if you have following questions.
Kind regards,
Theo
Hi Marie and Theo!
Yes, I want to implement a full CoAP server.
I thought that I would need to modify some stuff in the wfantund codes given, but actually just using a Python script running a CoAP server is running fine.
Thank you both for the support!
Regards,
Eduardo.
Hi Eduardo,
great that you got the implementation running.
Please let us know if there are more open questions.
Kind regards,
Theo