CN104252316A - Serial packet information detecting and control method and receiver thereof - Google Patents

Serial packet information detecting and control method and receiver thereof Download PDF

Info

Publication number
CN104252316A
CN104252316A CN201310256610.3A CN201310256610A CN104252316A CN 104252316 A CN104252316 A CN 104252316A CN 201310256610 A CN201310256610 A CN 201310256610A CN 104252316 A CN104252316 A CN 104252316A
Authority
CN
China
Prior art keywords
package
packet information
header
control signal
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310256610.3A
Other languages
Chinese (zh)
Other versions
CN104252316B (en
Inventor
陈逸民
杜维盈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Novatek Microelectronics Corp
Original Assignee
Novatek Microelectronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Novatek Microelectronics Corp filed Critical Novatek Microelectronics Corp
Priority to CN201310256610.3A priority Critical patent/CN104252316B/en
Publication of CN104252316A publication Critical patent/CN104252316A/en
Application granted granted Critical
Publication of CN104252316B publication Critical patent/CN104252316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a serial packet information detecting and control method, which is used for a mobile industry processor interface. The serial packet information detecting and control method comprises the following steps: receiving and decoding a packet; generating a control signal according to packet information of a header and of the packet; disabling a function register according to the control signal.

Description

The detecting of serial packet information and control method and receiver thereof
Technical field
The present invention relates to the detecting of a kind of serial packet information and control method and receiver thereof, espespecially one can enable or disable function buffer (register) according to packet information, in real time function buffer write-in functions is closed in transmitting procedure, and avoid misdata being written to function buffer by mistake and cause display malfunction, and then strengthen the detecting of serial packet information and control method and the receiver thereof of noise resisting ability in transmitting procedure.
Background technology
Along with the development of science and technology, hand-held device, as intelligent mobile phone, personal digital assistant (Personal Digital Assistant, PDA) etc., incorporates increasing communication and display technique, to realize application function miscellaneous.In order to control various application function simultaneously, between the processor of intelligent handheld device and display panel, need a high speed processing interface, to improve volume of transmitted data, and then the function such as the image quality of lifting Display panel or touch-control.Wherein, mobile Industry Processor Interface (Mobile Industry Processor Interface, MIPI) is the High Speed Serial Transmission Interface be widely used at present.But, if run into noise in the process transmitted in data of known technology, easily the data of mistake are write in the function buffer of receiving end, and cause action abnormal.
Specifically, please refer to Fig. 1, Fig. 1 is the known schematic diagram meeting a package 10 of mobile Industry Processor Interface display serial line interface (Display Serial Interface, DSI) long package specification.As shown in Figure 1, package 10 comprises a header (header) 100, and carries data (payload) 102 and a footnote (footer) 104, wherein, header 100 includes an identification code of date (data identifier, data ID) field 106, word group counting (word count) field 108 and error correcting code (Error Correcting Code, ECC) field 110, carrying data 102 comprise data field position D 0~ D n, and footnote (footer) 104 comprises a bug check code field.
In simple terms; error correction code field 110 can the data integrity of protected data identification code field 106 and word group count area 108 and reliability; namely when a receiver receives package 10 by mobile Industry Processor Interface display serial line interface; receiver can judge whether wrong generation according to error correction code field 110; then revise or abandon the reception of package 10 further part immediately, even if therefore header 100 also can not be caused data to write by noise by mistake.
But, about carrying data 102 part, footnote 104 includes the integrality that bug check code field carries out checking to judge to carry data 102 reception, but receive at receiver in the process of carrying data 102, if carrying data 102 are disturbed, disturbed and carrying data 102 that are that make the mistake still may be written into or perform.In the case, due in the application of mobile Industry Processor Interface display serial line interface, the first stroke data field position D 0be generally a display command collection (Display Command Set, and be relevant to a display command function buffer in receiver and (be used for setting the function of display DCS), as closed display, opening display, image turning etc.) address, if therefore data field position D 0disturbed and wrong execution, may cause display function abnormal (such as closing display etc.).In view of this, real necessity having improvement of known technology.
Summary of the invention
Therefore, namely fundamental purpose of the present invention is to provide one can enable or disable function buffer according to packet information, in real time function buffer write-in functions is closed in transmitting procedure, and avoid misdata being written to function buffer by mistake and cause display malfunction, and then strengthen the detecting of serial packet information and control method and the receiver thereof of noise resisting ability in transmitting procedure.
The present invention discloses the detecting of a kind of serial packet information and control method, moves in Industry Processor Interface for one, and the detecting of this serial packet information includes with control method and receives and a package of decoding; According to a packet information of a header of this package, produce a control signal; And according to this control signal, forbid a function buffer.
The present invention also discloses a kind of receiver, moves in Industry Processor Interface for one, and this receiver includes a package decoding scheme, is used for receiving and decoding one package; One control circuit, according to a packet information of a header of this package, produces a control signal; And a functional device, according to this control signal, forbid a function buffer.
Coordinate following schemes, the detailed description of embodiment and claims at this, by address after other object of the present invention and advantage be specified in.
Accompanying drawing explanation
Fig. 1 is the known schematic diagram meeting a package of the long package specification of mobile Industry Processor Interface display serial line interface.
Fig. 2 is the schematic diagram of the embodiment of the present invention one receiver.
Fig. 3 is for detecting the schematic diagram with control flow for a serial packet information of the receiver shown in Fig. 2.
Fig. 4 is the schematic diagram of the alternate embodiment of the receiver shown in Fig. 2.
Fig. 5 is for detecting the schematic diagram with control flow for another serial packet information of the receiver shown in Fig. 2.
Fig. 6 is the detailed maps of the data identification code field shown in Fig. 1.
Wherein, description of reference numerals is as follows:
10 packages
100 headers
102 carrying data
104 footnotes
106 data identification code field
108 word group count areas
110 error correction code field
20 receivers
200 package decoding schemes
202 check circuits
204 control circuits
206 functional devices
30,50 flow processs
300 ~ 314,500 ~ 514 steps
408 storage circuits
602 pseudo channel information of identification code
604 data type information
D 0~ D ndata field position
PI packet information
CON control signal
Embodiment
Please refer to Fig. 2, Fig. 2 is the schematic diagram of the embodiment of the present invention one receiver 20.As shown in Figure 2, receiver 20 moves Industry Processor Interface (Mobile Industry Processor Interface for one, MIPI), in, package decoding scheme 200, check circuit 202, control circuit 204 and a functional device 206 is included.In simple terms, package decoding scheme 200 can receive and decoding package 10, control circuit can according to a packet information PI of a header (header) 100 of package 10, produce a control signal CON, and functional device 206 according to control signal CON, can forbid a function buffer of a display, wherein, package 10 is illustrated in figure 1 the package meeting mobile Industry Processor Interface display serial line interface (Display Serial Interface, DSI) long package specification.In the case, when packet information PI indicates package 10 not set function buffer, control signal CON can a write-in functions of deixis device 206 disable function buffer.Thus, the present invention can enable or disable function buffer according to packet information PI, in real time function buffer write-in functions is closed in transmitting procedure, and avoid misdata being written to function buffer by mistake and cause display malfunction, and then strengthen noise resisting ability in transmitting procedure.
Specifically, please refer to Fig. 3, Fig. 3 is for detecting the schematic diagram with control flow 30 for a serial packet information of the receiver 20 shown in Fig. 2.As shown in Figure 3, serial packet information detecting comprises the following steps with control flow 30:
Step 300: start.
Step 302: receive and package 10 of decoding.
Step 304: according to an error correcting code (Error Correcting Code, the ECC) field 110 of the header 100 of package 10, judge that whether the data of the header 100 of package 10 is correct.If not, then carry out step 306; If so, then carry out step 308.
Step 306: stop receiving package 10.
Step 308: count the information that (word count) field 108 captures the size of carrying data (payload) 102 of package 10 by a word group of the header 100 of package 10.
Step 310: judge whether the size of carrying data 102 is greater than a preset knowledge amount PD.If so, then carry out step 312; If not, then carry out step 314.
Step 312: disable function buffer.
Step 314: enable function buffer.
According to the detecting of serial packet information and control flow 30, package decoding scheme 200 first receives and decoding package 10, receive the header 100 of also decoding package 10 at package decoding scheme 200 after, check circuit 202 can first according to the error correction code field 110 of the header 100 of package 10, judge that whether the data of the header 100 of package 10 are correct, stop when the error in data of header 100 receiving package 10, and just continue to receive package 10 when the data of header 100 are correct, to guarantee data integrity and the reliability of data identification code field 106 and word group count area 108.
Then, control circuit 204, when the data of header 100 is correct, according to the packet information PI of the header 100 of package 10, can produce control signal CON.Specifically, control circuit 204 is when the data of header 100 are correct, the information (i.e. packet information PI) of the size of carrying data 102 of package 10 is captured by a word group count area 108 of the header 100 of package 10, then when the size carrying data 102 is less than a preset knowledge amount PD, (package 10 is used for setting the function buffer of display, as closed display, open display, image turning etc.), control circuit 204 can produce the control signal CON that deixis device 206 enables the write-in functions of function buffer, to set function buffer, and when the size carrying data 102 is greater than preset data amount PD (package 10 is used for writing the display data of display but not sets the function buffer of display), control circuit 204 can produce the control signal CON of the write-in functions of deixis device 206 disable function buffer, function buffer to be maintained the operation upgrading picture data.
In the case, even if when upgrading picture data according to package 10, the data field position D of carrying data 102 0be interfered, display only can show an erroneous point in a picture, therefore can avoid the data field position D of mistake 0write-in functions buffer causes display function abnormal.Thus, because check circuit 202 can guarantee the correctness of word group count area 108 according to error correction code field 110, therefore when the size of word group count area 108 instruction carrying data 102 corresponds to the operation upgrading picture data, in real time function buffer write-in functions can be closed, and avoid misdata being written to function buffer by mistake and cause display malfunction.
For example, in practical application due to existing mobile Industry Processor Interface display interface serial Command pattern, function buffer set and display command set (the Display Command Set to display is used at package 10, DCS) time, the size of the indicated carrying data 102 of word group count area 108 is less than 64 bytes (byte), and when package 10 is used for the display data writing display, the size of the indicated carrying data 102 of word group count area 108 is less than 320*3 byte, therefore can be supposed by above-mentioned application, the possibility (setting preset data amount PD is 320 bytes) to the setting of function buffer is not had when the size carrying data 102 is greater than 320 byte, and only can carry out the renewal showing data, therefore the write-in functions of function buffer can be forbidden, only allow the write of display data, thus can avoid carrying out being disturbed and causing function buffer by the chance performed by mistake when picture data upgrades.
It should be noted that, the main spirits of above-described embodiment is to enable or disable function buffer according to packet information PI, in real time function buffer write-in functions is closed in transmitting procedure, and avoid misdata being written to function buffer by mistake and cause display malfunction, and then strengthen noise resisting ability in transmitting procedure.Those of ordinary skill in the art when carrying out according to this modifying or changing, and are not limited thereto.For example, in the above-described embodiments, it is inner that preset data amount PD directly can be set in control circuit 204, control circuit 204 is operated according to this, but in other embodiments, preset data amount PD also can be provided by outside.As shown in Figure 4, receiver 20 also comprises a storage circuit 408, be used to provide preset data amount PD and give control circuit 204, wherein, storage circuit 408 can be any carry out setting and store Storage Media or mode store, as storer, One Time Programmable (One Time Programmable, OTP), buffer, first in first out (First In First Out, FIFO), random access memory (Random Access Memory, RAM), quick flashing (flash) storer etc.
In addition, in above-mentioned serial packet information detecting with the embodiment of control flow 30, control circuit 204 is according to the information of the size of the carrying data 102 of package 10, judge whether to set function buffer, produce corresponding control signal CON enables or disables function buffer write-in functions with deixis device 206 again, but in other embodiments, control circuit 204 also can according to other packet information PI of the header 100 of package 10, judge whether to set function buffer, produce corresponding control signal CON enables or disables function buffer write-in functions with deixis device 206 again.
For example, please refer to Fig. 5, the serial packet information detecting that Fig. 5 is the receiver 20 shown in Fig. 2 and the schematic diagram of control flow 50.As shown in Figure 5, serial packet information detecting comprises the following steps with control flow 50:
Step 500: start.
Step 502: receive and package 10 of decoding.
Step 504: according to the error correction code field 110 of the header 100 of package 10, judges that whether the data of the header 100 of package 10 is correct.If not, then carry out step 506; If so, then carry out step 508.
Step 506: stop receiving package 10.
Step 508: the data type information being captured package 10 by an identification code of date (data identifier, the data ID) field 106 of the header 100 of package 10.
Step 510: whether data type information indicates package 10 to be an image mode.If so, then carry out step 512; If not, then carry out step 514.
Step 512: disable function buffer.
Step 514: enable function buffer.
The detecting of serial packet information is detected with control flow 30 roughly the same with control flow 50 and serial packet information, same section can with reference to above-mentioned describe (i.e. step 500 ~ 506, 512 ~ 514 with step 300 ~ 306, 312 ~ 314 is identical), the detecting of serial packet information and control flow 50 and serial packet information detect the Main Differences with control flow 30, be that control circuit 204 is when the data of header 100 are correct, a data type information of carrying data 102 of package 10 is captured by the data identification code field 106 of the header 100 of package 10, then when data type information instruction package 10 is a command mode and is not an image mode, (package 10 is used for setting the function buffer of display, as closed display, open display, image turning etc.), control circuit 204 can produce the control signal CON that deixis device 206 enables the write-in functions of function buffer, to set function buffer, and data type information instruction package 10 be an image mode time (package 10 be used for write display display data but not the function buffer of display is set), control circuit 204 can produce the control signal CON of the write-in functions of deixis device 206 disable function buffer, function buffer to be maintained the operation upgrading picture data.Thus, because check circuit 202 can guarantee the correctness of data identification code field 106 according to error correction code field 110, therefore when the data type information of data identification code field 106 corresponds to the operation upgrading picture data, in real time function buffer write-in functions can be closed, and avoid misdata being written to function buffer by mistake and cause display malfunction.
For example, please refer to Fig. 6, Fig. 6 is the detailed maps of the data identification code field 106 shown in Fig. 1.As shown in Figure 6, data identification code field 106 comprises a tunnel identification code (Virtual Channel Identifier, VC) information 602 and a data type information 604, wherein, pseudo channel information of identification code 602 is 2 (bit) and data type information 604 is 6.The transport format information of data type information 604 main definitions package 10, when the encoded radio of data type information 604 be 08h to 0Fh, 10h to 17h, 19h to 1Fh, 20h, 28h and 32h to 33h time package 10 be a command mode, now package 10 can transmit the data of set-up function buffer, therefore control circuit 204 can produce the control signal CON that deixis device 206 enables the write-in functions of function buffer, to set function buffer; When the encoded radio of data type information 604 is 00h to 03h, 04h to 07h, 30h to 31h and 34h to 37h, package 10 is an image mode, now package 10 only transmits display data, and the data of set-up function buffer can not be transmitted, therefore control circuit 204 can produce the control signal CON of the write-in functions of deixis device 206 disable function buffer, upgrade the operation of picture data to be maintained by function buffer, and avoid misdata being written to function buffer by mistake and cause display malfunction.
It should be noted that, data type information 604 is relevant to the encoded radio (i.e. 00h to 03h, 04h to 07h, 30h to 31h and 34h to 37h) of image mode, directly can be set in control circuit 204 inside (as shown in Figure 2), control circuit 204 is operated according to this, but also can be provided by outside and give control circuit 204 by storage circuit 408 as shown in Figure 4.
In known technology, although footnote 104 includes the integrality that bug check code field carries out checking to judge to carry data 102 reception, receive at receiver in the process of carrying data 102, if data field position D in carrying data 102 0disturbed and wrong execution, may cause display function abnormal (such as closing display etc.).In comparison, the present invention can enable or disable function buffer according to packet information PI, in real time function buffer write-in functions is closed in transmitting procedure, and avoid misdata being written to function buffer by mistake and cause display malfunction, and then strengthen noise resisting ability in transmitting procedure.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (18)

1. serial packet information detecting and a control method, move in Industry Processor Interface for one, it is characterized in that, the detecting of this serial packet information includes with control method:
Receive and a package of decoding;
According to a packet information of a header of this package, produce a control signal; And
According to this control signal, forbid a function buffer.
2. serial packet information detecting as claimed in claim 1 and control method, it is characterized in that, this package is move Industry Processor Interface display serial line interface package.
3. serial packet information detecting as claimed in claim 1 and control method, is characterized in that, according to this control signal, forbid this function buffer step and include:
When this packet information indicates this package not set this function buffer, forbid this function buffer.
4. serial packet information detecting as claimed in claim 1 and control method, it is characterized in that, according to this packet information of this header of this package, the step producing this control signal includes:
According to an error correction code field of this header of this package, judge that whether the data of this header of this package is correct; And
When the data of this header of this package is correct, according to this packet information of this header of this package, produce this control signal.
5. serial packet information detecting as claimed in claim 1 and control method, it is characterized in that, according to this packet information of this header of this package, the step producing this control signal includes:
According to a word group count area of this header of this package, produce this control signal.
6. serial packet information detecting as claimed in claim 5 and control method, it is characterized in that, according to this control signal, the step forbidding this function buffer includes:
When this word group count area indicates the size of one of this package carrying data to be greater than a preset data amount, forbid this function buffer.
7. serial packet information detecting as claimed in claim 1 and control method, it is characterized in that, according to this packet information of this header of this package, the step producing this control signal includes:
According to a data identification code field of this header of this package, produce this control signal.
8. serial packet information detecting as claimed in claim 7 and control method, it is characterized in that, according to this control signal, the step forbidding this function buffer includes:
When a data type information of this data identification code field indicates this package to be an image mode, forbid this function buffer.
9. a receiver, moves in Industry Processor Interface for one, it is characterized in that, this receiver includes:
One package decoding scheme, is used for receiving and decoding one package;
One control circuit, according to a packet information of a header of this package, produces a control signal; And
One functional device, according to this control signal, forbids a function buffer.
10. receiver as claimed in claim 9, it is characterized in that, this package is move Industry Processor Interface display serial line interface package.
11. serial packet information detecting as claimed in claim 9 and control methods, it is characterized in that, when this packet information indicates this package not set this function buffer, this control signal indicates this functional device to forbid this function buffer.
12. receivers as claimed in claim 9, it is characterized in that, also comprise a check circuit, be used for according to an error correction code field of this header of this package, judge that whether the data of this header of this package are correct, and this control circuit is when the data of this header of this package is correct, according to this packet information of this header of this package, produce this control signal.
13. receivers as claimed in claim 9, is characterized in that, this control circuit, according to a word group count area of this header of this package, produces this control signal.
14. receivers as claimed in claim 13, is characterized in that, when this word group count area indicates the size of one of this package carrying data to be greater than a preset data amount, this control signal indicates this functional device to forbid this function buffer.
15. receivers as claimed in claim 14, is characterized in that, also comprise a storage circuit, are used to provide this preset data amount to this control circuit.
16. receivers as claimed in claim 9, is characterized in that, this control circuit, according to a data identification code field of this header of this package, produces this control signal.
17. receivers as claimed in claim 15, is characterized in that, when a data type information of this data identification code field indicates this package to be an image mode, this control signal indicates this functional device to forbid this function buffer.
18. receivers as claimed in claim 17, is characterized in that, also comprise a storage circuit, are used to provide the encoded radio of this image mode to this control circuit.
CN201310256610.3A 2013-06-25 2013-06-25 Serial packet information detecting and control method and its receiver Active CN104252316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310256610.3A CN104252316B (en) 2013-06-25 2013-06-25 Serial packet information detecting and control method and its receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310256610.3A CN104252316B (en) 2013-06-25 2013-06-25 Serial packet information detecting and control method and its receiver

Publications (2)

Publication Number Publication Date
CN104252316A true CN104252316A (en) 2014-12-31
CN104252316B CN104252316B (en) 2018-02-02

Family

ID=52187281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310256610.3A Active CN104252316B (en) 2013-06-25 2013-06-25 Serial packet information detecting and control method and its receiver

Country Status (1)

Country Link
CN (1) CN104252316B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5475808A (en) * 1991-07-09 1995-12-12 Kabushiki Kaisha Toshiba Display control apparatus
US20110156936A1 (en) * 2009-12-31 2011-06-30 Bo-Sung Kim Mobile industry processor interface
US20130010168A1 (en) * 2008-06-18 2013-01-10 Ati Technologies Ulc Graphics multi-media ic and method of its operation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5475808A (en) * 1991-07-09 1995-12-12 Kabushiki Kaisha Toshiba Display control apparatus
US20130010168A1 (en) * 2008-06-18 2013-01-10 Ati Technologies Ulc Graphics multi-media ic and method of its operation
US20110156936A1 (en) * 2009-12-31 2011-06-30 Bo-Sung Kim Mobile industry processor interface

Also Published As

Publication number Publication date
CN104252316B (en) 2018-02-02

Similar Documents

Publication Publication Date Title
KR20070076849A (en) Apparatus and method for accomplishing copy-back operation in memory card
CN102446280B (en) A kind of method of verification msg, Apparatus and system
CN103907095A (en) Mobile memory cache read optimization
US8250288B2 (en) Flash memory storage system and controller and data protection method thereof
CN110059042B (en) Data DMA transmission method of UART equipment
CN106933603B (en) Chip burning method, device and microcontroller
KR20160018987A (en) Interface circuit and packet transmission method thereof
US10992322B2 (en) Data storage system and associated method for saving storage space and eliminating data errors
CN102103558A (en) Multi-channel NANDflash controller with write retransmission function
CN104333401A (en) Methods, devices and systems for sending and receiving Bluetooth data
CN104320317A (en) Method and device for transmitting state of Ethernet physical layer chip
CN101478481A (en) Buffer management method and apparatus, data forwarding system
CN104184543A (en) Data transmission method, device and system
CN104579548A (en) Management data input/output multi source agreement-based transmission method and device
US8874989B2 (en) Memory system capable of increasing data transfer efficiency
JP2019028667A (en) Semiconductor storage device provided with wireless communication function, and writing control method
CN103389923A (en) Random access memory access bus ECC (error checking and correcting) verification device
CN104252316A (en) Serial packet information detecting and control method and receiver thereof
CN101266656B (en) Electronic tag data writing method and read/write apparatus
KR102417980B1 (en) Universal asynchronous receiver/transmitter unit and memory controller and memory system having the same
US11435999B2 (en) Method and apparatus for upgrading software
TW201501490A (en) Serial interface packet information detection and control method and receiver thereof
CN103389924A (en) ECC (Error Correction Code) storage system applied to random access memory
CN104572572A (en) Data receiving device and data sending device
CN102523451A (en) Decoding method of decoder existing by independent process in software decoding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant