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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial Port Problems

Status
Not open for further replies.

booeyOH

Programmer
May 30, 2007
48
0
0
US
Hello,
I have a modem on the Serial Port and am trying to use PHP to read/write to it. I found this:


It seems like it would work great, except, for some reason, on this server, when I fopen("/dev/ttyS0", "r+"), it just hangs, doesn't give an error back or anything, just hangs.

Any ideas?

Thanks.

Booey
 
Hi,
Can you post some more code as how are you using the class, methods etc.?

--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
Even using the canned example that they have for the class ( only changing the device to "/dev/ttyS0", it will hang.

If anyone has a device on "/dev/ttyS0" on a linux machine and would be willing to try out the example that comes with the serial class (in the link above) and see if they can get it to work, that would be great.

I haven't ruled out that has something to do with the way my server is configured.

Thanks,
Boeey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top