Hi,
I have connected RFID printer(Zebra R2844-Z) to the serial port(/dev/ttyS0).My OS is linux(ubuntu).
The following is a program which is written in ZPL:
^XA
^RI0,,5^FS
^FO20,120^A0N,6 0^FN0^FS
^HV0,,Tag ID:^FS
^XZ
This program will read the RFID tag's ID and return the result back to the terminal. I saved this program as RL.zpl. I sent this program to the printer using minicom. It works fine. It reads and returns the tag id.
But what I have to do is, I have to send this RL.zpl to the printer(which is connected to the serial port) using a c++ program. I do't know how to do this. please help me!. please give me some ideas. If possible, please send me an example program.
Thanks in advance!
I have connected RFID printer(Zebra R2844-Z) to the serial port(/dev/ttyS0).My OS is linux(ubuntu).
The following is a program which is written in ZPL:
^XA
^RI0,,5^FS
^FO20,120^A0N,6 0^FN0^FS
^HV0,,Tag ID:^FS
^XZ
This program will read the RFID tag's ID and return the result back to the terminal. I saved this program as RL.zpl. I sent this program to the printer using minicom. It works fine. It reads and returns the tag id.
But what I have to do is, I have to send this RL.zpl to the printer(which is connected to the serial port) using a c++ program. I do't know how to do this. please help me!. please give me some ideas. If possible, please send me an example program.
Thanks in advance!
Comment