How to send ASCII values to the RFID printer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsaikamesh
    New Member
    • Oct 2006
    • 20

    How to send ASCII values to the RFID printer?

    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!
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    have a look at
    http://www.geocities.c om/horacespider/Serial_IO/Linux/terminal.c

    which contains functions to read and write the serial port under Linux

    Comment

    Working...