Moxa Technologies 5400 user manual Fast Flush only flush local buffer

Page 70

Fast Flush (only flush local buffer)

1.We have added one optional “Fast Flush” function in our new NPort Real COM driver. NPort Administrator Suite for 2G NPort adds it after version 1.2.

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 PurgeComm() 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 (about 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.

3.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.

4.By default, the optional “Fast Flush” function is disabled. If you would like to enable this function, from the “NPort Administrator,” double click on 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.

The program can define the serial parameter after the program opens the port via Win32API with the specific serial parameters.

After setting the COM Mapping, remember to select the Apply Change to save the information in the host system registry. The host computer will not have the ability to use the COM port until after selecting Apply Change.

6-16 NPort 5400 Series User’s Manual

Image 70
Contents Series User’s Manual Third Edition, MayTrademarks Copyright NoticeDisclaimer Table of Contents Chapter IP Serial LIB Introduction Product Features Package ChecklistOverview Product Specifications IntroductionEnvironment Power RequirementsMechanical Regulatory ApprovalsPanel Layout Connecting the Hardware Getting StartedPanel Layout Connecting the Power Connecting the HardwareWiring Requirements Getting StartedLED Indicators Connecting to the NetworkConnecting to a Serial Device Grounding NPortConfiguration This chapter includes the following sectionsInitializing NPort’s IP Address Factory Default IP AddressDefault IP address LCM DisplayButton Name Action Initial IP Address ConfigurationDetailed Menu Options Inact. time Delimiter Initial IP Address Configuration NPort Administration Suite ARPTelnet Console NPort 5400 Series User’s Manual Initial IP Address Configuration Page Choosing the Proper Operation Mode TCP Server Mode Real COM Mode TCP Client ModeUDP Mode Choosing the Proper Operation ModeNPort 5400 Series User’s Manual Web Console Configuration Opening Your Browser Web Console Configuration Server name Basic SettingsTime Time zoneConsole Network SettingsSetting Factory Default Necessity Time serverNPort 5400 Series User’s Manual Netmask IP AddressGateway IP Configuration DNS server 1 / DNS severWeb Console Configuration Snmp Settings IP Address ReportSerial Settings Port aliasWeb Console Configuration Serial Parameters Setting Factory Default Necessity To 99 min Min Optional Operating SettingsReal COM Mode TCP alive check timeMax. Connection Setting Factory Default Necessity To FF None OptionalMax Connection Max Connection 2 toSetting Factory Default Necessity To 65535 ms Optional TCP Server ModeForce Transmit Inactivity time Max Connection 2 toSetting Factory Default Necessity 966 Optional Setting Factory Default Necessity 4001 RequiredCommand port Local TCP portTCP Client Mode NPort 5400 Series User’s Manual Destination IP address 2/3/4 Destination IP addressTCP connection UDP Mode Local listen port Hosts on the specific subnet can access the NPort Accessible IP SettingsOnly one host of specific IP address can access the NPort Any host can access the NPortEvent Type Auto Warning SettingsDCD changed Mail Setting Factory Default Necessity Enable, Disable OptionalDSR changed TrapMail Server Auto warning E-mail and Snmp TrapSnmp Trap Server Change Password Load Factory Default Page Configuring Windows Administrator Installing Windows Administrator Configuring Windows Administrator Configuration Broadcast Search Lock Unlock Password ProtectionUnlock Fixed Configuring NPort 5410/5430/5340IBlank Lock FixedUpgrade Firmware Export/Import Monitor Add Target Select target from the listConfiguring Windows Administrator NPort 5400 Series User’s Manual Port Monitor COM Mapping On-line COM MappingConfiguring Windows Administrator Fast Flush only flush local buffer Off-line COM Mapping IP Location Configuring Windows Administrator Page IP Serial LIB Why Use IP Serial Library? What is IP Serial Library?How to install IP Serial Library? IP Serial LIB IP Serial LIB Function GroupsExample Program InquiryPage Pinouts and Cable Wiring Port Pinout Diagrams Ethernet Port Pinouts Serial Port PinoutsEthernet Cables Serial Cables Cable Wiring DiagramsPinouts and Cable Wiring DB9 Female to DB9 Male for NPortDB9 Female to DB25 Male for NPort TCP Socket Application Service Well Known Port NumbersUDP Socket Application Service Snmp Agent with MIB II & RS-232 like group IP MIB Icmp MIBSystem MIB Interfaces MIB Address Translation MIBInput Signal Table Output Signal Table Well Known Port NumbersPage Service Information Moxa Internet Services Following services are providedService Information Problem Report FormMoxa Product NPort Serial Number Product Return Procedure Revision History NPort 5400 Series User’s Manual D-5NPort 5400 Series User’s Manual Auto IP Report Protocol ID List Auto IP Report FormatInfo n AP ID & Hardware ID Mapping Table