AM004 -03128/03127 LED Display Board Communication l Version no. Date : : 2.2 Aug.
TABLE OF CONTENTS 1 Scope ……………………………………….. 3 2. Applicable System ……………………………………….. 3 3. Interfacing Method ……………………………………….. 3 4. Data Structure ……………………………………….. 3 4.1 ID Setting ………………………….…………….. 4 4.2 Message / Control ……………………………………….. 4 Real Time Clock Setting ……………………………………….. 5 Sending Page content ………………………………………. 5 Sending Schedule ………………………………………. 12 Send Graphic Block 4.2.5 ……………………………………… 13 Delete ……………………………………….. 15 4.2.5.
1 Scope This document is to provide a definition for the communication Protocol and hardware requirement of the LED Display System. 2. Applicable System Any LED Display Board that transfer data from a PC via the RS232 communication port or equivalent equipment is applicable to this document. System could use whole or part of this protocol. 3. Interfacing Method RS232 Baud Rate : 9600 ( 8,N,1.) 4. Data Structure All Data will have an ID no.
.1 ID Setting Each sign needs to have an ID, so you should set the sign ID first by the using PC software, (Use this command only when you want to change the sign ID) only one sign could be set at a time. . Command Format PC -> MCU : <, > ID XX MCU -> PC : Are ASCII code 3C, 3D Are character "I" & "D" (Upper case) Are the Hex number 01 to FF in ASCII format (i.e. maximum 255). XX XX Are the Hex number 01 to FF in ASCII format return from MCU . Note: 00 represents global call, i.e.
3. No Response : ID not match(Message for another LED on the same transmission line) or data format is not recognized. Note: There is no ACK response using Sign ID=00. Data 4.2.1 Packet Real Time Clock Setting Format : <,S,C & > YY WW MM 12=December DD HH mm SS 4.2.
<,P&> n 4.2.2.3 <,F&> X 4.2.2.2 Denotes which page this message belongs to Are ASCII characters “<”,”P” & “>” The Page number in ACSII character, ie. A = Page A B = Page B : Z = Page Z Denotes the leading command of this page Are ASCII characters “<”,”F” & “>” Code for the leading command in ACSII character, ie.
4.2.2.4 <,M&> X Denotes the Display method while waiting & effect speed Are ASCII characters “<”,”M” & “>” Code for the Display Method & Speed in ACSII character, ie.
4.2.2.5 <,W&> X Denotes the waiting time Are ASCII characters “<”,”W” & “>” Code for the waiting time in ACSII character, i.e. A B C D Z 4.2.2.6 <,F&> Y = = = = : = 0.5 sec 1 sec 2 sec 3 sec 25 sec Denotes the lagging command of this page Are ASCII characters “<”,”F” & “>” Code for the lagging command in ACSII character, ie.
4.2.2.7 ---Message--- Contents message data of page including display data (ASCII 20H-7FH) and (Font code), (Bell code), (Color Code), (Graphic Block), (Date & Time) and European Character. 4.2.2.7.1 <,A&> X 4.2.2.7.2 <,B&> X 4.2.2.7.3 <,C&> X Denotes the Font of the following characters Are ASCII characters “<”,”A” & “>” Code for the Font, ie.
4.2.2.7.4 <,G&> X n 1 Denotes the Graphic Block to be inserted Are ASCII characters “<",”G” & “>” Graphic page to be inserted , i.e. A = Page A B = Page B : P = Page P Graphic block (32X8 pixels) no. in a Graphic Page = Block 2 8 4.2.2.7.5 <,K&> X 4.2.2.7.6 <,C&> XX 1 = : = Block 2 Block 8 Denotes the Date or Time to be inserted Are ASCII characters “<”,”K” & “>” Date or Time to be inserted , i.e.
U00 U07 U01 U02 U03 U04 U05 U09 U0A U0B U0C U0D U0E U0F U10 U11 U12 U13 U14 U15 U16 U17 U18 U19 U1A U1B U1C U1D U1E U1F U20 U21 U22 U23 U24 U25 U26 U27 U28 U29 U2A U2B U2C U2D U2E U2F U32 U33 U34 U35 U39 U3A U3B U3C U3D U40 U41 U42 U43 U44 U45 U48 U49 U4A U4B U4C U4D U4E U50 U51 U52 U53 U54 U55 U56 U57 U58 U59 U5A U5B U5C U5D U5E U5F U60 U6 U62 U63 U64 U65 U66 U67 U68 U69 U6A U6B U6C U6D U6E U6F U70 U71 U72
4.2.3 Sending Schedule YYMMDDHHmm YYMMDDHHmm ..PPP… Denotes the code for Sending schedule <,T, & > Are ASCII characters “<”,”T”& “>” n Denotes the schedule no.
4.2.4 Send Graphic Block <,G&> X n …Graphic Data … Denotes the code for Sending schedule Are ASCII characters “<”,”G” & “>” Graphic page no. , i.e. A = Graphic A B = Graphic B : P = Graphic P Graphic block (32X8 pixels) no. in a Graphic Page 1 = Block 1 2 = Block 2 : 8 = Block 8 Each Graphic Block built by 4 8x8 dots units Sequence of data is shown below.
Graphic data mapping Graphic Pixels : D0,D1,D2,…D255, Four Pixel is represented by 1 Byte. Byte 1 = D0..D3 Byte 2 = D4..D7 Byte 3 = D8..D11 : : Byte 63 = D252..256 Structure of each Data : Each Pixel composite by 2 bit MSB is the most Left Bit e.g. the first dot is RED ,the second dot is GREEN, the third dot is yellow and the forth dot is black. Data = 10 01 11 00 | | | | | | | - Black | | ----- Yellow | --------- GREEN ------------ RED After you have sent the graphic block.
Delete To Delete a Page, a Schedule or all contents 4.2.5.1 Format : <,D,L,P&> X n 4.2.5.2 Format : <,D,T &> n 4.2.5.3 Format : Delete Page Denotes the command for Delete a Line in a page Are ASCII characters “<”,”D”,”L”,”P” & “>” The Line number that will be deleted in ASCII character, i.e. 1 = Line 1 2 = Line 2 : 8 = Line 8 The Page number that will be deleted in ACSII character, i.e.
4.2.6 Assign a default Run Page Format : <,R, P &> n Denotes the command for assign a default run page, This page will be shown if no any schedule is playing Are ASCII characters “<”,”R”,”P” & “>” The Page no. that will be set as default run i.e. A B Z 4.2.7 = = : = Page Page A B Page Z Assign Display Brightness level Format : <,B &> X Denotes the command for assign Display Brightness level Are ASCII characters “<”,”B” & “>” The Brightness level.
4.2.9 Recall factory default European char table Format: denotes the command for recalling the factory default character table. are ASCII characters ‘<’, ‘D’, ‘U’, & ‘>’. Important notes: 1. For the Xor Result of the message send, Refer to Item 4.1 & 4.2 ID setting is not Xor result sent and the feedback is the ID no. All message other than ID setting should have a Xor result (2 digit from 00-FF hex number)for the data package placed before the Ending code ‘ ’. 2.