Hello Saurabh,
Just to make sure…
Did you set the THR_SERIAL_TUN_ROUTER to 1 in the Host Controlled Device project?
#define THR_SERIAL_TUN_ROUTER 1
(middleware\wireless\nwk_ip_1.2.0\examples\host_controlled_device\config\config.h )
It is not necessary to use the serial port when running the make_tun.sh batch file, did you modify it? Normally it would be
sudo ./make_tun.sh
After fslthr0 is created you will need to run the Thread_KW_Tun binary. This file will take 2 necessary arguments and two optionals.
1.- The serial port used for this script is the Host Controlled device (in your case /dev/ttyACM2).
2.- Virtual interface (fslthr0)
3.- Factory reset (1->yes / 0 ->no )
4.- Thread channel
sudo ./Thread_KW_Tun /dev/ttyACM0 fslthr0 0 25
If the network is already formed, you might not want to perform a factory reset, then after running the file you will get something like:
[THR] Set 802.15.4 channel OK!
[THR] Create Network ALREADY CONNECTED!
[MESHCOP] Start Commissioner OK!
[MESHCOP] Add Expected Joiner OK!
[MESHCOP] Sync Steering Data OK!
In case you performed a factory reset, be sure to connect the Router Eligible End Device (REED) to the network.
After you have that, without closing that terminal it will be necessary to open two more. The first will be a serial terminal of the REED, you can use putty/teraterm/hyperteminal; with the shell ifconfig command you need to get the Unique Local Adress (ULA). The second is the one where you will ping the REED’s ULA.
For further information check the chapter 6 of the Kinetis FSCI Host Application Programming Interface User’s Guide
Also, I see that you assign the IPv6 address to fslthr0 interface; usually that file is not modified so is there a specific purpose for doing that?
Regards
Estephania