Php Serial Port Communication Linux Download
I am building an online POS and trying to establish low level communication with an Epson tm-t88iv thermal printer. There is no direct printing of files, only hexadecimals or ascii can be sent to the hardware in a specific format for it to print. All of this done in a linux enviroment (both ubuntu 13.10 and 12.04). Now the problem is that I can't establish communication with the printer. I have tried using Jzebra and other java to javascript libraries but with no luck, so I changed to a more familiar environment and tried using the php serial class with a status check code but nothing happens. Include 'src/PhpSerial.php'; // Let's start the class $serial = new PhpSerial; $serial->deviceSet('/dev/ttyUSB0'); $serial->confBaudRate(38400); $serial->confParity('none'); $serial->confCharacterLength(8); $serial->confStopBits(1); $serial->confFlowControl('none'); $serial->deviceOpen(); $serial->sendMessage(' x02 x81 x1B x02 x01 x03 x5C x5C'); $read = $serial->readPort(); var_dump($read); which returns an empty string.
This class can communicate with a Arduino board via serial port. With a USB serial port of a given name on Linux. Crashplan Proe Cracked here. Class for php-Arduino communications on Linux.
Also the printer is not receiving the hexadecimals (it is set on a hex-dump state, to print every hex it receives). Manual Impresora Hp Deskjet 520. I am not sure even if its a coding or hardware problem. I tried installing cutecom to talk with serial port but I don't get any answers either. I also tried doing some stty commands directly from shell but got nothing either.