下载文件详细资料
  文件名称: 串口服务器方案
  公司名称: 京金华(北京)科技有限公司
  下载次数: 998
  文件详细说明:
  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align=center><B><SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">互联网传输服务配置<SPAN lang=EN-US><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; tab-stops: 112.5pt"><B><SPAN style="FONT-SIZE: 14pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">适用范围:<SPAN lang=EN-US><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">适用于通过互联网访问串口服务器的应用场合。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">如果串口服务器的<SPAN style="COLOR: blue">网关(如<SPAN lang=EN-US>ADSL</SPAN>等)为外网动态<SPAN lang=EN-US>IP</SPAN>,远程主机也是外网动态<SPAN lang=EN-US>IP</SPAN>。</SPAN>这种情况下,必须申请<SPAN style="COLOR: blue">“动态域名服务”</SPAN>来取得一个固定域名,用于串口服务器解析远程主机<SPAN lang=EN-US>IP</SPAN>地址。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">如果远程主机是外网固定<SPAN lang=EN-US>IP</SPAN>,不需要动态域名服务。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; tab-stops: 112.5pt"><B><SPAN style="FONT-SIZE: 14pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">配置步骤:<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.15pt; TEXT-INDENT: -31.15pt; tab-stops: list 31.15pt; mso-list: l0 level1 lfo1"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">1、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">进入管理菜单,选择“<SPAN lang=EN-US>G</SPAN>”进入<SPAN style="COLOR: blue">“<SPAN lang=EN-US>G-</SPAN>全局网络配置”</SPAN>,设置好设备的网关地址(应该为<SPAN lang=EN-US>ADSL</SPAN>或有效网关的内网<SPAN lang=EN-US>IP</SPAN>地址)和<SPAN lang=EN-US>DNS</SPAN>服务器<SPAN lang=EN-US>IP</SPAN>地址。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.15pt; TEXT-INDENT: -31.15pt; tab-stops: list 31.15pt; mso-list: l0 level1 lfo1"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">2、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">选择“<SPAN lang=EN-US>W</SPAN>”进入<SPAN style="COLOR: blue">“<SPAN lang=EN-US>W-</SPAN>切换工作模式<SPAN lang=EN-US>.</SPAN>”</SPAN>,切换设备为<SPAN style="COLOR: blue">“<SPAN lang=EN-US>2-Client</SPAN>模式”</SPAN>。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.15pt; TEXT-INDENT: -31.15pt; tab-stops: list 31.15pt; mso-list: l0 level1 lfo1"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">3、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-SIZE: 14pt; COLOR: blue; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">动态域名方式:</SPAN></B><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">选择所需要配置的串口,进入“配置串口”,如果需要<SPAN style="COLOR: blue">“动态域名服务”</SPAN>,将“选择获取远程主机<SPAN lang=EN-US>IP</SPAN>方式<SPAN lang=EN-US>:</SPAN>”设置为<SPAN style="COLOR: blue">“<SPAN lang=EN-US>2-</SPAN>通过域名解析获得远程主机<SPAN lang=EN-US>IP</SPAN>地址”</SPAN>,并指定由<SPAN style="COLOR: blue">动态域名服务所提供的域名</SPAN>。例如:“请输入域名<SPAN lang=EN-US>(www.google.com):www.abc.com</SPAN>”<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.15pt; TEXT-INDENT: -31.15pt; tab-stops: list 31.15pt; mso-list: l0 level1 lfo1"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">4、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-SIZE: 14pt; COLOR: blue; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">公网固定<SPAN lang=EN-US>IP</SPAN>方式:</SPAN></B><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">选择所需要配置的串口,进入“配置串口”,如果远程主机是外网固定<SPAN lang=EN-US>IP</SPAN>,将“选择获取远程主机<SPAN lang=EN-US>IP</SPAN>方式<SPAN lang=EN-US>:</SPAN>”设置为<SPAN style="COLOR: blue">“<SPAN lang=EN-US>1-</SPAN>指定远程主机<SPAN lang=EN-US>IP</SPAN>地址”</SPAN>,并在下个参数指定远程主机<SPAN lang=EN-US>IP</SPAN>。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.15pt; TEXT-INDENT: -31.15pt; tab-stops: list 31.15pt; mso-list: l0 level1 lfo1"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">5、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">完成上述设置后,返回到主菜单,选择“<SPAN lang=EN-US>R-</SPAN>重新启动”,启动设备使设置生效。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.15pt; TEXT-INDENT: -31.15pt; tab-stops: list 31.15pt; mso-list: l0 level1 lfo1"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">6、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">VSPM</SPAN></B><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">虚拟串口软件必须工作<SPAN style="COLOR: blue">“<SPAN lang=EN-US>Server</SPAN>模式”</SPAN>,并且手工建立所需要的虚拟串口,默认设置下,建立的虚拟串口对应的监听端口为<SPAN lang=EN-US>6020</SPAN>、<SPAN lang=EN-US>6021</SPAN>、<SPAN lang=EN-US>6022</SPAN>、<SPAN lang=EN-US>6023</SPAN>。本机防火墙必须放行这些端口的访问,否则将无法建立连接。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.5pt"><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">如果主机在内网,<SPAN style="COLOR: blue">其网关必须做静态端口映射,</SPAN>将上述端口映射到内网主机。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.15pt; TEXT-INDENT: -31.15pt; tab-stops: list 31.15pt; mso-list: l0 level1 lfo1"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">7、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">如果需要动态域名服务,远程主机必须运行动态域名相关软件。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 31.15pt; TEXT-INDENT: -31.15pt; tab-stops: list 31.15pt; mso-list: l0 level1 lfo1"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 宋体"><SPAN style="mso-list: Ignore">8、<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">如果此时动态域名服务器、<SPAN lang=EN-US>VSPM</SPAN>的监听端口都正常的话,串口服务器的<SPAN style="COLOR: blue">“连接已建立”</SPAN>指示灯将被点亮,<SPAN lang=EN-US>VSPM</SPAN>也应该提示<SPAN style="COLOR: blue">“<SPAN lang=EN-US>TCP/IP</SPAN>连接已经建立”</SPAN>,说明与远程主机已经建立起<SPAN lang=EN-US>TCP/IP</SPAN>连接。工作正常。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; tab-stops: 112.5pt"><B><SPAN style="FONT-SIZE: 14pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">注意事项:<SPAN lang=EN-US><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">由于<SPAN lang=EN-US>ADSL</SPAN>线路及动态域名的不确定性,很容易发生死连接的情况。串口服务器已经具备死连接检测功能。用户可以通过“<SPAN lang=EN-US>TCP/IP</SPAN>读超时<SPAN lang=EN-US>(</SPAN>秒<SPAN lang=EN-US>,0=</SPAN>无限<SPAN lang=EN-US>)(20):</SPAN>”来设置检测超时,<SPAN style="COLOR: blue">如果在此读超时内,串口服务器没有在此<SPAN lang=EN-US>TCP/IP</SPAN>连接上从远程主机收到数据,将中断此<SPAN lang=EN-US>TCP/IP</SPAN>连接,</SPAN>并根据“尝试连接服务器间隔<SPAN lang=EN-US>(100-65536</SPAN>毫秒<SPAN lang=EN-US>),(10000):</SPAN>”,等待一段时间后,重新尝试连接远程主机。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></B></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left" align=left><B><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt">用户可以使用<SPAN lang=EN-US style="COLOR: blue">VSPM</SPAN><SPAN style="COLOR: blue">心跳包插件</SPAN>,使<SPAN lang=EN-US>VSPM</SPAN>自动向串口服务器发送心跳包,防止串口服务器的死连接检测功能中断正常的无数据<SPAN lang=EN-US>TCP/IP</SPAN>连接。<SPAN lang=EN-US> <o:p></o:p></SPAN></SPAN></B></P>
文件下载(右键文件另存为)