Moxa Technologies DE-332 Network Card User Manual


 
Troubleshooting
NPort Server Lite User’s Manual 6-5
Programming Problems
Win32 COMM API functions return fail, or the PComm Pro library functions return a Fail
code - SIO_WIN32FAIL
The fail code for the COMM API functions implies something different than the fail code
received from the standard COM driver. For example, you get the fail code when the
network connected to the server is unreachable, or the server is offline. If the network
connection is through the Internet, the network could be unreachable if Internet traffic is
jammed. This does not mean you have a defective server. To recover from this type of error,
you can is modify your program so that the port is automatically closed and then re-opened.
You should also check the following to make sure that the problem is only with the TCP/IP
network:
1. If the server is off-line, turn it on.
2. If the route to NPort Server Lite is reachable, you may test it by using
Ping [NPort-Server-Lite-IP-address]
If a route to the server cannot be established, check your routing table or the server's
routing table.
To solve this problem, programs should:
1. Try to re-open the port if the fail code is returned during the open (i.e. sio_open)
session.
2. If the fail code returns while writing data, reading data, changing settings, etc., you
should close the file handler, and then try to open the port again.