CN109214488A - A kind of method and system carrying out information transmitting based on encoding of graphs data - Google Patents
A kind of method and system carrying out information transmitting based on encoding of graphs data Download PDFInfo
- Publication number
- CN109214488A CN109214488A CN201810935487.0A CN201810935487A CN109214488A CN 109214488 A CN109214488 A CN 109214488A CN 201810935487 A CN201810935487 A CN 201810935487A CN 109214488 A CN109214488 A CN 109214488A
- Authority
- CN
- China
- Prior art keywords
- data
- encoding
- information
- graphs
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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 with optically detectable marking
- G06K19/06037—Record 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 with optically detectable marking multi-dimensional coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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 with optically detectable marking
- G06K19/06046—Constructional details
- G06K19/06093—Constructional details the marking being constructed out of a plurality of similar markings, e.g. a plurality of barcodes randomly oriented on an object
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3274—Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
Abstract
The invention discloses a kind of method and system that information transmitting is carried out based on encoding of graphs data, and wherein method includes: to obtain using description information, based on the multiple applications for determining using description information and wishing to carry out information transmitting by encoding of graphs data;Demand is transmitted according to the information of each application, required maximum fault information when determining each application by the progress information transmitting of single encoding of graphs data;The indication range that can be used in showing encoding of graphs data with each application of determination is parsed to the graphical interfaces for providing encoding of graphs data of each application;Coding ratio of each application for the image-region of encoding of graphs data is determined based on indication range and maximum fault information;And when the specific application in multiple applications is desired with information transmitting, the specific application generates the original encoding of graphs data for meeting the coding ratio, and carries out information transmitting based on the original encoding of graphs data for meeting coding ratio.
Description
Technical field
The present invention relates to field of information processing, and carry out information based on encoding of graphs data more particularly, to one kind
The method and system of transmitting.
Background technique
The universal of coded data reads, handles and expresses so that having the equipment of computing capability to be able to carry out information.Mesh
Before, mobile device is more and more common by the trend that two dimensional code carries out information processing.Two dimensional code is in recent years in movement
The popular a kind of coding mode applied in equipment, it can save more information than traditional bar code and being capable of table
Show more data types.
Two dimensional code is using certain specific geometric figure according to certain rules in the black and white phase of plane (on two-dimensional directional) distribution
Between figure record data symbol information.In code compilation, two dimensional code dexterously utilizes composition computer-internal logic base
The concept of " 0 " of plinth, " 1 " bit stream, indicates text numerical information using several geometrical bodies corresponding with binary system.
Image input device or photoelectric scanning device can automatically identifying and reading two dimensional code to realize automatic processing of information.Two dimensional code has bar code
Some general character of technology: every kind of code system has its specific character set, each character to occupy certain width and with certain
Verifying function etc..In addition, two dimensional code also has the function and processing figure rotation for carrying out automatic identification to the information that do not go together
The function of change point.
Currently, the shape of two dimensional code is square, for example, fast reaction QR code.As shown in Fig. 2 institute, QR code 200 is in just
It is rectangular and there are black-and-white two colors.Fig. 2 is the schematic diagram of QR code in the prior art, wherein 3 in the corner of the 4 of QR code 200
It is provided with square pattern smaller and as " returning " word.This 3 patterns, which are to aid in decoding software, to be determined what QR code 200 was positioned
Mark, so that user need not be aligned and no matter scan at any angle, still can correctly read data.
However, the display screen due to current mobile terminal is usually rectangle, thus when shape be square two
Code is tieed up when carrying out the extension of data volume, the limitation of display screen short side (i.e. width) will necessarily be limited to.Further, since display
The limitation of screen short side (i.e. width) can not make two dimensional code carry more data informations.
Summary of the invention
According to an aspect of the present invention, a kind of method carrying out information transmitting based on encoding of graphs data is provided, it is described
Method includes:
Acquisition is associated with user equipment to apply description information, wishes to pass through figure based on application description information determination
Multiple applications of shape coded data progress information transmitting;
Demand is transmitted according to the information of application each in multiple applications, determines that each application passes through single encoding of graphs data
Carry out required maximum fault information when information transmitting;
Being parsed to the graphical interfaces for providing encoding of graphs data of each application can with each application of determination
For showing the indication range of encoding of graphs data;
Based on described for showing that the indication range of encoding of graphs data and maximum fault information determine each application for scheming
The coding ratio of the image-region of shape coded data;And
When the specific application in multiple applications is desired with information transmitting, the specific application generation meets the coding
The original encoding of graphs data of ratio, and information biography is carried out based on the original encoding of graphs data for meeting coding ratio
It passs.
The application description information includes multiple description items, it is each description item format be < Apply Names, application type,
Associate device type, coded data flag bit >.
Required data integrity is every to determine when carrying out information transmitting by encoding of graphs data according to each application
The information of a application transmits demand.
The information transmitting demand includes to meet peak-data amount involved in data integrity.
It is required when determining each application by the progress information transmitting of single encoding of graphs data according to the peak-data amount
The maximum fault information wanted.
The graphical interfaces is the interface that information transmitting is carried out using encoding of graphs data of each application.
The indication range is in graphical interfaces for showing the range of encoding of graphs data.
Wherein based on described for showing that the indication range of encoding of graphs data and maximum fault information determine that each application is used
Include: in the coding ratio of the image-region of encoding of graphs data
It determines described for showing the length and width of the indication range of encoding of graphs data;
Determine that image-region lateral of each application for encoding of graphs data is compiled according to the width of the indication range
Number of codes;
Image of each application for encoding of graphs data is determined according to the length of the indication range and maximum fault information
Longitudinal group/cording quantity in region;And
Image-region of each application for encoding of graphs data is determined based on lateral group/cording quantity and longitudinal group/cording quantity
Coding ratio.
Wherein determine each application for encoding of graphs data according to the length of the indication range and maximum fault information
Longitudinal group/cording quantity of image-region includes:
Longitudinal group/cording quantity of pre-selection is determined according to maximum fault information and lateral group/cording quantity;
When the length for determining the indication range can accommodate longitudinal group/cording quantity of the pre-selection, by the pre-selection
Longitudinal group/cording quantity is determined as longitudinal group/cording quantity of each application for the image-region of encoding of graphs data.
It is rectangle that wherein the shape of the indication range, which is the shape in rectangle and described image region,.
It is rectangle that wherein the shape of the indication range, which is the shape in rectangle and described image region,.
Wherein the coding ratio is 0.618.
The original encoding of graphs data for meeting coding ratio include: configuration information, heading message and data information.
Further include in original encoding of graphs data heading message and/or data information compressed to generate process
The encoding of graphs data of compression, the area of the encoding of graphs data through overcompression are less than or equal to the original figure and compile
The area of code data.
It further include the encoding of graphs data progress information transmitting based on described through overcompression.
Further include that structure elucidation is carried out to data information, is divided into the data information according to the result of structure elucidation more
A information subset,
The data information area of not encrypted original encoding of graphs data is divided into according to each information subset more
Sub-regions, and encryption unit and cipher mode are determined for each subregion;And
It is directed to each subregion, it is using encryption unit as minimum encryption object and single to each encryption according to cipher mode
Member is encrypted, to generate the encoding of graphs data by encryption;
Wherein the structure elucidation includes semantic structure parsing and separator configuration parsing.
It further include determining encryption unit and cipher mode for not encrypted original encoding of graphs data;And
Each encryption unit is encrypted using encryption unit as minimum encryption object and according to cipher mode, to generate
Encoding of graphs data by encryption.
Wherein the cipher mode of each encryption unit is same or different.
The cipher mode is predetermined or the cipher mode is by the provider of offer encoding of graphs data
It is determined according to the demand for the user for using encoding of graphs data.
The encryption unit is single encoded unit, multiple coding units or data block.
The coding unit of original encoding of graphs data generated is round, rectangle or ellipse.
It further include that the provider of encoding of graphs data receives the information process request for being directed to cooperation with service, wherein described
Information process request includes the structure description file of associated with the cooperation with service information content and the cooperation with service;
The structure description file of the cooperation with service is parsed with multiple associations involved in the determination cooperation with service
With cotasking involved in equipment and each cooperative device;
The original encoding of graphs number including data information is generated according to the information content associated with the cooperation with service
According to, and based on cotasking involved in each cooperative device by the data information in original encoding of graphs data generated
It is divided into multiple subdata information;
Determine the incidence relation between the multiple cooperative device, and based on the incidence relation be multiple subnumbers it is believed that
Each subdata information in breath determines hierarchical relationship;And
Original encoding of graphs data generated are divided into multiple layers by the hierarchical relationship based on each subdata information
Grade formula encoding of graphs data, and each hierarchical encoding of graphs data are distributed into corresponding cooperative device to carry out at information
Reason.
After each cooperative device carries out information processing according to corresponding hierarchical encoding of graphs data, each collaboration is set
It is standby to be combined by result caused by information processing to generate response message, the response message is sent to encoding of graphs
The provider of data.
It further include that heading message is set for each hierarchical encoding of graphs data, wherein each hierarchical encoding of graphs data
Heading message and the heading message of original encoding of graphs data generated it is identical, different or related.
It further include receiving to be directed to the demal request that original encoding of graphs data generated are divided;
Demal request is parsed to determine subcode quantity N;
The data information that original encoding of graphs data generated include is divided into N number of subdata information;And
Original encoding of graphs data generated are divided into N number of sub- coded data according to N number of subdata information.
It further include that each of N number of sub- coded data is sent to corresponding user equipment, wherein each user equipment energy
Enough receive at least one sub- coded data.
It further include that heading message is set for every sub- coded data, wherein the heading message of every sub- coded data and giving birth to
At original encoding of graphs data heading message it is identical, different or related.
Further include: it receives and is directed to the demal request that specific sub- coded data is divided, and being requested according to demal will
The specific sub- coded data is divided into grandson's coded data of predetermined quantity.
Wherein original encoding of graphs data generated include: main calibration, system information and backup information, wherein described
System information includes size grades information and error-correction level information, and the backup information includes size grades information and error correction
Class information.
Wherein original encoding of graphs data generated further include sub- calibration.
Quantity, the serial number of sub- coded data for sub- coded data that further include in the configuration information of sub- coded data include:
With the cryptographic Hash of original encoding of graphs data.
It is the quantity for encoding of graphs data at the same level that further include in the configuration information of hierarchical encoding of graphs data include:, same
The grade serial number of encoding of graphs data and the cryptographic Hash of supervisory encoding of graphs data.
Wherein heading message is the summary for the data information that the encoding of graphs data generated for meeting coding ratio include
Information.
The data information of its neutron coded data include original encoding of graphs data code error-correction level and original figure
The same data message of shape coded data.
Each hierarchical encoding of graphs data in plurality of hierarchical encoding of graphs data include: higher level's encoding of graphs
The error-correction level of data and the same data message of higher level's coded data.
The configuration information further include: configuration information version number, heading message flag bit, blocking sign position and customized
Configuration data.
The configuration information further include: code block sum, current code block serial number and higher level's code block cryptographic Hash.
The heading message further includes compression flag bit.
Further include the encoding of graphs data generated in the following manner by encryption, is not encrypted original figure
The heading message of coded data generates Hash character string, using the Hash character string to the original encoding of graphs data
Data information carries out byte-by-byte xor operation, is encrypted the encoding of graphs data by xor operation to generate by adding
Close encoding of graphs data.
After receiving the encoding of graphs data by encryption, the encoding of graphs data by encryption are solved
It is close to generate encoding of graphs data to be processed, be the encoding of graphs data to be processed heading message generate Hash character
String carries out byte-by-byte exclusive or using data information of the Hash character string to the encoding of graphs data to be processed and grasps
Make, to obtain not encrypted original encoding of graphs data.
The cooperation with service is the service completed jointly by multiple cooperative devices.
The structure description file of the cooperation with service is used to indicate the logical construction of the cooperation with service, and based on described
The cooperation with service can be divided into multiple sub-services by structure description file.
Each sub-services in plurality of sub-services correspond to cotasking involved in corresponding cooperative device.
Incidence relation between the multiple cooperative device includes: that relationship, superior relation, inferior relation and condition at the same level are closed
System.
Determine that hierarchical relationship includes: based on the incidence relation for each subdata information in multiple subdata information
It is when incidence relation is relationship at the same level or conditional relationship, each subdata information in multiple subdata information is true
Determine hierarchical relationship and is determined as same level relationship;
It is when incidence relation is superior relation or inferior relation, each subdata information in multiple subdata information is true
Determine hierarchical relationship and is determined as different levels relationship.
According to another aspect of the present invention, a kind of system carrying out information transmitting based on encoding of graphs data is provided, it is described
System includes:
Acquisition device, it is associated with user equipment using description information for obtaining, description information is applied based on described
Determine the multiple applications for wishing that information transmitting is carried out by encoding of graphs data;
Information content determining device transmits demand according to the information of application each in multiple applications, determines that each application passes through
Single encoding of graphs data carry out required maximum fault information when information transmitting;
Ranges determination device parses with determination the graphical interfaces for providing encoding of graphs data of each application
Each application can be used in showing the indication range of encoding of graphs data;
Ratio-dependent device is determined every based on the indication range for showing encoding of graphs data and maximum fault information
Coding ratio of a application for the image-region of encoding of graphs data;And
Transfer device, when the specific application in multiple applications is desired with information transmitting, the specific application generates symbol
Close the original encoding of graphs data of the coding ratio, and based on meet the original encoding of graphs data of coding ratio into
Row information transmitting.
The application description information includes multiple description items, it is each description item format be < Apply Names, application type,
Associate device type, coded data flag bit >.
It further include demand determining device, it is required when according to each application by the progress information transmitting of encoding of graphs data
Data integrity come determine each application information transmit demand.
The information transmitting demand includes to meet peak-data amount involved in data integrity.
Information content determining device determines that each application is carried out by single encoding of graphs data according to the peak-data amount
Information required maximum fault information when transmitting.
The graphical interfaces is the interface that information transmitting is carried out using encoding of graphs data of each application.
The indication range is in graphical interfaces for showing the range of encoding of graphs data.
Ratio-dependent device is determined every based on the indication range for showing encoding of graphs data and maximum fault information
The coding ratio of image-region of a application for encoding of graphs data include:
It determines described for showing the length and width of the indication range of encoding of graphs data;
Determine that image-region lateral of each application for encoding of graphs data is compiled according to the width of the indication range
Number of codes;
Image of each application for encoding of graphs data is determined according to the length of the indication range and maximum fault information
Longitudinal group/cording quantity in region;And
Image-region of each application for encoding of graphs data is determined based on lateral group/cording quantity and longitudinal group/cording quantity
Coding ratio.
Wherein determine each application for encoding of graphs data according to the length of the indication range and maximum fault information
Longitudinal group/cording quantity of image-region includes:
Longitudinal group/cording quantity of pre-selection is determined according to maximum fault information and lateral group/cording quantity;
When the length for determining the indication range can accommodate longitudinal group/cording quantity of the pre-selection, by the pre-selection
Longitudinal group/cording quantity is determined as longitudinal group/cording quantity of each application for the image-region of encoding of graphs data.
It is rectangle that wherein the shape of the indication range, which is the shape in rectangle and described image region,.
It is rectangle that wherein the shape of the indication range, which is the shape in rectangle and described image region,.
Wherein the coding ratio is 0.618.
The original encoding of graphs data for meeting coding ratio include: configuration information, heading message and data information.
Further include compression set, in original encoding of graphs data heading message and/or data information compress
To generate the encoding of graphs data through overcompression, the area of the encoding of graphs data through overcompression is less than or equal to the original
The area of the encoding of graphs data of beginning.
The transfer device carries out information transmitting based on the encoding of graphs data through overcompression.
Further include encryption device, structure elucidation is carried out to data information, is believed the data according to the result of structure elucidation
Breath is divided into multiple information subsets,
The data information area of not encrypted original encoding of graphs data is divided into according to each information subset more
Sub-regions, and encryption unit and cipher mode are determined for each subregion;And
It is directed to each subregion, it is using encryption unit as minimum encryption object and single to each encryption according to cipher mode
Member is encrypted, to generate the encoding of graphs data by encryption;
Wherein the structure elucidation includes semantic structure parsing and separator configuration parsing.
Further include encryption device, determines encryption unit and cipher mode for not encrypted original encoding of graphs data;
And
Each encryption unit is encrypted using encryption unit as minimum encryption object and according to cipher mode, to generate
Encoding of graphs data by encryption.
Wherein the cipher mode of each encryption unit is same or different.
The cipher mode is predetermined or the cipher mode is by the provider of offer encoding of graphs data
It is determined according to the demand for the user for using encoding of graphs data.
The encryption unit is single encoded unit, multiple coding units or data block.
The coding unit of original encoding of graphs data generated is round, rectangle or ellipse.
Further include dividing device, is directed at the information of cooperation with service for promoting the provider of encoding of graphs data to receive
Reason request, wherein the information process request includes the information content associated with the cooperation with service and the cooperation with service
Structure description file;
The structure description file of the cooperation with service is parsed with multiple associations involved in the determination cooperation with service
With cotasking involved in equipment and each cooperative device;
The original encoding of graphs number including data information is generated according to the information content associated with the cooperation with service
According to, and based on cotasking involved in each cooperative device by the data information in original encoding of graphs data generated
It is divided into multiple subdata information;
Determine the incidence relation between the multiple cooperative device, and based on the incidence relation be multiple subnumbers it is believed that
Each subdata information in breath determines hierarchical relationship;And
Original encoding of graphs data generated are divided into multiple layers by the hierarchical relationship based on each subdata information
Grade formula encoding of graphs data, and each hierarchical encoding of graphs data are distributed into corresponding cooperative device to carry out at information
Reason.
After each cooperative device carries out information processing according to corresponding hierarchical encoding of graphs data, dividing device will be every
A cooperative device is combined by result caused by information processing to generate response message, and the response message is sent to
The provider of encoding of graphs data.
The dividing device is that heading message is arranged in each hierarchical encoding of graphs data, wherein each hierarchical figure is compiled
The heading message and the heading message of original encoding of graphs data generated of code data are identical, different or related.
It further include dividing device, for receiving the demal for being directed to original encoding of graphs data generated and being divided
Request;
Demal request is parsed to determine subcode quantity N;
The data information that original encoding of graphs data generated include is divided into N number of subdata information;And
Original encoding of graphs data generated are divided into N number of sub- coded data according to N number of subdata information.
Each of N number of sub- coded data is sent to corresponding user equipment by the dividing device, wherein each user
Equipment can receive at least one sub- coded data.
The dividing device is that heading message is arranged in every sub- coded data, wherein the heading message of every sub- coded data
It is identical, different or related to the heading message of original encoding of graphs data generated.
The dividing device, which receives, is directed to the demal request that specific sub- coded data is divided, and is asked according to demal
Seek grandson's coded data that the specific sub- coded data is divided into predetermined quantity.
Wherein original encoding of graphs data generated include: main calibration, system information and backup information, wherein described
System information includes size grades information and error-correction level information, and the backup information includes size grades information and error correction
Class information.
Wherein original encoding of graphs data generated further include sub- calibration.
Further include setting device, includes: the quantity of sub- coded data, sub- coded number in the configuration information of sub- coded data
According to serial number and original encoding of graphs data cryptographic Hash.
Further include setting device, includes: encoding of graphs data at the same level in the configuration information of hierarchical encoding of graphs data
Quantity, the serial number of encoding of graphs data at the same level and the cryptographic Hash of supervisory encoding of graphs data.
Wherein heading message is the summary for the data information that the encoding of graphs data generated for meeting coding ratio include
Information.
The data information of its neutron coded data include original encoding of graphs data code error-correction level and original figure
The same data message of shape coded data.
Each hierarchical encoding of graphs data in plurality of hierarchical encoding of graphs data include: higher level's encoding of graphs
The error-correction level of data and the same data message of higher level's coded data.
The configuration information further include: configuration information version number, heading message flag bit, blocking sign position and customized
Configuration data.
The configuration information further include: code block sum, current code block serial number and higher level's code block cryptographic Hash.
The heading message further includes compression flag bit.
Further include encryption device, generate the encoding of graphs data by encryption in the following manner, is not encrypted
The heading message of original encoding of graphs data generates Hash character string, using the Hash character string to the original figure
The data information of coded data carries out byte-by-byte xor operation, to by xor operation encoding of graphs data encrypted with
Generate the encoding of graphs data by encryption.
After encryption device receives the encoding of graphs data by encryption, to the encoding of graphs number by encryption
Encoding of graphs data to be processed are generated according to being decrypted, and are that the heading message of the encoding of graphs data to be processed generates
Hash character string is carried out byte-by-byte using data information of the Hash character string to the encoding of graphs data to be processed
Xor operation, to obtain not encrypted original encoding of graphs data.
The cooperation with service is the service completed jointly by multiple cooperative devices.
The structure description file of the cooperation with service is used to indicate the logical construction of the cooperation with service, and based on described
The cooperation with service can be divided into multiple sub-services by structure description file.
Each sub-services in plurality of sub-services correspond to cotasking involved in corresponding cooperative device.
Incidence relation between the multiple cooperative device includes: that relationship, superior relation, inferior relation and condition at the same level are closed
System.
The dividing device determines layer based on the incidence relation for each subdata information in multiple subdata information
Grade relationship include:
It is when incidence relation is relationship at the same level or conditional relationship, each subdata information in multiple subdata information is true
Determine hierarchical relationship and is determined as same level relationship;
It is when incidence relation is superior relation or inferior relation, each subdata information in multiple subdata information is true
Determine hierarchical relationship and is determined as different levels relationship.
In accordance with a further aspect of the present invention, a kind of mobile terminal is provided, including or for executing system as described above.
Detailed description of the invention
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is the process according to the method for carrying out information transmitting based on encoding of graphs data of the preferred embodiment for the present invention
Figure;
Fig. 2 is the schematic diagram of QR code in the prior art;
Fig. 3 is the schematic diagram according to the encoding of graphs data of the preferred embodiment for the present invention;
Fig. 4 is the integrally-built schematic diagram according to the encoding of graphs data of the preferred embodiment for the present invention;
Fig. 5 is the integrally-built schematic diagram according to the encoding of graphs data of another preferred embodiment of the present invention;
Fig. 6 is the schematic diagram divided to encoding of graphs data according to the preferred embodiment for the present invention;
Fig. 7 is the integrally-built schematic diagram according to the subcode of the preferred embodiment for the present invention;
Fig. 8 is the schematic diagram according to main calibration and the son calibration of the preferred embodiment for the present invention;
Fig. 9 is the schematic diagram according to the symbol structures of the preferred embodiment for the present invention;
Figure 10 is to be shown according to what the information for carrying out safety by encoding of graphs data of the preferred embodiment for the present invention was transmitted
It is intended to;And
Figure 11 is the knot according to the system for carrying out information transmitting based on encoding of graphs data of the preferred embodiment for the present invention
Structure schematic diagram.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to the drawings, however, the present invention can use many different shapes
Formula is implemented, and is not limited to the embodiment described herein, and to provide these embodiments be at large and fully disclose
The present invention, and the scope of the present invention is sufficiently conveyed to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings
Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached
Icon note.
Unless otherwise indicated, term (including scientific and technical terminology) used herein has person of ordinary skill in the field
It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and its
The context of related fields has consistent meaning, and is not construed as Utopian or too formal meaning.
Fig. 1 is the method 100 that information transmitting is carried out based on encoding of graphs data according to the preferred embodiment for the present invention
Flow chart.As shown in Figure 1, method 100 is since step 101 place.
In step 101, acquisition is associated with user equipment to apply description information, is determined based on the application description information
Wish multiple applications that information transmitting is carried out by encoding of graphs data.Include multiple description items using description information, each retouches
The format for stating item is<Apply Names, application type, associate device type, coded data flag bit>.For example, < Alipay, payment
Type, iOS, be>and<Alipay, Andriod, is at type of payment>for indicating that Alipay application belongs to answering for type of payment
With, and be either required in iOS operating system or Andriod operating system using encoding of graphs data.In general, can be by
The provider of application, the provider of operating system, application shop, user equipment itself are arranged description item, and will be set
Multiple description items it is associated with user equipment using description information to be formed.It follows that by using description information
In it is each description item parsing can determine wish by encoding of graphs data progress information transmitting each application.
In step 102, demand is transmitted according to the information of application each in multiple applications, determines each application by individually scheming
Shape coded data carries out required maximum fault information when information transmitting.The application passes through encoding of graphs data according to each application
Required data integrity determines that the information of each application transmits demand when carrying out information transmitting.Wherein, data integrity
It is maximum required for information is not divided completely in order to guarantee when being that each application carries out information transmitting by encoding of graphs data
Possible data volume, i.e. peak-data amount.Wherein information transmitting demand includes to meet peak value involved in data integrity
According to amount.The application determines that each application carries out information transmitting when institute by single encoding of graphs data according to the peak-data amount
The maximum fault information needed.For example, the application can using peak-data amount as maximum fault information, by the 1.2 of peak-data amount
Maximum fault information is used as maximum fault information, by 0.9 times of peak-data amount again.
In step 103, the graphical interfaces for providing encoding of graphs data of each application is parsed every to determine
A application can be used in showing the indication range of encoding of graphs data.Wherein graphical interfaces utilizes encoding of graphs for each application
The interface of data progress information transmitting.For example, the graphical interfaces for providing encoding of graphs data of Alipay includes: to indicate branch
The contents such as bar code, bank card information, membership grade, the prompt information of the two dimensional code, expression payment paid.Indication range is to scheme
For showing the range of encoding of graphs data, the i.e. region of the two dimensional code of graphical interfaces expression payment in shape interface.In the application
In, the shape of indication range is that the shape in rectangle and described image region is rectangle.That is, the shape of indication range is square
Or the rectangle and shape in described image region is square or rectangle.As shown in figure 3, the shape of indication range is rectangular
Shape and the shape in described image region are rectangle.
In step 104, determined based on the indication range for showing encoding of graphs data and maximum fault information each
Using the coding ratio of the image-region for encoding of graphs data.Wherein based on described for showing the aobvious of encoding of graphs data
Demonstration, which is enclosed, determines that coding ratio of each application for the image-region of encoding of graphs data comprises determining that institute with maximum fault information
State the length and width for showing the indication range of encoding of graphs data.Currently, the shape of mobile terminal (for example, mobile phone) with
Rectangle or approximate rectangular shape are in the majority.For this purpose, the display plane of the display screen of mobile terminal is also usually rectangle
Or there is width and length in approximate rectangle, i.e. mobile terminal and display screen.In general, length is greater than width, and
Length and width will not be changed with the horizontal and longitudinal of mobile terminal in the application.Indication range determined by the application
Length and width can be used for display encoding of graphs data maximum display area or range.
Determine that image-region lateral of each application for encoding of graphs data is compiled according to the width of the indication range
Number of codes.The transverse direction for being commonly used for the image-region of encoding of graphs data encodes occupied width and is less than indication range
Width.As shown in figure 3, the width laterally encoded is, for example, two main calibration 311-1 for being located at image coded data upper part
The distance between 311-2 (including itself), and the width longitudinally encoded is, for example, to be located at image coded data upper part
The distance between two main calibration 311-2 and 311-3 (including itself).It will be appreciated that when encoding of graphs data are wrapped
When the data information contained is less, the width of encoding of graphs data will not take the width of indication range.That is, the indication range
Width is considered maximum width of each application for the image-region of encoding of graphs data, and is based on image-region
Maximum width and the size of symbol (or 1/4 symbol) determine the maximum quantity laterally encoded.
Image of each application for encoding of graphs data is determined according to the length of the indication range and maximum fault information
Longitudinal group/cording quantity in region.Wherein determine each application for figure according to the length of the indication range and maximum fault information
Longitudinal group/cording quantity of the image-region of coded data includes: to determine the vertical of pre-selection according to maximum fault information and lateral group/cording quantity
To group/cording quantity.Maximum fault information involved in the data information of encoding of graphs data has determined the area of encoding of graphs data,
For example, the size based on maximum fault information and symbol (or 1/4 symbol) can determine the area of encoding of graphs data.For example,
It, can be according to the length of indication range in the determined situation of lateral group/cording quantity for the image-region of encoding of graphs data
Degree and maximum fault information determine longitudinal group/cording quantity of each application for the image-region of encoding of graphs data.This is because single
The maximum fault information of a encoding of graphs data can determine the code element number of this encoding of graphs data, and according to code element number and cross
Longitudinal group/cording quantity can be determined to group/cording quantity.
When the length for determining the indication range can accommodate longitudinal group/cording quantity of the pre-selection, by the pre-selection
Longitudinal group/cording quantity is determined as longitudinal group/cording quantity of each application for the image-region of encoding of graphs data.Described in determination
When the length of indication range cannot accommodate longitudinal group/cording quantity of the pre-selection, the longitudinal volume of the maximum that indication range can be accommodated
Code data are determined as longitudinal group/cording quantity of each application for the image-region of encoding of graphs data.
It will be appreciated that being directed to single encoding of graphs data, (1/4 symbol is encoding of graphs number for symbol or 1/4 symbol
According to primitive, represent 1 or size (display size or present in size) 0) it is smaller, then single encoding of graphs data institute
The information (system information, heading message and data information) that can be accommodated is more.
Image-region of each application for encoding of graphs data is determined based on lateral group/cording quantity and longitudinal group/cording quantity
Coding ratio.For example, specific application transverse direction group/cording quantity is 62 and longitudinal group/cording quantity 100, then specific application
The coding ratio of image-region for encoding of graphs data is 0.62.In the preferred embodiment of the application, coding ratio
It is 0.618.
In step 105, when the specific application in multiple applications is desired with information transmitting, the specific application generates symbol
Close the original encoding of graphs data of the coding ratio, and based on meet the original encoding of graphs data of coding ratio into
Row information transmitting.Meet coding ratio original encoding of graphs data may include three it is main calibration, system information area and
Backup information region.Wherein three main calibrations are for determining the position of encoding of graphs data for code reader or decoder.Main calibration
It is responsible for the positioning of image recognition and encoding of graphs data.
System information area includes two code elements, and wherein each code element can indicate 4 binary data bits or bit.System
System information area indicates the size grades of encoding of graphs data using 6 bits, i.e. 0-63 grades, and using 2 bits come
The error-correction level of expression encoding of graphs data, i.e. 0-3 grades.System information area is located at the upper left corner of encoding of graphs data.Backup
Information area is identical with the curriculum offering of system information area, and the system information area of identical encoding of graphs data and
Content in backup information region is identical.Backup information region is located at the lower right corner of encoding of graphs data.It will be appreciated that standby
Part information area and system information area can be arranged at any rational position of encoding of graphs data.
In addition, meeting the original encoding of graphs data of coding ratio can also calibrate including son, and the number of son calibration
Amount can be 0 or at least one.Son calibration carries out the coded data in encoding of graphs data for carrying out auxiliary positioning
Auxiliary positioning.For example, son calibrates the symbol positioning being responsible in encoding of graphs data.When the information that encoding of graphs data are transmitted is got over
When more, the quantity of required sub- calibration is more.
The original encoding of graphs data for meeting coding ratio include: configuration information, heading message and data information.Configuration
Information may include the following contents: version number, heading message flag bit, blocking sign position, data information configuration, user are customized
Configuration data, heading message configuration and piecemeal configuration information.Wherein version number occupies 2 bits: version number (0- from 00 to 11
3) 4 versions, can be indicated altogether.1 bit of heading message mark bit occupancy: heading message has been identified whether: 1- > have title;0->
No title.1 bit of blocking sign bit occupancy: for identifying whether present image coded data is piecemeal: 1- > current Graphics coding
Data are subcodes;0- > current Graphics coded data is female code.User custom-configures data and occupies 2: from 00 to 11 (0-3),
4 kinds of customized configuration data versions can be indicated altogether.
Data information configuration occupies 16 and includes: cipher mode, zip flag bit, data type and data length.
Wherein cipher mode occupies 2: 00- > unencryption;01- > default AESCTR encryption;10- > system is reserved;11- > user is customized
Encryption.Zip indicates that 1: 1- > content of bit occupancy is the encrypted coding of zip;0- > content is normal encoding.Data type occupies
1: 0- > UTF-8 text;1- > binary system.Data length occupies 12: being used to indicate byte information included by data information
(maximum 4095 bytes).
Heading message configuration occupies 9 and includes: zip flag bit and data length.Wherein zip indicates bit occupancy 1:
1- > encrypted the coding of entitled zip;0- > entitled normal encoding.Data length occupies 8: being used to indicate heading message institute
Including byte information (maximum 255 bytes).
Piecemeal configuration information occupies 70 and includes: the cryptographic Hash of block sum, block number and mother tuber.Wherein block sum
(subcode sum) occupies 3: from 000 to 111 (0-7), can indicate 8 numbers of blocks, 000- > totally 1 piece altogether;001- > totally 2
Block;…….Block number (subcode serial number) occupies 3: from 000 to 111 (0-7), representing current block number index, 000- > 1st piece;
001- > 2nd piece;…….Mother tuber cryptographic Hash occupy 64: for identification multiple sub-blocks whether be same mother tuber sub-block and knowledge
Whether the mother tuber of small pin for the case merged block is correct.Wherein 64 cryptographic Hash can by 128 cryptographic Hash carry out selectivity interception come
It obtains.
Heading message is used to indicate the title of the encoding of graphs data as female code or the encoding of graphs data as subcode.
Data information is as transmitting/expression data desired by the encoding of graphs data of female code or the encoding of graphs data as subcode
Content.
The application further include in original encoding of graphs data heading message and/or data information compressed with life
At the encoding of graphs data through overcompression, the area of the encoding of graphs data through overcompression is less than or equal to described original
The area of encoding of graphs data.For example, by zip mode to the heading message and/or data in original encoding of graphs data
The area that information is compressed the encoding of graphs data to generate the encoding of graphs data through overcompression, by zip compression is less than
Or the area equal to the original encoding of graphs data.This is because after heading message and/or data information are compressed, it may
The length or width that will lead to encoding of graphs data shortens.The application further includes the encoding of graphs data based on described through overcompression
Carry out information transmitting.
The application carries out structure elucidation to data information, is divided into the data information according to the result of structure elucidation more
A information subset.Wherein the structure elucidation includes semantic structure parsing and separator configuration parsing.When the structure elucidation is
When semantic structure parses, structure elucidation is carried out to the information content to be passed, according to the result of structure elucidation will it is described to
It includes: to carry out semantic structure parsing to the information content to be passed that the information content of transmitting, which is divided into multiple information subsets,
To generate multiple semantic structure subelements;The information content to be passed is divided according to the multiple semantic structure subelement
For multiple information subsets.When the structure elucidation is that separator configuration parses, the information content to be passed is tied
Structure parsing, it includes: to described that the information content to be passed, which is divided into multiple information subsets, according to the result of structure elucidation
The information content to be passed is separated symbol structure elucidation, to generate multiple separator configuration subelements;According to the multiple point
The information content to be passed is divided into multiple information subsets every symbol structural sub-units.
The data information area of not encrypted original encoding of graphs data is divided into according to each information subset more
Sub-regions, and encryption unit and cipher mode are determined for each subregion.Be directed to each subregion, using encryption unit as
Minimum encryption object simultaneously encrypts each encryption unit according to cipher mode, to generate the encoding of graphs number by encryption
According to.That is, not encrypted original encoding of graphs data, which are divided into multiple objects, carries out identical or different encryption.Replacement
Ground, the application are also that not encrypted original encoding of graphs data determine encryption unit and cipher mode;And it will encryption list
Member encrypts each encryption unit as minimum encryption object and according to cipher mode, is compiled with generating by the figure encrypted
Code data.It is encrypted that is, not encrypted original encoding of graphs data are dealt with objects as a whole.
In addition, the cipher mode of each encryption unit is same or different.Cipher mode is by offer encoding of graphs
Predetermined or described cipher mode of provider's (for example, the coding side of formulationing, encode alliance etc.) of data is according to using
The demand of the user of encoding of graphs data determines.The encryption unit be single encoded unit, multiple coding units or
Data block.In this application, single encoded unit can be symbol as shown in Figure 9.Data block can be according to semanteme or divide
Symbol is cut from data acquisition system selected in data information.
Wherein the coding unit of original encoding of graphs data generated is round, rectangle or ellipse, such as Fig. 3 institute
Show.
The application promotes the provider of encoding of graphs data to receive the information process request for being directed to cooperation with service, wherein institute
State the structure description file that information process request includes associated with the cooperation with service information content and the cooperation with service.
Cooperation with service is the service completed jointly by multiple cooperative devices.Wherein when the provider of encoding of graphs data determine it is generated
When encoding of graphs data are related to cooperation with service, the information process request for being directed to cooperation with service is generated.With the cooperation with service phase
The associated information content is mission bit stream required in order to complete the cooperation with service.The structure description file of cooperation with service is used
In the logical construction for indicating the cooperation with service, and the cooperation with service can be divided into based on the structure description file more
A sub-services.Each sub-services in plurality of sub-services correspond to cotasking involved in corresponding cooperative device.
The structure description file of the cooperation with service is parsed with multiple associations involved in the determination cooperation with service
With cotasking involved in equipment and each cooperative device, specifically include: to the structure description file of the cooperation with service into
Row parsing is with multiple sub-services of the determination cooperation with service;Determine that collaboration involved in each sub-services is set in multiple sub-services
It is standby;The service content of each sub-services is parsed to determine cotasking;And it determines involved in each cooperative device
Cotasking.
The original encoding of graphs number including data information is generated according to the information content associated with the cooperation with service
According to, and based on cotasking involved in each cooperative device by the data information in original encoding of graphs data generated
It is divided into multiple subdata information.Wherein being generated according to the information content associated with the cooperation with service includes data information
Original encoding of graphs data include: and to generate using the information content associated with the cooperation with service as data information
Original encoding of graphs data including the data information.It wherein will be former based on cotasking involved in each cooperative device
Data information in the encoding of graphs data of beginning be divided into multiple subdata information comprise determining that with involved by each cooperative device
The associated synergistic data of cotasking;Synergistic data based on each cooperative device will be in original encoding of graphs data
Data information is divided into multiple subdata information.
Determine the incidence relation between the multiple cooperative device, and based on the incidence relation be multiple subnumbers it is believed that
Each subdata information in breath determines hierarchical relationship.Incidence relation between the multiple cooperative device include: relationship at the same level,
Superior relation, inferior relation and conditional relationship.Based on the incidence relation be multiple subdata information in each subnumber it is believed that
It ceases and determines that hierarchical relationship includes: when incidence relation is relationship at the same level or conditional relationship, by each of multiple subdata information
Subdata information determines that hierarchical relationship is determined as same level relationship;It, will when incidence relation is superior relation or inferior relation
Each subdata information in multiple subdata information determines that hierarchical relationship is determined as different levels relationship.
Original encoding of graphs data generated are divided into multiple layers by the hierarchical relationship based on each subdata information
Grade formula encoding of graphs data, and each hierarchical encoding of graphs data are distributed into corresponding cooperative device to carry out at information
Reason.The application is that heading message is arranged in each hierarchical encoding of graphs data, wherein the mark of each hierarchical encoding of graphs data
It inscribes information and the heading message of original encoding of graphs data generated is identical, different or related.
After each cooperative device carries out information processing according to corresponding hierarchical encoding of graphs data, each collaboration is set
It is standby to be combined by result caused by information processing to generate response message, the response message is sent to encoding of graphs
The provider of data.
Alternatively, the application reception is directed to the demal that original encoding of graphs data generated are divided and asks
It asks.Demal request is parsed to determine subcode quantity N.The number for including by original encoding of graphs data generated
It is believed that breath is divided into N number of subdata information.Original encoding of graphs data generated are divided into according to N number of subdata information
N number of sub- coded data.Each of N number of sub- coded data is sent to corresponding user equipment, wherein each user equipment energy
Enough receive at least one sub- coded data.The application is that heading message is arranged in every sub- coded data, wherein every sub- coded number
According to heading message and the heading message of original encoding of graphs data generated it is identical, different or related.Reception is directed to
The request of demal that specific sub- coded data is divided, and according to demal request for the specific sub- coded data to be divided into pre-
Grandson's coded data of fixed number amount.
It will be appreciated that the data information in the moon original encoding of graphs data can be equally divided into N one's share of expenses for a joint undertaking information,
And each of N number of sub- coded data is formed using each one's share of expenses for a joint undertaking information in N one's share of expenses for a joint undertaking information.N one's share of expenses for a joint undertaking information has first
Sequence afterwards, this sequencing depend on the content of data information, i.e. N one's share of expenses for a joint undertaking information is capable of forming after being combined according to serial number
Data information is without modification sequence.Furthermore, it is possible to which the data information in original encoding of graphs data is divided into N unequally
One's share of expenses for a joint undertaking information.Alternatively, can be according to semantic structure, separator configuration etc. by the data information in original encoding of graphs data
It is divided into N one's share of expenses for a joint undertaking information.
By explanation above it is found that multiple hierarchical encoding of graphs data can be located at different ranks, wherein each
Encoding of graphs data can at most be divided into the encoding of graphs data as subcode of predetermined quantity.To original encoding of graphs number
The next rank for being located at the original encoding of graphs data according to obtained hierarchical encoding of graphs data divide.To spy
Fixed hierarchical encoding of graphs data, which carry out dividing obtained new hierarchical encoding of graphs data, is located at the specific layer
Next rank of grade formula encoding of graphs data.In another example original encoding of graphs data at most can be with when group number of codes N is 8
It is divided into 8 sub- coded datas, and every sub- coded data can at most be divided into 8 grandson's coded datas, and so on.
In this application, meet original encoding of graphs data, the original encoding of graphs data, original graph of coding ratio
Shape coded data, the original encoding of graphs data generated for meeting coding ratio, original encoding of graphs number generated
It may refer to same content according to, original figure coded data generated.
Wherein original encoding of graphs data generated include: main calibration, system information and backup information, wherein described
System information includes size grades information and error-correction level information, and the backup information includes size grades information and error correction
Class information.Original encoding of graphs data generated further include sub- calibration.
As described above, the application can be arranged in the configuration information of sub- coded data: the quantity of sub- coded data, sub- volume
The code serial number of data and the cryptographic Hash of original encoding of graphs data.Configuration information of the application in hierarchical encoding of graphs data
In include: encoding of graphs data at the same level quantity, the serial number of encoding of graphs data at the same level and the Kazakhstan of supervisory encoding of graphs data
Uncommon value.
Heading message is the summary info for the data information that the encoding of graphs data generated for meeting coding ratio include.
The data information of sub- coded data includes the code error-correction level and original encoding of graphs data of original encoding of graphs data
Same data message.Each hierarchical encoding of graphs data in plurality of hierarchical encoding of graphs data include: higher level's figure
The error-correction level of shape coded data and the same data message of higher level's coded data.The configuration information further include: configuration information
Version number, heading message flag bit, blocking sign position and custom-configure data.The configuration information further include: code block is total
Several, current code block serial number and higher level's code block cryptographic Hash.The heading message further includes compression flag bit.
The application further includes generating the encoding of graphs data by encryption in the following manner, is not encrypted original
Encoding of graphs data heading message generate Hash character string, using the Hash character string to the original encoding of graphs
The data information of data carries out byte-by-byte xor operation, is encrypted the encoding of graphs data by xor operation to generate
Encoding of graphs data by encryption.After receiving the encoding of graphs data by encryption, to the figure by encryption
Shape coded data is decrypted to generate encoding of graphs data to be processed, is the title of the encoding of graphs data to be processed
Information generates Hash character string, is carried out using data information of the Hash character string to the encoding of graphs data to be processed
Byte-by-byte xor operation, to obtain not encrypted original encoding of graphs data.
Fig. 3 is the schematic diagram according to the encoding of graphs data 300 of the preferred embodiment for the present invention.As shown in figure 3, the application
Encoding of graphs data 310 and 320 can also be referred to as moon code.The symbol of month code 310 is circle, and the symbol of moon code 320
It is square or rectangular.In encoding of graphs data 310, main calibration 311-1,311-2 and 311-3 are used to be code reader or decoding
Device determines the position of encoding of graphs data.Son calibration 312 is for carrying out auxiliary positioning, i.e., to the coded number in encoding of graphs data
According to progress auxiliary positioning.Coded data 313 is for indicating system information, backup information, configuration information, data information etc..Scheming
In shape coded data 320, main calibration 321-1,321-2 and 321-3 are used to determine encoding of graphs data for code reader or decoder
Position.Son calibration 322 carries out auxiliary positioning to the coded data in encoding of graphs data for carrying out auxiliary positioning.It compiles
Code data 323 are for indicating system information, backup information, configuration information, data information etc..
Fig. 4 is the integrally-built schematic diagram according to the encoding of graphs data of the preferred embodiment for the present invention.Such as Fig. 4 institute
Show, the moon code 400 may include three main calibrations, system information area and backup information region.Wherein three it is main calibration for for
Code reader or decoder determine the position of encoding of graphs data.System information area include two code elements (using round symbol as
Example), wherein each code element can indicate 4 binary data bits or bit.System information area is indicated using 6 bits
The size grades of encoding of graphs data, i.e. 0-63 grade, and indicate using 2 bits the error-correction level of encoding of graphs data,
That is 0-3 grades.System information area is located at the upper left corner of encoding of graphs data.The content in backup information region and system information area
It is arranged identical, and the system information area of identical encoding of graphs data is identical with the content in backup information region.It is standby
Part information area is located at the lower right corner of encoding of graphs data.It will be appreciated that backup information region and system information area can
To be arranged at any rational position of encoding of graphs data.
Fig. 5 is the integrally-built schematic diagram according to the encoding of graphs data of another preferred embodiment of the present invention.Month code
500 include: configuration information, heading message and data information.Configuration information may include the following contents: version number, heading message
Flag bit, blocking sign position, data information configuration, user custom-configure data, heading message configuration and piecemeal with confidence
Breath.Heading message be used to indicate as female code the moon code or as subcode the moon code title.Data information is as female code
Month code or moon transmitting/expression data content desired by code as subcode.
Fig. 6 is the schematic diagram that encoding of graphs data divide with 600 according to the preferred embodiment for the present invention.Such as Fig. 6
Shown, the application, which receives, is directed to the demal request that moon code 601 generated is divided.Demal request is parsed
To determine subcode quantity 8.The data information that moon code 601 generated includes is divided into 8 sub- data informations.According to 8 sons
Moon code 601 generated is divided into 8 subcode 611-618 by data information.Each of 8 subcode 611-618 are sent to
Corresponding user equipment, wherein each user equipment can receive at least one subcode.The application is that title is arranged in each subcode
Information, wherein the heading message of each subcode is identical, different or related to the heading message of moon code 601 generated.Receive needle
For the demal request that specific subcode is divided, and requested the specific subcode being divided into predetermined quantity according to demal
Grandson's coded data.
Month code 601 can at most be divided into 8 subcode 611-618, and each subcode can at most be divided into 8 grandsons' codes, with this
Analogize.It will be appreciated that the data information in moon code 601 can be equally divided into 8 one's share of expenses for a joint undertaking information, and believed using 8 one's shares of expenses for a joint undertaking
Each one's share of expenses for a joint undertaking information in breath forms each of 8 subcode 611-618.8 one's share of expenses for a joint undertaking information have sequencing, this is successively
Order dependent in the content of data information, i.e. 8 one's share of expenses for a joint undertaking information be capable of forming after being combined according to serial number data information without
Modification sequence.Furthermore, it is possible to which the data information in moon code 601 is divided into 8 one's share of expenses for a joint undertaking information unequally.Alternatively, can be according to language
Data information in moon code 601 is divided into 8 one's share of expenses for a joint undertaking information by adopted structure, separator configuration etc..
Fig. 7 is the integrally-built schematic diagram according to the subcode of the preferred embodiment for the present invention.Subcode 700 may include three
A main calibration 701, system information area 702 and backup information region 706.Wherein three main calibrations 701 for for code reader or
Decoder determines the position of subcode 700.System information area 702 includes two code elements, and wherein each code element can indicate 4 two
Binary data position or bit.System information area 702 indicates the size grades of subcode 700 using 6 bits, i.e. 0-63 grades,
And the error-correction level of subcode 700 is indicated using 2 bits, i.e. 0-3 grades.System information area 702 is located at a left side for subcode 700
Upper angle.Backup information region 706 is identical with the curriculum offering of system information area 702, and the system of identical subcode 700
Information area 702 is identical with the content in backup information region 706.Backup information region 706 is located at the lower right corner of subcode 700.
It will be appreciated that backup information region 706 and system information area 702 can be arranged on any reasonable position of subcode 700
Set place.
The configuration information 703 of subcode 700 may include the following contents: subcode sum occupies 3: from 000 to 111 (0-7),
It can indicate 8 sub- number of codes altogether, totally 1 subcode of 000- >;Totally 2 subcodes of 001- >;…….Subcode number occupies 3: from 000
To 111 (0-7), current subcode number index, the subcode of 000- > the 1st are represented;The subcode of 001- > the 2nd;…….Female code cryptographic Hash occupies 64
Position: whether multiple subcodes are the subcodes of same female code and identify whether female code of subcode merging is correct for identification.Wherein 64
Position cryptographic Hash can be obtained by carrying out selectivity interception to 128 cryptographic Hash.
About the heading message 704 of subcode, wherein the heading message 704 of each subcode can be different, and can carry out
It is customized.Data information 705 includes the code error-correction level of moon code 700 and the same data message of moon code 700.
Fig. 8 is the schematic diagram according to main calibration and the son calibration of the preferred embodiment for the present invention.As shown in figure 8, in frame 800
In, main calibration 801 and 802 is for determining the position of moon code for code reader or decoder.Son calibration 802 and 804 is auxiliary for carrying out
Positioning is helped, i.e., auxiliary positioning is carried out to the coded data in moon code.It is main calibration 801 use circular pattern, and monochrome pixels it
Between width ratio be 1:1:5:1:1.Main calibration 803 uses square pattern, and the width ratio between monochrome pixels is
1:1:5:1:1.Son calibration 802 uses circular pattern, and the width ratio between monochrome pixels is 1:1:2:1:1.Son calibration
802 use square pattern, and the width ratio between monochrome pixels is 1:1:2:1:1.
Fig. 9 is the schematic diagram according to the symbol structures 900 of the preferred embodiment for the present invention.As shown in figure 9, according to moon code
Round four part of symbol is 1,2,3 and 4 since the upper left corner (the second quadrant) clockwise.As shown in figure 9, different figures
Case respectively represent different numerical value 0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,
1011,1100,1101,1110 and 1111.It will be appreciated that the application is illustrated using round symbol as example, code
Any Reasonable Shapes such as member can be square, rectangle, ellipse.In addition, the encoding of graphs data (moon code) of the application
Feature is the various processing such as to be encoded, decoded, encrypted, is grouped as unit of symbol, and encoding of graphs number in the prior art
It is encoded or is decoded for unit according to being 1,2,3 or 4 with single minimum unit, such as in Fig. 9.By as unit of symbol into
The benefit of the various processing such as row coding, decoding, encryption, grouping is can disposably to handle four bits, so as to improve
The efficiency of the various processing such as coding, decoding, encryption, grouping.
Figure 10 is the information transmitting 1000 that safety is carried out by encoding of graphs data according to the preferred embodiment for the present invention
Schematic diagram.As shown in Figure 10, the transmitting of security information can be preferably carried out by moon code.For example, the case where not encrypting
Under, pass through the content for the information that heading message " moon code, different two dimensional code " can prompt user to be transmitted.It is being encrypted
In the case where, prompt user's input close by heading message " come here, look back I lower first short message, password you understand "
Code.When the password of user's input is correct, moon code can be decrypted to obtain the information that moon code is transmitted.When user inputs
Password bad when, moon code can not be decrypted, so that the information that moon code is transmitted is kept safe.
According to the preferred embodiment of the application, the moon code have a characteristic that
The moon, code shape was rectangle, and wide high proportion is 0.618 or so, can make full use of mobile phone screen space;
Month code is integrally divided into three parts: system information, heading message, data information;
Two kinds of formats of moon code data information support: text, binary system;
The heading message and data information of month code support UTF-8 text, support emoji expression, the information content covered more complete;
Month code reduces the area of moon code using zip compression heading message and data information;
The moon, the data information of code can encrypt, and default encryption algorithm is AES CTR, can customize other encryption formats;
User can add in moon code and custom-configure information;
One month code can be split as most 8 subcodes, and a subcode can also be disassembled further as 8 subcodes, energy nothing
Limit splits.Only gather together enough all subcodes, can just be combined into female code;And
Moon code support is anti-tamper, prevents other people from distorting the information in moon code.
Image recognition and the positioning of moon code are responsible in the moon main calibration of code.The symbol positioning in moon code is responsible in the moon calibration of code.
Data storage levels are as shown in table 1:
Table 1
The error-correction level of month code is as shown in table 2:
Table 2
The data memory range of month code after error correction is as shown in table 3:
Table 3
The calibration queueing discipline of month code is as shown in table 4:
Table 4
The configuration information structure of month code are as follows:
Wherein
Version number occupies 2 bits: version number (0-3) from 00 to 11 can indicate altogether 4 versions:
Whether there is heading message to occupy 1 bit: having identified whether heading message: 1- > have title;0- > no title;
Whether be that piecemeal occupies 1 bit: for identifying whether present image coded data is piecemeal: 1- > current Graphics are compiled
Code data are subcodes;0- > current Graphics coded data is female code;
User custom-configures data and occupies 2: from 00 to 11 (0-3), can indicate 4 kinds of customized configuration datas altogether
Version;
Data information configuration occupies 16 and includes: cipher mode, zip flag bit, data type and data length;
Heading message configuration occupies 9 and includes: zip flag bit and data length;
Piecemeal configuration information occupies 70 and includes: the cryptographic Hash of block sum, block number and mother tuber;
Heading message is used to indicate the title of the encoding of graphs data as female code or the encoding of graphs data as subcode;
And
Data information is as transmitting/table desired by the encoding of graphs data of female code or the encoding of graphs data as subcode
The data content reached.
Wherein, heading message configuration, piecemeal configuration information and heading message are options.
Blocking information structure are as follows:
Block sum 3 | Block number 3 | The hash value of mother tuber 64 |
Wherein
Block sum (subcode sum) occupies 3: from 000 to 111 (0-7), can indicate 8 numbers of blocks, 000- > totally 1 piece altogether;
001- > totally 2 pieces;……;
Block number (subcode serial number) occupies 3: from 000 to 111 (0-7), representing current block number index, 000- > 1st piece;
001- > 2nd piece;……;And
Mother tuber cryptographic Hash occupies 64: whether multiple sub-blocks are the sub-blocks of same mother tuber and identify that sub-block is closed for identification
And mother tuber it is whether correct.Wherein 64 cryptographic Hash can be obtained by carrying out selectivity interception to 128 cryptographic Hash.
Heading message structure are as follows:
Whether zip 1 | Data length 8 (maximum 255 bytes) |
Wherein
Whether zip occupies 1: the 1- > entitled encrypted coding of zip;0- > entitled normal encoding;And
Data length occupies 8: being used to indicate byte information included by heading message (maximum 255 bytes).
Data information structure are as follows:
Cipher mode 2 | Whether zip 1 | Data type 1 | Data length 12 (4095 byte of maximum length) |
Wherein
Cipher mode occupies 2: 00- > unencryption;01- > default AESCTR encryption;10- > system is reserved;11- > user is certainly
Definition encryption;
It is the encrypted coding of zip that whether zip, which occupies 1: 1- > content,;0- > content is normal encoding;
Data type occupies 1: 0- > UTF-8 text;1- > binary system;And
Data length occupies 12: being used to indicate byte information included by data information (maximum 4095 bytes).
The fixation mask of month code is as shown in table 5:
Table 5
The encoding of graphs data (for example, moon code) of the application have tamper-proof mechanisms.
Anti-tamper purpose:
The moon, code included heading message and data information, and after generating moon code, two data must be mutually matched, and be needed
It prevents other people from one of data being modified and forges new moon code.
Anti-tamper condition:
Only for the moon code comprising data information without anti-tamper, front-month code must include heading message and data information.Month code
Data information must be encryption
Tamper-resistant manner:
It generates moon code: being gone here and there using the hash that heading message generates 128, before ciphered data information, use this hash
String encrypts the whole byte-by-byte carry out xor operation of data information to this data again later.
Interpret moon code: after ciphertext data information, the 128 hash string generated using heading message is to data information entirety
Byte-by-byte carry out xor operation, restoring data information.
The application example of the encoding of graphs data (for example, moon code) of the application includes:
Encryption information is propagated using two dimensional code;
Using picture, the encrypted transmission information between different software;
Group's certification, assembly line certification, quality authentication are carried out using subcode;And
Secure payment etc..
Figure 11 is the system 1100 that information transmitting is carried out based on encoding of graphs data according to the preferred embodiment for the present invention
Structural schematic diagram.As shown in figure 11, system 1100 includes: acquisition device 1101, information content determining device 1102, range determination
Device 1103, ratio-dependent device 1104, transfer device 1105, demand determining device 1106, compression set 1107, encryption device
1108, dividing device 1109 and setting device 1110.
The acquisition of acquisition device 1101 is associated with user equipment to apply description information, true based on the application description information
The fixed multiple applications for wishing to carry out information transmitting by encoding of graphs data.It include multiple description items using description information, each
The format for describing item is<Apply Names, application type, associate device type, coded data flag bit>.For example, < Alipay, branch
Pay type, iOS, be>and<Alipay, Andriod, is at type of payment>for indicating that Alipay application belongs to type of payment
Using, and be either required in iOS operating system or Andriod operating system using encoding of graphs data.In general, can be with
Description item is set by the provider of the provider, operating system that apply, application shop, user equipment itself, and will be set
The multiple description items set are associated with user equipment using description information to be formed.It follows that by application description letter
The parsing of each description item can determine each application for wishing that information transmitting is carried out by encoding of graphs data in breath.
Information content determining device 1102 transmits demand according to the information of application each in multiple applications, determines that each application is logical
It crosses single encoding of graphs data and carries out required maximum fault information when information transmitting.The application utilizes demand determining device 1106
Required data integrity determines each application when carrying out information transmitting by encoding of graphs data according to each application
Information transmits demand.Wherein, when data integrity is that each application carries out information transmitting by encoding of graphs data, in order to guarantee
Maximum possible data amount, i.e. peak-data amount required for information is not divided completely.Wherein information transmitting demand include in order to
Meet peak-data amount involved in data integrity.Information content determining device 102 determines each according to the peak-data amount
Required maximum fault information when using by the progress information transmitting of single encoding of graphs data.For example, the application can be by peak
Value Data amount as maximum fault information, by 1.2 times of peak-data amount as maximum fault information, by 0.9 times of peak-data amount
As maximum fault information.
Ranges determination device 1103 to each application for provide the graphical interfaces of encoding of graphs data parsed with
Determine that each application can be used in showing the indication range of encoding of graphs data.Wherein graphical interfaces is that utilizing for each application is schemed
The interface of shape coded data progress information transmitting.For example, the graphical interfaces for providing encoding of graphs data of Alipay includes:
The contents such as the two dimensional code for indicating payment, bar code, bank card information, membership grade, the prompt information for indicating payment.Indication range
It is in graphical interfaces for showing the range of encoding of graphs data, the i.e. region of the two dimensional code of graphical interfaces expression payment.?
In the application, the shape of indication range is that the shape in rectangle and described image region is rectangle.That is, the shape of indication range is
The shape in square or rectangular and described image region is square or rectangle.As shown in figure 3, the shape of indication range
It is rectangle for rectangle and the shape in described image region.
Ratio-dependent device 1104 is based on described for showing that the indication range of encoding of graphs data and maximum fault information are true
The coding ratio of image-region of the fixed each application for encoding of graphs data.Wherein based on described for showing encoding of graphs number
According to indication range and maximum fault information determine that the coding ratio of image-region of each application for encoding of graphs data includes:
It determines described for showing the length and width of the indication range of encoding of graphs data.Currently, mobile terminal (for example, mobile phone)
Shape is in the majority with rectangle or approximate rectangular shape.For this purpose, the display plane of the display screen of mobile terminal is also usually
There is width and length in rectangle or approximate rectangle, i.e. mobile terminal and display screen.In general, length is greater than width,
And length and width will not be changed with the horizontal and longitudinal of mobile terminal in this application.It is shown determined by the application
The length and width enclosed of demonstrating can be used for maximum display area or the range of display encoding of graphs data.
Determine that image-region lateral of each application for encoding of graphs data is compiled according to the width of the indication range
Number of codes.The transverse direction for being commonly used for the image-region of encoding of graphs data encodes occupied width and is less than indication range
Width.As shown in figure 3, the width laterally encoded is, for example, two main calibration 311-1 for being located at image coded data upper part
The distance between 311-2 (including itself), and the width longitudinally encoded is, for example, to be located at image coded data upper part
The distance between two main calibration 311-2 and 311-3 (including itself).It will be appreciated that when encoding of graphs data are wrapped
When the data information contained is less, the width of encoding of graphs data will not take the width of indication range.That is, the indication range
Width is considered maximum width of each application for the image-region of encoding of graphs data, and is based on image-region
Maximum width and the size of symbol (or 1/4 symbol) determine the maximum quantity laterally encoded.
Image of each application for encoding of graphs data is determined according to the length of the indication range and maximum fault information
Longitudinal group/cording quantity in region.Wherein determine each application for figure according to the length of the indication range and maximum fault information
Longitudinal group/cording quantity of the image-region of coded data includes: to determine the vertical of pre-selection according to maximum fault information and lateral group/cording quantity
To group/cording quantity.Maximum fault information involved in the data information of encoding of graphs data has determined the area of encoding of graphs data,
For example, the size based on maximum fault information and symbol (or 1/4 symbol) can determine the area of encoding of graphs data.For example,
It, can be according to the length of indication range in the determined situation of lateral group/cording quantity for the image-region of encoding of graphs data
Degree and maximum fault information determine longitudinal group/cording quantity of each application for the image-region of encoding of graphs data.This is because single
The maximum fault information of a encoding of graphs data can determine the code element number of this encoding of graphs data, and according to code element number and cross
Longitudinal group/cording quantity can be determined to group/cording quantity.
When the length for determining the indication range can accommodate longitudinal group/cording quantity of the pre-selection, by the pre-selection
Longitudinal group/cording quantity is determined as longitudinal group/cording quantity of each application for the image-region of encoding of graphs data.Described in determination
When the length of indication range cannot accommodate longitudinal group/cording quantity of the pre-selection, the longitudinal volume of the maximum that indication range can be accommodated
Code data are determined as longitudinal group/cording quantity of each application for the image-region of encoding of graphs data.
It will be appreciated that being directed to single encoding of graphs data, (1/4 symbol is encoding of graphs number for symbol or 1/4 symbol
According to primitive, represent 1 or size (display size or present in size) 0) it is smaller, then single encoding of graphs data institute
The information (system information, heading message and data information) that can be accommodated is more.
Image-region of each application for encoding of graphs data is determined based on lateral group/cording quantity and longitudinal group/cording quantity
Coding ratio.For example, specific application transverse direction group/cording quantity is 62 and longitudinal group/cording quantity 100, then specific application
The coding ratio of image-region for encoding of graphs data is 0.62.In the preferred embodiment of the application, coding ratio
It is 0.618.
Transfer device 1105 is used to promote described specific when the specific application in multiple applications is desired with information transmitting
Meet the original encoding of graphs data of the coding ratio using generation, and based on the original figure for meeting coding ratio
Coded data carries out information transmitting.The original encoding of graphs data for meeting coding ratio may include three main calibrations, systems
Information area and backup information region.Wherein three main calibrations are for determining the position of encoding of graphs data for code reader or decoder
It sets.It is main to calibrate the positioning for being responsible for image recognition and encoding of graphs data.
System information area includes two code elements, and wherein each code element can indicate 4 binary data bits or bit.System
System information area indicates the size grades of encoding of graphs data using 6 bits, i.e. 0-63 grades, and using 2 bits come
The error-correction level of expression encoding of graphs data, i.e. 0-3 grades.System information area is located at the upper left corner of encoding of graphs data.Backup
Information area is identical with the curriculum offering of system information area, and the system information area of identical encoding of graphs data and
Content in backup information region is identical.Backup information region is located at the lower right corner of encoding of graphs data.It will be appreciated that standby
Part information area and system information area can be arranged at any rational position of encoding of graphs data.
In addition, meeting the original encoding of graphs data of coding ratio can also calibrate including son, and the number of son calibration
Amount can be 0 or at least one.Son calibration carries out the coded data in encoding of graphs data for carrying out auxiliary positioning
Auxiliary positioning.For example, son calibrates the symbol positioning being responsible in encoding of graphs data.When the information that encoding of graphs data are transmitted is got over
When more, the quantity of required sub- calibration is more.
The original encoding of graphs data for meeting coding ratio include: configuration information, heading message and data information.Configuration
Information may include the following contents: version number, heading message flag bit, blocking sign position, data information configuration, user are customized
Configuration data, heading message configuration and piecemeal configuration information.Wherein version number occupies 2 bits: version number (0- from 00 to 11
3) 4 versions, can be indicated altogether.1 bit of heading message mark bit occupancy: heading message has been identified whether: 1- > have title;0->
No title.1 bit of blocking sign bit occupancy: for identifying whether present image coded data is piecemeal: 1- > current Graphics coding
Data are subcodes;0- > current Graphics coded data is female code.User custom-configures data and occupies 2: from 00 to 11 (0-3),
4 kinds of customized configuration data versions can be indicated altogether.
Data information configuration occupies 16 and includes: cipher mode, zip flag bit, data type and data length.
Wherein cipher mode occupies 2: 00- > unencryption;01- > default AESCTR encryption;10- > system is reserved;11- > user is customized
Encryption.Zip indicates that 1: 1- > content of bit occupancy is the encrypted coding of zip;0- > content is normal encoding.Data type occupies
1: 0- > UTF-8 text;1- > binary system.Data length occupies 12: being used to indicate byte information included by data information
(maximum 4095 bytes).
Heading message configuration occupies 9 and includes: zip flag bit and data length.Wherein zip indicates bit occupancy 1:
1- > encrypted the coding of entitled zip;0- > entitled normal encoding.Data length occupies 8: being used to indicate heading message institute
Including byte information (maximum 255 bytes).
Piecemeal configuration information occupies 70 and includes: the cryptographic Hash of block sum, block number and mother tuber.Wherein block sum
(subcode sum) occupies 3: from 000 to 111 (0-7), can indicate 8 numbers of blocks, 000- > totally 1 piece altogether;001- > totally 2
Block;…….Block number (subcode serial number) occupies 3: from 000 to 111 (0-7), representing current block number index, 000- > 1st piece;
001- > 2nd piece;…….Mother tuber cryptographic Hash occupy 64: for identification multiple sub-blocks whether be same mother tuber sub-block and knowledge
Whether the mother tuber of small pin for the case merged block is correct.Wherein 64 cryptographic Hash can by 128 cryptographic Hash carry out selectivity interception come
It obtains.
Heading message is used to indicate the title of the encoding of graphs data as female code or the encoding of graphs data as subcode.
Data information is as transmitting/expression data desired by the encoding of graphs data of female code or the encoding of graphs data as subcode
Content.
Compression set 1107 be used for in original encoding of graphs data heading message and/or data information compress
To generate the encoding of graphs data through overcompression, the area of the encoding of graphs data through overcompression is less than or equal to the original
The area of the encoding of graphs data of beginning.For example, by zip mode in original encoding of graphs data heading message and/or
Data information is compressed the area of the encoding of graphs data to generate the encoding of graphs data through overcompression, by zip compression
Less than or equal to the area of the original encoding of graphs data.This is because after heading message and/or data information are compressed,
The length or width that may result in encoding of graphs data shortens.The application further includes based on the encoding of graphs through overcompression
Data carry out information transmitting.
Encryption device 1108 is used to carry out structure elucidation to data information, is believed the data according to the result of structure elucidation
Breath is divided into multiple information subsets.Wherein the structure elucidation includes semantic structure parsing and separator configuration parsing.When described
When structure elucidation is that semantic structure parses, structure elucidation is carried out to the information content to be passed, according to the knot of structure elucidation
It includes: to carry out semanteme to the information content to be passed that the information content to be passed is divided into multiple information subsets by fruit
Structure elucidation, to generate multiple semantic structure subelements;According to the multiple semantic structure subelement by the letter to be passed
Breath division of teaching contents is multiple information subsets.When the structure elucidation is that separator configuration parses, to the information to be passed
Content carries out structure elucidation, and the information content to be passed is divided into multiple information subset packets according to the result of structure elucidation
It includes: symbol structure elucidation is separated to the information content to be passed, to generate multiple separator configuration subelements;According to institute
It states multiple separator configuration subelements and the information content to be passed is divided into multiple information subsets.
The data information area of not encrypted original encoding of graphs data is divided into according to each information subset more
Sub-regions, and encryption unit and cipher mode are determined for each subregion.Be directed to each subregion, using encryption unit as
Minimum encryption object simultaneously encrypts each encryption unit according to cipher mode, to generate the encoding of graphs number by encryption
According to.That is, not encrypted original encoding of graphs data, which are divided into multiple objects, carries out identical or different encryption.Replacement
Ground, the application are also that not encrypted original encoding of graphs data determine encryption unit and cipher mode;And it will encryption list
Member encrypts each encryption unit as minimum encryption object and according to cipher mode, is compiled with generating by the figure encrypted
Code data.It is encrypted that is, not encrypted original encoding of graphs data are dealt with objects as a whole.
In addition, the cipher mode of each encryption unit is same or different.Cipher mode is by offer encoding of graphs
Predetermined or described cipher mode of provider's (for example, the coding side of formulationing, encode alliance etc.) of data is according to using
The demand of the user of encoding of graphs data determines.The encryption unit be single encoded unit, multiple coding units or
Data block.In this application, single encoded unit can be symbol as shown in Figure 9.Data block can be according to semanteme or divide
Symbol is cut from data acquisition system selected in data information.
Wherein the coding unit of original encoding of graphs data generated is round, rectangle or ellipse, such as Fig. 3 institute
Show.
Dividing device 1109 promotes the provider of encoding of graphs data to receive the information process request for being directed to cooperation with service,
Wherein the information process request includes that the structure of the information content associated with the cooperation with service and the cooperation with service is retouched
State file.Cooperation with service is the service completed jointly by multiple cooperative devices.Wherein when the provider of encoding of graphs data determines
When encoding of graphs data generated are related to cooperation with service, the information process request for being directed to cooperation with service is generated.With the association
It is mission bit stream required in order to complete the cooperation with service with the associated information content is serviced.The structure of cooperation with service is retouched
The logical construction that file is used to indicate the cooperation with service is stated, and the collaboration can be taken based on the structure description file
Business is divided into multiple sub-services.Each sub-services in plurality of sub-services correspond to collaboration involved in corresponding cooperative device and appoint
Business.
The structure description file of the cooperation with service is parsed with multiple associations involved in the determination cooperation with service
With cotasking involved in equipment and each cooperative device, specifically include: to the structure description file of the cooperation with service into
Row parsing is with multiple sub-services of the determination cooperation with service;Determine that collaboration involved in each sub-services is set in multiple sub-services
It is standby;The service content of each sub-services is parsed to determine cotasking;And it determines involved in each cooperative device
Cotasking.
The original encoding of graphs number including data information is generated according to the information content associated with the cooperation with service
According to, and based on cotasking involved in each cooperative device by the data information in original encoding of graphs data generated
It is divided into multiple subdata information.Wherein being generated according to the information content associated with the cooperation with service includes data information
Original encoding of graphs data include: and to generate using the information content associated with the cooperation with service as data information
Original encoding of graphs data including the data information.It wherein will be former based on cotasking involved in each cooperative device
Data information in the encoding of graphs data of beginning be divided into multiple subdata information comprise determining that with involved by each cooperative device
The associated synergistic data of cotasking;Synergistic data based on each cooperative device will be in original encoding of graphs data
Data information is divided into multiple subdata information.
Determine the incidence relation between the multiple cooperative device, and based on the incidence relation be multiple subnumbers it is believed that
Each subdata information in breath determines hierarchical relationship.Incidence relation between the multiple cooperative device include: relationship at the same level,
Superior relation, inferior relation and conditional relationship.Based on the incidence relation be multiple subdata information in each subnumber it is believed that
It ceases and determines that hierarchical relationship includes: when incidence relation is relationship at the same level or conditional relationship, by each of multiple subdata information
Subdata information determines that hierarchical relationship is determined as same level relationship;It, will when incidence relation is superior relation or inferior relation
Each subdata information in multiple subdata information determines that hierarchical relationship is determined as different levels relationship.
Original encoding of graphs data generated are divided into multiple layers by the hierarchical relationship based on each subdata information
Grade formula encoding of graphs data, and each hierarchical encoding of graphs data are distributed into corresponding cooperative device to carry out at information
Reason.The application is that heading message is arranged in each hierarchical encoding of graphs data, wherein the mark of each hierarchical encoding of graphs data
It inscribes information and the heading message of original encoding of graphs data generated is identical, different or related.
After each cooperative device carries out information processing according to corresponding hierarchical encoding of graphs data, each collaboration is set
It is standby to be combined by result caused by information processing to generate response message, the response message is sent to encoding of graphs
The provider of data.
Alternatively, dividing device 1109, which receives, is directed to point that original encoding of graphs data generated are divided
Code request.Demal request is parsed to determine subcode quantity N.Include by original encoding of graphs data generated
Data information be divided into N number of subdata information.Original encoding of graphs data generated are drawn according to N number of subdata information
It is divided into N number of sub- coded data.Each of N number of sub- coded data is sent to corresponding user equipment, wherein each user sets
It is standby to receive at least one sub- coded data.The application is that heading message is arranged in every sub- coded data, wherein every height is compiled
The heading message and the heading message of original encoding of graphs data generated of code data are identical, different or related.Receive needle
The specific sub- coded data is divided for the demal request that specific sub- coded data is divided, and according to demal request
For grandson's coded data of predetermined quantity.
It will be appreciated that the data information in the moon original encoding of graphs data can be equally divided into N one's share of expenses for a joint undertaking information,
And each of N number of sub- coded data is formed using each one's share of expenses for a joint undertaking information in N one's share of expenses for a joint undertaking information.N one's share of expenses for a joint undertaking information has first
Sequence afterwards, this sequencing depend on the content of data information, i.e. N one's share of expenses for a joint undertaking information is capable of forming after being combined according to serial number
Data information is without modification sequence.Furthermore, it is possible to which the data information in original encoding of graphs data is divided into N unequally
One's share of expenses for a joint undertaking information.Alternatively, can be according to semantic structure, separator configuration etc. by the data information in original encoding of graphs data
It is divided into N one's share of expenses for a joint undertaking information.
By explanation above it is found that multiple hierarchical encoding of graphs data can be located at different ranks, wherein each
Encoding of graphs data can at most be divided into the encoding of graphs data as subcode of predetermined quantity.To original encoding of graphs number
The next rank for being located at the original encoding of graphs data according to obtained hierarchical encoding of graphs data divide.To spy
Fixed hierarchical encoding of graphs data, which carry out dividing obtained new hierarchical encoding of graphs data, is located at the specific layer
Next rank of grade formula encoding of graphs data.In another example original encoding of graphs data at most can be with when group number of codes N is 8
It is divided into 8 sub- coded datas, and every sub- coded data can at most be divided into 8 grandson's coded datas, and so on.
In this application, meet original encoding of graphs data, the original encoding of graphs data, original graph of coding ratio
Shape coded data, the original encoding of graphs data generated for meeting coding ratio, original encoding of graphs number generated
It may refer to same content according to, original figure coded data generated.
Wherein original encoding of graphs data generated include: main calibration, system information and backup information, wherein described
System information includes size grades information and error-correction level information, and the backup information includes size grades information and error correction
Class information.Original encoding of graphs data generated further include sub- calibration.
Device 1110 is arranged can be arranged in the configuration information of sub- coded data: the quantity of sub- coded data, sub- coding
The cryptographic Hash of the serial number of data and original encoding of graphs data.The application is in the configuration information of hierarchical encoding of graphs data
It include: the quantity, the serial number of encoding of graphs data at the same level and the Hash of supervisory encoding of graphs data of encoding of graphs data at the same level
Value.
Heading message is the summary info for the data information that the encoding of graphs data generated for meeting coding ratio include.
The data information of sub- coded data includes the code error-correction level and original encoding of graphs data of original encoding of graphs data
Same data message.Each hierarchical encoding of graphs data in plurality of hierarchical encoding of graphs data include: higher level's figure
The error-correction level of shape coded data and the same data message of higher level's coded data.The configuration information further include: configuration information
Version number, heading message flag bit, blocking sign position and custom-configure data.The configuration information further include: code block is total
Several, current code block serial number and higher level's code block cryptographic Hash.The heading message further includes compression flag bit.
The application further includes generating the encoding of graphs data by encryption in the following manner using encryption device, for not
The heading message of encrypted original encoding of graphs data generates Hash character string, using the Hash character string to the original
The data information of the encoding of graphs data of beginning carries out byte-by-byte xor operation, to by xor operation encoding of graphs data into
Row encryption is to generate the encoding of graphs data by encryption.After receiving the encoding of graphs data by encryption, to described
Encoding of graphs data by encryption are decrypted to generate encoding of graphs data to be processed, compile for the figure to be processed
The heading message of code data generates Hash character string, using the Hash character string to the encoding of graphs data to be processed
Data information carries out byte-by-byte xor operation, to obtain not encrypted original encoding of graphs data.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as
Defined by subsidiary Patent right requirement, in addition to the present invention other embodiments disclosed above equally fall in it is of the invention
In range.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field
It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground
At least one example being construed in described device, component etc., unless otherwise expressly specified.Any method disclosed herein
Step need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.
Claims (10)
1. a kind of method for carrying out information transmitting based on encoding of graphs data, which comprises
Acquisition is associated with user equipment to apply description information, determines that wishing to pass through figure compiles based on the application description information
Code data carry out multiple applications of information transmitting;
Demand is transmitted according to the information of application each in multiple applications, determines that each application is carried out by single encoding of graphs data
Information required maximum fault information when transmitting;
Being parsed to the graphical interfaces for providing encoding of graphs data of each application can be used in each application of determination
Show the indication range of encoding of graphs data;
Based on described for showing that the indication range of encoding of graphs data and maximum fault information determine that each application is compiled for figure
The coding ratio of the image-region of code data;And
When the specific application in multiple applications is desired with information transmitting, the specific application generation meets the coding ratio
Original encoding of graphs data, and carry out information transmitting based on the original encoding of graphs data for meeting coding ratio.
2. according to the method described in claim 1, the application description information includes multiple description items, the format of each description item
For<Apply Names, application type, associate device type, coded data flag bit>.
3. being wanted when according to the method described in claim 1, carrying out information transmitting by encoding of graphs data according to each application
The data integrity asked determine each application information transmit demand.
4. according to the method described in claim 3, information transmitting demand includes to meet involved in data integrity
Peak-data amount.
5. according to the method described in claim 4, determining that each application passes through single encoding of graphs according to the peak-data amount
Data carry out required maximum fault information when information transmitting.
6. a kind of system for carrying out information transmitting based on encoding of graphs data, the system comprises:
Acquisition device, it is associated with user equipment using description information for obtaining, it is determined based on the application description information
Wish multiple applications that information transmitting is carried out by encoding of graphs data;
Information content determining device transmits demand according to the information of application each in multiple applications, and it is single to determine that each application passes through
Encoding of graphs data carry out required maximum fault information when information transmitting;
Ranges determination device parses the graphical interfaces for providing encoding of graphs data of each application each to determine
Using the indication range that can be used in showing encoding of graphs data;
Ratio-dependent device is each answered based on the indication range for showing encoding of graphs data and maximum fault information determination
With the coding ratio of the image-region for encoding of graphs data;And
Transfer device, when the specific application in multiple applications is desired with information transmitting, the specific application generation meets institute
The original encoding of graphs data of coding ratio are stated, and carry out letter based on the original encoding of graphs data for meeting coding ratio
Breath transmitting.
7. system according to claim 6, the application description information includes multiple description items, the format of each description item
For<Apply Names, application type, associate device type, coded data flag bit>.
8. system according to claim 6 further includes demand determining device, encoding of graphs data are passed through according to each application
Required data integrity determines that the information of each application transmits demand when carrying out information transmitting.
9. system according to claim 8, the information transmitting demand includes to meet involved in data integrity
Peak-data amount.
10. system according to claim 9, information content determining device determines that each application is logical according to the peak-data amount
It crosses single encoding of graphs data and carries out required maximum fault information when information transmitting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810935487.0A CN109214488B (en) | 2018-08-16 | 2018-08-16 | Method and system for information transmission based on graphic coded data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810935487.0A CN109214488B (en) | 2018-08-16 | 2018-08-16 | Method and system for information transmission based on graphic coded data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109214488A true CN109214488A (en) | 2019-01-15 |
CN109214488B CN109214488B (en) | 2021-10-01 |
Family
ID=64988985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810935487.0A Active CN109214488B (en) | 2018-08-16 | 2018-08-16 | Method and system for information transmission based on graphic coded data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109214488B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110022317A (en) * | 2019-04-02 | 2019-07-16 | 中国工商银行股份有限公司 | Information transferring method, system and device based on figure |
CN113205166A (en) * | 2021-04-02 | 2021-08-03 | 领悦数字信息技术有限公司 | Method and system for generating graphic codes |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106022424A (en) * | 2016-05-10 | 2016-10-12 | 腾讯科技(深圳)有限公司 | Method and apparatus for generating two-dimensional code picture having dynamic effect |
CN105138939B (en) * | 2015-07-31 | 2017-11-17 | 海信集团有限公司 | The method, apparatus and system of a kind of two-dimensional code display |
US20170337407A1 (en) * | 2016-05-17 | 2017-11-23 | Arolltech Co., Ltd. | Method for displaying barcode on active barcode display and electronic device of the same |
-
2018
- 2018-08-16 CN CN201810935487.0A patent/CN109214488B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105138939B (en) * | 2015-07-31 | 2017-11-17 | 海信集团有限公司 | The method, apparatus and system of a kind of two-dimensional code display |
CN106022424A (en) * | 2016-05-10 | 2016-10-12 | 腾讯科技(深圳)有限公司 | Method and apparatus for generating two-dimensional code picture having dynamic effect |
US20170337407A1 (en) * | 2016-05-17 | 2017-11-23 | Arolltech Co., Ltd. | Method for displaying barcode on active barcode display and electronic device of the same |
Non-Patent Citations (2)
Title |
---|
ZELJEN TRPOVSKI ETAL.: "Geometric modifications of QR code", 《2017 SOUTH EASTERN EUROPEAN DESIGN AUTOMATION, COMPUTER ENGINEERING, COMPUTER NETWORKS AND SOCIAL MEDIA CONFERENCE (SEEDA-CECNSM)》 * |
张长胜等: "基于二维码的加密文本信息传递系统设计", 《计算机技术与发展》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110022317A (en) * | 2019-04-02 | 2019-07-16 | 中国工商银行股份有限公司 | Information transferring method, system and device based on figure |
CN113205166A (en) * | 2021-04-02 | 2021-08-03 | 领悦数字信息技术有限公司 | Method and system for generating graphic codes |
Also Published As
Publication number | Publication date |
---|---|
CN109214488B (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Chow et al. | Exploiting the error correction mechanism in QR codes for secret sharing | |
CN105447546B (en) | The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure | |
WO2018137602A1 (en) | Method and apparatus for generating and reading composite two-dimensional code | |
CN104657698B (en) | A kind of color 2 D code decoding method for carrying several black and white Quick Response Codes | |
CN106599964A (en) | Two-dimensional code generation and verification method and device | |
US7941725B2 (en) | Method for ciphering data with error correction code | |
CN105825257A (en) | Information hiding and hidden information extraction method based on two-dimensional barcode and information hiding and hidden information extraction system thereof | |
CN103049777A (en) | Security application method for two-dimension code and encoding/decoding system | |
CN107944527A (en) | A kind of encryption of anti-fake two-dimension code and coding/decoding method | |
CN105976005A (en) | Two-dimensional code encrypting method, two-dimensional code generating device and two-dimensional code scanning device | |
CN103957340A (en) | Data transmission system based on color dynamic image | |
CN103997406B (en) | Identity identifying method and device based on two dimensional code | |
CN109214488A (en) | A kind of method and system carrying out information transmitting based on encoding of graphs data | |
US20190065759A1 (en) | Method for protecting data | |
CN109948762A (en) | Method and apparatus for generating two dimensional code | |
Kim et al. | Data hiding based on overlapped pixels using hamming code | |
CN106570548B (en) | A kind of mixing two dimensional code based on the encryption of multi-level information | |
CN108809516B (en) | High-security coding and decoding method for desensitization of formatted data | |
EP3369207B1 (en) | An information secure protocol for mobile proactive secret sharing with near-optimal resilience | |
CN108959949A (en) | A kind of method and system for the information transmitting carrying out safety by encoding of graphs data | |
CN105718978A (en) | QR code generation method and apparatus, and decoding method and apparatus | |
CN103745252B (en) | Coding row, two-dimentional code encoding method and Quick Response Code coding/decoding method | |
CN104573781A (en) | Encoding and decoding method of two-dimensional code | |
CN109086850A (en) | A kind of method and system carrying out information processing using hierarchical encoding of graphs data | |
CN115426627A (en) | Industry thing networking data collection box based on 5G network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |