Hello Corey,
This doesn't really answer your question, but I've recently been doing
java serial work on osx for some robotics stuff.
Take a look at http://rxtx.qbang.org/wiki/index.php/Main_Page
Sorry I dont have more specific php info.
- Ben
Corey Fogarty wrote:
Hi All,
I am trying to connect to /dev/tty.USA28Xb2P1.1 which is a Keyspan USB
to Serial adapter. I have had success using the screen utility,
#screen /dev/tty.USA28Xb2P1.1 but I would like to use PHP to create a
web interface to a microcontroller.
I have attempted fopen with no luck:
$port = "/dev/tty.USA28Xb2P1.1";
$p = fopen($port, 'r+');
$read = fread($p, filesize($port));
fclose($p);
echo $read;
$p = fopen($port, 'r+');
fwrite($p, "A");
fclose($p);
I have tried SerProxy but cannot get a connection through telnet. I
have also tried LibSerial but could only find version 0.5.2 which does
not yet support PHP apparently... I have read about IOKit but I am not
sure it will get me where I want to be.
Any help would be greatly appreciated.
Thank you!
Corey
------------------------------------------------------------------------
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php