Communicating serial port on windows with php

白昼怎懂夜的黑 提交于 2019-12-03 03:37:01

You need to determinate COM port number of your USB device via some external command called trough PHP's shell_exec().

For Windows you can try this small tool:

http://todbot.com/blog/2012/03/02/listcomports-windows-command-line-tool-for-usb-to-serial/

https://github.com/todbot/usbSearch/

After you call this tool via shell_exec(), you need to parse it's output (RegExp) and look for exact COM port number based on company/device name.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!