Re: [PHP] Serial Comm problem

2012-12-26 Thread Matijn Woudt
On Tue, Dec 25, 2012 at 8:36 PM, Ken Arck ah...@ah6le.net wrote: I'm pretty much a php newbie but have been programming for years in other languages Anyway... Using /dev/ttyS0. I need to set the serial port to 9600, send one command to an embedded processor board, then change the baud rate

[PHP] Serial Comm problem

2012-12-25 Thread Ken Arck
I'm pretty much a php newbie but have been programming for years in other languages Anyway... Using /dev/ttyS0. I need to set the serial port to 9600, send one command to an embedded processor board, then change the baud rate to 57600 and wait for a response. My code is working up to (and

Re: [PHP] Serial Comm problem

2012-12-25 Thread Ken Arck
At 11:36 AM 12/25/2012, you wrote: The ^ is sent by the remove device with \r\n so I assumed telling fgets to look for one character should be enough but apparently it isn't. ---Sorry but the above is wrong. The ^ is sent by the remove device WITHOUT \r\n Ken -- PHP General Mailing