Shared device starting method, server, device and storage medium
The server generates and verifys the authorization code of the shared device function key operation combination, and solves the problems of corruption of QR codes and blurred device numbers in the existing technology, achieving a more convenient and reliable device startup experience.
Patent Information
- Application Number
- CN202510225306.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-06-20
AI Technical Summary
In the existing methods of starting shared devices, the QR code is easily damaged, defiled or covered, the map positioning accuracy is insufficient, the device number is easily damaged or blurred, resulting in users being unable to use the device normally and the user experience is poor.
The server dynamically generates an authorization code composed of the function key operation combination of the shared device, and returns to the user terminal. The user enters the authorization code through the function key of the shared device to start the device, avoiding the problems of QR code corruption and blurred numbering in the traditional startup method.
It improves the convenience and reliability of the device startup, avoids startup failures caused by corruption of QR code or blurred numbering, and improves user experience.
Smart Images

Figure CN120183087A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shared devices, and in particular to a shared device startup method, a server, a device and a storage medium. Background Art
[0002] Currently, shared devices such as shared massage chairs usually use methods such as QR code scanning, map positioning selection, and inputting device numbers. However, these methods all have certain limitations in practical applications. For example, the QR code can easily be damaged, stained, or covered and cannot be recognized, resulting in users being unable to use the massage chair normally. Secondly, although the map positioning selection can achieve precise positioning in theory, due to the complex actual indoor environment and a lot of signal interference, the indoor positioning accuracy is insufficient and the user experience is poor. In addition, although the method of entering the device number is simple to operate, the device number is also easy to be damaged or blurred, and the user needs to manually enter a string of characters, which is not convenient enough. Summary of the invention
[0003] The present invention provides a shared device startup method, a server, a device and a storage medium, which are used to solve the defects of the shared device startup method in the prior art.
[0004] The present invention provides a shared device startup method, which is applied to a server, and the method comprises: In response to a first device startup request based on a control button sent by a first user terminal, generating an authorization code consisting of an operation combination of at least one function button of a shared device, returning the authorization code to the first user terminal, and sending a detection instruction corresponding to the authorization code to at least one first shared device; In response to a second device startup request sent by a second shared device among the at least one first shared device, order information is created between the second shared device and the first user terminal, and a device startup instruction is sent to the second shared device; the second device startup request is triggered when the shared device detects that the function key operation combination input by the user is consistent with the function key operation combination corresponding to the authorization code.
[0005] According to a shared device startup method provided by the present invention, generating an authorization code composed of an operation combination of at least one function key of the shared device includes: Select one or more function keys from the function keys of the shared device as target keys, and determine the operation type and operation sequence corresponding to the target keys; the operation type includes at least one of short press, long press, single press, and multiple presses; The identifier of the target button and the operation type and operation sequence corresponding to the target button are combined into an authorization code according to a preset coding format.
[0006] A method for starting a shared device provided by the present invention further includes: In response to a third device start request sent by a third shared device among the at least one first shared device, sending a termination detection instruction corresponding to the authorization code to the third shared device; the third device start request is triggered by a second user terminal based on a non-control button start method of the shared device; the non-control button start method includes at least one of scanning a code and inputting a device number; Creating order information between the third shared device and the second user terminal, and sending a device start instruction to the third shared device.
[0007] A method for starting a shared device provided by the present invention further includes: In response to a second device start request sent by a second shared device among the at least one first shared device, sending a termination detection instruction corresponding to the authorization code to the shared devices other than the second shared device among the at least one first shared device.
[0008] A method for starting a shared device provided by the present invention, the detection instruction carries a failure time corresponding to the authorization code, and the failure time is used to indicate that the shared device executes the detection instruction corresponding to the authorization code within the failure time. The method further includes: In response to not receiving a second device start request sent by the second shared device among the at least one first shared device within the failure time, performing a refund process on the prepayment order of the first user terminal; the prepayment order is generated by the first user terminal when sending the first device start request.
[0009] A method for starting a shared device provided by the present invention further includes: Receiving a Bluetooth name of a shared device reported by the first user terminal; the Bluetooth name of the shared device is obtained by the first user terminal through Bluetooth scanning based on a preset Bluetooth name rule of the shared device; Determining at least one first shared device that is in an idle state and matches the Bluetooth name of the shared device.
[0010] A method for starting a shared device provided by the present invention further includes: Receiving location information reported by the first user terminal; Determining at least one first shared device that is in an idle state and matches the location information.
[0011] The present invention also provides a server, including: The first shared device startup module is configured to generate an authorization code composed of operation combinations of at least one function key of the shared device in response to a first device startup request based on a control key sent by a first user terminal, return the authorization code to the first user terminal, and send a detection instruction corresponding to the authorization code to at least one first shared device; The second shared device startup module is configured to create order information between the second shared device and the first user terminal in response to a second device startup request sent by the second shared device among the at least one first shared device, and send a device startup instruction to the second shared device; the second device startup request is triggered when the shared device detects that the operation combination of the function keys input by the user is consistent with the operation combination of the function keys corresponding to the authorization code.
[0012] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the shared device startup method described in any one of the above is implemented.
[0013] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the shared device startup method described in any one of the above is implemented.
[0014] The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the shared device startup method described in any one of the above is implemented.
[0015] The shared device startup method, server, device, and storage medium provided by the present invention dynamically generate an authorization code based on the operation combination of the function keys of the shared device through the server, and send the corresponding detection instruction to the shared device. The user can start the device by operating the function keys of the shared device, avoiding startup failures caused by problems such as damaged two-dimensional codes and blurred numbers in the traditional startup method, and further improving the convenience of device startup. Description of the Drawings
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0017] Figure 1 is a schematic flowchart of the shared device startup method provided by the present invention; Figure 2 is a schematic structural diagram of the server provided by the present invention; Figure 3 It is a schematic structural diagram of the electronic device provided by the present invention. Specific embodiments
[0018] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts shall fall within the protection scope of the present invention.
[0019] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without further limitations, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the said element. The orientation or positional relationship indicated by terms such as "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation to the present application. Unless otherwise clearly defined and limited, the terms "mount", "connect" and "couple" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the internal communication of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.
[0020] The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and do not limit the number of objects. For example, the first object may be one or multiple. In addition, " / or" indicates at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0021] Figure 1 It is a schematic flowchart of the method for starting a shared device provided by the present invention, asFigure 1 As shown in Figure 1 , the method includes step 110 and step 120. It should be noted that the execution subject of the shared device startup method provided in the embodiments of the present application can be a server, or other computer devices, such as mobile phones, tablet computers, laptop computers, palmtop computers, in-vehicle electronic devices, wearable devices, Ultra-mobile Personal Computers (UMPCs), netbooks, or Personal Digital Assistants (PDAs), etc. This application takes the server as the execution subject for illustration, but does not limit the execution subject of the shared device startup method of this application to only the server.
[0022] Step 110: In response to a first device startup request based on a control button sent by a first user terminal, generate an authorization code composed of an operation combination of at least one function button of the shared device, return the authorization code to the first user terminal, and send a detection instruction corresponding to the authorization code to at least one first shared device.
[0023] In this application, the server can be communicatively connected to one or more shared devices. The shared device can be a shared massage chair or other devices that can be used or shared by multiple people. These devices usually allow users to access and use them under specific conditions through a certain form of management or technical means.
[0024] Here, the user can use the application client on the first user terminal (such as the application or website of the shared massage chair). In the application client, the user triggers the first user terminal to send a first device startup request based on a control button to the server by selecting the startup option of "button combination startup". The request carries the identity information of the first user terminal and the request information for starting the device by using the physical button combination on the shared device selected by the first user terminal.
[0025] Specifically, the first device startup request is used to instruct the server to perform startup verification using the existing control buttons on the shared device. These control buttons were originally used to adjust the working mode of the shared device, such as adjusting the massage mode, massage intensity, massage area, etc. of the shared massage chair, and are not the dedicated switch buttons for starting the massage chair. In this way, even if the QR code on the shared device is damaged or the number is destroyed, the user can still start the shared device.
[0026] After the server receives the first device startup request based on a control button sent by the first user terminal, it starts to generate an authorization code. The authorization code is composed of an operation combination of at least one function button of the massage chair, including but not limited to the number, order, and operation method of the function buttons that need to be operated, etc.
[0027] The server sends the generated authorization code to the first user terminal (such as a mobile APP). The user can see the specific content of the authorization code on the first user terminal (such as a mobile APP), for example, "Please operate the buttons in the following order: Button A (short press) → Button B (long press) → Button C (short press)". At the same time, the server sends a detection instruction to at least one first shared device near the first user terminal to instruct the first shared device to enter the button detection state and prepare to detect whether the operation combination of the function buttons input by the user is consistent with the authorization code.
[0028] It should be understood that since the server is communicatively connected to multiple shared devices, multiple users may perform device startup operations at the same time. Therefore, after the server sends the generated authorization code to the first user terminal, an association relationship between this authorization code and the first user terminal will also be established. This association mechanism ensures that in the subsequent process, the server can accurately identify and create order information between the shared device selected by the first user terminal and the user terminal.
[0029] Step 120, in response to a second device startup request sent by a second shared device among the at least one first shared device, create order information between the second shared device and the first user terminal, and send a device startup instruction to the second shared device; the second device startup request is triggered when the shared device detects that the operation combination of the function buttons input by the user is consistent with the operation combination of the function buttons corresponding to the authorization code.
[0030] It should be understood that after receiving the detection instruction, the first shared device will enter the button detection mode. In this button detection mode, the first shared device will detect whether the user operates according to the operation combination of the function buttons specified by the authorization code.
[0031] When a second shared device detects that the operation combination of the function buttons input by the user is consistent with the authorization code, the second shared device will send a second device startup request to the server. This request is for the second shared device to notify the server that the user has completed the correct operation and request the server to perform the next step of processing (such as creating an order and starting the device).
[0032] After receiving the second device startup request, the server will create an order information, associating the first user terminal corresponding to this second device startup request with the corresponding second shared device. The order information is used to record the user's usage records, billing information, and the usage status of the device, ensuring that the usage relationship between the user and the device is correctly recorded and managed.
[0033] After creating the order information, the server will also send a device startup instruction to the second shared device. The startup instruction is a control signal instructing the second shared device to enter the working state and start providing corresponding services to the user.
[0034] The shared device startup method proposed in this embodiment generates an authorization code dynamically based on the operation combination of the function keys of the shared device through the server, and sends the corresponding detection instruction to the shared device. The user can start the device through the function keys of the shared device, avoiding startup failures caused by problems such as damaged QR codes and blurred numbers in the traditional startup method, and further improving the convenience of device startup.
[0035] It should be noted that each embodiment of this application can be freely combined, the order can be swapped, or each can be executed independently, without relying on or depending on a fixed execution order.
[0036] In some embodiments, generating the authorization code composed of the operation combination of at least one function key of the shared device includes: Selecting one or more function keys from the function keys of the shared device as target keys, and determining the operation type and operation order corresponding to the target keys; the operation type includes at least one of short press, long press, single press, and multiple presses; Combining the identifier of the target key and the operation type and operation order corresponding to the target key into an authorization code according to a preset coding format.
[0037] In this embodiment, the server can select one or more function keys from the function keys of the shared device through a random algorithm. Shared devices such as shared massage chairs are usually equipped with multiple function keys, which were originally used to adjust massage modes, massage intensities, massage positions, etc. After the first user terminal selects to use the control key to start, these function keys will be reused to start the device.
[0038] Specifically, the server randomly selects one or more function keys as target keys. For example, randomly select 3 function keys (such as function key A, function key B, and function key C) from the 10 function keys of the shared massage chair. Each function key has a unique identifier (such as a number or a name) to distinguish different keys.
[0039] Then, specify the operation type for each target key and define the operation order of the keys. The operation types include short press (press the key and release it quickly), long press (press the key continuously for a period of time), single press (press the key only once), multiple presses (press the key continuously multiple times), etc. By defining the operation type and operation order, a unique key combination can be generated, thereby improving the complexity and security of the authorization code. For example, if function keys A, B, and C are selected, the corresponding operation type and operation order can be "function key A (short press) → function key B (long press) → function key C (single press)".
[0040] Finally, combine the identifier, operation type, and operation sequence of the target button into an authorization code according to a preset coding format. The preset coding format can be a string, an array, or other data structures. For example, the authorization code can be expressed as [A: single short press, B: single long press, C: triple short press], where A, B, and C represent the button identifiers respectively.
[0041] Furthermore, when the server generates multiple authorization codes for multiple first user terminals, it can also ensure that at least one of the identifier, operation type, and operation sequence of the target button corresponding to each authorization code is different, so as to increase the uniqueness of the authorization code and ensure that different authorization codes do not repeat. In addition, it can also only ensure that at least one of the identifier, operation type, and operation sequence of the target button corresponding to the authorization codes of the first user terminals within the same preset positioning range is different.
[0042] The shared device startup method proposed in this embodiment ensures both the flexibility and security of startup based on function buttons by randomly selecting function buttons, operation types, and operation sequences.
[0043] In some embodiments, the method further includes: In response to a third device startup request sent by a third shared device among the at least one first shared device, send a termination detection instruction corresponding to the authorization code to the third shared device; the third device startup request is triggered by a second user terminal based on a non-control button startup method of the shared device; the non-control button startup method includes at least one of scanning a code and inputting a device number; Create order information between the third shared device and the second user terminal, and send a device startup instruction to the third shared device.
[0044] It should be noted that in the usage scenario of shared devices, there are multiple startup methods. In addition to startup by combining control buttons (such as authorization code verification), there are also non-control button startup methods (such as scanning a code and inputting a device number).
[0045] When the third shared device is already in the button detection state (constantly detecting the button combination corresponding to the user input authorization code). If the second user terminal of the user starts the third shared device by other means (such as scanning a code) at this time, the third shared device will send a third device startup request to the server.
[0046] After the server receives the third device startup request of the third shared device, it sends a termination detection instruction to the third shared device. The function of this instruction is to notify the third shared device to stop the current key detection task. Then, the server creates order information between the third shared device and the second user terminal according to the third device startup request. The order information records the association relationship between the user and the device, the usage time, the billing information, etc. At the same time, the server sends a device startup instruction to the third shared device to instruct the device to enter the normal working state and start providing services to the user.
[0047] In the shared device startup method proposed in this embodiment, through the termination detection instruction, the server can quickly handle the situation of switching the startup method midway and avoid resource waste.
[0048] In some embodiments, the method further includes: In response to a second device startup request sent by a second shared device among the at least one first shared device, a termination detection instruction corresponding to the authorization code is sent to the shared devices other than the second shared device among the at least one first shared device.
[0049] After the server receives the second device startup request of the second shared device, it confirms that the user's startup operation of the second shared device has been successfully verified. Then the server sends a termination detection instruction to the other shared devices except the second shared device in the same group of devices to be started, to notify them to stop detecting the authorization code. After receiving the termination detection instruction, the other shared devices exit the detection state to avoid repeatedly responding to the same authorization code.
[0050] In the shared device startup method proposed in this embodiment, through the above mechanism, the server can ensure the uniqueness of the authorization code, and after the user successfully starts a shared device, timely terminate the detection state of other shared devices, thereby improving the reliability of the shared device and the user experience.
[0051] In some embodiments, the detection instruction carries a failure time corresponding to the authorization code, and the failure time is used to instruct the shared device to execute the detection instruction corresponding to the authorization code within the failure time. The method further includes: In response to not receiving a second device startup request sent by a second shared device among the at least one first shared device within the failure time, a refund process is performed on the prepayment order of the first user terminal; the prepayment order is generated when the first user terminal sends the first device startup request.
[0052] To ensure the security and effectiveness of the authorization code, the server sets an expiration time when generating the authorization code. This expiration time limits the user to complete the key combination operation within the specified time to start the device. After receiving the detection instruction carrying the expiration time corresponding to the authorization code, the shared device detects the operation combination of the function keys input by the user only within this expiration time. If the user completes the operation within the expiration time, the device will start normally; if the expiration time is exceeded, the device will no longer respond.
[0053] Furthermore, before starting the shared device, the user can also pre-purchase a package and generate a pre-payment order through the first user terminal (such as a mobile phone APP). For example, the user purchases a 30-minute massage service package and pays the corresponding fee. Specifically, when the user sends a first device start request, the server generates a pre-payment order, records the user's payment information and service package content, and the pre-payment order is associated with the authorization code to ensure that the order becomes effective after the user starts the device based on this authorization code within the expiration time.
[0054] After the expiration time of the authorization code ends, the server checks whether it has received a second device start request. If no start request is received, it means that the user may have abandoned using the device or failed to complete the operation for other reasons, then the server will trigger a refund processing flow and refund the amount of the user's pre-payment order to the user's payment account. After the refund is completed, the server will also update the order status to "refunded" and notify the user that the refund is successful.
[0055] The shared device start method proposed in this embodiment limits the user to complete the operation within the specified time by setting the expiration time of the authorization code, preventing the authorization code from being misused or occupying the device for a long time. Furthermore, the user starts an automatic refund when the device is not used after the timeout, improving the user experience.
[0056] In some embodiments, the method further includes: Receiving the Bluetooth name of the shared device reported by the first user terminal; the Bluetooth name of the shared device is obtained by the first user terminal through Bluetooth scanning based on a preset Bluetooth name rule for shared devices; Determining at least one first shared device that is in an idle state and matches the Bluetooth name of the shared device.
[0057] Here, after the user opens the application client of the shared device on the first user terminal and selects the "key combination start" start option, the application first checks whether the first user terminal is authorized to use the Bluetooth function. If the user has authorized, the application will enter the Bluetooth scanning mode and start scanning for nearby Bluetooth devices.
[0058] Specifically, after the first user terminal scans for nearby Bluetooth devices, it determines whether the name of the Bluetooth device conforms to the preset shared device Bluetooth name rule of this shared device. The preset shared device Bluetooth name rule can be a specific naming format such as a prefix or suffix of the Bluetooth name that conforms to this shared device. For example, the Bluetooth names of all shared massage chairs can start with "MassageChair_" followed by the device serial number. If it conforms to the preset shared device Bluetooth name rule, it reports its Bluetooth name to the server.
[0059] After the server receives the shared device Bluetooth name reported by the mobile terminal, it searches for the corresponding shared device in the database according to the shared device Bluetooth name. For example, it locates the specific device through the serial number (12345) in the Bluetooth name. Further, it checks whether the device is in an idle state. If the device is in an idle state, it marks it as the available first shared device.
[0060] In some embodiments, the method further includes: Receiving the location information reported by the first user terminal; Determining at least one first shared device that is in an idle state and matches the location information.
[0061] Further, in addition to being able to determine the first shared device through Bluetooth scanning, the first shared device nearby can also be matched through the location information.
[0062] Specifically, the application client of the shared device on the first user terminal obtains the approximate location information of the user (such as latitude and longitude coordinates or area identifier) through the location module of the mobile terminal. Then it reports the obtained location information to the server. After the server receives the location information reported by the user terminal, it searches in the database for the first shared device that is in an idle state and matches the location information.
[0063] The shared device startup method proposed in this embodiment enables the server to quickly and accurately locate and match nearby shared devices in the above manner, improving the user experience.
[0064] Based on any of the above embodiments, the present invention further provides a server, Figure 2 which is a schematic structural diagram of the server provided by the present invention, as Figure 2 shown, including: a first shared device startup module 210 and a second shared device startup module 220.
[0065] The first shared device startup module 210 is configured to generate an authorization code composed of operation combinations of at least one function key of the shared device in response to a first device startup request based on a control key sent by a first user terminal, return the authorization code to the first user terminal, and send a detection instruction corresponding to the authorization code to at least one first shared device; The second shared device startup module 220 is configured to create order information between the second shared device and the first user terminal in response to a second device startup request sent by the second shared device among the at least one first shared device, and send a device startup instruction to the second shared device; the second device startup request is triggered when the shared device detects that the operation combination of the function keys input by the user is consistent with the operation combination of the function keys corresponding to the authorization code.
[0066] The server provided by the embodiment of the present invention generates an authorization code dynamically based on the operation combination of the function keys of the shared device, and sends the corresponding detection instruction to the shared device. The user can start the device by operating the function keys of the shared device, avoiding the startup failure caused by problems such as damaged two-dimensional codes and blurred numbers in the traditional startup method, and further improving the convenience of device startup.
[0067] Figure 3 Illustrates a schematic physical structure diagram of an electronic device, as Figure 3 shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330, and a communication bus 340. Among them, the processor 310, the communication interface 320, and the memory 330 complete mutual communication through the communication bus 340. The processor 310 can call the logical instructions in the memory 330 to execute the shared device startup method, and the method includes: In response to a first device startup request based on a control key sent by a first user terminal, generate an authorization code composed of operation combinations of at least one function key of the shared device, return the authorization code to the first user terminal, and send a detection instruction corresponding to the authorization code to at least one first shared device; In response to a second device startup request sent by the second shared device among the at least one first shared device, create order information between the second shared device and the first user terminal, and send a device startup instruction to the second shared device; the second device startup request is triggered when the shared device detects that the operation combination of the function keys input by the user is consistent with the operation combination of the function keys corresponding to the authorization code.
[0068] In addition, when the logical instructions in the above-mentioned memory 330 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0069] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the shared device startup method provided by the above-mentioned various methods. The method includes: In response to a first device startup request based on a control button sent by a first user terminal, generate an authorization code composed of an operation combination of at least one function button of the shared device, return the authorization code to the first user terminal, and send a detection instruction corresponding to the authorization code to at least one first shared device; In response to a second device startup request sent by a second shared device among the at least one first shared device, create order information between the second shared device and the first user terminal, and send a device startup instruction to the second shared device; the second device startup request is triggered when the shared device detects that the operation combination of the function button input by the user is consistent with the operation combination of the function button corresponding to the authorization code.
[0070] In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the shared device startup method provided by the above-mentioned various methods. The method includes: In response to a first device startup request based on a control button sent by a first user terminal, generate an authorization code composed of an operation combination of at least one function button of the shared device, return the authorization code to the first user terminal, and send a detection instruction corresponding to the authorization code to at least one first shared device; In response to a second device startup request sent by a second shared device among the at least one first shared device, order information between the second shared device and the first user terminal is created, and a device startup instruction is sent to the second shared device; the second device startup request is triggered when the shared device detects that a combination of function key operations input by the user is consistent with the combination of function key operations corresponding to the authorization code.
[0071] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0072] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical coding feature diagrams; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.
Claims
1. A method for starting a shared device, characterized in that: Applied to a server, the method comprises: In response to a first device startup request based on a control button sent by a first user terminal, generating an authorization code consisting of an operation combination of at least one function button of a shared device, returning the authorization code to the first user terminal, and sending a detection instruction corresponding to the authorization code to at least one first shared device; In response to a second device startup request sent by a second shared device among the at least one first shared device, order information is created between the second shared device and the first user terminal, and a device startup instruction is sent to the second shared device; the second device startup request is triggered when the shared device detects that the function key operation combination input by the user is consistent with the function key operation combination corresponding to the authorization code.
2. The shared device startup method according to claim 1, characterized in that: The generating of the authorization code formed by the operation combination of at least one function key of the shared device includes: Select one or more function keys from the function keys of the shared device as target keys, and determine the operation type and operation sequence corresponding to the target keys; the operation type includes at least one of short press, long press, single press, and multiple presses; The identifier of the target button and the operation type and operation sequence corresponding to the target button are combined into an authorization code according to a preset coding format.
3. The shared device startup method according to claim 1, characterized in that: The method further comprises: In response to a third device startup request sent by a third shared device in the at least one first shared device, sending a termination detection instruction corresponding to the authorization code to the third shared device; the third device startup request is triggered by the second user terminal based on a non-control button startup method of the shared device; the non-control button startup method includes at least one of scanning a code and inputting a device number; Create order information between the third sharing device and the second user terminal, and send a device startup instruction to the third sharing device.
4. The shared device startup method according to claim 1, characterized in that: The method further comprises: In response to a second device startup request sent by a second sharing device among the at least one first sharing device, a termination detection instruction corresponding to the authorization code is sent to sharing devices other than the second sharing device among the at least one first sharing device.
5. The shared device startup method according to claim 1, characterized in that: The detection instruction carries an expiration time corresponding to the authorization code, and the expiration time is used to instruct the shared device to execute the detection instruction corresponding to the authorization code within the expiration time. The method further includes: In response to a second device startup request sent by a second shared device among the at least one first shared device that is not received within the expiration time, a refund is processed for the prepaid order of the first user terminal; the prepaid order is generated by the first user terminal when sending the first device startup request.
6. The shared device startup method according to claim 1, characterized in that: The method further comprises: Receiving a Bluetooth name of a shared device reported by the first user terminal; the Bluetooth name of the shared device is obtained by the first user terminal through Bluetooth scanning based on a preset Bluetooth name rule of the shared device; At least one first shared device that is in an idle state and matches the shared device Bluetooth name is determined.
7. The shared device startup method according to claim 1, characterized in that: The method further comprises: receiving positioning information reported by the first user terminal; At least one first shared device that is in an idle state and matches the positioning information is determined.
8. A server, characterized in that: include: A first shared device startup module, configured to generate an authorization code consisting of an operation combination of at least one function key of a shared device in response to a first device startup request based on a control key sent by a first user terminal, return the authorization code to the first user terminal, and send a detection instruction corresponding to the authorization code to at least one first shared device; The second shared device startup module is used to respond to the second device startup request sent by the second shared device in the at least one first shared device, create order information between the second shared device and the first user terminal, and send a device startup instruction to the second shared device; the second device startup request is triggered when the shared device detects that the function key operation combination input by the user is consistent with the function key operation combination corresponding to the authorization code.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the shared device startup method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the shared device startup method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Bike sharing method and system
CN106652232A
Remote unlocking method and remote locking method for shared bikes
CN107424251A
Shared bicycle unlocking method, equipment and storage medium
CN107818613A
Sharing method and system for production equipment
CN108711084A
Air conditioner sharing method, terminal, shared air conditioner and storage medium
CN110675566A