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? Quote Link to comment https://forums.phpfreaks.com/topic/279079-insert-data-from-com-port/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.