PHP reads the data from the COM1 port

Source: Internet
Author: User
服务端

  • Ubuntu
  • Apache2

客户端

  • Windows X
  • Browser X

How can I get each client to read its own COM1 data? Thank you!

Reply content:

服务端

  • Ubuntu
  • Apache2

客户端

  • Windows X
  • Browser X

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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.