CN111325917A - Using method and device of sharing equipment, storage medium and equipment - Google Patents

Using method and device of sharing equipment, storage medium and equipment Download PDF

Info

Publication number
CN111325917A
CN111325917A CN202010123089.6A CN202010123089A CN111325917A CN 111325917 A CN111325917 A CN 111325917A CN 202010123089 A CN202010123089 A CN 202010123089A CN 111325917 A CN111325917 A CN 111325917A
Authority
CN
China
Prior art keywords
instruction
control
control instruction
control instructions
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010123089.6A
Other languages
Chinese (zh)
Other versions
CN111325917B (en
Inventor
杨磊
齐宝雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hahang Network Technology Co ltd
Original Assignee
Shanghai Junzheng Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Junzheng Network Technology Co Ltd filed Critical Shanghai Junzheng Network Technology Co Ltd
Priority to CN202010123089.6A priority Critical patent/CN111325917B/en
Publication of CN111325917A publication Critical patent/CN111325917A/en
Application granted granted Critical
Publication of CN111325917B publication Critical patent/CN111325917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a using method and device of shared equipment, a storage medium and equipment. The method comprises the following steps: responding to a near field communication connection request of a user terminal, and establishing near field communication connection with the user terminal; receiving a control instruction obtained by encrypting a user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account; and decrypting the control instruction, if the decryption is successful, saving an instruction sequence number, an instruction type and a user account included in the control instruction, and executing the control instruction. By adopting the technical scheme, the sharing equipment can be normally unlocked and locked by the user through code scanning and the like under the condition that the sharing equipment or the intelligent terminal of the user is offline.

Description

Using method and device of sharing equipment, storage medium and equipment
Technical Field
The present invention relates to the field of shared device technologies, and in particular, to a method and an apparatus for using a shared device, a storage medium, and a device.
Background
At present, in urban life, the travel mode of people does not only depend on urban public transport, and people avoid driving to travel as far as possible under the condition that conditions allow, but adopt public transport to travel along with the concept of green travel is accepted by more and more users. Most users select a riding mode under the conditions that public transportation cannot be reached or the traveling distance is short and the public transportation is not suitable. The riding mode is convenient, precious time is saved for a user, the traveling experience of the user is improved, and the selection of the user on the traveling mode is increased.
With the increasing demand for the bicycle, the sharing device becomes one of the necessary ways for people to go out. The sharing equipment comprises a sharing bicycle, a sharing power exchange cabinet, a sharing moped and the like. Taking a shared vehicle as an example, the shared vehicle can be put in a park, a campus, a residential area and other traffic convergence places with certain pedestrian volume, and a user rents on a platform to realize a shared vehicle. The shared vehicle is used for time-sharing rental service, and is a new business form which is started in recent years.
However, time-shared rentals in shared vehicles are based on online services, which requires that rentals of shared vehicles must be available with a network connection. If the network connection cannot be carried out, the user cannot receive the unlocking and locking instruction sent by the code scanning or the network through the server, or the server cannot send the unlocking and locking instruction to the vehicle after receiving the unlocking and locking instruction, so that the vehicle cannot be normally unlocked and locked, and the use of the user is influenced. In the actual use process, the parked position of the shared bicycle can be in an underground passage, a tunnel in the city, a garage below the city and the like. In these positions, the shared bicycle is difficult to be connected with a network, so that the code scanning and locking of the bicycle after parking or the code scanning and unlocking when riding are not performed normally. This severely affects the normal use of the user and also causes loss of the vehicle sharing operator. Therefore, a method of using a shared vehicle that can be taken offline is urgently needed.
Disclosure of Invention
In view of the above drawbacks of the prior art, the technical problem to be solved by the present invention is that when the sharing device or the smart terminal of the user is offline, the sharing device cannot be locked or unlocked by the user through code scanning or the like. To solve the above problem, we establish a method that can be used normally for shared devices in an offline situation.
In order to achieve the purpose, the invention provides a using method and device of a sharing device, a storage medium and a device.
In a preferred embodiment of the invention, the method comprises:
responding to a near field communication connection request of a user terminal, and establishing near field communication connection with the user terminal;
receiving a control instruction obtained by encrypting a user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account;
and decrypting the control instruction, if the decryption is successful, saving an instruction sequence number, an instruction type and a user account included in the control instruction, and executing the control instruction.
Optionally, after executing the control instruction, the method further includes:
and if the network connection is available, uploading all locally stored control instructions and execution results aiming at the control instructions to a server so that the server can generate a use order according to the control instructions and the execution results aiming at the control instructions.
Optionally, after saving the instruction sequence number, the instruction type, and the user account included in the control instruction, the method further includes:
the saved control instruction and the execution result aiming at the control instruction are marked without uploading;
correspondingly, if it is detected that the network connection is available, uploading all locally stored control instructions and execution results for the control instructions to a server, so that the server generates a use order according to the control instructions and the execution results for the control instructions, including:
and if the network connection is available, uploading all the control instructions with the non-uploaded marks and execution results aiming at the control instructions which are locally stored to a server, so that the server generates a use order according to the control instructions and the execution results aiming at the control instructions, and modifies the non-uploaded marks.
Optionally, before saving the instruction sequence number, the instruction type, and the user account included in the control instruction and executing the control instruction, the method further includes:
and checking the instruction serial number included in the control instruction, and refusing to execute the control instruction if the command serial number exists in the check result.
Optionally, after checking the instruction sequence number included in the control instruction, the method further includes:
if the verification result is that the instruction serial number does not exist, checking whether the instruction serial number exceeds a set threshold value;
and if the command serial number exceeds a set threshold value, refusing to execute the control command.
Optionally, before uploading all locally stored control instructions and execution results for the control instructions to the server if it is detected that the network connection is available, the method further includes:
if the instruction type of the control instruction is a locking instruction, determining the type of the user account as the control instruction of an unlocking instruction according to the user account in the control instruction;
determining the use duration of the shared equipment of the user account according to the receiving time of the control instruction of the unlocking instruction type and the locking instruction type of the user account;
if the network connection is detected to be available, uploading all locally stored control instructions and execution results aiming at the control instructions to a server, wherein the method comprises the following steps:
and if the network connection is available, uploading all locally stored control instructions and the shared equipment use duration of the user account determined according to the control instructions in a correlated manner to a server, so that the server generates a use order according to the control instructions and the shared equipment use duration of the user account.
In another preferred embodiment of the present invention, an apparatus for sharing a device is provided, including:
the short-distance wireless communication connection establishing module is used for responding to a short-distance wireless communication connection request of a user terminal and establishing short-distance wireless communication connection with the user terminal;
the control instruction receiving module is used for receiving a control instruction obtained by encrypting the user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account;
and the control instruction execution module is used for decrypting the control instruction, saving an instruction sequence number, an instruction type and a user account included in the control instruction if the decryption is successful, and executing the control instruction.
Optionally, the apparatus further comprises:
and the control instruction uploading module is used for uploading all locally stored control instructions and execution results aiming at the control instructions to the server if the network connection is detected to be available, so that the server can generate a use order according to the control instructions and the execution results aiming at the control instructions.
Specifically, after saving the instruction serial number, the instruction type, and the user account included in the control instruction, the apparatus is configured to:
the saved control instruction and the execution result aiming at the control instruction are marked without uploading;
correspondingly, if it is detected that the network connection is available, uploading all locally stored control instructions and execution results for the control instructions to a server, so that the server generates a use order according to the control instructions and the execution results for the control instructions, including:
and if the network connection is available, uploading all the control instructions with the non-uploaded marks and execution results aiming at the control instructions which are locally stored to a server, so that the server generates a use order according to the control instructions and the execution results aiming at the control instructions, and modifies the non-uploaded marks.
Optionally, before saving the instruction sequence number, the instruction type, and the user account included in the control instruction and executing the control instruction, the apparatus is further configured to:
and checking the instruction serial number included in the control instruction, and refusing to execute the control instruction if the command serial number exists in the check result.
Optionally, after checking the instruction sequence number included in the control instruction, the apparatus is further configured to:
if the verification result is that the instruction serial number does not exist, checking whether the instruction serial number exceeds a set threshold value;
and if the command serial number exceeds a set threshold value, refusing to execute the control command.
Optionally, before uploading all locally stored control instructions and execution results for the control instructions to the server if it is detected that the network connection is available, the apparatus is further configured to:
if the instruction type of the control instruction is a locking instruction, determining the type of the user account as the control instruction of an unlocking instruction according to the user account in the control instruction;
determining the use duration of the shared equipment of the user account according to the receiving time of the control instruction of the unlocking instruction type and the locking instruction type of the user account;
if the network connection is detected to be available, uploading all locally stored control instructions and execution results aiming at the control instructions to a server, wherein the method comprises the following steps:
and if the network connection is available, uploading all locally stored control instructions and the shared equipment use duration of the user account determined according to the control instructions in a correlated manner to a server, so that the server generates a use order according to the control instructions and the shared equipment use duration of the user account.
In another preferred embodiment of the present invention, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for using a sharing device according to the present application.
In another preferred embodiment of the present invention, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable by the processor, and when the processor executes the computer program, the method for using a shared device according to an embodiment of the present invention is implemented.
The technical scheme provided by the invention has the following technical effects:
the method is suitable for using and operating the sharing equipment, and can send and receive the unlocking instruction through short-distance wireless communication under the condition that the sharing equipment or an intelligent terminal of a user cannot be normally networked, specifically comprising Bluetooth connection, local area network connection, short-distance wireless communication connection and the like. After receiving the instruction, the sharing device can store the instruction, and after the user finishes using the instruction, the sharing device issues the locking instruction to the sharing device through the short-distance wireless communication again, and the sharing device stores the locking instruction again. Therefore, the user can use the shared device, and the stored unlocking instruction and the locking instruction can be uploaded to the server after the vehicle recovers the network connection, so that an order is generated and sent to the intelligent terminal of the user to complete the order processing. Therefore, the sharing equipment can be normally used in an offline state, the use requirements of users can be met, and the normal operation of the sharing equipment can be ensured.
The conception, the specific structure and the technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, the features and the effects of the present invention.
Drawings
Fig. 1 is a schematic diagram of a method for using a sharing device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an apparatus for using a sharing device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Some exemplary embodiments of the invention have been described for illustrative purposes, and it is to be understood that the invention may be practiced otherwise than as specifically described.
Fig. 1 is a schematic diagram of a method for using a sharing device according to an embodiment of the present disclosure, where the present embodiment is applicable to a case of using a sharing bicycle offline, and the method may be performed by a device for using a sharing device according to an embodiment of the present disclosure, where the device may be implemented by software and/or hardware, and may be integrated in the sharing device.
As shown in fig. 1, the method for using the sharing device includes:
and S110, responding to the near field communication connection request of the user terminal, and establishing near field communication connection with the user terminal.
The short-range wireless Communication connection request of the user terminal may be sent by the user opening an application program and scanning a two-dimensional code of the shared device, for example, when the user needs to use a vehicle, after the App scans the code, the App first generates an unlocking instruction, then encrypts the instruction by using a downloaded key, and then sends the encrypted instruction to the antenna box through a channel such as a network, bluetooth, and NFC (Near Field Communication). After receiving the instruction, the antenna box decrypts the instruction through the secret key, firstly compares whether the serial number of the instruction is repeated, and refuses to execute the instruction if the serial number of the instruction is repeated; and if the data is not repeated, executing the instruction to unlock the lock. Then, the antenna box first writes the execution result into a local database and marks the execution result as an un-uploaded server. And then, the antenna box tries to upload the result to the server, and if the uploading is successful, the execution result is marked as the uploaded server.
It can be said that, in addition to the above-mentioned short-range wireless communication means, a technology of performing point-to-point communication using Infrared rays, such as IrDA (Infrared Data Association), has a use right that does not need to apply for frequency, and has low cost for Infrared communication, small volume, low power consumption, convenient connection, simplicity and ease of use required for mobile communication, and the characteristics of small Infrared ray emission angle, high security in transmission, and the like. And the connection can also be realized through a ZigBee network connection, a UWB (Ultra Wide Band) connection and the like.
S120, receiving a control instruction obtained by encrypting the user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account.
The method includes the steps that a control instruction obtained by encrypting the user terminal through a pre-acquired key is received, and the pre-acquired key can be a key used for encryption and decryption and acquired by a user when an App is downloaded and registered on the App. The control instruction comprises an instruction serial number, an instruction type and a user account. In this embodiment, the command sequence numbers may be generated by an App of a user, and the command sequence numbers may be arranged sequentially or randomly, for example, generated according to the current system time, and the command sequence numbers of different control commands are different in principle. The command type may include an unlock type and a lock close type, etc. The user account may be an account used by the user when logging in the App.
S130, the control instruction is decrypted, if the decryption is successful, the instruction sequence number, the instruction type and the user account included in the control instruction are saved, and the control instruction is executed.
After receiving the control instruction, decryption may be performed first, and if decryption is successful, the instruction sequence number, the instruction type, and the user account included in the control instruction are saved, and the control instruction is executed. And if the decryption fails, refusing to execute the control instruction. And may return the execution result of the control instruction to the user terminal. For example, the execution result is fed back to the App used by the user and is displayed through a popup window for the user to view.
In the off-line situation, the user terminal and the sharing device cannot normally interact with the server for order management, so that the sharing device may be provided with a storage device, and the information of the control command may be stored in the storage device. The stored information is sent to a server when the network is available.
According to the technical scheme, the short-distance wireless communication connection is established with the user terminal by responding to the short-distance wireless communication connection request of the user terminal; receiving a control instruction obtained by encrypting a user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account; and decrypting the control instruction, if the decryption is successful, saving an instruction sequence number, an instruction type and a user account included in the control instruction, and executing the control instruction. By adopting the technical scheme, the sharing equipment can be normally unlocked and locked by the user through code scanning and the like under the condition that the sharing equipment or the intelligent terminal of the user is offline.
In this embodiment, optionally, after executing the control instruction, the method further includes: and if the network connection is available, uploading all locally stored control instructions and execution results aiming at the control instructions to a server so that the server can generate a use order according to the control instructions and the execution results aiming at the control instructions. The control instruction is stored and sent to the server when the server can be connected with a network, so that the server generates trial orders, the application range of the sharing equipment is widened, and the user can use the sharing equipment conveniently.
On the basis of the above technical solution, optionally, after saving the instruction sequence number, the instruction type, and the user account included in the control instruction, the method further includes: the saved control instruction and the execution result aiming at the control instruction are marked without uploading; correspondingly, if it is detected that the network connection is available, uploading all locally stored control instructions and execution results for the control instructions to a server, so that the server generates a use order according to the control instructions and the execution results for the control instructions, including: and if the network connection is available, uploading all the control instructions with the non-uploaded marks and execution results aiming at the control instructions which are locally stored to a server, so that the server generates a use order according to the control instructions and the execution results aiming at the control instructions, and modifies the non-uploaded marks.
Since the storage space can store a large number of control instructions, the operation instructions under the condition that the network cannot be connected can be labeled correspondingly, for example, a non-upload mark is added. The advantage of this arrangement is that after the network is connected, all the control instructions with the non-upload flag stored locally and the execution results for the control instructions can be uploaded to the server, so that the server can generate a use order according to the control instructions and the execution results for the control instructions and modify the non-upload flag. Therefore, the data volume of network transmission can be reduced, and the problems of repeated fee deduction and the like caused by repeated uploaded information can be avoided.
On the basis of the above technical solution, optionally, before saving the instruction sequence number, the instruction type, and the user account included in the control instruction and executing the control instruction, the method further includes: and checking the instruction serial number included in the control instruction, and refusing to execute the control instruction if the command serial number exists in the check result. After receiving the control command, the command sequence number included in the control command may be checked, and if the sequence number already exists, execution of the control command may be rejected. Therefore, repeated execution of the operation instruction can be avoided, and an illegal third party can be prevented from copying the control instruction by other means and using the shared device.
On the basis of the foregoing technical solution, optionally, after checking the instruction sequence number included in the control instruction, the method further includes: if the verification result is that the instruction serial number does not exist, checking whether the instruction serial number exceeds a set threshold value; and if the command serial number exceeds a set threshold value, refusing to execute the control command. Wherein, the threshold value is set to be 100, 200 or even 300. May be determined according to the memory space and data processing capabilities of the shared device. For example, if the current sharing device already stores 300 control commands, the control commands may be rejected from being executed when they are received again.
On the basis of the foregoing technical solution, optionally, before uploading all locally stored control instructions and execution results for the control instructions to the server if it is detected that network connection is available, the method further includes: if the instruction type of the control instruction is a locking instruction, determining the type of the user account as the control instruction of an unlocking instruction according to the user account in the control instruction; determining the use duration of the shared equipment of the user account according to the receiving time of the control instruction of the unlocking instruction type and the locking instruction type of the user account; if the network connection is detected to be available, uploading all locally stored control instructions and execution results aiming at the control instructions to a server, wherein the method comprises the following steps: and if the network connection is available, uploading all locally stored control instructions and the shared equipment use duration of the user account determined according to the control instructions in a correlated manner to a server, so that the server generates a use order according to the control instructions and the shared equipment use duration of the user account.
The time stamp of each control instruction when received can be recorded, and the unlocking time and the locking time can be determined. So that the duration of use of the sharing device by the user can be determined. If the instruction type of the control instruction is a locking instruction, determining that the type of the user account is the control instruction of an unlocking instruction according to the user account in the control instruction; determining the use duration of the shared equipment of the user account according to the receiving time of the control instruction of the unlocking instruction type and the locking instruction type of the user account; and if the network connection is available, uploading all locally stored control instructions and the shared equipment use duration of the user account determined according to the control instructions in a correlated manner to a server, so that the server generates a use order according to the control instructions and the shared equipment use duration of the user account. The advantage of this arrangement is that the user's usage order can be accurately generated. The situation of order errors caused by repeated use of the user for the same shared device is avoided.
The present embodiment also provides a specific implementation manner.
Unlocking: after a user uses the App to scan codes, the App firstly generates an unlocking instruction, then uses a downloaded key to encrypt the instruction, and then sends the encrypted instruction to an antenna box through channels such as network/Bluetooth/NFC/short message. After receiving the instruction, the antenna box decrypts the instruction through the secret key, firstly compares whether the serial number of the instruction is repeated, and refuses to execute the instruction if the serial number of the instruction is repeated; and if the data is not repeated, executing the instruction to unlock the lock. Then, the antenna box first writes the execution result into a local database and marks the execution result as an un-uploaded server. And then, the antenna box tries to upload the result to the server, and if the uploading is successful, the execution result is marked as the uploaded server.
Locking: after a user uses the App to scan codes, the App firstly generates a locking instruction, then encrypts the instruction by using a downloaded key, and then sends the encrypted instruction to an antenna box through channels such as a local area network, Bluetooth and NFC. After receiving the instruction, the antenna box decrypts the instruction through the secret key, firstly compares whether the serial number of the instruction is repeated, and refuses to execute the instruction if the serial number of the instruction is repeated; if not, the instruction is executed to lock. And then, the antenna box firstly writes the execution result and the time difference between unlocking and locking into a local database and marks the execution result as the result that the execution result is not uploaded to the server. And then, the antenna box tries to upload the result to the server, and if the result is uploaded successfully, the execution result and the unlocking result corresponding to the execution result are deleted from the database together.
In addition, due to space limitations of the antenna box, only 300 results can be saved locally. When the number limit is exceeded, instructions following execution are rejected.
In addition, after the antenna boxes are networked, continuous attempts are made to upload data in the local database to the server and delete successfully uploaded data from the local database.
In addition, the server receives the locking and unlocking time difference information reported by the vehicle lock to generate an order.
This technical scheme can solve the sharing equipment on the market, including sharing bicycle, sharing vehicle using motor and sharing car etc. all need can use under the condition of vehicle networking and user's cell-phone networking, if the unable networking of user's cell-phone then can't carry out the problem of switch lock operation.
Fig. 2 is a schematic diagram of a device for using a sharing device according to an embodiment of the present application, and as shown in fig. 2, the device for using the sharing device includes:
a short-range wireless communication connection establishing module 210, configured to respond to a short-range wireless communication connection request of a user terminal, and establish a short-range wireless communication connection with the user terminal;
a control instruction receiving module 220, configured to receive a control instruction obtained by encrypting a key obtained in advance by a user terminal; the control instruction comprises an instruction serial number, an instruction type and a user account;
and the control instruction execution module 230 is configured to decrypt the control instruction, and if the decryption is successful, store the instruction sequence number, the instruction type, and the user account included in the control instruction, and execute the control instruction. What is meant here is a virtual device, i.e. a code segment inside a processor, i.e. a code segment indicating that the processor can fetch information, process information, send information, etc.
According to the technical scheme, the short-distance wireless communication connection is established with the user terminal by responding to the short-distance wireless communication connection request of the user terminal; receiving a control instruction obtained by encrypting a user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account; and decrypting the control instruction, if the decryption is successful, saving an instruction sequence number, an instruction type and a user account included in the control instruction, and executing the control instruction. By adopting the technical scheme, the sharing equipment can be normally unlocked and locked by the user through code scanning and the like under the condition that the sharing equipment or the intelligent terminal of the user is offline.
On the basis of the above technical solution, optionally, the apparatus further includes:
and the control instruction uploading module is used for uploading all locally stored control instructions and execution results aiming at the control instructions to the server if the network connection is detected to be available, so that the server can generate a use order according to the control instructions and the execution results aiming at the control instructions.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Embodiments of the present application also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a method for providing power based on a solar panel, the method comprising:
responding to a near field communication connection request of a user terminal, and establishing near field communication connection with the user terminal;
receiving a control instruction obtained by encrypting a user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account;
and decrypting the control instruction, if the decryption is successful, saving an instruction sequence number, an instruction type and a user account included in the control instruction, and executing the control instruction.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method for using a shared device described above, and may also perform related operations in the method for using a shared device provided in any embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring now to FIG. 3, shown is a schematic diagram of an electronic device 300 suitable for use in implementing embodiments of the present application. The electronic device in the embodiment of the present application may be an electronic device for providing an information presentation function. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present application.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable medium or any combination of the two. A computer readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable medium may include, but are not limited to: an electrical connection having 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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform: responding to a near field communication connection request of a user terminal, and establishing near field communication connection with the user terminal; receiving a control instruction obtained by encrypting a user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account; and decrypting the control instruction, if the decryption is successful, saving an instruction sequence number, an instruction type and a user account included in the control instruction, and executing the control instruction.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The names of the modules and units do not limit the modules and units in some cases.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A method for using a shared device, the method comprising:
responding to a near field communication connection request of a user terminal, and establishing near field communication connection with the user terminal;
receiving a control instruction obtained by encrypting a user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account;
and decrypting the control instruction, if the decryption is successful, saving an instruction sequence number, an instruction type and a user account included in the control instruction, and executing the control instruction.
2. The method of claim 1, wherein after executing the control instruction, the method further comprises:
and if the network connection is available, uploading all locally stored control instructions and execution results aiming at the control instructions to a server so that the server can generate a use order according to the control instructions and the execution results aiming at the control instructions.
3. The method of claim 2, wherein after saving the instruction sequence number, the instruction type, and the user account included in the control instruction, the method further comprises:
the saved control instruction and the execution result aiming at the control instruction are marked without uploading;
correspondingly, if it is detected that the network connection is available, uploading all locally stored control instructions and execution results for the control instructions to a server, so that the server generates a use order according to the control instructions and the execution results for the control instructions, including:
and if the network connection is available, uploading all the control instructions with the non-uploaded marks and execution results aiming at the control instructions which are locally stored to a server, so that the server generates a use order according to the control instructions and the execution results aiming at the control instructions, and modifies the non-uploaded marks.
4. The method of claim 1, wherein before saving the command serial number, the command type, and the user account included in the control command and executing the control command, the method further comprises:
and checking the instruction serial number included in the control instruction, and refusing to execute the control instruction if the command serial number exists in the check result.
5. The method of claim 4, wherein after checking an instruction sequence number included in the control instruction, the method further comprises:
if the verification result is that the instruction serial number does not exist, checking whether the instruction serial number exceeds a set threshold value;
and if the command serial number exceeds a set threshold value, refusing to execute the control command.
6. The method of claim 2, wherein prior to uploading all locally saved control instructions and results of execution for the control instructions to a server if network connectivity is detected as available, the method further comprises:
if the instruction type of the control instruction is a locking instruction, determining the type of the user account as the control instruction of an unlocking instruction according to the user account in the control instruction;
determining the use duration of the shared equipment of the user account according to the receiving time of the control instruction of the unlocking instruction type and the locking instruction type of the user account;
if the network connection is detected to be available, uploading all locally stored control instructions and execution results aiming at the control instructions to a server, wherein the method comprises the following steps:
and if the network connection is available, uploading all locally stored control instructions and the shared equipment use duration of the user account determined according to the control instructions in a correlated manner to a server, so that the server generates a use order according to the control instructions and the shared equipment use duration of the user account.
7. An apparatus for using a shared device, the apparatus comprising:
the short-distance wireless communication connection establishing module is used for responding to a short-distance wireless communication connection request of a user terminal and establishing short-distance wireless communication connection with the user terminal;
the control instruction receiving module is used for receiving a control instruction obtained by encrypting the user terminal through a pre-acquired key; the control instruction comprises an instruction serial number, an instruction type and a user account;
and the control instruction execution module is used for decrypting the control instruction, saving an instruction sequence number, an instruction type and a user account included in the control instruction if the decryption is successful, and executing the control instruction.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the control instruction uploading module is used for uploading all locally stored control instructions and execution results aiming at the control instructions to the server if the network connection is detected to be available, so that the server can generate a use order according to the control instructions and the execution results aiming at the control instructions.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for using a sharing device according to any one of claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a method of using a shared device according to any of claims 1-6 when executing the computer program.
CN202010123089.6A 2020-02-27 2020-02-27 Using method and device of sharing equipment, storage medium and equipment Active CN111325917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010123089.6A CN111325917B (en) 2020-02-27 2020-02-27 Using method and device of sharing equipment, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010123089.6A CN111325917B (en) 2020-02-27 2020-02-27 Using method and device of sharing equipment, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN111325917A true CN111325917A (en) 2020-06-23
CN111325917B CN111325917B (en) 2022-04-22

Family

ID=71165308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010123089.6A Active CN111325917B (en) 2020-02-27 2020-02-27 Using method and device of sharing equipment, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN111325917B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112124247A (en) * 2020-09-18 2020-12-25 上海钧正网络科技有限公司 Vehicle lock control method and device and computer readable storage medium
CN112214779A (en) * 2020-10-28 2021-01-12 纳恩博(北京)科技有限公司 Control method and device, electronic equipment and storage medium
CN113079494A (en) * 2021-03-31 2021-07-06 北京骑胜科技有限公司 Method, device, equipment and storage medium for communicating with shared object
CN115604390A (en) * 2021-07-07 2023-01-13 云丁网络技术(北京)有限公司(Cn) Offline control method and device for intelligent equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090136035A1 (en) * 2007-11-27 2009-05-28 Samsung Electronics Co., Ltd. Public key infrastructure-based bluetooth smart-key system and operating method thereof
EP2743868A1 (en) * 2012-12-14 2014-06-18 Seven Principles AG Virtual vehicle key
CN105006051A (en) * 2015-07-31 2015-10-28 深圳广田智能科技有限公司 Wireless communication method and system of intelligent remote control door lock
CN106652232A (en) * 2016-12-28 2017-05-10 北京拜克洛克科技有限公司 Bike sharing method and system
CN106713644A (en) * 2016-12-28 2017-05-24 北京拜克洛克科技有限公司 Public rental bicycle service method and device
CN107393058A (en) * 2017-06-12 2017-11-24 广州悦骑信息科技有限公司 A kind of electronic lock is locked method, storage medium, electronic equipment and the system of unblock
CN107392694A (en) * 2017-06-27 2017-11-24 北京摩拜科技有限公司 Order processing method, smart lock, sharing articles and the system of sharing articles
CN107493561A (en) * 2017-08-07 2017-12-19 北京小米移动软件有限公司 Shared equipment unlocking method, apparatus and system
CN107578503A (en) * 2017-08-24 2018-01-12 东峡大通(北京)管理咨询有限公司 Method for unlocking, unlocking terminal and the smart lock of shared vehicle
CN108154587A (en) * 2017-12-28 2018-06-12 深圳市小快联科技有限公司 A kind of method and system for switching bicycle lock
CN108320356A (en) * 2018-02-02 2018-07-24 陈旭 Lock control method, apparatus and system
CN108648048A (en) * 2018-04-29 2018-10-12 王美金 A kind of pair of offline wechat payment bluetooth digital certificate shares bicycle and method
CN109472944A (en) * 2018-12-11 2019-03-15 弘扬共享(北京)科技发展有限公司 A kind of shared automobile charge system
CN109727354A (en) * 2018-12-27 2019-05-07 北京摩拜科技有限公司 A kind of control method and system of vehicle
CN110751755A (en) * 2019-10-21 2020-02-04 上海钧正网络科技有限公司 Unlocking method and device, computer equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090136035A1 (en) * 2007-11-27 2009-05-28 Samsung Electronics Co., Ltd. Public key infrastructure-based bluetooth smart-key system and operating method thereof
EP2743868A1 (en) * 2012-12-14 2014-06-18 Seven Principles AG Virtual vehicle key
CN105006051A (en) * 2015-07-31 2015-10-28 深圳广田智能科技有限公司 Wireless communication method and system of intelligent remote control door lock
CN106652232A (en) * 2016-12-28 2017-05-10 北京拜克洛克科技有限公司 Bike sharing method and system
CN106713644A (en) * 2016-12-28 2017-05-24 北京拜克洛克科技有限公司 Public rental bicycle service method and device
CN107393058A (en) * 2017-06-12 2017-11-24 广州悦骑信息科技有限公司 A kind of electronic lock is locked method, storage medium, electronic equipment and the system of unblock
CN107392694A (en) * 2017-06-27 2017-11-24 北京摩拜科技有限公司 Order processing method, smart lock, sharing articles and the system of sharing articles
CN107493561A (en) * 2017-08-07 2017-12-19 北京小米移动软件有限公司 Shared equipment unlocking method, apparatus and system
CN107578503A (en) * 2017-08-24 2018-01-12 东峡大通(北京)管理咨询有限公司 Method for unlocking, unlocking terminal and the smart lock of shared vehicle
CN108154587A (en) * 2017-12-28 2018-06-12 深圳市小快联科技有限公司 A kind of method and system for switching bicycle lock
CN108320356A (en) * 2018-02-02 2018-07-24 陈旭 Lock control method, apparatus and system
CN108648048A (en) * 2018-04-29 2018-10-12 王美金 A kind of pair of offline wechat payment bluetooth digital certificate shares bicycle and method
CN109472944A (en) * 2018-12-11 2019-03-15 弘扬共享(北京)科技发展有限公司 A kind of shared automobile charge system
CN109727354A (en) * 2018-12-27 2019-05-07 北京摩拜科技有限公司 A kind of control method and system of vehicle
CN110751755A (en) * 2019-10-21 2020-02-04 上海钧正网络科技有限公司 Unlocking method and device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112124247A (en) * 2020-09-18 2020-12-25 上海钧正网络科技有限公司 Vehicle lock control method and device and computer readable storage medium
CN112214779A (en) * 2020-10-28 2021-01-12 纳恩博(北京)科技有限公司 Control method and device, electronic equipment and storage medium
CN113079494A (en) * 2021-03-31 2021-07-06 北京骑胜科技有限公司 Method, device, equipment and storage medium for communicating with shared object
CN113079494B (en) * 2021-03-31 2022-07-01 北京骑胜科技有限公司 Method, device, equipment and storage medium for communicating with shared object
CN115604390A (en) * 2021-07-07 2023-01-13 云丁网络技术(北京)有限公司(Cn) Offline control method and device for intelligent equipment

Also Published As

Publication number Publication date
CN111325917B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN111325917B (en) Using method and device of sharing equipment, storage medium and equipment
CN105847282B (en) Vehicle control method, server and system
CN107111948B (en) Geo-proximity vehicle reminder and access system for security and package exchange efficiency
CN107006044B (en) Hacker security solution for package transfer to and from vehicles
US9508204B2 (en) Package exchange and service system using a key fob simulator
EP3392846A1 (en) Vehicle control method, device and system and vehicle
US8250366B2 (en) Method and system for electronic vehicle document display
JP6419588B2 (en) Mobile terminal additional registration system
CN107107869A (en) By remote control of the mobile terminal device to vehicle functions
CN109448195B (en) Authentication method and device for vehicle virtual key
CN104778773A (en) System and method for controlling entrance guard by mobile phone
US10810814B2 (en) Delivery system, information processing device, control method for information processing device, and non-transitory recording medium having program stored therein
CN109636374B (en) Two-dimensional code secure payment method and device
KR20120116924A (en) Vehicle access control services and platform
CN109379403B (en) Control method and device of Internet of things equipment, server and terminal equipment
WO2016170834A1 (en) System and method for managing vehicle
JP2011039712A (en) Car sharing system
US20140242969A1 (en) Program expanding system, server for use therein, program expanding method and program managing program
CN111148068A (en) Bluetooth key configuration method and system for configuring Bluetooth key
JP2013258491A (en) Car sharing system and car sharing provisioning method
EP3399494A1 (en) Control method, control apparatus and control system of using an article, and article
CN112105000B (en) Method, apparatus and computer storage medium for authorizing a vehicle based on bluetooth
CN111460427A (en) Binding method and device of power supply equipment, storage medium and equipment
CN112907834A (en) Method, apparatus, and computer storage medium for information processing
US20200070776A1 (en) Method for exchanging data between a vehicle and an infrastructure or a further vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231012

Address after: 11 / F, a / F, Yizhan business building, 1 Wenyi West Road, Xihu District, Hangzhou City, Zhejiang Province, 310012

Patentee after: Hangzhou Hahang Network Technology Co.,Ltd.

Address before: Room 501, building 1, No. 898 Xiuwen Road, Minhang District, Shanghai, 201199

Patentee before: SHANGHAI JUNZHENG NETWORK TECHNOLOGY Co.,Ltd.