CN105956644A - Coding method and coding device of wearable device, data synchronization method, data synchronization device, and coding system - Google Patents
Coding method and coding device of wearable device, data synchronization method, data synchronization device, and coding system Download PDFInfo
- Publication number
- CN105956644A CN105956644A CN201610260274.3A CN201610260274A CN105956644A CN 105956644 A CN105956644 A CN 105956644A CN 201610260274 A CN201610260274 A CN 201610260274A CN 105956644 A CN105956644 A CN 105956644A
- Authority
- CN
- China
- Prior art keywords
- data message
- wearable device
- coding
- image
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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
- 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/3276—Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device
-
- 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/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a coding method and a coding device of a wearable device, a data synchronization method, a data synchronization device, and a coding system. The coding method of the wearable device is characterized in that to-be-coded data information is received; the to-be-coded data information is coded; and the image of the data information after the coding is generated. By adopting the above mentioned method, the wearable device is used to generate a two dimensional code, which is bound with bank card information of a user and is used for payment, and therefore the carrying of the bank card of the user is not required, and great convenience is provided for the user; the rapidness and the use convenience, which are also the advantages of a cell phone application program payment way, are provided; the wearable device is required to be worn, and therefore the portability is provided, and the wearable device is not easy to lose, and then the property security of the user during the mobile payment is guaranteed, and the risk of the wearable device being stolen is reduced.
Description
This application claims and submitted Patent Office of the People's Republic of China, Application No. on 04 12nd, 2016
201610224298.3, invention entitled " coding of a kind of wearable device, method of data synchronization, device
And system " the priority of Chinese patent application, entire contents is hereby incorporated by the application.
Technical field
The application relates to data encoding technique field, is specifically related to the coded method of a kind of wearable device, one
Method of data synchronization and a kind of coding system;The application relates to the code device of a kind of wearable device simultaneously
And one data synchronization unit.
Background technology
Along with the development of Internet technology, the class of business for the Internet exploitation becomes rich and varied,
Outside tradition pay-us-you-go plan, develop the shifting that bank card pays and application program payment is representative at present
Dynamic payment.Comparing tradition to pay in cash, both modes, without carrying cash, facilitate the life of people.
Conventional bank card payment use POS terminal carries out swiping the card paying or dodging and pays, such as with bank as representative
It is arranged in the POS of trade company.Pay relative to bank card, enter with the application program by being arranged on mobile phone
The mobile payment that row pays as representative has certain lifting on convenience, but along with mobile phone display screen is increasing
And mobile phone operating system is more and more open, the portability of mobile phone is also restrained and safety issue also layer goes out not
Thoroughly.Such as: major part Third-party payment application program all there is barcode scanning function, if the hand-set from stolen of user or
Losing, other people carry out barcode scanning by the Third-party payment application program in this mobile phone will cause economy to user
Loss.
As can be seen here, existing mobile payment user must carry bank card, easily loses this due to bank card and makes
Bank card pays by a definite limitation;And application program pays and depends on mobile phone operating system, it is difficult to avoid letter
The risk that is stolen of breath, and major applications program pay small amount consumption or when barcode scanning pays the most not
Need to input password, and mobile phone is the most stolen, after loss, user can be caused economic loss.
Summary of the invention
The application provides the coded method of a kind of wearable device, a kind of method of data synchronization and a kind of coding system
System, to solve the problems referred to above of the prior art.The application relates to the code device of a kind of wearable device simultaneously
And one data synchronization unit.
This application provides the coded method of a kind of wearable device, the coded method bag of described wearable device
Include:
Receive data message to be encoded;
Described data message to be encoded is encoded;
Generate the image after described data message coding.
Optionally, described data message to be encoded, including: bank card information.
Optionally, described described data message to be encoded is carried out coding it be: use Quick Response Code coding techniques pair
Described data message to be encoded encodes.
Optionally, after the described step that described data message to be encoded is encoded, including:
Judge whether the data length of the described data message after coding is less than or equal to the heap(ed) capacity of Quick Response Code;
The most then trigger and perform the step of the image after the described data message of described generation encodes;
If it is not, then described data message to be encoded is compressed, and use Quick Response Code coding techniques to pressure
Data message to be encoded after contracting encodes.
Optionally, the image after described generation described data message coding is image in 2 D code.
Optionally, after the step of the image after the described data message of described generation encodes, including:
The image in 2 D code generated after being encoded by described data message exports the screen display area of wearable device
In territory.
Optionally, after the step of the image after the described data message of described generation encodes, also include:
The status information of real-time reception user;
If not receiving the status information of described user within the default time period, then remove described data message and compile
The image generated after Ma.
Accordingly, present invention also provides the code device of a kind of wearable device, the volume of described wearable device
Code device includes:
Data message receives unit, for receiving data message to be encoded;
Coding unit, for encoding described data message to be encoded;
Image generation unit, the image after generating described data message coding.
Optionally, described data message receives unit, specifically for receiving bank card information.
Optionally, described coding unit, specifically for using Quick Response Code coding techniques to described data to be encoded
Information encodes.
Optionally, the code device of described wearable device, also include:
Capacity judging unit, for described described data message to be encoded is encoded after, it is judged that
Whether the data length of the described data message after coding is less than or equal to the heap(ed) capacity of Quick Response Code;
Image generates trigger element, for receiving the judged result of described capacity judging unit, the most then touches
Send out and perform the step of the image after the described data message of described generation encodes;
Compression unit, for receiving the judged result of described capacity judging unit, if it is not, then compile described treating
The data message of code is compressed, and uses Quick Response Code coding techniques to the data message to be encoded after compression
Encode.
Optionally, described image generation unit, specifically for generating the Quick Response Code figure after described data message encodes
Picture.
Optionally, the code device of described wearable device, also include:
Image-display units, after the image after encoding at the described data message of described generation, by described number
The image in 2 D code generated after it is believed that breath coding exports in the on-screen display (osd) area of wearable device.
Optionally, the code device of described wearable device, also include:
User Status receives unit, after the image after encoding at the described data message of described generation, in real time
Receive the status information of user;
Piclear unit, if for the status information not receiving described user within the default time period, then
The image generated after removing described data message coding.
Additionally, present invention also provides a kind of method of data synchronization, described method of data synchronization, including:
Obtain the bank card information bound in current device;
Described bank card information is sent to wearable device by Near Field Communication mode;
Receive the payment request that server end sends;Described payment carries the bank card letter needing to pay in request
Breath;
Send to described server end and pay the request authorization message to valency with described.
Accordingly, present invention also provides a kind of data synchronization unit, described data synchronization unit, including:
Information acquisition unit, for obtaining the bank card information bound in current device;
Information transmitting unit, believes for sending described bank card by Near Field Communication mode to wearable device
Breath;
Pay request reception unit, for receiving the payment request that server end sends;Described payment in request is taken
Band needs the bank card information paid;
Authorization message transmitting element, asks the mandate to valency to be believed for sending to described server end with described payment
Breath.
Additionally, present invention also provides a kind of coding system, described coding system, including:
Code device according to the wearable device described in any of the above-described item;And
According to described data synchronization unit.
Compared with prior art, the application has the advantage that
The coded method of a kind of wearable device that the application provides and device, by receiving data to be encoded
Information;Described data message to be encoded is encoded;Generate the image after described data message coding.
Described technical scheme is by generating the bank card information of user's binding and for the two of payment in wearable device
Dimension code, it is to avoid carrying of user's bank card, facilitates user, and has and pay with application program in mobile phone
Identical agility and ease of use, wearable device needs next to the skin wearing simultaneously, has and is easy to carry not
The feature easily lost ensure that property safety when user uses mobile payment, reduces stolen risk.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is only some embodiments described in the application, for those of ordinary skill in the art
From the point of view of, it is also possible to other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 shows the flow chart of the coded method of the wearable device according to embodiments herein offer;
Fig. 2 shows the data judging the described data message after encoding provided according to embodiments herein
The flow chart of length;
Fig. 3 shows the schematic diagram of the code device of the wearable device according to embodiments herein offer;
Fig. 4 shows the flow chart of the method for data synchronization provided according to embodiments herein;
Fig. 5 shows the schematic diagram of the method for data synchronization provided according to embodiments herein;
Fig. 6 shows the schematic diagram of the coding system provided according to embodiments herein.
Detailed description of the invention
In order to be more clearly understood that the above-mentioned purpose of the application, feature and advantage, below in conjunction with the accompanying drawings and tool
The application is further described in detail by body embodiment.It should be noted that in situation about not conflicting
Under, the feature in embodiments herein and embodiment can be mutually combined.
Elaborate a lot of detail in the following description so that fully understanding the application.But, the application
Can implement to be much different from alternate manner described here, those skilled in the art can without prejudice to
Doing similar popularization in the case of the application intension, therefore, the application is not by the following public limit being embodied as
System.
Embodiments herein provide the coded method of a kind of wearable device, a kind of method of data synchronization and
A kind of coding system;The application relates to the code device of a kind of wearable device and a kind of data syn-chronization simultaneously
Device.It is described in detail the most one by one.
At present, conventional bank card payment use POS terminal carries out swiping the card paying or dodging and pays, such as with bank
For representing the POS being arranged in trade company.Pay relative to bank card, with the application by being arranged on mobile phone
The mobile payment that program is used as representing has certain lifting on convenience, but along with mobile phone display screen is got over
Come the biggest and mobile phone operating system be more and more open, the portability of mobile phone is also restrained and safety issue also
Emerge in an endless stream.Such as: major part Third-party payment application program all there is barcode scanning function, if the mobile phone of user
Stolen or lose, other people carry out barcode scanning by the Third-party payment application program in this mobile phone and will make user
Become economic loss.As can be seen here, existing mobile payment user must carry bank card, owing to bank card is easy
Losing this makes bank card pay by a definite limitation;And application program pays and depends on mobile phone operating system,
It is difficult to the risk avoiding information to be stolen, and major applications program is paying small amount consumption or in barcode scanning
All need not during payment input password, and mobile phone is the most stolen, user can be caused economic loss after loss.
For this problem, the technical scheme of the application is by generating the bank card of user's binding in wearable device
Information and for the Quick Response Code paid, it is to avoid the carrying of user's bank card, facilitates user, and have with
In mobile phone, application program pays identical agility and ease of use, and wearable device needs pendant next to the skin simultaneously
Wearing, the feature that having is easy to carry is difficult to lose ensure that property safety when user uses mobile payment, fall
Low stolen risk.
Although the technical scheme of the application proposes for mobile payment problem, but, its application is also
Be not limited to mobile payment, other need to carry out with the smart machine such as mobile phone synchronize, give birth in wearable device
When becoming Quick Response Code, it would however also be possible to employ the method that the application provides, and obtain corresponding beneficial effect.
Embodiments herein provides the coded method of a kind of wearable device.The coding of described wearable device
Embodiment of the method is as follows:
Refer to Fig. 1, the coded method of the wearable device provided according to embodiments herein is provided
Flow chart.
The coded method method of described wearable device includes:
Step S101, receives data message to be encoded.
Described data message to be encoded, can be various forms of information, is used for and intelligence specific to the present embodiment
The wearable device that energy mobile terminal coordinates, then receive from the described intelligent mobile terminal cooperated treats
The data message of coding is bank card information.
It should be noted that described bank card information at least includes: the card number of bank card.
In the present embodiment, the data message that described reception is to be encoded, can realize in the following way: pass through
The intelligent mobile terminal that close range wireless communication mode coordinates with this wearable device is attached, and receives described
The data message to be encoded that intelligent mobile terminal transmits to this wearable device.
It should be noted that described close range wireless communication mode includes but not limited to Bluetooth technology, do not arrange
Except using other emerging wireless communication technology along with technological progress, in this no limit.
In the present embodiment, the close range wireless communication mode of employing is bluetooth, the bluetooth ground of this wearable device
Location is to be distributed by production firm, and the Bluetooth address of every wearable device all has uniqueness.Such as: described
Intelligent mobile terminal opens bluetooth, by sending communication state ready signal in bluetooth discovery particular range
Wearable device, determines, by the device id in the communication state ready signal that receives or device identification, the company for the treatment of
The title of the wearable device connect, selects the title of the wearable device of connection to be set up, and wearable sets to this
Preparation is sent and is set up the connection request connected, by this Intelligent sliding in connection request in described wearable device
The device id of dynamic terminal or device identification, determine whether the title of intelligent mobile terminal to be connected is that user thinks
The title of intelligent mobile terminal to be established a connection, if so, confirms this connection request, described Intelligent sliding
Dynamic terminal is set up communication with described wearable device and is connected.
In the present embodiment, it is also possible to use WI-FI technology, infrared transmission technology and under the prior art
Any feasible the short distance wireless communication technology make wearable device be attached with intelligent mobile terminal.When
So, when the present embodiment is for carrying out the wearable device of telecommunication, described communication is also
It can be the communication of various 2G, 3G, 4G.
The step that explanation wearable device is connected with intelligent mobile terminal foundation as a example by WI-FI below:
Detect whether to exist the wearable device sending communication state ready signal by WI-FI, and obtain institute
State device id or the device identification of wearable device;
Sent to described wearable device by WI-FI and set up the binding that communication is connected with this wearable device and ask
Ask;Described bind request includes: the device id of wearable device or device identification and described intelligent mobile are eventually
The device id of end or device identification;
The feedback message that communication connects is set up in the agreement receiving the transmission of described wearable device;
Described intelligent mobile terminal is set up communication with described wearable device and is connected.
Step S103, encodes described data message to be encoded.
In the present embodiment, after described data message to be encoded is encoded, need the shape with image
Described data message to be encoded is exported by formula, so in the present embodiment, the coded system of employing needs
Want to export with image mode, and coded system can be supported included in described data message to be encoded
Alphabet and symbol.Concrete, in the present embodiment, it is to use Quick Response Code coding techniques to treat described
The data message of coding encodes, and certainly can also make to meet other coded systems of above-mentioned requirements, the most not
Get rid of along with technological progress uses other emerging coded system, in this no limit.
It should be noted that two-dimensional bar code/Quick Response Code (2-dimensional bar code) is special with certain
The chequered with black and white graphic recording number that fixed geometric figure is distributed in plane (on two-dimensional directional) according to certain rules
According to symbolic information;Coding utilizes " 0 ", " 1 " dexterously that constitute computer-internal logical foundations
The concept of bit stream, use several geometrical bodies corresponding with binary system to represent word numerical information,
Automatically processed to realize information by image input device or photoelectric scanning device automatically identifying and reading: it has bar code
Some general character of technology: every kind of code system has its specific character set;Each character occupies certain width;Tool
There is certain verifying function etc..The most also there is the information automatic identification function to different rows and process figure
Rotationally-varying point.Quick Response Code coding techniques includes QRCode, Aztec, QR Code, Vericode, Code 49
Or the multiple code system such as Code 16K.If the content of described data message to be encoded includes the information such as Chinese,
Optional QRCode code system, because the alphabet that can include with support code of this code system and symbol, including
Chinese character.
Owing to each Quick Response Code has the upper limit of memory capacity, so described waiting being compiled in execution of step S103
After the data message of code encodes, it is judged that whether the data length of the described data message after coding exceedes this
The maximum storage capacity of Quick Response Code, specifically includes step S104-1 to S104-3, below in conjunction with the accompanying drawings 2 make into
One step explanation.
Refer to Fig. 2, the described data letter judged after encoding provided according to embodiments herein is provided
The flow chart of the data length of breath.
Step S104-1, it is judged that whether the data length of the described data message after coding is less than or equal to Quick Response Code
Heap(ed) capacity.
In the present embodiment, whether the data length of the described described data message judged after encoding is less than or equal to two
The heap(ed) capacity of dimension code, can realize in the following way: read the data of the described data message after coding
Length, it is judged that whether the data length of described data message is less than or equal to the heap(ed) capacity of corresponding code system.
Such as: if code system is QRcode, the sum of the number space of storage data is 21X21, then shoot off and do not store
The number space of the storage data after the part of data is 217 (21 × 21-8*9*3-8), and the most useful
Data be 217-1 end of data mark=216, then 216bit/8=27Byte, then QR code is merely able to
The data (if having verification fault-tolerant the most less) of storage 27Byte.
Step S104-2, the most then trigger and perform the image after the described data message of described generation encodes
Step.
Judged result in this step receiving step S104-1, if the data of the described data message after Bian Ma are long
Degree less than or equal to the heap(ed) capacity of corresponding code system, then enters step S105.
Step S104-3, if it is not, be then compressed described data message to be encoded, and uses Quick Response Code
Data message to be encoded after compression is encoded by coding techniques.
Judged result in this step receiving step S104-1, if the data of the described data message after Bian Ma are long
Described data message to be encoded more than the heap(ed) capacity of corresponding code system, is then compressed, and uses two by degree
Data message to be encoded after compression is encoded by dimension code coding techniques.
It should be understood that the data length of described data message after judging coding is more than corresponding code system
After Large Copacity, after described data message to be encoded is compressed, re-executes step S103 and treat described
The data message of coding encodes.Described compression is to make data message to be encoded the least,
To meet the requirement of the heap(ed) capacity of corresponding code system.Because image in 2 D code has capacity limit, exceed
This capacity, then cannot export image in 2 D code.In the present embodiment, the compress mode of employing has a lot, than
Such as more popular LZ and series mutation (Deflate, LZW, LZR, LZX) compression algorithm etc..Compression is calculated
Method can be by some relatively common compression algorithms.The application does not limits for the concrete compression method used
Fixed, as long as being ensured of the lossless compress for data, and the purpose reaching to shorten data length is the most permissible.
It should be noted that after described data message to be encoded is compressed, re-execute step S103
After described data message to be encoded is encoded, it is also possible to again judge the number of the data message after coding
The heap(ed) capacity of corresponding code system whether it is less than or equal to according to length, if it is not, again to described after then can changing code system
Data message to be encoded encodes, until the data length of the data message after Bian Ma is less than or equal to correspondence
The heap(ed) capacity of code system.
Step S105, generates the image after described data message coding.
It should be noted that due in above-mentioned steps be use Quick Response Code coding techniques to described number to be encoded
It is believed that what breath carried out encoding, generating the image after described data message coding the most in this step is Quick Response Code figure
Picture.
In the present embodiment, the image after described generation described data message coding, can be real in the following way
Existing: by calling that carry in the system of wearable device or that user the adds API letter generating Quick Response Code
Number generates corresponding image.
Owing to the image after the described data message coding that the application generates is in transaction payment process for user
In the Quick Response Code that uses when fast paying, so the technical scheme of the present embodiment provides a kind of the most real
Execute mode, under optimal way, after the step of the image after the described data message of described generation encodes,
Need described image is exported, including: the image in 2 D code generated after being encoded by described data message is defeated
Go out in the on-screen display (osd) area of wearable device.
It should be noted that the present embodiment is in the screen display area of wearable device by the image in 2 D code of generation
Territory shows.In other embodiments, it is also possible to image output is situated between at other display equipment or papery
In matter, or other patterned modes are used to export.
After image in 2 D code is shown in the on-screen display (osd) area of wearable device, it is possible to use rifle is scanned
The image in 2 D code of this wearable device, makes the payment request that connection sends the system of rifle to server end;
Described payment carries the bank card information needing to pay in request, it may be assumed that the bank card carried in image in 2 D code
Information.
In order to ensure the safety in payment process, it is ensured that the effectiveness of the image in 2 D code of output, the present embodiment
Technical scheme provides a kind of preferred implementation, under optimal way, at the described data message of described generation
After the step of the image after coding, also comprise the steps:
The status information of real-time reception user;
If not receiving the status information of described user within the default time period, then remove described data message and compile
The image generated after Ma.
It should be noted that the status information of described real-time reception user, can be by being arranged on wearable device
Sensor measurement human body characteristic parameter speculate obtain.Specifically, the characteristic parameter of described human body is permissible
It is at least one in the information such as the pulse of user, body temperature, breathing.For obtaining these characteristic parameters, described
Wearable device can configure the sensor of correspondence, such as pulse transducer, body temperature trans, gravity-feed tank
Answer device etc..Those skilled in the art can be according to concrete characteristic parameter sensors configured.
The described status information not receiving described user within the default time period refers to: wearable device is one
Not receiving the status information of user in fixing time, described wearable device does not receives the status information of user
Situation include but not limited to: user takes off this wearable device.But in order to prevent user in a short time actively
Wearable device is taken off so that wearable device removes the mistake of the image generated after described data message encodes
Operating, the described default time period could be arranged to 5 minutes.Such as: wearable device is taken off 4 by user
Again putting on this wearable device after minute, this wearable device does not performs to remove described data message coding
The operation of the image of rear generation.
It should be understood that when wearable device cannot receive the status information of user, start wearable at this
Timer in equipment;When wearable device receives the status information of user again, close and can wear at this
Wear the timer in equipment and empty the time recorded in timer.
In the above-described embodiment, it is provided that the coded method of a kind of wearable device, with above-mentioned wearable device
Coded method corresponding, present invention also provides the code device of a kind of wearable device.Due to device
Embodiment be substantially similar to the embodiment of method, so describing fairly simple, relevant part sees method
The part of embodiment illustrates.Device embodiment described below is only schematically.Described wearable
The code device embodiment of equipment is as follows:
Refer to Fig. 3, the code device of the wearable device provided according to embodiments herein is provided
Schematic diagram.
The code device of described wearable device, including: data message receives unit 301, coding unit 303
And image generation unit 305;
Described data message receives unit 301, for receiving data message to be encoded;
Described coding unit 303, for encoding described data message to be encoded;
Described image generation unit 305, the image after generating described data message coding.
Optionally, described data message receives unit 301, specifically for receiving bank card information.
Optionally, described coding unit 303, specifically for using Quick Response Code coding techniques to described to be encoded
Data message encodes.
Optionally, the code device of described wearable device, also include: capacity judging unit, image generate and touch
Bill unit and compression unit;
Described capacity judging unit, for described described data message to be encoded is encoded after,
Judge whether the data length of the described data message after coding is less than or equal to the heap(ed) capacity of Quick Response Code;
Described image generates trigger element, for receiving the judged result of described capacity judging unit, if so,
Then trigger and perform the step of the image after the described data message of described generation encodes;
Described compression unit, for receiving the judged result of described capacity judging unit, if it is not, then to described
Data message to be encoded is compressed, and uses Quick Response Code coding techniques to the data to be encoded after compression
Information encodes.
Optionally, described image generation unit 305, specifically for generating the two dimension after described data message encodes
Code image.
Optionally, the code device of described wearable device, also include:
Described image-display units, after the image after encoding at the described data message of described generation, by institute
The image in 2 D code generated after stating data message coding exports in the on-screen display (osd) area of wearable device.
Optionally, the code device of described wearable device, also include:
User Status receives unit, after the image after encoding at the described data message of described generation, in real time
Receive the status information of user;
Piclear unit, if for the status information not receiving described user within the default time period, then
The image generated after removing described data message coding.
In the above-described embodiment, it is provided that the coded method of a kind of wearable device and a kind of wearable device
Code device, additionally, present invention also provides a kind of method of data synchronization;Described method of data synchronization is real
Under executing such as:
Refer to Fig. 4, the flow chart of the method for data synchronization provided according to embodiments herein is provided.
Described method of data synchronization, including:
Step S401, obtains the bank card information bound in current device.
In the present embodiment, the bank card information that described acquisition has been bound in current device, can use as follows
Mode realizes: scanning application program in current device, extracts user from Third-party payment application program
The bank card information bound.Described bank card information at least includes the card number of bank card.
Such as: mounted application program in scanning cell phone, from wechat and Alipay, extract user to bind
Whole bank card information.
It should be noted that the technical scheme of the present embodiment can be embodied in mobile phone or panel computer, then at this
Current device in step refers to: the mobile phone of application the method or panel computer.
Step S403, sends described bank card information by Near Field Communication mode to wearable device.
In the present embodiment, described by Near Field Communication mode to wearable device send described bank card believe
Breath, can realize in the following way: after being attached by Near Field Communication mode and this wearable device,
Described bank card information is sent to the wearable device coordinated with current device.
It should be noted that described Near Field Communication mode includes but not limited to Bluetooth technology, be also not excluded for
Technological progress and use other emerging wireless communication technology, in this no limit.
In the present embodiment, the Near Field Communication mode of employing is bluetooth, and the Bluetooth address of current device is by giving birth to
Producing manufacturer's distribution, the Bluetooth address of every equipment all has uniqueness.Such as: current device opens bluetooth,
By the wearable device sending communication state ready signal in bluetooth discovery particular range, by receiving
Communication state ready signal in device id or device identification determine the title of wearable device to be connected,
The title of the wearable device of selection connection to be set up, the connection sending foundation connection to this wearable device please
Ask, by ID or the device identification of the current device in connection request in described wearable device, determine and treat
Whether the title of the current device connected is the title that user wants to set up the current device of annexation, if so,
Confirm that this connection request, described current device are set up communication with described wearable device and be connected.
In the present embodiment, it is also possible to use WI-FI technology, infrared transmission technology and under the prior art
Any feasible close range communication techniques make wearable device be attached with current device.Certainly, when this
When embodiment is for carrying out the wearable device of telecommunication, described communication can also be each
Plant the communication of 2G, 3G, 4G.
The step that explanation wearable device is connected with current device foundation as a example by WI-FI below:
Detect whether to exist the wearable device sending communication state ready signal by WI-FI, and obtain institute
State device id or the device identification of wearable device;
Sent to described wearable device by WI-FI and set up the bind request that communication is connected with current device;
Described bind request includes: the device id of wearable device or device identification and the ID of current device or set
Standby mark;
The feedback message that communication connects is set up in the agreement receiving the transmission of described wearable device;
Set up communication with described wearable device to be connected.
Step S405, receives the payment request that server end sends;Described payment request is carried and needs to pay
Bank card information.
In the present embodiment, the payment request that described reception server end sends, can realize in the following way:
The payment being received server end transmission by internet is asked, and carrying in described payment request needs payment
Bank card information.
It should be noted that described server end in this step is to bind described bank card in current device
The background server end of the application program of information, such as: described bank card information is bundled in Alipay
Bank card information, is to receive the payment request that the server end of Alipay sends the most in this step.
The number also comprising the concrete amount of money that these needs pay in request is paid it should be understood that described.
Step S407, sends to described server end and pays the request authorization message to valency with described.
In the present embodiment, the described payment request authorization message to valency, can be that authorization server end is from prestoring
Account is deducted this and pays the request authorization message to valency;Or pay this pay request valency is propped up
Pay Authorized operation.
If it should be understood that the account of the corresponding application program logged in current device stores in server end
Some and enough pay the amount of money of request, then can send authorization service to described server end
Device end is deducted this from account and is paid the request authorization message to valency, and this authorization message is to allow server end
The instruction that the amount of money storing account is modified;If the corresponding application program logged in current device
Account does not store a number of amount of money in server end, then initiate to pay this to server end and pay
The payment authorization to valency is asked to operate, it may be assumed that to be transferred accounts to server end by bank card or other modes.
In the above-described embodiment, it is provided that a kind of method of data synchronization, corresponding with above-mentioned method of data synchronization
, present invention also provides a kind of data synchronization unit.Owing to the embodiment of device is substantially similar to method
Embodiment, so describing fairly simple, relevant part sees the part of embodiment of the method and illustrates.Under
The device embodiment stating description is only schematically.Described data synchronization unit embodiment is as follows:
Refer to Fig. 5, the schematic diagram of the data synchronization unit provided according to embodiments herein is provided.
Described data synchronization unit, including: information acquisition unit 501, information transmitting unit 503, payment are asked
Ask reception unit 505 and authorization message transmitting element 507;
Described information acquisition unit 501, for obtaining the bank card information bound in current device;
Described information transmitting unit 503, for sending described silver by Near Field Communication mode to wearable device
Row card information;
Described payment request reception unit 505, for receiving the payment request that server end sends;Described payment
Request is carried the bank card information needing to pay;
Described authorization message transmitting element 507, pays request to valency for sending to described server end with described
Authorization message.
In the above-described embodiment, it is provided that the coded method of a kind of wearable device, a kind of wearable device
Code device, a kind of method of data synchronization and a kind of data synchronization unit, additionally, present invention also provides
A kind of coding system;Described coding system embodiment is as follows:
Refer to Fig. 6, the schematic diagram of the coding system provided according to embodiments herein is provided.
Described coding system, including: the code device 601 of wearable device and data synchronization unit 603;
Wherein, the code device 601 of described wearable device, for receiving data message to be encoded;To institute
State data message to be encoded to encode;And generate the image after described data message coding;
Described data synchronization unit 603, for obtaining the bank card information bound in current device;Pass through
Near Field Communication mode sends described bank card information to wearable device;Receive the payment that server end sends
Request;Described payment carries the bank card information needing to pay in request;And to described server end send with
The described payment request authorization message to valency.
The code device 601 of described wearable device, can be arranged on wearable device, such as: intelligence hands
On table or Intelligent bracelet, but it is not limited to this equipment, above-mentioned wearable device can be that by
Any equipment of coded method;Described data synchronization unit 603, can be arranged on intelligent mobile terminal,
Such as: on mobile phone or flat board, but it is not limited to this equipment, above-mentioned data can be that by
Any equipment of synchronous method.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/output
Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM)
And/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).Internal memory is
The example of computer-readable medium.
1, computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by
Any method or technology realize information storage.Information can be computer-readable instruction, data structure, journey
The module of sequence or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other classes
The random access memory (RAM) of type, read only memory (ROM), Electrically Erasable Read Only Memory
(EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), numeral
Multifunctional optical disk (DVD) or other optical storage, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic
Storage device or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device.Press
According to defining herein, computer-readable medium does not include non-temporary computer readable media (transitory
Media), such as data signal and the carrier wave of modulation.
2, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer
Program product.Therefore, the application can use complete hardware embodiment, complete software implementation or combine software
Form with the embodiment of hardware aspect.And, the application can use and wherein include meter one or more
The computer-usable storage medium of calculation machine usable program code (include but not limited to disk memory, CD-ROM,
Optical memory etc.) form of the upper computer program implemented.
Although the application is open as above with preferred embodiment, but it is not for limiting the application, Ren Heben
Skilled person, without departing from spirit and scope, can make possible variation and amendment,
Therefore the protection domain of the application should be defined in the range of standard with the application claim.
Claims (17)
1. the coded method of a wearable device, it is characterised in that including:
Receive data message to be encoded;
Described data message to be encoded is encoded;
Generate the image after described data message coding.
The coded method of wearable device the most according to claim 1, it is characterised in that described in wait to compile
The data message of code, including: bank card information.
The coded method of wearable device the most according to claim 2, it is characterised in that described to institute
State data message to be encoded and carry out coding and be: use Quick Response Code coding techniques to described data letter to be encoded
Breath encodes.
The coded method of wearable device the most according to claim 3, it is characterised in that described right
After described data message to be encoded carries out the step encoded, including:
Judge whether the data length of the described data message after coding is less than or equal to the heap(ed) capacity of Quick Response Code;
The most then trigger and perform the step of the image after the described data message of described generation encodes;
If it is not, then described data message to be encoded is compressed, and use Quick Response Code coding techniques to pressure
Data message to be encoded after contracting encodes.
The coded method of wearable device the most according to claim 3, it is characterised in that described life
Becoming the image after described data message coding is image in 2 D code.
The coded method of wearable device the most according to claim 5, it is characterised in that described
After generating the step of the image after described data message coding, including:
The image in 2 D code generated after being encoded by described data message exports the screen display area of wearable device
In territory.
The coded method of wearable device the most according to claim 1, it is characterised in that in described life
After becoming the step of the image after described data message coding, also include:
The status information of real-time reception user;
If not receiving the status information of described user within the default time period, then remove described data message and compile
The image generated after Ma.
8. the code device of a wearable device, it is characterised in that including:
Data message receives unit, for receiving data message to be encoded;
Coding unit, for encoding described data message to be encoded;
Image generation unit, the image after generating described data message coding.
The code device of wearable device the most according to claim 8, it is characterised in that described data
Information receiving unit, specifically for receiving bank card information.
The code device of wearable device the most according to claim 9, it is characterised in that described volume
Code unit, specifically for using Quick Response Code coding techniques to encode described data message to be encoded.
The code device of 11. wearable devices according to claim 10, it is characterised in that also include:
Capacity judging unit, for described described data message to be encoded is encoded after, it is judged that
Whether the data length of the described data message after coding is less than or equal to the heap(ed) capacity of Quick Response Code;
Image generates trigger element, for receiving the judged result of described capacity judging unit, the most then touches
Send out and perform the step of the image after the described data message of described generation encodes;
Compression unit, for receiving the judged result of described capacity judging unit, if it is not, then compile described treating
The data message of code is compressed, and uses Quick Response Code coding techniques to the data message to be encoded after compression
Encode.
The code device of 12. wearable devices according to claim 10, it is characterised in that described figure
As signal generating unit, specifically for generating the image in 2 D code after described data message encodes.
The code device of 13. wearable devices according to claim 12, it is characterised in that also include:
Image-display units, after the image after encoding at the described data message of described generation, by described number
The image in 2 D code generated after it is believed that breath coding exports in the on-screen display (osd) area of wearable device.
The code device of 14. wearable devices according to claim 8, it is characterised in that also include:
User Status receives unit, after the image after encoding at the described data message of described generation, in real time
Receive the status information of user;
Piclear unit, if for the status information not receiving described user within the default time period, then
The image generated after removing described data message coding.
15. 1 kinds of method of data synchronization, it is characterised in that including:
Obtain the bank card information bound in current device;
Described bank card information is sent to wearable device by Near Field Communication mode;
Receive the payment request that server end sends;Described payment carries the bank card letter needing to pay in request
Breath;
Send to described server end and pay the request authorization message to valency with described.
16. 1 kinds of data synchronization units, it is characterised in that including:
Information acquisition unit, for obtaining the bank card information bound in current device;
Information transmitting unit, believes for sending described bank card by Near Field Communication mode to wearable device
Breath;
Pay request reception unit, for receiving the payment request that server end sends;Described payment in request is taken
Band needs the bank card information paid;
Authorization message transmitting element, asks the mandate to valency to be believed for sending to described server end with described payment
Breath.
17. 1 kinds of coding systems, it is characterised in that including: appoint according in the claims 8 to 14
The code device of one described wearable device;And
Data synchronization unit according to claim 16.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2016102242983 | 2016-04-12 | ||
CN201610224298 | 2016-04-12 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105956644A true CN105956644A (en) | 2016-09-21 |
Family
ID=56915307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610260274.3A Pending CN105956644A (en) | 2016-04-12 | 2016-04-25 | Coding method and coding device of wearable device, data synchronization method, data synchronization device, and coding system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105956644A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107968993A (en) * | 2016-10-20 | 2018-04-27 | 中国移动通信有限公司研究院 | A kind of method, smart card and the terminal of data synchronization |
CN109102381A (en) * | 2018-07-17 | 2018-12-28 | 中国银行股份有限公司 | Accounting processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103400174A (en) * | 2013-07-30 | 2013-11-20 | 人民搜索网络股份公司 | Encoding method, decoding method and system of two-dimensional code |
CN203825736U (en) * | 2014-05-14 | 2014-09-10 | 金陵科技学院 | High-safety portable payment/collection device |
CN104484799A (en) * | 2014-12-26 | 2015-04-01 | 小米科技有限责任公司 | Payment method and device |
CN104601327A (en) * | 2013-12-30 | 2015-05-06 | 腾讯科技(深圳)有限公司 | Safe verification method, relative apparatus and system |
-
2016
- 2016-04-25 CN CN201610260274.3A patent/CN105956644A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103400174A (en) * | 2013-07-30 | 2013-11-20 | 人民搜索网络股份公司 | Encoding method, decoding method and system of two-dimensional code |
CN104601327A (en) * | 2013-12-30 | 2015-05-06 | 腾讯科技(深圳)有限公司 | Safe verification method, relative apparatus and system |
CN203825736U (en) * | 2014-05-14 | 2014-09-10 | 金陵科技学院 | High-safety portable payment/collection device |
CN104484799A (en) * | 2014-12-26 | 2015-04-01 | 小米科技有限责任公司 | Payment method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107968993A (en) * | 2016-10-20 | 2018-04-27 | 中国移动通信有限公司研究院 | A kind of method, smart card and the terminal of data synchronization |
CN107968993B (en) * | 2016-10-20 | 2020-08-07 | 中国移动通信有限公司研究院 | Data synchronization method, smart card and terminal |
CN109102381A (en) * | 2018-07-17 | 2018-12-28 | 中国银行股份有限公司 | Accounting processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104392502B (en) | A kind of Work attendance method of the Quick Response Code attendance checking system based on smart mobile phone | |
CN106485851B (en) | A kind of no card automatic teller machine and without card withdrawal system | |
CN104599113B (en) | A kind of information processing method, device and system | |
EP3343488A1 (en) | Smart card multi-factor authentication device | |
CN104599112B (en) | A kind of information transferring method, device and system | |
CN104903925A (en) | System and method for securely loading, storing and transmitting magnetic stripe data in a device working with a mobile wallet system | |
CN107067250A (en) | For performing the method and apparatus paid | |
CN108960815A (en) | A kind of method, apparatus paid by wearable device and wearable device | |
US20220335428A1 (en) | Dynamic transaction card protected by multi-factor authentication | |
CN105225102A (en) | Method of mobile payment and the wearable mobile payment device for the method under line | |
CN104732376A (en) | Payment code reset method, terminal and system | |
CN107657441A (en) | Self-service dealing method, system, server and mobile terminal | |
Patil et al. | NFC based health monitoring and controlling system | |
CN105093911B (en) | A kind of intelligent watch | |
CN104820923A (en) | Smart wallet and payment method | |
CN105590202A (en) | Method and device for carrying out payment by using mobile terminal | |
CN105956644A (en) | Coding method and coding device of wearable device, data synchronization method, data synchronization device, and coding system | |
CN103761806A (en) | Financial security system used for mobile terminal | |
CN105706138A (en) | Multi-channel authentication, and financial transfer method and system using mobile communication terminal | |
CN102693480A (en) | Mobile terminal with read card function and mobile terminal payment method | |
CN104361492A (en) | Embedded electronic wallet and payment method thereof | |
CN206757698U (en) | A kind of mobile-payment system based on NFC | |
CN109151151A (en) | Realize the method and device of the user mode switching of terminal | |
CN107094159B (en) | Method and device for establishing corresponding relation between card and user account | |
CN102750567A (en) | Secure digital (SD) card supporting multiple accounts and capable of being used for remote mobile payment and short range communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160921 |
|
RJ01 | Rejection of invention patent application after publication |