CN106254654B - Mobile terminal and data transmission method - Google Patents

Mobile terminal and data transmission method Download PDF

Info

Publication number
CN106254654B
CN106254654B CN201610648339.1A CN201610648339A CN106254654B CN 106254654 B CN106254654 B CN 106254654B CN 201610648339 A CN201610648339 A CN 201610648339A CN 106254654 B CN106254654 B CN 106254654B
Authority
CN
China
Prior art keywords
graphic code
code
business datum
encoding
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610648339.1A
Other languages
Chinese (zh)
Other versions
CN106254654A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610648339.1A priority Critical patent/CN106254654B/en
Publication of CN106254654A publication Critical patent/CN106254654A/en
Application granted granted Critical
Publication of CN106254654B publication Critical patent/CN106254654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/07749Constructional details, e.g. mounting of circuits in the carrier the record carrier being capable of non-contact communication, e.g. constructional details of the antenna of a non-contact smart card
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The invention discloses a kind of mobile terminals, comprising: scan module, for scanning the first graphic code in selected range;Coding/decoding module, for based on default encoding and decoding rule, using the pixel of first graphic code as encoding and decoding unit, parsing to obtain the first business datum entrained by first graphic code.The invention also discloses a kind of data transmission methods.The present invention can be improved the data transmission efficiency of mobile terminal.

Description

Mobile terminal and data transmission method
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of mobile terminal and data transmission method.
Background technique
Currently, the mode that short distance data are transmitted between mobile terminal mainly has bluetooth, NFC and infrared etc..Wherein, bluetooth It is a kind of home control network communication protocol of standard, the transponder chip based on devices with low cost, transmission range is close, low-power consumption, wave band It is 2400 to 2483.5MHz, theoretical maximum transmission rate is 24Mbps, and needs to be equipped with dedicated antenna, in all-metal In use, there is also certain technical difficulty on rear shell mobile terminal;(Near Field Communication, near field are logical by NFC Letter) be a kind of short distance high frequency radio technology, run in 10 cm distances in 13.56MHz frequency, transmission rate is usual It is divided into tri- kinds of 106Kbps, 212Kbps or 424Kbps, additional antenna is equally needed with bluetooth, and needs NFC chip branch It holds;It is infrared since its transmission rate is low and directivity requirement is high, gradually no longer use.When between mobile terminal use aforementioned techniques into When row data are transmitted, generally requires to consume a large amount of time, there is a problem of that mobile terminal data transmission efficiency is lower.
Summary of the invention
The present invention provides a kind of mobile terminal and data transmission method, it is intended to improve the data transmission efficiency of mobile terminal.
For achieving the above object, the present invention provides a kind of mobile terminal, which includes:
Scan module, for scanning the first graphic code in selected range;
Coding/decoding module, for regular based on default encoding and decoding, using the pixel of first graphic code as encoding and decoding list Position, parsing obtain the first business datum entrained by first graphic code.
Optionally, when the first graphic code of scanning is multiple, the coding/decoding module is also used to according to scanning to each institute The scanning sequency of the first graphic code is stated, is successively combined into the first business datum group that each first graphic code parsed carries Result data.
Optionally, the mobile terminal further include:
Module is obtained, for obtaining the second business datum to be sent;
The coding/decoding module is also used to the pixel currently to show as encoding and decoding unit, is based on the default encoding and decoding Rule generation resolution ratio is identical with current display resolution, and carries the second graph code of second business datum;
Display module, for showing the second graph code generated, so that other terminals are in scanning to described the When two graphic codes, second business datum that the second graph code carries is gone out based on the default encoding and decoding rule parsing.
Optionally, the coding/decoding module is also used to differentiate based on the default encoding and decoding rule and the current display Rate calculates the data volume that graphic code to be generated is carried by;Be also used to judge second business datum data volume whether The data volume being carried by less than or equal to graphic code to be generated;It is also used to when the judgment result is yes, with what is currently shown Pixel is encoding and decoding unit, identical with current display resolution based on the default encoding and decoding rule generation resolution ratio, and Carry the second graph code of second business datum.
Optionally, the coding/decoding module is also used to when the judgment result is No, to take based on graphic code to be generated Second business datum is split as multiple subservice data by the data volume of band;Be also used to be with the pixel currently shown It is identical with current display resolution to generate resolution ratio based on the default encoding and decoding rule, and carries respectively for encoding and decoding unit The third graphic code of each subservice data;
The display module is also used to the fractionation sequence according to each subservice data, based on the refreshing currently shown Rate successively shows each third graphic code of generation.
In addition, for achieving the above object, the present invention also provides a kind of data transmission method, the data transmission method The following steps are included:
Scan the first graphic code in selected range;
Based on default encoding and decoding rule, using the pixel of first graphic code as encoding and decoding unit, parsing obtains described First business datum entrained by first graphic code.
Optionally, described based on default encoding and decoding rule when the first graphic code of scanning is multiple, with first figure After the step of pixel of shape code is encoding and decoding unit, parses the business datum that first graphic code carries, further includes:
The scanning sequency of each first graphic code is arrived according to scanning, successively carries each first graphic code parsed First business datum group is combined into result data.
Optionally, the data transmission method further include:
Obtain the second business datum to be sent;
Using the pixel currently shown as encoding and decoding unit, based on the default encoding and decoding rule generation resolution ratio and currently Display resolution is identical, and carries the second graph code of second business datum;
Show the second graph code generated, so that other terminals are when the second graph code is arrived in scanning, base Go out second business datum that the second graph code carries in the default encoding and decoding rule parsing.
Optionally, described using the pixel currently shown as encoding and decoding unit, it is generated based on the default encoding and decoding rule Resolution ratio is identical with current display resolution, and before the step of carrying the second graph code of second business datum, also Include:
Based on the default encoding and decoding rule and the current display resolution, calculating graphic code to be generated can be taken The data volume of band;
Judge whether the data volume of second business datum is less than or equal to the number that graphic code to be generated is carried by According to amount;
When the judgment result is yes, it is described using the pixel currently shown as encoding and decoding unit to be transferred to execution, based on described Default encoding and decoding rule generation resolution ratio is identical with current display resolution, and carries the second figure of second business datum The step of shape code.
Optionally, whether the data volume for judging second business datum is less than or equal to graphic code institute to be generated After the step of data volume that can be carried, further includes:
When the judgment result is No, the data volume being carried by based on graphic code to be generated, by the second business number According to being split as multiple subservice data;
Using the pixel currently shown as encoding and decoding unit, based on the default encoding and decoding rule generation resolution ratio and currently Display resolution is identical, and carries the third graphic code of each subservice data respectively;
According to the fractionation sequence of each subservice data, based on the refresh rate currently shown, each of generation is successively shown The third graphic code.
Mobile terminal and data transmission method proposed by the present invention, when carrying out the transmission of business datum, scanning choosing first The first graphic code in range is determined, for example, the first graphic code in the selected range is that other terminals are advised according to default encoding and decoding Then, using the pixel of its display as encoding and decoding unit, the first figure for obtaining and showing is encoded to the first business datum to be transmitted Shape code;After scanning to first graphic code, using identical default encoding and decoding rule, the pixel with the first graphic code is Encoding and decoding unit, parsing obtain the first business datum entrained by the first graphic code.Compared to the prior art, the present invention uses picture Vegetarian refreshments is as encoding and decoding unit, so that figure code distinguishability has much, the transmission channel of transmission data just has much, such as shows Resolution ratio is the terminal of 1920x1080, can possess 1920x1080=2073600 data channel.Those skilled in the art can With understanding, the number of data channel is directly proportional to data transmission efficiency, it is clear that, it is mobile eventually that the present invention can reach promotion The purpose of end data efficiency of transmission.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the electrical structure block diagram of camera in Fig. 1;
Fig. 3 is the module diagram of mobile terminal first embodiment of the present invention;
Fig. 4 is that first movement terminal scans the second mobile terminal is shown first in mobile terminal first embodiment of the present invention The exemplary diagram of graphic code;
Fig. 5 is the module diagram of mobile terminal second embodiment of the present invention;
Fig. 6 is the flow diagram of data transmission method first embodiment of the present invention;
Fig. 7 is the flow diagram of data transmission method second embodiment of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention. It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention mutually can be tied arbitrarily It closes.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, mobile terminal described in the present invention may include such as Mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), navigation device etc., it will be appreciated by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include mobile communication module 111, wireless Internet mould At least one of block 112 and virtual SIM card module 113.
Mobile communication module 111 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 112.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Virtual SIM card module 113 is for storing business datum, the business datum and information phase entrained by practical SIM card Together, whether have permission to register the network of some operator and whether have permission for controlling some user and obtain the operator Service, including but not limited to: EIC equipment identification code (IMEI), telephone number, network operator, SIM country code, simulated operation, SIM card sequence number, SIM CUSTOMER ID, SIM network type, software version, SIM voice mail label and SIM voice mail Number etc..
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 122, camera 121 is to the static images obtained in video acquisition mode or image capture mode by image capture apparatus Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.It is handled through camera 121 Picture frame afterwards can store in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110 It send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note Sound (audio data) is received via microphone in record mode, speech recognition mode etc. operational mode, and can will in this way Acoustic processing be audio data.Audio that treated (voice) data can be converted in the case where telephone calling model can The format output of mobile communication base station is sent to via mobile communication module 112.Various types of make an uproar can be implemented in microphone 122 Sound eliminates (or inhibition) algorithm to eliminate the noise or do that (or inhibition) generates during sending and receiving audio signal It disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted sensitive component), idler wheel, rocking bar with And fingerprint Identification sensor etc..Particularly, it when touch tablet is superimposed upon in the form of layer on display unit 151, can be formed Touch screen.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or Image and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include loudspeaker, buzzer etc..
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, for example, It can store the software program for realizing data transmission method of the present invention, or can temporarily store oneself and be exported or will be exported Data (for example, telephone directory, message, still image, video etc.).Moreover, memory 160 can store about when touch is applied The vibration of the various modes exported when being added to touch screen and the data of audio signal.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.Controller 180 can be with execution pattern identifying processing, will be in touch screen The handwriting input of upper execution or picture draw input and are identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
It is the electrical structure block diagram of camera in Fig. 1 referring to Fig. 2, Fig. 2.
Phtographic lens 1211 is made of the multiple optical lens for being used to form shot object image, is single-focus lens or varifocal mirror Head.Phtographic lens 1211 can move in the direction of the optical axis under the control of lens driver 1221, and lens driver 1221 According to the control signal from lens driving control circuit 1222, the focal position of phtographic lens 1211 is controlled, in zoom lens In the case of, it also can control focal length.Lens driving control circuit 1222 is according to the control command from microcomputer 1217 Carry out the drive control of lens driver 1221.
It is configured with and takes the photograph near the position of the shot object image formed on the optical axis of phtographic lens 1211, by phtographic lens 1211 Element 1212.Photographing element 1212 is for imaging shot object image and obtaining image data.On photographing element 1212 Two dimension and be arranged in a matrix the photodiode for constituting each pixel.Each photodiode generates photoelectricity corresponding with light income Switching current, the photoelectric conversion electric current carry out charge accumulation by the capacitor connecting with each photodiode.The preceding table of each pixel Face is configured with the RGB colour filter of bayer arrangement.
Photographing element 1212 is connect with imaging circuit 1213, which carries out charge in photographing element 1212 Accumulation control and picture signal read control, carry out after reducing resetting noise to the picture signal (analog picture signal) of the reading Waveform shaping, and then gain raising etc. is carried out to become signal level appropriate.Imaging circuit 1213 and A/D converter 1214 connect It connects, which carries out analog-to-digital conversion to analog picture signal, (following to 1227 output digital image signal of bus Referred to as image data).
Bus 1227 is the transmitting path for being transmitted in the various data that the inside of camera reads or generates.In bus 1227 are connected to above-mentioned A/D converter 1214, are additionally connected to image processor 1215, jpeg processor 1216, microcomputer Calculation machine 1217, SDRAM (Synchronous Dynamic random access memory, Synchronous Dynamic Random Access Memory) 1218, memory interface (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display, liquid crystal display Device) driver 1220.
Image processor 1215 carries out OB to the image data of the output based on photographing element 1212 and subtracts each other processing, white balance Adjustment, gamma conversion, colour difference signal processing, noise removal process, changes processing, edge processing etc. respectively at color matrix operation simultaneously Kind image procossing.Jpeg processor 1216 is when by Imagery Data Recording in recording medium 1225, according to JPEG compression mode pressure Contract the image data read from SDRAM1218.In addition, jpeg processor 1216 shows to carry out image reproducing and carries out JPEG The decompression of image data.When unziping it, the file being recorded in recording medium 1225 is read, in jpeg processor 1216 In implement decompression after, the image data of decompression is temporarily stored in SDRAM1218 and is carried out on LCD1226 Display.In addition, in the present embodiment, as compression of images decompression mode using JPEG mode, however Compress softwares Contracting mode is without being limited thereto, it is of course possible to using MPEG, TIFF, other compressed and decompressed modes such as H.264.
Microcomputer 1217 plays the function of the control unit as camera entirety, is uniformly controlled the various processing of camera Sequence.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but is not limited to physical button or virtual key, and the entity or virtual key can be electricity Source button, camera button, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, delete button, The operational controls such as the various input buttons such as large buttons and various enter keys, detect the mode of operation of these operational controls,.
It will test result to export to microcomputer 1217.In addition, the front surface in the LCD1226 as display is equipped with Touch panel detects the touch location of user, which is exported to microcomputer 1217.Microcomputer 1217 According to the testing result of the operating position from operating unit 1223, various processing sequences corresponding with the operation of user are executed.
Flash memory 1224 stores the program for executing the various processing sequences of microcomputer 1217.Microcomputer 1217 The control of camera entirety is carried out according to the program.In addition, flash memory 1224 stores the various adjusted values of camera, microcomputer 1217 Adjusted value is read, the control of camera is carried out according to the adjusted value.
SDRAM1218 be for image data etc. temporarily stored can electricity rewrite volatile memory.It should SDRAM1218 temporarily stores the image data exported from A/D converter 1214 and in image processor 1215, jpeg processor 1216 it is equal in the image data that carried out that treated.
Memory interface 1219 is connect with recording medium 1225, is carried out image data and the text being attached in image data First-class control data write-in recording medium 1225 and read from recording medium 1225 of part.Recording medium 1225 is, for example, can The recording mediums such as memory card of disassembled and assembled freely on camera main-body, however it is without being limited thereto, it is also possible to be built in camera main-body In hard disk etc..
LCD driver 1220 is connect with LCD1226, will treated that image data is stored in by image processor 1215 SDRAM1218 when needing to show, reads the image data of SDRAM1218 storage and shows on LCD1226, alternatively, at JPEG The compressed image data of reason device 1216 is stored in SDRAM1218, and when needing to show, jpeg processor 1216 is read The compressed image data of SDRAM1218, then unzip it, the image data after decompression is carried out by LCD1226 Display.
LCD1226 configuration performs image display at the back side of camera main-body.The LCD1226LCD), however it is without being limited thereto, The various display panels (LCD1226) such as organic EL can be used, however it is without being limited thereto, it can also be using various displays such as organic EL Panel.
Electrical structure schematic diagram based on above-mentioned mobile terminal hardware configuration and camera proposes mobile terminal of the present invention Each embodiment.
Referring to Fig. 3, in the first embodiment of mobile terminal of the present invention, which includes:
Scan module 10, for scanning the first graphic code in selected range;
It should be noted that in embodiments of the present invention, the first graphic code selected in range includes other terminal displays The first graphic code, wherein other terminals can also be able to be multiple for one, for example, terminal A shows left the half of the first graphic code Part, terminal B show the right half part of the first graphic code;In another example terminal A shows complete first graphic code.Below with this The mobile terminal that invention provides is first movement terminal, and other terminals are that the second mobile terminal is illustrated.
In the present embodiment, first movement terminal is provided with business data transmission interface, which sets It is equipped with scanning control.Wherein, when first movement terminal detects the point touching operation based on the triggering of aforementioned scanning control, the One mobile terminal will switch to scanning interface.When switching to scanning interface, first movement terminal starts camera shown in FIG. 1 121 acquisition images, and Overlapping display indicates frame in scanning interface display acquired image, while on the image of acquisition.This When, user can adjust the region that instruction frame is chosen by mobile first movement terminal, for example, user can be by moving back first Mobile terminal increases the region that the instruction frame is chosen, and reduces the area that the instruction frame is chosen by Forward first movement terminal Domain.When detecting the first graphic code that aforementioned instruction frame chooses the second mobile terminal to show, the execution of driver sweep module 10 is swept Retouch operation.
In driver sweep operation, the first graphic code that scan module 10 shows the second mobile terminal is scanned.Its In, the second mobile terminal can directly show the first graphic code when showing the first graphic code on its screen, can also be by the first figure Shape code is incident upon on medium, or is shown otherwise.
Scan module 10 is in the first graphic code that scanning to the second mobile terminal is shown, after the digitlization of the first graphic code Coding/decoding module 20 is transmitted to be handled.The explanation of the present embodiment is carried out using the type of the first graphic code as two dimensional code below.
Specifically, scan module 10 collects the first graphic code image by camera 121 shown in FIG. 1, the of acquisition In one graphic code image, due to the relationship of image quality, usually other than comprising necessary microcode information, one can be also got A little useless information.Therefore, scan module 10 carries out binary conversion treatment to the first graphic code image of acquisition first, to remove Useless information;Then, scan module 10 is further filtered the first graphic code image after binaryzation, to remove The flaw point in the first graphic code image after binaryzation;Finally, filtered first graphic code image transmitting will be completed to volume Decoder module 20 is decoded processing.
Coding/decoding module 20, for being to compile solution with the pixel of the first graphic code of scanning based on default encoding and decoding rule Code unit, parsing obtain the first business datum entrained by the first graphic code.
Specifically, coding/decoding module 20 identifies first when receiving the first graphic code image of the transmission of scan module 10 First graphic code image whether there is registration pattern;
When recognizing registration pattern, coding/decoding module 20 determines decoded first letter based on the registration pattern recognized Code is ceased, and based on locally stored default encoding and decoding rule, using the pixel of received first graphic code image as encoding and decoding Unit, since first determining information code, parsing obtains the first business datum entrained by the first graphic code;
It is unidentified to registration pattern when, coding/decoding module 20 is with the pixel of the default corner point of the first graphic code image For first information code, and based on locally stored default encoding and decoding rule, with the pixel of received first graphic code image Point is encoding and decoding unit, and parsing obtains the first business datum entrained by the first graphic code.For example, presetting the first graphic code The upper left corner pixel be first information code.
It wherein, can be by preparatory between first movement terminal and the second mobile terminal specifically using which kind of default encoding and decoding rule Agreement can be using matrix two-dimensional code encoding and decoding rule, in rectangle such as when using the carrier that two dimensional code is data transmission Space is encoded by the different distributions of black, white pixel in a matrix, on matrix respective element position, with the appearance of point There is not (white) expression binary " 0 " in (black) expression binary one, point, and the permutation and combination of point realizes the coding of data.Tool Representational matrix two-dimensional code encoding and decoding rule include: Code One, MaxiCode, QR Code, Data Matrix, Han Xin Code and Grid Matrix etc., those skilled in the art can choose according to actual needs.
For example, referring to Fig. 4, the resolution ratio for the first graphic code that the second mobile terminal is shown is 1920x1080, i.e. the first figure Shape code shares 1920x1080=2073600 information code, if all information code bit to be used as to the coding of valid data, second The first graphic code maximum that mobile terminal is shown can carry the valid data of 2073600bit.
It should be noted that for the normal biography for realizing business datum between above-mentioned first movement terminal and the second mobile terminal Defeated, the image acquisition resolution (i.e. the resolution ratio of its camera) of data receiver needs to be greater than or equal to what data sending terminal was shown The resolution ratio (i.e. its screen show the first graphic code resolution ratio) of first graphic code.
Based on foregoing description, it will be appreciated by persons skilled in the art that the data that the first graphic code is carried by measure Certainly in its resolution ratio, and due to the limitation of the second mobile terminal physical resolution ratio, the resolution ratio maximum and second of the first graphic code The physical resolution of mobile terminal is identical, for example, the physical resolution of the second mobile terminal is 1920x1080, then it is encoded To the first graphic code maximum can carry the valid data of 1920x1080=2073600bit.It in practical applications, is realization All information code bit can not be used as the coding of valid data by the functions such as data fault-tolerant, moreover, when second mobile terminal to The business datum of transmission is greater than its coding and obtains the data volume for the maximum valid data that the first graphic code can carry, it is clear that nothing Method realizes the transmission of business datum by single first graphic code, and therefore, in the present embodiment, the second mobile terminal is encoding When, the data volume that the first graphic code generated is carried by is determined based on default encoding and decoding rule, by business datum to be transmitted Accordingly it is split as multiple subservice data;It is then based on aforementioned default encoding and decoding rule and is compiled obtained each subservice data are split Code is the first graphic code;Finally according to the fractionation sequence of each subservice data, successively shows and carry the first of each subservice data Graphic code therefrom scans for the second mobile terminal and parses each subservice data, and then group is combined into complete business datum.
Correspondingly, in the present embodiment, when the first graphic code of scanning is multiple, coding/decoding module 20 be also used to according to The scanning sequency of each first graphic code is scanned, the first business datum for successively carrying each first graphic code parsed combines For result data.
Based on foregoing description, it will be appreciated by persons skilled in the art that being scanned every time in coding/decoding module 20 to first When graphic code, the first graphic code after being processed to is transmitted to coding/decoding module 20 and is decoded.Correspondingly, in this implementation In example, the scanning of scan module 10 to how many first graphic codes, then coding/decoding module 20 accordingly parses how many first business Data.
In the first business datum that each first graphic code for parsing scanning carries, coding/decoding module 20 is according to scanning mould Block 10 scan to each first graphic code scanning sequency (i.e. the second mobile terminal shows the display order of each second graph code, That is its fractionation sequence for splitting complete business datum to be transmitted), successively carry each first graphic code parsed the One business datum group is combined into result data.Based on foregoing description, it will be appreciated by persons skilled in the art that the knot that combination obtains Fruit data i.e. the second mobile terminal full service data to be passed for transporting to first movement terminal.
The mobile terminal that the present embodiment proposes scans the in selected range when carrying out the transmission of business datum first One graphic code, for example, the first graphic code in the selected range is other terminals according to default encoding and decoding rule, with its display Pixel is encoding and decoding unit, and the first graphic code for obtaining and showing is encoded to the first business datum to be transmitted;It is arrived in scanning After first graphic code, using identical default encoding and decoding rule, using the pixel of the first graphic code as encoding and decoding unit, solution Analysis obtains the first business datum entrained by the first graphic code.Compared to the prior art, the present invention is using pixel as volume solution Code unit so that figure code distinguishability have it is much, transmission data transmission channel just have it is much, as display resolution is The terminal of 1920x1080 can possess 1920x1080=2073600 data channel.It will be appreciated by those skilled in the art that It is that the number of data channel is directly proportional to data transmission efficiency, it is clear that, the present invention, which can reach, promotes mobile terminal data biography The purpose of defeated efficiency.
Further, it is based on first embodiment, proposes the second embodiment of mobile terminal of the present invention, referring to Fig. 5, this implementation Example and the difference of first embodiment be, in the present embodiment, the mobile terminal further include:
Module 30 is obtained, for obtaining the second business datum to be sent;
Coding/decoding module 20 is also used to the pixel currently to show as encoding and decoding unit, based on default encoding and decoding rule life It is identical with current display resolution at resolution ratio, and carry the second graph code of the second business datum;
Display module 40, for showing the second graph code generated, so that other terminals are in scanning to the second figure of display When shape code, the second business datum of second graph code carrying is gone out based on identical default encoding and decoding rule parsing.
It should be noted that the difference of the present embodiment and first embodiment is, and in the present embodiment, first movement terminal " receiving end " for acting not only as business data transmission is also used as " transmitting terminal " of business data transmission, only right below The difference of the present embodiment and first embodiment is illustrated, other can be referring in particular to first embodiment, and details are not described herein again.
In the present embodiment, the business data transmission interface that user can be provided based on first movement terminal selects to be sent Second business datum, for example, user can select certain song of first movement terminal storage by aforementioned business data transmission interface Bent file can select the storage of first movement terminal as the second business datum to be sent by aforementioned business data transmission interface Certain image file deposited can specifically carry out the choosing of the second business datum as the second business datum to be sent according to actual needs It takes.
In addition, aforementioned business data transmission interface is additionally provided with and completes control, for choosing to be sent second for user After business datum, it is clicked to trigger business datum and send operation.
When the business datum for detecting triggering sends operation, obtains module 30 and obtain the business datum transmission behaviour detected The second business datum to be sent that the second business datum corresponding to making, i.e. user are selected based on business data transmission interface. After getting the second business datum to be sent, the second business data transmission that will acquire of module 30 is obtained to encoding and decoding mould Block 20 carries out coded treatment.
Coding/decoding module 20 is when receiving the second business datum for obtaining the transmission of module 30, with the pixel currently shown For encoding and decoding unit, it is identical with current display resolution that resolution ratio is generated based on default encoding and decoding rule, and carries the second industry The second graph code for data of being engaged in.For example, the current display resolution of first movement terminal is 1920x1080, then its encoding and decoding mould The resolution ratio that block 20 encodes obtained second graph code is 1920x1080, shares 1920x1080=2073600 information code bit, Maximum can carry the valid data of 2073600bit.
After the coding for completing the second business datum, the second graph code that coding obtains is transmitted to by coding/decoding module 20 Display module 40 is shown by display module 40.
Display module 40 passes through display shown in FIG. 1 after the second graph code for receiving the transmission of coding/decoding module 20 Unit 151 is shown.
Based on foregoing description, it will be appreciated by persons skilled in the art that the display module 40 in first movement terminal is aobvious While showing second graph code, such as the other terminals of the second mobile terminal can directly scan the second graph code of display, to obtain The second business datum that the second graph code carries, specifically can be to should refer to first embodiment, and details are not described herein again.
Optionally, in the present embodiment, to promote the valid data amount that the second graph code that coding obtains can carry, Coding/decoding module 20 does not encode registration pattern in coding, i.e., whole pixels is used as information code bit.Correspondingly, due to Registration pattern is eliminated in second graph code, the second mobile terminal is when parsing second graph code, with the default of second graph code Angle point is that first information code bit starts to parse.For example, the present embodiment uses the pixel in the upper left corner of second graph code for One information code bit.
Optionally, in the present embodiment, the display module 40 of first movement terminal is starting to show second graph code simultaneously, Start timer internal timing, is parsed if not receiving such as the second mobile terminal other mobile terminals within a preset period of time Second graph code carry the second business datum and return confirmation message when, terminate display second graph code.Wherein, this implementation It is not intended to limit the value of the preset time period, is specifically chosen according to actual needs, for example, the present embodiment is by the preset time period It is set as 5 seconds.
Further, it is based on second embodiment, proposes the 3rd embodiment of mobile terminal of the present invention, the present embodiment and second The difference of embodiment is that in the present embodiment, coding/decoding module 20 is also used to regular and current aobvious based on default encoding and decoding Show resolution ratio, calculates the data volume that graphic code to be generated is carried by;It is also used to judge the second business datum to be sent Whether data volume is less than or equal to the data volume that graphic code to be generated is carried by;Be also used to when the judgment result is yes, with The pixel currently shown is encoding and decoding unit, and it is identical as current display resolution to generate resolution ratio based on default encoding and decoding rule , and carry the second graph code of the second business datum.
It should be noted that the above-mentioned difference only for the present embodiment and second embodiment is illustrated below, other can With reference to the foregoing embodiments, details are not described herein again.
Based on foregoing description, it will be appreciated by persons skilled in the art that the data that second graph code is carried by measure Certainly in its resolution ratio, and due to the limitation of first movement terminals physical resolution ratio, the resolution ratio maximum and first of second graph code The physical resolution of mobile terminal is identical, for example, the physical resolution of first movement terminal is 1920x1080, then it is encoded To second graph code maximum can carry the valid data of 1920x1080=2073600bit.It in practical applications, is realization All information code bit can not be used as the coding of valid data by the functions such as data fault-tolerant, moreover, when first movement terminal to The data volume of the second business datum sent is greater than it and encodes the maximum valid data for obtaining that second graph code can carry When data volume, it is clear that can not realize the transmission of business datum by single second graph code.
Therefore, in the present embodiment, it is regular and current to be primarily based on default encoding and decoding in coding for coding/decoding module 20 Display resolution calculates the data volume (being herein valid data amount) that graphic code to be generated is carried by;Then judge pending Whether the data volume for the second business datum sent is less than or equal to the data volume that graphic code to be generated is carried by.It is readily appreciated that , when the judgment result is yes, then illustrate that single graphic code can completely carry the second business datum to be sent;Work as judgement When being as a result no, then illustrate that single graphic code can not completely carry the second business datum to be sent.
When the judgment result is yes, then coding/decoding module 20 is using the pixel currently shown as encoding and decoding unit, based on pre- If encoding and decoding rule generates, resolution ratio is identical with current display resolution, and carries the second graph code of the second business datum, Other terminals such as totally second mobile terminal therefrom parse complete second business datum.
Further, in the present embodiment, coding/decoding module 20 is also used to when the judgment result is No, based on to be generated Second business datum to be sent is split as multiple subservice data by the data volume that graphic code is carried by;It is also used to work as The pixel of preceding display is encoding and decoding unit, and it is identical as current display resolution to generate resolution ratio based on default encoding and decoding rule , and the third graphic code of each subservice data is carried respectively;
Display module 40 is also used to the fractionation sequence according to each subservice data, based on the refresh rate currently shown, successively Show each third graphic code generated.
Based on foregoing description, so it is easy to understand that when the judging result of the judgement operation of the aforementioned execution of coding/decoding module 20 When being no, i.e., single graphic code can not completely carry the second business datum to be sent.At this point, coding/decoding module 20 is based on to be generated At the data volume that is carried by of graphic code, the second business datum to be sent is split as multiple subservice data, then again Using the pixel currently shown as encoding and decoding unit, resolution ratio and current display resolution phase are generated based on default encoding and decoding rule With, and the third graphic code of each subservice data is carried respectively.
For further improving data transmission efficiency, display module 40 is in each third graphic code that display generates, specifically According to the fractionation sequence of each subservice data, based on refresh rate (the i.e. physical brush of display unit 151 shown in Fig. 1 currently shown New rate), successively show each third graphic code of generation.Correspondingly, other terminals such as second mobile terminal are in scanning to display mould After each third graphic code that block 40 is shown, the scanning sequency of each third graphic code is arrived according to its scanning, it successively will be from each third The subservice data parsed in graphic code are combined operation, to obtain complete second business datum.
For example, the resolution ratio of first movement terminal is 1920x1080, refresh rate 60Hz, it is to compile solution with single pixel point Code unit, the then baud rate that first movement terminal carries out data transmission are 1920x1080x60=124416000bps, are approximately equal to 124Mbps, if by first movement terminal transmission data amount be 1G movie file to the second mobile terminal, transmission time is (1024*8)/124=66 (second) only needs one minute time that the transmission of 1G data volume can be realized, and is comparison with bluetooth, Its transmit 1G movie file transmission time be (1024*8)/24=341 (second), about six minutes.Obvious, compared to existing Short haul technology, the present invention can be obviously improved the efficiency of transmission of data.
Further, the present invention also provides a kind of data transmission methods corresponds to aforementioned shifting in conjunction with referring to Fig. 3 and Fig. 6 The first embodiment of dynamic terminal, in the first embodiment of data transmission method of the present invention, which includes:
Step S10 scans the first graphic code in selected range;
It should be noted that the mobile terminal that data transmission method provided by the invention is provided by present invention It executes, in embodiments of the present invention, the first graphic code in selected range includes the first graphic code of other terminal displays, In, other terminals can also be able to be multiple for one, for example, terminal A shows the left-half of the first graphic code, terminal B displaying The right half part of first graphic code;In another example terminal A shows complete first graphic code.Below with movement provided by the invention Terminal is first movement terminal, and other terminals are that the second mobile terminal is illustrated.
In the present embodiment, first movement terminal is provided with business data transmission interface, which sets It is equipped with scanning control.Wherein, when first movement terminal detects the point touching operation based on the triggering of aforementioned scanning control, the One mobile terminal will switch to scanning interface.When switching to scanning interface, first movement terminal starts camera shown in FIG. 1 121 acquisition images, and Overlapping display indicates frame in scanning interface display acquired image, while on the image of acquisition.This When, user can adjust the region that instruction frame is chosen by mobile first movement terminal, for example, user can be by moving back first Mobile terminal increases the region that the instruction frame is chosen, and reduces the area that the instruction frame is chosen by Forward first movement terminal Domain.When detecting the first graphic code that aforementioned instruction frame chooses the second mobile terminal to show, the execution of driver sweep module 10 is swept Retouch operation.
In driver sweep operation, the first graphic code that scan module 10 shows the second mobile terminal is scanned.Its In, the second mobile terminal can directly show the first graphic code when showing the first graphic code on its screen, can also be by the first figure Shape code is incident upon on medium, or is shown otherwise.
Scan module 10 is in the first graphic code that scanning to the second mobile terminal is shown, after the digitlization of the first graphic code Coding/decoding module 20 is transmitted to be handled.The explanation of the present embodiment is carried out using the type of the first graphic code as two dimensional code below.
Specifically, scan module 10 collects the first graphic code image by camera 121 shown in FIG. 1, the of acquisition In one graphic code image, due to the relationship of image quality, usually other than comprising necessary microcode information, one can be also got A little useless information.Therefore, scan module 10 carries out binary conversion treatment to the first graphic code image of acquisition first, to remove Useless information;Then, scan module 10 is further filtered the first graphic code image after binaryzation, to remove The flaw point in the first graphic code image after binaryzation;Finally, filtered first graphic code image transmitting will be completed to volume Decoder module 20 is decoded processing.
Step S20, based on default encoding and decoding rule, using the pixel of the first graphic code of scanning as encoding and decoding unit, solution Analysis obtains the first business datum entrained by the first graphic code.
Specifically, coding/decoding module 20 identifies first when receiving the first graphic code image of the transmission of scan module 10 First graphic code image whether there is registration pattern;
When recognizing registration pattern, coding/decoding module 20 determines decoded first letter based on the registration pattern recognized Code is ceased, and based on locally stored default encoding and decoding rule, using the pixel of received first graphic code image as encoding and decoding Unit, since first determining information code, parsing obtains the first business datum entrained by the first graphic code;
It is unidentified to registration pattern when, coding/decoding module 20 is with the pixel of the default corner point of the first graphic code image For first information code, and based on locally stored default encoding and decoding rule, with the pixel of received first graphic code image Point is encoding and decoding unit, and parsing obtains the first business datum entrained by the first graphic code.For example, presetting the first graphic code The upper left corner pixel be first information code.
It wherein, can be by preparatory between first movement terminal and the second mobile terminal specifically using which kind of default encoding and decoding rule Agreement can be using matrix two-dimensional code encoding and decoding rule, in rectangle such as when using the carrier that two dimensional code is data transmission Space is encoded by the different distributions of black, white pixel in a matrix, on matrix respective element position, with the appearance of point There is not (white) expression binary " 0 " in (black) expression binary one, point, and the permutation and combination of point realizes the coding of data.Tool Representational matrix two-dimensional code encoding and decoding rule include: Code One, MaxiCode, QR Code, Data Matrix, Han Xin Code and Grid Matrix etc., those skilled in the art can choose according to actual needs.
For example, referring to Fig. 4, the resolution ratio for the first graphic code that the second mobile terminal is shown is 1920x1080, i.e. the first figure Shape code shares 1920x1080=2073600 information code, if all information code bit to be used as to the coding of valid data, second The first graphic code maximum that mobile terminal is shown can carry the valid data of 2073600bit.
It should be noted that for the normal biography for realizing business datum between above-mentioned first movement terminal and the second mobile terminal Defeated, the image acquisition resolution (i.e. the resolution ratio of its camera) of data receiver needs to be greater than or equal to what data sending terminal was shown The resolution ratio (i.e. its screen show the first graphic code resolution ratio) of first graphic code.
Based on foregoing description, it will be appreciated by persons skilled in the art that the data that the first graphic code is carried by measure Certainly in its resolution ratio, and due to the limitation of the second mobile terminal physical resolution ratio, the resolution ratio maximum and second of the first graphic code The physical resolution of mobile terminal is identical, for example, the physical resolution of the second mobile terminal is 1920x1080, then it is encoded To the first graphic code maximum can carry the valid data of 1920x1080=2073600bit.It in practical applications, is realization All information code bit can not be used as the coding of valid data by the functions such as data fault-tolerant, moreover, when second mobile terminal to The business datum of transmission is greater than its coding and obtains the data volume for the maximum valid data that the first graphic code can carry, it is clear that nothing Method realizes the transmission of business datum by single first graphic code, and therefore, in the present embodiment, the second mobile terminal is encoding When, the data volume that the first graphic code generated is carried by is determined based on default encoding and decoding rule, by business datum to be transmitted Accordingly it is split as multiple subservice data;It is then based on aforementioned default encoding and decoding rule and is compiled obtained each subservice data are split Code is the first graphic code;Finally according to the fractionation sequence of each subservice data, successively shows and carry the first of each subservice data Graphic code therefrom scans for the second mobile terminal and parses each subservice data, and then group is combined into complete business datum.
Correspondingly, in the present embodiment, when the first graphic code of scanning is multiple, after step S30, further includes:
The scanning sequency of each first graphic code is arrived according to scanning, successively carry each first graphic code parsed first Business datum group is combined into result data.
Based on foregoing description, it will be appreciated by persons skilled in the art that being scanned every time in coding/decoding module 20 to first When graphic code, the first graphic code after being processed to is transmitted to coding/decoding module 20 and is decoded.Correspondingly, in this implementation In example, the scanning of scan module 10 to how many first graphic codes, then coding/decoding module 20 accordingly parses how many first business Data.
In the first business datum that each first graphic code for parsing scanning carries, coding/decoding module 20 is according to scanning mould Block 10 scan to each first graphic code scanning sequency (i.e. the second mobile terminal shows the display order of each second graph code, That is its fractionation sequence for splitting complete business datum to be transmitted), successively carry each first graphic code parsed the One business datum group is combined into result data.Based on foregoing description, it will be appreciated by persons skilled in the art that the knot that combination obtains Fruit data i.e. the second mobile terminal full service data to be passed for transporting to first movement terminal.
The data transmission method that the present embodiment proposes is applied to mobile terminal, when carrying out the transmission of business datum, first The first graphic code in selected range is scanned, for example, the first graphic code in the selected range is other terminals according to default volume Decoding rule, using the pixel of its display as encoding and decoding unit, to the first business datum to be transmitted encodes to obtain and shows First graphic code;After scanning to first graphic code, using identical default encoding and decoding rule, with the picture of the first graphic code Vegetarian refreshments is encoding and decoding unit, and parsing obtains the first business datum entrained by the first graphic code.Compared to the prior art, of the invention Using pixel as encoding and decoding unit so that figure code distinguishability have it is much, the transmission channel of transmission data just have it is much, Such as the terminal that display resolution is 1920x1080,1920x1080=2073600 data channel can be possessed.Art technology Personnel are it is understood that the number of data channel is directly proportional to data transmission efficiency, it is clear that, the present invention can reach promotion The purpose of mobile terminal data transmission efficiency.
Further, it is based on first embodiment, proposes the second embodiment of data transmission method of the present invention, in conjunction with referring to figure 5 and Fig. 7, corresponding to the second embodiment of aforementioned mobile terminal, the difference of the present embodiment and first embodiment is, in this implementation In example, the data transmission method further include:
Step S30 obtains the second business datum to be sent;
Step S40, using the pixel currently shown as encoding and decoding unit, based on default encoding and decoding rule generate resolution ratio with Current display resolution is identical, and carries the second graph code of the second business datum;
Step S50 shows the second graph code of generation, so that other terminals are in second graph code of the scanning to display, Go out the second business datum of second graph code carrying based on identical default encoding and decoding rule parsing.
It should be noted that Fig. 7 is a kind of flow diagram of the present embodiment, step S30 to S50 can be in step S20 Later, can also be before step S20, i.e. there is no precedence relationships between step S50 and step S20 by step S30.In addition, The difference of the present embodiment and first embodiment is that in the present embodiment, first movement terminal acts not only as business datum " receiving end " of transmission, is also used as " transmitting terminal " of business data transmission, below only to the present embodiment and first embodiment Difference be illustrated, other can be referring in particular to first embodiment, and details are not described herein again.
In the present embodiment, the business data transmission interface that user can be provided based on first movement terminal selects to be sent Second business datum, for example, user can select certain song of first movement terminal storage by aforementioned business data transmission interface Bent file can select the storage of first movement terminal as the second business datum to be sent by aforementioned business data transmission interface Certain image file deposited can specifically carry out the choosing of the second business datum as the second business datum to be sent according to actual needs It takes.
In addition, aforementioned business data transmission interface is additionally provided with and completes control, for choosing to be sent second for user After business datum, it is clicked to trigger business datum and send operation.
When the business datum for detecting triggering sends operation, obtains module 30 and obtain the business datum transmission behaviour detected The second business datum to be sent that the second business datum corresponding to making, i.e. user are selected based on business data transmission interface. After getting the second business datum to be sent, the second business data transmission that will acquire of module 30 is obtained to encoding and decoding mould Block 20 carries out coded treatment.
Coding/decoding module 20 is when receiving the second business datum for obtaining the transmission of module 30, with the pixel currently shown For encoding and decoding unit, it is identical with current display resolution that resolution ratio is generated based on default encoding and decoding rule, and carries the second industry The second graph code for data of being engaged in.For example, the current display resolution of first movement terminal is 1920x1080, then its encoding and decoding mould The resolution ratio that block 20 encodes obtained second graph code is 1920x1080, shares 1920x1080=2073600 information code bit, Maximum can carry the valid data of 2073600bit.
After the coding for completing the second business datum, the second graph code that coding obtains is transmitted to by coding/decoding module 20 Display module 40 is shown by display module 40.
Display module 40 passes through display shown in FIG. 1 after the second graph code for receiving the transmission of coding/decoding module 20 Unit 151 is shown.
Based on foregoing description, it will be appreciated by persons skilled in the art that the display module 40 in first movement terminal is aobvious While showing second graph code, such as the other terminals of the second mobile terminal can directly scan the second graph code of display, to obtain The second business datum that the second graph code carries, specifically can be to should refer to first embodiment, and details are not described herein again.
Optionally, in the present embodiment, to promote the valid data amount that the second graph code that coding obtains can carry, Coding/decoding module 20 does not encode registration pattern in coding, i.e., whole pixels is used as information code bit.Correspondingly, due to Registration pattern is eliminated in second graph code, the second mobile terminal is when parsing second graph code, with the default of second graph code Angle point is that first information code bit starts to parse.For example, the present embodiment uses the pixel in the upper left corner of second graph code for One information code bit.
Optionally, in the present embodiment, the display module 40 of first movement terminal is starting to show second graph code simultaneously, Start timer internal timing, is parsed if not receiving such as the second mobile terminal other mobile terminals within a preset period of time Second graph code carry the second business datum and return confirmation message when, terminate display second graph code.Wherein, this implementation It is not intended to limit the value of the preset time period, is specifically chosen according to actual needs, for example, the present embodiment is by the preset time period It is set as 5 seconds.
Further, it is based on second embodiment, proposes the 3rd embodiment of data transmission method of the present invention, is corresponded to aforementioned The difference of the 3rd embodiment of mobile terminal, the present embodiment and second embodiment is, in the present embodiment, before step S20, Further include:
Based on default encoding and decoding rule and current display resolution, the data that graphic code to be generated is carried by are calculated Amount;
Judge whether the data volume of the second business datum to be sent is less than or equal to graphic code to be generated and is carried by Data volume;
When the judgment result is yes, it is transferred to and executes step S20.
It should be noted that the above-mentioned difference only for the present embodiment and second embodiment is illustrated below, other can With reference to the foregoing embodiments, details are not described herein again.
Based on foregoing description, it will be appreciated by persons skilled in the art that the data that second graph code is carried by measure Certainly in its resolution ratio, and due to the limitation of first movement terminals physical resolution ratio, the resolution ratio maximum and first of second graph code The physical resolution of mobile terminal is identical, for example, the physical resolution of first movement terminal is 1920x1080, then it is encoded To second graph code maximum can carry the valid data of 1920x1080=2073600bit.It in practical applications, is realization All information code bit can not be used as the coding of valid data by the functions such as data fault-tolerant, moreover, when first movement terminal to The data volume of the second business datum sent is greater than it and encodes the maximum valid data for obtaining that second graph code can carry When data volume, it is clear that can not realize the transmission of business datum by single second graph code.
Therefore, in the present embodiment, it is regular and current to be primarily based on default encoding and decoding in coding for coding/decoding module 20 Display resolution calculates the data volume (being herein valid data amount) that graphic code to be generated is carried by;Then judge pending Whether the data volume for the second business datum sent is less than or equal to the data volume that graphic code to be generated is carried by.It is readily appreciated that , when the judgment result is yes, then illustrate that single graphic code can completely carry the second business datum to be sent;Work as judgement When being as a result no, then illustrate that single graphic code can not completely carry the second business datum to be sent.
When the judgment result is yes, then coding/decoding module 20 is using the pixel currently shown as encoding and decoding unit, based on pre- If encoding and decoding rule generates, resolution ratio is identical with current display resolution, and carries the second graph code of the second business datum, Other terminals such as totally second mobile terminal therefrom parse complete second business datum.
Further, in the present embodiment, the aforementioned data volume for judging the second business datum to be sent whether be less than or After the step of data volume being carried by equal to graphic code to be generated, further includes:
When the judgment result is No, the data volume being carried by based on graphic code to be generated, by the second industry to be sent Business data are split as multiple subservice data;
Using the pixel currently shown as encoding and decoding unit, resolution ratio and current display are generated based on default encoding and decoding rule Resolution ratio is identical, and carries the third graphic code of each subservice data respectively;
According to the fractionation sequence of each subservice data, based on the refresh rate currently shown, each third of generation is successively shown Graphic code.
Based on foregoing description, so it is easy to understand that when the judging result of the judgement operation of the aforementioned execution of coding/decoding module 20 When being no, i.e., single graphic code can not completely carry the second business datum to be sent.At this point, coding/decoding module 20 is based on to be generated At the data volume that is carried by of graphic code, the second business datum to be sent is split as multiple subservice data, then again Using the pixel currently shown as encoding and decoding unit, resolution ratio and current display resolution phase are generated based on default encoding and decoding rule With, and the third graphic code of each subservice data is carried respectively.
For further improving data transmission efficiency, display module 40 is in each third graphic code that display generates, specifically According to the fractionation sequence of each subservice data, based on refresh rate (the i.e. physical brush of display unit 151 shown in Fig. 1 currently shown New rate), successively show each third graphic code of generation.Correspondingly, other terminals such as second mobile terminal are in scanning to display mould After each third graphic code that block 40 is shown, the scanning sequency of each third graphic code is arrived according to its scanning, it successively will be from each third The subservice data parsed in graphic code are combined operation, to obtain complete second business datum.
For example, the resolution ratio of first movement terminal is 1920x1080, refresh rate 60Hz, it is to compile solution with single pixel point Code unit, the then baud rate that first movement terminal carries out data transmission are 1920x1080x60=124416000bps, are approximately equal to 124Mbps, if by first movement terminal transmission data amount be 1G movie file to the second mobile terminal, transmission time is (1024*8)/124=66 (second) only needs one minute time that the transmission of 1G data volume can be realized, and is comparison with bluetooth, Its transmit 1G movie file transmission time be (1024*8)/24=341 (second), about six minutes.Obvious, compared to existing Short haul technology, the present invention can be obviously improved the efficiency of transmission of data.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include the other elements being not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
For illustrative purposes, the description of front has used specific term, to provide a thorough understanding of the present invention.So And it will be apparent to those skilled in the art that not needing concrete details to practice the present invention.The present invention The foregoing description of specific embodiment be to present for purposes of illustration and description.They are not intended in detail or send out this It is bright to be limited to disclosed precise forms.In view of religious doctrine above, many modifications and variations are possible.In order to best explain this The principle and its practical application of invention and these embodiments have shown and described, to enable others skilled in the art Best using the present invention and with the various embodiments for being suitable for the expected specific various modifications used.It is intended to model of the invention It encloses by following claims and its equivalent and limits.

Claims (8)

1. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Scan module, for scanning the first graphic code in selected range;
Coding/decoding module, for based on default encoding and decoding rule, using the pixel of first graphic code as encoding and decoding unit, solution Analysis obtains the first business datum entrained by first graphic code;
Module is obtained, for obtaining the second business datum to be sent;
The coding/decoding module is also used to the pixel currently to show as encoding and decoding unit, based on the default encoding and decoding rule Generation resolution ratio is identical with current display resolution, and carries the second graph code of second business datum;
Display module, for showing the second graph code generated, so that other terminals arrive the second graph code in scanning When, second business datum that the second graph code carries is gone out based on the default encoding and decoding rule parsing.
2. mobile terminal according to claim 1, which is characterized in that described when the first graphic code of scanning is multiple Coding/decoding module is also used to arrive the scanning sequency of each first graphic code, each described first will successively parsed according to scanning The first business datum group that graphic code carries is combined into result data.
3. mobile terminal according to claim 1, which is characterized in that the coding/decoding module is also used to based on described default Encoding and decoding rule and the current display resolution, calculate the data volume that graphic code to be generated is carried by;It is also used to sentence Whether the data volume for second business datum of breaking is less than or equal to the data volume that graphic code to be generated is carried by;It is also used to When the judgment result is yes, it using the pixel currently shown as encoding and decoding unit, is generated and is divided based on the default encoding and decoding rule Resolution is identical with current display resolution, and carries the second graph code of second business datum.
4. mobile terminal according to claim 3, which is characterized in that the coding/decoding module be also used to be in judging result When no, based on the data volume that graphic code to be generated is carried by, second business datum is split as multiple subservice numbers According to;The pixel currently to show is also used to as encoding and decoding unit, resolution ratio is generated based on the default encoding and decoding rule and works as Preceding display resolution is identical, and carries the third graphic code of each subservice data respectively;
The display module is also used to the fractionation sequence according to each subservice data, based on the refresh rate currently shown, according to Each third graphic code that secondary display generates.
5. a kind of data transmission method is applied to mobile terminal, which is characterized in that the data transmission method includes following step It is rapid:
Scan the first graphic code in selected range;
Based on default encoding and decoding rule, using the pixel of first graphic code as encoding and decoding unit, parsing obtains described first First business datum entrained by graphic code;
Obtain the second business datum to be sent;
Using the pixel currently shown as encoding and decoding unit, resolution ratio and current display are generated based on the default encoding and decoding rule Resolution ratio is identical, and carries the second graph code of second business datum;
The second graph code generated is shown, so that other terminals are when the second graph code is arrived in scanning, based on described pre- If encoding and decoding rule parsing goes out second business datum that the second graph code carries.
6. data transmission method according to claim 5, which is characterized in that when the first graphic code of scanning is multiple, It is described regular based on default encoding and decoding, using the pixel of first graphic code as encoding and decoding unit, parse first figure After the step of business datum that shape code carries, further includes:
The scanning sequency of each first graphic code is arrived according to scanning, successively carry each first graphic code parsed first Business datum group is combined into result data.
7. data transmission method according to claim 5, which is characterized in that described to be solved with the pixel currently shown to compile It is identical with current display resolution to generate resolution ratio based on the default encoding and decoding rule, and carries described second for code unit Before the step of second graph code of business datum, further includes:
Based on the default encoding and decoding rule and the current display resolution, calculate what graphic code to be generated was carried by Data volume;
Judge whether the data volume of second business datum is less than or equal to the data volume that graphic code to be generated is carried by;
When the judgment result is yes, it is described using the pixel currently shown as encoding and decoding unit to be transferred to execution, based on described default Encoding and decoding rule generation resolution ratio is identical with current display resolution, and carries the second graph code of second business datum The step of.
8. data transmission method according to claim 7, which is characterized in that the number of judgement second business datum According to amount whether be less than or equal to graphic code to be generated be carried by data volume the step of after, further includes:
When the judgment result is No, the data volume being carried by based on graphic code to be generated is torn open second business datum It is divided into multiple subservice data;
Using the pixel currently shown as encoding and decoding unit, resolution ratio and current display are generated based on the default encoding and decoding rule Resolution ratio is identical, and carries the third graphic code of each subservice data respectively;
According to the fractionation sequence of each subservice data, based on the refresh rate currently shown, each described of generation is successively shown Third graphic code.
CN201610648339.1A 2016-08-09 2016-08-09 Mobile terminal and data transmission method Active CN106254654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610648339.1A CN106254654B (en) 2016-08-09 2016-08-09 Mobile terminal and data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610648339.1A CN106254654B (en) 2016-08-09 2016-08-09 Mobile terminal and data transmission method

Publications (2)

Publication Number Publication Date
CN106254654A CN106254654A (en) 2016-12-21
CN106254654B true CN106254654B (en) 2019-07-12

Family

ID=58077913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610648339.1A Active CN106254654B (en) 2016-08-09 2016-08-09 Mobile terminal and data transmission method

Country Status (1)

Country Link
CN (1) CN106254654B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805242A (en) * 2018-08-31 2018-11-13 刘彦君 A kind of data transmission set and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617528A (en) * 2013-12-04 2014-03-05 武海瑞 Device and method for auxiliary supermarket commodity rapid clearing through mobile phone
CN104202829A (en) * 2014-08-01 2014-12-10 惠州Tcl移动通信有限公司 Connection method of wireless display and mobile device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003233788A (en) * 2002-02-13 2003-08-22 Nec Infrontia Corp Graphic code system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617528A (en) * 2013-12-04 2014-03-05 武海瑞 Device and method for auxiliary supermarket commodity rapid clearing through mobile phone
CN104202829A (en) * 2014-08-01 2014-12-10 惠州Tcl移动通信有限公司 Connection method of wireless display and mobile device

Also Published As

Publication number Publication date
CN106254654A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
US20230094272A1 (en) Notification Processing System, Method, and Electronic Device
CN105100609B (en) The adjusting method of mobile terminal and acquisition parameters
CN105430295B (en) Image processing apparatus and method
CN113609498B (en) Data protection method and electronic equipment
US20130053010A1 (en) Apparatus and method for performing a call connection in portable terminal
CN102970408A (en) Apparatus and method for managing application in wireless terminal
CN105959543B (en) It is a kind of to remove reflective filming apparatus and method
CN105959554B (en) Video capture device and method
US20050264650A1 (en) Apparatus and method for synthesizing captured images in a mobile terminal with a camera
CN101228493A (en) Mobile information terminal device
CN105187724B (en) A kind of mobile terminal and method handling image
CN105335458B (en) Preview picture method and device
CN109788268A (en) Terminal and its white balance correction control method and computer readable storage medium
CN109634495A (en) Method of payment, device and user equipment
CN105491358B (en) A kind of image processing method and device, terminal
US20230162323A1 (en) Image frame super-resolution implementation method and apparatus
CN106385579A (en) Camera detection device, method and multi-camera terminal
CN105577886A (en) Mobile terminal unlocking device and method
CN113747060B (en) Image processing method, device and storage medium
CN105611264A (en) Automatic white balance method and device
CN109842723A (en) Terminal and its screen brightness control method and computer readable storage medium
CN105611341B (en) A kind of method, apparatus and system for transmitting image
CN114063951A (en) Screen projection abnormity processing method and electronic equipment
CN106254654B (en) Mobile terminal and data transmission method
CN111886849B (en) Information transmission method and electronic equipment

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