php-serial
来源:互联网 发布:淘宝 军品 编辑:程序博客网 时间:2024/05/18 20:33
- rizw...@gmail.com,remy.san...@hyperthese.net
This PHP class can be used to communicate with a serial port under Linux, OSX or Windows.
Description
Gives serial access to PHP under linux, OSX and Windows (write-only under Windows).
This class can be used to communicate with a serial port under Linux, OSX 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 or OSX).
The class may also change connection parameters for the given serial device.
Sample Code
<?php deviceSet("COM1"); // Then we need to open it $serial->deviceOpen(); // To write into $serial->sendMessage("Hello !"); // Or to read from $read = $serial->readPort(); // If you want to change the configuration, the device must be closed $serial->deviceClose(); // We can change the baud rate $serial->confBaudRate(2400); // etc... ?>
Older details available at : http://www.phpclasses.org/browse/package/3679.html http://www.geekymedia.com/phpserial.html
- php-serial
- php-serial
- serial
- serial
- serial
- Windows Read Serial Support [php_serial.class.php ]
- PHP串口扩展库 serial extension-试用版有限制
- Serial Programming/Serial Java
- about serial
- Serial Communication
- Serial Drivers
- Serial ATA
- usb serial
- Serial Port
- python--serial
- Serial Drivers
- Serial communication
- linux serial
- D-Target 1
- Android:Context.startService/Context.bindService的区别
- windows xp 安装sql server 2000提示‘以前的某个程序安装已在安装计算机上创建挂起的文件操作。运行安装程序之前请重新启动计算机’
- jquery常用选择器
- 给证件照换背景颜色
- php-serial
- 庖丁解牛TLD(三)——算法初始化 .
- IE10的新世纪
- H264 encode and decode
- cmd命令学习
- JNI完全手册
- Java杂记——final
- JavaCookbook-5.数字
- 源于魔兽!《植物大战僵尸》成功奥秘