CN107742336A - A kind of data transmission method and terminal device for being used to share bicycle smart lock - Google Patents

A kind of data transmission method and terminal device for being used to share bicycle smart lock Download PDF

Info

Publication number
CN107742336A
CN107742336A CN201710846049.2A CN201710846049A CN107742336A CN 107742336 A CN107742336 A CN 107742336A CN 201710846049 A CN201710846049 A CN 201710846049A CN 107742336 A CN107742336 A CN 107742336A
Authority
CN
China
Prior art keywords
state information
use state
user
server
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710846049.2A
Other languages
Chinese (zh)
Inventor
高行新
李中杰
谢洪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jimi Software Co Ltd
Original Assignee
Shenzhen Jimi Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jimi Software Co Ltd filed Critical Shenzhen Jimi Software Co Ltd
Priority to CN201710846049.2A priority Critical patent/CN107742336A/en
Publication of CN107742336A publication Critical patent/CN107742336A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The present invention is applied to smart lock technical field, a kind of data transmission method and terminal device for being used to share bicycle smart lock provided by the invention, and method includes:The unlocking instruction that client is sent is received, unlocking instruction carries user's mark;Unlocked according to unlocking instruction, and record the starting use state information of this stroke;Receive lock instruction when, according to locking, instruction is locked, and records the end use state information of this stroke;User's mark, starting use state information and end use state information are sent to server in preset time or every the first prefixed time interval, so that server is according to starting use state information and terminates use state information generation user's use information, and send user corresponding to user's use information to user's mark, the electricity of smart lock can be saved, extend cruising time, save the operation maintenance cost of shared bicycle.

Description

A kind of data transmission method and terminal device for being used to share bicycle smart lock
Technical field
The invention belongs to smart lock technical field, more particularly to a kind of data transmission method for being used to share bicycle smart lock And terminal device.
Background technology
With the prevalence of shared bicycle, core component of the smart lock as shared bicycle is main to include being used to take with backstage Business device enters the mobile communication module of row data communication.
Currently available technology is mainly that the mobile communication module of smart lock in real time believes wheelpath, duration, expense etc. Breath is sent to background server.Because mobile communication module needs to send data to background server in real time, smart lock is caused to consume Electricity increases, and cruising time shortens, and adds the operation maintenance cost of shared bicycle.
The content of the invention
In view of this, the embodiments of the invention provide a kind of data transmission method and terminal for being used to share bicycle smart lock Equipment, the electricity of smart lock can be saved, extend cruising time, save the operation maintenance cost of shared bicycle.
The first aspect of the embodiment of the present invention, there is provided for sharing the data transmission method methods described of bicycle smart lock Applied to the smart lock being arranged on shared bicycle, including:
The unlocking instruction that client is sent is received, the unlocking instruction carries user's mark, and the unlocking instruction is described After client sends request to server of unlocking, the unlocking of the client is returned according to the request of unlocking by the server Instruction;
Unlocked according to the unlocking instruction, and record the starting use state information of this stroke;
Receive lock instruction when, locked according to the instruction of locking, and record the end use state of this stroke Information;
User's mark, the starting use state information are sent in preset time or every the first prefixed time interval With the use state information that terminates to the server, so that the server is according to the starting use state information and institute State and terminate use state information generation user's use information, and send corresponding to user's use information to user mark User.
The second aspect of the embodiment of the present invention, there is provided for sharing the data transmission device of bicycle smart lock, the dress Put applied to the smart lock being arranged on shared bicycle, including:
Unlocking instruction receiving module, for receiving the unlocking instruction of client transmission, the unlocking instruction carries user's mark Know, the unlocking instruction is that client transmission unlocking is asked to server, please according to the unlocking by the server Seek the unlocking instruction for returning to the client;
First logging modle, for being unlocked according to the unlocking instruction, and record the starting use state letter of this stroke Breath;
Second logging modle, for receive lock instruction when, locked according to the instruction of locking, and record this row The end use state information of journey;
Sending module, for preset time or every the first prefixed time interval send user mark, described Beginning use state information and the end use state information are to the server, so that the server makes according to the starting User's use information is generated with status information and the end use state information, and sends user's use information described in User corresponding to user's mark.
The third aspect of the embodiment of the present invention, there is provided a kind of terminal device, including memory, processor and be stored in In the memory and the computer program that can run on the processor, described in the computing device during computer program The step of realizing the above-mentioned data transmission method for sharing bicycle smart lock.
The fourth aspect of the embodiment of the present invention, there is provided a kind of computer-readable recording medium, it is described computer-readable to deposit Storage media is stored with computer program, and the computer program is realized when being executed by processor above-mentioned is used to share bicycle intelligence The step of data transmission method of lock.
The beneficial effect of the embodiment of the present invention compared with prior art is:It is provided in an embodiment of the present invention to be used to share bicycle The data transmission method and terminal device of smart lock, the unlocking instruction sent by receiving client, unlocking instruction carry user Mark, unlocking instruction are after client sends request to server of unlocking, and ask to return to client according to unlocking by server Unlocking instruction;Unlocked according to unlocking instruction, and record the starting use state information of this stroke;Receiving instruction of locking When, according to locking, instruction is locked, and records the end use state information of this stroke;In preset time or default every first Time interval sends user's mark, starting use state information and terminates use state information to server, so that server root According to starting use state information and terminate use state information generation user's use information, and send user's use information to user User corresponding to mark.Implement because smart lock only just sends data message when meeting preset time to server, the present invention Example can save the electricity of smart lock, extend cruising time, save the operation maintenance cost of shared bicycle.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is that a kind of flow for data transmission method for sharing bicycle smart lock that one embodiment of the invention provides is shown It is intended to;
Fig. 2 is a kind of flow for being used to share the data transmission method of bicycle smart lock that another embodiment of the present invention provides Schematic diagram;
Fig. 3 is a kind of flow for being used to share the data transmission method of bicycle smart lock that yet another embodiment of the invention provides Schematic diagram;
Fig. 4 is a kind of flow for being used to share the data transmission method of bicycle smart lock that further embodiment of this invention provides Schematic diagram;
Fig. 5 is a kind of structural frames for being used to share the data transmission device of bicycle smart lock that one embodiment of the invention provides Figure;
Fig. 6 is the schematic block diagram for the terminal device that one embodiment of the invention provides.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
With reference to figure 1, Fig. 1 is a kind of data transmission method for being used to share bicycle smart lock that one embodiment of the invention provides Schematic flow sheet.The smart lock of the present embodiment is arranged on the smart lock on shared bicycle, and methods described is applied to smart lock, in detail State as follows:
S101:The unlocking instruction that client is sent is received, unlocking instruction carries user's mark, and unlocking instruction is sent out for client After sending unlocking request to server, the unlocking instruction for returning to client is asked according to unlocking by server.
In embodiments of the present invention, client can be mobile phone or PDA.User mark can be user account or Phone number.
Specifically, client reception unlocking instruction process is:User opens client bluetooth, scans two on shared bicycle Code is tieed up, obtains shared bicycle vehicles identifications;Server is arrived in the driving request that client sends carrying vehicles identifications, and server judges Whether the user is transmission unlocking instruction to client after validated user.
S102:Unlocked according to unlocking instruction, and record the starting use state information of this stroke.
In embodiments of the present invention, time and the position letter that this stroke starts can be included by originating use state information Breath.
S103:Receive lock instruction when, according to locking, instruction is locked, and records the end use state of this stroke Information.
In embodiments of the present invention, can receive client transmission lock instruction or user's manual locking triggering it is upper Lock instruction.After smart lock is completed to lock, the end use state information of time stroke is recorded.Wherein terminating use state information can With the time terminated including this stroke and positional information.
S104:Preset time or every the first prefixed time interval send user mark, starting use state information and Terminate use state information to server, so that server is according to starting use state information and terminates the generation of use state information User's use information, and send user corresponding to user's use information to user's mark.
In embodiments of the present invention, preset time can be configured according to demand, such as morning 2:00.Shape is used according to beginning User's use information that state information and the use state information that terminates generate can include user's wheel paths and the expense of consumption Deng.Prefixed time interval can be configured according to demand, such as 6 hours.Send user mark, starting use state information and Terminate the mobile communication module that use state information can be smart lock to server.
It was found from above-described embodiment, smart lock receives the unlocking instruction that client is sent, and unlocking instruction carries user's mark, Unlocking instruction is that the unlocking for asking to return to client according to unlocking by server refers to after client sends request to server of unlocking Order;Unlocked according to unlocking instruction, and record the starting use state information of this stroke;Receive lock instruction when, according to Instruction of locking is locked, and records the end use state information of this stroke;In preset time or every between the first preset time Every sending user's mark, starting use state information and terminating use state information to server, so that server is according to starting Use state information and end use state information generation user's use information, and user's use information is sent to user's mark pair The user answered.Because smart lock only just sends data message when meeting preset time or every the first prefixed time interval to clothes Be engaged in device, the embodiment of the present invention can save the electricity of smart lock, extend cruising time, save the operation maintenance of shared bicycle into This.
It should be noted that the charge method of the present invention is:User is stored in the cash pledge of certain number in the account in advance, leads to The normal cash pledge needs to freeze one day;User uses when paying the advance payment of certain number in advance from cash pledge with clearing;Work as user When receiving Pay Bill, settled accounts by the expense in advance payment.One can be delayed preferably for the preferable user of credit It sends bill;For the unpaid use of bill, then shared bicycle can not be reused.
With reference to figure 2, Fig. 2 is a kind of transmission side data for being used to share bicycle smart lock that another embodiment of the present invention provides The schematic flow sheet of method.On the basis of above-described embodiment, the starting use state information of the present embodiment include original position and Initial time, terminating use state information includes end position and end time, and details are as follows for method:
S201:The unlocking instruction that client is sent is received, unlocking instruction carries user's mark, and unlocking instruction is sent out for client After sending unlocking request to server, the unlocking instruction for returning to client is asked according to unlocking by server.
Specifically, client reception unlocking instruction process is:User opens client bluetooth, scans two on shared bicycle Code is tieed up, obtains shared bicycle vehicles identifications;Server is arrived in the driving request that client sends carrying vehicles identifications, and server judges Whether the user is transmission unlocking instruction to client after validated user.
S202:Unlocked according to unlocking instruction, and record the original position and initial time of this stroke.
S203:Receive lock instruction when, according to locking, instruction is locked, and records the end use state of this stroke Information includes end position and end time.
In embodiments of the present invention, original position and end position can be map references.
S204:Preset time or every the first prefixed time interval send user mark, original position, initial time, End position and end time are to server, so that server generates wheelpath information according to original position and end position, According to initial time and end time generation cost information, and it is corresponding to user's mark to send cost information and wheelpath information User.
It was found from above-described embodiment, by and record this stroke original position and initial time and terminate use state Information includes end position and end time, and in preset time or sends user's mark every the first prefixed time interval, rises Beginning position, initial time, end position and end time to server, server is according to original position and end position generation row Wheel paths information, cost information is generated according to initial time and end time, user can be caused to obtain detailed wheelpath And cost information, lift the usage experience of user.
With reference to figure 3, Fig. 3 is a kind of transmission side data for being used to share bicycle smart lock that yet another embodiment of the invention provides The schematic flow sheet of method.On the basis of above-described embodiment, details are as follows for the present embodiment:
The step of S301 to S303, is consistent with above-mentioned steps S101's to S103, and particular content refer to S101 to S103's Associated description, repeat no more here.
S304:Judge whether the data total amount of record exceedes default total amount threshold value.
In embodiments of the present invention, the data total amount of record including this stroke data (starting use state information and Terminate use state information), and the data of other strokes.Default total amount threshold value can be according to the big of the memory module of smart lock It is small to be configured.
S305:If it is determined that the data total amount of record exceedes default total amount threshold value, user's mark, starting use state letter are sent Cease and terminate use state information to server.
It was found from above-described embodiment, by judging whether the data total amount of record exceedes default total amount threshold value, when judgement is remembered When the data total amount of record exceedes default total amount threshold value, send user's mark, starting use state information and terminate use state letter Server is ceased, smart lock can be avoided the situation that data storage can not completely record new data occur, ensure smart lock Normal work;The electricity of smart lock can be saved simultaneously, extends cruising time, save the operation maintenance cost of shared bicycle.
With reference to figure 4, Fig. 4 is a kind of transmission side data for being used to share bicycle smart lock that further embodiment of this invention provides The schematic flow sheet of method.On the basis of above-described embodiment, details are as follows for the present embodiment:
The step of S401 to S403, is consistent with above-mentioned steps S101's to S103, and particular content refer to S101 to S103's Associated description, repeat no more here.
S404:The number of strokes of more new record, judges whether the number of strokes after renewal exceedes preset times threshold value.
In embodiments of the present invention, each run terminates rear number of strokes counting increase by 1.Preset times threshold value can basis Demand is configured.
S405:If it is determined that the number of strokes after renewal exceedes preset times threshold value, then user's mark is sent, starting uses shape State information and end use state information to server.
It was found from above-described embodiment, by judging whether the number of strokes after renewal exceedes preset times threshold value, in stroke When number exceedes preset times threshold value, then send user's mark, starting use state information and terminate use state information to clothes Business device, the electricity of smart lock can be further saved, extends cruising time, save the operation maintenance cost of shared bicycle.
In one embodiment of the invention, it is described to send the use in preset time or every the first prefixed time interval Family mark, the starting use state information and the end use state information to after the server, in addition to;
By the second prefixed time interval, judge whether to receive the data receiver successful information that the server returns; If it is determined that receiving the data receiver successful information that the server returns, then user's mark is deleted, the starting uses Status information and the end use state information;Successfully believe if it is determined that being not received by the data receiver that the server returns Breath, then user's mark, the starting use state information and the end use state information are resend to the clothes Business device.
By deleting user's mark, the starting use state information and the end use state information, ensure Smart lock being capable of normal work.
In one embodiment of the invention, unlocked according to the unlocking instruction, and and record the start bit of this stroke Put with after initial time, in addition to:
The centre position of the shared bicycle is recorded once every the 3rd prefixed time interval;
Receive lock instruction when, according to locking, instruction is locked, and records the end use state information of this stroke Including end position and after the end time, in addition to:
In preset time or every the first prefixed time interval, send user's mark, original position, initial time, own The centre position of record, end position and server described in the end time to server, so that server is according to original position, institute There are centre position, the end position generation wheelpath information of record.
Specifically, use state information can be the GPS module of the smart lock among recording.Middle use state information Including the position during shared bicycle use and temporal information.
It was found from the present embodiment, smart lock is by periodically recording the middle use state information of shared bicycle, concurrently Original position, the centre position of all records, end position device to be serviced are sent, server can be caused according to original position, institute There are the centre position of record, end position to generate more accurate wheelpath information, realize and sent in real time without smart lock Centre position to server, also can accurate recording wheelpath information effect.
Corresponding to the data transmission method for being used to share bicycle smart lock of foregoing embodiments, Fig. 5 is implemented for the present invention one A kind of structured flowchart for being used to share the data transmission device of bicycle smart lock that example provides.For convenience of description, illustrate only The part related to the embodiment of the present invention.Reference picture 5, the system include:Unlocking instruction receiving module 501, the first logging modle 502nd, the second logging modle 503 and sending module 504.
Unlocking instruction receiving module 501, for receiving the unlocking instruction of client transmission, the unlocking instruction carries user Mark, the unlocking instruction are after the client sends request to server of unlocking, by the server according to the unlocking Request returns to the unlocking instruction of the client;
First logging modle 502, for being unlocked according to the unlocking instruction, and record the starting use state of this stroke Information;
Second logging modle 503, for receive lock instruction when, locked according to the instruction of locking, and minute book The end use state information of secondary stroke;
Sending module 504, for sending user mark, described in preset time or every the first prefixed time interval Use state information and the end use state information are originated to the server, so that the server is according to the starting Use state information and end use state information generation user's use information, and user's use information is sent to institute State user corresponding to user's mark.
It was found from above-described embodiment, by receiving the unlocking instruction of client transmission, unlocking instruction carries user's mark, opened After lock instruction sends request to server of unlocking for client, the unlocking for asking to return to client according to unlocking by server refers to Order;Unlocked according to unlocking instruction, and record the starting use state information of this stroke;Receive lock instruction when, according to Instruction of locking is locked, and records the end use state information of this stroke;In preset time or every between the first preset time Every sending user's mark, starting use state information and terminating use state information to server, so that server is according to starting Use state information and end use state information generation user's use information, and user's use information is sent to user's mark pair The user answered.Because smart lock is only meeting preset time or is being just to send data message to clothes every the first prefixed time interval Be engaged in device, the embodiment of the present invention can save the electricity of smart lock, extend cruising time, save the operation maintenance of shared bicycle into This.
With reference to figure 5, in one embodiment of the invention, on the basis of above-described embodiment, the starting use state Information includes original position and initial time, and the end use state information includes end position and end time;
The sending module 504, specifically in the preset time or every described in the transmission of the first prefixed time interval User's mark, the original position, the initial time, the end position and the end time to the server, with The server is generated wheelpath information according to the original position and the end position, according to the initial time and The end time generates cost information, and sends the cost information and the wheelpath information to user mark pair The user answered.
With reference to figure 5, in one embodiment of the invention, described device also includes:
First judge module 505, for the second logging modle 503 record this stroke end use state information it Afterwards, judge whether the data total amount of record exceedes default total amount threshold value;
The sending module 504, it is additionally operable to if it is determined that the data total amount recorded exceedes the default total amount threshold value, then perform User's mark, the starting use state information and the use state information that terminates are sent to the step of the server Suddenly.
With reference to figure 5, in one embodiment of the invention, on the basis of above-described embodiment, described device also includes:
Second judge module 506, for the second logging modle 503 record this stroke end use state information it Afterwards, the number of strokes of more new record, judges whether the number of strokes after renewal exceedes preset times threshold value;
The sending module 504, it is additionally operable to if it is determined that the number of strokes after updating exceedes the preset times threshold value, then hold Row sends user's mark, the starting use state information and the use state information that terminates to the step of the server Suddenly.
With reference to figure 5, in one embodiment of the invention, on the basis of above-described embodiment, described device also includes:
3rd judge module 507, for sending module in preset time or every described in the transmission of the first prefixed time interval User's mark, the starting use state information and the end use state information are to after the server, by second Prefixed time interval, judge whether to receive the data receiver successful information that the server returns;
Removing module 508, for if it is determined that receive the data receiver successful information that the server returns, then deleting institute State user's mark, the starting use state information and the end use state information;
The sending module 504, it is additionally operable to successfully believe if it is determined that being not received by the data receiver that the server returns Breath, then user's mark, the starting use state information and the end use state information are resend to the clothes Business device.
With reference to figure 5, in one embodiment of the invention, on the basis of above-described embodiment, described device also includes:The Three logging modles 508
3rd logging modle 508, for recording once institute every the 3rd prefixed time interval after the first logging modle 502 State the centre position of shared bicycle;
The sending module 504, be additionally operable in preset time or every the first prefixed time interval, send user's mark, Original position, initial time, the centre position of all records, end position and server described in the end time to server, with Server is set to generate wheelpath information according to original position, the centre position of all records, end position.
Specifically, use state information can be the GPS module of the smart lock among recording.Middle use state information Including the position during shared bicycle use and temporal information.
It was found from the present embodiment, smart lock is by periodically recording the middle use state information of shared bicycle, concurrently Original position, the centre position of all records, end position device to be serviced are sent, server can be caused according to original position, institute There are the centre position of record, end position to generate more accurate wheelpath information, realize and sent in real time without smart lock Centre position to server, also can accurate recording wheelpath information effect.
Referring to Fig. 6, Fig. 6 is the schematic block diagram for the terminal device that one embodiment of the invention provides.This implementation as shown in Figure 6 Terminal 600 in example can include:One or more processors 601, one or more input equipments 602, one or more are then Output equipment 603 and one or more memories 604.Above-mentioned processor 601, input equipment 602, then output equipment 603 and deposit Reservoir 604 completes mutual communication by communication bus 605.Memory 604 is used to store computer program, the computer Program includes programmed instruction.Processor 601 is used for the programmed instruction for performing the storage of memory 604.Wherein, processor 601 by with Put for calling described program instruction to perform following operate:
Processor 601, for receiving the unlocking instruction of client transmission, the unlocking instruction carries user's mark, described Unlocking instruction is after the client sends request to server of unlocking, and institute is returned to according to the request of unlocking by the server State the unlocking instruction of client;Unlocked according to the unlocking instruction, and record the starting use state information of this stroke;Connecing Receive lock instruction when, locked according to the instruction of locking, and record the end use state information of this stroke;When default Between or send user mark, the starting use state information and the end every the first prefixed time interval and use shape State information is to the server, so that the server is believed according to the starting use state information and the end use state Breath generation user's use information, and send user corresponding to user's use information to user mark.
Further, the starting use state information includes original position and initial time, the end use state Information includes end position and end time, processor 601, for described in preset time or every the first prefixed time interval Send user's mark, starting use state information and terminate use state information to the server, so that the service Device is according to the starting use state information and terminates use state information generation user's use information, and sends the user and make The process of user corresponding to information to user mark, including:In the preset time or every between the first preset time Every transmission user's mark, the original position, the initial time, the end position and the end time described in Server, so that the server generates wheelpath information according to the original position and the end position, according to described Initial time and end time generation cost information, and the cost information and the wheelpath information are sent described in User corresponding to user's mark.
Further, processor 601, for after the end use state information of this stroke is recorded, judging to record Data total amount whether exceed default total amount threshold value;If it is determined that the data total amount of record exceedes the default total amount threshold value, then hold Row sends user's mark, the starting use state information and the use state information that terminates to the step of the server Suddenly.
Further, processor 601, after the end use state information of this stroke is recorded, the row of more new record Journey number, judges whether the number of strokes after renewal exceedes preset times threshold value;If it is determined that the number of strokes after renewal exceedes institute Preset times threshold value is stated, then performs and sends user's mark, the starting use state information and the end use state The step of information is to the server.
Further, processor 601, for described in preset time or every the first prefixed time interval transmission use Family mark, the starting use state information and the end use state information are pre- by second to after the server If time interval, judge whether to receive the data receiver successful information that the server returns;If it is determined that receive the clothes The data receiver successful information that business device returns, then delete user's mark, the starting use state information and the end Use state information;If it is determined that being not received by the data receiver successful information that the server returns, then resend described User's mark, the starting use state information and the use state information that terminates are to the server.
It should be appreciated that in embodiments of the present invention, alleged processor 601 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 602 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone etc., output equipment 603 can include display (LCD etc.), loudspeaker etc..
The memory 604 can include read-only storage and random access memory, and to processor 601 provide instruction and Data.The a part of of memory 604 can also include nonvolatile RAM.For example, memory 604 can also be deposited Store up the information of device type.
In the specific implementation, processor 601, input equipment 602, the output equipment 603 described in the embodiment of the present invention can The implementation described in the first embodiment and second embodiment of service request method provided in an embodiment of the present invention is performed, Also the implementation of the terminal described by the embodiment of the present invention is can perform, will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the invention Matter is stored with computer program, and the computer program includes programmed instruction, and described program instruction is realized when being executed by processor All or part of flow in above-described embodiment method, by computer program the hardware of correlation can also be instructed to complete, Described computer program can be stored in a computer-readable recording medium, the computer program when being executed by processor, The step of above-mentioned each embodiment of the method can be achieved..Wherein, the computer program includes computer program code, the meter Calculation machine program code can be source code form, object identification code form, executable file or some intermediate forms etc..The calculating Machine computer-readable recording medium can include:Any entity or device of the computer program code, recording medium, USB flash disk, shifting can be carried Dynamic hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..Need what is illustrated It is that the content that the computer-readable medium includes can be fitted according to legislation in jurisdiction and the requirement of patent practice When increase and decrease, such as in some jurisdictions, according to legislation and patent practice, it is electric carrier wave that computer-readable medium, which does not include, Signal and telecommunication signal.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is described for storing Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily The data that ground storage has been exported or will exported.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of data transmission method for being used to share bicycle smart lock, it is characterised in that methods described is applied to be arranged on altogether The smart lock on bicycle is enjoyed, including:
The unlocking instruction that client is sent is received, the unlocking instruction carries user's mark, and the unlocking instruction is the client After end sends request to server of unlocking, the unlocking for returning to the client according to the request of unlocking by the server refers to Order;
Unlocked according to the unlocking instruction, and record the starting use state information of this stroke;
Receive lock instruction when, locked according to the instruction of locking, and record the end use state information of this stroke;
User's mark, the starting use state information and institute are sent in preset time or every the first prefixed time interval State and terminate use state information to the server, so that the server is according to the starting use state information and the knot Beam use state information generates user's use information, and sends user's use information and identify corresponding use to the user Family.
2. the data transmission method according to claim 1 for being used to share bicycle smart lock, it is characterised in that the starting Use state information includes original position and initial time, and the end use state information includes end position with the end of Between;
It is described to send user's mark, starting use state information and the knot in preset time or every the first prefixed time interval Beam use state information is to the server, so that the server is according to the starting use state information and terminates to use shape State information generates user's use information, and sends user corresponding to user's use information to user mark, including:
The preset time or every the first prefixed time interval send user's mark, the original position, described Time, the end position and the end time begin to the server, so that the server is according to the original position Wheelpath information is generated with the end position, cost information is generated according to the initial time and the end time, and Send user corresponding to the cost information and the wheelpath information to user mark.
3. the data transmission method according to claim 1 for being used to share bicycle smart lock, it is characterised in that in minute book After the end use state information of secondary stroke, in addition to:
Judge whether the data total amount of record exceedes default total amount threshold value;
If it is determined that the data total amount of record exceedes the default total amount threshold value, then perform and send user's mark, the starting The step of use state information and the end use state information are to the server.
4. the data transmission method according to claim 1 for being used to share bicycle smart lock, it is characterised in that in minute book After the end use state information of secondary stroke, in addition to:
The number of strokes of more new record, judges whether the number of strokes after renewal exceedes preset times threshold value;
If it is determined that the number of strokes after renewal exceedes the preset times threshold value, then perform send the user identify, described The step of beginning use state information and the end use state information are to the server.
5. the data transmission method according to claim 1 for being used to share bicycle smart lock, it is characterised in that described pre- If the time makes every the first prefixed time interval transmission user's mark, the starting use state information and the end After status information to the server, in addition to;
By the second prefixed time interval, judge whether to receive the data receiver successful information that the server returns;
If it is determined that receiving the data receiver successful information that the server returns, then user's mark, the starting are deleted Use state information and the end use state information;
If it is determined that be not received by the data receiver successful information that the server returns, then resend user's mark, The starting use state information and the use state information that terminates are to the server.
6. a kind of data transmission device for being used to share bicycle smart lock, it is characterised in that described device is applied to be arranged on altogether The smart lock on bicycle is enjoyed, including:
Unlocking instruction receiving module, for receiving the unlocking instruction of client transmission, the unlocking instruction carries user's mark, institute After unlocking instruction is stated as client transmission unlocking request to server, by the server according to the request return of unlocking The unlocking instruction of the client;
First logging modle, for being unlocked according to the unlocking instruction, and record the starting use state information of this stroke;
Second logging modle, for receive lock instruction when, locked according to the instruction of locking, and record this stroke Terminate use state information;
Sending module, in preset time or every the first prefixed time interval sends user's mark, the starting makes With status information and the end use state information to the server, so that the server uses shape according to the starting State information and end use state information generation user's use information, and user's use information is sent to the user User corresponding to mark.
7. the data transmission device according to claim 6 for being used to share bicycle smart lock, it is characterised in that the starting Use state information includes original position and initial time, and the end use state information includes end position with the end of Between;
The sending module, specifically for sending user's mark in the preset time or every the first prefixed time interval Knowledge, the original position, the initial time, the end position and the end time to the server so that described Server generates wheelpath information according to the original position and the end position, according to the initial time and the knot The beam time generates cost information, and sends the cost information and the wheelpath information and identify corresponding use to the user Family.
8. the data transmission device according to claim 6 for being used to share bicycle smart lock, it is characterised in that also include:
First judge module, after the end use state information that this stroke is recorded for the second logging modle, judge to record Data total amount whether exceed default total amount threshold value;
The sending module, it is additionally operable to if it is determined that the data total amount recorded exceedes the default total amount threshold value, then execution sends institute State the step of user's mark, the starting use state information and the end use state information are to the server.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program Described in any one be used for share bicycle smart lock data transmission method the step of.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In realization is intelligent for sharing bicycle as described in any one of claim 1 to 5 when the computer program is executed by processor The step of data transmission method of lock.
CN201710846049.2A 2017-09-19 2017-09-19 A kind of data transmission method and terminal device for being used to share bicycle smart lock Pending CN107742336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710846049.2A CN107742336A (en) 2017-09-19 2017-09-19 A kind of data transmission method and terminal device for being used to share bicycle smart lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710846049.2A CN107742336A (en) 2017-09-19 2017-09-19 A kind of data transmission method and terminal device for being used to share bicycle smart lock

Publications (1)

Publication Number Publication Date
CN107742336A true CN107742336A (en) 2018-02-27

Family

ID=61235195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710846049.2A Pending CN107742336A (en) 2017-09-19 2017-09-19 A kind of data transmission method and terminal device for being used to share bicycle smart lock

Country Status (1)

Country Link
CN (1) CN107742336A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108360925A (en) * 2018-04-28 2018-08-03 南京林业大学 A kind of intelligent lock system and its control method
CN110570562A (en) * 2019-08-26 2019-12-13 恒大智慧科技有限公司 Identity verification device and entrance machine
CN111429226A (en) * 2020-03-30 2020-07-17 北京骑胜科技有限公司 Order repairing method and device
CN111861613A (en) * 2019-05-19 2020-10-30 北京骑胜科技有限公司 Electronic lock operation recording method and device
CN111862402A (en) * 2019-12-31 2020-10-30 北京骑胜科技有限公司 Intelligent lock management method and related device
CN112002036A (en) * 2019-05-08 2020-11-27 杭州萤石软件有限公司 Method and system for managing room based on linkage of sensor and intelligent lock
CN112466047A (en) * 2020-10-26 2021-03-09 深圳市云伽智能技术有限公司 Dual offline vehicle management method and related device
CN112927393A (en) * 2021-02-08 2021-06-08 上海钧正网络科技有限公司 Riding data processing method, server, user equipment and readable storage medium
WO2021233124A1 (en) * 2020-05-20 2021-11-25 北京骑胜科技有限公司 Communication mode setting method and apparatus for intelligent lock, and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980898A (en) * 2014-04-04 2015-10-14 中兴通讯股份有限公司 Information pushing method, system and equipment
CN105262836A (en) * 2015-10-30 2016-01-20 惠州高盛达科技有限公司 Information push method of server and push information reception method of client
CN105809833A (en) * 2016-02-24 2016-07-27 北京易代步科技有限公司 Bicycle management method and system
CN106652232A (en) * 2016-12-28 2017-05-10 北京拜克洛克科技有限公司 Bike sharing method and system
CN106828674A (en) * 2017-02-09 2017-06-13 浙江扫币科技有限公司 Fully-automatic intelligent bicycle lock and its control method
CN106869561A (en) * 2017-04-05 2017-06-20 北京云闪科技有限公司 A kind of intelligent space lock, user terminal, central server and control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980898A (en) * 2014-04-04 2015-10-14 中兴通讯股份有限公司 Information pushing method, system and equipment
CN105262836A (en) * 2015-10-30 2016-01-20 惠州高盛达科技有限公司 Information push method of server and push information reception method of client
CN105809833A (en) * 2016-02-24 2016-07-27 北京易代步科技有限公司 Bicycle management method and system
CN106652232A (en) * 2016-12-28 2017-05-10 北京拜克洛克科技有限公司 Bike sharing method and system
CN106828674A (en) * 2017-02-09 2017-06-13 浙江扫币科技有限公司 Fully-automatic intelligent bicycle lock and its control method
CN106869561A (en) * 2017-04-05 2017-06-20 北京云闪科技有限公司 A kind of intelligent space lock, user terminal, central server and control system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108360925A (en) * 2018-04-28 2018-08-03 南京林业大学 A kind of intelligent lock system and its control method
CN108360925B (en) * 2018-04-28 2023-08-22 南京林业大学 Intelligent lock system and control method thereof
CN112002036A (en) * 2019-05-08 2020-11-27 杭州萤石软件有限公司 Method and system for managing room based on linkage of sensor and intelligent lock
CN112002036B (en) * 2019-05-08 2022-12-02 杭州萤石软件有限公司 Method and system for managing room based on linkage of sensor and intelligent lock
CN111861613B (en) * 2019-05-19 2024-04-16 北京骑胜科技有限公司 Electronic lock operation recording method and device
CN111861613A (en) * 2019-05-19 2020-10-30 北京骑胜科技有限公司 Electronic lock operation recording method and device
CN110570562A (en) * 2019-08-26 2019-12-13 恒大智慧科技有限公司 Identity verification device and entrance machine
CN111862402B (en) * 2019-12-31 2022-07-22 北京骑胜科技有限公司 Intelligent lock management method and related device
CN111862402A (en) * 2019-12-31 2020-10-30 北京骑胜科技有限公司 Intelligent lock management method and related device
CN111429226A (en) * 2020-03-30 2020-07-17 北京骑胜科技有限公司 Order repairing method and device
WO2021233124A1 (en) * 2020-05-20 2021-11-25 北京骑胜科技有限公司 Communication mode setting method and apparatus for intelligent lock, and device and storage medium
CN112466047A (en) * 2020-10-26 2021-03-09 深圳市云伽智能技术有限公司 Dual offline vehicle management method and related device
CN112927393A (en) * 2021-02-08 2021-06-08 上海钧正网络科技有限公司 Riding data processing method, server, user equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN107742336A (en) A kind of data transmission method and terminal device for being used to share bicycle smart lock
CN106682890A (en) Business value transferring method and apparatus among multiple user accounts
CN107792009A (en) Vehicle starting method and device based on driver identity certification
CN102426780A (en) Paging system used for summoning taxis and paging method thereof
CN105489001A (en) Taxi scheduling optimization method and system
CN106997577A (en) A kind of order strategy dynamic adjusting method and device
CN106097463A (en) A kind of method preventing parking lot from repeating payment, control device and parking system
CN108805655A (en) Vehicle timesharing Sharing Management method and service platform
CN105825663A (en) Taxi taking method, server and taxi taking system
CN108074288A (en) A kind of method, apparatus and storage medium of vehicle export control
CN110599349A (en) Data processing method based on block chain network, related equipment and storage medium
CN106327177A (en) Account resource sharing method and system
CN109670813A (en) Account management method, device, computer installation and computer readable storage medium
CN110288774A (en) A kind of vehicle sharing method, device, server and readable storage medium storing program for executing
CN109842678A (en) A kind of vehicle sharing method and device
CN109145007A (en) A kind of data processing method, device, server and computer storage medium
CN110113710B (en) Charging method, terminal, server and charging system
CN106276766B (en) A kind of the filling information collecting method and device of urea for vehicle solution
CN108428185A (en) Method and server are surveyed in vehicle insurance Claims Resolution
CN107315658A (en) A kind of data back up method and device, computer installation and readable storage medium storing program for executing
CN110414737A (en) Public transport stroke processing method, device, electronic equipment and storage medium
CN104717625A (en) Credit control processing method and device
CN107844986A (en) One kind uses car order pricing method and server
CN109255583A (en) A kind of information sharing method, device, relevant device and medium
CN103377071B (en) A kind of batch data delet method and system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Guangdong Shenzhen Baoan District Xin'an Street office 67 District high new plant C building 4 floor 05 room + ancillary area C

Applicant after: Shenzhen city a few meters physical union Limited

Address before: 518000 Guangdong Shenzhen Baoan District Xin'an Street office 67 District high new plant C building 4 floor 05 room + ancillary area C

Applicant before: SHENZHEN JIMI SOFTWARE CO., LTD.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180227