CN109788005A - Equipment control authority sharing method, device, system and computer storage medium - Google Patents
Equipment control authority sharing method, device, system and computer storage medium Download PDFInfo
- Publication number
- CN109788005A CN109788005A CN201711102991.4A CN201711102991A CN109788005A CN 109788005 A CN109788005 A CN 109788005A CN 201711102991 A CN201711102991 A CN 201711102991A CN 109788005 A CN109788005 A CN 109788005A
- Authority
- CN
- China
- Prior art keywords
- sharing
- shared
- terminal
- equipment
- request
- 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.)
- Withdrawn
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application provides a kind of equipment control authority sharing method, is applied to server, comprising: receives and uses request to shared device by what sharing terminal was sent;Based on the shared device using requesting, when having shared access right to corresponding shared device by sharing terminal according to the confirmation of shared device mapping relations is described, it is determining with described by the corresponding sharing terminal iidentification of sharing terminal;It uses request to use request as the shared device for sharing terminal iidentification the shared device, and is sent to the shared device.The embodiment of the present application also provides a kind of sharing terminal, by sharing terminal, system and storage medium.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and a storage medium for sharing device control permissions.
Background
Along with the rapid development of the internet of things and intelligent equipment, with the rise of a sharing economic mode, sharing equipment such as a sharing automobile, a sharing KTV, a sharing bicycle, a sharing umbrella and the like correspondingly appears, deposit payment is needed when the sharing equipment is used, and meanwhile, the fee payment is needed after the sharing equipment is used.
At present, before using a sharing device, registration needs to be performed on an Application program (APP for short) of each corresponding sharing device through a terminal, or a registered user account needs to be used for logging in the APP, in order to ensure the privacy and the security of the sharing device, the sharing device can only establish a corresponding relationship with one user account, that is, the control authority of the sharing device corresponds to the user accounts one to one, and in case that a plurality of users exist in a family, the accounts need to be registered respectively, and the sharing device needs to be used for paying for deposit, which brings great inconvenience for use.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a device control permission sharing method, apparatus, system and computer storage medium, which can share the usage permission of a shared device to an opposite terminal.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a device control authority sharing method, which is applied to a sharing terminal and comprises the following steps: acquiring a sharing request instruction, a shared terminal identifier and a sharing equipment identifier; based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier; and sending the device permission sharing message to a server or a shared terminal, wherein the device permission sharing message comprises the shared terminal identification and the sharing device identification.
Before generating the device permission sharing message according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction, the method further includes: acquiring authority limit information; the generating of the device permission sharing message according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction includes: and based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identification, the sharing device identification and the permission limitation information.
The embodiment of the invention provides a device control authority sharing method, which is applied to a shared terminal and comprises the following steps: sending a sharing equipment use request to a server; and receiving a use permission message returned by the sharing equipment after the server authenticates according to the mapping relation of the sharing equipment and sends the use request of the sharing equipment to the corresponding sharing equipment.
Before sending the sharing device use request to the server, the method further includes: receiving an equipment authority sharing message sent by a server or a sharing terminal; and sending an equipment authority copying request containing the sharing terminal identification, the shared terminal identification and the sharing equipment identification to a server based on the equipment authority sharing message.
The receiving of the device permission sharing message sent by the server or the sharing terminal includes: receiving an equipment authority sharing message sent by a server in a communication protocol mode; or receiving an equipment authority sharing message from the sharing terminal in a two-dimensional code communication mode; or receiving the equipment authority sharing message from the sharing terminal in a Bluetooth communication mode.
The embodiment of the invention provides a device control authority sharing method, which is applied to a server and comprises the following steps: receiving a sharing equipment use request sent by a shared terminal; based on the sharing equipment use request, determining a sharing terminal identifier corresponding to the shared terminal when the shared terminal is confirmed to have sharing use right according to a sharing equipment mapping relation; and the sharing equipment use request is used as a sharing equipment use request of the sharing terminal identification and is sent to the sharing equipment.
Before receiving a sharing device use request sent by a shared terminal, the method includes: receiving an equipment authority sharing message sent by a sharing terminal, and forming a sharing equipment mapping relation according to a sharing terminal identifier of the sharing terminal, a sharing equipment identifier in the equipment authority sharing message and a shared terminal identifier; or receiving an equipment authority copying request sent by the shared terminal, and forming a shared equipment mapping relation according to the sharing terminal identifier, the shared terminal identifier and the shared equipment identifier in the equipment authority copying request.
Before receiving a request for using the sharing device sent by the shared terminal, the method further includes: receiving an equipment authority sharing message sent by a sharing terminal, and forming a sharing equipment mapping relation according to a sharing terminal identifier, a sharing equipment identifier in the equipment authority sharing message, a shared terminal identifier and authority limit information; or receiving an equipment authority copying request sent by the shared terminal, and forming a mapping relation of the shared equipment according to the sharing terminal identifier, the shared equipment identifier and the authority limit information in the equipment authority copying request.
After the step of using the shared device usage request as the shared device usage request of the shared terminal identifier and sending the shared device usage request to the shared device, the method further includes: when the time length of the shared terminal using the sharing equipment exceeds a preset value in the permission limiting information, sending a use ending request of the sharing terminal identification to the sharing equipment; and sending a use limit notification message to the shared terminal.
After the step of using the shared device usage request as the shared device usage request of the shared terminal identifier and sending the shared device usage request to the shared device, the method further includes: and receiving a use ending request sent by a shared terminal, and sending the use ending request to the sharing equipment as the use ending request of the sharing terminal identifier.
The embodiment of the invention provides a device control authority sharing device, which is applied to a sharing terminal and comprises the following components: the device comprises an acquisition module, a generation module and a first sending module; the acquisition module is used for acquiring a sharing request instruction, a shared terminal identifier and a sharing equipment identifier; the generating module is configured to generate an equipment permission sharing message according to the shared terminal identifier and the sharing equipment identifier based on the sharing request instruction; the first sending module is used for sending the device permission sharing message to a server or a shared terminal; and the device permission sharing message comprises the shared terminal identifier and the shared device identifier.
The embodiment of the invention provides a device control authority sharing device, which is applied to a shared terminal and comprises the following components: the device comprises a first receiving module and a second sending module; the second sending module is used for sending a shared device use request to the server; the first receiving module is used for receiving the use permission message returned by the sharing device after the server authenticates according to the mapping relation of the sharing device, and the use permission message is sent to the sharing device by the sharing device.
The embodiment of the invention provides a device control authority sharing device, which is applied to a server and comprises the following components: the device comprises a second receiving module, an analysis module and a third sending module; the second receiving module is configured to receive a shared device use request sent by a shared terminal; the analysis module is configured to determine, based on the shared device use request, a shared terminal identifier corresponding to the shared terminal when the shared terminal is determined to have the shared use right for the shared device according to a shared device mapping relationship; and the third sending module is configured to use the shared device use request as a shared device use request of the identifier of the shared terminal, and send the shared device use request to the shared device.
The embodiment of the invention provides an equipment control authority sharing system, which can comprise an equipment control authority sharing device applied to a sharing terminal, an equipment control authority sharing device applied to a shared terminal and an equipment control authority sharing device applied to a server.
The embodiment of the invention provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and when being executed by a processor, the computer program realizes the device control authority sharing method provided by any embodiment of the invention.
The sharing terminal shares the use authority of the sharing device to the shared terminal through a sharing request instruction, the shared terminal receives the sharing authority of the sharing terminal and records the sharing authority of the sharing terminal to the shared terminal through the server, when the shared terminal needs to use the sharing device, the shared terminal sends a sharing device use request to the server, the server verifies whether the shared terminal has the sharing use authority of the sharing device, and when the verification is passed, the sharing device request of the shared terminal is sent to the sharing device as the sharing device use request of the sharing terminal, so that the user terminal with the sharing device use authority can send the use authority of the sharing device to other user terminals, the sharing terminal and the shared terminal use the sharing device, the sharing terminal and the shared terminal use the account of the sharing terminal to log in a unified mode, the shared terminal does not need to pay the deposit or acquire extra authority and can use the sharing device, for the sharing terminal and the shared terminal, the situation that the deposit is paid for the same sharing device for many times is avoided, the cost generated by use can be paid by the sharing terminal in a unified mode, use is convenient, and user experience is improved.
Drawings
Fig. 1 is a schematic view of a scenario of a device control authority sharing system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for sharing device control permissions according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for sharing device control authority according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a device control authority sharing method according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for sharing device control authority according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a device control authority sharing method according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for sharing device control authority according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a device control authority sharing system according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating a method for sharing control authority of a server-based device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a device control authority sharing apparatus according to another embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic view of a scenario of a device control authority sharing system according to an embodiment of the present invention, where the system includes: the sharing terminal 11, the shared terminal 12, the server 13 located in the network, and the sharing device side. The sharing device side includes a sharing device 15 and a server 14 located in the network and providing support for managing the use authority of the sharing device 15.
The sharing terminal 11 is configured to obtain a sharing request instruction, a shared terminal identifier, and a sharing device identifier; based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier; and sending the device permission sharing message to a server 13 or a shared terminal 12, where the device permission sharing message includes the shared terminal identifier and the shared device identifier.
The shared terminal 12 is configured to receive a device permission sharing message sent by the server 13 and/or the sharing terminal 11; based on the device permission sharing message, sending a device permission copying request containing a sharing terminal identifier, a shared terminal identifier and a sharing device identifier to the server 13; sending a shared device use request to the server 13, and receiving a use permission message returned by the shared device after the server 13 performs authentication according to the device permission copy request, sending the shared device use request to the shared device.
The server 13 is configured to receive a shared device use request sent by the shared terminal 12; based on the sharing device use request, determining a sharing terminal identifier corresponding to the shared terminal when the shared terminal 12 is confirmed to have the sharing use right of the sharing device according to the mapping relation of the sharing device; and taking the shared device use request as a shared device use request of the sharing terminal identifier, and sending the shared device use request to the shared device side, specifically, sending the shared device use request to a server 14 of the shared device side by the server 13.
The server 14 is configured to receive a shared device use request sent by the server 13, determine, according to account information carried in the shared device use request, whether the shared device use request is a request issued by an account that has been registered and authorized to use the corresponding shared device, if yes, it indicates that the shared device use request is issued by a user having a use permission for the shared device, and allows the shared device to be used, and the server 14 unlocks the shared device 15 so that the shared device 15 can be successfully started to use; if not, it indicates that the shared device use request is issued by a user who has no use authority for the shared device, and the shared device is not allowed to be used, and the server keeps locking the shared device 15 so that the shared device 15 cannot be successfully opened for use. After the server 14 unlocks or locks the sharing device 15, the server 14 may also send corresponding unlocking or locking indication information to the server 13, and the server 13 sends the indication information to the shared terminal 12, so that the shared terminal 12 can timely know status information that the sharing device 15 is successfully opened or the sharing device 15 cannot be successfully opened.
In the embodiment of the present invention, the sharing terminal 11 and the shared terminal 12 are terminals that are pre-installed with a device permission sharing APP for implementing the device control permission sharing method provided in the embodiment of the present application, and can share the usage permission of the sharing device 15 through the device permission sharing APP. The device permission sharing APP refers to an application program for implementing the device control permission sharing method provided by the embodiment of the application. The shared terminal 12 refers to a terminal used by a shared user, specifically, an account not registered to use the shared device, and shares the authority to use the shared device by receiving the authority of the shared terminal 11 by using the device control authority sharing method provided in the embodiment of the present application, so that the user terminal of the shared device can be used by the authority of the shared terminal 11 to use the shared device. The sharing terminal 11 refers to a terminal used by a sharing user, and specifically refers to a user terminal registered with one or more accounts of sharing devices and having a right to use the sharing devices. Here, the sharing user is a user who has an account of one or more sharing devices, has a usage right to the one or more sharing devices, and shares the usage right of the sharing device with a designated other user. The shared user refers to a user who does not have an account of a certain sharing device, so that the sharing device has no use authority, and uses the sharing device by receiving sharing of other users with the use authority.
The sharing user adopts a sharing terminal, and a sharing request instruction, a shared terminal identifier and a sharing device identifier are input into the sharing terminal, so that the user right of the sharing device can be selectively shared to the appointed shared user. The sharing terminal receives a shared terminal identifier and a shared device identifier input by a sharing user, generates a device permission sharing message and sends the device permission sharing message to the server 13 or the shared terminal 12; the shared user receives the device permission sharing message through the shared terminal 12, and sends a request for using the shared device to the server 13 through the device permission sharing APP in the shared terminal 12; the server 13 determines a sharing terminal identifier corresponding to the shared terminal according to the mapping relationship of the sharing device, sends a request for using the sharing device to the sharing device by using the sharing terminal identifier, and finally uses the sharing terminal identifier to use the sharing device by the shared terminal 12.
Taking the sharing terminal 11 as a first user terminal, the shared terminal 12 as a second user terminal, and the sharing device 15 as a sharing bicycle as an example, the sharing user logs in a registration platform corresponding to the sharing device through the first user terminal, that is, the registration platform of the sharing bicycle performs registration and binding to obtain account information, and has a right to use the sharing bicycle through the registered account information. The first user terminal and the second user terminal are respectively provided with a device permission sharing APP, a shared user initiates a sharing device use request for using a sharing bicycle to the server 13 through the second user terminal, the server 13 confirms whether the shared user has permission for using the sharing bicycle according to a sharing device mapping relation, when the server 13 confirms that the shared user has sharing use permission for the corresponding sharing device according to the sharing device mapping relation, the server 13 converts the sharing device use request into a sharing device use request sent by the sharing user, and sends the sharing device use request to the sharing device terminal, so that the shared user can send the use request to the sharing bicycle by using account information of the sharing user, and the shared user can use the sharing bicycle. It should be noted that the account information of the shared user refers to information indicating the user identity, for example, the first user terminal identifier may be a mobile phone identifier of the first user, where the mobile phone identifier may be a phone number of the first user, and the phone number of the first user has a right to use the shared bicycle after being registered by the registration platform of the shared bicycle; the account information of the shared user refers to information indicating the user identity, for example, the second user terminal identifier may be a mobile phone identifier of the second user, where the mobile phone identifier may be a phone number of the second user, and the phone number of the second user does not have a permission to use the shared bicycle without being registered by a registration platform of the shared bicycle.
As shown in fig. 2, an embodiment of the present application provides a device control authority sharing method, which is applied to a sharing terminal, and the method includes the following steps:
step 101: and acquiring a sharing request instruction, a shared terminal identifier and a sharing equipment identifier.
Here, the shared terminal identifier may include any one of: the terminal comprises an International Mobile Equipment Identity (IMEI) of the terminal, a Subscriber Identity Module (SIM) card number contained in the terminal, and an account number of a login Equipment authority sharing APP on the terminal. The sharing device identification refers to information indicating the type and identity of the sharing device, such as the name of the sharing device, an identification or code indicating the type of the sharing device, and the like. The sharing device comprises a sharing automobile, a sharing KTV, a sharing bicycle, a sharing umbrella and the like, wherein the sharing device refers to the sharing device which is registered by a sharing user through a sharing terminal identifier and has the authority of using the corresponding sharing device. The sharing user adopts the sharing terminal provided with the device authority sharing APP, and after the sharing terminal identification is used for logging in from the device authority sharing APP login port, a plurality of sharing devices which are registered with the account number and have the use authority can be correspondingly controlled. The sharing request instruction refers to an instruction which is sent by a sharing user through a sharing terminal and is used for sharing the use authority of certain sharing equipment owned by the sharing user to other appointed users. Specifically, the sharing terminal may detect a preset operation performed by the sharing user on the device permission sharing APP, such as clicking or touching a preset button in the designated application interface, so as to obtain the sharing request instruction.
In a specific embodiment, the sharing request instruction, the shared terminal identifier, and the sharing device identifier may be obtained by the sharing terminal receiving a sharing request instruction input by a sharing user on a preset software application interface, the shared terminal identifier, and the sharing device identifier.
Here, before step 101, the method further includes: acquiring registration information, sending the registration information to a server, receiving verification information returned by the server, and sending a verification instruction to the server according to the verification information to complete registration. Specifically, the registration information includes terminal identification, user name and other identity information used for identifying different users to log in corresponding application software for operation, the verification information includes a short message verification code, and the verification instruction includes a short message verification code input by the user; taking the example that the registration information comprises a terminal identifier, the sharing terminal acquires the terminal identifier input by the sharing user and sends the terminal identifier to the server, the server returns the short message verification code to the sharing terminal, the sharing terminal acquires the short message verification code input by the sharing user on a preset software interface and sends the short message verification code to the server, the server receives the short message verification code sent by the sharing terminal and matches the short message verification code with the pre-stored verification information, and the registration is completed after the matching is passed. Different corresponding identities of different users to corresponding application software are given through registration, so that different users can be distinguished through the different corresponding identities for management.
The shared terminal identifier may include a single shared terminal identifier, or may include an identifier of a shared terminal group.
The sharing device identifier may include an identifier of a single sharing device, or an identifier of a sharing device group, and may be specifically determined according to a selection of the sharing terminal.
Step 102: and based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier.
Specifically, after receiving a sharing request instruction input by a sharing user, a sharing terminal displays a preset software application interface based on the sharing request instruction, and the sharing terminal acquires a shared terminal identifier and a sharing device identifier input by the sharing user on the preset software application interface to generate a device permission sharing message including the shared terminal identifier and the sharing device identifier. The device permission sharing message refers to a message sent by the sharing terminal and used for sharing the permission of the sharing device to other users. The presentation form of the device permission sharing message may be a preset form such as a picture, a text, and the like, for example, a two-dimensional code, a picture carrying a hyperlink address, a Uniform Resource Locator (URL), and the like. The device permission sharing message comprises the shared terminal identification, the sharing terminal identification and the sharing device identification.
Here, the sharing user may perform a preset operation through a preset software application interface of the device permission sharing APP to initiate sharing of the control permission of the sharing device, and the sharing terminal detects the preset operation of the sharing user on the preset software application interface of the device permission sharing APP to obtain the sharing request instruction. Specifically, the sharing terminal detects a preset operation instruction of the sharing user for the device permission sharing APP, acquires a sharing request instruction based on the detected preset operation instruction, receives a registered and available sharing device selected by the sharing user through inputting a selection instruction after the sharing terminal acquires the sharing request instruction, and when a plurality of sharing devices are available, the sharing user can select to share each sharing device with different shared terminals. The sharing user can directly select from the bound sharing devices when inputting the sharing device identification again by binding the sharing devices. For example, the sharing terminal may receive a sharing request instruction sent by a sharing user by touching or clicking a preset function button of the device permission sharing APP, the device permission sharing APP displays an identifier input interface based on the sharing request instruction, and the sharing terminal receives a plurality of sharing device identifiers input by the sharing user on the identifier input interface or selected from previously bound sharing devices, and inputs corresponding shared terminal identifiers for each sharing device, thereby completing a step in which the sharing user initiates sharing of control permission of the sharing devices.
It can be understood that the two-dimensional code or the picture carrying the hyperlink address may be generated at the sharing terminal, or may be generated at the server. When the two-dimension code or the picture carrying the hyperlink address is generated at the server, the server receives the shared terminal identification and the shared equipment identification which are input by the sharing user through the sharing terminal, generates the two-dimension code or the picture carrying the hyperlink address, and sends the two-dimension code or the picture carrying the hyperlink address to the shared terminal. The device permission sharing message may be selectively generated in the sharing terminal or the server according to different presentation forms or requirements of actual applications, which is not limited herein.
Step 103: and sending the device permission sharing message to a server or a shared terminal, wherein the device permission sharing message comprises the shared terminal identification and the sharing device identification.
Specifically, the sharing terminal sends the device permission sharing message to the server or the shared terminal, which means that the device permission sharing message is sent to the server, the shared device, or both the server and the shared device selectively according to different forms of the device permission sharing message.
Here, the sending the device permission sharing message to the server or the shared terminal may be: directly sending the equipment permission sharing message to a shared terminal; the following steps can be also included: and sending the device authority sharing message to a server. After receiving the device permission sharing message, the server may forward the device permission sharing message to the shared terminal, and then, the server may further perform associated storage on the sharing terminal identifier, the shared terminal identifier, and the sharing device identifier carried in the device permission sharing message, so as to form a sharing device mapping relationship. After the shared terminal receives the device permission sharing message sent by the server or the sharing terminal, the subsequent copy and use of the use permission of the sharing device corresponding to the device permission sharing message can be completed, for example: and the shared terminal sends a device authority copying request containing the sharing terminal identification, the shared terminal identification and the sharing device identification to the server based on the device authority sharing message. When the shared terminal sends a sharing equipment use request to the server, the sharing equipment use request is sent to the corresponding sharing equipment after the server authenticates according to the mapping relation of the sharing equipment, and the use permission message returned by the sharing equipment is received.
Here, taking the form of the device permission sharing message as a two-dimensional code as an example, the sending the device permission sharing message to the server or the shared terminal may be: and directly sending the equipment permission sharing message to the shared terminal. In a specific embodiment, the sharing terminal generates a two-dimensional code according to the shared terminal identifier and the shared device identifier based on the sharing request instruction, sends the two-dimensional code to the shared terminal through short-range Communication such as bluetooth and Near Field Communication (NFC) or internet Communication, and obtains a device permission sharing message by receiving the two-dimensional code sent by the sharing terminal; in another specific embodiment, the sharing terminal generates a two-dimensional code according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction, displays the two-dimensional code on a current interface, and obtains the device permission sharing message by the shared terminal in a way of scanning the two-dimensional code of the sharing terminal.
Optionally, taking the form of the device permission sharing message as a two-dimensional code as an example, the sending the device permission sharing message to the server or the shared terminal may also be: and sending the device authority sharing message to a server. And the sharing terminal sends the device permission sharing message to a server, and then the server sends the device permission sharing message to the shared terminal. In a specific embodiment, the sharing terminal sends a sharing request message including the shared terminal identifier and the sharing device identifier to the server based on the sharing request instruction, the server generates a two-dimensional code according to the shared terminal identifier and the sharing device identifier, and then the server sends the two-dimensional code to the shared terminal.
Here, taking the form of the device permission sharing message as an image carrying a hyperlink address as an example, the sending the device permission sharing message to the server or the shared terminal may be: and directly sending the equipment permission sharing message to the shared terminal. In a specific embodiment, the sharing terminal generates a picture carrying a hyperlink address according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction, sends the picture to the shared terminal through short-range communication such as bluetooth and NFC or communication modes such as internet communication, and the shared terminal obtains a device permission sharing message by receiving the picture carrying the hyperlink address sent by the sharing terminal. Picture with hyperlink address
The picture carrying the hyperlink address is selectable, and taking the form of the device permission sharing message as a URL as an example, the sending of the device permission sharing message to the server or the shared terminal may also be: and sending the device authority sharing message to a server. And the sharing terminal generates a URL according to the shared terminal identifier and the sharing equipment identifier based on the sharing request instruction, sends the URL to a server, and then sends the URL to the shared terminal by the server.
In the embodiment of the application, the sharing terminal acquires a sharing request instruction, a shared terminal identifier and a sharing device identifier; based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier; the device permission sharing message is sent to a server or a shared terminal, so that when a certain user has the use permission of the certain sharing device, the use permission of the sharing device can be shared to other appointed users according to needs, and the other appointed users can conveniently use the corresponding sharing device by receiving the sharing mode of others under the condition that the other appointed users do not have the use permission of the certain sharing device, so that the use is more convenient, and the requirements under different actual conditions can be met; for example, when a certain family member X has the control right of the sharing device a, the control right of the certain family member X to the sharing device a can be shared to all other family members Y, Z, when other family members Y, Z use the sharing device a, the account information of the family members X with the sharing device a is uniformly used, the generated cost can be uniformly paid by the family members X, and the sharing device a can be used without paying a deposit or acquiring additional rights; in the same way, when another family member, such as the family member Y, has the control right of the sharing device B, the family member can be shared with the family member, such as the family member X, so that for the whole family member X, Y, Z, when any family member has the control right of a sharing device, the family member can be shared with other family members for use, the situation that multiple family members in the same family pay deposit for the same sharing device for multiple times is avoided, the use is convenient, and the user experience is improved. It can be understood that the relationship between the sharing user and the shared user is not limited to the relationship between family members, and may also be other relatives, friends, and the like.
In an embodiment, before step 102, the method further includes: acquiring authority limit information;
102, generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction, including: and based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identification, the sharing device identification and the permission limitation information.
The permission limitation information refers to limitation of the shared user on the use permission of the sharing terminal on the sharing device. Specifically, the permission limitation information may be obtained by receiving, by the sharing terminal, a preset operation instruction input by the sharing user, for example, by clicking or touching an operation instruction such as a preset button in the device permission sharing APP, displaying an input interface of the permission limitation information based on the preset operation instruction, and receiving corresponding permission limitation information input by the user on the input interface of the permission limitation information. The input interface of the permission restriction information may be set to a mode of receiving the user to input the restriction condition, or may be set to a mode of receiving the user to select a specific value of the listed restriction condition. Taking the way that the input interface of the permission restriction information is set to receive the user to input the specific values of the listed restrictions as an example, the restrictions listed in the input interface of the permission restriction information may include: the sharing device identification, the sharing time range corresponding to the sharing device identification, the sharing use mode, the sharing mileage range and the sharing limit range. The sharing user can input corresponding information respectively aiming at the limiting conditions to form authority limiting information. The sharing user can perform unified authority setting for each sharing device, and can also perform respective authority setting for different shared terminals.
Different limiting conditions correspond to the authority range of the shared user for using the sharing device. Taking the permission limitation information including the sharing time range as an example, the sharing user inputs a time threshold of the sharing time range of the shared user to the corresponding sharing device identification through an input interface of the permission limitation information, the shared terminal is authorized to use the sharing device without exceeding the corresponding time threshold by setting the time threshold of the sharing time range, if the time threshold is 2 hours, the time that the shared terminal uses the sharing device through the permission of the sharing terminal is 2 hours, when the shared user sends a sharing device use request to the server through a device permission sharing APP of the shared terminal, the server converts the sharing device use request into a sharing device use request of the sharing user after judging, starts timing, and when the shared user uses the sharing device for 2 hours and the shared user still does not actively request to stop using the sharing device, the server sends an instruction requesting to stop using the sharing device to the server of the sharing device, the server of the sharing device stops the sharing device, and the shared terminal loses the use authority of the sharing device.
Here, when the duration of use of the shared device by the shared user reaches 2 hours and the shared user still does not actively request to stop using the shared device, the server may further send an instruction requesting to stop using the shared device to the shared terminal, the shared device is stopped by the device permission sharing APP of the shared terminal, and the shared terminal loses the permission to use the shared device. In this embodiment, before the shared terminal is stopped using the sharing device, the reason for the stop can be known in advance, and higher security is provided.
In the embodiment, by adding the authority limit information in the sharing terminal, when the sharing terminal authorizes part of temporary users to use the authority of the sharing device, the authority range of the temporary users to use the sharing device can be correspondingly set, so that the security of the account of the sharing terminal is improved, and more selectivity is added to the authorization mode of the sharing terminal.
In an embodiment, as shown in fig. 3, there is further provided an apparatus for sharing device rights, which is applied to a sharing terminal, and includes: the device comprises an acquisition module 21, a generation module 22 and a first sending module 23; wherein,
the obtaining module 21 is configured to obtain a sharing request instruction, a shared terminal identifier, and a shared device identifier;
the generating module 22 is configured to generate, based on the sharing request instruction, an apparatus permission sharing message according to the shared terminal identifier and the shared apparatus identifier;
the first sending module 23 is configured to send the device permission sharing message to a server or a shared terminal; and the device permission sharing message comprises the shared terminal identifier and the shared device identifier.
Here, the shared terminal identifier includes any one of: the IMEI of the terminal, the SIM card number contained in the terminal and the account number of the APP shared by the authority of the login equipment on the terminal. The sharing device identification refers to information indicating the type and identity of the sharing device, such as the name of the sharing device, an identification or code indicating the type of the sharing device, and the like. The sharing device comprises a sharing automobile, a sharing KTV, a sharing bicycle, a sharing umbrella and the like, wherein the sharing device refers to the sharing device which is registered by a sharing user through a sharing terminal identifier and has the authority of using the corresponding sharing device. The sharing user adopts the sharing terminal provided with the device authority sharing APP, and after the sharing terminal identification is used for logging in from the device authority sharing APP login port, a plurality of sharing devices which are registered with the account number and have the use authority can be correspondingly controlled. The sharing request instruction refers to an instruction which is sent by a sharing user through a sharing terminal and is used for sharing the use authority of certain sharing equipment owned by the sharing user to other appointed users. Specifically, the sharing terminal may detect a preset operation performed by the sharing user on the device permission sharing APP, such as clicking or touching a preset button in the designated application interface, so as to obtain the sharing request instruction.
In a specific embodiment, the obtaining module 21 obtains the sharing request instruction, the identifier of the shared terminal, and the identifier of the sharing device, where the sharing terminal receives the sharing request instruction, the identifier of the shared terminal, and the identifier of the sharing device, which are input by the sharing user on a preset software application interface.
Specifically, after receiving a sharing request instruction input by the sharing user, the generating module 22 generates, based on the sharing request instruction, a device permission sharing message including the shared terminal identifier and a sharing device identifier that the sharing user currently shares with the shared user. The device permission sharing message refers to a message sent by the sharing terminal and used for sharing the permission of the sharing device to other users. The presentation form of the device permission sharing message can be a preset form such as a picture, a character and the like, for example, a two-dimensional code, a picture carrying a hyperlink address, a URL and the like can be provided. The device permission sharing message comprises the shared terminal identification, the sharing terminal identification and the sharing device identification.
Here, the sharing user may perform a preset operation through a preset software application interface of the device permission sharing APP to initiate sharing of the control permission of the sharing device, and the sharing terminal detects the preset operation of the sharing user on the preset software application interface of the device permission sharing APP to obtain the sharing request instruction. Specifically, a sharing request instruction is sent to a preset operation instruction of the device permission sharing APP, the registered and available sharing devices are selected to be bound based on an interface displayed by the sharing request instruction, and when a plurality of sharing devices exist, the sharing user can select to share each sharing device to different shared terminals. If the sharing terminal can receive a sharing request instruction sent by a sharing user through touching or clicking a preset function button of the device permission sharing APP, the device permission sharing APP displays an identification input interface based on the sharing request instruction, the sharing terminal receives a plurality of sharing device identifications input by the sharing user on the identification input interface, and corresponding shared terminal identifications are input for each sharing device respectively, and therefore the step that the sharing user initiates sharing of control permission of the sharing devices is completed.
It can be understood that the two-dimensional code or the picture carrying the hyperlink address may be generated at the sharing terminal, or may be generated at the server. When the two-dimension code or the picture carrying the hyperlink address is generated at the server, the server receives the shared terminal identification and the shared equipment identification which are input by the sharing user through the sharing terminal, generates the two-dimension code or the picture carrying the hyperlink address, and sends the two-dimension code or the picture carrying the hyperlink address to the shared terminal. The device permission sharing message may be selectively generated in the sharing terminal or the server according to different presentation forms or requirements of actual applications, which is not limited herein.
The first sending module 23 sends the device permission sharing message to the server or the shared terminal, which means that the device permission sharing message is sent to the server, the shared device, or both the server and the shared device selectively according to different forms of the device permission sharing message.
In another embodiment, as shown in fig. 4, there is further provided a device control authority sharing method applied to a shared terminal, including the following steps:
step 201: sending a sharing equipment use request to a server;
here, sending the shared device use request to the server means that the shared user sends the shared device use request to the server through the shared terminal.
Step 202: and receiving a use permission message returned by the sharing equipment after the server authenticates according to the mapping relation of the sharing equipment and sends the use request of the sharing equipment to the corresponding sharing equipment.
Here, the authentication means that the server confirms whether the shared device corresponding to the shared terminal has the sharing use authority according to the mapping relationship of the shared device. In one embodiment, the authentication performed by the server according to the sharing device mapping relationship includes that the server receives a device permission copy request sent by a shared terminal, forms a sharing device mapping relationship according to a sharing terminal identifier, a shared terminal identifier and a sharing device identifier in the device permission copy request, and confirms whether a sharing device corresponding to the shared terminal has a sharing use permission according to the sharing device mapping relationship. In another embodiment, the authenticating, by the server, according to the mapping relationship of the sharing device includes that the server receives a device permission sharing message sent by the sharing terminal, forms a mapping relationship of the sharing device according to a sharing terminal identifier, a shared terminal identifier and a sharing device identifier in the device permission sharing message, and confirms whether the sharing device corresponding to the shared terminal has the sharing use permission according to the mapping relationship of the sharing device. The shared device mapping relationship refers to a mapping relationship obtained by the server performing associated storage on the sharing terminal identifier, the shared terminal identifier and the shared device identifier based on a sharing request instruction sent by the sharing terminal or a device permission copying request sent by the shared terminal.
Here, the shared terminal sends a sharing device use request to the server, and the server authenticates whether the user sending the sharing device use request has the authority to use the corresponding sharing device, and when the user sending the sharing device use request is the shared user, the sharing terminal identifier corresponding to the shared user is determined according to the mapping relationship of the sharing device, and then the sharing device use request is replaced by the sharing device use request sent by the sharing terminal identifier and sent to the sharing device terminal. At this time, the sharing device end receives the sharing device use request and directly recognizes the sharing device use request as the sharing device use request sent by the sharing user, so that the sharing user can be allowed to start use according to the use permission of the sharing user, and the use permission message is returned to the server.
Specifically, a shared terminal receives a shared device use request input by a shared user, sends the shared device use request to a server, the server confirms that the shared terminal has the authority of sharing and using a corresponding shared device according to a mapping relation of the shared device based on the shared device use request, converts the shared device use request into a shared device use request of the shared user, and sends the shared device use request to the shared device, the shared device sends the request according to whether account information carried in the shared device use request is a request sent by an account which is registered and authorized to use the corresponding shared device, and if so, the shared device use request is sent by a user having the use authority to the shared device, and the shared device is allowed to be used.
Here, after the shared user finishes using the shared device, the shared user sends a request for stopping using the shared device to the server through the device authority sharing APP of the shared terminal.
In the embodiment of the application, the shared terminal sends the shared device use request to the server, receives the use permission message returned by the shared device after the server authenticates according to the mapping relationship of the shared device, and sends the shared device use request to the corresponding shared device, so that when a user does not have the use right of the shared device, the user uses the corresponding shared device by receiving the sharing mode of others, the use is more convenient, and the requirements under different practical conditions can be met; for example, when a certain family member X has the control right of the sharing device a, the control right of the certain family member X to the sharing device a can be shared to all other family members Y, Z, when other family members Y, Z use the sharing device a, the account information of the family members X with the sharing device a is uniformly used, the generated cost can be uniformly paid by the family members X, and the sharing device a can be used without paying a deposit or acquiring additional rights; in the same way, when another family member, such as the family member Y, has the control right of the sharing device B, the family member can be shared with the family member, such as the family member X, so that for the whole family member X, Y, Z, when any family member has the control right of a sharing device, the family member can be shared with other family members for use, the situation that multiple family members in the same family pay deposit for the same sharing device for multiple times is avoided, the use is convenient, and the user experience is improved. It can be understood that the relationship between the sharing user and the shared user is not limited to the relationship between family members, and may also be other relatives, friends, and the like.
In another specific embodiment, before step 201, the method further includes:
receiving an equipment authority sharing message sent by a server or a sharing terminal;
and sending an equipment authority copying request containing the sharing terminal identification, the shared terminal identification and the sharing equipment identification to a server based on the equipment authority sharing message.
Specifically, the shared terminal receives the device permission sharing message sent by the server or the sharing terminal, where the device permission sharing message is sent by the server or the sharing terminal, and the shared terminal selectively receives the device permission sharing message sent by the server or the sharing terminal according to different forms of the device permission sharing message. Here, the device permission sharing message may be a two-dimensional code, a picture carrying a hyperlink address, a Uniform Resource Locator (URL), or the like.
Here, taking the form of the device permission sharing message as a two-dimensional code as an example, the device permission sharing message sent by the receiving server or the sharing terminal may be: and the shared terminal receives the device authority sharing message sent by the sharing terminal. In a specific embodiment, a sharing terminal generates a two-dimensional code, a shared terminal receives the two-dimensional code sent by the sharing terminal through short-range communication such as bluetooth and NFC or communication modes such as internet communication, and the shared terminal obtains an equipment permission sharing message through receiving the two-dimensional code sent by the sharing terminal; in another specific embodiment, the sharing terminal generates a two-dimensional code and displays the two-dimensional code on the current interface, and the shared terminal obtains the device permission sharing message in a mode of scanning the two-dimensional code of the sharing terminal.
Optionally, taking the form of the device permission sharing message as a two-dimensional code as an example, the device permission sharing message sent by the receiving server or the sharing terminal may be: and the shared terminal receives the device authority sharing message sent by the server. And the sharing terminal sends the two-dimension code of the equipment permission sharing message to a server, and the shared terminal receives the two-dimension code sent by the server. In a specific embodiment, the server generates a two-dimensional code according to the shared terminal identifier and the sharing device identifier, and the shared terminal receives the two-dimensional code sent by the server.
Here, taking the form of the device permission sharing message as an example of a picture carrying a hyperlink address, the device permission sharing message sent by the receiving server or the sharing terminal may be: and the shared terminal receives the device authority sharing message sent by the sharing terminal. In a specific embodiment, the sharing terminal generates a picture carrying the hyperlink address, the shared terminal receives the picture carrying the hyperlink address sent by the sharing terminal through short-range communication such as bluetooth and NFC or communication modes such as internet communication, and the shared terminal obtains the device permission sharing message by receiving the picture carrying the hyperlink address sent by the sharing terminal.
Optionally, for example, the device permission sharing message is in the form of a picture carrying a hyperlink address, and the device permission sharing message sent by the receiving server or the sharing terminal may be: and the shared terminal receives the device authority sharing message sent by the server. And the sharing terminal sends the picture with the hyperlink address of the equipment permission sharing message to a server, and the shared terminal receives the picture link with the hyperlink address sent by the server.
Here, taking the form of the device permission sharing message as a URL as an example, the device permission sharing message sent by the receiving server or the sharing terminal may be: and the shared terminal receives the device authority sharing message sent by the sharing terminal. In a specific embodiment, the sharing terminal generates a URL, the shared terminal receives the URL sent by the sharing terminal in a communication protocol manner, and the shared terminal obtains the device permission sharing message in a manner of receiving the URL sent by the sharing terminal.
Optionally, taking a form of the device permission sharing message as an URL for example, the device permission sharing message sent by the receiving server or the sharing terminal may be: and the shared terminal receives the device authority sharing message sent by the server. And the sharing terminal sends the URL of the equipment permission sharing message to a server, and the shared terminal receives the URL sent by the server.
The device permission copy request refers to a request that the shared user receives a sharing invitation of a device permission sharing message sent by the sharing terminal, and copies the permission of the sharing terminal for using the sharing device based on the device permission sharing message to show that the sharing invitation of the sharing user is accepted.
Here, the shared terminal identifier includes any one of: the method comprises the steps that an IMEI of a terminal, an SIM card number contained in the terminal and an account number of a login device authority sharing APP on the terminal are obtained; the sharing terminal identification comprises any one of the following: the method comprises the steps that an IMEI of a terminal, an SIM card number contained in the terminal and an account number of a login device authority sharing APP on the terminal are obtained; the sharing device identification refers to information indicating the type and identity of the sharing device, such as the name of the sharing device, an identification or code indicating the type of the sharing device, and the like. The sharing device comprises a sharing automobile, a sharing KTV, a sharing bicycle, a sharing umbrella and the like, wherein the sharing device refers to the sharing device which is registered by a sharing user through a sharing terminal identifier and has the authority of using the corresponding sharing device.
The shared terminal receives a server or a sharing terminal device permission sharing message, the shared terminal detects that a shared user skips to a device permission sharing APP of the shared terminal by performing preset operation on the device permission sharing message, and the permission sharing message comprises a shared terminal identifier and a sharing device identifier; the shared terminal receives an equipment permission copying request input by a shared user on a preset interface of an equipment permission sharing APP, and the equipment permission sharing APP sends the equipment permission copying request to the server through the network. The server receives an equipment authority copying request sent by the shared terminal, and performs associated storage on the sharing terminal identification, the shared terminal identification and the sharing equipment identification to form a mapping relation of the sharing equipment.
Here, taking the form of the device permission sharing message as an example of a two-dimensional code, in a specific embodiment, the shared terminal receives the two-dimensional code sent by the server or the sharing terminal, scans or recognizes the two-dimensional code, and the shared terminal obtains information that the two-dimensional code includes a sharing terminal identifier, a shared terminal identifier, and a sharing device identifier, and sends a device permission copying request to the server based on the scanned or recognized operation instruction.
Here, taking the form of the device permission sharing message as an example of a picture carrying a hyperlink address, in a specific embodiment, the shared terminal receives the picture carrying the hyperlink address sent by the server or the sharing terminal, and by clicking the picture carrying the hyperlink address by the shared user, the shared terminal obtains information of a sharing terminal identifier, a shared terminal identifier and a sharing device identifier included in the picture carrying the hyperlink address, and sends a device permission copying request to the server based on an operation instruction of the click.
Here, taking the form of the device permission sharing message as an example, in a specific embodiment, the shared terminal receives the URL sent by the server, and by clicking the URL by the shared user, the shared terminal directly jumps the user interface to a specified application interface of the device permission sharing APP based on the click operation, and the shared terminal receives a sending instruction of the device permission copying request obtained by a preset operation of the specified application interface by the user, so as to send the device permission copying request to the server based on the preset operation.
Further, after sending a device permission copy request including the sharing terminal identifier, the shared terminal identifier, and the shared device identifier to a server based on the device permission sharing message, the method further includes: and setting the device permission sharing message as an invalidation message.
Taking an equipment permission sharing message as a two-dimensional code as an example, in a specific embodiment, a shared terminal receives a two-dimensional code sent by a server or a sharing terminal, the shared terminal sets the two-dimensional code as a failure message after acquiring information that the two-dimensional code contains a sharing terminal identifier, a shared terminal identifier and a sharing equipment identifier by scanning the two-dimensional code, and the shared terminal cannot acquire corresponding information or send an equipment permission copying request by scanning the two-dimensional code again.
Here, taking the form of the device permission sharing message as an example of a picture carrying a hyperlink address, in a specific embodiment, the shared terminal receives the picture carrying the hyperlink address sent by the server or the sharing terminal, and after the shared terminal detects that the shared user clicks the picture carrying the hyperlink address to obtain information that the two-dimensional code includes a sharing terminal identifier, a shared terminal identifier and a sharing device identifier, the picture carrying the hyperlink address is set as a failure message, and the shared terminal cannot click the picture carrying the hyperlink address again to obtain corresponding information or send a device permission copying request.
Here, taking the form of the device permission sharing message as an example, in a specific embodiment, the shared terminal receives a URL sent by the server, and after the shared terminal detects that the shared user clicks the URL to obtain information that the two-dimensional code includes a sharing terminal identifier, a shared terminal identifier, and a sharing device identifier, the URL is set as a failure message, and the shared terminal cannot click the URL again to obtain corresponding information or send a device permission copying request.
In another specific embodiment, the receiving the device permission sharing message sent by the server or the sharing terminal includes:
receiving an equipment authority sharing message sent by a server in a communication protocol mode; or
Receiving an equipment authority sharing message from the sharing terminal in a two-dimensional code communication mode; or
And receiving the equipment permission sharing message from the sharing terminal in a Bluetooth communication mode.
Here, the shared terminal may select an appropriate manner to receive the device permission sharing message according to the requirement of the actual application, which is not limited herein.
Therefore, the shared terminal can acquire the equipment permission sharing message from the server or the sharing terminal, the path for acquiring the equipment permission sharing message by the shared terminal is increased, and the user experience is improved.
In another specific embodiment, an apparatus for sharing device control authority is further provided, and is applied to a shared terminal, as shown in fig. 5, the apparatus includes: a first receiving module 31 and a second transmitting module 32; wherein,
the first receiving module 31 is configured to receive a usage permission message returned by the sharing device after the server authenticates the mapping relationship between the sharing devices, and sends the usage request of the sharing device to the sharing device;
the second sending module 32 is configured to send a shared device use request to the server.
Further, in another embodiment, the first receiving module 31 is further configured to receive a device permission sharing message sent by a server and/or a sharing terminal;
the second sending module 32 is further configured to send, based on the device permission sharing message, a device permission copying request including the sharing terminal identifier, the shared terminal identifier, and the sharing device identifier to the server.
Further, the above apparatus further comprises: a failure module;
the disabling module sets the device permission sharing message as a disabling message after the second sending module 32 sends a device permission copying request including the sharing terminal identifier, the shared terminal identifier and the shared device identifier to the server, based on the device permission sharing message received by the first receiving module 31.
Here, after the second sending module 32 sends the mapping relationship of the shared device to the server for authentication, the server determines that the shared terminal has the usage right of the corresponding shared device according to the request authentication of the shared terminal, and then the first receiving module 31 receives the message of allowing the shared device to return, and starts to use the shared device.
Here, after the shared user finishes using the shared device, the shared user sends a request for stopping using the shared device to the server through the shared terminal.
In another specific embodiment, a method for sharing device control authority is further provided, where the method is applied to a server, and as shown in fig. 6, the method includes the following steps:
step 301: and receiving a sharing equipment use request sent by the shared terminal.
Specifically, the server receiving the shared device usage request sent by the shared terminal means that the server receives the shared device usage request input by the shared user through a preset software application interface of the shared terminal. And the sharing equipment use request comprises the shared terminal identification and the sharing equipment identification. The terminal identification may here be a telephone number.
Taking the shared terminal identifier in the shared device use request as the shared terminal phone number as an example, the server receives the shared device use request including the phone number of the shared terminal and the shared device identifier sent by the shared terminal, acquires the phone number of the shared terminal sending the shared device use request, and forms a mapping relationship among the phone number of the shared terminal, the phone number of the shared terminal and the shared device identifier, that is, a shared device mapping relationship.
Step 302: and based on the sharing equipment use request, determining a sharing terminal identifier corresponding to the shared terminal when the shared terminal is confirmed to have the sharing use right according to the mapping relation of the sharing equipment.
The sharing equipment mapping relation is a corresponding relation among the sharing terminal identification, the shared terminal identification and the sharing equipment identification formed by the server.
Here, the shared terminal identifier includes any one of: the method comprises the steps that an IMEI of a terminal, an SIM card number contained in the terminal and an account number of a login device authority sharing APP on the terminal are obtained; the sharing terminal identification comprises any one of the following: the method comprises the steps that an IMEI of a terminal, an SIM card number contained in the terminal and an account number of a login device authority sharing APP on the terminal are obtained; the sharing device identification refers to information indicating the type and identity of the sharing device, such as the name of the sharing device, an identification or code indicating the type of the sharing device, and the like. The sharing device comprises a sharing automobile, a sharing KTV, a sharing bicycle, a sharing umbrella and the like, wherein the sharing device refers to the sharing device which is registered by a sharing user through a sharing terminal identifier and has the authority of using the corresponding sharing device.
Taking a shared terminal identifier in a sharing device use request as a phone number of a shared terminal as an example, a server receives a sharing device use request which is sent by a sharing terminal and contains the phone number of the shared terminal and a sharing device identifier, acquires the phone number of the shared terminal of the sharing device use request, and determines the phone number of the sharing terminal corresponding to the phone number of the shared terminal when confirming that the phone number of the shared terminal has a sharing use right for the corresponding sharing device according to a sharing device mapping relation.
In an embodiment, the shared terminal identifier may include a single shared terminal identifier, or may include an identifier of a shared terminal group.
The sharing device identifier may include an identifier of a single sharing device, or an identifier of a sharing device group, and may be specifically determined according to a selection of the sharing terminal.
Step 303: and the sharing equipment use request is used as a sharing equipment use request of the sharing terminal identification and is sent to the sharing equipment.
Here, the sharing device usage request serving as the sharing device usage request of the sharing terminal identifier means that the server finds out a sharing terminal corresponding to the shared terminal, determines account information that the sharing terminal has usage rights for the sharing device through the sharing terminal identifier, converts the sharing device usage request of the shared terminal into a sharing device usage request of the sharing terminal, sends the sharing device usage request to the corresponding sharing device through the account information of the sharing terminal, and sends the sharing device usage request carrying the account information of the sharing terminal to the server of the sharing device terminal.
Here, taking the shared terminal identification as the phone number of the shared terminal and the sharing terminal identification as the phone number of the sharing terminal as examples, the server finds out the phone number of the sharing terminal corresponding to the phone number of the shared terminal, determines the account information of the sharing terminal having the use authority for the sharing device through the phone number of the sharing terminal, sends the sharing device use request to the corresponding sharing device through the account information of the sharing terminal, and sends the sharing device use request carrying the account information of the sharing terminal to the server of the sharing device, after receiving the sharing device use request, the server of the sharing device directly recognizes the sharing device use request as the sharing device use request sent by the sharing user, thereby carrying out verification by using the account information of the sharing user, when the verification is passed, the sharing device is allowed to be opened and the use permission information is returned, therefore, the shared terminal can use the sharing equipment in the identity of the sharing terminal.
The server can be an internet of things platform, the internet of things platform can form a sharing device mapping relation according to the sharing terminal identification, the shared terminal identification and the sharing device identification, when a shared user sends a sharing device use request through the shared terminal and uploads the sharing device use request to the internet of things platform, the internet of things platform determines the sharing terminal and the sharing device corresponding to the shared terminal according to the sharing device mapping relation, after matching is successful, the sharing device use request is replaced by the sharing device use request sent by account information of the sharing terminal, when verification is passed, the sharing device is allowed to be started and use information is allowed to return, and therefore the shared terminal can use the sharing device with the identity of the sharing terminal.
In the embodiment, the sharing authority of the shared terminal is verified through the server, and the sharing device using request of the shared terminal is sent to the sharing device as the sharing device using request of the sharing terminal when the sharing device using request passes the verification, so that the user terminal with the sharing device using authority can share the own using authority to other user terminals, the sharing terminal and the shared terminal use the sharing device, the sharing terminal and the shared terminal log in by using an account of the sharing terminal in a unified manner, the shared terminal can use the sharing device without paying a deposit or acquiring extra authority, for the sharing terminal and the shared terminal, the deposit is prevented from being paid for the same sharing device for many times, the cost generated by using can be paid by the sharing terminal in a unified manner, the use is convenient, and the user experience is improved.
In another specific embodiment, before step 301, the method further includes:
receiving an equipment authority sharing message sent by a sharing terminal, and forming a sharing equipment mapping relation according to a sharing terminal identifier, a sharing equipment identifier in the equipment authority sharing message and a shared terminal identifier; or,
receiving an equipment authority copying request sent by a shared terminal, and forming a shared equipment mapping relation according to a sharing terminal identifier, the shared terminal identifier and a sharing equipment identifier in the equipment authority copying request.
Specifically, the forming of the mapping relationship of the shared device may be by receiving a device permission sharing message sent by a sharing terminal, or by receiving a device permission copying request sent by a shared terminal, and if the sharing terminal sends the device permission sharing message to a server, the forming of the mapping relationship of the shared device may be by receiving the device permission sharing message sent by the sharing terminal; if the sharing terminal sends the device permission sharing message to the shared terminal, the shared terminal receives the device permission sharing message sent by the sharing terminal, and sends a device permission copying request to the server based on the device permission sharing message, and the forming of the mapping relationship of the sharing device may also be receiving the device permission copying request sent by the shared terminal. The sharing device mapping relationship may be selectively formed according to different forms of device permission sharing messages or different requirements.
Here, taking the form of the device permission sharing message as a two-dimensional code as an example, the sharing terminal sends the device permission sharing message to a server. In a specific embodiment, the server forms a sharing device mapping relationship according to the sharing terminal identifier, the sharing device identifier in the two-dimensional code, and the shared terminal identifier.
Optionally, for example, the device permission sharing message is in the form of a two-dimensional code, and the sharing terminal sends the device permission sharing message to the shared terminal. In a specific embodiment, the shared terminal scans or recognizes the two-dimensional code, obtains information that the two-dimensional code includes a sharing terminal identifier, a shared terminal identifier and a sharing device identifier, and sends a device permission copying request to the server based on the scanned or recognized operation instruction. And the server forms a sharing equipment mapping relation according to the sharing terminal identification, the shared terminal identification and the sharing equipment identification in the equipment permission copying request.
Here, taking the form of the device permission sharing message as an example of a picture carrying a hyperlink address, the sharing terminal sends the device permission sharing message to a server. In a specific embodiment, the server forms a sharing device mapping relationship according to the sharing terminal identifier, the sharing device identifier in the picture carrying the hyperlink address, and the shared terminal identifier.
Optionally, for example, the sharing terminal sends the device permission sharing message to the shared terminal in the form of a picture carrying a hyperlink address. In a specific embodiment, the shared terminal receives a picture with a hyperlink address sent by a server or a sharing terminal, and by clicking the picture with the hyperlink address by a shared user, the shared terminal obtains information of a sharing terminal identifier, a shared terminal identifier and a sharing device identifier included in the picture with the hyperlink address, and sends a device permission copy request to the server based on a clicked operation instruction. And the server forms a sharing equipment mapping relation according to the sharing terminal identification, the shared terminal identification and the sharing equipment identification in the equipment permission copying request.
Here, taking the form of the device permission sharing message as an URL as an example, the sharing terminal sends the device permission sharing message to a server. In a specific embodiment, the server forms a sharing device mapping relationship according to the sharing terminal identifier, the sharing device identifier in the URL, and the shared terminal identifier.
Optionally, for example, the device permission sharing message is in the form of a URL, and the sharing terminal sends the device permission sharing message to the shared terminal. In a specific embodiment, the shared terminal receives a URL sent by the server, the shared user clicks the URL, the shared terminal directly jumps the user interface to a specified application interface of the device permission sharing APP based on the clicking operation, the shared terminal receives a preset operation of the specified application interface by the user to obtain a sending instruction of the device permission copying request, and then the device permission copying request is sent to the server based on the preset operation. And the server forms a sharing equipment mapping relation according to the sharing terminal identification, the shared terminal identification and the sharing equipment identification in the equipment permission copying request.
In another specific embodiment, after step 303, the method further includes: after the step of using the shared device usage request as the shared device usage request of the shared terminal identifier and sending the shared device usage request to the shared device, the method further includes:
and receiving a use ending request sent by a shared terminal, and sending the use ending request to the sharing equipment as the use ending request of the sharing terminal identifier.
Specifically, after the shared terminal finishes using the sharing device, a use stop instruction is sent to the server, and the server sends a use end request to the sharing device as the use end request of the sharing terminal identifier. Here, in the embodiment of the present application, the server converts the shared device usage request sent by the shared terminal using the shared device into the shared device usage request sent by the shared terminal, that is, the shared device is used through the account information of the shared terminal, so after receiving the end instruction, the server correspondingly converts the usage end request sent by the shared user into the usage end request sent by the shared terminal, so as to stop the usage of the account information of the current shared terminal on the shared device. For example, the shared terminal sends a request for ending the use of the shared device, the server converts the request into the request for ending the use sent by the shared terminal and stops using the shared device, the server of the shared device charges the charge generated during the sharing period, the corresponding charge is calculated as the charge generated corresponding to the account information of the shared terminal, and the charge is completed by the account information of the shared terminal.
Here, the sharing terminal shares the usage right of the sharing device with the shared terminal, so that the shared terminal uses the sharing device by using the identity of the sharing terminal on the premise that the shared terminal does not originally have the usage right of the sharing device, and the shared terminal also charges the fee generated by the shared terminal using the sharing device.
Further, in another specific embodiment, before step 301, the method further includes:
receiving an equipment authority sharing message sent by a sharing terminal, and forming a sharing equipment mapping relation according to a sharing terminal identifier, a sharing equipment identifier in the equipment authority sharing message, a shared terminal identifier and authority limit information; or,
receiving an equipment authority copying request sent by a shared terminal, and forming a shared equipment mapping relation according to a sharing terminal identifier, a shared equipment identifier and authority limit information in the equipment authority copying request.
Specifically, the forming of the mapping relationship of the shared device may be a device permission sharing message sent by a sharing terminal, or may be receiving a device permission copying request sent by a shared terminal, and if the sharing terminal sends the device permission sharing message to a server, the forming of the mapping relationship of the shared device may be by receiving the device permission sharing message sent by the sharing terminal; if the sharing terminal sends the device permission sharing message to the shared terminal, the shared terminal receives the device permission sharing message sent by the sharing terminal, and sends a device permission copying request to the server based on the device permission sharing message, and the forming of the mapping relationship of the sharing device may also be receiving the device permission copying request sent by the shared terminal. The sharing device mapping relationship may be selectively formed according to different forms of device permission sharing messages or different requirements.
Here, taking the form of the device permission sharing message as a two-dimensional code as an example, the sharing terminal sends the device permission sharing message to a server. In a specific embodiment, the server forms a mapping relationship of the sharing device according to the sharing terminal identifier, the sharing device identifier in the two-dimensional code, the shared terminal identifier and the permission limitation information.
Optionally, for example, the device permission sharing message is in the form of a two-dimensional code, and the sharing terminal sends the device permission sharing message to the shared terminal. In a specific embodiment, the shared terminal scans or recognizes the two-dimensional code, obtains information that the two-dimensional code includes a sharing terminal identifier, a shared terminal identifier, a sharing device identifier and permission limitation information, and sends a device permission copying request to the server based on the scanned or recognized operation instruction. And the server forms a mapping relation of the sharing equipment according to the sharing terminal identification, the shared terminal identification, the sharing equipment identification and the permission limiting information in the equipment permission copying request.
Here, taking the form of the device permission sharing message as an example of a picture carrying a hyperlink address, the sharing terminal sends the device permission sharing message to a server. In a specific embodiment, the server forms a mapping relationship of the sharing device according to the sharing terminal identifier, the sharing device identifier in the picture carrying the hyperlink address, the shared terminal identifier and the permission limitation information.
Optionally, for example, the sharing terminal sends the device permission sharing message to the shared terminal in the form of a picture carrying a hyperlink address. In a specific embodiment, the shared terminal receives a picture carrying a hyperlink address sent by a server or a sharing terminal, and by clicking the picture carrying the hyperlink address by a shared user, the shared terminal obtains information of a sharing terminal identifier, a shared terminal identifier, a sharing device identifier and permission limitation information contained in the picture carrying the hyperlink address, and sends a device permission copy request to the server based on an operation instruction clicked. And the server forms a mapping relation of the sharing equipment according to the sharing terminal identification, the shared terminal identification, the sharing equipment identification and the permission limiting information in the equipment permission copying request.
Here, taking the form of the device permission sharing message as an URL as an example, the sharing terminal sends the device permission sharing message to a server. In a specific embodiment, the server forms a mapping relationship of the sharing device according to the sharing terminal identifier, the sharing device identifier in the URL, the shared terminal identifier, and the permission restriction information.
Optionally, for example, the device permission sharing message is in the form of a URL, and the sharing terminal sends the device permission sharing message to the shared terminal. In a specific embodiment, the shared terminal receives a URL sent by the server, the shared user clicks the URL, the shared terminal directly jumps the user interface to a specified application interface of the device permission sharing APP based on the clicking operation, the shared terminal receives a preset operation of the specified application interface by the user to obtain a sending instruction of the device permission copying request, and then the device permission copying request is sent to the server based on the preset operation. And the server forms a mapping relation of the sharing equipment according to the sharing terminal identification, the shared terminal identification, the sharing equipment identification and the permission limiting information in the equipment permission copying request.
Further, after step 303, the method further includes: after the step of using the shared device usage request as the shared device usage request of the shared terminal identifier and sending the shared device usage request to the shared device, the method further includes:
when the time length of the shared terminal using the sharing equipment exceeds a preset value in the permission limiting information, sending a use ending request of the sharing terminal identification to the sharing equipment;
and sending a use limit notification message to the shared terminal.
Here, the different restrictions correspond to the scope of rights of the shared user to use the sharing device. Taking the permission limitation information including the sharing time range as an example, the sharing user inputs a time threshold of the sharing time range of the shared user to the corresponding sharing device identification through an input interface of the permission limitation information, the shared terminal is authorized to use the sharing device without exceeding the corresponding time threshold by setting the time threshold of the sharing time range, if the time threshold is 2 hours, the time that the shared terminal uses the sharing device through the permission of the sharing terminal is 2 hours, when the shared user sends a sharing device use request to the server through a device permission sharing APP of the shared terminal, the server converts the sharing device use request into a sharing device use request of the sharing user after judging, starts timing, and when the shared user uses the sharing device for 2 hours and the shared user still does not actively request to stop using the sharing device, the server sends an instruction requesting to stop using the sharing device to the server of the sharing device, the server of the sharing device stops the sharing device, and the shared terminal loses the use authority of the sharing device. Here, when the duration of the shared device used by the shared user reaches 2 hours and the shared user still does not actively request to stop using the shared device, the server may further send an instruction requesting to stop using the shared device to the shared terminal, the shared device is stopped by the device permission sharing APP of the shared terminal, and the shared terminal loses the control permission of the shared device.
In another embodiment, there is provided a device control authority sharing apparatus, applied to a server, as shown in fig. 7, the apparatus including: a second receiving module 41, an analyzing module 42, and a third sending module 43; wherein,
the second receiving module 41 is configured to receive a shared device use request sent by a shared terminal;
the analysis module 42 is configured to determine, based on the sharing device use request, a sharing terminal identifier corresponding to the shared terminal when the shared terminal is determined to have the sharing use right for the sharing device according to a sharing device mapping relationship;
a third sending module 43, configured to use the shared device usage request as a shared device usage request of the identifier of the shared terminal, and send the shared device usage request to the shared device.
Specifically, the receiving, by the second receiving module 41, the shared device usage request sent by the shared terminal means that the second receiving module 41 receives the shared device usage request input by the shared user through a preset software application interface of the shared terminal. The shared device use request refers to a request for requesting use of the shared device sent by the shared terminal.
Here, the mapping relationship of the sharing device refers to a corresponding relationship formed by the server according to the sharing terminal identifier, the shared terminal identifier, and the sharing device identifier.
Here, the shared terminal identifier includes any one of: the method comprises the steps that an IMEI of a terminal, an SIM card number contained in the terminal and an account number of a login device authority sharing APP on the terminal are obtained; the sharing terminal identification comprises any one of the following: the method comprises the steps that an IMEI of a terminal, an SIM card number contained in the terminal and an account number of a login device authority sharing APP on the terminal are obtained; the sharing device identification refers to information indicating the type and identity of the sharing device, such as the name of the sharing device, an identification or code indicating the type of the sharing device, and the like. The sharing device comprises a sharing automobile, a sharing KTV, a sharing bicycle, a sharing umbrella and the like, wherein the sharing device refers to the sharing device which is registered by a sharing user through a sharing terminal identifier and has the authority of using the corresponding sharing device.
In an embodiment, the shared terminal identifier may include a single shared terminal identifier, or may include an identifier of a shared terminal group, which may be specifically determined according to a selection of the sharing terminal.
The sharing device identifier may include an identifier of a single sharing device, or an identifier of a sharing device group, and may be specifically determined according to a selection of the sharing terminal.
Taking a shared terminal identifier in the shared device use request as a phone number of a shared terminal and a shared terminal identifier as a phone number of a shared terminal as examples, the second receiving module 41 receives a shared device use request including a phone number of a shared terminal and a shared device identifier sent by a shared terminal, and the analyzing module 42 determines a phone number of a shared terminal corresponding to the phone number of the shared terminal when confirming that the phone number of the shared terminal has a sharing use right for the corresponding shared device according to a shared device mapping relationship based on the phone number of the shared terminal of the shared device use request.
The analysis module 42 finds out a sharing terminal corresponding to the shared terminal, determines account information that the sharing terminal has a usage right for the sharing device through the sharing terminal, the third sending module 43 replaces the sharing device usage request with a sharing device usage request sent by the account information of the sharing terminal, and sends the sharing device usage request to the server of the sharing device, after receiving the sharing device usage request, the server of the sharing device directly recognizes the sharing device usage request as a sharing device usage request sent by a sharing user, so that the sharing device is verified by using the account information of the sharing user, when the verification is passed, the sharing device is allowed to be started, and usage allowing information is returned, so that the shared terminal can use the sharing device with the identity of the sharing terminal.
The server can be an internet of things platform, the internet of things platform can form a sharing device mapping relation according to the sharing terminal identification, the shared terminal identification and the sharing device identification, when a shared user sends a sharing device use request through the shared terminal and uploads the sharing device use request to the internet of things platform, the internet of things platform determines the sharing terminal and the sharing device corresponding to the shared terminal according to the sharing device mapping relation, after matching is successful, the sharing device use request is replaced by the sharing device use request sent by account information of the sharing terminal, when verification is passed, the sharing device is allowed to be started and use information is allowed to return, and therefore the shared terminal can use the sharing device with the identity of the sharing terminal.
With reference to fig. 8 and fig. 9, the following takes the sharing terminal as the terminal of the family member a having the installed device permission sharing APP, the sharing terminal is identified as the phone number of the sharing terminal, the shared terminal is the terminal of the family member B having the installed device permission sharing APP, and the shared terminal is identified as the phone number of the shared terminal, as an example, the device control permission sharing method provided in the embodiment of the present application is further described in detail; the server can store a sharing terminal mobile phone address book, a sharing device identifier and a sharing device mapping relation; the server further comprises a two-dimensional code generation module, a picture generation module and a sharing request processing module, wherein the two-dimensional code generation module is used for providing a support terminal to generate a two-dimensional code containing preset information, the picture generation module is used for supporting the terminal to generate a picture containing the preset information and carrying a hyperlink address, the sharing request processing module is used for receiving a sharing device using request sent by the sharing terminal, and the sharing device using request comprises a shared terminal identifier and a sharing device identifier. Here, the mapping relationship of the sharing device includes authority limit information set by the family member a, and the authority limit information may be a sharing time range, a sharing use mode, a sharing mileage range, a sharing limit range, and the like of the sharing device, and the sharing time range is taken as an example below.
The first scheme is as follows:
step S11: the method comprises the steps that a family member A logs in an equipment authority sharing APP through a sharing terminal, a sharing request instruction, a shared terminal telephone number, a sharing equipment identifier and authority limit information are input through a preset software application interface, after the sharing terminal receives the sharing request instruction input by a sharing user, the sharing terminal generates an equipment authority sharing message in a two-dimensional code form according to the telephone number of the sharing terminal, the shared terminal telephone number, the sharing equipment identifier and the authority limit information, shared by the sharing user and the shared user at present, and the two-dimensional code comprises the sharing equipment identifier, the authority limit information, the family member A telephone number and a family member B telephone number.
Step S12: family member B scans the two-dimensional code through the shared terminal, acquires the equipment permission sharing message through scanning the two-dimensional code, and sends an equipment permission copying request containing the sharing terminal identification, the shared terminal identification, the permission limiting information and the sharing equipment identification to the server.
Step S13: after receiving the device authority copying request, the server forms a sharing device mapping relation with the sharing terminal identification, the shared terminal identification, the sharing device identification and the corresponding authority limit information and correspondingly stores the sharing device mapping relation, and control authority copying is completed; after the family member B finishes scanning the two-dimensional code, the two-dimensional code is invalid, and meanwhile, the family member B does not provide sharing permission.
Step S14: the family member B sends a sharing device using request to the server, receives the device authority copying request to be authenticated through the server, sends the sharing device using request to the corresponding sharing device, and returns a use permission message by the sharing device.
Scheme II:
step S21: the method comprises the steps that a family member A logs in an equipment authority sharing APP through a sharing terminal, a sharing request instruction, a shared terminal telephone number, a sharing equipment identifier and authority limit information are input through a preset software application interface, after the sharing terminal receives the sharing request instruction input by a sharing user, the sharing terminal telephone number, the shared terminal telephone number, the sharing equipment identifier and the authority limit information, shared by the sharing user and the shared user at present, generate an equipment authority sharing message in the form of a picture carrying a hyperlink address, and the picture carrying the hyperlink address comprises the sharing equipment identifier, the authority limit information, the family member A telephone number and the family member B telephone number.
Step S22: the method comprises the steps that Bluetooth is opened by a family member A and a family member B at the same time, the family member A directly sends the family member B through the Bluetooth, the family member B clicks a picture carrying a hyperlink address, the link jumps to an equipment permission sharing APP, an equipment permission sharing message is obtained, and an equipment permission copying request containing a sharing terminal identifier, a shared terminal identifier, permission limiting information and a sharing equipment identifier is sent to a server.
Step S23: after receiving the device authority copying request, the server forms a sharing device mapping relation with the sharing terminal identification, the shared terminal identification, the sharing device identification and the corresponding authority limit information and correspondingly stores the sharing device mapping relation, and control authority copying is completed; after the family member B clicks the picture carrying the hyperlink address, the picture carrying the hyperlink address is invalid, and meanwhile, the family member B does not provide sharing permission.
Step S24: the family member B sends a sharing device using request to the server, receives the device authority copying request to be authenticated through the server, sends the sharing device using request to the corresponding sharing device, and returns a use permission message by the sharing device.
In the above scheme, the sharing cancellation and charging process is as follows:
when the time length of the shared device used by the family member B reaches the time threshold and the family member B does not actively request to stop using the shared device, the server is responsible for stopping the control authority of the family member B on the shared device; meanwhile, when the family member B uses the sharing device, the account information of the family member A with the use permission of the sharing device is used in a unified mode, and the sharing device can be used without paying a deposit. Therefore, for the whole family member, the condition that the same sharing device is paid for the deposit for many times is avoided, the cost generated by use can be uniformly paid by the sharing terminal, the use is convenient, and the user experience is improved; meanwhile, when the family member A authorizes part of the temporary users to use the sharing device, the sharing time range of the temporary users to use the sharing device can be correspondingly set, the safety of the account information of the family member A is improved, and more selectivity is increased for the authorization mode of the family member A.
In another specific embodiment, as shown in fig. 10, there is also provided a device control authority sharing system, including: at least one processor 210 and a memory 211 for storing computer programs capable of running on the processor 210; the processor 210 illustrated in fig. 10 is not used to refer to the number of processors as one, but is only used to refer to the position relationship of the processor with respect to other devices, and in practical applications, the number of processors may be one or more; similarly, the memory 211 illustrated in fig. 10 is also used in the same sense, i.e., it is only used to refer to the position relationship of the memory with respect to other devices, and in practical applications, the number of the memory may be one or more.
Wherein, when the processor 210 is used for running the computer program, the following steps are executed:
acquiring a sharing request instruction, a shared terminal identifier and a sharing equipment identifier;
based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier;
and sending the device permission sharing message to a server or a shared terminal, wherein the device permission sharing message comprises the shared terminal identification and the sharing device identification.
In a specific embodiment, the processor 210 is further configured to execute the following steps when the computer program is executed:
sending a sharing equipment use request to a server;
and receiving a use permission message returned by the sharing equipment after the server authenticates according to the mapping relation of the sharing equipment, and sending the use request of the sharing equipment to the sharing equipment.
In a specific embodiment, the processor 210 is further configured to execute the following steps when the computer program is executed:
receiving a sharing equipment use request sent by a shared terminal;
based on the sharing equipment use request, determining a sharing terminal identifier corresponding to the shared terminal when the shared terminal is confirmed to have the sharing use right of the sharing equipment according to a sharing equipment mapping relation;
and the sharing equipment use request is used as a sharing equipment use request of the sharing terminal identification and is sent to the sharing equipment.
The device permission sharing system further includes: at least one network interface 212. The various components on the transmit side are coupled together by a bus system 213. It will be appreciated that the bus system 213 is used to enable communications among the connections of these components. The bus system 213 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 213 in fig. 10.
The memory 211 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 102 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 211 in the embodiment of the present invention is used to store various types of data to support the operation of the transmitting end. Examples of such data include: any computer program for operation on the sender side, such as operating systems and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. Here, the program that implements the method of the embodiment of the present invention may be included in an application program.
The embodiment further provides a computer storage medium, for example, including a memory 211 storing a computer program, which can be executed by a processor 210 in the transmitting end to perform the steps of the foregoing method. The computer storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc. A computer storage medium having a computer program stored therein, the computer program, when executed by a processor, performing the steps of:
acquiring a sharing request instruction, a shared terminal identifier and a sharing equipment identifier;
based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier;
and sending the device permission sharing message to a server or a shared terminal, wherein the device permission sharing message comprises the shared terminal identification and the sharing device identification.
Before generating the device permission sharing message according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction, the method further includes: acquiring authority limit information;
the generating of the device permission sharing message according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction includes: and based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identification, the sharing device identification and the permission limitation information.
In a specific embodiment, when the computer program is executed by a processor, the following steps are further performed:
sending a sharing equipment use request to a server;
and receiving a use permission message returned by the sharing equipment after the server authenticates according to the mapping relation of the sharing equipment, and sending the use request of the sharing equipment to the sharing equipment.
Before sending the sharing device use request to the server, the method further includes:
receiving an equipment authority sharing message sent by a server or a sharing terminal;
and sending an equipment authority copying request containing the sharing terminal identification, the shared terminal identification and the sharing equipment identification to a server based on the equipment authority sharing message.
The receiving of the device permission sharing message sent by the server or the sharing terminal includes:
receiving an equipment authority sharing message sent by a server in a communication protocol mode; or
Receiving an equipment authority sharing message from the sharing terminal in a two-dimensional code communication mode; or
And receiving the equipment permission sharing message from the sharing terminal in a Bluetooth communication mode.
In a specific embodiment, when the computer program is executed by a processor, the following steps are further performed:
receiving a sharing equipment use request sent by a shared terminal;
based on the sharing equipment use request, determining a sharing terminal identifier corresponding to the shared terminal when the shared terminal is confirmed to have the sharing use right of the sharing equipment according to a sharing equipment mapping relation;
and the sharing equipment use request is used as a sharing equipment use request of the sharing terminal identification and is sent to the sharing equipment.
Before receiving a request for using the sharing device sent by the shared terminal, the method includes:
receiving an equipment authority sharing message sent by a sharing terminal, and forming a sharing equipment mapping relation according to a sharing terminal identifier, a sharing equipment identifier in the equipment authority sharing message and a shared terminal identifier; or,
receiving an equipment authority copying request sent by a shared terminal, and forming a shared equipment mapping relation according to a sharing terminal identifier, the shared terminal identifier and a sharing equipment identifier in the equipment authority copying request.
Before receiving a request for using the sharing device sent by the shared terminal, the method further includes: receiving an equipment authority sharing message sent by a sharing terminal, and forming a sharing equipment mapping relation according to a sharing terminal identifier, a sharing equipment identifier in the equipment authority sharing message, a shared terminal identifier and authority limit information; or,
receiving an equipment authority copying request sent by a shared terminal, and forming a shared equipment mapping relation according to a sharing terminal identifier, a shared equipment identifier and authority limit information in the equipment authority copying request.
After the step of using the shared device usage request as the shared device usage request of the shared terminal identifier and sending the shared device usage request to the shared device, the method further includes:
when the time length of the shared terminal using the sharing equipment exceeds a preset value in the permission limiting information, sending a use ending request of the sharing terminal identification to the sharing equipment;
and sending a use limit notification message to the shared terminal.
After the step of using the shared device usage request as the shared device usage request of the shared terminal identifier and sending the shared device usage request to the shared device, the method further includes:
and receiving a use ending request sent by a shared terminal, and sending the use ending request to the sharing equipment as the use ending request of the sharing terminal identifier.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.
Claims (15)
1. A device control authority sharing method is applied to a sharing terminal and is characterized by comprising the following steps:
acquiring a sharing request instruction, a shared terminal identifier and a sharing equipment identifier;
based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier;
and sending the device permission sharing message to a server or a shared terminal, wherein the device permission sharing message comprises the shared terminal identification and the sharing device identification.
2. The method according to claim 1, wherein before generating a device permission sharing message according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction, the method further comprises: acquiring authority limit information;
the generating of the device permission sharing message according to the shared terminal identifier and the sharing device identifier based on the sharing request instruction includes: and based on the sharing request instruction, generating a device permission sharing message according to the shared terminal identification, the sharing device identification and the permission limitation information.
3. A device control authority sharing method is applied to a shared terminal, and is characterized by comprising the following steps:
sending a sharing equipment use request to a server;
and receiving a use permission message returned by the sharing equipment after the server authenticates according to the mapping relation of the sharing equipment and sends the use request of the sharing equipment to the corresponding sharing equipment.
4. The method of claim 3, wherein before sending the shared device use request to the server, further comprising:
receiving an equipment authority sharing message sent by a server or a sharing terminal;
and sending an equipment authority copying request containing the sharing terminal identification, the shared terminal identification and the sharing equipment identification to a server based on the equipment authority sharing message.
5. The method according to claim 4, wherein the receiving the device permission sharing message sent by the server or the sharing terminal includes:
receiving an equipment authority sharing message sent by a server in a communication protocol mode; or
Receiving an equipment authority sharing message from the sharing terminal in a two-dimensional code communication mode; or
And receiving the equipment permission sharing message from the sharing terminal in a Bluetooth communication mode.
6. A device control authority sharing method is applied to a server and is characterized by comprising the following steps:
receiving a sharing equipment use request sent by a shared terminal;
based on the sharing equipment use request, determining a sharing terminal identifier corresponding to the shared terminal when the shared terminal is confirmed to have sharing use right according to a sharing equipment mapping relation;
and the sharing equipment use request is used as a sharing equipment use request of the sharing terminal identification and is sent to the sharing equipment.
7. The method according to claim 6, wherein before receiving the shared device use request sent by the shared terminal, the method comprises:
receiving an equipment authority sharing message sent by a sharing terminal, and forming a sharing equipment mapping relation according to a sharing terminal identifier of the sharing terminal, a sharing equipment identifier in the equipment authority sharing message and a shared terminal identifier; or,
receiving an equipment authority copying request sent by a shared terminal, and forming a shared equipment mapping relation according to a sharing terminal identifier, the shared terminal identifier and a sharing equipment identifier in the equipment authority copying request.
8. The method according to claim 7, wherein before receiving the request for using the shared device sent by the shared terminal, the method further comprises: receiving an equipment authority sharing message sent by a sharing terminal, and forming a sharing equipment mapping relation according to a sharing terminal identifier, a sharing equipment identifier in the equipment authority sharing message, a shared terminal identifier and authority limit information; or,
receiving an equipment authority copying request sent by a shared terminal, and forming a shared equipment mapping relation according to a sharing terminal identifier, a shared equipment identifier and authority limit information in the equipment authority copying request.
9. The method according to claim 8, wherein after the using the shared device request as the shared device request of the shared terminal identifier is sent to the shared device, the method further comprises:
when the time length of the shared terminal using the sharing equipment exceeds a preset value in the permission limiting information, sending a use ending request of the sharing terminal identification to the sharing equipment;
and sending a use limit notification message to the shared terminal.
10. The method according to claim 6, wherein after the using the shared device request as the shared device request of the shared terminal identifier is sent to the shared device, further comprising:
and receiving a use ending request sent by a shared terminal, and sending the use ending request to the sharing equipment as the use ending request of the sharing terminal identifier.
11. The utility model provides a device control authority sharing device, is applied to sharing terminal, its characterized in that includes: the device comprises an acquisition module, a generation module and a first sending module; wherein,
the acquisition module is used for acquiring a sharing request instruction, a shared terminal identifier and a sharing equipment identifier;
the generating module is configured to generate an equipment permission sharing message according to the shared terminal identifier and the sharing equipment identifier based on the sharing request instruction;
the first sending module is used for sending the device permission sharing message to a server or a shared terminal; and the device permission sharing message comprises the shared terminal identifier and the shared device identifier.
12. The utility model provides a device control authority sharing device, is applied to by shared terminal, its characterized in that includes: the device comprises a first receiving module and a second sending module; wherein,
the second sending module is used for sending a sharing equipment use request to the server;
the first receiving module is used for receiving the use permission message returned by the sharing device after the server authenticates according to the mapping relation of the sharing device, and the use permission message is sent to the sharing device by the sharing device.
13. An apparatus for sharing device control authority is applied to a server, and is characterized by comprising: the device comprises a second receiving module, an analysis module and a third sending module; wherein,
the second receiving module is configured to receive a shared device use request sent by a shared terminal;
the analysis module is configured to determine, based on the shared device use request, a shared terminal identifier corresponding to the shared terminal when the shared terminal is determined to have the shared use right for the shared device according to a shared device mapping relationship;
and the third sending module is configured to use the shared device use request as a shared device use request of the identifier of the shared terminal, and send the shared device use request to the shared device.
14. An equipment control authority sharing system is characterized in that the system comprises a sharing terminal, a shared terminal and a server, wherein the sharing terminal comprises the equipment control authority sharing device according to claim 11, the shared terminal comprises the equipment control authority sharing device according to claim 12, and the server comprises the equipment control authority sharing device according to claim 13.
15. A computer storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the device control authority sharing method according to any one of claims 1 to 10.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711102991.4A CN109788005A (en) | 2017-11-10 | 2017-11-10 | Equipment control authority sharing method, device, system and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711102991.4A CN109788005A (en) | 2017-11-10 | 2017-11-10 | Equipment control authority sharing method, device, system and computer storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109788005A true CN109788005A (en) | 2019-05-21 |
Family
ID=66485266
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711102991.4A Withdrawn CN109788005A (en) | 2017-11-10 | 2017-11-10 | Equipment control authority sharing method, device, system and computer storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109788005A (en) |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111163451A (en) * | 2019-12-31 | 2020-05-15 | 浙江吉利汽车研究院有限公司 | A vehicle control right confirmation method, device, electronic device and storage medium |
| CN111262850A (en) * | 2020-01-14 | 2020-06-09 | 杭州鸿雁智能科技有限公司 | Methods of using configurable shared devices and related computer storage media |
| CN112235767A (en) * | 2020-10-13 | 2021-01-15 | 深圳市晨北科技有限公司 | Connection management method, device and medium |
| CN112560013A (en) * | 2020-12-15 | 2021-03-26 | 广州极飞科技有限公司 | Equipment authority configuration method, device, electronic equipment, system and storage medium |
| CN113169970A (en) * | 2019-06-14 | 2021-07-23 | Oppo广东移动通信有限公司 | An access control method, device and storage medium |
| WO2021159765A1 (en) * | 2020-02-12 | 2021-08-19 | 华为技术有限公司 | Account data sharing method and electronic device |
| CN115735352A (en) * | 2021-06-25 | 2023-03-03 | 华为技术有限公司 | Control method, sharing method, device and system |
| CN116886459A (en) * | 2023-08-15 | 2023-10-13 | 四川虹美智能科技有限公司 | Intelligent household appliance control sharing method and device, medium and equipment |
| WO2023240587A1 (en) * | 2022-06-17 | 2023-12-21 | Oppo广东移动通信有限公司 | Device permission configuration method and apparatus, and terminal device |
| CN117807042A (en) * | 2022-09-26 | 2024-04-02 | 华为终端有限公司 | Method for sharing file, electronic device and computer readable storage medium |
| EP4276669A4 (en) * | 2021-08-31 | 2024-09-04 | Honor Device Co., Ltd. | METHOD AND APPARATUS FOR DEVICE SHARING |
| CN116886459B (en) * | 2023-08-15 | 2025-10-17 | 四川虹美智能科技有限公司 | Intelligent household appliance control sharing method and device, medium and equipment |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104460365A (en) * | 2014-10-29 | 2015-03-25 | 小米科技有限责任公司 | Equipment control method and device |
| CN104836791A (en) * | 2015-03-30 | 2015-08-12 | 广东美的制冷设备有限公司 | Terminal control authority sharing method and terminal control authority sharing device |
| CN105100190A (en) * | 2015-05-21 | 2015-11-25 | 小米科技有限责任公司 | Methods, devices and system for managing control relation of account and device |
| CN105423481A (en) * | 2015-10-30 | 2016-03-23 | 广东美的制冷设备有限公司 | Air conditioner control method and system based on temporary operating authorization |
| CN106209800A (en) * | 2016-06-30 | 2016-12-07 | 北京小米移动软件有限公司 | Equipment Authority sharing method and apparatus |
| CN106302653A (en) * | 2016-08-01 | 2017-01-04 | 厦门中控生物识别信息技术有限公司 | The control authority sharing method of a kind of door control terminal and relevant device |
| CN106357653A (en) * | 2016-09-27 | 2017-01-25 | 深圳市欧瑞博电子有限公司 | Control authority sharing method and system |
| US20170124562A1 (en) * | 2015-07-01 | 2017-05-04 | Liveensure, Inc. | System and method for securing and monetizing peer-to-peer digital content |
| CN106657335A (en) * | 2016-12-23 | 2017-05-10 | 青岛亿联客信息技术有限公司 | Method and system for temporarily sharing network intelligent equipment |
| CN106789474A (en) * | 2016-12-27 | 2017-05-31 | Tcl集团股份有限公司 | The sharing method and device of a kind of equipment control authority |
-
2017
- 2017-11-10 CN CN201711102991.4A patent/CN109788005A/en not_active Withdrawn
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104460365A (en) * | 2014-10-29 | 2015-03-25 | 小米科技有限责任公司 | Equipment control method and device |
| CN104836791A (en) * | 2015-03-30 | 2015-08-12 | 广东美的制冷设备有限公司 | Terminal control authority sharing method and terminal control authority sharing device |
| CN105100190A (en) * | 2015-05-21 | 2015-11-25 | 小米科技有限责任公司 | Methods, devices and system for managing control relation of account and device |
| US20170124562A1 (en) * | 2015-07-01 | 2017-05-04 | Liveensure, Inc. | System and method for securing and monetizing peer-to-peer digital content |
| CN105423481A (en) * | 2015-10-30 | 2016-03-23 | 广东美的制冷设备有限公司 | Air conditioner control method and system based on temporary operating authorization |
| CN106209800A (en) * | 2016-06-30 | 2016-12-07 | 北京小米移动软件有限公司 | Equipment Authority sharing method and apparatus |
| CN106302653A (en) * | 2016-08-01 | 2017-01-04 | 厦门中控生物识别信息技术有限公司 | The control authority sharing method of a kind of door control terminal and relevant device |
| CN106357653A (en) * | 2016-09-27 | 2017-01-25 | 深圳市欧瑞博电子有限公司 | Control authority sharing method and system |
| CN106657335A (en) * | 2016-12-23 | 2017-05-10 | 青岛亿联客信息技术有限公司 | Method and system for temporarily sharing network intelligent equipment |
| CN106789474A (en) * | 2016-12-27 | 2017-05-31 | Tcl集团股份有限公司 | The sharing method and device of a kind of equipment control authority |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113169970A (en) * | 2019-06-14 | 2021-07-23 | Oppo广东移动通信有限公司 | An access control method, device and storage medium |
| CN113169970B (en) * | 2019-06-14 | 2023-10-27 | Oppo广东移动通信有限公司 | An access control method, device and storage medium |
| CN111163451A (en) * | 2019-12-31 | 2020-05-15 | 浙江吉利汽车研究院有限公司 | A vehicle control right confirmation method, device, electronic device and storage medium |
| CN111262850A (en) * | 2020-01-14 | 2020-06-09 | 杭州鸿雁智能科技有限公司 | Methods of using configurable shared devices and related computer storage media |
| CN116155586A (en) * | 2020-02-12 | 2023-05-23 | 华为技术有限公司 | Account data sharing method and electronic equipment |
| WO2021159765A1 (en) * | 2020-02-12 | 2021-08-19 | 华为技术有限公司 | Account data sharing method and electronic device |
| CN112235767A (en) * | 2020-10-13 | 2021-01-15 | 深圳市晨北科技有限公司 | Connection management method, device and medium |
| CN112560013A (en) * | 2020-12-15 | 2021-03-26 | 广州极飞科技有限公司 | Equipment authority configuration method, device, electronic equipment, system and storage medium |
| CN115735352A (en) * | 2021-06-25 | 2023-03-03 | 华为技术有限公司 | Control method, sharing method, device and system |
| EP4276669A4 (en) * | 2021-08-31 | 2024-09-04 | Honor Device Co., Ltd. | METHOD AND APPARATUS FOR DEVICE SHARING |
| WO2023240587A1 (en) * | 2022-06-17 | 2023-12-21 | Oppo广东移动通信有限公司 | Device permission configuration method and apparatus, and terminal device |
| CN117807042A (en) * | 2022-09-26 | 2024-04-02 | 华为终端有限公司 | Method for sharing file, electronic device and computer readable storage medium |
| CN116886459A (en) * | 2023-08-15 | 2023-10-13 | 四川虹美智能科技有限公司 | Intelligent household appliance control sharing method and device, medium and equipment |
| CN116886459B (en) * | 2023-08-15 | 2025-10-17 | 四川虹美智能科技有限公司 | Intelligent household appliance control sharing method and device, medium and equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109788005A (en) | Equipment control authority sharing method, device, system and computer storage medium | |
| CN111131242B (en) | Authority control method, device and system | |
| CN109510849B (en) | Account authentication method and device for cloud storage | |
| CN109600306B (en) | Method, device and storage medium for creating session | |
| CN112330855B (en) | Electronic lock safety management method, equipment and system | |
| CN109471865B (en) | Offline data management method, system, server and storage medium | |
| CN103283204B (en) | To the method that the access of protected content is authorized | |
| CN106096343B (en) | Message access control method and equipment | |
| CN102710640B (en) | Authorization requesting method, device and system | |
| EP2101276A1 (en) | Data access and user identity verification | |
| CN103532933A (en) | Method of realizing client operation authorization through fingerprint confirmation, and intelligent terminal | |
| CN115116162B (en) | Digital key deletion method, device, equipment, system and storage medium | |
| WO2008034366A1 (en) | Method and system of service subscription and device therefof | |
| CN116980163A (en) | Data processing method, device, equipment and medium based on trusted execution environment | |
| CN112738105B (en) | Invitation registration method and device | |
| CN103986688A (en) | Method of authenticating a user of a peripheral apparatus, a peripheral apparatus, and a system for authenticating a user of a peripheral apparatus | |
| CN102821085A (en) | Third party authorization login method, open platform and system | |
| US9455972B1 (en) | Provisioning a mobile device with a security application on the fly | |
| CN110086799B (en) | Identity verification method and device | |
| CN110930561B (en) | Control method and device of intelligent lock | |
| WO2018000568A1 (en) | Virtual sim card management method, management device, server and terminal | |
| CN105429943B (en) | Information processing method and terminal thereof | |
| CN109584410B (en) | Data processing method of electronic lock, computer equipment and storage medium | |
| CN111949959B (en) | Authorization authentication method and device in Oauth protocol | |
| CN103124252B (en) | Client application access authentication treating method and apparatus |
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 | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190521 |