[go: up one dir, main page]

CN109753255A - A kind of method, unit and storage medium transmitting data - Google Patents

A kind of method, unit and storage medium transmitting data Download PDF

Info

Publication number
CN109753255A
CN109753255A CN201711092129.XA CN201711092129A CN109753255A CN 109753255 A CN109753255 A CN 109753255A CN 201711092129 A CN201711092129 A CN 201711092129A CN 109753255 A CN109753255 A CN 109753255A
Authority
CN
China
Prior art keywords
color
terminal equipment
data
color information
display screen
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.)
Pending
Application number
CN201711092129.XA
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711092129.XA priority Critical patent/CN109753255A/en
Publication of CN109753255A publication Critical patent/CN109753255A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of method, terminal device and storage medium for transmitting data, the method is applied to first terminal equipment and second terminal equipment, and the first terminal equipment includes display screen;The second terminal equipment includes photographic device, the photographic device is used to acquire from extraneous information, the described method includes: first terminal equipment obtains data to be transmitted, the data to be transmitted is converted into color information, the color information is shown in the display screen, so that second terminal equipment scans display screen by the photographic device, to acquire the color information, and the data that the first terminal equipment is transmitted are restored according to the color information.By using the program, the accuracy and success rate of transmitting data can be improved.

Description

A kind of method, unit and storage medium transmitting data
Technical field
This application involves terminal and applied technical field more particularly to a kind of method for transmitting data, unit and deposit Storage media.
Background technique
The principle that planar bar code technology is realized: dense at two dimensional code, camera scanning two dimension by encrypting or being not added information Code obtains information.It can be by adopting wireless fidelity technology (full name in English: Wireless Fidelity, English abbreviation: Wi-Fi) information Two dimensional code is generated, then mobile phone obtains Wi-Fi information by scanning the two dimensional code, accesses target Wi-Fi network.As it can be seen that for For the mobile phone for possessing display screen, sweeps and sweep i.e. accessible Wi-Fi network, but there is no display screen for one but have camera Smart machine, due to be difficult be aligned two dimensional code effectively scanned, so feelings of the smart machine in misalignment two dimensional code Under condition, access network is relatively difficult.
Because camera scanning image can not user oriented intuitively present, be not easy to adjustment camera scanning Posture, thus lead to the case where being likely to occur misalignment two dimensional code, the accuracy for eventually leading to scanning is poor.
Summary of the invention
This application provides a kind of method, unit and storage mediums for transmitting data, are able to solve in the prior art The equipment of the not available display screen problem poor by the accuracy for scanning the two-dimensional code the information for obtaining other equipment transmitting.
The application first aspect provides a kind of method for transmitting data, and the method is applied to first terminal equipment and second Terminal device, the first terminal equipment includes display screen;The second terminal equipment includes photographic device, does not include display Screen, the photographic device are used to acquire from extraneous information, which comprises
The first terminal equipment obtains data to be transmitted;
The data to be transmitted is converted to color information by the first terminal equipment;
The first terminal equipment shows the color information in the display screen, so that the second terminal equipment passes through The photographic device scans the display screen, to acquire the color information, and according to color information reduction described first The data of terminal device transmission.
The application second aspect provides a kind of method for obtaining data, and the method is applied to first terminal equipment and second Terminal device, the first terminal equipment includes display screen;The second terminal equipment includes photographic device, the photographic device For acquiring from extraneous information.The described method includes:
Photographic device described in the second terminal opening of device;
The second terminal equipment scans the display screen by the photographic device, to acquire the color information;
The second terminal equipment restores the data of the first terminal equipment transmission according to the color information.
The application third aspect provides a kind of first terminal equipment, has the biography realized and correspond to the offer of above-mentioned first aspect The function of the method for delivery data.The function can also execute corresponding software realization by hardware realization by hardware. Hardware or software include one or more modules corresponding with above-mentioned function, and the module can be software and/or hardware.
In a kind of possible design, the first terminal equipment includes display screen, and the first terminal equipment includes:
Module is obtained, for obtaining data to be transmitted;
Processing module controls the display screen and shows the color for the data to be transmitted to be converted to color information Multimedia message, so that the second terminal equipment scans the display screen by the photographic device of the second terminal equipment, to adopt Collect the color information, and restores the data of the first terminal equipment transmission according to the color information.
The application fourth aspect provides a kind of second terminal equipment, has and realizes obtaining corresponding to the offer of above-mentioned second aspect The function of the method for evidence of fetching.The function can also execute corresponding software realization by hardware realization by hardware. Hardware or software include one or more modules corresponding with above-mentioned function, and the module can be software and/or hardware.
In a kind of possible design, the second terminal equipment includes:
Processing module, for opening the photographic device;
Photographic device, for scanning the display screen, to acquire the color information;
Module is obtained, for obtaining the color information from the photographic device;
Processing module is also used to restore the first terminal according to the color information that the acquisition module is got and set The data of standby transmission.
The another aspect of the application provides a kind of for transmitting the device of data comprising the processing of at least one connection Device, memory, transceiver and display screen, wherein the memory is for storing program code, and the processor is for calling institute The program code in memory is stated to execute method described in above-mentioned first aspect.
The another aspect of the application provides a kind of for obtaining the device of data comprising the processing of at least one connection Device, memory, input-output unit and camera, wherein for storing program code, the processor is used for the memory The program code in the memory is called to execute method described in above-mentioned second aspect.
The another aspect of the application provides a kind of computer storage medium comprising instruction, when it runs on computers When, so that computer executes method described in above-mentioned various aspects.
The another aspect of the application provides a kind of computer program product comprising instruction, when it runs on computers When, so that computer executes method described in above-mentioned various aspects.
Compared to the prior art, in scheme provided by the present application, data to be transmitted are converted to color by first terminal equipment Multimedia message is shown in display screen, so that the color that second terminal equipment goes scanning first terminal equipment to show by photographic device, To get corresponding data.In the embodiment of the present application, no matter second terminal equipment gets rid of alignment scanning either with or without display In the case that object or display screen failure can not be directed at the object of scanning, as long as being also able to achieve second terminal equipment can sweep It retouches display screen locally or globally, does not have to align display screens, it will be able to color information is obtained, compared to current mechanism due to not right Quasi- two dimensional code leads to not the defect of successful scan two dimensional code, and success rate, the accuracy rate of the application is higher.
Detailed description of the invention
Fig. 1 is LAN backbone schematic diagram in the embodiment of the present application;
Fig. 2 is a kind of schematic diagram that the method for data is transmitted in the embodiment of the present application;
Fig. 3 is a kind of schematic diagram that color information is converted data in the embodiment of the present application;
Fig. 4 is a kind of schematic diagram that first terminal equipment shows color in the embodiment of the present application;
Fig. 5-1 is a kind of schematic diagram that first terminal equipment shows color in the embodiment of the present application;
Fig. 5-2 is a kind of schematic diagram that first terminal equipment shows color in the embodiment of the present application;
Fig. 5-3 is a kind of schematic diagram that first terminal equipment shows color in the embodiment of the present application;
Fig. 5-4 is a kind of schematic diagram that first terminal equipment shows color in the embodiment of the present application;
Fig. 6 is a kind of schematic diagram that first terminal equipment shows color in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of color information in the embodiment of the present application;
Fig. 8 is a kind of schematic diagram of first terminal equipment in the embodiment of the present application;
Fig. 9 is a kind of schematic diagram of second terminal equipment in the embodiment of the present application;
Figure 10 is a kind of schematic diagram of first terminal equipment in the embodiment of the present application;
Figure 11 is a kind of schematic diagram of second terminal equipment in the embodiment of the present application;
Figure 12 is a kind of schematic diagram of first terminal equipment in the embodiment of the present application.
Specific embodiment
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Similar object, without being used to describe a particular order or precedence order.It should be understood that the data used in this way are in appropriate feelings It can be interchanged under condition, so that the embodiments described herein can be real with the sequence other than the content for illustrating or describing herein It applies.In addition, term " includes " and " having " and their any deformation, it is intended that cover it is non-exclusive include, for example, packet The process, method, system, product or equipment for having contained series of steps or module those of be not necessarily limited to be clearly listed step or Module, but may include other steps being not clearly listed or intrinsic for these process, methods, product or equipment or Module, the division of module appeared in the application, only a kind of division in logic can have when realizing in practical application Other division mode, such as multiple modules can be combined into or are integrated in another system, or some features can be ignored, Or do not execute, in addition, shown or discussion mutual coupling, direct-coupling or communication connection can be by one A little interfaces, the indirect coupling or communication connection between module can be electrical or other similar form, do not make in the application It limits.Also, module or submodule can be the separation that may not be physically as illustrated by the separation member, can be It can not be physical module, or can be distributed in multiple circuit modules, portion therein can be selected according to the actual needs Point or whole module realize the purpose of application scheme.
The application has supplied a kind of method, unit and storage medium for transmitting data, leads for terminal and application technology Domain.It is described in detail below.As shown in Figure 1, terminal device is successfully connected to router by Wi-Fi password, can pass through Router carries out data transmission.The Wi-Fi password can be shown the display screen in terminal device by terminal device in the form of color On, the color of the display screen display of end of scan equipment is then removed by the smart machine of outfit camera, to reach Wi- Fi password is shared with five effective display screens but has the smart machine of camera, so that the smart machine is successfully accessed the routing Device.
Wherein, it should be strongly noted that the smart machine can be terminal device, it is also possible to similar intelligent camera Head, secret, intelligent robot the equipment of degree.This application involves terminal device, user can be directed to, voice and/or data are provided The equipment of connectivity, the handheld device with wireless connecting function or other processing for being connected to radio modem are set It is standby.Wireless terminal can be through wireless access network (full name in English: Radio Access Network, English abbreviation: RAN) and one Or multiple cores net is communicated, wireless terminal can be mobile terminal, such as mobile phone (or being " honeycomb " phone) and tool There is the computer of mobile terminal, for example, it may be portable, pocket, hand-held, built-in computer or vehicle-mounted movement Device, they exchange voice and/or data with wireless access network.
Referring to figure 2., a kind of method for providing transmitting data to the application below is illustrated, the method application In first terminal equipment and second terminal equipment, the first terminal equipment includes display screen, and the second terminal equipment includes Photographic device, the photographic device are used to acquire from extraneous information, default camera shooting described in the second terminal opening of device Device.Optionally, the second terminal equipment can also include or not include display screen.The application does not limit second terminal equipment Whether whether outfit display screen or display screen show failure.The embodiment of the present application specifically includes that
201, the first terminal equipment obtains data to be transmitted.
Wherein, the data to be transmitted can be encryption or non-encrypted data, the application do not limit the source of data Fixed, which can be the data for being also possible to the generation of first terminal equipment from other equipment, such as the data to be transmitted can To be after first terminal equipment passes through Wi-Fi password couple in router, by the data of Wi-Fi password generation on interface.Or Person is the data that first terminal equipment is shared with second terminal equipment, and content the application of specific data to be transmitted is not construed as limiting.
202, the data to be transmitted is converted to color information by the first terminal equipment.
Wherein, the color information includes multiple colors, and each color in the color information is according to the number to be transmitted The arrangement that puts in order between each character in, each color correspond to a character in the data to be transmitted.
In some embodiments, following manner can be used, the data to be transmitted is converted into color information:
The first terminal equipment carries out n scale coding to the data to be transmitted, the character data after being encoded, will The character data is converted to the color information, and the color information includes RGB information.
Such as shown in Fig. 3, defining 0 indicates that 1,0 indicates green.Data of the first terminal equipment to be transmitted to second terminal equipment For Wi-Fi password: 12345678, the second terminal equipment is converted to binary data for 12345678: 01110011, 01110100 ..., then according to 0 and 1 color definition, convert color information for binary data: green red in gay colours red Red, green red red green red green and green ....
203, the first terminal equipment shows the color information in the display screen.
In some embodiments, the first terminal equipment shows the color information in the display screen, comprising:
The first terminal equipment controls the display screen, switches the color that the display screen is shown according to predeterminated frequency. By the color of regular switching display, color is accurately obtained convenient for second terminal equipment, to improve restoring data Accuracy.In addition, all of entire display screen can not be scanned even if the display screen of photographic device misalignment first terminal equipment Display area, due to showing the entire color information in batches in the embodiment of the present application, as long as in this way, photographic device scanning is arrived A part of region on display screen also can accurately identify the coloured typies that current display screen is shown.Specifically, this Shen Please embodiment mainly provide following several implementations:
(1) a kind of color is shown every time.
In some embodiments, the first terminal equipment can control the display screen according to color in the color information Color arrangement sequencing, display screen described in color of every switching shows a kind of color, up to having shown the color information In every kind of color.
Such as shown in Fig. 4, switching shows a kind of color every time, such as suitable according to the arrangement of each color in the color information Red 1 green 2 red 3, red 4 sequence is shown: ... green n.Shape, the size for being particularly shown region shared by the upper color of screen do not limit, such as can expire Screen display.
As it can be seen that since display screen only shows a kind of color every time, so getting rid of pair even if second terminal equipment is not shown The object of quasi- scanning does not have to alignment display as long as display screen can be scanned locally or globally by being also able to achieve second terminal equipment Screen, it will be able to color information is obtained, compared to current mechanism since misalignment two dimensional code leads to not successful scan two dimensional code Defect, success rate, the accuracy rate of the application are higher.
(2) two or more colors is shown every time.
In some embodiments, the first terminal equipment controls the display screen according to color in the color information Arrangement sequencing, color of every switching shows at least two colors, and at least two color shown every time According to the arrangement sequencing of color, arranged by the second end of first end to the display screen of the display screen.
For example, 2 kinds of colors are shown every time, it can be by this 2 kinds of color displays all over the screen, such as Fig. 5-1, Fig. 5-2 and Fig. 5- Shown in 3, Fig. 5-1 is shown in the way of dividing display screen equally up and down, is switched to red the 3 red 4 of next display from red 1 green 2;Fig. 5- 2 show in such a way that left and right divides display screen equally, are switched to red the 3 red 4 of next display from red 1 green 2;Fig. 5-3 is according to diagonal The mode that line divides display screen equally is shown, is switched to red the 3 red 4 of next display from red 1 green 2, and so on, it does not repeat.
Multiple regions Concurrent Display on a display screen can also be divided, such as shown in Fig. 5-4, every time when display, by two kinds Color to be shown is one group and repeats to show according to nine grids, no matter in this way, the photographic device alignment first of second terminal equipment Which part of the display screen of terminal device can get the color scheme of this display.
As it can be seen that passing through while showing multicolour, under the premise of guaranteeing the accuracy rate of transmitting information capture, further mention The efficiency of transmission of high data.
204, the second terminal equipment scans the display screen by the photographic device, to acquire the color letter Breath.
Specifically, the second terminal equipment obtains the first terminal equipment according to default by the photographic device The color that the display screen of frequency error factor is shown, and then collect the color information.
205, the second terminal equipment restores the data of the first terminal equipment transmission according to the color information.
Optionally, in some embodiments, the mode when second terminal equipment restoring data may include:
(1) the second terminal equipment calculates the rgb value of each color in the color information, according to the rgb value of color Determine corresponding coloured typies.
For example, when the rgb value of the color got meets the following conditions, it is believed that the color is red: R > 127, G≤ 127, and B≤127;When the rgb value of the color got meets the following conditions, it is believed that the color is green: R≤127, G > 127, and B≤127.
(2) the second terminal equipment obtains color sequence according to putting in order between each color in the color information.
For example, the coloured typies for each color for determining to scan according to the mode in (1), can then proceed in these Color puts in order to obtain a color sequence, as follows:
Green red in gay colours red, green red red green red green and green ...
(3) color sequence is mapped to n system by the second terminal equipment, obtains the coded sequence of n system.
For example, second terminal equipment according to it is red be 1, the green rule for being 0 will be green red in gay colours red, green red red green Red green and green ..., is mapped to binary system, obtains coded sequence: 01110011,01110100 ...
(4) coded sequence is converted to character data by the second terminal equipment, described in the character data is corresponding The data of first terminal equipment transmission.
For example, being character according to ASCII code conversion by coded sequence 01110011,01110100 ... obtained above Data: Wi-Fi:12345678.
In the embodiment of the present application, data to be transmitted are converted to color information and shown in display screen by first terminal equipment, So that the color that second terminal equipment goes scanning first terminal equipment to show by photographic device, to get corresponding number According to.In the embodiment of the present application, no matter second terminal equipment gets rid of the object or display screen failure of alignment scanning either with or without display In the case where the object that scanning can not be directed at, as long as display screen part or complete can be scanned by being also able to achieve second terminal equipment Office does not have to align display screens, it will be able to color information is obtained, compared to current mechanism since misalignment two dimensional code leads to not into The defect that function scans the two-dimensional code, success rate, the accuracy rate of the application are higher.
Optionally, in some embodiments of the present application, the first terminal equipment and the second terminal equipment may It is deployed in same physical region, then the Wi-Fi password of router is converted to color by the first terminal equipment couple in router After multimedia message, the color information is shown on a display screen.The second terminal equipment scans the display of the first terminal equipment Screen, to obtain color information, is then reduced to Wi-Fi password for color information.Second terminal equipment is further according to the Wi-Fi password Access the router.
It can be seen that user only needs the display screen by first terminal equipment close in the scene of auxiliary hardware devices Photographic device only needs photographic device to see the display screen of mobile phone, passes through without being directed at photographic device or constantly changing orientation Display screen transmits Wi-Fi password to photographic device, and second terminal equipment access Wi-Fi network can be realized.Even if second terminal The image that photographic device in equipment is scanned can not user oriented intuitively present, do not need by adjusting photographic device yet Scanning posture, in photographic device misalignment two dimensional code, second terminal equipment can accurately also scan first terminal equipment Then the color information to be transmitted decodes corresponding sequence, accuracy is very high, increases without to second terminal equipment The ancillary equipment of peripheral hardware.
Optionally, in some embodiments of the present application, the first terminal equipment carries out n scale coding to the data Later, it is described the character data is converted into the color information before, the first terminal equipment can also be in the word The first label is added in the head for according with data, in the tail portion of the character data plus the second label, obtains coded sequence.Such as scheme Coded sequence shown in 6, in color sequence red 1 green 2 red 2 red 3 red 4 ..., green n's adds Tag1 and Tag2 respectively end to end.
Then, the coded sequence is converted to the color information, the color information packet by the first terminal equipment The first color and the second color are included, first color corresponds to first label, and second color corresponds to second mark Note.
Correspondingly, scanning sequency of the terminal device according to each color in the color information, by first color And second color information corresponding to the data transmitted as the first terminal equipment of the color that receives between color.
As it can be seen that enabling to second terminal equipment quickly to identify described by the way that the first label and the second label is added Color composition in color information, and then improve the accuracy that the second terminal equipment obtains data.
Optionally, in some embodiments of the present application, it is contemplated that first terminal equipment has begun the display color Color in information, and photographic device described in second terminal equipment also access failure or the scanning function for inactive photographic device Energy.To guarantee that second terminal equipment can get complete color information, the first terminal equipment can also be periodic Repetition shows the color information.Correspondingly, the second terminal equipment can pass through described in the photographic device multiple scanning The color that one terminal device is shown, and the color information is determined from the color of multiple scanning.
It optionally, can be with quickly to define the color that second terminal equipment two-wheeled is shown convenient for second terminal equipment A time interval Δ t is set, after Δ t after first terminal equipment has shown a wheel color information, first Terminal device can carry out the operation of the display color information of the second wheel.Value the application of specific Δ t does not also limit.
It take t as the duration of a display color information, using t as a cycle such as shown in Fig. 7.First terminal Equipment can be in T1,0Start to show red 1, until arriving T1,tComplete color information of display, first terminal equipment can also continue to In T2,0Start to show red 1, until arriving T1,tComplete color information of display, and so on, the display of two-wheeled or more is carried out, Each round shows that the color information is a cycle t, and the period, t was not limited.
If after the scanning function of second terminal opening of device photographic device, the first color scanned is green 2, then after Continuous scanning, to get color in the color information, " color after green 2 ", the color sequence that scanning obtains for the first time are green 2 red 2 red 3 red 4 ... green n.
In T1,tLater, second terminal equipment continues to scan on the display screen of the first terminal equipment, available by scanning One color sequence: red 1 green 2 red 2 red 3 red 4 ... green n.The rest may be inferred, carries out the scanning of two-wheeled or more.
Then, second terminal equipment compares the color sequence that the scanning more than by two-wheeled obtains, and it is complete that you can get it The color information.
The technical characteristic that Fig. 1 in the embodiment of the present application occurs in any corresponding embodiment into Fig. 7 is similarly suitable For embodiment corresponding to Fig. 8 to Figure 10 in the application, subsequent similar place is repeated no more.
The method for transmitting data a kind of in the application is illustrated above, below to the method for executing above-mentioned transmitting data First terminal equipment, execute and obtain the second terminal equipment of method of data and be described respectively.
A kind of first terminal equipment as shown in Figure 8, the first terminal equipment includes display screen, and described device includes:
Module is obtained, for obtaining data to be transmitted;
Processing module controls the display screen and shows the color for the data to be transmitted to be converted to color information Multimedia message, so that the second terminal equipment scans the display screen by the photographic device of the second terminal equipment, to adopt Collect the color information, and restores the data of the first terminal equipment transmission according to the color information.
Optionally, the color information includes multiple colors, and each color in the color information is according to described to be transmitted The arrangement that puts in order between each character in data, each color correspond to a character in the data to be transmitted;It is described Processing module is also used to:
The display screen is controlled, switches the color that the display screen is shown according to predeterminated frequency.
In some embodiments of the present application, the processing module is specifically used for:
The display screen is controlled according to the arrangement sequencing of color in the color information, described in color of every switching Display screen shows a kind of color;
Alternatively, controlling the display screen according to the arrangement sequencing of color in the color information, color of every switching Coloured silk, at least two colors of display, and at least two color shown every time are according to the arrangement sequencing of color, by institute The second end for stating first end to the display screen of display screen arranges.
In some embodiments of the present application, the processing module is specifically used for:
N scale coding is carried out to the data to be transmitted, the character data after being encoded;
The character data is converted into the color information, the color information includes RGB information.
In some embodiments of the present application, the processing module is also used to:
The display screen is controlled periodically to repeat to show the color information.
In some embodiments of the present application, the processing module is after carrying out n scale coding to the data, by institute It states before character data is converted to the color information, is also used to:
The first label is added on the head of the character data, in the tail portion of the character data plus the second label, obtains To coded sequence;
The coded sequence is converted into the color information, the color information includes the first color and the second color, First color corresponds to first label, and second color corresponds to second label.
A kind of second terminal equipment as shown in Figure 9, the second terminal equipment include:
Processing module, for opening the photographic device;
Photographic device, for scanning the display screen, to acquire the color information;
Module is obtained, for obtaining the color information from the photographic device;
Processing module is also used to restore the first terminal according to the color information that the acquisition module is got and set The data of standby transmission.
In some embodiments of the present application, the processing module is specifically used for:
The first terminal equipment is obtained by the photographic device to show according to the display screen that predeterminated frequency switches Color, to collect the color information.
In some embodiments of the present application, the color information includes multiple colors, the colors in the color information Coloured silk corresponds in the data to be transmitted according to the arrangement that puts in order between each character in the data to be transmitted, each color A character;The processing module is specifically used for:
The rgb value for calculating each color in the color information determines corresponding coloured typies according to the rgb value of color;
According to putting in order between each color in the color information, color sequence is obtained;
The color sequence is mapped to n system, obtains the coded sequence of n system;
The coded sequence is converted into character data, the character data corresponds to the number of the first terminal equipment transmission According to.
In some embodiments of the present application, the processing module is also used to:
The color shown by first terminal equipment described in the photographic device multiple scanning;
The color information is determined from the color of multiple scanning.
In some embodiments of the present application, the color information includes the first color and the second color, first color Corresponding first label of coloured silk, second color correspond to second label, and first label is located at the first terminal equipment The head of the data of transmission, second label are located at the tail portion of the data of first terminal equipment transmission;The processing mould Block is specifically used for:
According to the scanning sequency of each color in the color information, by what is received between first color and the second color Color information corresponding to the data that color is transmitted as the first terminal equipment.
It should be noted that the corresponding entity of processing module all in the application Fig. 8, each embodiment shown in Fig. 9 Equipment can be processor.All corresponding entity devices of acquisition module can be input in Fig. 8, embodiment shown in Fig. 9 Output unit.The corresponding entity device of photographic device in embodiment shown in Fig. 9 can be camera.
Device shown in Fig. 8 can have structure as shown in Figure 10, when one of device has as shown in Figure 10 When structure, processor, display screen, input-output unit in Figure 10 realize what the Installation practice of the aforementioned correspondence device provided Processing module, display screen obtain the same or similar function of module, and the memory storage processor in Figure 10 executes above-mentioned transmitting The program code for needing to call when the method for data.
Device shown in Fig. 9 can have structure as shown in figure 11, when one of device has as shown in figure 11 When structure, processor, photographic device, input-output unit in Figure 11 realize that the Installation practice of the aforementioned correspondence device provides Processing module, camera and obtain the same or similar function of module, the memory storage processor in Figure 11 executes above-mentioned The program code for needing to call when obtaining the method for data.
The terminal device in the embodiment of the present application is described from the angle of modular functionality entity above, below from The angle of hardware handles is respectively described the terminal device in the embodiment of the present application.
The embodiment of the present application also provides another terminal devices, as shown in figure 12, for ease of description, illustrate only with The relevant part of the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The terminal Equipment can be include mobile phone, tablet computer, personal digital assistant (full name in English: Personal Digital Assistant, English abbreviation: PDA), point-of-sale terminal (full name in English: Point of Sales, English abbreviation: POS), vehicle-mounted computer etc. it is any eventually End equipment, by taking terminal device is mobile phone as an example:
Figure 12 shows the block diagram of the part-structure of mobile phone relevant to terminal device provided by the embodiments of the present application.Ginseng Figure 12 is examined, mobile phone includes: radio frequency (full name in English: Radio Frequency, English abbreviation: RF) circuit 1212, memory 1220, input unit 1230, display unit 1240, sensor 1250, voicefrequency circuit 1260, Wi-Fi module 1270, processor The components such as 1280 and power supply 1290.It will be understood by those skilled in the art that handset structure shown in Fig. 9 is not constituted pair The restriction of terminal device may include perhaps combining certain components or different components than illustrating more or fewer components Arrangement.
It is specifically introduced below with reference to each component parts of the Figure 12 to mobile phone:
RF circuit 1212 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 1280;In addition, the data for designing uplink are sent to base station.In general, RF circuit 1212 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (full name in English: Low Noise Amplifier, English abbreviation: LNA), duplexer etc..In addition, RF circuit 1212 can also by wireless communication with net Network and other equipment communication.Any communication standard or agreement can be used in above-mentioned wireless communication, and including but not limited to the whole world is mobile Communication system (full name in English: Global System for Mobile communication, English abbreviation: GSM), general point Group wireless service (full name in English: General Packet Radio Service, English abbreviation: GPRS), CDMA (English Full name: Code Division Multiple Access, English abbreviation: CDMA), wideband code division multiple access (full name in English: Wideband Code Division Multiple Access, English abbreviation: WCDMA), long term evolution (full name in English: Long Term Evolution, English abbreviation: LTE), Email, short message service (full name in English: Short Messaging Service, English abbreviation: SMS) etc..
Memory 1220 can be used for storing software program and module, and processor 1280 is stored in memory by operation 1220 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1220 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1220 may include high random access storage Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid State memory device.
Input unit 1230 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input-output unit 1230 may include touch panel 1231 and other Input-output equipment 1232.Touch panel 1231, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus attached on touch panel 231 or in touch panel 1231 Close operation), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1231 may include touching Touch two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch Bring signal is operated, touch controller is transmitted a signal to;Touch controller receives touch information from touch detecting apparatus, And it is converted into contact coordinate, then give processor 1280, and order that processor 1280 is sent can be received and executed. Furthermore, it is possible to realize touch panel 1231 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to Touch panel 1231, input unit 1230 can also include other input equipments 1232.Specifically, other input equipments 1232 can To include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick Deng one of or it is a variety of.
Display unit 1240 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1240 may include display panel 1241, optionally, can using liquid crystal display (full name in English: Liquid Crystal Display, English abbreviation: LCD), Organic Light Emitting Diode (full name in English: Organic Light- Emitting Diode, English abbreviation: OLED) etc. forms configure display panel 1241.Further, touch panel 1231 can Covering display panel 1241 sends processor to after touch panel 1231 detects touch operation on it or nearby 1280, to determine the type of touch event, are followed by subsequent processing device 1280 and are provided on display panel 1241 according to the type of touch event Corresponding visual output.Although touch panel 1231 and display panel 941 are come in fact as two independent components in Figure 12 The input and input function of existing mobile phone, but in some embodiments it is possible to touch panel 1231 and display panel 1241 are collected At and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1250, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1241, proximity sensor can close display panel when mobile phone is moved in one's ear 1241 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1260, loudspeaker 1261, microphone 1262 can provide the audio interface between user and mobile phone.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 1261, be converted by loudspeaker 1261 by circuit 1260 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1262, by voicefrequency circuit 1260 Audio data is converted to after reception, then by after the processing of audio data output processor 1280, through RF circuit 129 to be sent to such as Another mobile phone, or audio data is exported to memory 1220 to be further processed.
Wi-Fi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics by Wi-Fi module 1270 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Implement in the application In example, Wi-Fi module 1270 is necessary composed structure.In some embodiments, the receiving and transmitting signal of Wi-Fi module 1270 can also It is received and dispatched by RF circuit.
Processor 1280 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1220, and calls and be stored in memory 1220 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 1280 may include one or more processing units;Preferably, processor 1280 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1280.
Mobile phone further includes the power supply 1290 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 1280 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In the embodiment of the present application, processor 1280 included by the mobile phone also there is control to execute above by terminal device The operation of execution.
The step as performed by first terminal equipment or second terminal equipment can be based on Figure 12 institute in above-described embodiment The structure shown.
For example, terminal device shown in Figure 12 is for realizing in the embodiment of the present application when the function of first terminal equipment, figure The central processing unit 1222 in 12 can be used for executing following operation:
Data to be transmitted is obtained by input unit 1230;
The data to be transmitted is converted into color information, the display panel 1241 is controlled and shows the color information, So that the second terminal equipment scans the display screen by the photographic device of the second terminal equipment, to acquire the color Multimedia message, and the data that the first terminal equipment is transmitted are restored according to the color information.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and 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 It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or module It closes or communicates to connect, can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit realizes and that when sold or used as an independent product can store can in a computer in the form of software function module It reads in storage medium.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meter When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present application.The computer can To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website Website, computer, server or data center are transmitted.The computer readable storage medium can be computer and can deposit Any usable medium of storage either includes that the data storages such as one or more usable mediums integrated server, data center are set It is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly lead Body medium (such as solid state hard disk Solid State Disk (SSD)) etc..

Claims (19)

1. a kind of method for transmitting data, the method is applied to first terminal equipment and second terminal equipment, and described first eventually End equipment includes display screen;The second terminal equipment includes photographic device, and the photographic device is used to acquire from the external world Information, which is characterized in that the described method includes:
The first terminal equipment obtains data to be transmitted;
The data to be transmitted is converted to color information by the first terminal equipment;
The first terminal equipment shows the color information in the display screen, so that the second terminal equipment is described in Photographic device scans the display screen, to acquire the color information, and restores the first terminal according to the color information The data of equipment transmission.
2. the color is believed the method according to claim 1, wherein the color information includes multiple colors Each color in breath according to the arrangement that puts in order between each character in the data to be transmitted, each color it is corresponding it is described to Transmit a character in data;The first terminal equipment shows the color information in the display screen, comprising:
The first terminal equipment controls the display screen, switches the color that the display screen is shown according to predeterminated frequency.
3. according to the method described in claim 2, it is characterized in that, the first terminal equipment controls the display screen, according to Predeterminated frequency switches the color that the display screen is shown, comprising:
The first terminal equipment controls the display screen according to the arrangement sequencing of color in the color information, every switching Display screen described in color shows a kind of color;
Alternatively, the first terminal equipment controls the display screen according to the arrangement sequencing of color in the color information, Color of every switching shows at least two colors, and at least two color shown every time is according to the arrangement of color Sequencing is arranged by the second end of first end to the display screen of the display screen.
4. according to the method described in claim 3, it is characterized in that, the first terminal equipment converts the data to be transmitted For color information, comprising:
The first terminal equipment carries out n scale coding to the data to be transmitted, the character data after being encoded;
The character data is converted to the color information by the first terminal equipment, and the color information includes RGB information.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The first terminal equipment controls the display screen and periodically repeats to show the color information.
6. method according to claim 4 or 5, which is characterized in that after the progress n scale coding to the data, It is described the character data is converted into the color information before, the method also includes:
The first label is added on the head of the character data in the first terminal equipment, adds in the tail portion of the character data Second label, obtains coded sequence;
The character data is converted to the color information by the first terminal equipment, comprising:
The coded sequence is converted to the color information by the first terminal equipment, and the color information includes the first color With the second color, first color corresponds to first label, and second color corresponds to second label.
7. a kind of method for obtaining data, the method are applied to first terminal equipment and second terminal equipment, which is characterized in that The first terminal equipment includes display screen;The second terminal equipment includes photographic device, and the photographic device is for acquiring From extraneous information, which comprises
Photographic device described in the second terminal opening of device;
The second terminal equipment scans the display screen by the photographic device, to acquire the color information;
The second terminal equipment restores the data of the first terminal equipment transmission according to the color information.
8. the method according to the description of claim 7 is characterized in that the second terminal equipment is scanned by the photographic device The display screen, to acquire the color information, comprising:
The second terminal equipment obtains the institute that the first terminal equipment switches according to predeterminated frequency by the photographic device The color that display screen is shown is stated, to collect the color information.
9. according to the method described in claim 8, the color is believed it is characterized in that, the color information includes multiple colors Each color in breath according to the arrangement that puts in order between each character in the data to be transmitted, each color it is corresponding it is described to Transmit a character in data;The second terminal equipment restores the first terminal equipment according to the color information and transmits Data, comprising:
The second terminal equipment calculates the rgb value of each color in the color information, is determined and is corresponded to according to the rgb value of color Coloured typies;
The second terminal equipment obtains color sequence according to putting in order between each color in the color information;
The color sequence is mapped to n system by the second terminal equipment, obtains the coded sequence of n system;
The coded sequence is converted to character data by the second terminal equipment, and the character data corresponds to the first terminal The data of equipment transmission.
10. according to the method described in claim 8, it is characterized in that, the method also includes:
The color that the second terminal equipment is shown by first terminal equipment described in the photographic device multiple scanning;
The second terminal equipment determines the color information from the color of multiple scanning.
11. the method according to any one of claim 7-10, which is characterized in that the color information includes the first color With the second color, corresponding first label of first color, second color corresponds to second label, first label Positioned at the head of the data of first terminal equipment transmission, second label is located at the number of first terminal equipment transmission According to tail portion;The second terminal equipment determines the color information from the color of multiple scanning, comprising:
The terminal device according to each color in the color information scanning sequency, by first color and the second color it Between color information corresponding to the data transmitted as the first terminal equipment of the color that receives.
12. a kind of first terminal equipment, the first terminal equipment includes display screen, which is characterized in that the first terminal is set It is standby to include:
Module is obtained, for obtaining data to be transmitted;
Processing module controls the display screen and shows the color letter for the data to be transmitted to be converted to color information Breath, so that the second terminal equipment scans the display screen by the photographic device of the second terminal equipment, to acquire Color information is stated, and restores the data of the first terminal equipment transmission according to the color information.
13. first terminal equipment according to claim 12, which is characterized in that the color information includes multiple colors, Each color in the color information is according to the arrangement that puts in order between each character in the data to be transmitted, each color A character in the corresponding data to be transmitted;The processing module is also used to:
The display screen is controlled, switches the color that the display screen is shown according to predeterminated frequency.
14. first terminal equipment according to claim 13, which is characterized in that the processing module is specifically used for:
The display screen is controlled according to the arrangement sequencing of color in the color information, is shown described in color of every switching Screen shows a kind of color;
Alternatively, controlling the display screen according to the arrangement sequencing of color in the color information, color of every switching is shown At least two color for showing at least two colors, and showing every time is shown according to the arrangement sequencing of color by described The second end of the first end of display screen to the display screen arranges.
15. first terminal equipment according to claim 14, which is characterized in that the processing module is specifically used for:
N scale coding is carried out to the data to be transmitted, the character data after being encoded;
The character data is converted into the color information, the color information includes RGB information.
16. first terminal equipment according to claim 15, which is characterized in that the processing module is also used to:
The display screen is controlled periodically to repeat to show the color information.
17. first terminal equipment according to claim 15 or 16, which is characterized in that the processing module is to the number After carrying out n scale coding, before the character data is converted to the color information, it is also used to:
The first label is added on the head of the character data, in the tail portion of the character data plus the second label, is compiled Code sequence;
The coded sequence is converted into the color information, the color information includes the first color and the second color, described First color corresponds to first label, and second color corresponds to second label.
18. a kind of for transmitting the device of data, which is characterized in that described device includes:
At least one processor, memory, transceiver and display screen;
Wherein, the memory is for storing program code, and the processor is for calling the program stored in the memory Code executes the method according to claim 1 to 7.
19. a kind of computer storage medium, which is characterized in that it includes instruction, when run on a computer, so that calculating Machine executes method as claimed in claim 1.
CN201711092129.XA 2017-11-08 2017-11-08 A kind of method, unit and storage medium transmitting data Pending CN109753255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711092129.XA CN109753255A (en) 2017-11-08 2017-11-08 A kind of method, unit and storage medium transmitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711092129.XA CN109753255A (en) 2017-11-08 2017-11-08 A kind of method, unit and storage medium transmitting data

Publications (1)

Publication Number Publication Date
CN109753255A true CN109753255A (en) 2019-05-14

Family

ID=66401979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711092129.XA Pending CN109753255A (en) 2017-11-08 2017-11-08 A kind of method, unit and storage medium transmitting data

Country Status (1)

Country Link
CN (1) CN109753255A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560402A (en) * 2024-01-12 2024-02-13 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710929A (en) * 2005-07-11 2005-12-21 北京中星微电子有限公司 Data communication system and method for handheld device
CN101615929A (en) * 2008-06-27 2009-12-30 鸿富锦精密工业(深圳)有限公司 Data transmission, sending and receiving methods
CN103716652A (en) * 2014-01-10 2014-04-09 厦门市美亚柏科信息股份有限公司 Data transmission method, data transmission device and data transmission system
CN106445739A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 A data migration method and terminal equipment
CN106941378A (en) * 2017-04-17 2017-07-11 胡燕红 A kind of closely data sink and the means of communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710929A (en) * 2005-07-11 2005-12-21 北京中星微电子有限公司 Data communication system and method for handheld device
CN101615929A (en) * 2008-06-27 2009-12-30 鸿富锦精密工业(深圳)有限公司 Data transmission, sending and receiving methods
CN103716652A (en) * 2014-01-10 2014-04-09 厦门市美亚柏科信息股份有限公司 Data transmission method, data transmission device and data transmission system
CN106445739A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 A data migration method and terminal equipment
CN106941378A (en) * 2017-04-17 2017-07-11 胡燕红 A kind of closely data sink and the means of communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560402A (en) * 2024-01-12 2024-02-13 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange
CN117560402B (en) * 2024-01-12 2024-04-19 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange

Similar Documents

Publication Publication Date Title
CN104618217B (en) Share method, terminal, server and the system of resource
CN103402190B (en) Method and device for selecting network as well as terminal
CN104426963B (en) The method and terminal of associated terminal
CN107748856A (en) Two-dimensional code identification method, terminal and computer-readable recording medium
CN109547054A (en) Signal control circuit, terminal device and signal control method
CN107368518A (en) The management method and terminal of a kind of notification message, computer-readable recording medium
CN108834132B (en) Data transmission method and equipment and related medium product
CN110597793A (en) Data management method and device, electronic equipment and computer readable storage medium
CN104200211A (en) Image binaryzation method and device
CN106506554A (en) The method of live coding, device, terminal, linkage encoder server and system
CN108307529A (en) A kind of hotspot connection method and its mobile terminal
CN108965071A (en) Household terminal control method, communication processing equipment, household terminal and storage medium
CN109327581A (en) A kind of downloading switching device and mobile terminal
CN109257152A (en) A kind of resource indicating method, network side equipment and terminal
CN107977261A (en) Method, equipment, mobile terminal and the computer-readable storage medium of limiting process
CN105940368B (en) A pattern lock unlocking method and terminal
CN107330867B (en) Image synthesis method, apparatus, computer-readable storage medium, and computer device
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN110413639A (en) Data check method and device, electronic equipment and computer readable storage medium
CN109587260A (en) A kind of resource acquiring method, device and system
CN109189538A (en) Method and device for sending directional red packet
CN109544140A (en) A kind of identification code scan method, terminal and readable storage medium storing program for executing
CN109753255A (en) A kind of method, unit and storage medium transmitting data
CN108966162A (en) Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing
CN109242493A (en) Payment method and device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190514