Difference between revisions of "EPM-880 Application Notes"
From ESS-WIKI
Line 1: | Line 1: | ||
− | = EPD-320 Application guide = | + | <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"> |
− | + | === This page contains the following errors: === | |
− | This application provide user a way that image full update and carousel mode for EPD-320 panel display. user configure xml file follow setting rule. | + | <div style="font-family:monospace;font-size:12px">error on line 13 at column 319: Opening and ending tag mismatch: epd line 0 and color </div> |
− | + | === Below is a rendering of the page up to the first error. === | |
− | == Components LIST == | + | </parsererror>= EPD-320 Application guide = This application provide user a way that image full update and carousel mode for EPD-320 panel display. user configure xml file follow setting rule. == Components LIST == {| border="2" cellspacing="1" cellpadding="1" style="width: 164px;" |- ! Item | style="width: 122px;" | '''Description''' |- | '''1''' | style="width: 122px;" | ''' 32” EPAPER''' |- | '''2''' | style="width: 122px;" | ''' EPD-320 PCBA'''<br/>|- | '''3''' | style="width: 122px;" | ''' cable''' |} [[File:Epd320 1.jpg|600px|RTENOTITLE]] == SYSTEM ARCHITECURE == [[File:EPD320 2.jpg|400px|system diagram]] == System support == We has been tested on host operating system as below #'''ubuntu 18.04''' #'''windows(windows 10)''' == Waveform mode == There are six Waveform mode for image update and short name as below table. The mode parameter will use in update command. {| border="2" cellspacing="1" cellpadding="1" style="width: 50%;" |- | align="center" | '''mode 0''' | align="center" | '''mode 1''' | align="center" | '''mode 2''' | align="center" | '''mode 3''' | align="center" | '''mode 4''' | align="center" | '''mode 5''' |- | align="center" | '''INIT''' | align="center" | '''DU''' | align="center" | '''GC16''' | align="center" | '''GCC16''' | align="center" | '''A2''' | align="center" | '''GL16''' |} '''INIT(Global update WF) :''' ::::'''Initialize''' is used to completely clear the display, if it's left in an unknown state (i.e. if the previous image has been lost by a re-boot) '''DU(Local update WF) :''' ::::'''Direct update''' Non-flashing waveform that can be used to update. it can update any changed graytone pixel to black or white only. '''GC16(Global update WF) :''' ::::'''Grayscale clear, 16 levels A''' "flashy" waveform used for 16 level grayscale images. All the pixels are updated or cleared '''GCC16( Global clear update WF) :''' ::::'''Grayscale Clear, 16 Levels A''' "more flashy" waveform used for 16 level grayscale images. All the pixels are updated or cleared. ::::This provides the best image appearance. '''A2(Local update WF) :''' ::::'''animation, 2 Levels''' is a non-flashing waveform that can be used for fast updates and simple animation. ::::This wave form support black & white updates only. ::::image quality and ghosting is reduced in exchange for the response time. '''GL16(Local update WF when white to white , Global update when 16 gray levels) :''' ::::The GL16 waveform is used to update anti-aliased text with reduced flash. GL16 should bed used only with Full Display Update.. ::::The entire display except pixels staying in white will update as the new image is written. The GL16 waveform has 16 unique gray levels. == Push image application == === Hardware prepare === 1. Connected EPD FPC to mainboard 2. Connected micro USB cable to mainboard USB2(CN2) , usb port connect to computer usb port which installed windows or linux ubuntu 3. Connected 12V power cable to mainboard. [[File:Epd320 4.jpg|500px|system diagram2]] === Software prepare === ==== Windows ==== 1. Download usb driver tool '''zadig usb tool''' 2. Execute zadig.exe and click Option->List All Devices 3. ITE T-CON appeared in list and click Replace Driver button , waiting installation until success [[File:Epd320 3.jpg|500px|driver install]] 4.Repeat step 3 replace others ITE T-CON driver. ==== Linux ==== User must install library as below 1. Installed libusb 1.0.0<pre>sudo apt-get install libusb-1.0-0-dev</pre> |
− | + | 2. Refresh system<pre>$ sudo apt-get update | |
− | {| border="2" cellspacing="1" cellpadding="1" style="width: 164px;" | ||
− | |- | ||
− | ! | ||
− | Item | ||
− | |||
− | | style="width: 122px;" | '''Description''' | ||
− | |- | ||
− | | '''1''' | ||
− | | style="width: 122px;" | ''' 32” EPAPER''' | ||
− | |- | ||
− | | '''2''' | ||
− | | style="width: 122px;" | ''' EPD-320 PCBA'''<br/> | ||
− | |- | ||
− | | '''3''' | ||
− | | style="width: 122px;" | ''' cable''' | ||
− | |} | ||
− | |||
− | |||
− | |||
− | == SYSTEM ARCHITECURE == | ||
− | |||
− | |||
− | |||
− | == System support == | ||
− | |||
− | We has been tested on host operating system as below | ||
− | |||
− | #'''ubuntu 18.04''' | ||
− | #'''windows(windows 10)''' | ||
− | |||
− | == Waveform mode == | ||
− | |||
− | There are six Waveform mode for image update and short name as below table. The mode parameter will use in update command. | ||
− | |||
− | {| border="2" cellspacing="1" cellpadding="1" style="width: 50%;" | ||
− | |- | ||
− | | align="center" | '''mode 0''' | ||
− | | align="center" | '''mode 1''' | ||
− | | align="center" | '''mode 2''' | ||
− | | align="center" | '''mode 3''' | ||
− | | align="center" | '''mode 4''' | ||
− | | align="center" | '''mode 5''' | ||
− | |- | ||
− | | align="center" | '''INIT''' | ||
− | | align="center" | '''DU''' | ||
− | | align="center" | '''GC16''' | ||
− | | align="center" | '''GCC16''' | ||
− | | align="center" | '''A2''' | ||
− | | align="center" | '''GL16''' | ||
− | |} | ||
− | |||
− | '''INIT(Global update WF) :''' | ||
− | |||
− | ::::'''Initialize''' is used to completely clear the display, if it's left in an unknown state (i.e. if the previous image has been lost by a re-boot) | ||
− | |||
− | '''DU(Local update WF) :''' | ||
− | |||
− | ::::'''Direct update''' Non-flashing waveform that can be used to update. it can update any changed graytone pixel to black or white only. | ||
− | |||
− | '''GC16(Global update WF) :''' | ||
− | |||
− | ::::'''Grayscale clear, 16 levels A''' "flashy" waveform used for 16 level grayscale images. All the pixels are updated or cleared | ||
− | |||
− | '''GCC16( Global clear update WF) :''' | ||
− | |||
− | ::::'''Grayscale Clear, 16 Levels A''' "more flashy" waveform used for 16 level grayscale images. All the pixels are updated or cleared. | ||
− | ::::This provides the best image appearance. | ||
− | |||
− | '''A2(Local update WF) :''' | ||
− | |||
− | ::::'''animation, 2 Levels''' is a non-flashing waveform that can be used for fast updates and simple animation. | ||
− | ::::This wave form support black & white updates only. | ||
− | ::::image quality and ghosting is reduced in exchange for the response time. | ||
− | |||
− | '''GL16(Local update WF when white to white , Global update when 16 gray levels) :''' | ||
− | |||
− | ::::The GL16 waveform is used to update anti-aliased text with reduced flash. GL16 should bed used only with Full Display Update.. | ||
− | ::::The entire display except pixels staying in white will update as the new image is written. The GL16 waveform has 16 unique gray levels. | ||
− | |||
− | == Push image application == | ||
− | |||
− | === Hardware prepare === | ||
− | |||
− | 1. Connected EPD FPC to mainboard | ||
− | |||
− | 2. Connected micro USB cable to mainboard USB2(CN2) , usb port connect to computer usb port which installed windows or linux ubuntu | ||
− | |||
− | 3. Connected 12V power cable to mainboard. | ||
− | |||
− | |||
− | |||
− | === Software prepare === | ||
− | |||
− | ==== Windows ==== | ||
− | |||
− | 1. Download usb driver tool '''zadig usb tool''' | ||
− | |||
− | 2. Execute zadig.exe and click Option->List All Devices | ||
− | |||
− | 3. ITE T-CON appeared in list and click Replace Driver button , waiting installation until success | ||
− | |||
− | |||
− | |||
− | 4.Repeat step 3 replace others ITE T-CON driver. | ||
− | |||
− | ==== Linux ==== | ||
− | |||
− | User must install library as below | ||
− | |||
− | 1. Installed libusb 1.0.0 | ||
− | <pre>sudo apt-get install libusb-1.0-0-dev</pre> | ||
− | |||
− | 2. Refresh system | ||
− | <pre>$ sudo apt-get update | ||
$ sudo apt-get upgrade</pre> | $ sudo apt-get upgrade</pre> | ||
− | + | Installed OpenCV dependency package<pre>$ sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev | |
− | Installed OpenCV dependency package | ||
− | <pre>$ sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev | ||
$ sudo apt-get install python3.5-dev python3-numpy libtbb2 libtbb-dev | $ sudo apt-get install python3.5-dev python3-numpy libtbb2 libtbb-dev | ||
$ sudo apt-get install libjpeg-dev libpng-dev libtiff5-dev libjasper-dev libdc1394-22-dev libeigen3-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev sphinx-common libtbb-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libopenexr-dev libgstreamer-plugins-base1.0-dev libavutil-dev libavfilter-dev libavresample-dev | $ sudo apt-get install libjpeg-dev libpng-dev libtiff5-dev libjasper-dev libdc1394-22-dev libeigen3-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev sphinx-common libtbb-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libopenexr-dev libgstreamer-plugins-base1.0-dev libavutil-dev libavfilter-dev libavresample-dev | ||
</pre> | </pre> | ||
− | + | Download OpenCV 2.4.13 source code<pre>https://opencv.org/releases/</pre> | |
− | Download OpenCV 2.4.13 source code | + | Untar source code and below example we assume file path '''/opt/opencv''' but user should follow user's environment path.<pre>$ cd opencv |
− | <pre>https://opencv.org/releases/</pre> | ||
− | |||
− | Untar source code and below example we assume file path '''/opt/opencv''' but user should follow user's environment path. | ||
− | <pre>$ cd opencv | ||
$ mkdir release | $ mkdir release | ||
$ cd release | $ cd release | ||
Line 137: | Line 17: | ||
$ cd my_build_dir | $ cd my_build_dir | ||
</pre> | </pre> | ||
− | + | '''/opt/opencv''' is example path, user should follow user's environment path.<pre>$ cmake -D BUILD_TIFF=ON -D WITH_CUDA=OFF -D ENABLE_AVX=OFF -D WITH_OPENGL=OFF -D WITH_OPENCL=OFF -D WITH_IPP=OFF -D WITH_TBB=ON -D BUILD_TBB=ON -D WITH_EIGEN=OFF -D WITH_V4L=OFF -D WITH_VTK=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/opt/opencv_contrib/modules /opt/opencv/ | |
− | '''/opt/opencv''' is example path, user should follow user's environment path. | ||
− | <pre>$ cmake -D BUILD_TIFF=ON -D WITH_CUDA=OFF -D ENABLE_AVX=OFF -D WITH_OPENGL=OFF -D WITH_OPENCL=OFF -D WITH_IPP=OFF -D WITH_TBB=ON -D BUILD_TBB=ON -D WITH_EIGEN=OFF -D WITH_V4L=OFF -D WITH_VTK=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/opt/opencv_contrib/modules /opt/opencv/ | ||
</pre> | </pre> | ||
<pre>$ make -j4 | <pre>$ make -j4 | ||
$ make install | $ make install | ||
</pre> | </pre> | ||
− | + | Check OpenCV version<pre>$ pkg-config --modversion opencv</pre> | |
− | Check OpenCV version | + | === EPD Application === ==== Xml file Configure ==== Before image display ,user have to configure xml of file path、file name、 slide_interval and waveform mode. Content of xml file as below. <!--?xml version="1.0"--> <epd_config><epd name="EPD 31.2"></epd></epd_config> |
− | <pre>$ pkg-config --modversion opencv</pre> | ||
− | |||
− | === EPD Application === | ||
− | |||
− | ==== Xml file Configure ==== | ||
− | |||
− | Before image display ,user have to configure xml of file path、file name、 slide_interval and waveform mode. Content of xml file as below. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 10:41, 27 October 2020
<parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
This page contains the following errors:
error on line 13 at column 319: Opening and ending tag mismatch: epd line 0 and color
Below is a rendering of the page up to the first error.
</parsererror>= EPD-320 Application guide = This application provide user a way that image full update and carousel mode for EPD-320 panel display. user configure xml file follow setting rule. == Components LIST == {| border="2" cellspacing="1" cellpadding="1" style="width: 164px;" |- ! Item | style="width: 122px;" | Description |- | 1 | style="width: 122px;" | 32” EPAPER |- | 2 | style="width: 122px;" | EPD-320 PCBA|- | 3 | style="width: 122px;" | cable |} [[File:Epd320 1.jpg|600px|RTENOTITLE]] == SYSTEM ARCHITECURE == [[File:EPD320 2.jpg|400px|system diagram]] == System support == We has been tested on host operating system as below #ubuntu 18.04 #windows(windows 10) == Waveform mode == There are six Waveform mode for image update and short name as below table. The mode parameter will use in update command. {| border="2" cellspacing="1" cellpadding="1" style="width: 50%;" |- | align="center" | mode 0 | align="center" | mode 1 | align="center" | mode 2 | align="center" | mode 3 | align="center" | mode 4 | align="center" | mode 5 |- | align="center" | INIT | align="center" | DU | align="center" | GC16 | align="center" | GCC16 | align="center" | A2 | align="center" | GL16 |} INIT(Global update WF) : ::::Initialize is used to completely clear the display, if it's left in an unknown state (i.e. if the previous image has been lost by a re-boot) DU(Local update WF) : ::::Direct update Non-flashing waveform that can be used to update. it can update any changed graytone pixel to black or white only. GC16(Global update WF) : ::::Grayscale clear, 16 levels A "flashy" waveform used for 16 level grayscale images. All the pixels are updated or cleared GCC16( Global clear update WF) : ::::Grayscale Clear, 16 Levels A "more flashy" waveform used for 16 level grayscale images. All the pixels are updated or cleared. ::::This provides the best image appearance. A2(Local update WF) : ::::animation, 2 Levels is a non-flashing waveform that can be used for fast updates and simple animation. ::::This wave form support black & white updates only. ::::image quality and ghosting is reduced in exchange for the response time. GL16(Local update WF when white to white , Global update when 16 gray levels) : ::::The GL16 waveform is used to update anti-aliased text with reduced flash. GL16 should bed used only with Full Display Update.. ::::The entire display except pixels staying in white will update as the new image is written. The GL16 waveform has 16 unique gray levels. == Push image application == === Hardware prepare === 1. Connected EPD FPC to mainboard 2. Connected micro USB cable to mainboard USB2(CN2) , usb port connect to computer usb port which installed windows or linux ubuntu 3. Connected 12V power cable to mainboard. [[File:Epd320 4.jpg|500px|system diagram2]] === Software prepare === ==== Windows ==== 1. Download usb driver tool zadig usb tool 2. Execute zadig.exe and click Option->List All Devices 3. ITE T-CON appeared in list and click Replace Driver button , waiting installation until success [[File:Epd320 3.jpg|500px|driver install]] 4.Repeat step 3 replace others ITE T-CON driver. ==== Linux ==== User must install library as below 1. Installed libusb 1.0.0
sudo apt-get install libusb-1.0-0-dev2. Refresh system
$ sudo apt-get update $ sudo apt-get upgradeInstalled OpenCV dependency package
$ sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev $ sudo apt-get install python3.5-dev python3-numpy libtbb2 libtbb-dev $ sudo apt-get install libjpeg-dev libpng-dev libtiff5-dev libjasper-dev libdc1394-22-dev libeigen3-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev sphinx-common libtbb-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libopenexr-dev libgstreamer-plugins-base1.0-dev libavutil-dev libavfilter-dev libavresample-devDownload OpenCV 2.4.13 source code
https://opencv.org/releases/Untar source code and below example we assume file path /opt/opencv but user should follow user's environment path.
$ cd opencv $ mkdir release $ cd release $ mkdir my_build_dir $ cd my_build_dir/opt/opencv is example path, user should follow user's environment path.
$ cmake -D BUILD_TIFF=ON -D WITH_CUDA=OFF -D ENABLE_AVX=OFF -D WITH_OPENGL=OFF -D WITH_OPENCL=OFF -D WITH_IPP=OFF -D WITH_TBB=ON -D BUILD_TBB=ON -D WITH_EIGEN=OFF -D WITH_V4L=OFF -D WITH_VTK=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/opt/opencv_contrib/modules /opt/opencv/
$ make -j4 $ make installCheck OpenCV version
$ pkg-config --modversion opencv
=== EPD Application === ==== Xml file Configure ==== Before image display ,user have to configure xml of file path、file name、 slide_interval and waveform mode. Content of xml file as below. <epd_config><epd name="EPD 31.2"></epd></epd_config>