|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-27 17:49 UTC] evert at hetbeest dot nl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 06:00:01 2025 UTC |
Description: ------------ DIO seems to be limited to a baud rate of 38400. I need to connect to my USB device with a speed of 115200. If I try that now I get: PHP Warning: dio_tcsetattr(): invalid baud rate 115200 Reproduce code: --------------- $fd = dio_open('/dev/ttyUSB0', O_RDWR | O_NOCTTY | O_NONBLOCK); dio_fcntl($fd, F_SETFL, O_SYNC); dio_tcsetattr($fd, array( 'baud' => 115200, 'bits' => 8, 'stop' => 1, 'parity' => 0 )); Expected result: ---------------- The settings applied as stated in the code above. Actual result: -------------- php index.php PHP Warning: dio_tcsetattr(): invalid baud rate 115200 in /var/www/zwave/index.php on line 11