jones
Joined: 24 Nov 2007 Posts: 1
|
Posted: Sun Nov 25, 2007 12:17 am Post subject: Serial comm using ASP |
|
|
I want to know if this is correct or something is lacking if I'm going to use ASP to communicate serially from a PIC16F877A.I'm going to receive data from PIC and check it in the database from the PC and then returns confirmation message to the PIC
<%
dim serial : set serial = server.createobject("mscomm1.mscommlib")
dim rec_msg
serial.setting ="9600 N 8 1"
rec_msg = serial.input
.
.
.
%>
Is this right for initialization and receiving data from PIC or not? Is there something first I need to command before I could use the "rec_msg" variable value to compare it in my database?
Please I need your answers |
|