Read/Write serial port using php

V

Thread Starter

vasudevan

I need to write a small program in php which reads from serial port of a windows pc connected to a weigh bridge. I tried to test a program using dio by writing and reading from my pc. but the program is able to write continuously but my reading program is not able to read it from another session of the same pc. It say port is not accessible. can any one help?

thanks & regards
vasudevan
 
C

Curt Wuollet

That's perfectly understandable if it's the same port. The writing program locks it (exclusive open) and the reading port sees the lock and won't open it. Try using a named pipe. I don't know for sure what windows calls it.

Regards
cww
 
Top