服务端
客户端
How can I get each client to read its own COM1 data? Thank you!
Reply content:
服务端
客户端
How can I get each client to read its own COM1 data? Thank you!
The problem is centered on the client. Server side is what, in the end, the client can only output HTML/CSS/JS source code, and no other beneficial privileges.
And on the client side, no single browser native provides this privilege, forget it.
The only way to do this is to write extensions (plugin) for the browser, just like the Adobe Flash Player. It's not an easy thing to do.
It is estimated that the time to play the ActiveX waste heat is coming again, but this way in IE is not a problem, the other browser is not good to say ... Or, in other languages (in my experience C # and Python are easier to manipulate the serial port), write a client-side HTTP service to access the serial port.
Oh, to remind you, when it comes to the client, it's okay with PHP.