DGUS Command Quick Start

Similar documents
Curve Display. Data Data Length N 2. CONFIG.TXT checksum Data frame is made up by 4 parts, shown as below.

DGUS_SDK User Guide. (Ver ) AMP DISPLAY INC. 1

Real Design Firmware (RD v1.0) Command Set Rev. 1.0

Control Codes. Viewing control state (Get control command) Controlling (Set control command) Command. No. Command type Command Value range

DGUS Development Guide

DWIN_HMI USER GUIDE Beijing DWIN Technology Co., Ltd.

SERIAL TFT MODULE APPLICATION NOTE 1

Logosol Joystick Node LS-731

SC1602LC 16x2 Large Characters RS232 LCD Module. User s Manual. Large Viewing Area 99mm x 24mm. Large Character Size. 4.84mm x 9.66mm.

DWIN DGUS Applications Example

User Guide to Intelligent TFT LCD Module 4.1 Development Kit. (March 16, 2016)

Table of Contents. 1.0 General Description

THANK YOU. Control System Communication Protocol Manual RackLink. Monitor Control Alert Report Analyze. Thank you for purchasing a RackLink product.

LCD6402-DEV Development/Evaluation Board for the LCD6402B LCD6402-DEV Development/Evaluation Board for the LCD6402B

CIS-331 Exam 2 Spring 2016 Total of 110 Points Version 1

UnicView RD v1.0.0 User Guide Rev 1.0

CIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1

The RS-485 user manual for B800 series communication

Venstar Thermostat Adapter

Generating Vectors Overview

ELE 758 * DIGITAL SYSTEMS ENGINEERING * MIDTERM TEST * Circle the memory type based on electrically re-chargeable elements

Revision No. Date Description Item Page

Aeroflex Colorado Springs Application Note

Developer Notes for KeypadLinc Line

Terminal Assistant V6.0 Help Documents

PROTOCOL TRANSPORTS 4 RS232 SPECIFICATIONS 4 RS232 CABLING 4 TCP/IP 4 PROTOCOL DOCUMENT NOTES 4 COMMUNICATION 4

SPECIFICATION FOR TFT MODULE MODULE NO: AFA320240DM-3.5-A128-R REVISION NO: 00

VA-2002 RS232 Remote Interface Specification

Table of Contents. 1.0 General Description

Micro Module Shutter. Micro Module Shutter

Planar Simplicity Series

SwitchLinc 2-Wire Dimmer (RF Only) (2474DWH - Dev 0x01 / Sub 0x24)

SPECIFICATION FOR TFT MODULE MODULE NO: AFA320240DM-3.5-A8 REVISION NO: 00

Titan Dot Matrix Display (A05)

INSTEON Hidden Door Sensor

Developer Notes INSTEON Thermostat v012. Developer Notes. INSTEON Thermostat. Revision History

Revision No. Date Description Item Page

1. Create a map of the layer and attribute that needs to be queried

Application Note. Title: Incorporating HMT050CC-C as a Digital Scale Display by: A.S. Date:

CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

DinoCapture Additional Software Instructions for Measurement models

DTNFCSS UART YES Internal DTNFCUS USB YES Internal

The Extended MBR (version 1.05) (dated: 01 Nov 2018) by Benjamin David Lunt Copyright (c) Forever Young Software

CAN / RS485. Product Description. Technical Reference Note. Interface Adapter. Special Features

VS-LC101/ VS-LC102 RS-232 command set

CIS-331 Fall 2014 Exam 1 Name: Total of 109 Points Version 1

CIS-331 Final Exam Spring 2016 Total of 120 Points. Version 1

QBridge. I2C, SPI, CAN Control Software User s Manual. Date: Rev 1.3

CIS-331 Final Exam Spring 2018 Total of 120 Points. Version 1

DRPC100-OLED UART PROTOCOL SPECIFICATION

1. Introduction Related Documents Binary Format Command Set Overview Common Commands...

B Interface description 12.01/

Wireless M-Bus. Implementation in TR-7xD-WMB and GW-USB-06-WMB. Firmware v2.21. User's Guide

Revision No. Date Description Item Page

C1098 JPEG Module User Manual

Picture Translation A Challenge

1. Implemented CM11 protocol

XCONSOLE COMMUNICATION PROTOCOL (April, 2008)

Rako Bridge 3rd Party Access Protocols

Multimedia Systems. Part 4. Mahdi Vasighi

SPECIFICATION FOR TFT MODULE MODULE NO: AFA240320M-2.8-A8 REVISION NO: 00

Micro RWD Quad-Tag Reader

CLOCKAUDIO. MR88 Automatic Microphone Mixer RS232 Programming Version 4.2

DWIN DGUS Display Development Guide

H1PROT.PDF 14 Pages Last Revised 02/11/06. Micro RWD H1/S Protocol

PIC-I/O Multifunction I/O Controller

CIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1

FN-BC04 MP3 Sound Module with 10W Amplifier. User s Manual

CSCI 2212: Intermediate Programming / C Chapter 15

SPECIFCATIONS. Model: M7-A035/043/050/056/070/080A. Customer Approval: Design. Mechanic. Quality. Approved by M7-A035/043/050/056/070/080A

Technical Information. Command overview of Vision Systems

C6820 Enhanced JPEG Module. User Manual V2.0. Release Note: 1. Feb 8, 2007 official released v Nov 16, 2007 released V2.0

Final Exam. 11 May 2018, 120 minutes, 26 questions, 100 points

0.1. [0x8A] Read Configuration

Conto D2 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

KT403A Datasheet(Part)

Analyzing the command string for switch to input #

DRF1605H Zigbee Module 1.6km Transfer CC2530 Wireless Module UART to Zigbee

C628 Enhanced JPEG Module. User Manual

CIS-331 Exam 2 Fall 2015 Total of 105 Points Version 1

Final Exam. 12 December 2018, 120 minutes, 26 questions, 100 points

Fingerprint_Protocol_All_English

FW UPGRADE SPECIFICATION

C:\Users\jacob\Documents\MtSAC\ELEC74 Mt SAC - chipkit\homework Sheets.docx

15693-RW-TTL-PCB1 CONTENT 1. MAIN FEATURES PINNING INFORMATION BAUD RATE SETTING COMMUNICATION PROTOCOL...5

Drawing Tools. Drawing a Rectangle

Rotel RS232 Serial Bus Communication

DMT80480T070_22WT User ManualV2.0

C:\Users\Jacob Christ\Documents\MtSAC\ELEC74 Mt SAC - chipkit\homework Sheets.docx

KNJN I2C bus development boards

RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200

Revision No. Date Description Item Page

Embedded Modbus TCP Module GS11-MT. User Manual REV 1.1. SST Automation.

IQRF SPI. Technical guide. For TR-7xD For IQRF OS v4.02 or higher IQRF Tech s.r.o. Tech_Guide_SPI_TR-7xD_ Page 1

SPP-R210 Command Manual Rev. 1.00

INGICS. ibs01 Payload Format. Jul, 2016 rev. 3

Panther Programmer USER MANUAL. Version 1.01 November, 2017

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

VZ8(6)9 rev B I2C communication quick manual. SGX Sensortech

City of Aurora. Development Review Plans Submission and Referral Website. Public and Agency Referral Instruction Guide

Transcription:

DGUS Command Quick Start 1 Data Frame... 1 2 Command Set... 1 3 Examples... 2 3.1 Access Register of DGUS... 2 3.2 Access Variable SRAM... 4 3.3 Dynamic Trend Curve Display... 5 3.4 Basic Graphic Display... 6 1

1 Data Frame Data 1 2 3 4 5 Definition Frame Header Data Length Command Data CRC checksum of the command and data Data Length 2 1 1 N 2 Defined by R3 & Data length, include Description RA in command, data and CONFIG.TXT checksum Data frame is made up by 4 parts, shown as below. 0x80-0x84 Defined by R2 in CONFIG.TXT 2 Command Set Function CMD Data Description 0x80 ADR(0x00-0xFF)+Data_Pack Write data into the specified register Access Register 0x81 ADR(0x00-0xFF)+RD_LEN(0x00-0xFF) ADR(0x00-0xFF)+RD_LEN+Data_Pack Read data from the specified register Response from the DGUS module Access Variable SRAM 0x82 0x83 ADR_H:L(0x0000-0x6FFF)+Data0...DataN ADR_H:L(0x0000-0x6FFF)+RD_LEN(0x00-0x7F) Write data into the specified variable SRAM Read data from the specified variable SRAM ADR_H:L+RD_LEN+Data0...DataN Response from the DGUS module Trend Curve Buffer 0x84 CH_Mode(Byte)+Data0(Word)+...+DataN Write data into trend curve buffer. DGUS Register Space: 0x00H-0xFFH, is written / read by byte. DGUS Variable Data Memory Space: 0x0000H-0x6FFFH, is written / read by word. Data in Curve buffer is written / read by word. The communication between DGUS LCMs & Controllers (MCU) are driven by Variables that you may read and write in corresponding address. 1

3 Examples Configure frame header and baud rate in CONFIG.TXT via DGUS SDK as below: R1=07 R3=5A RA=A5 Frame header (2 Bytes)+Data length (1 Byte)+Command (1 Byte)+Data (N Byte: ADR+data/LEN)+CRC (2 Bytes) 3.1 Access Register of DGUS 3.1.1 Write Data into Register Switch current picture to pic_3: 2

Send: 5A A5 04 80 03 00 03 Description: 03: Register for Picture ID 00 03: Appoint picture ID 3.1.2 Read Data from Register Handshaking:Read DGUS version (V 4.7): Send: 5A A5 03 81 00 01 Description: 00: Register for DGUS Version 01: Read data by a byte 3.1.3 Response from the DGUS module Receive: 5A A5 04 81 00 01 47 Description: 47: The version is 47 (V 4.7) 3

3.2 Access Variable SRAM 3.2.1 Write Data into variable SRAM Write Data 100 to VP=0x0010 Send: 5A A5 05 82 00 10 00 64 Description: 0010: Variable pointer 0064:Data 100 in hexadecimal format 3.2.2 Read Data from variable SRAM Send: 5A A5 04 83 00 10 01 Description: 0010: Variable pointer 01: Read data by a word 3.2.3 Response from the DGUS module Receive: 5A A5 05 83 00 10 01 00 20 Description: 0020: Data 32 in hexadecimal format 4

3.3 Dynamic Trend Curve Display Send: 5A A5 12 84 12 00 32 00 72 00 9F 00 04 00 17 00 36 00 93 00 1A Description: 12: Channel 4 & Channel 1, 8bit(0001 0010) Display the trend curve in the same area Display the trend curve in the different area simultaneously 5

3.4 Basic Graphic Display String Format Address Definition Description VP CMD Command. VP+1 VP+2 Date Pack For Basic Graphic CMD 0x0001 0x0002 0x0003 0x0004 0x0005 0x0006 0x**07 0x0008 0x0009 Function Dot Line Rectangle Rectangle Area Fill Circle Picture Cut/Paste Icon Display Area Fill Vertical Line Data_Pack_Num_Max DATA_Pack Relative Address Data Length Max number of data packs. For command 0x0002, it s number of graph. Definition Description of Data Format, by word 0x00 2 (x, y) Coordinate of dot. 0x02 1 Color Color of dot. 0x00 1 Color Color of line. 0x01 2 (x, y)0 Coordinate of vertex 0. 0x03 2 (x, y)1 Coordinate of vertex 1. 0x01+2*n 2 (x, y)n Coordinate of vertex n. 0x00 2 (x, y)s Coordinate of top-left. 0x02 2 (x, y)e Coordinate of bottom-right. 0x04 1 Color Color of rectangle. 0x00 2 (x, y)s Coordinate of top-left. 0x02 2 (x, y)e Coordinate of bottom-right. 0x04 1 Color Filled color. 0x00 2 (x, y) Coordinate of center of circle. 0x02 1 Rad Radius of circle. 0x03 1 Color Color of circle. 0x00 1 Pic_ID Image ID of cutting area. Description 0x01 2 (x, y)s Coordinate of top-left of cutting area. 0x03 2 (x, y)e Coordinate of bottom-right of cutting area. 0x05 2 (x, y) Paste position on current screen. 0x00 2 (x, y) Coordinate of top-left of icon. 0x02 1 ICON_ID 0x00 2 (x, y) Coordinate of sampling dot. 0x02 1 Color Filled color. 0x00 1 Color0 0x01 1 X0 0x02 1 Y0s 0x03 1 Y0e Icon ID in icon file, high byte of command specifies address of icon file, display mode is transparent. Connect (X0, Y0s), (X0, Y0e) with color0. Status Flag: 0xFF Current drawing operation finished. 0xFE This operation will be skipped (ignored). 6

Take Circle Drawing for example 1) Add a basic graphic display via DGUS SDK software and set vp to 0x00A0 as below: 7

2) Send commands by serial port Send: 5A A5 11 82 00 A0 00 05 00 01 01 64 00 EF 00 64 F8 00 FF 00 Hex 5A A5 Frame header 11 Data length 82 Command 00 A0 VP 00 05 Circle command 00 01 One circle Description 01 64 X coordinate of center of circle:356 00 EF Y coordinate of center of circle:239 00 64 Radius of circle:100 F8 00 Color: red FF 00 Drawing operation finished 8