DWIN DGUS USER MANUAL v2.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Index INTRODUCTION .............................................................................................................................. - 2 1 Hardware Configuration ................................................................................................................ - 4 1.1 SD Card Configuration Interface ....................................................................................................................
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Appendix 1 DGUS key functions preview...................................................................................... - 42 Appendix 2 Application Examples ................................................................................................. - 44 (1) Display, entry and adjustment of parameters ..................................................................................................
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification INTRODUCTION DGUS V2.0 is brand-new GUI software from DWIN Technology based on DWIN K600+ products, which was developed in the way of configuration software under new beginning pattern, via exchanging data between memorizer port and users to make ZERO CODE for HMI development coming true. DGUS NEW FEATURES DGUS configuration development mode is different from the traditional development method of DWIN HMI with following new features: a.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Also, DGUS v2.0 designed for slider operation, and synchronic cutting-effects of keyboard, as well as touch control can be achieved without complex programming and MCU code writing. (It has to achieve by repeated crossing operations of Command 0x71 and Command 0x98 in older Terminal Assistant operation). It helps a lot in R&D cycle simplifying and making mass productions quick comes into real application.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 1 Hardware Configuration 1.1 SD Card Configuration Interface All parameter settings and data download for DWIN DGUSV2.0 are only finished via the SD card interface which supports SD or SDHC card format with FAT32 file system required.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 1.2 CONFIG.TXT Configuration File Description CONFIG.TXT file introduce sort of scripting language to describe the parameter registers that one parameter described by each line. Meanwhile, unused parameters are not necessary to write. See below instructions: Name of parameter register Range R0 Depends on the DWIN screen Description DWIN Module Driver Mode, no need for user to set.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification R2(SYS_CFG configuration Byte) Position Ratio .7 0x80 VDS .6 0x40 HDS .5 0x20 TP_LED .4 0x10 FCRC .3 0x08 TPSAUTO .2 0x04 L22_Init_En .1 0x02 FreshTime_Sel .
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Images Space DWIN DGUS v2.0 software use 224MB (256MB K600+) or 2016MB (2GB K600+) to save the images, corresponding to different resolution, can save a number of pictures as the table below. Screen Resolution 256MB K600+ 2GB K600+ 320×240 869 7807 480×272 869 7807 640×480 290 2602 800×480 290 2602 800×600 217 1952 1024×600 174 1561 1024×768 145 1301 Register Space Dwin DGUS v2.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification expanded reference memory access when reading and writing real-time (mS level) were low required. The data memory spaces can only by word to read and write, with the corresponding address space 0x0000-0x6FFF. The data memory space accessed by Command 0x82/0x83 Curve data buffer In order to simplify the display of real-time curve, DWIN DGUS v2.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Update your kernel software by using SD card is STRONGLY RECOMMENDED for version above V2.0 by saving the DGUS_V*.bin file in the DWIN_Set folder. The Steps instruction of checking kernel software version: a. Physically, connect DGUS HMI serial port with COM port on PC, and connect power properly. b. Open the SSCOM3.2 software and make sure that "SendHEX" and "HexData" are checked. c.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 2 Serial Port Operations All UART LCM standard products of DWIN technology are asynchronous, full-duplex serial port (UART) mode. Serial port mode is 8n1; i.e. each data transmission has 10bits: one initial bit, eight data bits (Least Significant Bit, LSB) and one stop bit. The Serial port baudrate is configured by SD card.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 3 Data Format Due to the aim of the embedded system application, considering conveniences of user proceed, DWIN DGUS v2.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 4 Description of Touch Config. File. The touch Config. File is consisted of several commands that are configured according to different pages.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Keyboard and input start button are on a same page(KB_Source=0x00) Keyboard is not on the current page (KB_Source=0x01): input was not trigged. Keyboard is not on the current page (KB_Source=0x01) after trigging the keyboard Keyboard is not on the current page (KB_Source=0x01): keyboard page Beijing DWIN Technology Co., Ltd. - 13 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 4.2 Pop-up Menu Selection (0x01) Address Definition 0x00 Pic_ID Data Length 2 0x02 TP_Area 8 Touch button area: (Xs, Ys) (Xe, Ye) 0x0A Pic_Next 2 0x0C Pic_On 2 0x0E TP_Code 2 Page ID which will switch to, 0xFF** means no page switches Page ID that shows the effect animation when button pressed, 0xFF** means that there is no button pressing effect.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 4.3 Incremental Adjustment (0x02) 0x00 Pic_ID Data Length 2 0x02 TP_Area 8 Touch button configuration areas: (Xs, Ys) (Xe, Ye) 0x0A Pic_Next 2 0x0C Pic_On 2 0x0E TP_Code 2 Page ID that will switch to, 0xFF** means no page switches.Must be 0xFF** Page ID that shows the effect animation when button pressed, 0xFF** means that there is no button pressing effect.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 4.4 Slider Adjustment (0x03) Add. Defination Data Length Description 0x00 Pic_ID 2 Page ID 0x02 TP_Area 8 Touch button areas: (Xs, Ys) (Xe, Ye) 0x0A Pic_Next 2 0x0C Pic_On 2 0x0E TP_Code 2 Page ID that will switch to, 0xFF** means no page switches. Must be 0xFF** Page ID that shows the effect animation when button pressed, 0xFF** means that there is no button pressing effect.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 4.5 The RTC Settings (0x04) Add.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 4.6 Button Result Value for Return(0x05) Add. Definition Data length Description 0x00 Pic_ID 2 Page ID 0x02 TP_Area 8 Touch button areas:(Xs,Ys)(Xe,Ye) 0x0A Pic_Next 2 Page ID that will switch to, 0xFF**indicates there is no switching. 0x0C Pic_On 2 0x0E TP_Code 2 Page ID that shows the effect animation when button pressed, 0xFF** means that there is no button pressing effect.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Keyboard code table for text entry In config.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 4.8 Firmware Parameter Configuration(0x07) Add. Definition 0x00 Pic_ID Data length 2 0x02 TP_Area 8 Touch button areas:(Xs,Ys)(Xe,Ye) 0x0A Pic_Next 2 0x0C Pic_On 2 0x0E TP_Code 2 Page ID that will switch to, 0xFF**indicates there is no switching. The ID number of picture of pressing effects animation, 0xFF** means that there is no button pressing effect.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5 Variable Configuration File Descriptions Variable configuration file is composed of several pieces of variable commands that is configurated by pages. Each of variable command occupies 32 bytes storage in regular. Fixed allocation of 2KB (0x0800) for each page of variable storage space can be set to 64 variables per page. For variables in the same type, the more rearward of storage location, the higher display priority.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.1.2 Animation icons display(0x01) Add. Definition Data length 0x00 0x5A01 2 0x02 *SP 2 0x04 0x000A 2 Description Variable description pointer, 0xFFFF indicates it loaded from the configuration file. 0x06 0x00 *VP 2 The initial icon variable pointer, double-word variable, low word retention, high word of unsigned (0x0000-0x0FFFF) to control the animation mode.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.1.3 Slider scale indicator(0x02) 0x00 0x5A02 Data Length 2 0x02 *SP 2 0x04 0x0009 2 Add. Definition Description Variables description pointer, 0xFFFF indicates it loaded by config.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.1.4 WordArt variable display(0x03) Add. Definition Data Length 0x00 0x5A03 2 0x02 *SP 2 0x04 0x0007 2 Description Variables description pointer, 0xFFFF indicates it loaded by config.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.1.5 Images Animation(0x04) Add. Definition Data Length 0x00 0x5A04 2 0x02 *SP 2 0x04 0x0004 2 Description Variables description pointer, 0xFFFF indicates it loaded by config.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.1.6 Icon Rotation Instructions(0x05) 0x00 0x5A05 Data Length 2 0x02 *SP 2 0x04 0x000C 2 Add. Definition Description Variables description pointer, 0xFFFF indicates it loaded by config.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.2 Text Variables 5.2.1 Data variables display(0x10) Add. Defined Data Length 0x00 0x5A10 2 0x02 *SP 2 0x04 0x000D 2 Description Variable description pointer, 0xFFFF indicates it loaded by config. file 0x06 0x00 *VP 2 0x08 0x01 X,Y 4 0x0C 0x03 COLOR 2 Starting display position. The coordinate is upper-left point of displayed string.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.2.2 Text Display (0x11) Address Definition Data Length 0x00 0x5A11 2 0x02 *SP 2 0x04 0x000D 2 Description Variable description pointer, 0xFFFF indicates it loaded by config. file 0x06 0x00 *VP 2 Text pointer 0x08 0x01 X,Y 4 0x0C 0x03 Color 2 Starting display position. The coordinate is upper left point of displayed string.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.2.3 The RTC Display(0x12) Text RTC Display Add. 0x00 0x02 0x04 0x06 0x08 0x0C 0x0E 0x0F 0x10 Definition Data Length Description 0x5A12 2 *SP 2 0x000D 2 0x00 0x0000 2 0x01 X,Y 4 Display position. The coordinate is upper left point of displayed string.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.3 Graphics variable 5.3.1 Curve Display (0x20) Add. Definition Data Length 0x00 0x5A20 2 0x02 *SP 2 0x04 0x000A 2 Description Variables description pointer, 0xFFFF indicates loaded by config.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.3.2 Basic Graphic Display(0x21) 0x00 0x5A21 Data Length 2 0x02 *SP 2 0x04 0x0005 2 Add. Definition 0x06 0x00 *VP 2 0x08 0x01 Area 8 Description Variables description pointer, 0xFFFF indicates it loaded by config.
PROFESIONAL, CREDITABLE, SUCCESSFULL 0x0008 0x0009 DWIN DGUS v2.0 Specification 0x02 1 ICON_ID ICON ID, ICON library position and display mode are specified by the high byte of command. ICON is fixed to display without the background color 0x00 2 (x,y) Coordinates for color seed, use the high byte of X as judging factor.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 0x0003 Rectangle 0x0004 Rectangle area filling 0x0005 Round Beijing DWIN Technology Co., Ltd. - 33 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 0x0006 Cut and paste of image area 0x0007 ICON display Beijing DWIN Technology Co., Ltd. - 34 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 0x0008 Area filling 0x0009 Vertical line Beijing DWIN Technology Co., Ltd. - 35 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.3.3 Tabulate Display(0x22) Add.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 5.3.4 Exclusive functions for special applications 0x00 0x5A23 Data Length 2 0x02 *SP 2 0x04 0x0001 2 *VP 2 Variable data pointer 24 Write 0x00 Add. 0x06 Definition 0x00 0x08 Description Variables description pointer, 0xFFFF indicates it loaded by config. file Data format for Variables Add.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification 6 Development Steps Step 1: Variable Scheme Variable Scheme basically follows two basic principles: a. Data variables should arranged in continuous addresses for convenience to write/read; b. Address of parameter description variables and data variables should separate and no cross-connect. Data length of variable data in DWIN DGUS V2.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Step 2: Interface Design Use Photoshop (or other softwares) to design the interface and related items (icon, font etc.). In process, please select 65K color in palette system for ensuring the identical with final display effects. Step 3: Interface Configuration Use DWIN software to configure the interface to generate the touch configuration file and variable configuration file. Beijing DWIN Technology Co., Ltd. - 39 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Step 4: Debug Test Download the config. file, images, font, icon library etc. to DWIN module via SD card for debugging and adjustment (Step 2&3); Connecting with user’s host by serial port to process up data transmission. Step5: Archive Version Config. file, images, font, icons library etc. that involved with module works were saved in an SD card for mass production. Please see DGUS operation details as below: Beijing DWIN Technology Co.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification The method of creating icon library: (a) Download the pictures and cut to the appropriate icon size by PS or other drawing software, such as 80 * 80. Save it to a folder and naming it, such as “ICON” (b) Open DWIN Toolbox-ICON Library, Step 1: Select the picture path Step 2: Create a new ICO file which MUST BE named 41, saved it to a folder such as ICO.1. (Rename the icon library from 41. The second icon library named 42 or 43.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Appendix 1 DGUS key functions preview ① Variable input and display: 0xFE00 Variable Data Input(pop-up keyboard which is not on the current page ); 0x5A10 Data Variable Display. ② Variable adjustment(“++”,“--”) and display: 0xFE02 Adjustment of the Variable Value; 0x5A10 Data Variable Display. ③ Variable adjustment (drag with following slider) : 0xFE03 Slider Adjustment ; 0x5A02 Slider Scale Indicator.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification ⑧ Boot animation, electronic album: 0x5A04 Images Animation. ⑨Tabulate display, drag and print: 0x5A22 Tabulate Display ;0xFE03 Slider Adjustment ; 0x5A02 Slider Scale Indicator ;0xFE07 Firmware parameter Configuration.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification Appendix 2 Application Examples (1) Display, entry and adjustment of parameters 0x5A10 Data Variable Display , optional font, font size, font color, and data unit. 0xFE00 Variable Data Input, click on the touch region, display the pop-up keyboard and the input process with flashing cursor. 0xFE02 Incremental Adjustment, click on the buttons to adjust the data in the way of "--" &"++". 0xFE03 Slider Adjustment, press the touch region 0.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (2)Display and adjust the curve 0x5A20 Curve Display, support up to 8 channels to receive data and real-time display the curve at the same time. 0xFE03 Slider Adjustment with 0x5A02 Slider Scale Indicator, control the position of the curve center axis. 0xFE02 Incremental Adjustment, adjust X-axis scaling of the curve. 0xFE02 Incremental Adjustment , adjust Y-axis scaling of the curve. Beijing DWIN Technology Co., Ltd. - 45 - www.dwin.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (3)Time display and set 0x5A12 RTC display, tow kinds of time display: text and dial. Text time display with user-defined display format, dial time display with user-designed dial and pointers. 0xFE04 RTC Setting, click on the touch area, display the pop-up setting keyboard and the input process with the flashing cursor. Beijing DWIN Technology Co., Ltd. - 46 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (4)Progress bar display The progress bar is achieved by mainly two ways: variable icon to display and slider scale to indicate. 1) 0x5A00 Variable Icon Display: Display different icons corresponding to different variable values. 2) 0x5A02 Slider Scale Indicator: The slider shows in different locations corresponding to different variable values.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (5)Control switch, display animation of operating status Set 0xFE02 Incremental Adjustment button, adjustment in step of 1, range 0-1, cycle when over the range. The variable value switches between 0 and 1 by pressing the button. Control the equipment operating status by querying the value of the variable. 0x5A01 Animation icon Display, When the variable is 0, fixed display the no-electricity icon.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (6)Dashboard display 0x5A05 ICON Rotation Instructions. The dial pointer icon displays with different angles of rotation corresponding to different values of a variable. Beijing DWIN Technology Co., Ltd. - 49 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (7)Display and print a form 0x5A22 Tabulate Display, content to display can be generated by the variable initializing configuration file. If the form is too large to display completely, change the form display area by 0xFE03 Slider Adjustment with 0x5A02 Slider Scale Indicator. Print specified area displaying on the screen by 0xFE07 Firmware Parameter Configuration touch button, with the user’s MCU connecting to a serial printer.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (8)Text display and input 0x5A11Text Display,0xFE06 ASCII Text Entry,support ASCII text and GBK Chinese character text display and input. Click on the touch area, pop-up text entry keyboard. Beijing DWIN Technology Co., Ltd. - 51 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (9)Electronic Album (boot animation) 0x5A04 Images Animation, multiple full-screen pictures switch in order, with user-defined time interval of the switching. By software for video capture, with this function, you can make video for the boot animation. Beijing DWIN Technology Co., Ltd. - 52 - www.dwin.com.
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification (10) Multi-channel switch display Four-channel switch control as example, set four 0xFE02 Incremental Adjustment button and four 0x5A00 Variable Icon display pointing to four different variables, adjustment in step of 1, range 0-1, cycle when over the range. The red icon corresponds to value 0, the green icon corresponds to value 1.