How To: Develop a Point-of-Sale an Interface for ChefTab

ChefTab® is designed to emulate the command sets of most major printer manufacturers, but occasionally our customers would like to have a direct interface to the ChefTab®. This document is intended to allow a developer to quickly develop an interface to the patent-pending ChefTab®

The good news is that setting up an interface to ChefTab® only takes 3 steps.

1)   Establish a client TCP/IP Socket Connection to port 9100. The ChefTab® IP Address will need to manually entered into your application by the end user or installer.

2)   Send any ASCII characters you would like.   We accept, but do not process the standard ESC/POS command set, so you can send us the exact string you would have sent the receipt printer. ChefTab focuses on receiving plain text as if it were a receipt., so please implement a receipt header, receipt footer, item lines with leading quantities, and modifier lines with an indent. This lets our Ticket Genie work most effectively. ChefTab also accepts HTML and XML formatted data.

3)   Close the socket. This signifies end of an atomic ticket to the ChefTab® system.

Below is a sample Java/Android example. We will not cover every sample code example here since we have developers using everything from C++ and VB to Java, Objective-C, and Python to integrate to ChefTab®.

// 1) Establish a Socket Connection
Socket s = new Socket(ChefTabIPAddress, 9100);
OutputStream out = s.getOutputStream();
OutputStreamWriter writer = new OutputStreamWriter(out, "ISO-8859-15");
BufferedWriter bufferOut = new BufferedWriter(writer);
// 2) Send ASCII String (or HTML)
// 3) Close Socket Connection

Note: You can test sending messages to the ChefTab® by using command line networking tools such as netcat or telnet.

Try these (Substituting with your ChefTab IPv4 Address):

nc 9100
Hello World
 --- or --- 
telnet 9100
Connected to
Escape character is '^]'.
Hello World
telnet> q