Implementation (Reposted) ULIP and VXSIM Network Simulation Realization
Implementation of ULIP and VXSIM network simulation
Click to browse this file by Stonefo
Environment: Tornado 2.2 and VxWorks 5.4 Win2k Chinese Professional Edition
Required conditions: Simulator in Tornado must be Full Simulator, Full Simulator has Integrated Simulator (viewable in Tornado point help-> about-> Details, you can view all the features when installing Tornado), and can also perform network simulation As for which SIMULATOR is installed is determined by license.
Steps: 1. Install the ULIP Adapter Select "Add Delete Hardware" -> "Add / Exclude Equipment Fault" -> "Add New Device" -> "From List Select Hardware" -> "from the list. Disk installation, then select Netulip.inf under Tornado / Host / X86-Win32 / BIN /, then determine and close the window; after loading, you can see a network card WINDRIVER ULIP in the ipconfig / all.
2. Configure the ULIP adapter input 192.168.255.254 (which can be xxx254) in the IP bar, the subnet mask is set to 255.255.255.0, point high, select NetBIOS on TCP / IP, then determine close, then available Ping 192.168.255.254 Verify that the adapter works fine;
3, start the Routing and Remote Access service, and set the service to automatic start;
4, modify tornado / target / config / simpc / config.h #if FALSE / * ----> into the original TRUE FALSE * / #undef INCLUDE_NETWORK #undef INCLUDE_NET_INIT #undef WDB_COMM_TYPE #define WDB_COMM_TYPE WDB_COMM_PIPE #undef WDB_TTY_TEST # ! else / * TRUE * / #define INCLUDE_END #undef INCLUDE_WDB_SYS / * system mode not supported on full simulator * / #undef WDB_MODE #define WDB_MODE WDB_MODE_TASK / * do not allowtch to system mode * / #endif / * TRUE * /;
5, newly built a bootable project, BSP is selected as SIMPC, then compile, if you want to verify the network function, you can right to Right click on Network Components-> Network Applications-> ping clients-> network applications-> ping client , Re-build;
6, Launch Simulator, select Custom-Built Simulator, browse the VxWorks.exe that is just compiled, set to 0 (Full Simulator supports 16 Simulator, and can communicate with each other, their processor no. Sizes 0- 15), Determine; 7, Launch Target Server, then you will prompt you Launch Target Server, click Details, select Full Simulator, modify the command line parameters above, will C: / Docume ~ 1 / Admini ~ 1 / locals ~ 1 / TEMP / TSFS is changed to the directory existing in the system, and click OK to start Target Server, then you can double-click the Target Server icon in the lower right to view the starter situation; of course, you can also pass the Tornado menu (Tools-> Target Server-> Configure The configuration of Target Server and starts it; ;
9, Simulator communication: Host Host0 (your host, Simulator runs on this machine) IP 10.12.9.113, Host1 IP is 10.12.9.129, if Host1 wants to communicate with Simulator, just routing in Host1 Add: Route Add 192.168.255.1 10.12.9.113 Metric 1, then you can also verify the PING 10.12.9.129 on Host1 on Host1, respectively;