Page 1 of 1

Read data from serial port...

Posted: Sun Dec 01, 2002 5:52 am
by mfalomir
Hello....How can i read incoming data from my serial port (com1).... I have a PBX sending data to a "billing" PC through COM1 port, and I want to somehow read it and display it in a web page....is there a possible way to do it???? I would really appreciate some help :) please :)

Thanx....

BTW my pc runs Windows 2k

Posted: Sun Dec 01, 2002 7:03 am
by volka
if I remember correctly one can access the com-ports within a commandline window via COM1:, COM2:, ...
and in C

Code: Select all

HANDLE hCommResource = CreateFile( "\\\\.\\COM1", ....
opens COM1. One of those filenames might be working with php/win32, too, but I have no serial-port device to test it ;)