|
This topic contains helpful tips, tricks, and configuration recommendations for RT-TCP/IP.
RT-TCP/IP supports several RTDLL network card drivers. By using the Network Driver Wizard Template files and the provided source code for all the supported NICs as samples, users can build drivers for currently unsupported cards. Detailed instructions for building a NIC driver can be found in the RTX SDK Reference section.
If you have multiple Network Interface Cards (NICs) of the same type, all configured to use the same subnet:
When configuring a network card for use by RTX, and leaving a same-type network card for use by Windows, the card to be used by RTX will be determined by the RtxTcpip.ini file line:
EA=MAC Address
The RtxTcpIp protocol stack continues to operate after a Windows system shutdown, and the WinSock API may be used by RTSS Shutdown Handlers.
Sample source code on how to use a Shutdown Handler is included within the server.c source code.
As is the case for all RTSS Shutdown Handlers, shutdown handlers that use the WinSock API are not permitted to allocate memory or create new threads or other objects. Refer to RTX documentation for details.
When you convert a NIC driver from Windows control to RTX control, multiple instances of that device may appear in the Windows Device Manager – one for the NIC driver and one for the Packet Schedule mini port driver associated with it. You do not need to convert the associated Packet Schedule mini port driver.
NOTE: A warning indicator may appear for the mini port driver associated with the NIC you converted. This is intended behavior that requires no further action.
Conflicts may occur when an RTX device and a Windows device utilize the same IO space address range. If the IO space is not a required resource for the RTX device, you can filter out the IO port resource for the RTX device. This procedure can be done after Converting a windows Device to an RTX Device.
To filter out IO port resources:
Start > All Programs > IntervalZero > RTX 2016 > RTX Properties
When the stack is started, initialization procedures occur before the stack is online. You will experience a delayed response from the stack if you begin calling the stack before the initialization has completed. To check the online status of the stack, call the API function RtnIsStackOnline. To check the status of the device, call the API function RtnIsDeviceOnline.
You can run the RT-TCP/IP stack in verbose mode to enable verbose logging, which can be helpful in determining issues with the stack.
To enable verbose mode:
Start > All Programs > IntervalZero > RTX 2016 > RTX Properties
NOTE: Enabling verbose mode will effect performance of the stack.
On Windows 7 systems, when a device is installed, Windows makes a copy of manufacturer-provided driver configuration files. For RTX, copies of RtxPnpNet.inf and RtxPnpNet.inf are made. The copies are then associated with the device, and the following files are created:
Where <SEQ> could be any random number. Typically, it is the next sequence number.
This can become confusing when the same device is installed multiple times, as it results in several OEM entries and multiple driver options are displayed in the Windows Driver Wizard. To avoid confusion, you can remove the unnecessary OEM entries that have been created (by repeated device conversions to and from RTX control) from the %windir%\inf
directory.
NOTE: If an OEM inf file is in use when it is removed, you may encounter errors when you attempt to uninstall the associated device.