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).
Viewed 645 times
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.
which returns an empty string. Also the printer is not receiving the hexadecimals (it is set on a hex-dump state, to print every hex it receives).
PHP Serial I somehow got hold of a « Citizen C2202-PD » point-of-sale display, and I wanted to play around with it. I also managed to get the documentation of it, and created a convenience class to access the serial port though the Linux file. This is the Linux Serial Programming HOWTO. All about how to program communications with other. If you free a serial port by disconnecting the mouse, remember to redirect /dev/mouse if it exists. If you use a multiport serial card, be sure to configure it. This has to be kept in mind when programming communication with a raw device.
This class can communicate with a Arduino board via serial port. It can open a connection with a USB serial port of a given name on Linux. The class can send and receive messages from the board. Prize: One big elePHPant Plush Mascott This class can communicate with a Arduino board via serial port. 5 Linux / Unix Commands For Connecting To The Serial Console last updated August 9, 2016 in Categories Command Line Hacks, Hardware, Networking M ost embedded Linux / BSD systems such as routers, servers and nas devices comes with console interface (serial port with RS-232). PHP by default does not offer good COM port support however a PHP extension called Direct IO does offers low level access to IO. We will use this extension for serial port communication. On unix system install the extension using PECL, open.
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.
If someone can please shed a light on why this is happening or if he has any similar experience, it would be great.
thanks!
Linux Serial Port Program
p.d: i am connecting using a prolific pl2303 serial to usb cable and its correctly installed as far as i am aware.
Kumar V
7,99188 gold badges3434 silver badges5353 bronze badges
![]() ![]() Serial Port Communication Software
BVJBVJ
Php Serial Port Communication Linux Software
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Linux Serial Port CommunicationBrowse other questions tagged phplinuxserial-portlow-level or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |