求RS232/485 转换器的通讯测试程序 最好是C++程序

来源:百度知道 编辑:UC知道 时间:2024/06/30 20:27:46
用RS232/485转换器连接2台PC机,从一台PC机上输入一个字符串经过转换器能从另一 台上显示出来就行了..

<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/conn.asp" -->
<%
set rs_detail=Server.CreateObject("ADODB.RecordSet")
sql="SELECT * FROM DB_goodinfo WHERE GoodID = '" + Request.QueryString("GoodID") + "'"
rs_detail.open sql,conn,3,3
%>

<%
RecID=request.QueryString("GoodID")
strSQL="Select a.*,b.TypeID from DB_goodinfo a Left Outer Join DB_goodType b On a.Type=b.Type where a.GoodID='"&RecID&"'"
Set RS=Server.CreateObject("ADODB.RecordSet")
RS.Open strSQL,conn,1,1
if session("BH")>0 then '记录浏览次数
RecordBrows RS("TypeID"),RS("GoodID"),"brows"
end if
%>

<%
Sub RecordBrows(TypeID,GoodID,sType)
dim tmpRS,strSQL
Set tmpRS=Server.CreateObject("ADODB.RecordSet")