fran Posted June 12, 2013 Share Posted June 12, 2013 My code is telling me that the port is open but isn't reading $buffer. No errors are reporting. error_reporting(E_ALL); $fp = fopen('COM1', 'r+'); if(!fp){ echo "Port not accessible"; } else { echo "Port COM1 opened."; } $output = "mode COM1: BAUD=1200 PARITY=Even data=7 stop=1 Xon=off"; $buffer = fgets($fp); echo "Read: $buffer"; Any suggestions? Link to comment https://forums.phpfreaks.com/topic/279079-insert-data-from-com-port/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.