Moxa Technologies NPort 5600 user manual Fast Flush only flush local buffer

Page 91

NPort 5600 Series User’s Manual

IP Serial LIB

Fast Flush (only flush local buffer)

We have added one optional Fast Flush function to Moxa’s new NPort Real COM driver. NPort Administrator Suite for 2G NPort adds it after version 1.2.

For some applications, the user’s program will use the Win32 “PurgeComm()” function before it reads or writes data. With our design, after the program uses this Purge Comm() function, the NPort driver will keep querying NPort’s firmware several times to make sure there is really no data queued in the NPort firmware buffer, rather than just flushing the local buffer. This kind of design is used because of some special considerations. However, it might take more time (on the order of several hundred milliseconds) than a native COM1, because it needs to work via Ethernet. That’s why the native COM ports on the motherboard can work fast with this function call, but NPort requires much more time. In order to accommodate other applications that require a faster response time, the new NPort driver implements a new “Fast Flush” option. Note that by default, this function is disabled.

To begin with, make sure there are some “PurgeComm()” functions being used in your application program. In this kind of situation, you might find that your NPort exhibits a much poorer operation performance than when using the native COM1 port. Once you have enabled the “Fast Flush” function, you can check to see if there has been an improvement in performance.

By default, the optional “Fast Flush” function is disabled. If you would like to enable this function, from the “NPort Administrator,” double click the COM ports that are mapped to the NPort, and then select the “Fast Flush” checkbox. You should find that when “Fast Flush” is enabled, the NPort driver will work faster with “PurgeComm().”

The Serial Parameter settings shown here are the default settings when the NPort is powered on. However, the program can redefine the serial parameters to different values after the program opens the port via Win 32 API.

6-23

Image 91
Contents Seventh Edition, July NPort 5600 Series User’s ManualTrademarks Copyright NoticeDisclaimer Table of Contents Chapter IP Serial LIB Page Introduction Product Features Package ChecklistOverview Product Specifications Serial Communication Parameters Advanced Built-in FeaturesSoftware Features Power RequirementsGetting Started ‰ Panel Layout ‰ Connecting the HardwareFront panel of NPort 5600 series Rear panel of NPort 5600 series AC PowerRear panel of NPort 5600 series DC Power Panel LayoutConnecting NPort 5610-16/8-48V’s Power Connecting the HardwareWiring Requirements Connecting NPort 5610/30/50-16/8’s PowerGrounding NPort 5610-16/8-48V Connecting to the NetworkAdjustable Termination Resistor for the RS-485 Port Connecting to a Serial DeviceLED Indicators Link Indicator on the Rear Panel of NPort 5650 Fiber ModelNPort 5650 DIP Switches Initial IP Address Configuration LCM Display Factory Default IP AddressDefault IP address Initializing NPort’s IP AddressDetailed Menu Options Button Name ActionLevel ARP NPort Administration SuiteTelnet Console NPort 5600 Series User’s Manual NPort 5600 Series User’s Manual NPort 5600 Series User’s Manual Choosing the Proper Operation Mode Real COM Mode Real COM ModeTCP Server Mode TCP Server ModeUDP Mode TCP Client ModePair Connection Mode Disabled Mode Reverse Telnet ModeRFC2217 Mode PPP Mode Web Console Configuration Opening Your Browser Basic Settings Local time TimeServer name Time zoneConsole Network SettingsGateway IP ConfigurationIP Address NetmaskContact Snmp SettingsDNS server 1 / DNS server Community nameAuto report period IP Address ReportAuto report to IP Auto report to TCP portPort alias Serial SettingsSerial Parameters TCP alive check time Operating SettingsReal COM Mode Setting Factory Default Necessity To 99 min Min OptionalIgnore jammed IP Max connection Setting Factory Default Necessity RequiredMax. connection Max connection 2 toForce transmit Packing length Setting Factory Default Necessity RequiredDelimiter Delimiter processTCP Server Mode Max connection Packing length Local TCP port Setting Factory Default Necessity 4001 RequiredCommand port Setting Factory Default Necessity 966 OptionalInactivity time TCP Client ModeIgnore jammed IP Delimiter process Connection control Destination IP addressDestination IP address 2/3/4 Designated Local Port 1/2/3/4Connect/Disconnect Description UDP Mode Force transmit Pair Connection Master Mode Pair Connection ModeSetting Factory Default Necessity To 99 min Min Required Blank Pair Connection Slave ModeSetting Factory Default Necessity To 99 min Optional Reverse Telnet ModeMap CR-LF RFC2217 Mode Disabled ModeSetting Factory Default Necessity To FF hex None Optional Packing length Setting Factory Default Necessity OptionalSetting Factory Default Necessity Yes or No Optional PPP ModeTCP/IP compression Modem Initial stream Accessible IP SettingsSource IP address IP netmaskAllowable Hosts Input format Hosts on a specific subnet can access the NPortAny host can access the NPort PPP User TableAuto warning E-mail and Snmp Trap Auto Warning SettingsMail Server Snmp Trap Server Event TypeMail Setting Factory Default Necessity Enable, Disable OptionalDCD changed DSR changedMonitor Line MonitorMonitor Async Monitor Async-Settings Change PasswordLoad Factory Defaults ‰ Overview ‰ Installing NPort Administrator ‰ Configuration Configuring NPort AdministratorInstalling NPort Administrator NPort 5600 Series User’s Manual IP Serial LIB NPort 5600 Series User’s Manual IP Serial LIB Configuration Broadcast Search Unlock Password Protection NPort 5600 Series User’s Manual IP Serial LIB Fixed LockUnlock BlankConfiguring NPort NPort 5600 Series User’s Manual IP Serial LIB Upgrading Firmware Export/Import Add Target Æ Select target from the list Select Add Target NPort 5600 Series User’s Manual IP Serial LIB NPort 5600 Series User’s Manual IP Serial LIB NPort 5600 Series User’s Manual IP Serial LIB NPort 5600 Series User’s Manual IP Serial LIB COM Mapping Port MonitorOn-line COM Mapping NPort 5600 Series User’s Manual IP Serial LIB Fast Flush only flush local buffer NPort 5600 Series User’s Manual IP Serial LIB Off-line COM Mapping IP Location NPort 5600 Series User’s Manual IP Serial LIB IP Serial LIB Why Use IP Serial Library? What is IP Serial Library?How to install IP Serial Library? Port Control Input/Output Data Port Status Miscellaneous IP Serial LIB Function GroupsExample Program Server Control‰ Cable Wiring Diagrams Pinouts and Cable WiringEthernet Port Pinouts Port Pinout DiagramsSerial Port Pinouts Serial Cables for NPort 5610/5650 RS-232 Cable Wiring DiagramsRJ45 8-pins to Female DB9 Ethernet CablesRJ45 8-pins to Female DB25 RJ45 8-pins to Male DB9RJ45 8-pins to Female DB25 Serial Cables for NPort 5630 RS-422/4-wire RS-485NPort 5600 Series User’s Manual Well Known Port Numbers Serial Cables for NPort 5630 2-wire RS-485Serial Cables for NPort 5650 RS-422/4-wire RS-485 RJ45 8-pins to Male DB25 Serial Cables for NPort 5650 2-wire RS-485Pin Assignments for DB9 Male and Female Connectors Pin Assignments for DB9 and DB25 ConnectorsPin Assignments for DB25 Male and Female Connectors Well Known Port Numbers TCP Socket Application ServiceSnmp Agent with MIB II & RS-232 Like Group UDP Socket Application ServiceSnmp Agent with MIB II & RS-232 Like Group Address Translation MIB System MIB Interfaces MIBInput Signal Table Output Signal Table Auto IP Report Protocol AP ID & Hardware ID Mapping Table Auto IP Report FormatInfo n ID ListService Information Following services are provided Moxa Internet ServicesMoxa Product Problem Report FormSerial Number Product Return Procedure