Edit
by Sujeet Salunke - 8 years ago (2016-09-08)
Get value from milk analyzer machine
| I have milk analyzer machine. I want to get a value from the machine connected to a PC serial port.
|
- 2 Clarification requests
3.
by Dinesh - 6 years ago (2018-04-09) Reply
is that class qorked for you
1.
by Manuel Lemos - 8 years ago (2016-09-09) Reply
Is it connected via a serial port?
2.
by Sujeet Salunke - 8 years ago (2016-09-12) in reply to comment 1 by Manuel Lemos Comment
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.
| by Manuel Lemos 26695 - 8 years ago (2016-09-12) Comment
This is a old class but it very popular for communicating with devices using a serial port either on Linux, Windows and Mac OS X. |