Make sure your COM2 is installed, turned on, and works right in the device manager, if you havenβt. Also, which Arduino model are you using? I do not think that this question can be answered without additional information. It might be wise to add this information to your original question. In addition, we cannot see the source of the php_serial class without registering for an account, which I do not want to do. I understand that this is more of a comment than an answer, but I need a little more comments for comments (a flaw in the SO reputation system, in my opinion.) But the original question will not get an answer without additional information, so I felt it was appropriate to add. Good luck.
source share