|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59478 Set higher bitrates on serial (USB) ports
Submitted: 2010-10-27 07:40 UTC Modified: 2010-10-27 17:49 UTC
From: evert at hetbeest dot nl Assigned:
Status: Not a bug Package: dio (PECL)
PHP Version: 5.3.2 OS: Linux (Ubuntu 10.04)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
48 - 31 = ?
Subscribe to this entry?

 [2010-10-27 07:40 UTC] evert at hetbeest dot nl
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-27 17:49 UTC] evert at hetbeest dot nl
It does work with fopen().
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Nov 28 15:05:53 2022 UTC