Difference between revisions of "EPD-132 EVK User Manual"

From ESS-WIKI
Jump to: navigation, search
Line 248: Line 248:
 
== Download Image ==
 
== Download Image ==
  
#
+
 
 +
 
 
'''type IT8951_USB_Cmd.exe -load <filename>'''
 
'''type IT8951_USB_Cmd.exe -load <filename>'''
  

Revision as of 02:41, 12 June 2018

Introduction

This document will teach you how to use EPD-132R EVK to display image.

Preparation

EVK Components

Item  Description
1  EPD 
2  EVK mainboard
3  Power adapter and cable
4  ED22 board
5  ED22 micro USB cable
6  10 pin FFC cable
7  2.4G Wi-Fi antenna

RTENOTITLE

2.4G Wi-Fi AP

Prepare a 2.4G Wi-Fi AP.

Win7 PC

Prepare a win7 PC.

Setup TFTP server

  1. Make sure PC connect to 2.4G Wi-Fi AP and get IP address
  2. Recommend used tftpd64
  3. Set the process reference link  https://www.youtube.com/watch?v=YdVEonLMWYs

Python Environment Setup

  1. Download and install Python (must use Python version 2.7.x)
  2. Set the variables of Widows environment path: add “C:\Python27;C:\Python27\Scripts” to path  
  3. Download and install python PIL package
  4. Download and unzip picture transformation tool "BmpToPixel_D73.py"

Bmp Image To EPD Format

  1. Run BmpToPixel_D73.py <source BMP image filename> <output filename> in cmd window
    • source BMP image filename: the image file to be converted
    • output filename: converted file name(recommend to use "esl" as the extension)
    • Bmp size must comply with EPD resolution 1600 x 1200
    • Bmp file: mono color/16 color/256 color/24bits bitmap format
    • Ex: BmpToPixel_D73.py EVK_03.bmp EVK_03.esl
  2. Type BmpToPixel.bat to use batch conversion in directory
  3. Copy output files to tftp Base Directory 

           RTENOTITLE

WISE-ED22 Setup

  1. Download and install WISE-ED22 driver
  2. Connected to PC via a micro USB cable, the Device  Manager will appear mbed Serial Port

          RTENOTITLE

EVK Setup

Hardware Setup

       Follow steps and picture below to setup the hardware

  1. Connected EPD FPC to mainboard
  2. Connected Wi-Fi antenna to mainboard
  3. Connected ED22 board to mainboard via FFC cable
  4. Connected ED22 board to PC via micro USB cable
  5. Connected power cable to mainboard USB1

       RTENOTITLE

Command Console Setting

Start a serial tool(use tera term in this), and make the communication setting as shown below.

     RTENOTITLE

EVK Start

Press “RST” button, the screen will show as below

    EPD-132R EVK Start v2.png

Example : Download and Refresh Image

Example Architecture

The example architecture is as below

EPD-132R EVK Architecture.png

Launch TFTP Service

  1. PC join to Wi-Fi AP
  2. Lunch tftpd64.exe and select "Tftp Server" tab
  3. Check image folder, image file size must be 960000 byte​ 

​              ​RTENOTITLE

  1. Select tftp server IP

              RTENOTITLE

EVK Join to Wi-Fi AP

  1. EVK operates in command mode, you must start a serial tool.
  2. type join  <SSID> <encryption> [key]
    • SSID, encryption protocol and key consistent with Wi-Fi AP setting
    • Ex: join RT66 wpa2_aes 12345678
  3. Get IPv4 IP if join successful

            RTENOTITLE 

Download Images to Flash

tftp <ip> <filename> <flash index> [-r] 

  • ​​ip: tftp server ip
  • filename: image file name 
  • flash index: range 0~3, that have maximum  4 images(0~3) be saved in flash 
  • -r : immediate refresh after download complete
  • Ex: tftp 192.168.8.178 example_2.esl  1 -r

Refresh Image

epd_disp <-f flash index | -i internal image index>

  • -f: display image that read from flash, range 0~3 
  • -i: display internally generated image, range 0~4    
        0: fully black
        1: full white
        2: full red
        3: black/white/red vertical stripes
        4: black/white/red horizontal stripes
  • Ex: epd_disp -f 1
  • Ex: epd_disp -i 4 

EVK Command

Describes the EVK commands that you can use.

Command List

Command
Function
 evk_info
 get EVK version
 epd_info
 get EPD information
 get_mac_addr
 get MAC
 ping
 ping command
 join
 Wi-Fi connect
 tftp
 download Images to Flash
 epd_disp
 refresh Image
 iperf
 Wi-Fi throughput test
 bt_wifi
 start ble-wifi introducer service

Command Description

  • evk_info: Return EVK version
  • epd_info: Return EPD model name, resolution and F/W version 
  • get_mac_addr: Return EVK MAC address
  • ping <dest> [-i <interval in ms>] [-n <number>] [-l <length>] 
    • Return ping reply time if successful
    • ping 8.8.8.8 -i 100 -n 5 -l 50
  • join: Reference “EVK Join to Wi-Fi AP 
  • tftp: Reference “Download Images to Flash
  • epd_disp: Reference "Refresh Image” 

BLE-WiFi Introducer Service

Ble-WiFi introducer service is a demonstration that set SSID and password to join network by phone. EVK will launch a BLE GATT server and advertise itself.
Then you need to manipulate on your phone.

Step 1: Install and launch the BLE Scanner app on iOS or Android.

    EPD-132R EVK ble-wifi step1.png

Step 2:  Pull down the screen to rescan devices and it will list nearby BLE devices. Find the “WiFiInt” device and press CONNECT button.

        EPD-132R EVK ble-wifi step2.png

Step 3:  If the connection is successful, you can see the picture below. Press  the "CUSTOM SERVICE" button.

        EPD-132R EVK ble-wifi step3.png

Step 4: Find the UUID: ACA0EF7C-EEAA-48AD-9508-19A6F6B356 for SSID characteristic.

        EPD-132R EVK ble-wifi step4.png

Step 5: Find the UUID: 40B7DE33-93E4-4C8B-A876-D833B415A6CE for Password characteristic then procedure as Step4.
        EPD-132R EVK ble-wifi step5.png

Easy and Fast to Refresh Image via USB

Hardware Setup

Follow steps and picture below to setup the hardware

  1. Connected EPD FPC to mainboard
  2. Connected USB cable to mainboard USB2

        RTENOTITLE

Tool Setup

  1.  Download and unzip EPD-132R_CLI tool
  2.  Run Windows “cmd.exe”
  3.  Change to EPD-132R_CLI directory
  4. Type “IT8951_USB_Cmd.exe -version” to get EPD panel information

        RTENOTITLE

Download Image

type IT8951_USB_Cmd.exe -load <filename>

  • load: load image command
  • filename: image file name, only supports bmp and jpg type
  • Ex:IT8951_USB_Cmd.exe -load 13.3inch-02.jpg
  • The image will not saved in flash

        RTENOTITLE