Here are two tools you might be interested in: http://sourceforge.net/projects/binaryphp http://www.mibsoftware.com/php2cpp/
At 9600 its a serial port , For transmitting to USB you need to use Lib USB . If using a Serial port http://code.google.com/p/php-serial/