Php Serial Port Communication Linux Wine

  

Getting X-CTU in Wine to detect your serial ports Doug Brown Linux 2013-03-29 For a few years now, I’ve been fighting a weird problem: X-CTU (which is a software utility provided by Digi for programming XBee modules) is only available for Windows. This is a step-by-step guide to using the serial port from a program running under Linux. The serial communication does not group transmitted data into packets. How To Check and Use Serial Ports Under Linux. Linux serial port, linux serial port communication, linux serial port. 25 PHP Security Best Practices For Sys. “How to enable USB-Serial Port adapter (RS-232) in Ubuntu Linux” is very well written and enabled me (complete newcomer) to get COM2 recognised by the SeaClear.exe navigation program running under wine. Howto: Using USB serial ports under wine on Linux restricted to system processes, of which wine is not one (when invoked by a normal user). The most straightforward way around this is to create a udev assignment which forces the.

Active6 years, 6 months ago
Wine

Hyperterminal

This class can be used to communicate with a serial port under Linux 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. (PHP 4 >= 4.3.0, PHP 5 serial port. To get my Linux box to talk to an external serial.

I am trying to communicate with a micro controller trough a serial port under Linux.I am using a USB to serial cable for the purpose, but my php script is giving me the following error:

Fatal error: Call to undefined function deviceSet()

Here is my script

Games

I have my doubts that the php_serial.class file has trouble running the serial connection through USB, any ideas?

Serial Port Communication Software

Also it seems like there is a problem with this:

Thanks.

Wine

I edited the $serial ->deviceSet() and now a bunch of errors appear

Specified serial port is not valid in /var/www/html/php_serial.class.php on line 111 Warning: Unable to set the baud rate : the device is either not set or opened in /var/www/html/php_serial.class.php on line 204 Warning: Unable to set parity : the device is either not set or opened in /var/www/html/php_serial.class.php on line 254 Warning: Unable to set length of a character : the device is either not set or opened in /var/www/html/php_serial.class.php on line 298 Warning: Unable to set the length of a stop bit : the device is either not set or opened in /var/www/html/php_serial.class.php on line 335 Warning: Unable to set flow control mode : the device is either not set or opened in /var/www/html/php_serial.class.php on line 376 Warning: The device must be set before to be open in /var/www/html/php_serial.class.php on line 137 Warning: Device must be opened to read it in /var/www/html/php_serial.class.php on line 474

Is this a problem with the php_serial.class

user2137005
user2137005user2137005

1 Answer

deviceSet() is a method of the serial class. The way you're calling it, it would need to be a native PHP function.

It should be: $serial->deviceSet('ttyUSB0');

mkaatmanmkaatman
4,4891 gold badge24 silver badges46 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged phplinuxserial-portusb or ask your own question.