How PHP reads data from the serial port

Source: Internet
Author: User
If the data is obtained by the serial device, how to read the data information obtained by the serial device using PHP? Ask you.


Reply to discussion (solution)

Can ah, you use the application to monitor the serial port, get the data generated files, read files in PHP can be OH.

It is not clear what function to use now.

Please describe your application scenario.

Please describe your application scenario.



The product information is read out through the scanner, and then the data is accessed into the database. Because the scanner is a serial port, only through the Win XP HyperTerminal to connect to get data, the purpose of the request is to scan the product information, through the program can directly on similar text files directly read the data. Does PHP implement this feature? Or do you want to invoke another program? (currently known vb,c# can read the data directly)

Get data information once, the program determines whether to store, page refresh once.

You have to understand one thing: PHP works on the server side, then you are going to use PHP to read the serial port on the server?
You have a "page refresh" in your description, which is obviously not working on the server.
Since it's not, PHP is powerless.

Although PHP can be run on the client side in a command-line manner (of course, the client also needs to install PHP), but there is no user interface. The control is very inconvenient. Generally not as an alternative

Understand. Thank!

Do you realize reading the serial port with PHP? Trouble with the help? Thanks, man. qq379273045

  • 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.