PHP Classes

What is the best PHP rs232 class?: Get data from rs232 in php for data logger

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP rs232 class?  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP rs232 class?

Edit

Picture of Sharad Kale by Sharad Kale - 9 years ago (2016-01-12)

Get data from rs232 in php for data logger

This request is clear and relevant.
This request is not clear or is not relevant.

+3

I am connecting arduino micro-controller with RFID reader to PC via RS232. And I am trying to get the logger data in PHP. How can i do that?

  • 1 Clarification request
  • 1. Picture of Dave Smith by Dave Smith - 9 years ago (2016-01-13) Reply

    There is an article that may help...

    http://www.phpclasses.org/blog/post/287-PHP-Integration-with-Embedded-Hardware-Device-Sensors.html

    Ask clarification

    1 Recommendation

    PHP Serial: Communicate with a serial port

    This class can be used to communicate with a serial port under Linux or Windows.

    It takes the path (like "/dev/ttyS0" for linux or "COM1" for windows) of serial device and checks whether it is valid before opening a connection to it.

    Once the connection is opened, it can send data to the serial port, and read answers (reading is only implemented for Linux).

    The class may also change connection parameters for the given serial device.

    The class is working with Linux for read and write operations, but under Windows it only works for write operations. Under Windiws try accessing the serial port through network with serproxy instead.

    The class have been reported to work fine with Mac OS X, but it was not tested it.
    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +2

    Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 9 years ago (2016-01-14) Comment

    In general you need to open a file that is actually the serial device port but that depends on the operating system. It can be COMX on Windows or /dev/ttySX on Linux and Mac.

    Anyway this class provides an abstraction for you to access serial RS232 ports in different operating system, as well control the parameters like speed rate and so on.


    Recommend package
    : 
    :