PHP Classes
elePHPant
Icontem

PhpSerial with Centos 7

Recommend this page to a friend!

      PHP Serial  >  All threads  >  PhpSerial with Centos 7  >  (Un) Subscribe thread alerts  
Subject:PhpSerial with Centos 7
Summary:Errors in baud rate
Messages:1
Author:Alberto Chacon
Date:2019-10-29 03:11:50
 

 


  1. PhpSerial with Centos 7   Reply   Report abuse  
Alberto Chacon - 2019-10-29 03:11:50
Hello.


I have used the phpSerial routine for several years using Linux Centos 6.9 and PHP 5.3.3

I went to Centos 7 using PHP 5.6.40 and it is giving me the following error:

1st error:
[root@localhost sms]# php -f sms1.php
PHP Warning: Unable to set the baud rate : the device is either not set or opened in /var/www/sms/PhpSerial.php on line 221

Warning: Unable to set the baud rate : the device is either not set or opened in /var/www/sms/PhpSerial.php on line 221

2nd error:
[root@localhost sms]# PHP Warning: Unable to set baud rate: stty: /dev/ttyUSB0: unable to perform all requested operations
in /var/www/sms/PhpSerial.php on line 265

Warning: Unable to set baud rate: stty: /dev/ttyUSB0: unable to perform all requested operations
in /var/www/sms/PhpSerial.php on line 265
PHP Warning: Unable to set baud rate: stty: /dev/ttyUSB0: unable to perform all requested operations
in /var/www/sms/PhpSerial.php on line 265

Warning: Unable to set baud rate: stty: /dev/ttyUSB0: unable to perform all requested operations
in /var/www/sms/PhpSerial.php on line 265

I use the routine located in:
\php_serial-2014-05-02\src

Thanks in advance for the help.

Regards.