CN115297137A - Shared bicycle using method, electronic equipment and storage medium - Google Patents

Shared bicycle using method, electronic equipment and storage medium Download PDF

Info

Publication number
CN115297137A
CN115297137A CN202210768016.1A CN202210768016A CN115297137A CN 115297137 A CN115297137 A CN 115297137A CN 202210768016 A CN202210768016 A CN 202210768016A CN 115297137 A CN115297137 A CN 115297137A
Authority
CN
China
Prior art keywords
information
user
authentication
shared bicycle
bicycle
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
CN202210768016.1A
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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech 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 Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN202210768016.1A priority Critical patent/CN115297137A/en
Publication of CN115297137A publication Critical patent/CN115297137A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0042Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
    • G07F17/0057Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects for the hiring or rent of vehicles, e.g. cars, bicycles or wheelchairs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a shared bicycle using method, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an authentication encryption packet and verification information transmitted by a user based on a Bluetooth communication channel, wherein the authentication encryption packet at least comprises encrypted authentication information; acquiring authentication information of the authentication encryption packet based on a preset decryption rule; and controlling the shared bicycle to unlock according to the authentication information and the verification information. According to the embodiment of the invention, the shared bicycle is used under the condition of no network connection through Bluetooth communication, the authentication link of unlocking the shared bicycle is reduced, the unlocking efficiency of the shared bicycle can be improved, the waiting time of a user is reduced, the use experience of the user can be improved, the limitation of a network environment on the use of the shared bicycle can be reduced, and the utilization rate of the shared bicycle can be improved.

Description

Shared bicycle using method, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of wireless computer application, in particular to a shared bicycle using method, electronic equipment and a storage medium.
Background
The problem of the last kilometer is the biggest obstacle of the urban residents in adopting public transport at present, and is also the main modulation for constructing a low-carbon society. At present, in order to solve the problem, a sharing single-vehicle enterprise provides services for residents by putting sharing single vehicles in subway stations, business districts and residential areas, and convenience of public transportation is guaranteed to the maximum extent. The use method of the shared bicycle in the current market is approximately as follows: sharing bicycle Application software (APP) on the mobile phone determines the specific position of a nearby sharing bicycle by using the position information of a Global Positioning System (GPS) of the mobile phone and the vehicle position reported by the sharing bicycle, when a user uses the sharing bicycle, the user needs to scan a two-dimensional code posted on a vehicle through the sharing bicycle APP to acquire bicycle information, the sharing bicycle APP uploads the acquired bicycle information and the user information to a cloud server, and the cloud server controls the unlocking of the sharing bicycle.
The use method of the shared bicycle cannot leave the network, and under the condition of poor network quality or no network, users often cannot normally use the shared bicycle, so that the application scene of the shared bicycle is limited. For example, when the sharing bicycle is located in an underground garage or in a suburb, the sharing bicycle cannot be used due to no network connection or poor network connection quality, so that resources are idle, and the sharing bicycle cannot be utilized most efficiently.
Disclosure of Invention
The invention provides a shared bicycle using method, electronic equipment and a storage medium, which are used for realizing the use of a shared bicycle under the condition of no network connection, reducing the authentication link of unlocking the shared bicycle, improving the unlocking efficiency of the shared bicycle, reducing the waiting time of a user, improving the use experience of the user, reducing the limitation of a network environment on the use of the shared bicycle and improving the utilization rate of the shared bicycle.
According to one aspect of the invention, a sharing bicycle using method is provided and applied to a sharing bicycle, wherein the method comprises the following steps:
acquiring an authentication encryption packet and verification information transmitted by a user based on a Bluetooth communication channel, wherein the authentication encryption packet at least comprises encrypted authentication information;
acquiring authentication information of the authentication encryption packet based on a preset decryption rule;
and controlling the shared bicycle to unlock according to the authentication information and the verification information.
According to another aspect of the present invention, there is provided a method for using a shared bicycle, applied to a user terminal, wherein the method includes:
generating an encrypted usage record for the user after the shared bicycle is locked, wherein the usage record includes at least one of: user identification, equipment identification, bicycle identification, use duration and token;
and transmitting the usage record to a user terminal and/or a cloud server to generate a consumption bill.
According to another aspect of the invention, a shared bicycle using method is provided and applied to a cloud server, wherein the method comprises the following steps:
generating an authentication encryption packet according to user use information transmitted by a user terminal;
and issuing the authentication encryption package to the user terminal so that the user terminal unlocks the shared bicycle according to the authentication encryption package.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform a method of shared bicycle use as described in any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to perform the method of shared bicycle use according to any one of the embodiments of the present invention when executed.
According to the technical scheme of the embodiment of the invention, the authentication encryption packet and the verification information transmitted by the user are acquired through the Bluetooth communication channel, the authentication information in the authentication encryption packet is extracted according to the preset decryption rule, the unlocking of the shared bicycle is controlled based on the comparison result of the authentication information and the verification information, the shared bicycle is used under the condition of no network connection based on the Bluetooth communication, the authentication link of the unlocking of the shared bicycle is reduced, the unlocking efficiency of the shared bicycle is improved, the waiting time of the user is reduced, the use experience of the user is improved, the limitation of the network environment on the use of the shared bicycle is reduced, and the utilization rate of the shared bicycle is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a frame layout for a shared bicycle according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for using a shared bicycle according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for using a shared bicycle according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a method for using a shared bicycle according to a third embodiment of the present invention;
FIG. 5 is a flow chart illustrating a method for using a shared bicycle according to a fourth embodiment of the present invention;
FIG. 6 is a frame layout diagram for sharing a bicycle according to a fifth embodiment of the present invention;
FIG. 7 is an exemplary diagram of a method for using a shared bicycle according to a fifth embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a shared bicycle using device according to a sixth embodiment of the present invention;
FIG. 9 is a schematic structural diagram of another sharing bicycle using device according to a sixth embodiment of the invention;
FIG. 10 is a schematic structural diagram of another shared bicycle using device according to a sixth embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device implementing the shared bicycle using method according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides a shared bicycle using method under the condition of no network connection, and referring to fig. 1, a frame can comprise a shared bicycle, a cloud server and a user terminal, wherein the shared bicycle can be provided with a Bluetooth module, a networking module and a computing module, the user terminal can be provided with a Bluetooth module and a special APP with the shared bicycle, and the cloud server can provide background service for the shared bicycle and the user terminal.
Example one
Fig. 2 is a flowchart of a shared bicycle using method according to an embodiment of the present invention, where the present embodiment is applicable to shared bicycle use without network connection, and the method may be executed by a shared bicycle using apparatus, and the shared bicycle using apparatus may be implemented in the form of hardware and/or software, and is generally integrated in a shared bicycle. As shown in fig. 2, the method includes:
step 110, obtaining an authentication encryption packet and verification information transmitted by a user based on a bluetooth communication channel, wherein the authentication encryption packet at least comprises encrypted authentication information.
The bluetooth communication channel can be a radio communication channel supporting short-distance communication of the device, the bluetooth communication channel can adopt a decentralized network structure, and the bluetooth communication channel can complete point-to-point and point-to-multipoint communication based on fast frequency hopping and short packet technology. The authentication encryption package can be an encrypted authentication data package, the authentication encryption package can be generated by a cloud server and used for unlocking the shared bicycle by the user terminal, the authentication encryption package can comprise encrypted authentication information, the authentication information can be used for being compared with verification information of the user terminal, the verification information can be used for identifying the user terminal to use identity, and the verification information can comprise information such as a terminal identifier and a user identifier of the user terminal.
In the embodiment of the invention, the sharing bicycle can establish a Bluetooth communication channel with the user terminal, and the authentication encryption packet and the verification information transmitted to the sharing bicycle by the user terminal are acquired through the Bluetooth communication channel, and the authentication encryption packet can be decrypted only by the sharing bicycle to realize the unlocking of the sharing bicycle. The shared bicycle may compare the information obtained after decrypting the authentication encryption packet with the verification information, and unlock the shared bicycle when the obtained information matches the verification information. It can be understood that the authentication encryption package can be authentication information in an encrypted form, the authentication encryption can be generated by a cloud server, and the user terminal only stores the authentication encryption package for unlocking the sharing bicycle, and it can be understood that the user terminal can be provided with application software special for the sharing bicycle, and the application software can include the pre-stored authentication encryption package, and the authentication encryption package is only used for decrypting the sharing bicycle, and the authentication encryption package is prevented from being tampered by a user in an encrypted manner, so that the sharing bicycle is used.
In an exemplary embodiment, the sharing bicycle may broadcast a bluetooth connection request, the user terminal may establish a bluetooth communication channel based on the bluetooth connection request, the user terminal may transmit verification information of the user terminal and a stored authentication encryption packet to the sharing bicycle through the bluetooth communication channel, and the sharing bicycle may receive the verification information and the authentication encryption packet to perform subsequent unlocking control.
And step 120, acquiring authentication information of the authentication encryption packet based on a preset decryption rule.
The preset decryption rule may be a program processing rule for decrypting the authentication encryption packet, the preset decryption rule may correspond to a generation process of the authentication encryption packet, that is, the preset decryption rule may be an inverse process of generating the authentication encryption packet, the authentication encryption packet may be reduced to an unencrypted plaintext, the preset decryption rule may be configured in the shared bicycle in advance by a service provider of the shared bicycle, and the preset decryption rule may include a DES decryption rule, an AES decryption rule, an RSA decryption rule, and the like.
Specifically, after receiving the authentication encryption packet, the sharing bicycle may decrypt the authentication encryption packet according to a preset decryption rule configured in advance, so as to obtain a plaintext corresponding to the authentication encryption packet, and may extract authentication information for controlling the sharing bicycle to receive in the plaintext, where the authentication information may be information used by the user to obtain the encryption packet, and the authentication information may include a device identifier of the user using the terminal device, user identity information, and the like.
And step 130, controlling the shared bicycle to unlock according to the authentication information and the verification information.
In the embodiment of the invention, after the shared bicycle acquires the authentication information and the verification information, the authentication information and the verification information can be compared, whether the authentication information extracted from the authentication encryption packet is the same as the verification information transmitted by the user terminal or not is judged, if so, the user is determined to be a legal authorized user, the shared bicycle is controlled to unlock, and if not, the shared bicycle is not controlled to unlock.
According to the embodiment of the invention, the authentication encryption packet and the verification information transmitted by the user are acquired through the Bluetooth communication channel, the authentication information in the authentication encryption packet is extracted according to the preset decryption rule, the unlocking of the shared bicycle is controlled based on the comparison result of the authentication information and the verification information, the shared bicycle is used under the condition of no network connection based on the Bluetooth communication, the authentication link of the unlocking of the shared bicycle is reduced, the unlocking efficiency of the shared bicycle can be improved, the waiting time of the user is reduced, the use experience of the user can be improved, the limitation of the network environment on the use of the shared bicycle can be reduced, and the utilization rate of the shared bicycle can be improved.
Example two
Fig. 3 is a flowchart of another shared bicycle using method according to a second embodiment of the present invention, which is embodied in the foregoing embodiment of the present invention, and referring to fig. 3, the method provided in the embodiment of the present invention specifically includes the following steps:
step 210, broadcasting a bluetooth communication channel establishment request to enable the user terminal to search for the establishment request through bluetooth.
In the embodiment of the present invention, the shared bicycle may broadcast the establishment request of the bluetooth communication channel to all devices in the environment, and the user terminal may search the establishment request of the bluetooth communication channel in the environment by using bluetooth, so that the user terminal may establish the bluetooth communication channel with the shared bicycle, where the establishment request may carry identification information of the shared bicycle, such as a bluetooth name, a bicycle number, and the like.
Step 220, receiving response information of the user terminal corresponding to the establishment request of the user, and establishing a bluetooth communication channel with the user terminal according to the response information.
The response information may be information sent by the user terminal to the sharing bicycle for feeding back the establishment of the bluetooth communication channel.
In the embodiment of the invention, the user terminal can generate the response information corresponding to the establishment request and send the response information to the sharing bicycle, and the sharing bicycle establishes the Bluetooth communication channel with the user terminal after receiving the response information.
And step 230, monitoring and receiving the bluetooth communication channel to receive the authentication encryption packet and the verification information transmitted by the user terminal.
Specifically, the sharing bicycle may monitor the bluetooth communication channel to receive the authentication encryption packet and the verification information transmitted by the user terminal through the bluetooth communication channel.
And 240, decrypting the authentication encryption packet according to a preset decryption rule.
In the embodiment of the invention, the sharing bicycle can decrypt the received authentication encryption packet according to the preset decryption rule, and can decrypt the authentication encryption packet into a plaintext form.
And step 250, extracting the token and the authentication information in the decrypted authentication encryption packet, wherein the authentication information comprises a user identifier and a device identifier.
The token can be information used for authenticating the identity of the user, the information can be generated and verified by the cloud server, the token can be generated by the cloud server according to the user information and the equipment information, one token can be used only once, the token is invalid after being used, and the token needs to be generated again by the cloud server. The user identifier may be unique identification information for distinguishing users, different users have different user identifiers, and the device identifier may be unique identification information for distinguishing different user devices.
Specifically, after the sharing bicycle decrypts the authentication encryption packet into a plaintext, the token and the authentication information including the user identifier, the device identifier and other information may be extracted from the plaintext, and the authentication information may be used for comparison with the verification information.
Step 260, determining that the user identifier and the device identifier in the authentication information are matched with the authentication user and the authentication identifier in the verification information.
The authenticated user may be information for identifying the user identity of the user terminal, and the authentication identifier may be information for identifying the user terminal.
In the embodiment of the invention, the sharing bicycle can compare the authentication information with the verification information, judge whether the user identification in the encryption authentication packet is the same as the user identification transmitted by the user terminal, and judge whether the equipment identification in the encryption authentication packet is the same as the authentication identification transmitted by the user terminal, and can determine that the authentication information is matched with the verification information when one or more of the information are matched.
In an exemplary embodiment, the sharing bicycle may match the user identifier and the device identifier in the authentication encryption packet with the authentication user and the authentication identifier transmitted together with the authentication encryption packet, and may determine whether the user has the right to use the sharing bicycle by judging the authentication information and the verification information.
And 270, controlling the unlocking of the shared bicycle and counting the service life under the condition that the authentication information is matched with the verification information.
In the embodiment of the invention, when the shared bicycle judges that the authentication information is matched with the verification information, the shared bicycle can be unlocked, and a timer is generated to count the use time of the shared bicycle by a user.
Step 280, generating a usage record encrypted by the user after the shared bicycle is locked, wherein the usage record comprises at least one of the following: user identification, equipment identification, bicycle identification, duration of use, token.
Specifically, after the shared bicycle determines that the user is locked again, a usage record corresponding to the user may be generated, where the usage record may include information such as a user identifier, a device identifier, a bicycle identifier, a usage duration, and a token, and the shared bicycle may encrypt the generated usage record to ensure privacy security of the user.
Step 290, transmitting the usage record to the user terminal and/or the cloud server to generate a consumption bill.
The consumption bill can be consumption information generated based on the usage record of the shared bicycle, and the consumption bill can be generated by the cloud server based on the usage record.
In the embodiment of the invention, the shared bicycle can transmit the generated usage record to the user terminal or the cloud server, for example, in the case of no network connection, the shared bicycle can transmit the usage record to the user terminal through the established bluetooth communication channel, and can upload the usage record to the cloud server through the user terminal to generate the consumption bill, and in the case of network connection, the shared bicycle can directly transmit the usage record to the cloud server through the network connection to generate the consumption bill.
For example, after the shared bicycle is used, a usage record including user information, device information, and bicycle information may be generated, and the usage record may be transmitted from the shared bicycle to the cloud server through a terminal or directly transmitted from the shared bicycle to the cloud server, and further, a token may be added to the usage record, where the token may be the token extracted in the authentication encryption packet in step 250, and the cloud server may verify the validity of the token in the usage record to determine whether the usage record is valid, and the cloud server may generate a consumption bill according to the usage record after determining that the usage record is valid. It can be understood that the token may be generated by the cloud server based on the user identifier and the device identifier, the cloud server may store a generation record of the token, and whether the usage record is valid may be determined by determining whether the user identifier and the device identifier in the generation record of the token are consistent with the user information and the device information in the usage record.
According to the embodiment of the invention, a Bluetooth communication channel is established when response information fed back by a user terminal is received by broadcasting a Bluetooth communication channel establishment request to the environment, the Bluetooth communication channel is monitored, an authentication encryption packet and verification information transmitted in the Bluetooth communication channel are obtained, the authentication encryption packet is decrypted by using a preset decryption rule, a token, a user identifier and an equipment identifier of the decrypted authentication encryption packet are extracted as authentication information, the authentication information is matched with the verification information, when the authentication information is matched with the verification information, a shared bicycle is unlocked and the use duration is counted, a use record of a user is generated and encrypted after the shared bicycle is locked, the encrypted use record is transmitted to the user terminal or a cloud server to generate a consumption bill, the shared bicycle is used under the condition of no network connection based on Bluetooth communication, the authentication of unlocking of the shared bicycle is reduced, the unlocking efficiency of the shared bicycle is improved, the waiting time of the user is reduced, the use experience of the user is improved, the limitation of the network environment on the use of the shared bicycle is reduced, and the utilization rate of the shared bicycle is improved.
EXAMPLE III
Fig. 4 is a flowchart of a shared bicycle using method according to a third embodiment of the present invention, where this embodiment is applicable to shared bicycle use without network connection, and the method may be executed by a shared bicycle using apparatus, and the shared bicycle using apparatus may be implemented in the form of hardware and/or software, and is generally integrated in a user terminal. As shown in fig. 4, the method includes:
and 310, acquiring an authentication encryption package generated by the cloud server according to the user use information.
The user use information may include user identity information, user terminal identification information and other contents, and the user identity information is user information that a user has passed identity authentication when registering in the shared bicycle-dedicated APP. The user use information is uploaded to the cloud server by the terminal for storage, and it can be understood that the authentication encryption package can further include a token, and the token can be generated by the cloud server according to the user identity information, the user terminal identification information and other information.
In the embodiment of the invention, the user terminal can transmit the user use information to the cloud server, the cloud server can process the user use information into the authentication encryption package, the cloud server can encrypt the user use information as a plaintext by using a pre-configured encryption algorithm in the processing process, the generated ciphertext can be used as the authentication encryption package, further, the authentication encryption package generated by the cloud server can further comprise a token, the token information can be generated by the cloud server according to parameters such as the user information and the equipment identification, the token can be transmitted to the sharing bicycle through the authentication encryption package when the user uses the sharing bicycle, the sharing bicycle is added to the use record of the sharing bicycle, and the token can be used for ensuring the validity of the use record. It can be understood that the cloud server may be provided with an encryption key of the authentication encryption package, and the decryption key may be preset in the sharing bicycle, so that the sharing bicycle decrypts the authentication encryption package based on the decryption key.
And 320, transmitting an authentication encryption packet and verification information to the sharing bicycle according to the Bluetooth communication channel to unlock the sharing bicycle, wherein the authentication encryption packet at least comprises encrypted authentication information.
Specifically, the user terminal can collect the verification information and the received authentication encryption packet, the authentication encryption packet and the verification information can be sent to the sharing bicycle by using the Bluetooth communication channel, and the sharing bicycle can be unlocked by decrypting the authentication encryption packet and comparing the decrypted authentication encryption packet with the verification information. Further, in the embodiment of the present invention, the verification information may include information of the user identity of the user equipment, and may include information such as a user identifier and an equipment identifier.
According to the embodiment of the invention, the authentication encryption packet is acquired at the cloud server through the user use information comprising the user identity information and the user terminal identification information, and the authentication encryption packet and the verification information of the authentication encryption packet are transmitted to the shared bicycle by using the Bluetooth communication channel, so that the shared bicycle is unlocked, the shared bicycle is used under the condition of no network connection, the remote authentication link of unlocking the shared bicycle can be reduced, the unlocking efficiency of the shared bicycle can be improved, the user waiting time is reduced, the limitation of the network environment on the use of the shared bicycle is reduced, and the utilization rate of the shared bicycle can be improved.
Further, on the basis of the above embodiment of the invention, the method further comprises: obtaining an encrypted usage record of the shared bicycle feedback, and transmitting the usage record to a cloud server to generate a consumption bill, wherein the usage record comprises at least one of the following: user identification, equipment identification, bicycle identification, use duration and token; and receiving a consumption bill fed back by the cloud server.
In the embodiment of the invention, the user terminal can receive the use record transmitted by the shared bicycle, the use record is in an encrypted state, and the user terminal can upload the use record to the cloud server to generate the consumption bill when the user terminal is in a network state. The user terminal can also receive a consumption bill fed back by the cloud server, and the consumption bill can be generated by the cloud server based on the usage record.
Further, on the basis of the above embodiment of the invention, the method further includes:
and acquiring an update encryption package issued by the cloud server, and storing the update encryption package as an authentication encryption package.
In the embodiment of the present invention, the user terminal may receive an update encryption packet sent by the cloud server, where the update encryption packet may be an authentication encryption packet generated by the cloud server based on different encryption keys, encryption rules, or plaintext, and the user terminal may replace the locally stored authentication encryption packet after receiving the update encryption packet.
Example four
Fig. 5 is a flowchart of a shared bicycle using method according to a fourth embodiment of the present invention, where the method is applicable to shared bicycles without network connection, and the method can be executed by a shared bicycle using device, and the shared bicycle using device can be implemented in a form of hardware and/or software and is generally integrated in a cloud server. As shown in fig. 5, the method includes:
and step 410, generating an authentication encryption packet according to the user use information transmitted by the user terminal.
In the embodiment of the invention, the cloud server can receive user use information provided by a user when the user applies for using the bicycle qualification under the condition of no network, the user use information can comprise a user identifier and equipment identifier information, and the cloud server can generate the authentication encryption packet based on the user use information comprising the user identity information and the user terminal identifier information.
Illustratively, a user requests a cloud on a mobile phone A to apply for an authentication encryption package on current equipment for the current user, so that the user can use a sharing bicycle in a non-network environment, a cloud server generates a token according to user information and equipment information, and then packages the token, the user information and the equipment information to generate an encryption package, wherein an encryption algorithm used by the encryption package is only that the sharing bicycle can decrypt, and the user equipment only stores the encryption package.
And step 420, issuing the authentication encryption packet to the user terminal so that the user terminal unlocks the shared bicycle according to the authentication encryption packet.
Specifically, the cloud server can issue the generated authentication encryption packet to the user terminal, and the user terminal can unlock the shared bicycle based on the authentication encryption packet, for example, the user terminal can collect the verification information and the received authentication encryption packet, and can send the authentication encryption packet and the verification information to the shared bicycle by using a bluetooth communication channel, and the shared bicycle can be compared with the verification information by decrypting the authentication encryption packet, so that unlocking of the shared bicycle is realized.
In the embodiment of the invention, the authentication encryption packet is generated according to the user use information which is transmitted by the user terminal and contains the user identity information and the user terminal identification information, and the authentication encryption packet is sent to the user terminal so that the user terminal unlocks the shared bicycle as required, the shared bicycle is used under the condition of no network connection, the remote authentication link of unlocking the shared bicycle can be reduced, the unlocking efficiency of the shared bicycle can be improved, the waiting time of a user can be reduced, the limitation of the network environment on the use of the shared bicycle can be reduced, and the utilization rate of the shared bicycle can be improved.
Further, on the basis of the above embodiment of the invention, the method further includes:
receiving a use record of user terminal and/or shared bicycle transmission; verifying validity based on the token information in the usage record, and generating a consumption bill based on the usage duration of the usage record; and transmitting the consumption bill to the user terminal.
Specifically, the cloud server can receive the use records of the transmitted users in the user terminal and the sharing bicycle respectively, can verify the token information in the use records, and can generate the consumption bill according to the use duration in the use records after determining that the use records are effective according to the token information. It can be understood that, if the cloud server receives the usage records transmitted by the user terminal and the shared bicycle at the same time, only one of the usage records can be used for generating the consumption bill, and the consumption bill can be transmitted to the corresponding user terminal. In an exemplary embodiment, in the case of no network connection, the sharing bicycle may transmit the usage record to the user terminal through the bluetooth communication channel established as described above, and may be uploaded to the cloud server by the user terminal to generate the consumption bill, and in the case of network connection, the sharing bicycle may directly transmit the usage record to the cloud server through the network connection to generate the consumption bill.
Further, on the basis of the above embodiment of the invention, the method further comprises: and generating an update encryption package based on the user use information, and transmitting the update encryption package to the user terminal as an authentication encryption package.
In the embodiment of the invention, the user use information can be information required by a user when the user uses the sharing bicycle, and can comprise user identity information, equipment identification information and the like, wherein the equipment identification information can be identification information of terminal equipment currently used by the user, the user use information can be uploaded to a cloud server under the condition that the user terminal is in a network state, an encryption package is generated by the cloud server according to the user use information, the encryption package can be issued to the user terminal as an update encryption package, and the user terminal can use the update encryption package as an authentication encryption package for the subsequent use of the sharing bicycle.
Further, on the basis of the above embodiment of the present invention, generating an authentication encryption packet according to the user usage information transmitted by the user terminal includes:
generating a token according to the user information and the equipment information in the user use information; processing user information and equipment information in the user use information into authentication information according to a preset encryption rule and encrypting the token; and storing the encrypted token and the authentication information as an authentication encryption packet.
In the embodiment of the present invention, the user information and the device information may be information uploaded to the cloud server by a user requesting to use the shared bicycle without a network, the user information may identify information of the user, and may be personal identification information, and the device information may be information of a device of the shared bicycle used by the user without a network, and may be a device hardware identifier. The cloud server can generate tokens according to the user information and the equipment information after receiving the user information and the equipment information, can encrypt the user information and the equipment information according to a preset encryption rule configured in advance, can use the information generated by processing as authentication information, can further encrypt the tokens according to the preset encryption rule, further improves the safety performance of the authentication encryption package, and can store the encrypted tokens and the authentication information as the authentication encryption package, so that the authentication encryption package is generated.
EXAMPLE five
Fig. 6 is a design diagram of a frame for a shared bicycle according to a fifth embodiment of the present invention, where the fifth embodiment of the present invention provides a method for using a shared bicycle without a network connection signal, and referring to fig. 6, the frame may include three parts, namely, a bicycle, a user device and a cloud, where the bicycle has a bluetooth module, a network and a computing module, a bluetooth name of the bicycle may be marked on a nameplate of the shared bicycle, the user device has a bluetooth function and has installed a dedicated APP for the shared bicycle, and the cloud is a background service for the shared bicycle and the dedicated APP for the shared bicycle. The user registers and identity authentication through the sharing APP when the user is on the internet, after the user successfully registers, the cloud encrypts information such as a token, a user identity and an equipment identifier to generate an encryption package, the encryption package is issued to the sharing APP, and the sharing APP of the user equipment performs local encryption storage on the encryption package issued by the cloud.
Under the no net condition, sharing APP unblock bicycle can use bluetooth function, through bluetooth search and obtain the bluetooth signal of sharing bicycle around, compares bluetooth signal name and the name on the bicycle data plate, can confirm that this sharing bicycle is target sharing bicycle. After the target bicycle is determined, the user equipment is subjected to Bluetooth pairing and connected with the Bluetooth of the target bicycle for bidirectional communication between the bicycle and the user equipment.
After connecting target bicycle bluetooth, the user accessible sharing APP unblock bicycle. And the sharing APP acquires the encryption packet issued by the cloud from local decryption and sends the encryption packet together with the current user identity, equipment identification and other information to the bicycle system. The bicycle system can decrypt the cloud encryption packet, decrypts to obtain data such as the token, the user identity and the equipment identification, compares the data with parameters carried at the same time, if the user identity is compared, the equipment identification is compared with the other data, if the comparison is correct, the unlocking is successful, the bicycle can be used, and the timing starts.
After the bicycle is used up, the bicycle is locked, and an encrypted use record containing information such as user identity, bicycle equipment identification, use duration, token and the like can be generated at the moment. If the current bicycle is connected with the network, the use record is immediately reported to the cloud service; if the current bicycle does not have a network, the usage record is synchronously given to the APP side shared by the user equipment, the usage record is reported when the bicycle or the user equipment is connected to the network next time, and the same record can be processed by the cloud once no matter the bicycle or the user equipment reports the usage record first. And after receiving the record, the cloud service authenticates the validity of the information through information such as a token and the like. If the information is valid, the cloud generates a bill and sends the bill to the sharing APP, and the user finishes payment and finishes a use process. After the one-time use process is completed, the token of the user is invalid, and the cloud service regenerates the encryption packet and sends the encryption packet to the shared APP for the next use.
Fig. 7 is an exemplary diagram of a shared bicycle using method according to a fifth embodiment of the present invention, and a flow of the method according to the fifth embodiment of the present invention is specifically shown in fig. 7:
step1: and under the condition of network, the user completes registration and identity authentication to obtain an encryption package.
The shared bicycle is a valuable item, and a user needs to pay a deposit before using the shared bicycle or can use the shared bicycle by authenticating a credit level. Under the condition of network, a user performs registration and identity authentication operation in a shared APP, after the identity authentication is passed, a cloud generates a token for the user, encrypts information such as the token, user information and equipment identification to generate an encryption packet, and issues the encryption packet to the shared APP for the user to use a bicycle under the condition of no network. The shared APP stores the issued encryption Bao Jia in a local secret, and the token can be used only once, that is, the encrypted packet can be used only once. When the token is generated, user information, equipment identification and the like are used as parameters, and the token is guaranteed to be available only for the current user on the current equipment.
After the user changes the equipment, the user can log in the special APP of the bicycle on the changed equipment, and carry the user identification and the current equipment identification to the cloud end to apply for the encryption package used by the user on the current equipment.
Step2: under the condition of no network, the mobile phone and the bicycle are connected through Bluetooth.
A user uses a shared bicycle under the condition of no network, and needs to carry out Bluetooth connection on user equipment and the bicycle. Wherein the bluetooth signal name of bicycle can be carved on the data plate of bicycle, and the user can accomplish to pair according to the bluetooth name on the data plate and connect.
Step3: after the Bluetooth connection is successful, the sharing APP acquires an encryption packet issued by the cloud from local decryption, and sends the encryption packet together with information such as the current user identity and the equipment identifier to the bicycle to initiate an unlocking request.
Step4: and the bicycle carries out information verification.
The bicycle can decrypt a cloud encryption packet sent by the shared APP in Step3 to obtain data such as a token, a user identity and an equipment identifier in the encryption packet, and the data is compared with parameters carried at the same time, for example, the user identity is compared, and the equipment identifier is compared with the other parameters. Only the bicycle can decrypt the encrypted packet, and the information in the encrypted packet is compared with the carried information by the bicycle, so that malicious users can be prevented from copying the encrypted packet for use.
Step5: unlocking and timing.
And after the information comparison is correct, the unlocking is successful, the bicycle can be used, and the timing module of the bicycle starts to time.
Step6: and locking, stopping timing and generating use information.
After the bicycle is locked after riding, the bicycle can generate an encrypted use record containing information such as user identity, bicycle equipment identification, use duration, token and the like, and the use record can be decrypted only by the cloud.
Step7: and reporting the use record to the cloud.
And if the current bicycle is connected with the network, the use record is immediately reported to the cloud service.
If the current bicycle does not have a network, the usage records are synchronously given to the APP side shared by the user equipment through Bluetooth, the usage records are reported when the bicycle or the user equipment is connected to the network next time, and the same record can be processed by the cloud once no matter the bicycle or the user equipment reports the usage records first.
Step8: and the cloud verifies the validity of the usage record and generates a bill.
After the cloud receives the usage record of the bicycle, as described in Step1, the token contains user identity and equipment identification information, and the cloud can authenticate the validity of the usage record through the token information. If the usage record is valid, generating billing information.
Step9: and the cloud sends the bill information to the sharing APP.
Step10: the user confirms the billing information in the shared APP and completes the payment.
Step11: and the sharing APP acquires a new encryption packet from the cloud, and the encryption packet is stored locally for using the bicycle when no network exists next time.
Example six
Fig. 8 is a schematic structural diagram of a shared bicycle using device according to a sixth embodiment of the present invention. As shown in fig. 8, the apparatus includes:
the information transmission module 101 is configured to obtain an authentication encryption packet and verification information transmitted by a user based on a bluetooth communication channel, where the authentication encryption packet at least includes encrypted authentication information.
And the decryption processing module 102 is configured to obtain the authentication information of the authentication encrypted packet based on a preset decryption rule.
And the unlocking control module 103 is used for controlling the unlocking of the shared bicycle according to the authentication information and the verification information.
According to the embodiment of the invention, the authentication encryption packet and the verification information transmitted by the user are acquired by the information transmission module based on the Bluetooth communication channel, the decryption processing module extracts the authentication information in the authentication encryption packet according to the preset decryption rule, the unlocking control module controls the unlocking of the shared bicycle based on the comparison result of the authentication information and the verification information, the shared bicycle is used under the condition of no network connection based on the Bluetooth communication, the authentication link of the unlocking of the shared bicycle is reduced, the unlocking efficiency of the shared bicycle is improved, the waiting time of the user is reduced, the use experience of the user is improved, the limitation of the network environment on the use of the shared bicycle is reduced, and the utilization rate of the shared bicycle is improved.
Further, on the basis of the above embodiment of the present invention, the information transmission module 101 in the apparatus includes:
a request broadcasting unit for transmitting the establishment request of the Bluetooth communication channel to the environment.
And the channel establishing unit is used for receiving response information of the user terminal of the user corresponding to the establishing request and establishing the Bluetooth communication channel with the user terminal according to the response information.
And the information acquisition unit is used for monitoring and receiving the authentication encryption packet and the verification information transmitted by the user terminal through the Bluetooth communication channel.
Further, on the basis of the above embodiment of the present invention, the decryption processing module 102 in the apparatus includes:
the decryption processing unit is used for decrypting the authentication encryption packet according to the preset decryption rule;
and the information extraction unit is used for extracting the token in the decrypted authentication encryption packet and the authentication information, wherein the authentication information comprises a user identifier and an equipment identifier.
Further, on the basis of the above embodiment of the present invention, the unlocking control module 103 in the apparatus includes:
and the information matching unit is used for determining that the user identification and the equipment identification in the authentication information are matched with the authentication user and the authentication identification in the verification information.
And the unlocking execution unit is used for controlling the shared bicycle to unlock and counting the using time length under the condition that the authentication information is matched with the verification information.
Further, on the basis of the above embodiment of the invention, the method further includes:
a record transmission module, configured to generate an encrypted usage record of the user after the shared bicycle is locked, where the usage record includes at least one of: user identification, equipment identification, bicycle identification, use duration and token; and transmitting the usage record to a user terminal and/or a cloud server to generate a consumption bill.
The shared bicycle using device provided by the embodiment of the invention can execute the shared bicycle using method provided by any embodiment of the invention, is generally integrated in a shared bicycle, and has corresponding functional modules and beneficial effects of the executing method.
Fig. 9 is a schematic structural diagram of another shared bicycle using apparatus according to a sixth embodiment of the present invention, as shown in fig. 9, the apparatus includes:
and the authentication package module 201 is configured to obtain an authentication encryption package generated by the cloud server according to the user usage information.
And the unlocking control module 202 is used for transmitting an authentication encryption packet and verification information to the shared bicycle according to the Bluetooth communication channel so as to unlock the shared bicycle, wherein the authentication encryption packet at least comprises encrypted authentication information.
According to the embodiment of the invention, the authentication package module acquires the authentication encryption package from the cloud server through the user use information, and the unlocking control module transmits the authentication encryption package and the verification information of the authentication package to the shared bicycle by using the Bluetooth communication channel, so that the shared bicycle is unlocked, the shared bicycle is used under the condition of no network connection, the remote authentication link of unlocking the shared bicycle can be reduced, the unlocking efficiency of the shared bicycle can be improved, the waiting time of a user is reduced, the limitation of the network environment on the use of the shared bicycle is reduced, and the utilization rate of the shared bicycle can be improved.
Further, on the basis of the above embodiment of the invention, the apparatus further includes: the bill obtaining module is used for obtaining the encrypted usage record fed back by the shared bicycle and transmitting the usage record to a cloud server to generate a consumption bill, wherein the usage record comprises at least one of the following: user identification, equipment identification, bicycle identification, use duration and token; and receiving the consumption bill fed back by the cloud server.
Further, on the basis of the above embodiment of the invention, the apparatus further includes: and the authentication package updating module is used for acquiring an updating encryption package issued by the cloud server and storing the updating encryption package as the authentication encryption package.
The shared bicycle using device provided by the embodiment of the invention can execute the shared bicycle using method provided by any embodiment of the invention, is generally integrated in a user terminal, and has corresponding functional modules and beneficial effects of the executing method.
Fig. 10 is a schematic structural diagram of another shared bicycle using apparatus according to a sixth embodiment of the present invention, as shown in fig. 10, the apparatus includes:
and the authentication packet generation module 301 is configured to generate an authentication encryption packet according to the user usage information transmitted by the user terminal.
And the authentication packet transmission module 302 is configured to issue the authentication encryption packet to the user terminal, so that the user terminal unlocks the sharing bicycle according to the authentication encryption packet.
According to the embodiment of the invention, the authentication package generation module generates the authentication encryption package according to the user use information transmitted by the user terminal, and the authentication package transmission module transmits the authentication encryption package to the user terminal so that the user terminal unlocks the shared bicycle as required, so that the shared bicycle is used under the condition of no network connection, the remote authentication link of unlocking the shared bicycle can be reduced, the unlocking efficiency of the shared bicycle can be improved, the user waiting time is reduced, the limitation of the network environment on the use of the shared bicycle is reduced, and the utilization rate of the shared bicycle can be improved.
Further, the authentication package generation module 301 in the apparatus provided in the embodiment of the present invention includes:
and the token determining unit is used for generating a token according to the user information and the equipment information in the user use information.
And the information encryption module is used for processing the user information and the equipment information in the user use information into authentication information according to a preset encryption rule and encrypting the token.
And the encryption packet unit is used for storing the encrypted token and the encrypted authentication information as the authentication encryption packet.
Further, the apparatus provided in the embodiment of the present invention further includes: the bill generation module is used for receiving the use record transmitted by the user terminal and/or the shared bicycle; verifying validity based on the token information in the usage record, and generating a consumption bill based on the usage duration of the usage record; and transmitting the consumption bill to the user terminal.
Further, the apparatus provided in the embodiment of the present invention further includes: and the authentication updating module is used for generating an updating encryption package based on the user use information and transmitting the updating encryption package to the user terminal as the authentication encryption package.
The shared bicycle using device provided by the embodiment of the invention can execute the shared bicycle using method provided by any embodiment of the invention, is generally integrated on a cloud server, and has corresponding functional modules and beneficial effects of the executing method.
EXAMPLE seven
Fig. 11 is a schematic structural diagram of an electronic device implementing the shared bicycle using method according to the embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 11, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as a shared bicycle usage method.
In some embodiments, the shared bicycle usage method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the shared bicycle usage method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the shared bicycle usage method by any other suitable means (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A shared bicycle using method is applied to a shared bicycle, and the method comprises the following steps:
acquiring an authentication encryption packet and verification information transmitted by a user based on a Bluetooth communication channel, wherein the authentication encryption packet at least comprises encrypted authentication information;
acquiring authentication information of the authentication encryption packet based on a preset decryption rule;
and controlling the shared bicycle to unlock according to the authentication information and the verification information.
2. The method of claim 1, wherein the obtaining the authentication encryption packet and the verification information transmitted by the user based on the bluetooth communication channel comprises:
broadcasting a setup request of the bluetooth communication channel to enable a user terminal to search for the setup request through bluetooth;
receiving response information of the user terminal of the user corresponding to the establishment request, and establishing the Bluetooth communication channel with the user terminal according to the response information;
and monitoring and receiving the Bluetooth communication channel to receive the authentication encryption packet and the verification information transmitted by the user terminal.
3. The method according to claim 1, wherein the obtaining the authentication information of the authentication encrypted packet based on the preset decryption rule comprises:
decrypting the authentication encryption packet according to the preset decryption rule;
and extracting the token and the authentication information in the decrypted authentication encryption packet, wherein the authentication information comprises a user identifier and an equipment identifier.
4. The method of claim 3, wherein the controlling the shared bicycle to unlock according to the authentication information and the verification information comprises:
determining that the user identification and the equipment identification in the authentication information are matched with the authentication user identification and the authentication identification in the verification information;
and under the condition that the authentication information is matched with the verification information, controlling the shared bicycle to unlock and counting the use duration.
5. The method of claim 1, further comprising:
generating an encrypted usage record for the user after the shared bicycle is locked, wherein the usage record includes at least one of: user identification, equipment identification, bicycle identification, use duration and token;
and transmitting the usage record to a user terminal and/or a cloud server to generate a consumption bill.
6. A shared bicycle using method is applied to a user terminal, and the method comprises the following steps:
acquiring an authentication encryption packet generated by a cloud server according to the user use information;
transmitting an authentication encryption packet and verification information to a shared bicycle according to a Bluetooth communication channel to unlock the shared bicycle, wherein the authentication encryption packet at least comprises encrypted authentication information.
7. The method of claim 6, further comprising:
obtaining an encrypted usage record of the shared bicycle feedback, and transmitting the usage record to a cloud server to generate a consumption bill, wherein the usage record comprises at least one of: user identification, equipment identification, bicycle identification, use duration and token;
and receiving the consumption bill fed back by the cloud server.
8. The method of claim 6, further comprising:
and acquiring an update encryption package issued by the cloud server, and storing the update encryption package as the authentication encryption package.
9. A shared bicycle using method is applied to a cloud server, and the method comprises the following steps:
generating an authentication encryption packet according to user use information transmitted by a user terminal;
and issuing the authentication encryption package to the user terminal so that the user terminal unlocks the shared bicycle according to the authentication encryption package.
10. The method of claim 9, wherein the generating the authentication encryption packet according to the user usage information transmitted by the user terminal comprises:
generating a token according to the user information and the equipment information in the user use information;
processing the user information and the equipment information in the user use information into authentication information according to a preset encryption rule and encrypting the token;
and storing the encrypted token and the encrypted authentication information as the authentication encryption packet.
11. The method of claim 9, further comprising:
receiving a usage record of the user terminal and/or the shared bicycle transmission;
verifying validity based on the token information in the usage record, and generating a consumption bill based on the usage duration of the usage record;
and transmitting the consumption bill to the user terminal.
12. The method of claim 9, further comprising:
and generating an updating encryption package based on the user use information, and transmitting the updating encryption package to the user terminal as the authentication encryption package.
13. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to cause the at least one processor to perform the method of shared bicycle use of any of claims 1-5 or 6-8 or 9-12.
14. A computer readable storage medium storing computer instructions for causing a processor to perform the method of shared bicycle use of any of claims 1-5 or 6-8 or 9-12 when executed.
CN202210768016.1A 2022-06-30 2022-06-30 Shared bicycle using method, electronic equipment and storage medium Pending CN115297137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210768016.1A CN115297137A (en) 2022-06-30 2022-06-30 Shared bicycle using method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210768016.1A CN115297137A (en) 2022-06-30 2022-06-30 Shared bicycle using method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115297137A true CN115297137A (en) 2022-11-04

Family

ID=83822269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210768016.1A Pending CN115297137A (en) 2022-06-30 2022-06-30 Shared bicycle using method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115297137A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116912984A (en) * 2023-09-12 2023-10-20 广东星云开物科技股份有限公司 Vehicle running method and device, electronic equipment and shared travel system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108573552A (en) * 2017-03-09 2018-09-25 丰田自动车株式会社 Locking and system for unlocking and key unit
CN108648048A (en) * 2018-04-29 2018-10-12 王美金 A kind of pair of offline wechat payment bluetooth digital certificate shares bicycle and method
CN108734836A (en) * 2018-05-21 2018-11-02 洪斌杰 shared bicycle unlocking method, system and terminal
CN109255864A (en) * 2018-08-02 2019-01-22 深圳市朗仁科技有限公司 Shared bicycle bluetooth method for unlocking and device
CN110782564A (en) * 2019-11-06 2020-02-11 北京牛电信息技术有限责任公司 Unlocking method, device and system and storage medium
CN112466014A (en) * 2020-12-15 2021-03-09 歌尔光学科技有限公司 Shared vehicle offline unlocking and authorization method, wearable device, terminal and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108573552A (en) * 2017-03-09 2018-09-25 丰田自动车株式会社 Locking and system for unlocking and key unit
CN108648048A (en) * 2018-04-29 2018-10-12 王美金 A kind of pair of offline wechat payment bluetooth digital certificate shares bicycle and method
CN108734836A (en) * 2018-05-21 2018-11-02 洪斌杰 shared bicycle unlocking method, system and terminal
CN109255864A (en) * 2018-08-02 2019-01-22 深圳市朗仁科技有限公司 Shared bicycle bluetooth method for unlocking and device
CN110782564A (en) * 2019-11-06 2020-02-11 北京牛电信息技术有限责任公司 Unlocking method, device and system and storage medium
CN112466014A (en) * 2020-12-15 2021-03-09 歌尔光学科技有限公司 Shared vehicle offline unlocking and authorization method, wearable device, terminal and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116912984A (en) * 2023-09-12 2023-10-20 广东星云开物科技股份有限公司 Vehicle running method and device, electronic equipment and shared travel system

Similar Documents

Publication Publication Date Title
US20210367795A1 (en) Identity-Linked Authentication Through A User Certificate System
CN106357649B (en) User identity authentication system and method
US9741033B2 (en) System and method for point of sale payment data credentials management using out-of-band authentication
CN102457507B (en) Cloud computing resources secure sharing method, Apparatus and system
CN103259667B (en) The method and system of eID authentication on mobile terminal
KR102107391B1 (en) Method and device for control of a lock mechanism using a mobile terminal
CN111435913B (en) Identity authentication method and device for terminal of Internet of things and storage medium
US10728244B2 (en) Method and system for credential management
US20190147441A1 (en) Method and device for providing and obtaining graphic code information, and terminal
CN104994114A (en) Identity authentication system and method based on electronic identification card
US20150372813A1 (en) System and method for generating a random number
CN103209160A (en) Authentication method and system for heterogeneous network
CN105243542B (en) Dynamic electronic certificate authentication method
CN105656859A (en) Secure online upgrade method and system for tax control equipment software
CN102457509A (en) Safe access method, device and system of cloud computing resource
US20150294309A1 (en) Method, Device and Service Provision Unit for Authenticating a Customer for a Service to be Provided by the Service Provision Unit
KR20110083886A (en) Apparatus and method for other portable terminal authentication in portable terminal
CN103077461B (en) System and method for applying for financial document using mobile communication device
CN101944216A (en) Two-factor online transaction safety authentication method and system
CN106656993B (en) Dynamic verification code verification method and device
CN109583154A (en) A kind of system and method based on Web middleware access intelligent code key
CN104125230A (en) Short message authentication service system and authentication method
CN103152326A (en) Distributed authentication method and authentication system
CN115297137A (en) Shared bicycle using method, electronic equipment and storage medium
CN106936760A (en) A kind of apparatus and method of login Openstack cloud system virtual machines

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