谁见过这种卡?显示启动成功,通讯时会卡一下但字没变,串口又返回值,什么问题?
本帖最后由 renzeajkd 于 2011-11-5 03:11 编辑http://pic.qnpic.com:83/r.jsp?fn=//xwtpk1/share/2011/11/5/IMGP2515.JPG
这个见过遥控屏有软件 就好搞了 需要遥控器 本帖最后由 renzeajkd 于 2011-11-6 19:16 编辑
16X128MESSAGEPROTOCOL
1 Transmission frame formats1.1 Standard transmission frame specifications and format
This section describes the basic outline of transmissions:
Baud rate:9600
Data bits:7
Start bits:1
Stop bits:2
Parity:None
Time-out period:1 second(any delays between bytes cannot exceed this)
1.2Standard transmission frame format:
<SOH>Type CodeSign Address<STX>Command CodeData Field<EOT>
ABCDEFG
Item
NameCharacterDescription
A<SOH>“]!”The <SOH> is the “Start of Header” ASCII character.TM]!
BType code“Z”A single ASCII character Z
CSign Address“00”The identifier or “address” of the sign represented by two ASCII digits as a number between “00” and “FF” (0 to 255). Address “00” is reserved as a broadcast address. 00
D<STX>“]””“Start of Text” character. <STX> always precedes a Command Code. ]”
ECommand Code“A”One ASCII character that defines the transmission and data types:AZ
FData Field
Made up of ASCII characters. The Data Field format is dependent on the preceding Command Code.
G<EOT>“]$]$”“End Of Transmission” character
1.3 Text file transmission format:
<SOH>Type CodeSign Address<STX>Command CodeData Field<EOT>
"A"FileLabelDisplay PositionMode CodeControl CodeSpecialSpecifierASCIIMessage
ABCDEFG
ItemNameDescription
ACommand Code“A”“A” (41H) = Write TEXT file
BData FieldFile LabelOne ASCII character that indicates the TEXT file being accessed. See “Appendix A: FileLabel format”. If the File Label = “0” (30H), then a Priority TEXT file will be written.
CTEXT file data formatMode Field (optional)Display PositionA single ASCII character that defines the line position on a multi-line sign:“]:” + “ “(20H)Middle Line — text centered vertically.“]:” + “““(22H)Top Line — Text begins on the top line of the sign and the sign willuse all its lines minus 1 in order to display the text. For example, a6-line sign will allow a maximum of 5 lines (6 minus 1) for the TopPosition. The Top/Bottom Line break will remain fixed until the nextMiddle or Fill position is specified.“]:” + “&” (26H) Bottom Line — The starting position of the Bottom Line(s) Immediately follows the last line of the Top Line. For example, a 6-line sign with 3 lines of text associated with the Top Line would startthe Bottom Line text on the 4th line of the sign.“]:” + “0” (30H)Fill — The sign will fill all available lines, centering the linesvertically.
DMode CodeA single ASCII character that represents a “mode” which is a way of displaying anASCII message. See “Standard Modes”
EControl codeSet the attribute of the text message
FSpecial(Only required when preceding Mode Code is “n” for SPECIAL.)
GASCII Message
The actual text to be displayed on a sign.
1.4 Appendix: ModesModes are ways of displaying information on a sign. For example, the ROTATE Mode makes text or graphics travel from right to left on a sign.1.4.1 Standard ModesWhen a Standard Mode Code of “n” (6EH) is given (see Special Modes), the following Special Modes can be designated in the Special Specifier field Standard Modes
Mode nameASCIcode Description
ROTATE“a”Message travels right to left.
HOLD“b”Message remains stationary.
FLASH“c”Message remains stationary and flashes.
ROLL UP“e”Previous message is pushed up by a new message.
ROLL DOWN“f”Previous message is pushed down by a new message.
ROLL LEFT“g”Previous message is pushed left by a new message.
ROLL RIGHT“h”Previous message is pushed right by a new message.
WIPE UP“i”New message is wiped over the previous message from bottom to top.
WIPE DOWN“jNew message is wiped over the previous message from top to bottom.
WIPE LEFT“k”New message is wiped over the previous message from right to left.
WIPE RIGHT“l”New message is wiped over the previous message from left to right.
SCROLL“m”SCROLL “m” 6DH New message line pushes the bottom line to the top line if 2-line sign.
AUTOMODE“o”AUTOMODE “o” 6FH Various Modes are called upon to display the message automatically.
ROLL IN“p”Previous message is pushed toward the center of the display by the newmessage.
ROLL OUT“q”Previous message is pushed outward from the center by the new message.
WIPE IN“r”WIPE IN “r” 72H New message is wiped over the previous message in an inward motion.
WIPE OUT“s”WIPE OUT “s” 73H New message is wiped over the previous message in an outward motion.
COMPRESSED ROTATE“t”Message travels right to left. Characters are appoximately one half theirnormal width. (Only available on certain sign models.)
SPECIAL“n”This is followed by a Special Specifier ASCII character which defines one ofthe Special Modes. See “Special Modes” .
1.4.2 Special Modes
Mode nameASCICodeDescription
TWINKLE“0”Message will twinkle on the sign.
SPARKLE“1”New message will sparkle over the current message.
SNOW“2”Message will “snow” onto the display.
INTERLOCK“3”New message will interlock over the current message in alternating rows ofdots from each end.
SWITCH“4”Alternating characters “switch” off the sign up and down. New message“switches” on in a similar manner
SLIDE“5”New message slides onto the sign one character at a time from right to left.
SPRAY“6”New message sprays across and onto the sign from right to left.
STARBURST“7”“Starbursts” explode the new message onto the sign.
1.5 Control Code:
Control CodeCharacter
Colour“]<” +Select character color (3-byte format): “1” (31H) = Red “2” (32H) = Green “3” (33H) = Amber “4” (34H) = Dim red “5” (35H) = Dim green “6” (36H) = Brown “7” (37H) = Orange “8” (38H) = Yellow
“9” (39H) = Rainbow 1 “A” (41H) = Rainbow 2 “B” (42H) = Color mix “C” (43H) = Autocolor
Pause“]” +“5”(35H) =Pause 5
“6”(36H) =Pause 4
“7”(37H) =Pause 3
“8”(38H) =Pause 2
“9”(35H) =Pause 1
“)”(29H) =No Pause
Insert Time“]” +“3”(33H) = Time
Insert NewLine“]” +“,”(2CH) = Insert a engter
Font“]:” +“A”(41H) = Sans serif 7
“B”(42H) = Sans serif 7 wide
“C”(43H) = Sans serif 7 double
“D”(44H) = Sans serif 7 d-wide
“E”(45H) = Serif 7
“F”(46H) = Serif 7 double
“G”(47H) = Serif 12
“H”(48H) = Serif 16
2 Example
2.1 Send english character.
5D 21 5A 30 30 5D 22 41 5A 5D 3B 20 63 5D 3A 42 5D 3C 38
41 42 43 44 45 46 47 5D 24 5D 24
5D 21 5A 30 30 5D 22 45 2E 20 20 5A 5D 24 5D 24
Note: User need send a command after transmit the text information.
The command is :” ]!Z00]"E.Z]$]$”
<SOH>: “]!”= <5DH 21H>
Type code: “Z”= <5AH>
Sign Address: “00”= <30H 30H>
<STX>: “]””=<5DH 22H>
Command Code: “AZ”= <41H 5AH>
Data Field: ………………………..(Any ASCII of character)
<EOT>: “]$]$”= <DAH 24H DAH 24H>
Display “Welcome”:
TM]!Z00]"AZ]<1]:A]; c]5Welcome]$]$
]!Z00]"E.Z]$]$
有协议
页:
[1]