Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Receiving Data through Com 1

Status
Not open for further replies.

GKBray

IS-IT--Management
Jan 14, 2003
51
GB
Hi All,

I am attempting to write a small exe in vfp to receive data from my phone system through com 1.

I have the correct parametrs for the coms communication, as provided by the engineer that installed the system. I can receive data succesfully using Hyperterm, but I just can't seem to get anything in the input buffer of the mscomm32 Activex control.

When Hyper terminal starts, it sends some characters that displays on the screen as two exclamation marls, and a left arrow icon.

I believe that the phone system is waiting for a start communications command, so my question is :-

Does anyone know if there is a standard "Start communications" command that I could send to the phone system to initiate data transfer.

Once this is done, I belive that I could recieve the data into a temp cursor, sort it into the correct format, and then Insert it into a table.

Many thanks in advance for any comments.

G K Bray MCSE(Win2k) Trainee Programmer
 
I don't know if there is some standart start of comunications but you can try:
Code:
#define DC3 CHR(19) && Two exclamation marls
#define ESC CHR(27) && Left arrow

thisform.MyComm32Control.Output = DC3+ESC
and see what happens



Borislav Borissov
 
Thanks for the reply,

I've had to put this one on hold for the minute, as my ither work is putting me under pressure.

Regards

Graham

G K Bray Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top