Invention content
Based on this, it is necessary to be directed to frame losing problem of the existing data transfer control method in handoff procedure, provide one
Kind data transfer control method, control system and storage device.
First aspect present invention provides a kind of data transfer control method, is used for the data transmission of control electronics, electricity
Sub- equipment has major network mouth and standby network interface, includes the following steps:
By the major network mouth master data is obtained from data source;
The master data of acquisition is sent to electronic equipment to present, master data flows back to number after presentation through the standby network interface
According to source;
When standby network interface receives master data, Backup Data is obtained by the standby network interface.
Further include step in one of the embodiments,:
Abnormal signal is received, and after receiving abnormal signal, data frame is obtained from Backup Data and presented.
The presentation data that obtained from Backup Data include in one of the embodiments,:
Data frame is obtained from Backup Data;
Judge whether the data frame currently presented is equal to the abnormal data frame in master data;
If so, next frame is switched to obtains data frame presentation from master data.
Further include step in one of the embodiments,:
According to the transmission frequency of abnormal signal, it sets standby network interface to new major network mouth, former major network mouth is set as new standby
Network interface.
The data frame of the master data includes a vertical synchronization packet in one of the embodiments, when standby network interface receives
After the vertical synchronization packet of master data, control electronics obtain Backup Data by standby network interface.
Further include step in one of the embodiments,:
After standby network interface acquisition master data in preset time, if standby network interface does not receive master data, standby network interface is set as new
Major network mouth, former major network mouth are set as new standby network interface;
Master data is obtained from new major network mouth.
It is described in one of the embodiments, to include by the standby network interface acquisition Backup Data:
Backup Data is obtained from the standby network interface;Or
By the standby network interface Backup Data is obtained from data source.
In one of the embodiments, when primary traffic is through the standby network interface, the standby network interface caches master data, is formed
Buffer queue;
When obtaining Backup Data by standby network interface, Backup Data is obtained from the buffer queue.
Second aspect of the present invention provides a kind of data transfer control system, is used for the data transmission of control electronics, institute
Stating data transfer control system includes:
Major network mouth, for obtaining master data from data source;
Standby network interface, for obtaining Backup Data;
Display unit, the data frame obtained from master data or Backup Data for rendering;And
Control unit obtains data for controlling display unit by major network mouth and standby network interface;
After the presented unit of master data reaches standby network interface, described control unit obtains backup number by the standby network interface
According to.
Further include in one of the embodiments,:
Testing agency is sent to control unit, control unit for obtaining abnormal signal, and by the abnormal signal got
After receiving abnormal signal, data frame is obtained from Backup Data, and presented by the display unit.
Further include in one of the embodiments,:
Switch unit, for major network mouth to be switched to standby network interface and standby network interface is switched to major network mouth.
Above-mentioned data transfer control method and data transfer control system obtain master data by major network mouth, pass through standby net
Mouth obtains Backup Data, and two-way cascade system, the control list of electronic equipment are formed between major network mouth, control unit, standby network interface
Member just obtains Backup Data only after standby network interface receives master data from standby network interface, so master data is reached with Backup Data
The time existence time of control unit is poor, so as to avoid the packet loss problem when switching to Backup Data, while can lead to
It crosses and is switched to wrong data accidental in Backup Data correction master data.
Third aspect present invention provides a kind of storage device, a plurality of instruction of storage device stored, and described instruction is suitable for
It is loaded by processor and executes data transmission method described in any one of the above embodiments.
Specific implementation mode
To facilitate the understanding of the present invention, below with reference to relevant drawings to invention is more fully described.In attached drawing
Give the better embodiment of the present invention.But the present invention can realize in many different forms, however it is not limited to herein
Described embodiment.On the contrary, the purpose of providing these embodiments is that making to understand more the disclosure
Add thorough and comprehensive.
It should be noted that when element is referred to as " being fixed on " another element, it can be directly on another element
Or there may also be elements placed in the middle.When an element is considered as " connection " another element, it can be directly connected to
To another element or it may be simultaneously present centering elements.Term as used herein " vertical ", " horizontal ", " left side ",
" right side " and similar statement for illustrative purposes only, are not offered as being unique embodiment.
Unless otherwise defined, all of technologies and scientific terms used here by the article and belong to the technical field of the present invention
The normally understood meaning of technical staff is identical.Used term is intended merely to description tool in the description of the invention herein
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term " and or " used herein includes one or more
Any and all combinations of relevant Listed Items.
The present invention provides a kind of data transfer control method, is used for the data transmission of control electronics, and the electronics is set
Standby can be the mobile terminals such as LED display, liquid crystal display, earth station, radio, recording pen and mobile phone, PAD, transmission
Data can be video data, can also be audio data, can also be audio and video blended data.Although hereinafter, data
Transfer control method may be described as the video data transmission control method of LED display, but this should not be construed as limiting
Property, but the exemplary statement provided for the ease of elaboration technical solution.
The electronic equipment has major network mouth and a standby network interface, and by major network mouth and standby network interface connection in a data source,
Electronic equipment can obtain data by major network mouth and standby network interface from data source, and be presented by electronic equipment, illustratively,
Data source can be video sending card, when electronic equipment is LED display, LED display by major network mouth and standby network interface from
Video sending card obtains video data, and by the video data of the video data obtained from major network mouth or the acquisition of standby network interface include
On LED display.
Referring to Fig. 1, one embodiment of the invention provides a kind of data transfer control method, include the following steps:
S110:By the major network mouth master data is obtained from data source;
S120:The master data of acquisition is sent to electronic equipment to present, master data is after presentation through the standby network interface
Flow back to data source;
S130:When standby network interface receives master data, Backup Data is obtained by the standby network interface;
By taking the video data transmission of LED display as an example, LED display can be sent out by major network mouth and standby network interface with video
Card feed connects, and then the transmission of video data may be implemented.In general, the control unit of LED display passes through major network
Mouth obtains main video data from video sending card, and is shown on each babinet module of LED display, finally passes through standby
Network interface passes back to video sending card, and after standby network interface receives master data, control unit obtains backup video data from standby network interface,
After being transmitted to each babinet module of LED display, it is back to video sending card through major network mouth, in major network mouth, control unit, standby
Two-way cascade system is formed between network interface.
Specifically, control unit after major network mouth obtains main video data, according to the position of each babinet module and is divided
Resolution information, handles main video data, forms the display data with babinet module quantity equal parts, and aobvious to every part
Registration identifies by identification information the display data corresponding to itself in order to babinet module according to assigning an identification information.Babinet
Module captures a display data by identification information and is shown, the display picture of several babinet modules collectively constitutes completely
Display image.
Under normal conditions, control unit obtains video frame as presentation data, on LED display from main video data
It has been shown that, when the abnormal conditions such as packet loss, wrong packet occur for main video data, control unit obtains video frame conduct from Backup Data
Data are presented, are shown on LED display, since control unit is after standby network interface receives main video data, just from standby net
Mouth obtains backup video data, so the time of the arrival control unit of backup video data is later than main video data, to control
Unit processed having time after receiving abnormal signal carries out the switching of Backup Data, and main video data is reached with backup video data
The time difference of control unit provides buffer time for the switching of data channel so that control unit is switching to backup video counts
According to rear, frame losing phenomenon not will produce.
The data frame of the master data includes a vertical synchronization packet, when standby network interface receives the vertical synchronization packet of master data
Afterwards, control electronics obtain Backup Data by standby network interface.
The video frame of main video data includes a video vertical synchronization packet and several data packets, and wherein data packet is transferred to
Control unit is handled, and is distributed to each babinet module and shown, video vertical synchronization packet is direct after control unit
It is transmitted to standby network interface, for standby network interface after receiving video vertical synchronization packet, control unit obtains backup video counts by standby network interface
According to.
In some embodiments, described to include by the standby network interface acquisition Backup Data:
Backup Data is obtained from the standby network interface;Or
By the standby network interface Backup Data is obtained from data source.
It can directly obtain backup video data from standby network interface that control unit obtains backup video data by standby network interface,
Can also be that backup video data is obtained to video sending card by standby network interface.If desired directly backup video is obtained from standby network interface
Data are then configured with a buffer for network interface, and to cache backup video data, and lock cache data can not be read
It takes, when the video vertical synchronization packet of main video data reaches, or backup network interface is switched to the switching command arrival of major network mouth
When, the backup video data of caching is unlocked, and control unit is allowed to read.
In a specific embodiment, when primary traffic is through the standby network interface, the standby network interface caches master data, shape
At buffer queue;
When obtaining Backup Data by standby network interface, data are obtained as Backup Data from the buffer queue.
When the video vertical synchronization packet and data packet of main video data reach standby network interface, standby network interface caches main video data
In both the buffers, and buffer queue is formed, when the vertical synchronization packet of next video frame reaches standby network interface, will delayed in buffer queue
The main video data deposited is used as backup video data, controlled unit to read.
In other implementations, data cached directly to be obtained from data source.
Please continue to refer to Fig. 2, in some embodiments, the data transfer control method further includes step:
S140:Abnormal signal is received, and after receiving abnormal signal, data frame is obtained from Backup Data and presented.
The abnormal signal can be realized by a testing agency of control unit, can also be by manually triggering.When
When testing agency detects that LED display has display exception information, an abnormal signal, control unit are provided to control unit
After receiving the abnormal signal, it is switched to from backup video data and obtains data frame as the data frame presented, and be in
It is existing.The testing agency can also with one control switch connection, and control switch be pressed or touch when, testing agency active to
Control unit sends abnormal signal, to realize switching of the manual control main video data channel to backup video data channel.
Illustratively, when there are when accidental wrong data, by artificial correction, reaching and show in wrong data in main video data
It is switched to before screen from backup video data acquisition video frame and is shown, since main video data and backup video data are reached and controlled
The time of unit processed, there are a differences, so as to avoid showing wrong data on a display screen.
In some embodiments, after control unit receives abnormal signal, video frame is obtained from backup video data, and
After video frame is handled, all babinet modules for controlling LED display obtain new display data and are shown.Another
In a little embodiments, when transmitting abnormal signal to control unit, the position including babinet module is believed in abnormal signal for testing agency
Breath, to obtain video frame being switched to from backup video data, and after being handled, the babinet module of control display exception connects
New display data is received, and other babinet modules maintain the display data that display is received from main video data.
Please continue to refer to Fig. 3, in some embodiments, it is described from Backup Data obtain data frame and present include:
S141:Data frame is obtained from Backup Data, and is presented after treatment;
S143:Judge whether the data frame currently presented is equal to the abnormal data frame in master data;
S145:If so, next frame is switched to obtains data frame presentation from master data.
Control unit is switched to after receiving abnormal signal and obtains video frame from backup video data, handled
After be assigned to each babinet module and shown.Control unit when handling video frame, by currently processed video frame with cut
It is compared from the anomalous video frame of main video acquisition before changing, judges whether the two is identical, if identical, based on next frame switching
Video frame of the video frame as display is obtained in video data.It can be shown in this way to avoid using backup video data to be used as always
It cannot again be carried out the problem of error correction when data.
Further include step in some embodiments please continue to refer to Fig. 4:
S150:According to the transmission frequency of abnormal signal, it sets standby network interface to new major network mouth, former major network mouth is set as new
Standby network interface.
If within the preset time, the frequency of abnormity of main video data is more than preset value, then carries out major network mouth, standby network interface
Switching, i.e., using former standby network interface as new major network mouth, former major network mouth is as new standby network interface, due to former major network mouth, former standby network interface
Video data reach display screen time existence time it is poor, therefore not will produce packet loss problem.Those skilled in the art can manage
Solution, after the switching for carrying out major network mouth, standby network interface, control unit, which will be suspended from new standby network interface, obtains backup video counts
According to until the first frame video data that new major network mouth obtains reaches new standby network interface.
It is cut in time when can have excessive mistake in main video data by the switching of major network mouth, standby network interface
It changes, simultaneously because the time existence time that the video data of former major network mouth, former standby network interface reaches display screen is poor, with current display
Interface can accomplish smoothly to accept.
It will be appreciated by persons skilled in the art that the major network mouth is also equipped with buffer, in order to major network mouth, standby net
When switching between mouthful, major network mouth is used as standby network interface to use.
Further include step in some embodiments please continue to refer to Fig. 5:
S160:After standby network interface obtains master data preset time, if standby network interface does not receive master data, standby network interface is set as new
Major network mouth, former major network mouth is set as new standby network interface;
Master data is obtained from new major network mouth.
If standby network interface is not received by next video after the vertical synchronization packet for receiving a upper video frame in preset time
The vertical synchronization packet of frame then judges that main video data receives failure, carries out the switching of major network mouth, standby network interface, specific switching rule
It is then identical as previously described major network mouth, the standby switching law of network interface.
Above-mentioned data transfer control method obtains master data by major network mouth, Backup Data is obtained by standby network interface, in master
Two-way cascade system is formed between network interface, control unit, standby network interface, the control unit of electronic equipment is only received in standby network interface
After master data, Backup Data just is obtained from standby network interface, so in the presence of the time that master data reaches control unit with Backup Data
Between it is poor, so as to avoid the packet loss problem when switching to Backup Data, while can be corrected by being switched to Backup Data
Accidental wrong data in master data.
Please after refering to Fig. 6, one embodiment of the invention also provides a kind of data transfer control system, is used for control electronics
Data transmission, the data transfer control system includes:
Major network mouth 110, for obtaining master data from data source;
Standby network interface 120, for obtaining Backup Data;
Display unit 130, the data frame obtained from master data or Backup Data for rendering;And
Control unit 140 obtains data for controlling display unit 130 by major network mouth 110 and standby network interface 120;
After the presented unit of master data 130 reaches standby network interface 120, described control unit 140 passes through the standby network interface 120
Obtain Backup Data.
By taking the video data transmission of LED display as an example, LED display can by major network mouth 110 and standby network interface 120 with
Video sending card connects, and then the transmission of video data may be implemented.In general, the control unit 140 of LED display
Main video data is obtained from video sending card by major network mouth 110, and is shown on each babinet module of LED display
Come, finally pass back to video sending card by standby network interface 120, after standby network interface 120 receives master data, control unit 140 from
Standby network interface 120 obtains backup video data and is back to and regards through major network mouth 110 after being transmitted to each babinet module of LED display
Take place frequently card feed, and two-way cascade system is formed between major network mouth 110, control unit 140, standby network interface 120.
Specifically, control unit 140 from major network mouth 110 obtain main video data after, according to the position of each babinet module
And resolution information, main video data is handled, forms the display data with babinet module quantity equal parts, and give
Every part of display data assigns an identification information, and the display number corresponding to itself is identified by identification information in order to babinet module
According to.Babinet module captures a display data by identification information and is shown, the display picture of several babinet modules is common
The complete display image of composition.
Under normal conditions, control unit 140 obtains video frame as data are presented from main video data, is shown in LED
Screen display, when the abnormal conditions such as packet loss, wrong packet occur for main video data, control unit 140 is obtained from Backup Data and is regarded
Frequency frame is shown as data are presented on LED display, since control unit 140 is to receive main view frequency in standby network interface 120
According to rear, backup video data just is obtained from standby network interface 120, so evening time of the arrival control unit 140 of backup video data
In main video data, to the switching of the having time progress Backup Data after receiving abnormal signal of control unit 140, main view frequency
The time difference that data reach control unit 140 with backup video data provides buffer time for the switching of data channel so that
Control unit 140 not will produce frame losing phenomenon after switching to backup video data.
The data frame of the master data includes a vertical synchronization packet, when standby network interface 120 receives the vertical synchronization of master data
Bao Hou, control electronics obtain Backup Data by standby network interface.
Specifically, the video frame of main video data includes a video vertical synchronization packet and several data packets, wherein data packet
It is transferred to control unit 140 to be handled, and distributes to each babinet module and shown, video vertical synchronization packet is through control
Standby network interface 120 is directly transferred to after unit 140, for standby network interface 120 after receiving video vertical synchronization packet, control unit 140 is logical
It crosses and obtains backup video data for network interface 120.
It can directly obtain backup from standby network interface 120 that control unit 140 obtains backup video data by standby network interface 120
Video data can also be to obtain backup video data to video sending card by standby network interface 120.If desired directly from standby network interface
120 obtain backup video data, then are configured with a buffer for network interface 120, to cache backup video data, and lock
It is calmly data cached to be read, when the video vertical synchronization packet of main video data reaches, or based on the switching of backup network interface
When the switching command of network interface 110 reaches, the backup video data of caching is unlocked, and control unit 140 is allowed to read.
In a specific embodiment, when primary traffic is through the standby network interface 120, the standby caching of network interface 120 master
Data form buffer queue;
When obtaining Backup Data by standby network interface 120, data are obtained as Backup Data from the buffer queue.
When the video vertical synchronization packet and data packet of main video data reach standby network interface 120, standby network interface 120 is by main view frequency
In both the buffers according to caching, and buffer queue is formed, when the vertical synchronization packet of next video frame reaches standby network interface 120, will delayed
Depositing the main video data cached in queue is used as backup video data, controlled unit 140 to read.
In other implementations, data cached directly to be obtained from data source.
Please continue to refer to Fig. 7, further include in one of the embodiments,:
Testing agency 150 is sent to control unit 140 for obtaining abnormal signal, and by the abnormal signal got, control
Unit 140 processed obtains data frame, and presented by the display unit 130 after receiving abnormal signal from Backup Data.
The abnormal signal can be realized by a testing agency 150 of control unit 140, can also be by manually touching
Hair.When testing agency 150 detects that LED display has display exception information, an abnormal letter is provided to control unit 140
Number, control unit 140 is switched to from backup video data after receiving the abnormal signal and obtains presentation data.The detection machine
Structure 150 can also be with a control switch connection, and when control switch is pressed or touches, 150 active of testing agency is to control
Unit 140 sends abnormal signal, to realize switching of the manual control main view frequency to backup video data.Illustratively, when
There are when accidental wrong data in main video data, by artificial correction, it is switched to before wrong data is reached and is shown
Display data is obtained from backup video data to be shown, since main video data and backup video data reach control unit
140 time, there are a differences, so as to avoid showing wrong data on a display screen.
In some embodiments, after control unit 140 receives abnormal signal, video is obtained from backup video data
Frame, and after video frame is split processing, all babinet modules for controlling LED display obtain new display data and are shown
Show.In further embodiments, testing agency 150 includes case in abnormal signal when transmitting abnormal signal to control unit 140
The location information of body module, to obtain video frame being switched to from backup video data, and after carrying out dividing processing, control is shown
Show that abnormal babinet module receives new display data, and other babinet modules maintain to show that is received from main video data shows
Registration evidence.
Control unit 140 is switched to after receiving abnormal signal and obtains video frame from backup video data, located
Each babinet module is assigned to after reason to be shown.Control unit 140 is when handling video frame, by currently processed video frame
It is compared from the anomalous video frame of main video acquisition with before switching, judges whether the two is identical, if identical, next frame switching
To obtain video frame of the video frame as display in main video data.It in this way can be to avoid using backup video data conduct always
It cannot again be carried out the problem of error correction when display data.
It can directly obtain backup from standby network interface 120 that control unit 140 obtains backup video data by standby network interface 120
Video data can also be to obtain backup video data to video sending card by standby network interface 120.If desired directly from standby network interface
120 obtain backup video data, then are configured with a buffer for network interface 120, to cache backup video data, caching
Afterwards, lock cache device, when the video vertical synchronization packet of main video data reaches, or backup network interface is switched to major network mouth 110
Switching command reach when, unlock the backup video data of caching, and allow control unit 140 read.
It will be appreciated by persons skilled in the art that the major network mouth 110 is also equipped with buffer, in order to major network mouth
When 110, for the switching between network interface 120, major network mouth 110 is used as standby network interface 120.
In a specific embodiment, when primary traffic is through the standby network interface 120, the standby caching of network interface 120 master
Data form buffer queue;
When obtaining Backup Data by standby network interface 120, data are obtained as Backup Data from the buffer queue.
When the video vertical synchronization packet and data packet of main video data reach standby network interface 120, standby network interface 120 is by main view frequency
In both the buffers according to caching, and buffer queue is formed, when the vertical synchronization packet of next video frame reaches standby network interface 120, will delayed
Depositing the main video data cached in queue is used as backup video data, controlled unit 140 to read.
Please continue to refer to Fig. 8, further include in one of the embodiments,:
Switch unit 160, for major network mouth 110 to be switched to standby network interface 120 and standby network interface 120 is switched to major network mouth
110。
If within the preset time, the exception of main video data is more than preset value herein, then by major network mouth 110, standby network interface
120 switch over, i.e., regard former standby network interface 120 as new major network mouth 110, former major network mouth 110 as standby network interface 120 newly, by
The time existence time that display screen is reached in the video data of former major network mouth 110, former standby network interface 120 is poor, therefore not will produce packet loss
Problem.It will be appreciated by persons skilled in the art that after the switching for carrying out major network mouth 110, standby network interface 120, control unit 140
Pause is obtained into backup video data from new standby network interface 120, until the first frame video data that new major network mouth 110 obtains reaches
To new standby network interface 120.
By the switching of major network mouth 110, standby network interface 120, when can have excessive mistake in main video data, in time into
Row switching, simultaneously because the time existence time that the video data of former major network mouth 110, former standby network interface 120 reaches display screen is poor, with
Current display interface can be accomplished smoothly to accept.
In some embodiments, if standby network interface 120 is after the vertical synchronization packet for receiving a upper video frame, in preset time
It is not received by the vertical synchronization packet of next video frame, then judges that main video data receives failure, carries out major network mouth 110, standby net
The switching of mouth 120, specific switching law are identical as the switching law of previously described major network mouth 110, standby network interface 120.
Above-mentioned data transfer control system obtains master data by major network mouth 110, and backup number is obtained by standby network interface 120
According to forming two-way cascade system, the control unit of electronic equipment between major network mouth 110, control unit 140, standby network interface 120
140 only after standby network interface 120 receives master data, just obtain Backup Data from standby network interface 120, so master data and backup number
It is poor according to the time existence time for reaching control unit 140, so as to avoid the packet loss problem when switching to Backup Data, together
When can correct accidental wrong data in master data by being switched to Backup Data.
The present invention also provides a kind of storage device, a plurality of instruction of storage device stored, described instruction is suitable for by handling
Device loads and executes data transmission method described in any one of the above embodiments.
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, it is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.