Giving PHP permission to access COM port

前端 未结 1 1277
南笙
南笙 2021-01-18 17:35

I\'m creating a php script that connects to a 3G modem connected via serial connection on COM5.

I\'m getting the following error and I believe it is because php does

相关标签:
1条回答
  • 2021-01-18 18:10

    There are many ways to access COM ports on windows, alternatives to your method are opening it with the following paths:

    \Device\00000123 (You can find the correct value in device manager, properties, details, physical device object name)

    \\.\com5 (This is how I would open the port as a file if I was writing a program in C or something)

    0 讨论(0)
提交回复
热议问题