PHP Classes

fopen(serial port) hanging

Recommend this page to a friend!

      PHP Serial  >  All threads  >  fopen(serial port) hanging  >  (Un) Subscribe thread alerts  
Subject:fopen(serial port) hanging
Summary:with some device (PLC) php fopen(serial port) hangs indefinitely
Author:Paul Godard
Date:2009-04-03 13:29:40
Update:2014-05-17 18:41:17

  1. fopen(serial port) hanging   Reply   Report abuse  
Picture of Paul Godard Paul Godard - 2009-04-03 13:29:40

I have tested the serial classes on Mac OS-X with a Sunix USB/serial adapter. When I connect to a Festo MTR-DCI motor, everything works fine. However, as soon as I try to connect to the PLC, the $serial->deviceOpen() hangs at fopen(serial port) for no obvious reason.

Strangely Mac Terminal or QuickTerm communicate fine with the PLC.

Any idea how to fix this issue?

  2. Re: fopen(serial port) hanging   Reply   Report abuse  
Picture of Philipp Philipp - 2014-05-17 18:41:17 - In reply to message 1 from Paul Godard

could you solve the problem?
I aseem tohave a similar problem: deviceOpen hangs forever if I use any flow control other than "none" ("rts/cts" or "xon/xoff").