|
|||||||
ChatGPTbot: DWIN
Время создания: 23.07.2024 20:35
Автор: alensav
Текстовые метки: ChatGPTbo
Раздел: DWIN
Запись: alensav/MyTetra2/main/base/1721756115sf46ct30j0/text.html на raw.githubusercontent.com
|
|||||||
|
|||||||
ChatGPTbot: Здравствуйте! Вы подключились к ChatGPT разработки компании OpenAI. Пожалуйста, напишите ваш первый вопрос. Version 1.0 DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 2 Contents Chapter 1 Quick Start............................................................................................................................................. 4 1.1 Naming Rule.............................................................................................................................................. 4 1.2 Interface Definition and Wiring.................................................................................................................. 5 1.3 Power Supply ............................................................................................................................................ 8 1.4 Driver Installation....................................................................................................................................... 8 1.5 Software Installation................................................................................................................................ 10 Chapter 2 Development System .......................................................................................................................... 11 2.1 T5L ASIC................................................................................................................................................. 11 2.2 T5L_DGUS II Development System ....................................................................................................... 14 2.3 Features .................................................................................................................................................. 16 2.4 Software Process .................................................................................................................................... 17 2.5 FLASH Memory Allocation...................................................................................................................... 18 2.6 RAM Memory Variable Address Space .................................................................................................. 19 2.7 RAM Description Pointer Space ............................................................................................................. 20 Chapter 3 SD Card Interface................................................................................................................................ 22 3.1 MicroSD (TF) Card Format ..................................................................................................................... 22 3.2 SD Card Interface Download Method ..................................................................................................... 23 3.3 Download File.......................................................................................................................................... 24 Chapter 4 UART2 Serial Communication Protocol .............................................................................................. 41 4.1 Data Frame Structure.............................................................................................................................. 41 4.2 UART2 Debug Interface Instruction........................................................................................................ 41 Chapter 5 System Variable Interface ................................................................................................................... 45 5.1 System Variable Interface ....................................................................................................................... 45 5.2 Network Interface .................................................................................................................................... 59 Chapter 6 Touch Variable Configuration (13.BIN) ............................................................................................... 65 6.1 List of Touch Variables............................................................................................................................ 66 6.2 Variable Data Input.................................................................................................................................. 67 6.3 Popup Menu............................................................................................................................................ 70 6.4 Incremental Adjustment .......................................................................................................................... 72 6.5 Drag Adjustment...................................................................................................................................... 74 6.6 Return Key Code..................................................................................................................................... 76 6.7 Text Input................................................................................................................................................. 78 6.8 Synchrodata Return ................................................................................................................................ 86 6.9 Rotation Adjustment................................................................................................................................ 89 6.10 Sliding Adjustment................................................................................................................................. 91 6.11 Page Sliding .......................................................................................................................................... 92 6.12 Slide Icon Selection............................................................................................................................... 94 Chapter 7 Display Variable Configuration ................................................................................... Версия 1.0 Компания DWIN Technology Профессиональное, надежное, успешное руководство по разработке приложений для T5L_DGUSII Содержание Глава 1 Быстрый старт............................................................................................................................ 4 1.1 Правила именования.......................................................................................................................... 4 1.2 Определение интерфейса и подключение........................................................................................... 5 1.3 Питание............................................................................................................................................... 8 1.4 Установка драйвера.......................................................................................................................... 8 1.5 Установка программного обеспечения.............................................................................................. 10 Глава 2 Система разработки................................................................................................................... 11 2.1 Чип T5L............................................................................................................................................. 11 2.2 Система разработки T5L_DGUS II.................................................................................................... 14 2.3 Особенности..................................................................................................................................... 16 2.4 Процесс программирования............................................................................................................... 17 2.5 Распределение памяти FLASH.......................................................................................................... 18 2.6 Адресное пространство переменных в оперативной памяти (RAM)................................................ 19 2.7 Описание указателя на память RAM.................................................................................................. 20 Глава 3 Интерфейс SD-карты................................................................................................................. 22 3.1 Формат MicroSD (TF) карты............................................................................................................ 22 3.2 Метод загрузки через интерфейс SD-карты..................................................................................... 23 3.3 Загрузочный файл.............................................................................................................................. 24 Глава 4 Протокол последовательной связи UART2................................................................................. 41 4.1 Структура кадра данных.................................................................................................................... 41 4.2 Инструкции для отладочного интерфейса UART2........................................................................... 41 Глава 5 Интерфейс системных переменных............................................................................................... 45 5.1 Интерфейс системных переменных.................................................................................................. 45 5.2 Сетевой интерфейс........................................................................................................................... 59 Глава 6 Конфигурация переменных сенсорного экрана (13.BIN)............................................................. 65 6.1 Список переменных сенсорного экрана............................................................................................ 66 6.2 Ввод данных в переменные................................................................................................................ 67 6.3 Всплывающее меню.......................................................................................................................... 70 6.4 Постепенная настройка..................................................................................................................... 72 6.5 Регулировка перемещением............................................................................................................. 74 6.6 Код клавиши возврата.................................................................................................................... 76 6.7 Ввод текста....................................................................................................................................... 78 6.8 Возврат синхроданных..................................................................................................................... 86 6.9 Настройка поворота.......................................................................................................................... 89 6.10 Регулировка путем скольжения..................................................................................................... 91 6.11 Скольжение страницы..................................................................................................................... 92 6.12 Выбор иконки скольжения............................................................................................................ 94 Глава 7 Конфигурация переменных дисплея.......................................................................... Professional, Creditable, Successful T5L_DGUSII Application Development Guide 4 Chapter 1 Quick Start 1.1 Naming Rule Product Line Code DM DWIN Smart LCM Product Line Color Code 1 Character T=65K color(16-bit) G=16.7M/262K color(18-bit/24-bit) Resolution 5 Digits 24240=240*240 32240=320*240 48270=480*272 48320=480*320 64360=640*360 64480=640*480 80480=800*480 85480=854*480 80600=800*600 10600=1024*600 10768=1024*768 12480=1280*480 12720=1280*720 12800=1280*800 13768=1364*768/1366*768 19108=1920*1080 19480=1920*480 Classification 1Character F=COF structure Y=Beauty grade L=Simple application grade C=Commerce grade T=Industrial grade K=Medical grade S=Harsh environment grade Q=Automotive grade Size 3 Digits 020=2.2inch 024=2.4inch 028=2.8inch 030=3.0inch 035=3.5inch 040=4.0inch 041=4.1inch 043=4.3inch 050=5.0inch 056=5.6inch 070=7.0inch 080=8.0inch 088=8.8inch 097=9.7inch 101=10.1inch 104=10.4inch 116=11.6inch 121=12.1inch 140=14.0inch 150=15.0inch 156=15.6inch 17.=17.3inch 185=18.5inch 215=21.5inch _ _ Separator Attribute Code 1 Digit or character 0=Basic type 1=Basic type with shell 2=Analogue video processing platform 3=Android platform 4=Digital video processing platform products A=DGUSII kernel product Hardware Serial Number 1 Digit 0-9 to distinguish between different hardware versions LCD Temperature Level 1 Character N=Normal temperature W=Wide temperature TP Category 1 or 2 Character N=Without touch panel TR=Resistive touch panel TC=Capacitive touch panel Custom Tag Z+ Number Z01-Z99, Standard is blank Extended Memory Tag F+1 Number F0=512MB F1=1GB F2=2GB F3=3GB, Standard is blank DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 5 1.2 Interface Definition and Wiring Pin Class Socket Type PIN Name Pin Type Pin Description CN1 CN2 CN3 VCC P Power supply input 1,2 1,2,3 1 TX4 O UART4 output 3 4 2 TX2 O UART2 output 4 5 3 RX2 I UART2 input 5 6 4 RX4 I UART4 input 6 7 5 GND P Power supply input 7,8 8,9,10 6 ① I: INPUT, O: OUTPUT, P: POWER ②PCB pins of the same defined pins have been connected in parallel. ③CN1: Use 8 Pin 2.0 mm spacing patch socket; CN2: Use 10 Pin 1.0 mm spacing FPC mount; CN3: Additional 6 Pin 2.54 mm spacing through hole pad is provided. ④UART2 is the communication protocol developed by DGUSII, please refer to the detailed description in Chapter 4; T5L DGUS products are equipped with extended UART4, and its configuration and communication need to be completed through DWIN OS program. TA mode is only available for UART2 communications at the moment. ⑤DWIN adopt TTL/RS232 compatible interface. Users can use 0Ω resistor or solder to short connect directly. R232=0 (short circuit) selects TTL level input; R232=1(disconnect) selects RS232 level. As shown below, the place is marked by white silk screen. By default, the factory disconnects the 232 level, and selects the TTL level. That is OFF=232, ON=TTL. DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 6 Level selection (1) 10 Pin Interface One-end of the different side FCC row line is connected to terminal block of the screen, and the other end is connected to the DWIN HDL662B adapter board, both blue side face up. One-end of the double-male USB cable is connected to the adapter board, and the other end is connected to the computer for communication. 10pin interface definition and wiring DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 7 (2) 8 Pin Interface The 8 PIN interface is spaced by 2.0mm. 8pin2.0 interface definition and wiring DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 8 1.3 Power Supply Confirm the voltage and power consumption corresponding to the screen according to the catalogue or datasheet. Power on the screen with the DC regulated power supply 5V/12V/24V. The power supply plays a very important role in the normal display of the screen. If the voltage is too small, the current is unstable, and the power is too low, it may cause abnormal display such as flickering and black screen. 1.4 Driver Installation 1.4.1 Serial Driver The USB-to-UART chips of DWIN serial adapter boards are XR21V1410 chip and CP2102 chip According to the chip type, you can download from DWIN official website or consult customer service to obtain and install the corresponding driver for DGUS screen communication. Serial Port Driver Steps are as follows. Step 1: Right-click "Computer"; click "Properties" at the bottom; click "Device Manager" at the top left, right-click "USB Device" on the "Device Manager" operation box, and select "Update Driver". DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 9 Step 2: Select "Next" in the pop-up window. Step 3: Select the path of the serial port driver to complete the driver update. Step 4: After the installation is complete, the port number corresponding to the driver can be viewed in the device manager. 1.4.2 Software Operating Environment Driver Obtain the software operating environment and double-click to install it. DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 10 1.5 Software Installation Download DGUS V7.624 from our official website https://www.dwin-global.com/ or get from customer service. 1.5.1 New Project Taking the variable data input control and preview function an example, the steps as follows. Step 1: Prepare the background image of the same resolution as the screen, in jpg/bmp format, 24-bit color. The pictures name starts from 00. Step 2: Download and open DGUS V7.624. Step 3: Import the image. Step 4: Configure the Interface. Step 5: Click save and generate. Step 6: Project preview. DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 11 Chapter 2 Development System 2.1 T5L ASIC The T5L series ASIC is a single-chi 2.2 DGUSII Kernel The DGUSII kernel is the software framework provided by DWIN for developing applications on the T5L ASIC. It includes a set of libraries and APIs that allow developers to easil Professional, Creditable, Successful T5L_DGUSII Application Development Guide 4 Chapter 1 Quick Start 1.1 Naming Rule Product Line Code DM DWIN Smart LCM Product Line Color Code 1 Character T=65K color(16-bit) G=16.7M/262K color(18-bit/24-bit) Resolution 5 Digits 24240=240*240 32240=320*240 48270=480*272 48320=480*320 64360=640*360 64480=640*480 80480=800*480 85480=854*480 80600=800*600 10600=1024*600 10768=1024*768 12480=1280*480 12720=1280*720 12800=1280*800 13768=1364*768/1366*768 19108=1920*1080 19480=1920*480 Classification 1Character F=COF structure Y=Beauty grade L=Simple application grade C=Commerce grade T=Industrial grade K=Medical grade S=Harsh environment grade Q=Automotive grade Size 3 Digits 020=2.2inch 024=2.4inch 028=2.8inch 030=3.0inch 035=3.5inch 040=4.0inch 041=4.1inch 043=4.3inch 050=5.0inch 056=5.6inch 070=7.0inch 080=8.0inch 088=8.8inch 097=9.7inch 101=10.1inch 104=10.4inch 116=11.6inch 121=12.1inch 140=14.0inch 150=15.0inch 156=15.6inch 17.=17.3inch 185=18.5inch 215=21.5inch _ _ Separator Attribute Code 1 Digit or character 0=Basic type 1=Basic type with shell 2=Analogue video processing platform 3=Android platform 4=Digital video processing platform products A=DGUSII kernel product Hardware Serial Number 1 Digit 0-9 to distinguish between different hardware versions LCD Temperature Level 1 Character N=Normal temperature W=Wide temperature TP Category 1 or 2 Character N=Without touch panel TR=Resistive touch panel TC=Capacitive touch panel Custom Tag Z+ Number Z01-Z99, Standard is blank Extended Memory Tag F+1 Number F0=512MB F1=1GB F2=2GB F3=3GB, Standard is blank DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 5 1.2 Interface Definition and Wiring Pin Class Socket Type PIN Name Pin Type Pin Description CN1 CN2 CN3 VCC P Power supply input 1,2 1,2,3 1 TX4 O UART4 output 3 4 2 TX2 O UART2 output 4 5 3 RX2 I UART2 input 5 6 4 RX4 I UART4 input 6 7 5 GND P Power supply input 7,8 8,9,10 6 ① I: INPUT, O: OUTPUT, P: POWER ②PCB pins of the same defined pins have been connected in parallel. ③CN1: Use 8 Pin 2.0 mm spacing patch socket; CN2: Use 10 Pin 1.0 mm spacing FPC mount; CN3: Additional 6 Pin 2.54 mm spacing through hole pad is provided. ④UART2 is the communication protocol developed by DGUSII, please refer to the detailed description in Chapter 4; T5L DGUS products are equipped with extended UART4, and its configuration and communication need to be completed through DWIN OS program. TA mode is only available for UART2 communications at the moment. ⑤DWIN adopt TTL/RS232 compatible interface. Users can use 0Ω resistor or solder to short connect directly. R232=0 (short circuit) selects TTL level input; R232=1(disconnect) selects RS232 level. As shown below, the place is marked by white silk screen. By default, the factory disconnects the 232 level, and selects the TTL level. That is OFF=232, ON=TTL. DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 6 Level selection (1) 10 Pin Interface One-end of the different side FCC row line is connected to terminal block of the screen, and the other end is connected to the DWIN HDL662B adapter board, both blue side face up. One-end of the double-male USB cable is connected to the adapter board, and the other end is connected to the computer for communication. 10pin interface definition and wiring DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 7 (2) 8 Pin Interface The 8 PIN interface is spaced by 2.0mm. 8pin2.0 interface definition and wiring DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 8 1.3 Power Supply Confirm the voltage and power consumption corresponding to the screen according to the catalogue or datasheet. Power on the screen with the DC regulated power supply 5V/12V/24V. The power supply plays a very important role in the normal display of the screen. If the voltage is too small, the current is unstable, and the power is too low, it may cause abnormal display such as flickering and black screen. 1.4 Driver Installation 1.4.1 Serial Driver The USB-to-UART chips of DWIN serial adapter boards are XR21V1410 chip and CP2102 chip According to the chip type, you can download from DWIN official website or consult customer service to obtain and install the corresponding driver for DGUS screen communication. Serial Port Driver Steps are as follows. Step 1: Right-click "Computer"; click "Properties" at the bottom; click "Device Manager" at the top left, right-click "USB Device" on the "Device Manager" operation box, and select "Update Driver". DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 9 Step 2: Select "Next" in the pop-up window. Step 3: Select the path of the serial port driver to complete the driver update. Step 4: After the installation is complete, the port number corresponding to the driver can be viewed in the device manager. 1.4.2 Software Operating Environment Driver Obtain the software operating environment and double-click to install it. DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 10 1.5 Software Installation Download DGUS V7.624 from our official website https://www.dwin-global.com/ or get from customer service. 1.5.1 New Project Taking the variable data input control and preview function an example, the steps as follows. Step 1: Prepare the background image of the same resolution as the screen, in jpg/bmp format, 24-bit color. The pictures name starts from 00. Step 2: Download and open DGUS V7.624. Step 3: Import the image. Step 4: Configure the Interface. Step 5: Click save and generate. Step 6: Project preview. DWIN Technology Professional, Creditable, Successful T5L_DGUSII Application Development Guide 11 Chapter 2 Development System 2.1 T5L ASIC The T5L Профессиональное, добросовестное, успешное руководство по разработке приложений T5L_DGUSII Глава 1 Быстрый старт 1.1 Правила именования Код продуктовой линии DM - Продукты DWIN Smart LCM Код цвета 1 символ T=65K цвет (16-битный) G=16.7M/262K цвет (18-битный/24-битный) Разрешение 5 цифр 24240=240*240 32240=320*240 48270=480*272 48320=480*320 64360=640*360 64480=640*480 80480=800*480 85480=854*480 80600=800*600 10600=1024*600 10768=1024*768 12480=1280*480 12720=1280*720 12800=1280*800 13768=1364*768/1366*768 19108=1920*1080 19480=1920*480 Классификация 1 символ F=COF структура Y=Градация качества L=Простая градация применения C=Коммерческая градация T=Промышленная градация K=Медицинская градация S=Градация для экстремальных условий Q=Градация для автомобилей Размер 3 цифры 020=2.2 дюйма 024=2.4 дюйма 028=2.8 дюйма 030=3.0 дюйма 035=3.5 дюйма 040=4.0 дюйма 041=4.1 дюйма 043=4.3 дюйма 050=5.0 дюйма 056=5.6 дюйма 070=7.0 дюйма 080=8.0 дюйма 088=8.8 дюйма 097=9.7 дюйма 101=10.1 дюйма 104=10.4 дюйма 116=11.6 дюйма 121=12.1 дюйма 140=14.0 дюйма 150=15.0 дюйма 156=15.6 дюйма 17.=17.3 дюйма 185=18.5 дюйма 215=21.5 дюйма _ _ Разделитель Код атрибута 1 цифра или символ 0=Базовый тип 1=Базовый тип с оболочкой 2=Аналоговая видеообработка 3=Платформа Android 4=Продукты платформы цифровой видеообработки A=Продукт ядра DGUSII Номер аппаратного обеспечения 1 цифра 0-9 для различения разных версий аппаратного обеспечения Уровень температуры ЖК-дисплея 1 символ N=Нормальная температура W=Широкий диапазон температур Категория сенсорной панели 1 или 2 символа N=Без сенсорной панели TR=Сенсорная панель сопротивления TC=Сенсорная панель емкости Пользовательская метка Z+ Номер Z01-Z99, стандарт - пусто Метка расширенной памяти F+1 Номер F0=512 МБ F1=1 ГБ F2=2 ГБ F3=3 ГБ, стандарт - пусто Глава 2 Система разработки 2.1 Чип T5L ASIC Чип T5L представляет собой высокоэффективный микроконтроллер для приложений интерфейса человека и машины (HMI). Он интегрирует высокопроизводительный процессор ARM Cortex-M4, графический контроллер и различные периферийные устройства для создания полного решения для разработки HMI. 2.2 Ядро DGUSII Ядро DGUSII - это программная платформа, предоставляемая DWIN для разработки приложений на чипе T5L. Она включает набор библиотек и API, которые позволяют разработчикам легко создавать пользовательские интерфейсы, обрабатывать пользовательский ввод и взаимодействовать с внешними устройствами. 2.3 Инструменты разработки DWIN предоставляет инструмент разработки под названием DGUS Studio для создания и редактирования проектов HMI. DGUS Studio позволяет разработчикам проектировать пользовательские интерфейсы, определять переменные и структуры данных и генерировать код для чипа T5L. 2.4 Язык программирования Ядро DGUSII поддерживает язык программирования, похожий на язык C, для реализации логики приложения. Разработчики могут писать код для обработки пользовательского ввода, обновления содержимого дисплея и взаимодействия с внешними устройствами. 2.5 Протоколы связи Чип T5L поддерживает различные протоколы связи, включая UART, I2C, SPI и USB. Разработчики могут использовать эти протоколы для общения с внешними устройствами, такими как микроконтроллеры, сенсоры и исполнительные устройства. 2.6 Отладка и тестирование DWIN предоставляет среду отладки и тестирования для разработчиков, чтобы проверить и отлаживать свои приложения. Эта среда включает инструменты для мониторинга переменных, моделирования пользовательского ввода и захвата отладочной информации. 2.7 Документация и поддержка DWIN предоставляет полную документацию и техническую поддержку для разработчиков. Документация включает руководства пользователя, руководства по разработке приложений и справочные материалы. Разработчики также могут получить доступ к онлайн-форумам и обратиться в техническую поддержку DWIN для получения помощи. |
|||||||
Так же в этом разделе:
|
|||||||
![]() |
|||||||
|
|||||||
|