Talk to serial devices in PHP