Windows Read Serial Support [php_serial.class.php ]
来源:互联网 发布:766冒险岛数据库没有了 编辑:程序博客网 时间:2024/06/13 14:45
http://code.google.com/p/php-serial/issues/detail?id=1
Issue 1:
Windows Read Serial Support1 of 14 Next ›
3 people starred this issue and may be notified of changes.Back to listType-Defect
Priority-Medium
Sign in to add a comment
Hi,I have got windows to read from my serial port using the following code inplace of the 'not implemented' comment:------elseif ($this->_os === "windows"){ $content = "";if ($count > 0){$content = fread($this->_dHandle, $count);}return $content;}-----System: Vista 32bit with a Prolific USB to serial adapter cable.I hope that it is of some help.Cheers,David
Comment 1 by THEREDR...@gmail.com, Jan 6, 2011
Jan 8, 2011
, Why would I make a post saying it works if it didn't? give it a test for your hardware it will take all of 20 mins.As an added bonus I have attached my working version of the class.Have Fun!
May 27, 2011
, It looks very good!I send the message to MCU.It's all right!
May 31, 2011
, Yes, it is working for me... :-)
Nov 17, 2011
, What version of pf PHP is this working on? Will it work running Apache, PHP5.2 on Windows 7 64Bit? It works fine to write to the com port but I am still unable to read the comp port.
Nov 19, 2011
, PHP Version 5.3.1 (XAMPP package)Be worth checking php doco for issues using 'fread' and 64-bit, since the change uses it to read the data.
Mar 15, 2012
, so it mean that if i use XAMPP package then i can read the data from COM port in my windows? please give me some advices, and thank in advance.
Mar 15, 2012
, It means if your php/apache is running with sufficient privelege to access your windows com ports then you should be able to read from it.
Apr 1, 2012
, For me, write does work, read doesn't unfortunately. Even with the suggested change in code..
Jun 18, 2012
, ► Sign in to add a comment
hai all,, I need Help..I was try php_serial.class.phpcode$serial->sendMessage('Hallo');why I cannot get reply with code$result=$serial->readPort();print $result;regard newbie
- Windows Read Serial Support [php_serial.class.php ]
- php-serial
- php-serial
- A communication class for serial port
- A communication class for serial port
- Serial ATA (SATA) chipsets — Linux support status
- Serial ATA (SATA) chipsets — Linux support status
- Smarty error: unable to read resource: "result.html" in Smarty.class.php on line 1093
- Arduino中Serial.read()与Serial.write()关于数字的不同处理
- [Arduino教程3] Digital Read Serial-从串口读取数字信号
- boost C++ read from serial port with timeout example
- serial
- serial
- serial
- Unable to Read class 错误
- dlna support windows
- PHP调用java的class-推荐非windows系统
- How to use Serial Port in Windows
- 2013年10大网页设计趋势
- LoadRunner 11 安装及破解
- http协议学习
- linux内核中的文件描述符(四)--fd的分配--get_unused_fd
- Redis使用场景
- Windows Read Serial Support [php_serial.class.php ]
- 网站收藏
- 九度1031 xxx定律
- HTTP详解
- Ubuntu 10.04搭建JAVA开发环境
- java版快排。
- 1083. Networking(并查集求最小生成树)
- linux 4.5 安装Redis
- PHP串口扩展库 serial extension-试用版有限制