CN104899537B - A kind of data transmission method and electronic equipment - Google Patents

A kind of data transmission method and electronic equipment Download PDF

Info

Publication number
CN104899537B
CN104899537B CN201410074832.8A CN201410074832A CN104899537B CN 104899537 B CN104899537 B CN 104899537B CN 201410074832 A CN201410074832 A CN 201410074832A CN 104899537 B CN104899537 B CN 104899537B
Authority
CN
China
Prior art keywords
electronic equipment
quick response
response code
data
display unit
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.)
Active
Application number
CN201410074832.8A
Other languages
Chinese (zh)
Other versions
CN104899537A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410074832.8A priority Critical patent/CN104899537B/en
Publication of CN104899537A publication Critical patent/CN104899537A/en
Application granted granted Critical
Publication of CN104899537B publication Critical patent/CN104899537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of data transmission methods, for providing a kind of method transmitted into row information in electric room.The method includes:When needing to second the first data of electronic equipment, the first Quick Response Code is generated according at least to first data, wherein first data carry in first Quick Response Code;It shows first Quick Response Code, so that second electronic equipment can be scanned first Quick Response Code by the second image acquisition units of second electronic equipment, obtains first Quick Response Code.The invention also discloses another information transferring method and corresponding electronic equipments.

Description

A kind of data transmission method and electronic equipment
Technical field
The present invention relates to the communications field, more particularly to a kind of data transmission method and electronic equipment.
Background technology
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and the type of electronic product is also got over Come more, people have also enjoyed the various facilities that development in science and technology is brought.Present people can be set by various types of electronics It is standby to enjoy the comfortable life brought with development in science and technology.For example, the electronic equipments such as mobile phone have become people life in one not Can or scarce part, people can reinforce with other people it in a manner of making a phone call, send short messages etc. by electronic equipments such as mobile phones Between contact.
Now, user is frequently necessary to exchange some data between two electronic equipments, and existing method is as follows:
A. using wireless transmission, two electronic equipments transmit after being matched.The shortcomings that this mode is:Two electronics are set Standby to first have to be matched, fitting through could transmit, and process is complex.And have in the environment of having network into Row, is unsatisfactory for use demand when no network.
B. USB flash disk is used.The shortcomings that this mode is:Additional hardware device must be used(USB flash disk), need sending ending equipment With corresponding hardware interface, i.e., must could be completed by additional hardware device.
C. it scans the two-dimensional code, passes through the corresponding information of the web search Quick Response Code later.The shortcomings that this mode is:It is sweeping It is still required for scanning for by network after retouching, is unsatisfactory for use demand when no network.
As it can be seen that preferable data transfer mode is there is no between two electronic equipments in the prior art.
Invention content
A kind of data transmission method of offer of the embodiment of the present invention and electronic equipment, for solving in the prior art in two electricity The technical issues of between sub- equipment without preferable data transfer mode.
A kind of data transmission method is applied to the first electronic equipment, the described method comprises the following steps:
When needing to second the first data of electronic equipment, the first two dimension is generated according at least to first data Code, wherein first data carry in first Quick Response Code;
First Quick Response Code is shown, so that second electronic equipment can pass through the second of second electronic equipment Image acquisition units are scanned first Quick Response Code, obtain first Quick Response Code.
Preferably, prior to, concurrently with, or after generating the first Quick Response Code according to first data, further include:Control institute The first electronic equipment is stated to be matched with second electronic equipment.
Preferably, control first electronic equipment is matched with second electronic equipment, including:Control described First display unit of one electronic equipment is located in the second acquisition range of second image acquisition units, and control described the First acquisition range of the first image acquisition units of one electronic equipment can cover the second display of second electronic equipment Unit.
Preferably, when needing to second the first data of electronic equipment, the is generated according at least to first data One Quick Response Code, including:When needing to second the first data of electronic equipment, according to first data and first electricity First identity information of sub- equipment generates first Quick Response Code.
Preferably, after showing first Quick Response Code, further include:
When the first data transmission finishes, judge whether the second data of transmission also in need;
If not needing second data transmitted, the second Quick Response Code is generated, is carried in second Quick Response Code useful In the data for indicating the total data end of transmission;
Second Quick Response Code is shown, so that second electronic equipment can pass through the second of second electronic equipment Image acquisition units are scanned second Quick Response Code, second Quick Response Code are obtained, so that it is determined that total data is The end of transmission.
Preferably, after showing first Quick Response Code, further include:
It is single to the second display of second electronic equipment by the first image acquisition units of first electronic equipment Member is scanned, and obtains third Quick Response Code, and the third Quick Response Code needs to retransmit first data for indicating;
According to the third Quick Response Code, first Quick Response Code is shown again.
A kind of data transmission method is applied to the second electronic equipment, the described method comprises the following steps:
The first display unit of the first electronic equipment is scanned by the second image acquisition units of second electronic equipment First Quick Response Code of upper display;The first data are at least carried in first Quick Response Code;
First Quick Response Code is parsed, first data are obtained.
Preferably, scanning the first of the first electronic equipment by the second image acquisition units of second electronic equipment Before the first Quick Response Code shown on display unit, further include:
Obtain that first electronic equipment sends be used for and first electronic equipment carries out matched prompt message;
According to the prompt message, the second display unit of control second electronic equipment is located at first electronics and sets In first acquisition range of the first standby image acquisition units, and control the second acquisition range of second image acquisition units First display unit can be covered.
Preferably, parsing first Quick Response Code, obtains first data, including:
The identification division of first Quick Response Code is parsed, first electronics carried in first Quick Response Code is obtained and sets The first standby identity information;
According to first identity information, judge whether first electronic equipment is legal;
When first electronic equipment is legal, the content part of first Quick Response Code is parsed, obtains first number According to.
Preferably, after obtaining first data, further include:
Judge whether first data are correct;
When first data are incorrect, third Quick Response Code is generated, the third Quick Response Code carries out data for indicating It retransmits;
The third Quick Response Code is shown, so that first electronic equipment can pass through the first of first electronic equipment Image acquisition units are scanned the third Quick Response Code, obtain the third Quick Response Code, to show described first again Quick Response Code.
Preferably, parsing first Quick Response Code, while obtaining first data or later, further include:
The second Quick Response Code shown on first display unit is scanned by second image acquisition units;Described The data for indicating the total data end of transmission are carried in two Quick Response Codes;
Second Quick Response Code is parsed, determines the total data end of transmission.
A kind of electronic equipment, including:
First generation unit is used for when needing to second the first data of electronic equipment, according at least to described first Data generate the first Quick Response Code, wherein first data carry in first Quick Response Code;
First display unit, for showing first Quick Response Code, so that second electronic equipment can be by described Second image acquisition units of the second electronic equipment are scanned first Quick Response Code, obtain first Quick Response Code.
Preferably, the electronic equipment further includes the first control unit, for controlling the electronic equipment and described second Electronic equipment is matched.
Preferably, first control unit is specifically used for:It controls first display unit and is located at second image In second acquisition range of collecting unit, and control the first acquisition range energy of the first image acquisition units of the electronic equipment Enough cover the second display unit of second electronic equipment.
Preferably, first generation unit is specifically used for:When needing to second the first data of electronic equipment, root First Quick Response Code is generated according to the first identity information of first data and the electronic equipment.
Preferably, the electronic equipment further includes the first judging unit, for when the first data transmission finishes, sentencing It is disconnected whether the second data of transmission also in need;
If first generation unit is additionally operable to second data for not needing to transmit, the second Quick Response Code, institute are generated State the data carried in the second Quick Response Code for indicating the total data end of transmission;
First display unit is additionally operable to show second Quick Response Code, so that second electronic equipment can pass through Second image acquisition units of second electronic equipment are scanned second Quick Response Code, obtain second two dimension Code, so that it is determined that the total data end of transmission.
Preferably, the electronic equipment further includes the first scanning element, for the first image by the electronic equipment Collecting unit is scanned the second display unit of second electronic equipment, obtains third Quick Response Code, the third two dimension Code needs to retransmit first data for indicating;
First display unit is additionally operable to, according to the third Quick Response Code, show first Quick Response Code again.
A kind of electronic equipment, including:
Second scanning element, for scanning the first electronic equipment by the second image acquisition units of the electronic equipment The first Quick Response Code shown on first display unit;The first data are at least carried in first Quick Response Code;
Resolution unit obtains first data for parsing first Quick Response Code.
Preferably, the electronic equipment further includes acquiring unit and the second control unit;
The acquiring unit is used to obtain that first electronic equipment to send is used for and first electronic equipment carries out Matched prompt message;
Second control unit is used to, according to the prompt message, control the second display unit position of the electronic equipment In in the first acquisition range of the first image acquisition units of first electronic equipment, and control the second Image Acquisition list Second acquisition range of member can cover first display unit.
Preferably, the resolution unit is specifically used for:The identification division of first Quick Response Code is parsed, obtains described first First identity information of first electronic equipment carried in Quick Response Code;According to first identity information, described is judged Whether one electronic equipment is legal;When first electronic equipment is legal, the content part of first Quick Response Code is parsed, is obtained First data.
Preferably, the electronic equipment further includes second judgment unit, third generation unit and the second display unit;
The second judgment unit is for judging whether first data are correct;
The third generation unit is used for when first data are incorrect, generation third Quick Response Code, and the described 3rd 2 It ties up code and carries out data re-transmission for indicating;
Second display unit is for showing the third Quick Response Code, so that first electronic equipment can pass through institute The first image acquisition units for stating the first electronic equipment are scanned the third Quick Response Code, obtain the third Quick Response Code, To show first Quick Response Code again.
Preferably, second scanning element is additionally operable to scan first display by second image acquisition units The second Quick Response Code shown on unit;The number for indicating the total data end of transmission is carried in second Quick Response Code According to;
The resolution unit is additionally operable to parse second Quick Response Code, determines the total data end of transmission.
In the embodiment of the present invention, directly first Quick Response Code is generated according to first data to be transmitted, described the Two electronic equipments are obtained with first data by scanning first Quick Response Code, without after scanning again by network into Row search, without by other hardware devices, can meet different use environments, realization method is relatively simple, can be real Existing property is stronger, is convenient for extensive use.
Description of the drawings
Fig. 1 is a kind of broad flow diagram of information transferring method in the embodiment of the present invention;
Fig. 2 is two matched schematic diagrames of electronic equipment in the embodiment of the present invention;
Fig. 3 is the broad flow diagram of another information transferring method in the embodiment of the present invention;
Fig. 4 is the structure diagram of the first electronic equipment in the embodiment of the present invention;
Fig. 5 is the structure diagram of the second electronic equipment in the embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention provides a kind of data transmission method, and the method can be applied to the first electronic equipment, described Method may include:When needing to second the first data of electronic equipment, first is generated according at least to first data Quick Response Code, wherein first data carry in first Quick Response Code;First Quick Response Code is shown, so that described Two electronic equipments can be scanned first Quick Response Code by the second image acquisition units of second electronic equipment, Obtain first Quick Response Code.
In the embodiment of the present invention, directly first Quick Response Code is generated according to first data to be transmitted, described the Two electronic equipments are obtained with first data by scanning first Quick Response Code, without after scanning again by network into Row search, without by other hardware devices, can meet different use environments, realization method is relatively simple, can be real Existing property is stronger, is convenient for extensive use.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In the embodiment of the present invention, the electronic equipment can be PC(Personal computer), notebook, PAD(Tablet computer)、 The different electronic equipment of mobile phone, smart television etc., the invention is not limited in this regard.
In addition, the terms "and/or", only a kind of incidence relation of description affiliated partner, indicates may exist Three kinds of relationships, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.Separately Outside, character "/" herein, it is a kind of relationship of "or" to typically represent forward-backward correlation object.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Fig. 1 is referred to, the embodiment of the present invention provides a kind of data transmission method, and the method can be applied to the first electronics Equipment.The main flow of the method is described as follows.
Step 101:When needing to second the first data of electronic equipment, the is generated according at least to first data One Quick Response Code, wherein first data carry in first Quick Response Code.
Preferably, Quick Response Code described in the embodiment of the present invention can refer to QR(Quick Response are quickly anti- It answers)Code.Compared with other Quick Response Codes, QR codes can store more abundant information, such as may include to word, URL (Uniform Resoure Locator, uniform resource locator)Address and other kinds of data encryption.Using QR codes, just Data are carried in Quick Response Code in the embodiment of the present invention.
First electronic equipment, can at least root when needing to the first data described in second electronic equipment First Quick Response Code is generated according to first data, first data carry in first Quick Response Code.Described second Electronic equipment need to only carry out first Quick Response Code parsing and can be obtained first number after scanning first Quick Response Code According to.
Preferably, in the embodiment of the present invention, before generating the first Quick Response Code according to first data while or it Afterwards, can also include:First electronic equipment is controlled to be matched with second electronic equipment.
I.e., it is possible to start transmission data after first electronic equipment is matched with second electronic equipment completion, keep away Exempt from data transmission fails.
Preferably, in the embodiment of the present invention, controls first electronic equipment and is matched with second electronic equipment, May include:The first display unit for controlling first electronic equipment is located at the second acquisition of second image acquisition units In range, and the first acquisition range of the first image acquisition units of control first electronic equipment can cover described second Second display unit of electronic equipment.
In the embodiment of the present invention, first electronic equipment is matched with second electronic equipment, can enable institute First display unit for stating the first electronic equipment is located at second image acquisition units of second electronic equipment In second acquisition range, even second acquisition range of second image acquisition units can cover described first Display unit, so that second image acquisition units can collect the information shown on first display unit, to The Quick Response Code shown on first display unit can be scanned.
And also need the first image for enabling the second display unit of second electronic equipment be located at first electronic equipment In first acquisition range of collecting unit, even first acquisition range of described first image collecting unit can cover institute The second display unit is stated, so that described first image collecting unit can collect the letter shown on second display unit Breath, so as to scan the Quick Response Code shown on second display unit.
As shown in Fig. 2, possible placement is schemed after completing matching for first electronic equipment and second electronic equipment. 1 in Fig. 2 represents first display unit of first electronic equipment, and 2 represent second display unit, and 3 represent institute The first image acquisition units are stated, 4 represent second image acquisition units.
In the embodiment of the present invention, image acquisition units for example can refer to camera.
In the embodiment of the present invention, when the camera of both sides can not continue identification since electronic equipment displacement is excessive, First electronic equipment and/or second electronic equipment can generate prompt message, such as can send out with especial sound, Prompt carries out secondary positioning.And the data in the embodiment of the present invention support breakpoint transmission, can be interrupted from last time after reposition Continue to start to transmit in place.
Preferably, in the embodiment of the present invention, when needing to second the first data of electronic equipment, according at least to described First data generate the first Quick Response Code, including:When needing to second the first data of electronic equipment, counted according to described first According to and the first identity information of first electronic equipment generate first Quick Response Code.
For each electronic equipment, the information of unique mark own identification, for example, ID can be useful for(Identity is known Not).For first electronic equipment, the information of the identity for the first electronic equipment described in unique mark is described the One identity information, first electronic equipment when generating first Quick Response Code, can according to first identity information and First data generate first Quick Response Code, in this way, second electronic equipment is after receiving first Quick Response Code, Information transmitting terminal can be verified according to first identity information first, verify whether first electronic equipment closes Method, if it is determined that first electronic equipment is legal, then obtains first data.
Preferably, if first electronic equipment is according to described in first identity information and first data generation First Quick Response Code may include then that there are two parts, respectively identification division and content part in first Quick Response Code, described Identification division is for what is generated according to first identity information, and the content part is to be generated according to first data. Second electronic equipment can first parse the identification division after receiving first data, obtain institute State the first identity information, second electronic equipment can according to first identity information to first electronic equipment whether Legal to be verified, if verification determines that first electronic equipment is legal, second electronic equipment can continue to institute It states content part to be parsed, obtains first data, it is described if verification determines that first electronic equipment is illegal Second electronic equipment can abandon first Quick Response Code, you can not parsed to the content part.In this way, both can be with Ensure the safety of electronic equipment, and operating procedure can be saved as possible.
Step 102:First Quick Response Code is shown, so that second electronic equipment can be set by second electronics The second standby image acquisition units are scanned first Quick Response Code, obtain first Quick Response Code.
After generating first Quick Response Code, first electronic equipment can show institute on first display unit The first Quick Response Code is stated, is matched because first electronic equipment is completed with second electronic equipment, second Image Acquisition Second acquisition range of unit covers first display unit, therefore second electronic equipment can be to described First Quick Response Code shown on one display unit is scanned, and obtains first Quick Response Code.Second electronic equipment After obtaining first Quick Response Code, first Quick Response Code can be parsed, obtain first data.
Further, in the embodiment of the present invention, after showing first Quick Response Code, further include:When first number When according to end of transmission, judge whether the second data of transmission also in need;If not needing second data transmitted, generate Second Quick Response Code carries the data for indicating the total data end of transmission in second Quick Response Code;Described in display Second Quick Response Code, so that second electronic equipment can be by the second image acquisition units of second electronic equipment to institute It states the second Quick Response Code to be scanned, obtains second Quick Response Code, so that it is determined that the total data end of transmission.
That is, after a data end of transmission, judge whether that also data need to transmit, if also data need to pass It is defeated, then it can continue to generate Quick Response Code according to the data to be transmitted and show, if no data need to transmit, can generate And showing second Quick Response Code, second electronic equipment is by scanning second Quick Response Code, so that it may to know whole numbers According to the end of transmission.
Preferably, if the total data end of transmission, first electronic equipment and second electronic equipment all may be used It accordingly to be prompted user, such as can be prompted with mode of vibration, or can be respectively with other different sides Formula is prompted, and knows corresponding situation in time thereby using family.
Further, in the embodiment of the present invention, after showing first Quick Response Code, further include:Pass through described first First image acquisition units of electronic equipment are scanned the second display unit of second electronic equipment, obtain the three or two Code is tieed up, the third Quick Response Code needs to retransmit first data for indicating;According to the third Quick Response Code, again Show first Quick Response Code.
Second electronic equipment parses first Quick Response Code after scanning first Quick Response Code, obtains institute State the first data.If second electronic equipment judges to determine that the first data transmission mistake, second electronics are set Standby to generate the third Quick Response Code, the third Quick Response Code transmits first data again for indicating, and described second Electronic equipment can show the third Quick Response Code, if first electronic equipment scanning is two-dimentional to the third Code, then can show first Quick Response Code, so that second electronic equipment rescans first Quick Response Code again.This Sample can ensure that data transmission is correct as possible.
Fig. 3 is referred to, the embodiment of the present invention provides a kind of data transmission method, and the method can be applied to as previously described The second electronic equipment.The main flow of the method is described as follows.
Step 301:The first of the first electronic equipment is scanned by the second image acquisition units of second electronic equipment The first Quick Response Code shown on display unit;The first data are at least carried in first Quick Response Code.
Preferably, in the embodiment of the present invention, in the second image acquisition units scanning by second electronic equipment the Before the first Quick Response Code shown on first display unit of one electronic equipment, further include:Obtain the first electronic equipment hair That send is used to carry out matched prompt message with first electronic equipment;According to the prompt message, control second electricity Second display unit of sub- equipment is located in the first acquisition range of the first image acquisition units of first electronic equipment, and First display unit can be covered by controlling the second acquisition range of second image acquisition units.
Because first electronic equipment is data sending terminal, therefore first electronic equipment can be to second electronics Equipment sends the prompt message, and second electronic equipment is prompted to be matched with first electronic equipment completion.
After first electronic equipment is matched with second electronic equipment completion, first electronic equipment can be at least First Quick Response Code is generated according to first data to be transmitted, and includes being shown described first by first Quick Response Code Show on unit.Second electronic equipment can scan first Quick Response Code.
Step 302:First Quick Response Code is parsed, first data are obtained.
Preferably, in the embodiment of the present invention, first Quick Response Code is parsed, obtains first data, including:Parsing institute The identification division of the first Quick Response Code is stated, the first identity letter of first electronic equipment carried in first Quick Response Code is obtained Breath;According to first identity information, judge whether first electronic equipment is legal;When first electronic equipment is legal When, the content part of first Quick Response Code is parsed, first data are obtained.
If first electronic equipment is illegal, second electronic equipment can abandon first Quick Response Code.
Further, in the embodiment of the present invention, after obtaining first data, further include:Judge first number According to whether correct;When first data are incorrect, third Quick Response Code is generated, the third Quick Response Code is for indicating into line number According to re-transmission;The third Quick Response Code is shown, so that first electronic equipment can pass through the first of first electronic equipment Image acquisition units are scanned the third Quick Response Code, obtain the third Quick Response Code, to show described first again Quick Response Code.
After obtaining first data, second electronic equipment may determine that whether first data are correct, because Can occur mistake in transmission process for data sometimes, the data caused are incorrect.And in general, first display Unit only sets in duration at one and shows, more than can then stop showing after the setting duration when showing a Quick Response Code.
If second electronic equipment determines that first data are incorrect, second electronic equipment can generate The third Quick Response Code, first electronic equipment is by scanning the third Quick Response Code, so that it may to show described first again Quick Response Code, to which second electronic equipment can again be scanned first Quick Response Code.
Preferably, in the embodiment of the present invention, parsing first Quick Response Code, while obtaining first data or it Afterwards, further include:The second Quick Response Code shown on first display unit is scanned by second image acquisition units;It is described The data for indicating the total data end of transmission are carried in second Quick Response Code;Second Quick Response Code is parsed, is determined The total data end of transmission.
If the end of transmission, first electronic equipment can generate second Quick Response Code to total data, and will Second Quick Response Code is shown on first display unit.Second electronic equipment is scanned to second Quick Response Code Afterwards, then the total data end of transmission can be determined.
Fig. 4 is referred to, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment may include the first generation list Member 401 and the first display unit 402.The electronic equipment can be foregoing first electronic equipment.
First generation unit 401 can be used for when needing to second the first data of electronic equipment, according at least to institute It states the first data and generates the first Quick Response Code, wherein first data carry in first Quick Response Code.
First display unit 402 is displayed for first Quick Response Code, so that second electronic equipment can lead to The second image acquisition units for crossing second electronic equipment are scanned first Quick Response Code, obtain first two dimension Code.
Preferably, in the embodiment of the present invention, the electronic equipment can also include the first control unit, described for controlling Electronic equipment is matched with second electronic equipment.
Preferably, in the embodiment of the present invention, first control unit specifically can be used for:Control the first display unit 402 are located in the second acquisition range of second image acquisition units, and control the first image of first electronic equipment First acquisition range of collecting unit can cover the second display unit of second electronic equipment.
Preferably, in the embodiment of the present invention, the first generation unit 401 specifically can be used for:When needs are set to the second electronics When the first data of standby transmission, described first is generated according to the first identity information of first data and first electronic equipment Quick Response Code.
Preferably, in the embodiment of the present invention, the electronic equipment can also include the first judging unit, for when described the When one data transmission finishes, judge whether the second data of transmission also in need;If the first generation unit 401 can be also used for not having Second data of transmission in need generate the second Quick Response Code, are carried in second Quick Response Code for indicating whole numbers According to the data of the end of transmission;First display unit 402 can be also used for showing second Quick Response Code, so that described second Electronic equipment can be scanned second Quick Response Code by the second image acquisition units of second electronic equipment, obtain Second Quick Response Code, so that it is determined that the total data end of transmission.
Preferably, in the embodiment of the present invention, the electronic equipment can also include the first scanning element, for by described First image acquisition units of electronic equipment are scanned the second display unit of second electronic equipment, obtain the three or two Code is tieed up, the third Quick Response Code needs to retransmit first data for indicating;First display unit 402 can also be used According to the third Quick Response Code, first Quick Response Code is shown again.
Fig. 5 is referred to, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment may include the second scanning list Member 501 and resolution unit 502.
Second scanning element 501 can be used for scanning the first electronics by the second image acquisition units of the electronic equipment The first Quick Response Code shown on first display unit of equipment;The first data are at least carried in first Quick Response Code.
Resolution unit 502 can be used for parsing first Quick Response Code, obtain first data.
Preferably, in the embodiment of the present invention, the electronic equipment can also include acquiring unit and the second control unit.
The acquiring unit is used to obtain that first electronic equipment to send is used for and first electronic equipment carries out Matched prompt message.
Second control unit is used to, according to the prompt message, control the second display unit position of the electronic equipment In in the first acquisition range of the first image acquisition units of first electronic equipment, and control the second Image Acquisition list Second acquisition range of member can cover first display unit.
Preferably, in the embodiment of the present invention, resolution unit 502 is specifically used for:Parse the mark part of first Quick Response Code Point, obtain the first identity information of first electronic equipment carried in first Quick Response Code;According to first identity Information judges whether first electronic equipment is legal;When first electronic equipment is legal, first Quick Response Code is parsed Content part, obtain first data.
Preferably, in the embodiment of the present invention, the electronic equipment can also include second judgment unit, third generation unit With the second display unit.
The second judgment unit is for judging whether first data are correct.
The third generation unit is used for when first data are incorrect, generation third Quick Response Code, and the described 3rd 2 It ties up code and carries out data re-transmission for indicating.
Second display unit is for showing the third Quick Response Code, so that first electronic equipment can pass through institute The first image acquisition units for stating the first electronic equipment are scanned the third Quick Response Code, obtain the third Quick Response Code, To show first Quick Response Code again.
Preferably, in the embodiment of the present invention, the second scanning element 501 is additionally operable to sweep by second image acquisition units Retouch the second Quick Response Code shown on first display unit;It is carried in second Quick Response Code for indicating total data Data through the end of transmission;Resolution unit 502 is additionally operable to parse second Quick Response Code, determines that total data has transmitted knot Beam.
The embodiment of the present invention provides a kind of data transmission method, and the method can be applied to the first electronic equipment, described Method may include:When needing to second the first data of electronic equipment, first is generated according at least to first data Quick Response Code, wherein first data carry in first Quick Response Code;First Quick Response Code is shown, so that described Two electronic equipments can be scanned first Quick Response Code by the second image acquisition units of second electronic equipment, Obtain first Quick Response Code.
In the embodiment of the present invention, directly first Quick Response Code is generated according to first data to be transmitted, described the Two electronic equipments are obtained with first data by scanning first Quick Response Code, without after scanning again by network into Row search, without by other hardware devices, can meet different use environments, realization method is relatively simple, can be real Existing property is stronger, is convenient for extensive use.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application Block is completed, i.e., the internal structure of device is divided into different function modules, to complete all or part of work(described above Energy.The specific work process of the system, apparatus, and unit of foregoing description can refer to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment(Can be personal computer, server or the network equipment etc.)Or processor(processor)It is each to execute the application The all or part of step of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD Etc. the various media that can store program code.
Specifically, the corresponding computer program instructions of a kind of data transmission method in the embodiment of the present application can be deposited It stores up on CD, hard disk, the storage mediums such as USB flash disk, when computer journey corresponding with a kind of data transmission method in storage medium Sequence instruction is read or is performed by an electronic equipment, includes the following steps:
When needing to second the first data of electronic equipment, the first two dimension is generated according at least to first data Code, wherein first data carry in first Quick Response Code;
First Quick Response Code is shown, so that second electronic equipment can pass through the second of second electronic equipment Image acquisition units are scanned first Quick Response Code, obtain first Quick Response Code.
Optionally, stored in the storage medium and step:The first Quick Response Code really is being generated according to first data, Corresponding computer instruction is specifically being performed before, in implementation procedure or after executing, and further includes:
First electronic equipment is controlled to be matched with second electronic equipment.
Optionally, stored in the storage medium and step:Control first electronic equipment and second electronics Equipment is matched, and corresponding computer instruction specifically includes during specific be performed:
The first display unit for controlling first electronic equipment is located at the second acquisition of second image acquisition units In range, and the first acquisition range of the first image acquisition units of control first electronic equipment can cover described second Second display unit of electronic equipment.
Optionally, stored in the storage medium and step:When needing to second the first data of electronic equipment, The first Quick Response Code is generated according at least to first data, corresponding computer instruction is specific to wrap during specific be performed It includes:
When needing to second the first data of electronic equipment, according to first data and first electronic equipment The first identity information generate first Quick Response Code.
Optionally, stored in the storage medium with step:Show that first Quick Response Code, corresponding computer refer to Enable it is specific be performed finish after, further include following steps:
When the first data transmission finishes, judge whether the second data of transmission also in need;
If not needing second data transmitted, the second Quick Response Code is generated, is carried in second Quick Response Code useful In the data for indicating the total data end of transmission;
Second Quick Response Code is shown, so that second electronic equipment can pass through the second of second electronic equipment Image acquisition units are scanned second Quick Response Code, second Quick Response Code are obtained, so that it is determined that total data is The end of transmission.
Optionally, stored in the storage medium with step:Show that first Quick Response Code, corresponding computer refer to Enable it is specific be performed finish after, further include following steps:
It is single to the second display of second electronic equipment by the first image acquisition units of first electronic equipment Member is scanned, and obtains third Quick Response Code, and the third Quick Response Code needs to retransmit first data for indicating;
According to the third Quick Response Code, first Quick Response Code is shown again.
When computer program instructions corresponding with another data transmission method are read by an electronic equipment in storage medium It takes or is performed, include the following steps:
The first display unit of the first electronic equipment is scanned by the second image acquisition units of second electronic equipment First Quick Response Code of upper display;The first data are at least carried in first Quick Response Code;
First Quick Response Code is parsed, first data are obtained.
Optionally, stored in the storage medium with step:It is adopted by the second image of second electronic equipment Collect the first Quick Response Code shown on the first display unit of the first electronic equipment of unit scan, corresponding computer instruction is specific It is performed before, further includes following steps:
Obtain that first electronic equipment sends be used for and first electronic equipment carries out matched prompt message;
According to the prompt message, the second display unit of control second electronic equipment is located at first electronics and sets In first acquisition range of the first standby image acquisition units, and control the second acquisition range of second image acquisition units First display unit can be covered.
Optionally, stored in the storage medium with step:First Quick Response Code is parsed, first number is obtained According to corresponding computer instruction specifically comprises the following steps during specific be performed:
The identification division of first Quick Response Code is parsed, first electronics carried in first Quick Response Code is obtained and sets The first standby identity information;
According to first identity information, judge whether first electronic equipment is legal;
When first electronic equipment is legal, the content part of first Quick Response Code is parsed, obtains first number According to.
Optionally, stored in the storage medium with step:Obtain first data, corresponding computer instruction Further include following steps after specific be performed:
Judge whether first data are correct;
When first data are incorrect, third Quick Response Code is generated, the third Quick Response Code carries out data for indicating It retransmits;
The third Quick Response Code is shown, so that first electronic equipment can pass through the first of first electronic equipment Image acquisition units are scanned the third Quick Response Code, obtain the third Quick Response Code, to show described first again Quick Response Code.
Optionally, stored in the storage medium with step:First Quick Response Code is parsed, first number is obtained According to corresponding computer instruction includes the following steps during specific be performed or after being finished:
The second Quick Response Code shown on first display unit is scanned by second image acquisition units;Described The data for indicating the total data end of transmission are carried in two Quick Response Codes;
Second Quick Response Code is parsed, determines the total data end of transmission.
The above, above example are only described in detail to the technical solution to the application, but the above implementation The explanation of example is merely used to help understand the method and its core concept of the present invention, should not be construed as limiting the invention.This In the technical scope disclosed by the present invention, the change or replacement that can be readily occurred in should all be covered those skilled in the art Within protection scope of the present invention.

Claims (18)

1. a kind of data transmission method is applied to the first electronic equipment, the described method comprises the following steps:
When needing to second the first data of electronic equipment, the first Quick Response Code is generated according at least to first data, In, first data carry in first Quick Response Code;
First Quick Response Code is shown, so that second electronic equipment can pass through the second image of second electronic equipment Collecting unit is scanned first Quick Response Code, obtains first Quick Response Code;The first of first electronic equipment is aobvious Show unit when showing a Quick Response Code, only sets in duration and show at one, more than can then stop showing after the setting duration;
After showing first Quick Response Code, further include:
By the first image acquisition units of first electronic equipment to the second display unit of second electronic equipment into Row scanning, obtains third Quick Response Code, and the third Quick Response Code needs to retransmit first data for indicating;
According to the third Quick Response Code, first Quick Response Code is shown again.
2. the method as described in claim 1, which is characterized in that before generating the first Quick Response Code according to first data, Simultaneously or after, further include:First electronic equipment is controlled to be matched with second electronic equipment.
3. method as claimed in claim 2, which is characterized in that control first electronic equipment and second electronic equipment It is matched, including:
The first display unit for controlling first electronic equipment is located at the second acquisition range of second image acquisition units It is interior, and the first acquisition range of the first image acquisition units of control first electronic equipment can cover second electronics Second display unit of equipment.
4. the method as described in claim 1, which is characterized in that when needing to second the first data of electronic equipment, until It is few to generate the first Quick Response Code according to first data, including:When needing to second the first data of electronic equipment, according to First identity information of first data and first electronic equipment generates first Quick Response Code.
5. the method as described in claim 1-4 is any, which is characterized in that after showing first Quick Response Code, further include:
When the first data transmission finishes, judge whether the second data of transmission also in need;
If not needing second data transmitted, the second Quick Response Code is generated, is carried for table in second Quick Response Code Show the data of the total data end of transmission;
Second Quick Response Code is shown, so that second electronic equipment can pass through the second image of second electronic equipment Collecting unit is scanned second Quick Response Code, second Quick Response Code is obtained, so that it is determined that total data has been transmitted Terminate.
6. a kind of data transmission method is applied to the second electronic equipment, the described method comprises the following steps:
It is scanned by the second image acquisition units of second electronic equipment and is shown on the first display unit of the first electronic equipment The first Quick Response Code shown;The first data are at least carried in first Quick Response Code;First display unit is in display one When Quick Response Code, only sets in duration and show at one, more than can then stop showing after the setting duration;
First Quick Response Code is parsed, first data are obtained;
After obtaining first data, further include:
Judge whether first data are correct;
When first data are incorrect, third Quick Response Code is generated, the third Quick Response Code carries out data re-transmission for indicating;
The third Quick Response Code is shown, so that first electronic equipment can pass through the first image of first electronic equipment Collecting unit is scanned the third Quick Response Code, obtains the third Quick Response Code, to show first two dimension again Code.
7. method as claimed in claim 6, which is characterized in that in the second Image Acquisition list by second electronic equipment Before the first Quick Response Code shown on first display unit of member the first electronic equipment of scanning, further include:
Obtain that first electronic equipment sends be used for and first electronic equipment carries out matched prompt message;
According to the prompt message, the second display unit for controlling second electronic equipment is located at first electronic equipment In first acquisition range of the first image acquisition units, and the second acquisition range of control second image acquisition units can Cover first display unit.
8. method as claimed in claim 6, which is characterized in that parsing first Quick Response Code obtains first data, packet It includes:
The identification division of first Quick Response Code is parsed, first electronic equipment carried in first Quick Response Code is obtained First identity information;
According to first identity information, judge whether first electronic equipment is legal;
When first electronic equipment is legal, the content part of first Quick Response Code is parsed, obtains first data.
9. the method as described in claim 6-8 is any, which is characterized in that parsing first Quick Response Code, obtaining described the While one data or later, further include:
The second Quick Response Code shown on first display unit is scanned by second image acquisition units;Described 2nd 2 The data for indicating the total data end of transmission are carried in dimension code;
Second Quick Response Code is parsed, determines the total data end of transmission.
10. a kind of electronic equipment, including:
First generation unit is used for when needing to second the first data of electronic equipment, according at least to first data Generate the first Quick Response Code, wherein first data carry in first Quick Response Code;
First display unit, for showing first Quick Response Code, so that second electronic equipment can pass through described second Second image acquisition units of electronic equipment are scanned first Quick Response Code, obtain first Quick Response Code;Described One display unit only sets in duration at one and shows, more than can then stop after the setting duration when showing a Quick Response Code Display;
The electronic equipment further includes the first scanning element, for the first image acquisition units by the electronic equipment to institute The second display unit for stating the second electronic equipment is scanned, and obtains third Quick Response Code, and the third Quick Response Code is needed for indicating First data are retransmitted;
First display unit is additionally operable to, according to the third Quick Response Code, show first Quick Response Code again.
11. electronic equipment as claimed in claim 10, which is characterized in that the electronic equipment further includes the first control unit, It is matched with second electronic equipment for controlling the electronic equipment.
12. electronic equipment as claimed in claim 11, which is characterized in that first control unit is specifically used for:Control institute The first display unit is stated to be located in the second acquisition range of second image acquisition units, and the control electronic equipment the First acquisition range of one image acquisition units can cover the second display unit of second electronic equipment.
13. electronic equipment as claimed in claim 10, which is characterized in that first generation unit is specifically used for:Work as needs When to second the first data of electronic equipment, generated according to the first identity information of first data and the electronic equipment First Quick Response Code.
14. the electronic equipment as described in claim 10-13 is any, which is characterized in that the electronic equipment further includes first sentencing Disconnected unit, for when the first data transmission finishes, judging whether the second data of transmission also in need;
If first generation unit is additionally operable to second data for not needing to transmit, the second Quick Response Code is generated, described the The data for indicating the total data end of transmission are carried in two Quick Response Codes;
First display unit is additionally operable to show second Quick Response Code, so that second electronic equipment can be by described Second image acquisition units of the second electronic equipment are scanned second Quick Response Code, obtain second Quick Response Code, from And determine the total data end of transmission.
15. a kind of electronic equipment, including:
Second scanning element, for scanning the first of the first electronic equipment by the second image acquisition units of the electronic equipment The first Quick Response Code shown on display unit;The first data are at least carried in first Quick Response Code;First display is single Member only sets in duration at one and shows, more than can then stop showing after the setting duration when showing a Quick Response Code;
Resolution unit obtains first data for parsing first Quick Response Code;
The electronic equipment further includes second judgment unit, third generation unit and the second display unit;
The second judgment unit is for judging whether first data are correct;
The third generation unit is used for when first data are incorrect, generates third Quick Response Code, the third Quick Response Code For indicating to carry out data re-transmission;
Second display unit is for showing the third Quick Response Code, so that first electronic equipment can pass through described the First image acquisition units of one electronic equipment are scanned the third Quick Response Code, obtain the third Quick Response Code, to Again first Quick Response Code is shown.
16. electronic equipment as claimed in claim 15, which is characterized in that the electronic equipment further includes acquiring unit and second Control unit;
The acquiring unit is used to obtain that first electronic equipment to send for being matched with first electronic equipment Prompt message;
Second control unit is used for according to the prompt message, and the second display unit for controlling the electronic equipment is located at institute In the first acquisition range for stating the first image acquisition units of the first electronic equipment, and control second image acquisition units Second acquisition range can cover first display unit.
17. electronic equipment as claimed in claim 15, which is characterized in that the resolution unit is specifically used for:Parse described The identification division of one Quick Response Code obtains the first identity information of first electronic equipment carried in first Quick Response Code; According to first identity information, judge whether first electronic equipment is legal;When first electronic equipment is legal, solution The content part of first Quick Response Code is analysed, first data are obtained.
18. the electronic equipment as described in claim 15-17 is any, which is characterized in that second scanning element is additionally operable to lead to It crosses second image acquisition units and scans the second Quick Response Code shown on first display unit;In second Quick Response Code Carry the data for indicating the total data end of transmission;
The resolution unit is additionally operable to parse second Quick Response Code, determines the total data end of transmission.
CN201410074832.8A 2014-03-03 2014-03-03 A kind of data transmission method and electronic equipment Active CN104899537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410074832.8A CN104899537B (en) 2014-03-03 2014-03-03 A kind of data transmission method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410074832.8A CN104899537B (en) 2014-03-03 2014-03-03 A kind of data transmission method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104899537A CN104899537A (en) 2015-09-09
CN104899537B true CN104899537B (en) 2018-08-07

Family

ID=54032197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410074832.8A Active CN104899537B (en) 2014-03-03 2014-03-03 A kind of data transmission method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104899537B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847301A (en) * 2016-05-31 2016-08-10 广东能龙教育股份有限公司 Non-contact information transmission method based on two-dimensional code
CN112489411B (en) * 2019-09-11 2023-06-06 珠海格力电器股份有限公司 Method and device for acquiring information of electric appliance, storage medium and processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377838A (en) * 2007-08-30 2009-03-04 北京方维银通科技有限公司 Data safety processing method
CN103347097A (en) * 2013-07-26 2013-10-09 国家电网公司 Method and system for file transmission
CN103457964A (en) * 2012-05-28 2013-12-18 联想(北京)有限公司 Synchronization method and electronic equipment
CN103544463A (en) * 2013-10-23 2014-01-29 上海动联信息技术股份有限公司 Two-way wireless data communication system and method based on two-dimensional code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377838A (en) * 2007-08-30 2009-03-04 北京方维银通科技有限公司 Data safety processing method
CN103457964A (en) * 2012-05-28 2013-12-18 联想(北京)有限公司 Synchronization method and electronic equipment
CN103347097A (en) * 2013-07-26 2013-10-09 国家电网公司 Method and system for file transmission
CN103544463A (en) * 2013-10-23 2014-01-29 上海动联信息技术股份有限公司 Two-way wireless data communication system and method based on two-dimensional code

Also Published As

Publication number Publication date
CN104899537A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN104378145B (en) The matching method and system of bluetooth equipment
CN106131057B (en) Certification based on virtual reality scenario and device
CN104796385B (en) Terminal binding method, apparatus and system
CN103533392B (en) A kind of account login method, electronic equipment and system
CN104618316B (en) Safe verification method, device and system
CN105933888B (en) A kind of eSIM card method for burn-recording and device based on NFC
CN109525540A (en) A kind of smart machine binding method and device
CN109361703A (en) Speech ciphering equipment binding method, device, equipment and computer-readable medium
CN106385403B (en) A kind of the user account register method and relevant device of self-help print equipment
CN104580376B (en) The methods, devices and systems connected between terminal are established in a local network
CN108616532A (en) Ballot processing method, apparatus and terminal device
CN102891890A (en) Interaction method and related equipment and system among terminals
CN108306938A (en) A kind of method, apparatus and gateway of Internet of Things product automatic networking
CN104899537B (en) A kind of data transmission method and electronic equipment
CN104580103A (en) Method and system of exchanging electronic identification cards
JP2005167646A5 (en)
CN106339623A (en) Login method and login device
CN110290097A (en) Processing method, device, storage medium and the electronic device of data
CN101364870A (en) System and method realizing IPTV unified authentication by gateway mode
CN105282821A (en) Terminal and method for connecting the terminal with wireless fidelity WiFi access point
CN106487818A (en) A kind of logging device, method and apparatus
CN106301529A (en) A kind of short message transmission method, server, terminal and communication system
CN105187511B (en) It is a kind of to apply the method and apparatus logged in over multiple terminals
CN105847286B (en) The acquisition methods and device of multimedia file
CN109697097B (en) Data processing method and system

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