Page 1
TM-i Series PHP Setup Manual Overview Describes features and the development environment. Setup Describes settings required for using PHP with a TM-i. Sample Program Describes how to use the sample program and perform system configuration. M00051906 Rev.G...
Page 2
• Neither is any liability assumed for damages resulting from the use of the information contained herein. • Neither Seiko Epson Corporation nor its affiliates shall be liable to the purchaser of this product or third parties for damages, losses, costs, or expenses incurred by the purchaser or third parties as a result of: accident, misuse, or abuse of this product or unauthorized modifications, repairs, or alterations to this product, or (excluding the U.S.) failure to strictly comply with Seiko Epson Corporation’s operating and...
For Safety Key to Symbols The symbols in this manual are identified by their level of importance, as defined below. Read the following carefully before handling the product. Provides information that must be observed to avoid damage to your equipment or a malfunction. Provides important information and useful tips. Restriction of Use When this product is used for applications requiring high reliability/safety such as transportation devices related to aviation, rail, marine, automotive etc.; disaster prevention devices; various safety devices etc; or functional/precision devices etc, you should use this product only after giving consideration to including fail‐safes and redundancies into your design to maintain safety and total system reliability. Because this product was not intended for use in applications requiring extremely high reliability/safety such as aerospace equipment, main communication equipment, nuclear power control equipment, or medical equipment related to direct medical care etc, please make your own judgment on this product’s suitability after a full evaluation.
The aim of this manual is to provide development engineers with the necessary information to develop and design a system that registers and uses contents created using PHP (PHP: Hypertext Preprocessor) in the TM-i series. The TM-i series in this manual is a generic term for the following printers. TM-T88V-i TM-T70-i ...
Restrictions ............................10 ■ Contents in the Package....................12 Download ............................. 12 Setup .....................13 ■ Setup Flow........................... 13 Insert microSD Card ..........................13 Enable PHP ............................14 Registering Web Contents ........................14 ■ Setup without using EPSON TMNet WebConfig..............14...
Page 6
Sample Program ................15 ■ Sample Program System Overview.................. 15 Sample Program Screen........................15 Print Image ............................16 Sample Program File Configuration....................17 Program Flow ............................18 ■ Operating Environment ..................... 19 ■ Environment Settings......................20 Registering and Starting the Sample program (PHP_UM_E_Sample_Verx.xx.zip) ......21 Sample Program Settings........................22...
Overview Overview TM-i series can only register static contents (such as HTML files, CSS files, JavaScript or screen data). However, by inserting a microSD card into a TM-i and enabling PHP , you can register contents created using PHP .
PHP Operations PHP operates on a Web Server as shown below. Device TM-i 1. Request http://-----/index.php microSD card Http Server Web Browser 2. Data processing (Apache) HTML file 3. Response Web page PHP script file (HTML/JavaScript etc) Database (HTML, CSS, JavaScript) PHP module Database file (SQLite3)
For PHP , use TM-i firmware Ver. 2.0 or later. microSD card Supported microSD card standards. microSD card Support Support SDHC Support SDXC Not Support ❏ FAT 16/32 format is supported. ❏ 2 to 32 GB capacity is supported. Use a microSD card with wear leveling functionality. Epson recommends using a microSD card having an error detection and correction (ECC), and wear‐leveling functions. Be sure to use the dedicated formatting tool (SD Formatter) to format a microSD card. If a microSD card is formatted with Windows, SD card access may become slow. You can download the SD Formatter from the SD Associationʹs website (https://www.sdcard.org/home).
Compress the file you created together with the other web content files into a single ZIP folder. Register the file(s) in the TM-i series device. For details about how to compress and register web content files, refer to Chapter 2 "Setup" in the manual for the TM-i device you are using.
Page 11
Chapter 1 Overview ❏ If using PHP date-related functions, specify the time zone by using date_default_timezone_set at the beginning of PHP script. For details, refer to the PHP public Website. Do not use Etc/GMT time zones. ❏ The dynamic load (dl function) of the PHP expansion module is disabled. ❏...
Chapter 2 Setup Setup This chapter describes the settings necessary to use PHP with the TM-i. Setup Flow 1. Insert microSD Card Insert a microSD card to the TM-i. 2. Enable PHP Set the TM-i so that PHP can be used. 3.
Connect the TM-i, with the micro SD card inserted in it, to the same network as the setting computer, and turn its power on. 2. Start EPSON TMNet WebConfig Access the address bar of the Web browser on the PC for setting to start EPSON TMNet WebConfig. TM-i Firmware Ver.4.0 or later http://TM-i's IP address/webconfig/PHPSetting ...
Chapter 3 Sample Program Sample Program This chapter describes how to use the sample program. Sample Program System Overview Sample Program Screen Product name, price, discount, and other settings are saved to the SQLite database. This information is then obtained from the database with a PHP program. Products, prices, and total price can be printed using the ePOS-Print API.
Item Description Displays the "Settings" screen. The screen is used to set the following: IP address of the TM-i (Default : 192.168.192.168(Up to the firmware Ver.2.x.) DHCP(Firmware Ver.3.0 or later) (If an address fails to be assigned via DHCP , the 6 Settings value becomes "192.168.192.168".) ...
Chapter 3 Sample Program Sample Program File Configuration The sample program has the following file configuration. File name Description Stores the style sheet for the main screen. Stores the JavaScript used for the main screen. index.html The main screen of a Web page. This screen is displayed from the TM-i via a browser.
Program Flow From its initial display state up to print job completion, the sample program flows as below. 1. Open the sample program Web page 2. Settings ❏ IP address of the TM-i ❏ Device ID of the printer to be controlled 3.
Chapter 3 Sample Program Operating Environment The system configuration diagram for the sample programs is as below. The figure below also describes an example of IP address settings as network settings. Wireless Network Computer to configure the settings [192.168.192.10] Terminal [192.168.192.XXX] Wireless LAN Router [192.168.192.1]...
Configure the network settings of the TM-i. Set the IP address and other network settings on the printer using EPSON TMNet WebConfig. For the setting method, see Chapter 2 [Setup] in the Technical Reference Guide for the TM-i used.
Connect the TM-i to the same network as the setting computer, and turn its power on. 2. Start EPSON TMNet WebConfig Access the address bar of the Web browser on the PC for setting to start EPSON TMNet WebConfig. TM-i Firmware Ver.4.0 or later http://TM-i's IP address/webconfig/PHPSetting ...
Sample Program Settings Configure the settings for the sample program according to the procedure below. In the sample program, "Device ID Settings" are not required. Refer to it if necessary. Connect all printers to the network. Turn the power on of all printers connected to the network. Open the following URL page using the Web browser.
Page 23
Chapter 3 Sample Program The “Settings” screen appears. Specify the following and click [OK]. Item Description Specifies the IP address of the TM-i. IP address of the TM-i (Default value: 192.168.192.168(Up to the firmware Ver.2.x.) DHCP(Firmware Ver.3.0 or later) (If an address fails to be assigned via DHCP , the value becomes "192.168.192.168".) Specifies the Device ID of the printer to print.