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

From ESS-WIKI
Jump to: navigation, search
 
(54 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Introduction =
+
= EVALUATION KIT OF EPD-132 =
  
 
This document will teach you how to use EPD-132 EVK to display image.
 
This document will teach you how to use EPD-132 EVK to display image.
  
= Preparation =
+
== Components List ==
 
 
== EVK Components List ==
 
  
 
{| border="2" cellspacing="1" cellpadding="1" style="width: 317px;"
 
{| border="2" cellspacing="1" cellpadding="1" style="width: 317px;"
Line 13: Line 11:
 
|-
 
|-
 
| style="text-align: center;" | '''1'''
 
| style="text-align: center;" | '''1'''
| style="width: 255px;" | ''' EPD '''
+
| style="width: 255px;" | ''' 13.3” EPAPER'''
 
|-
 
|-
 
| style="text-align: center;" | '''2'''
 
| style="text-align: center;" | '''2'''
| style="width: 255px;" | '''&nbsp;EVK mainboard'''<br/>
+
| style="width: 255px;" | '''&nbsp;Mainboard'''<br/>
 
|-
 
|-
 
| style="text-align: center;" | '''3'''
 
| style="text-align: center;" | '''3'''
Line 43: Line 41:
 
=== BLOCK DIAGRAM ===
 
=== BLOCK DIAGRAM ===
  
== 2.4G Wi-Fi AP ==
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK Architecture.png|500x323px|RTENOTITLE]]
 +
 
 +
== TOOL AND DEVELOPMENT ENVIRONMENT SETUP ==
 +
 
 +
=== 2.4G Wi-Fi AP SETTING WITH BLE APP ===
 +
 
 +
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.<br/>Then you need to manipulate on your phone.
 +
 
 +
Step 1: Install and launch the BLE Scanner app on iOS or Android.
 +
 
 +
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step1.png|400x125px|EPD-132R EVK ble-wifi step1.png]]
 +
 
 +
Step 2: &nbsp;Pull down the screen to rescan devices and it will list nearby BLE devices. Find the “WiFiInt” device and press CONNECT button.
  
Prepare a 2.4G Wi-Fi AP.
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step2.png|226x400px|EPD-132R EVK ble-wifi step2.png]]
  
== Win7 PC ==
+
Step 3: &nbsp;If the connection is successful, you can see the picture below. Press &nbsp;the "CUSTOM SERVICE" button.
  
Prepare a win7 PC.
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step3.png|226x400px|EPD-132R EVK ble-wifi step3.png]]
  
== Setup TFTP server ==
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;Note: You need to remove bluetooth pairing with "WiFiInt" from bluetooth setting when &nbsp;you can not connect to device.
 +
 
 +
Step 4: Find the UUID: ACA0EF7C-EEAA-48AD-9508-19A6CEF6B356 for SSID characteristic.
 +
 
 +
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step4.png|495x431px|EPD-132R EVK ble-wifi step4.png]]
 +
 
 +
Step 5: Find the UUID: 40B7DE33-93E4-4C8B-A876-D833B415A6CE for Password characteristic then procedure as Step4.
 +
 
 +
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step5.png|226x400px|EPD-132R EVK ble-wifi step5.png]]
 +
 
 +
Step 6:&nbsp;If the join&nbsp;is successful can see network IP&nbsp;on console screen.
 +
 
 +
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:WISE-1530 BLE scanner-5.png|RTENOTITLE]]
 +
 
 +
=== Win7/10 PC ===
 +
 
 +
Prepare a win7/10 PC.
 +
 
 +
=== TFTP DOWNLOAD/UPLOAD FILE ===
  
 
#Make sure PC connect to 2.4G Wi-Fi AP and get IP address
 
#Make sure PC connect to 2.4G Wi-Fi AP and get IP address
#Recommend used [https://bitbucket.org/phjounin/tftpd64/downloads/Tftpd64-4.62-setup.exe tftpd64]
+
#Recommend used&nbsp;[https://bitbucket.org/phjounin/tftpd64/downloads/Tftpd64-4.62-setup.exe tftpd64]
 
#Set the process reference link&nbsp;&nbsp;[https://www.youtube.com/watch?v=YdVEonLMWYs https://www.youtube.com/watch?v=YdVEonLMWYs]
 
#Set the process reference link&nbsp;&nbsp;[https://www.youtube.com/watch?v=YdVEonLMWYs https://www.youtube.com/watch?v=YdVEonLMWYs]
  
== Python Environment Setup ==
+
=== Python Environment Setup ===
  
#Download and install [http://www.python.org/ Python]&nbsp;(must use&nbsp;Python 2.7.x Windows x86)
+
#Download and install&nbsp;[http://www.python.org/ Python]&nbsp;(must use&nbsp;Python 2.7.x Windows x86)
#Set the&nbsp;variables of Widows environment path:&nbsp;add “C:\Python27;C:\Python27\Scripts” to path&nbsp;&nbsp;
+
#Set the&nbsp;variables of Widows environment path:&nbsp;add “C:\Python27;C:\Python27\Scripts” to path
 
#Download and install python&nbsp;[http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe PIL package]
 
#Download and install python&nbsp;[http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe PIL package]
#Download and unzip picture transformation&nbsp;tool "[[Media:EPD-EVK_BmpToPixel_EPD-132R_v1.4.2.zip|BmpToPixel_EPD-132R.py]]"
+
#Download and unzip picture transformation&nbsp;tool "[http://ess-wiki.advantech.com.tw/wiki/images/0/02/EPD-EVK_BmpToPixel_EPD-132R_v1.4.2.zip BmpToPixel_EPD-132R.py]"
  
== Bmp Image To EPD Format ==
+
=== Bmp Image To EPD Format ===
  
 
#Run BmpToPixel_D73.py &lt;source BMP image filename&gt; &lt;output filename&gt; in cmd window
 
#Run BmpToPixel_D73.py &lt;source BMP image filename&gt; &lt;output filename&gt; in cmd window
Line 75: Line 103:
 
#Copy output files to tftp Base Directory&nbsp;
 
#Copy output files to tftp Base Directory&nbsp;
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[[File:EPD-132R EVK tftpd base dircetory.png|RTENOTITLE]]
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK tftpd base dircetory.png|RTENOTITLE]]
  
== WISE-ED22 Setup ==
+
=== WISE-ED22 Setup ===
  
#Download and install [https://developer.mbed.org/media/downloads/drivers/mbedWinSerial_16466.exe WISE-ED22 driver]
+
#Download and install&nbsp;[https://developer.mbed.org/media/downloads/drivers/mbedWinSerial_16466.exe WISE-ED22 driver]
#Update WISE-ED22 [[Media:Lpc11u35_stm32F412_v1.3.zip|FW]] for EPD-132 project. You can reference&nbsp;[http://ess-wiki.advantech.com.tw/view/WISE-ED22_User_Manual#ED22_Firmware_Update ED22 Firmware Update].
+
#Update WISE-ED22&nbsp;[http://ess-wiki.advantech.com.tw/wiki/images/b/b7/Lpc11u35_stm32F412_v1.3.zip FW]&nbsp;for EPD-132 project. You can reference&nbsp;[http://ess-wiki.advantech.com.tw/view/WISE-ED22_User_Manual#ED22_Firmware_Update ED22 Firmware Update].
 
#Connected to PC via a micro USB cable, the Device &nbsp;Manager will appear mbed Serial Port
 
#Connected to PC via a micro USB cable, the Device &nbsp;Manager will appear mbed Serial Port
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK wise-ed22 driver.png|RTENOTITLE]]
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK wise-ed22 driver.png|RTENOTITLE]]
  
= EVK Setup =
+
== EVALUATION KIT HANDS-ON ==
  
== Hardware Setup ==
+
=== Setup the hardware ===
 
 
&nbsp; &nbsp; &nbsp; &nbsp;Follow steps and picture below to setup the hardware
 
  
 
#Connected EPD FPC to mainboard
 
#Connected EPD FPC to mainboard
Line 98: Line 124:
 
#Connected power cable to mainboard USB(CN3)
 
#Connected power cable to mainboard USB(CN3)
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[[File:EPD-132R EVK HW setup v2.png|RTENOTITLE]]
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK HW setup v2.png|RTENOTITLE]]
  
== Command Console Setting ==
+
=== Command Console Setting ===
  
 
Start a serial tool(use tera term in this), and make the communication setting as shown below.
 
Start a serial tool(use tera term in this), and make the communication setting as shown below.
  
&nbsp; &nbsp; &nbsp;[[File:EPD-132R EVK command console.png|400x315px|RTENOTITLE]]
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK command console.png|400x315px|EPD-132R EVK command console.png]]
  
== EVK Start ==
+
=== RESET EPD-132 ===
  
 
Press “RST” button, the screen will show as below
 
Press “RST” button, the screen will show as below
  
&nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK Start v3.png]]
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK Start v3.png|RTENOTITLE]]
 
 
= Example&nbsp;: Download and Refresh Image =
 
 
 
== Example Architecture ==
 
  
The example architecture is&nbsp;as below
+
=== Launch TFTP Service ===
 
 
[[File:EPD-132R EVK Architecture.png|500x323px|EPD-132R EVK Architecture.png]]
 
 
 
== Launch TFTP Service ==
 
  
 
#PC join to Wi-Fi AP
 
#PC join to Wi-Fi AP
Line 126: Line 144:
 
#Check image folder, image&nbsp;file size must be 960000 byte​&nbsp;
 
#Check image folder, image&nbsp;file size must be 960000 byte​&nbsp;
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ​[[File:EPD-132R EVK check image folder.png|RTENOTITLE]]
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK check image folder.png|RTENOTITLE]]
 
<ol start="4">
 
<ol start="4">
 
<li>Select tftp server IP</li>
 
<li>Select tftp server IP</li>
 
</ol>
 
</ol>
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK select tftp server ip.png|RTENOTITLE]]
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK select tftp server ip.png|RTENOTITLE]]
 +
 
 +
 
  
== EVK Join to Wi-Fi AP ==
+
=== EPD-132 JOIN WIFI AP ===
  
 
#EVK operates in command mode, you must start a serial tool.
 
#EVK operates in command mode, you must start a serial tool.
#type '''join &nbsp;&lt;SSID&gt; &lt;encryption&gt; [key]'''
+
#type&nbsp;'''join &nbsp;&lt;SSID&gt; &lt;encryption&gt; [key]'''
#*SSID, encryption protocol and key consistent with Wi-Fi AP setting
+
#SSID, encryption protocol and key consistent with Wi-Fi AP setting
#*Ex: join RT66 wpa2_aes 12345678
+
#Ex: join RT66 wpa2_aes 12345678
 
#Get IPv4 IP if join successful
 
#Get IPv4 IP if join successful
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK get ip.png|RTENOTITLE]]&nbsp;
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK get ip.png|RTENOTITLE]]
 +
 
 +
== Command List ==
 +
 
 +
Describes the EVK commands that you can use.
 +
 
 +
{| border="1" cellspacing="1" cellpadding="1"
 +
|-
 +
| Command<br/>
 +
| Function<br/>
 +
|-
 +
| &nbsp;evk_info<br/>
 +
| &nbsp;get EVK version<br/>
 +
|-
 +
| &nbsp;epd_info<br/>
 +
| &nbsp;get EPD information
 +
|-
 +
| &nbsp;get_mac_addr<br/>
 +
| &nbsp;get MAC
 +
|-
 +
| &nbsp;ping<br/>
 +
| &nbsp;ping command
 +
|-
 +
| &nbsp;join<br/>
 +
| &nbsp;Wi-Fi connect
 +
|-
 +
| &nbsp;leave
 +
| &nbsp;leave an AP after join
 +
|-
 +
| &nbsp;tftp<br/>
 +
| &nbsp;download Images to Flash
 +
|-
 +
| &nbsp;epd_disp<br/>
 +
| &nbsp;refresh Image
 +
|-
 +
| &nbsp;iperf<br/>
 +
| &nbsp;Wi-Fi throughput test
 +
|-
 +
| &nbsp;bt_wifi<br/>
 +
| &nbsp;start ble-wifi introducer service
 +
|-
 +
| &nbsp;carousel
 +
| &nbsp;start epd into carousel mode
 +
|-
 +
| &nbsp;led
 +
| &nbsp;set the led light or dark
 +
|}
  
== Download Images to Flash ==
+
=== Command Description ===
  
'''tftp &lt;ip&gt; &lt;filename&gt; &lt;flash index&gt; [-r]&nbsp;'''
+
*'''evk_info''': Return EVK version
 +
*'''epd_info''': Return EPD model name, resolution and F/W version&nbsp;
 +
*'''get_mac_addr''': Return EVK MAC address
 +
*'''ping &lt;dest&gt; [-i &lt;interval in ms&gt;] [-n &lt;number&gt;] [-l &lt;length&gt;]'''&nbsp;
 +
**Return ping reply time if successful
 +
**ping 8.8.8.8 -i 100 -n 5 -l 50
 +
*'''join:&nbsp;'''Reference “[http://ess-wiki.advantech.com.tw/view/EPD-EVK_User_Manual#EVK_Join_to_Wi-Fi_AP EVK Join to Wi-Fi AP]”'''&nbsp;'''
 +
*'''leave: '''leave an AP router
 +
*'''tftp:&nbsp;'''Reference&nbsp;“[http://ess-wiki.advantech.com.tw/view/EPD-EVK_User_Manual#Download_Images_to_Flash Download Images to Flash]”
 +
*'''epd_disp''':&nbsp;Reference "[http://ess-wiki.advantech.com.tw/view/EPD-EVK_User_Manual#Refresh_Image Refresh Image]”&nbsp;
 +
*'''carousel: '''Reference&nbsp; "[http://ess-wiki.advantech.com.tw/view/EPD-132R_EVK_User_Manual#Carousel_Mode Carousel Mode]"
 +
*'''led:&nbsp;'''set the led light or dark
 +
**led 1 0&nbsp;; turn-off led
 +
**led 1 1&nbsp;; turn-on led
 +
 
 +
=== Download Images to EPD-132 &REFLASH IMAGE ===
 +
<ol start="1" style="list-style-type: upper-alpha;">
 +
<li>DOWNLOAD THE IMAGE</li>
 +
</ol>
 +
 
 +
'''&nbsp; &nbsp; &nbsp; &nbsp; tftp &lt;ip&gt; &lt;filename&gt; &lt;flash index&gt; [-r]&nbsp;'''
  
 
*​​ip: tftp server ip
 
*​​ip: tftp server ip
Line 154: Line 240:
  
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK-Download Images to Flash v2.png|RTENOTITLE]]
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK-Download Images to Flash v2.png|RTENOTITLE]]
 +
<ol start="2" style="list-style-type: upper-alpha;">
 +
<li>DOWNLOAD THE IMAGE</li>
 +
</ol>
  
== Refresh Image ==
+
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'''epd_disp &lt;-f flash index | -i internal image index&gt;'''
 
 
'''epd_disp &lt;-f flash index | -i internal image index&gt;'''
 
  
 
*-f: display image that read from flash, range 0~3&nbsp;
 
*-f: display image that read from flash, range 0~3&nbsp;
Line 166: Line 253:
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK-Refresh Image.png|RTENOTITLE]]
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK-Refresh Image.png|RTENOTITLE]]
  
== EVK&nbsp;Carousel Mode ==
+
=== EPD-132 Carousel Mode ===
  
 
'''carousel&lt;-e | -p | -s | -t&nbsp;&gt;'''
 
'''carousel&lt;-e | -p | -s | -t&nbsp;&gt;'''
Line 204: Line 291:
 
**'''carousel -e 1 // enable carousel mode'''
 
**'''carousel -e 1 // enable carousel mode'''
  
= EVK Command =
+
=== CN2 USB DOWNLOAD IMAGE IN EPD-132/130 REFERE TO [[EPD-130_User_Manual]]. ===
 
 
Describes the EVK commands that you can use.
 
 
 
== Command List ==
 
 
 
{| border="1" cellspacing="1" cellpadding="1" style="width: 400px;"
 
|-
 
| style="width: 107px; text-align: center;" | Command<br/>
 
| style="width: 280px; text-align: center;" | Function<br/>
 
|-
 
| style="width: 107px;" | &nbsp;evk_info<br/>
 
| style="width: 280px;" | &nbsp;get EVK version<br/>
 
|-
 
| style="width: 107px;" | &nbsp;epd_info<br/>
 
| style="width: 280px;" | &nbsp;get EPD information
 
|-
 
| style="width: 107px;" | &nbsp;get_mac_addr<br/>
 
| style="width: 280px;" | &nbsp;get MAC
 
|-
 
| style="width: 107px;" | &nbsp;ping<br/>
 
| style="width: 280px;" | &nbsp;ping command
 
|-
 
| style="width: 107px;" | &nbsp;join<br/>
 
| style="width: 280px;" | &nbsp;Wi-Fi connect
 
|-
 
| style="width: 107px;" | &nbsp;leave
 
| style="width: 280px;" | &nbsp;leave an AP after join
 
|-
 
| style="width: 107px;" | &nbsp;tftp<br/>
 
| style="width: 280px;" | &nbsp;download Images to Flash
 
|-
 
| style="width: 107px;" | &nbsp;epd_disp<br/>
 
| style="width: 280px;" | &nbsp;refresh Image
 
|-
 
| style="width: 107px;" | &nbsp;iperf<br/>
 
| style="width: 280px;" | &nbsp;Wi-Fi throughput test
 
|-
 
| style="width: 107px;" | &nbsp;bt_wifi<br/>
 
| style="width: 280px;" | &nbsp;start ble-wifi introducer service
 
|-
 
| style="width: 107px;" | &nbsp;carousel
 
| style="width: 280px;" | &nbsp;start epd into carousel mode
 
|-
 
| style="width: 107px;" | &nbsp;led
 
| style="width: 280px;" | &nbsp;set the led light or dark
 
|}
 
 
 
== Command Description ==
 
 
 
*'''evk_info''': Return EVK version
 
*'''epd_info''': Return EPD model name, resolution and F/W version&nbsp;
 
*'''get_mac_addr''': Return EVK MAC address
 
*'''ping &lt;dest&gt; [-i &lt;interval in ms&gt;] [-n &lt;number&gt;] [-l &lt;length&gt;]'''&nbsp;
 
**Return ping reply time if successful
 
**ping 8.8.8.8 -i 100 -n 5 -l 50
 
*'''join:&nbsp;'''Reference “[http://ess-wiki.advantech.com.tw/view/EPD-EVK_User_Manual#EVK_Join_to_Wi-Fi_AP EVK Join to Wi-Fi AP]”'''&nbsp;'''
 
*'''leave: '''leave an AP router
 
*'''tftp:&nbsp;'''Reference&nbsp;“[http://ess-wiki.advantech.com.tw/view/EPD-EVK_User_Manual#Download_Images_to_Flash Download Images to Flash]
 
*'''epd_disp''':&nbsp;Reference "[http://ess-wiki.advantech.com.tw/view/EPD-EVK_User_Manual#Refresh_Image Refresh Image]”&nbsp;
 
*'''carousel: '''Reference&nbsp; "[http://ess-wiki.advantech.com.tw/view/EPD-132R_EVK_User_Manual#Carousel_Mode Carousel Mode]"
 
*'''led:&nbsp;'''set the led light or dark
 
**led 1 0&nbsp;; turn-off led
 
**led 1 1&nbsp;; turn-on led
 
 
 
== 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.<br/>Then you need to manipulate on your phone.
 
 
 
Step 1: Install and launch the BLE Scanner app on iOS or Android.
 
 
 
&nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step1.png|400x125px|EPD-132R EVK ble-wifi step1.png]]
 
 
 
Step 2: &nbsp;Pull down the screen to rescan devices and it will list nearby BLE devices. Find the “WiFiInt” device and press CONNECT button.
 
 
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step2.png|226x400px|EPD-132R EVK ble-wifi step2.png]]
 
 
 
Step 3: &nbsp;If the connection is successful, you can see the picture below. Press &nbsp;the "CUSTOM SERVICE" button.
 
  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step3.png|226x400px|EPD-132R EVK ble-wifi step3.png]]
+
=== EPD-132 Firmware Update ===
 
 
&nbsp; &nbsp; Note: You need to remove bluetooth pairing with "WiFiInt" from bluetooth setting when&nbsp;you can not connect to device.
 
 
 
Step 4: Find the UUID: ACA0EF7C-EEAA-48AD-9508-19A6F6B356 for SSID characteristic.
 
 
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step4.png|495x431px|EPD-132R EVK ble-wifi step4.png]]
 
 
 
Step 5: Find the UUID: 40B7DE33-93E4-4C8B-A876-D833B415A6CE for Password characteristic then procedure as Step4.<br/>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK ble-wifi step5.png|226x400px|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
 
 
 
#Connected EPD FPC to mainboard
 
#Connected USB&nbsp;cable to mainboard USB2(CN2)
 
 
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK-USB2 HW setup v2.png]]
 
 
 
== Tool Setup ==
 
 
 
#&nbsp;Download and unzip&nbsp;[[Media:EPD-132R_CLI_v1.1.zip|EPD-132R_CLItool]]
 
#Click "IT8951_FWVersion.bat" to get EPD panel information
 
 
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK-USB2 Tool setup v2.png|RTENOTITLE]]
 
 
 
== Download and Refresh Image ==
 
 
 
#Click "IT8951_UpdateImage1.bat" to update "13.3inch-01.bmp" to EPD.
 
#Click "IT8951_UpdateImage2.bat" to update "13.3inch-02.bmp" to EPD.
 
#Open "IT8951_UpdateImage1.bat" and edit "13.3inch-02.bmp" for your image name.
 
 
 
*The image will not saved in flash
 
 
 
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;[[File:EPD-132R EVK-USB2 Tool setup v2.png|RTENOTITLE]]
 
 
 
'''[[File:EPD-132R EVK-USB2 Refresh image.png|RTENOTITLE]]'''
 
 
 
 
 
 
 
= '''EVK Firmware Update''' =
 
 
 
== EVK Update&nbsp; ==
 
  
 
You can reference WISE-ED22 "[http://ess-wiki.advantech.com.tw/view/WISE-ED22_User_Manual#Drag-n-drop_Programming Drag-n-drop Programming]"
 
You can reference WISE-ED22 "[http://ess-wiki.advantech.com.tw/view/WISE-ED22_User_Manual#Drag-n-drop_Programming Drag-n-drop Programming]"
  
== Update To Development Kit ==
+
&nbsp; &nbsp;&nbsp;
 
 
Coming soon...
 

Latest revision as of 07:53, 31 May 2021

EVALUATION KIT OF EPD-132

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

Components List

Item  Description
1  13.3” EPAPER
2  Mainboard
3  Power adapter and cable
4  ED22 board
5  ED22 micro USB cable
6  10 pin FFC cable x2
7  2.4G Wi-Fi antenna
8  I/O daughter board

        RTENOTITLE

SYSTEM ARCHITECURE

BLOCK DIAGRAM

        RTENOTITLE

TOOL AND DEVELOPMENT ENVIRONMENT SETUP

2.4G Wi-Fi AP SETTING WITH BLE APP

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

        Note: You need to remove bluetooth pairing with "WiFiInt" from bluetooth setting when  you can not connect to device.

Step 4: Find the UUID: ACA0EF7C-EEAA-48AD-9508-19A6CEF6B356 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

Step 6: If the join is successful can see network IP on console screen.

        RTENOTITLE

Win7/10 PC

Prepare a win7/10 PC.

TFTP DOWNLOAD/UPLOAD FILE

  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 2.7.x Windows x86)
  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_EPD-132R.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. Update WISE-ED22 FW for EPD-132 project. You can reference ED22 Firmware Update.
  3. Connected to PC via a micro USB cable, the Device  Manager will appear mbed Serial Port

        RTENOTITLE

EVALUATION KIT HANDS-ON

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 IO daughter to mainboard
  6. Connected power cable to mainboard USB(CN3)

        RTENOTITLE

Command Console Setting

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

        EPD-132R EVK command console.png

RESET EPD-132

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

        RTENOTITLE

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


EPD-132 JOIN WIFI AP

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

        RTENOTITLE

Command List

Describes the EVK commands that you can use.

Command
Function
 evk_info
 get EVK version
 epd_info
 get EPD information
 get_mac_addr
 get MAC
 ping
 ping command
 join
 Wi-Fi connect
 leave  leave an AP after join
 tftp
 download Images to Flash
 epd_disp
 refresh Image
 iperf
 Wi-Fi throughput test
 bt_wifi
 start ble-wifi introducer service
 carousel  start epd into carousel mode
 led  set the led light or dark

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 
  • leave: leave an AP router
  • tftp: Reference “Download Images to Flash
  • epd_disp: Reference "Refresh Image” 
  • carousel: Reference  "Carousel Mode"
  • led: set the led light or dark
    • led 1 0 ; turn-off led
    • led 1 1 ; turn-on led

Download Images to EPD-132 &REFLASH IMAGE

  1. DOWNLOAD THE IMAGE

        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

        RTENOTITLE

  1. DOWNLOAD THE 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 

        RTENOTITLE

EPD-132 Carousel Mode

carousel<-e | -p | -s | -t >

  • -e <1 / 0 > : set carousel mode
    • ​​1: enable, 0: disable
    • ​Ex: carousel -e 1 // enable carousel mode.
  • -p <P0 P1...Pn> : edit carousel page 
    • ​P0~Pn: carousel page, n>0, n<14
    • Ex: carousel -p 1 2 5 8 10 // set carousel page 1, 2, 5, 8, 10
    • Ex: carousel -p 1 1 1 3 3 3 6 // you can use same page when use partial update
  • -s <Sn start-X start-Y Image-W image-H mode> : edit carosuel setting  
    • ​Sn: carousel sequence number, associated with the -p order, n>0, n<16 
    • start-X: refresh X coordinate
    • start-Y: refresh Y coordinate
    • image-W: refresh width
    • image-H: refresh height
    • mode: refresh mode, 0: GC mode(by default), 1: DU mode(only usu in B/W panel), 2: Rolling mode(only usu in B/W panel)
    • Ex: carousel -s 1 0 0 1600 1200 0 // S1 (x,y)=(0,0) (w,h)=(1600,1200) use GC mode
  • -t <Sn time> : set the interval between the next image
    • ​​Sn: carousel sequence number, associated with the -p order, n>0, n<16 
    • ​time: the unit is second.
    • Ex: carousel -t 1 5 // set S1 to S2 interval 5 second
  •  A carousel example 
    • ​join ssid wpa2_aes password // join the AP router named "ssid"
    • tftp 192.168.8.178 BSD_00.esl 0 -r // load BSD_00.esl to page 0
    • tftp 192.168.8.178 BSD_01.esl 1 -r // load BSD_01.esl to page 3
    • tftp 192.168.8.178 BSD_02.esl 2 -r // load BSD_02.esl to page 6
    • carousel -p 0 3 3 3 6 6 6 // set carousel page P0(S0) P3(S1) P3(S2) P3(S3) P6(S4) P6(S5) P6(S6) 
    • carousel -s 0 0 0 1600 1200 0 // set S0 (x, y)=(0, 0), (w, h)=(1600, 1200), full update with GC mode
    • carousel -s 1 1095 50 140 240 0 // set S1 (x, y)=(1095, 50), (w, h)=(140, 240), partial update with GC mode
    • carousel -s 2 215 740 1230 85 0 // set S2 (x, y)=(215, 740), (w, h)=(1230, 85), partial update with GC mode
    • carousel -s 3 130 20 910 320 0 // set S3 (x, y)=(130, 20), (w, h)=(910, 320), partial update with GC mode
    • carousel -s 4 1095 50 140 240 0 // set S4 (x, y)=(1095, 50), (w, h)=(140, 240), partial update with GC mode
    • carousel -s 5 215 740 1230 85 0 // set S5 (x, y)=(215, 740), (w, h)=(1230, 85), partial update with GC mode
    • carousel -s 6 130 20 910 320 0 // set S6 (x, y)=(130, 20), (w, h)=(910, 320), partial update with GC mode
    • carousel -e 1 // enable carousel mode

CN2 USB DOWNLOAD IMAGE IN EPD-132/130 REFERE TO EPD-130_User_Manual.

EPD-132 Firmware Update

You can reference WISE-ED22 "Drag-n-drop Programming"