WO2021179944A1 - 设备分享方法及服务器 - Google Patents

设备分享方法及服务器 Download PDF

Info

Publication number
WO2021179944A1
WO2021179944A1 PCT/CN2021/078587 CN2021078587W WO2021179944A1 WO 2021179944 A1 WO2021179944 A1 WO 2021179944A1 CN 2021078587 W CN2021078587 W CN 2021078587W WO 2021179944 A1 WO2021179944 A1 WO 2021179944A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
information
location information
target
router
Prior art date
Application number
PCT/CN2021/078587
Other languages
English (en)
French (fr)
Inventor
巫皓玮
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021179944A1 publication Critical patent/WO2021179944A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network

Definitions

  • the invention relates to the technical field of the Internet of Things, in particular to a device sharing method and a server.
  • Smart homes have gradually entered people's lives.
  • Smart homes connect various devices in a target place (for example, a house or office) through the Internet of Things technology, so that users can control these devices by operating electronic devices.
  • Existing device sharing solutions mainly include QR code scanning sharing solutions and designated account sharing solutions.
  • the QR code scanning sharing solutions require users who have added target devices to select the target device to be shared first, and then click the share button to generate Corresponding to the QR code, finally show the QR code or send it as a picture to other users to be shared for sharing; and the designated account sharing solution requires users who have added a target device to select the target device to be shared first, and then click Share Button, then enter the account of the user to be shared, and then click the OK share button to share.
  • the embodiments of the present invention provide a device sharing method and server to solve the problem of low efficiency of device sharing in the existing device sharing solution.
  • an embodiment of the present invention provides a device sharing method applied to a server, including:
  • a sharing message is pushed to the second electronic device, and the sharing message is used to share the target device with the second electronic device Permission to use.
  • an embodiment of the present invention also provides a server, including:
  • An acquiring module configured to acquire at least one piece of first target information of a first electronic device and at least one piece of second target information of a second electronic device, the first electronic device being an electronic device with management authority to the target device;
  • a judging module configured to judge whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information;
  • the push module is configured to push a sharing message to the second electronic device when the first electronic device and the second electronic device have interactive attributes, and the sharing message is used to send the sharing message to the second electronic device Share the usage authority of the target device.
  • an embodiment of the present invention also provides a server, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • a server including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the device sharing method described above are implemented.
  • the embodiments of the present invention also provide a computer software product, the computer software product is stored in a non-volatile storage medium, and the software product is configured to be executed by at least one processor to implement the above device Share the steps of the method.
  • an embodiment of the present invention also provides a server configured to execute the above device sharing method.
  • the server can obtain at least one first target information of the first electronic device and at least one second target information of the second electronic device, according to the at least one first target information and the at least one first target information Two target information, judging whether the first electronic device and the second electronic device have interactive attributes, and in the case that the first electronic device and the second electronic device have interactive attributes, report to the second electronic device
  • the electronic device pushes a sharing message, and the sharing message is used to share the use authority of the target device with the second electronic device, so that automatic sharing of the device can be realized without receiving user input, which can improve the sharing time of the device. Sharing efficiency.
  • FIG. 1 is a flowchart of a device sharing method provided by an embodiment of the present invention
  • Figure 2 is a structural diagram of a server provided by an embodiment of the present invention.
  • Fig. 3 is a structural diagram of a judgment module in a server provided by an embodiment of the present invention.
  • Figure 4 is a structural diagram of a push module in a server provided by an embodiment of the present invention.
  • Fig. 5 is a structural diagram of a server provided by another embodiment of the present invention.
  • an embodiment of the present invention provides a device sharing method, which is applied to a server, and the device sharing method includes the following steps:
  • Step 101 Acquire at least one piece of first target information of a first electronic device and at least one piece of second target information of a second electronic device, where the first electronic device is an electronic device that has management authority for the target device.
  • the above-mentioned first electronic device may be a mobile phone, a tablet (Personal Computer), a laptop (Laptop Computer), a personal digital assistant (personal digital assistant, PDA), and a mobile Internet device (Mobile Internet Device). , MID) or Wearable Device (Wearable Device), etc.
  • the aforementioned at least one piece of first target information may include at least one of the following: first router information, first location information, and first identification information.
  • first router information may be used to identify the router that is in communication with the first electronic device;
  • first location information may be used to indicate the current location of the first electronic device, and
  • first identification information may be used to identify The first electronic device.
  • the above-mentioned second electronic device can be a mobile phone, a tablet (Personal Computer), a laptop (Laptop Computer), a personal digital assistant (personal digital assistant, PDA), a mobile Internet device (Mobile Internet Device, MID) or a wearable Type equipment (Wearable Device), etc.
  • the aforementioned at least one piece of second target information may include at least one of the following: second router information, second location information, and second identification information.
  • the second router information may be used to identify the router that is in communication with the second electronic device
  • the second location information may be used to indicate the current location of the second electronic device
  • the second identification information may be used to identify The second electronic device.
  • the above-mentioned target devices can be various devices such as TVs, air conditioners, washing machines, speakers, curtains, lamps, doors, monitors, routers, or computers.
  • Step 102 Determine whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information.
  • step 102 may have different manifestations. Examples are as follows:
  • the at least one piece of first target information includes: first router information, where the first router information is used to identify a router that is communicatively connected to the first electronic device, and the at least one piece of second target information includes: Second router information, where the second router information is used to identify a router communicatively connected with the second electronic device;
  • the judging whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information includes:
  • the first router information matches the second router information, it is determined that the first electronic device and the second electronic device have interactive attributes.
  • the first router information may include the identifier of the router communicatively connected with the first electronic device.
  • the identifier may be a name and/or a code.
  • the second router information may include the identifier of the router communicatively connected with the second electronic device.
  • the identifier may be a name and/or a code.
  • the above-mentioned matching of the first router information and the second router information can be understood as: the router corresponding to the first router information and the router corresponding to the second router information are the same router.
  • the determination of the interactive attributes can be made simpler and more convenient.
  • the at least one first target information includes: first location information, the first location information is used to indicate the current location of the first electronic device, and the at least one second target information includes: Second location information, where the second location information is used to indicate the current location of the second electronic device;
  • the judging whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information includes:
  • first location information and the second location information match, it is determined that the first electronic device and the second electronic device have interactive attributes.
  • the first location information may include: the location name and/or the latitude and longitude of the current location of the first electronic device.
  • the second location information may include: the location name and/or the latitude and longitude of the current location of the second electronic device.
  • the above-mentioned matching of the first location information and the second location information can be understood as: the location indicated by the first location information and the location indicated by the second location information are the same location.
  • the determination of the interactive attributes can be made simpler and more accurate.
  • the at least one first target information includes: first identification information, the first identification information is used to identify the first electronic device, and the at least one second target information includes: second identification information, The second identification information is used to identify the second electronic device;
  • the judging whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information includes:
  • the home location information of the first electronic device matches the home location information of the second electronic device, it is determined that the first electronic device and the second electronic device have interactive attributes.
  • the first identification information may include: the International Mobile Equipment Identity (IMEI) of the first electronic device and/or the name of the first electronic device.
  • the second identification information may include: the IMEI of the second electronic device and/or the name of the second electronic device.
  • the above-mentioned home location information of the first electronic device may refer to the location information of the home location corresponding to the first electronic device; wherein, the home location corresponding to the first electronic device may be the historical location of the first electronic device (the historical location may include one or more The location with the highest frequency among the locations) may also be a location set by the user of the first electronic device; the location information may include a location name and/or latitude and longitude.
  • the above-mentioned home location information of the second electronic device may refer to the location information of the home location corresponding to the second electronic device; wherein, the home location corresponding to the second electronic device may be the historical location of the second electronic device (the historical location may include one or more The location with the highest frequency among the locations) may also be the location set by the user of the second electronic device; the location information may include the location name and/or the latitude and longitude.
  • the home location information of the first electronic device is acquired according to the first identification information
  • the home location of the second electronic device is acquired according to the second identification information.
  • Information including:
  • the first identification information retrieve the pre-stored historical location information of the first electronic device, and determine the home location information of the first electronic device according to the historical location information of the first electronic device
  • the second identification information retrieves pre-stored historical location information of the second electronic device, and determines the home location information of the second electronic device according to the historical location information of the second electronic device.
  • the historical location information may include location information of a historical location, where the historical location may include one or more locations, and the location information may include a location name and/or latitude and longitude.
  • the foregoing determination of the home location information of the first electronic device according to the historical location information of the first electronic device may be: determining the location with the highest frequency among the historical locations of the first electronic device according to the historical location information of the first electronic device , Determining the location information of the location with the highest occurrence frequency among the historical locations of the first electronic device as the home location information of the first device.
  • determining the home location information of the second electronic device according to the historical location information of the second electronic device may be: determining the frequency of occurrence in the historical location of the second electronic device according to the historical location information of the second electronic device The highest location, the location information of the location with the highest occurrence frequency among the historical locations of the second electronic device is determined as the home location information of the second device.
  • the acquisition speed of the home location information of the electronic device can be made faster.
  • the timeliness of the obtained home location information can be better .
  • the determination of the interactive attributes can be made more accurate.
  • the at least one piece of first target information includes: first router information, first location information, and first identification information.
  • the first router information is used to identify a router that is in communication with the first electronic device.
  • the location information is used to indicate the current location of the first electronic device, the first identification information is used to identify the first electronic device;
  • the at least one second target information includes: second router information, second Location information and second identification information, where the second router information is used to identify a router communicatively connected with the second electronic device, and the second location information is used to indicate the current location of the second electronic device,
  • the second identification information is used to identify the second electronic device;
  • the judging whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information includes:
  • first router information first location information, first identification information, second router information, second location information, second identification information, home location information of the first electronic device, and home location of the second electronic device
  • first location information first identification information
  • second router information second location information
  • second identification information home location information of the first electronic device
  • home location of the second electronic device Please refer to the explanation of the corresponding part in the previous text for the explanation of the information, etc., which will not be repeated here.
  • Step 103 In the case that the first electronic device and the second electronic device have interactive attributes, push a sharing message to the second electronic device, and the sharing message is used to share all the information with the second electronic device. Describe the usage rights of the target device.
  • the server can obtain at least one first target information of the first electronic device and at least one second target information of the second electronic device, according to the at least one first target information and the at least one first target information Two target information, judging whether the first electronic device and the second electronic device have interactive attributes, and in the case that the first electronic device and the second electronic device have interactive attributes, pushing and sharing to the second electronic device A message, the sharing message is used to share the use authority of the target device with the second electronic device, so that automatic sharing of the device can be realized without receiving user input, and thus, the sharing efficiency during device sharing can be improved.
  • pushing a sharing message to the second electronic device includes:
  • an inquiry message is sent to the first electronic device, and the inquiry message is used to inquire whether the user agrees to share the target device with the second electronic device.
  • Electronic equipment
  • the sharing message is pushed to the second electronic device only when the user of the first electronic device agrees to share, the security of device sharing can be further improved.
  • FIG. 2 is a structural diagram of a server 200 according to an embodiment of the present invention. As shown in FIG. 2, the server 200 includes:
  • the acquiring module 201 is configured to acquire at least one piece of first target information of a first electronic device and at least one piece of second target information of a second electronic device, where the first electronic device is an electronic device that has management authority for the target device;
  • the determining module 202 is configured to determine whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information;
  • the pushing module 203 is configured to push a sharing message to the second electronic device when the first electronic device and the second electronic device have interactive attributes, and the sharing message is used to send a sharing message to the second electronic device.
  • the device shares the usage authority of the target device.
  • the at least one piece of first target information includes: first router information, where the first router information is used to identify a router that is communicatively connected to the first electronic device, and the at least one piece of second target information includes: Second router information, where the second router information is used to identify a router communicatively connected with the second electronic device;
  • the judgment module 202 is used to:
  • the first router information matches the second router information, it is determined that the first electronic device and the second electronic device have interactive attributes.
  • the at least one first target information includes: first location information, the first location information is used to indicate the current location of the first electronic device, and the at least one second target information includes: Second location information, where the second location information is used to indicate the current location of the second electronic device;
  • the judgment module 202 is used to:
  • first location information and the second location information match, it is determined that the first electronic device and the second electronic device have interactive attributes.
  • the at least one first target information includes: first identification information, the first identification information is used to identify the first electronic device, and the at least one second target information includes: second identification information, The second identification information is used to identify the second electronic device;
  • the judgment module 202 includes:
  • the obtaining unit 2021 is configured to obtain the home location information of the first electronic device according to the first identification information, and obtain the home location information of the second electronic device according to the second identification information;
  • the determining unit 2022 is configured to determine that the first electronic device and the second electronic device have interactive attributes when the home location information of the first electronic device matches the home location information of the second electronic device .
  • the obtaining unit 2021 is configured to:
  • the obtaining unit 2021 is used to:
  • the first identification information retrieve the pre-stored historical location information of the first electronic device, and determine the home location information of the first electronic device according to the historical location information of the first electronic device
  • the second identification information retrieves pre-stored historical location information of the second electronic device, and determines the home location information of the second electronic device according to the historical location information of the second electronic device.
  • the pushing module 203 includes:
  • the inquiry unit 2031 is configured to send an inquiry message to the first electronic device when the first electronic device and the second electronic device have interactive attributes, and the inquiry message is used to inquire whether the user agrees to share the information.
  • the target device to the second electronic device;
  • the receiving unit 2032 is configured to receive a response message sent by the first electronic device in response to the inquiry message
  • the pushing unit 2033 is configured to push a sharing message to the second electronic device when the response message indicates that the user agrees to sharing.
  • the server 200 can implement each process implemented by the server in the method embodiment in FIG.
  • the server 200 in the embodiment of the present invention can acquire at least one first target information of the first electronic device and at least one second target information of the second electronic device, and according to the at least one first target information and the at least one first target information Two target information, judging whether the first electronic device and the second electronic device have interactive attributes, and in the case that the first electronic device and the second electronic device have interactive attributes,
  • the electronic device pushes a sharing message, and the sharing message is used to share the use authority of the target device with the second electronic device, so that automatic sharing of the device can be realized without receiving user input, which can improve the sharing time of the device. Sharing efficiency.
  • FIG. 5 is a structural diagram of a server provided by an embodiment of the present invention.
  • the server 500 includes: a processor 501, a transceiver 502, a memory 503, a user interface 504, and a bus interface, in which:
  • the processor 501 is configured to read a program in the memory 503 and execute the following process:
  • a sharing message is pushed to the second electronic device, and the sharing message is used to share the target device with the second electronic device Permission to use.
  • the transceiver 502 is used to receive and send data under the control of the processor 501.
  • the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 501 and various circuits of the memory represented by the memory 503 are linked together.
  • the bus architecture can also link various other circuits such as peripherals, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein.
  • the bus interface provides the interface.
  • the transceiver 502 may be a plurality of elements, including a transmitter and a receiver, and provide a unit for communicating with various other devices on the transmission medium.
  • the user interface 504 may also be an interface capable of connecting externally and internally with the required equipment.
  • the connected equipment includes but not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
  • the processor 501 is responsible for managing the bus architecture and general processing, and the memory 503 can store data used by the processor 501 when performing operations.
  • the at least one piece of first target information includes: first router information, where the first router information is used to identify a router that is communicatively connected to the first electronic device, and the at least one piece of second target information includes: Second router information, where the second router information is used to identify a router communicatively connected with the second electronic device;
  • the determining whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information performed by the processor 501 includes:
  • the first router information matches the second router information, it is determined that the first electronic device and the second electronic device have interactive attributes.
  • the at least one first target information includes: first location information, the first location information is used to indicate the current location of the first electronic device, and the at least one second target information includes: Second location information, where the second location information is used to indicate the current location of the second electronic device;
  • the determining whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information performed by the processor 501 includes:
  • first location information and the second location information match, it is determined that the first electronic device and the second electronic device have interactive attributes.
  • the at least one first target information includes: first identification information, the first identification information is used to identify the first electronic device, and the at least one second target information includes: second identification information, The second identification information is used to identify the second electronic device;
  • the determining whether the first electronic device and the second electronic device have interactive attributes according to the at least one first target information and the at least one second target information performed by the processor 501 includes:
  • the home location information of the first electronic device matches the home location information of the second electronic device, it is determined that the first electronic device and the second electronic device have interactive attributes.
  • the processor 501 obtains the home location information of the first electronic device according to the first identification information, and obtains the home location information of the second electronic device according to the second identification information.
  • Information including:
  • the first identification information retrieve the pre-stored historical location information of the first electronic device, and determine the home location information of the first electronic device according to the historical location information of the first electronic device
  • the second identification information retrieves pre-stored historical location information of the second electronic device, and determines the home location information of the second electronic device according to the historical location information of the second electronic device.
  • the execution of the processor 501 to push a sharing message to the second electronic device when the first electronic device and the second electronic device have interactive attributes includes:
  • an inquiry message is sent to the first electronic device through the transceiver 502, and the inquiry message is used to inquire whether the user agrees to share the target Device to the second electronic device;
  • the sharing message is pushed to the second electronic device through the transceiver 502.
  • the server 500 can implement each process implemented by the server in the foregoing embodiment, and can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
  • the server 500 can obtain at least one piece of first target information of the first electronic device and at least one piece of second target information of the second electronic device, according to the at least one piece of first target information and the at least one piece of second target information.
  • the second target information is used to determine whether the first electronic device and the second electronic device have interactive attributes, and in the case that the first electronic device and the second electronic device have interactive attributes, report to the first electronic device 2.
  • the electronic device pushes a sharing message, the sharing message is used to share the use authority of the target device with the second electronic device, so that automatic sharing of the device can be realized without receiving user input, which can improve device sharing Time sharing efficiency.
  • An embodiment of the present invention also provides a server, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and the computer program is executed by the processor to realize the above-mentioned device sharing Method steps.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned device sharing method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable the server to execute the method described in each embodiment of the present invention.
  • the program can be stored in a computer readable storage medium. When executed, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • modules, units, and sub-units can be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (Digital Signal Processor, DSP), and digital signal processing equipment (DSP Device, DSPD). ), programmable logic devices (Programmable Logic Device, PLD), Field-Programmable Gate Array (FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, used to implement this disclosure Other electronic units or a combination of the functions described above.
  • ASIC application specific integrated circuits
  • DSP Digital Signal Processor
  • DSP Device digital signal processing equipment
  • DSPD digital signal processing equipment
  • PLD programmable logic devices
  • FPGA Field-Programmable Gate Array
  • the technology described in the embodiments of the present disclosure can be implemented by modules (for example, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure.
  • the software codes can be stored in the memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供一种设备分享方法及服务器,该方法应用于服务器,包括:获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,所述第一电子设备为对目标设备具有管理权限的电子设备;根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性;在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限。

Description

设备分享方法及服务器
相关申请的交叉引用
本申请主张在2020年3月9日在中国提交的中国专利申请号No.202010155889.6的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及物联网技术领域,尤其涉及一种设备分享方法及服务器。
背景技术
随着物联网技术的发展,智能家居逐渐进入人们的生活。智能家居通过物联网技术将目标场所(例如,住宅或办公室)的各种设备连接到一起,使用户可以通过操作电子设备实现对这些设备的控制。
通过电子设备控制某一设备之前,一般需要将该设备添加至电子设备的设备列表。日常生活中,有时会出现多个用户均需控制某一设备的情形,此时,这些用户均需要先添加该设备至他们的电子设备的设备列表,为了提高添加设备的效率,现有技术允许已经添加有目标设备的用户将目标设备直接分享给其他用户。
现有的设备分享方案主要包括二维码扫码分享方案和指定账号分享方案,二维码扫码分享方案要求已添加有目标设备的用户先选中待分享的目标设备,然后点击分享按钮以生成对应二维码,最后将该二维码出示或以图片形式发送给待分享的其他用户实现分享;而指定账号分享方案要求已添加有目标设备的用户先选中待分享的目标设备,然后点击分享按钮,接着输入待分享的用户的账号,再点击确定分享按钮实现分享。
由于采用现有的设备分享方案时,需要先后接收用户的多次输入方可实现分享,从而导致设备分享的效率较低。
发明内容
本发明实施例提供一种设备分享方法及服务器,以解决现有的设备分享 方案存在设备分享的效率较低的问题。
为解决上述技术问题,本发明实施例是这样实现的:
第一方面,本发明实施例提供了一种设备分享方法,应用于服务器,包括:
获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,所述第一电子设备为对目标设备具有管理权限的电子设备;
根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性;
在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限。
第二方面,本发明实施例还提供一种服务器,包括:
获取模块,用于获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,所述第一电子设备为对目标设备具有管理权限的电子设备;
判断模块,用于根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性;
推送模块,用于在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限。
第三方面,本发明实施例还提供一种服务器,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述设备分享方法的步骤。
第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述设备分享方法的步骤。
第五方面,本发明实施例还提供了一种计算机软件产品,所述计算机软件产品被存储在非易失的存储介质中,所述软件产品被配置成被至少一个处理器执行以实现上述设备分享方法的步骤。
第六方面,本发明实施例还提供了一种服务器,所述服务器被配置成用于执行上述设备分享方法。
在本发明实施例中,由于服务器能够获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性,并在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限,从而无需接收用户的输入,就能够实现设备的自动分享,这样,能够提高设备分享时的分享效率。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本发明一实施例提供的设备分享方法的流程图;
图2是本发明一实施例提供的服务器的结构图;
图3是本发明一实施例提供的服务器中的判断模块的结构图;
图4是本发明一实施例提供的服务器中的推送模块的结构图;
图5是本发明另一实施例提供的服务器的结构图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
如图1所示,本发明实施例提供一种设备分享方法,应用于服务器,该设备分享方法包括以下步骤:
步骤101、获取第一电子设备的至少一个第一目标信息和第二电子设备 的至少一个第二目标信息,所述第一电子设备为对目标设备具有管理权限的电子设备。
本发明实施例中,上述第一电子设备可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。
上述至少一个第一目标信息可以包括以下至少之一:第一路由器信息、第一位置信息、第一识别信息。其中,第一路由器信息可以用于识别与所述第一电子设备通信连接的路由器;第一位置信息可以用于指示所述第一电子设备当前所处的位置,第一识别信息可以用于识别所述第一电子设备。
上述第二电子设备可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。
上述至少一个第二目标信息可以包括以下至少之一:第二路由器信息、第二位置信息、第二识别信息。其中,第二路由器信息可以用于识别与所述第二电子设备通信连接的路由器,第二位置信息可以用于指示所述第二电子设备当前所处的位置,第二识别信息可以用于识别所述第二电子设备。
上述目标设备可以是电视、空调、洗衣机、音箱、窗帘、灯具、门、监控器、路由器或电脑等各类设备。
步骤102、根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性。
本发明实施例中,根据至少一个第一目标信息和至少一个第二目标信息的不同,步骤102可以具有不同表现形式,举例说明如下:
举例一
可选的,所述至少一个第一目标信息包括:第一路由器信息,所述第一路由器信息用于识别与所述第一电子设备通信连接的路由器,所述至少一个第二目标信息包括:第二路由器信息,所述第二路由器信息用于识别与所述第二电子设备通信连接的路由器;
所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
在所述第一路由器信息与所述第二路由器信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
此处,第一路由器信息可以包括与第一电子设备通信连接的路由器的标识,此处,标识可以是名称和/或编码。第二路由器信息可以包括与第二电子设备通信连接的路由器的标识,此处,标识可以是名称和/或编码。
上述第一路由器信息与所述第二路由器信息匹配可以理解为:第一路由器信息对应的路由器与第二路由器信息对应的路由器为同一路由器。
由于基于第一电子设备和第二电子设备是否连接了同一路由器来判断第一电子设备与第二电子设备是否具有互动属性,从而能够使得互动属性的判断更加简单、方便。
举例二
可选的,所述至少一个第一目标信息包括:第一位置信息,所述第一位置信息用于指示所述第一电子设备当前所处的位置,所述至少一个第二目标信息包括:第二位置信息,所述第二位置信息用于指示所述第二电子设备当前所处的位置;
所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
在所述第一位置信息和所述第二位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
此处,第一位置信息可以包括:第一电子设备当前所处位置的位置名称和/或经纬度。第二位置信息可以包括:第二电子设备当前所处位置的位置名称和/或经纬度。
上述第一位置信息和所述第二位置信息匹配可以理解为:第一位置信息指示的位置与第二位置信息指示的位置为同一位置。
由于基于第一电子设备和第二电子设备当前是否处于同一位置来判断第一电子设备与第二电子设备是否具有互动属性,从而能够使得互动属性的判断更加简单、准确。
举例三
可选的,所述至少一个第一目标信息包括:第一识别信息,所述第一识别信息用于识别所述第一电子设备,所述至少一个第二目标信息包括:第二识别信息,所述第二识别信息用于识别所述第二电子设备;
所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
根据所述第一识别信息,获取所述第一电子设备的家庭位置信息,且根据所述第二识别信息,获取所述第二电子设备的家庭位置信息;
在所述第一电子设备的家庭位置信息与所述第二电子设备的家庭位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
此处,第一识别信息可以包括:第一电子设备的国际移动设备识别码(International Mobile Equipment Identity,IMEI)和/或第一电子设备的名称。第二识别信息可以包括:第二电子设备的IMEI和/或第二电子设备的名称。
上述第一电子设备的家庭位置信息可以指第一电子设备对应的家庭位置的位置信息;其中,第一电子设备对应的家庭位置可以是第一电子设备的历史位置(历史位置可以包括一个或多个位置)中出现频率最高的位置,也可以是第一电子设备的用户设定的位置;位置信息可以包括位置名称和/或经纬度。
上述第二电子设备的家庭位置信息可以指第二电子设备对应的家庭位置的位置信息;其中,第二电子设备对应的家庭位置可以是第二电子设备的历史位置(历史位置可以包括一个或多个位置)中出现频率最高的位置,也可以是第二电子设备的用户设定的位置;位置信息可以包括位置名称和/或经纬度。
需要说明的是,在实际应用中,上述根据所述第一识别信息,获取所述第一电子设备的家庭位置信息,且根据所述第二识别信息,获取所述第二电子设备的家庭位置信息,包括:
根据所述第一识别信息,调取预先存储的所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的家庭位置信息;或者,
根据所述第一识别信息,调取预先存储的所述第一电子设备的历史位置信息,并根据所述第一电子设备的历史位置信息确定所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的历史位置信息,并根据所述第二电子设备的历史位置信息确定所述第二电子设备的家庭位置信息。
此处,历史位置信息可以包括历史位置的位置信息,其中,历史位置可以包括一个或多个位置,位置信息可以包括位置名称和/或经纬度。
上述根据所述第一电子设备的历史位置信息确定所述第一电子设备的家庭位置信息可以是:根据第一电子设备的历史位置信息,确定第一电子设备的历史位置中出现频率最高的位置,将第一电子设备的历史位置中出现频率最高的位置的位置信息确定为第一设备的家庭位置信息。
同样的,上述根据所述第二电子设备的历史位置信息确定所述第二电子设备的家庭位置信息可以是:根据第二电子设备的历史位置信息,确定第二电子设备的历史位置中出现频率最高的位置,将第二电子设备的历史位置中出现频率最高的位置的位置信息确定为第二设备的家庭位置信息。
这样,根据用于识别电子设备的识别信息,直接调取预先存储的电子设备的家庭位置信息时,能够使得电子设备的家庭位置信息的获取速度更快。
这样,根据用于识别电子设备的识别信息,调取预先存储的电子设备的历史位置信息,并根据历史位置信息确定电子设备的家庭位置信息时,能够使得获得的家庭位置信息的时效性更好。
由于基于第一电子设备和第二电子设备的家庭位置是否相同来判断第一电子设备与第二电子设备是否具有互动属性,从而能够使得互动属性的判断更加准确。
举例四
所述至少一个第一目标信息包括:第一路由器信息、第一位置信息和第一识别信息,所述第一路由器信息用于识别与所述第一电子设备通信连接的路由器,所述第一位置信息用于指示所述第一电子设备当前所处的位置,所述第一识别信息用于识别所述第一电子设备;所述至少一个第二目标信息包括:第二路由器信息、第二位置信息和第二识别信息,所述第二路由器信息 用于识别与所述第二电子设备通信连接的路由器,所述第二位置信息用于指示所述第二电子设备当前所处的位置,所述第二识别信息用于识别所述第二电子设备;
所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
在所述第一路由器信息与所述第二路由器信息匹配、所述第一位置信息与所述第二位置信息匹配且根据所述第一识别信息获取的所述第一电子设备的家庭位置信息与根据所述第二识别信息获取的所述第二电子设备的家庭位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
其中,关于上述第一路由器信息、第一位置信息、第一识别信息、第二路由器信息、第二位置信息、第二识别信息、第一电子设备的家庭位置信息以及第二电子设备的家庭位置信息等的说明均可以参见前文中相应部分的解释,此处不再赘述。
由于可基于第一电子设备和第二电子设备是否连接了同一路由器、第一电子设备和第二电子设备当前是否处于同一位置以及第一电子设备和第二电子设备的家庭位置是否相同共同来判断第一电子设备与第二电子设备是否具有互动属性,从而能够使得互动属性的判断更加准确。
步骤103、在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限。
在本发明实施例中,由于服务器能够获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,并在所述第一电子设备与第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限,从而无需接收用户的输入,就能够实现设备的自动分享,这样,能够提高设备分享时的分享效率。
可选的,所述在所述第一电子设备与第二电子设备具有互动属性的情况 下,向所述第二电子设备推送分享消息,包括:
在所述第一电子设备与第二电子设备具有互动属性的情况下,向所述第一电子设备发送询问消息,所述询问消息用于询问用户是否同意分享所述目标设备给所述第二电子设备;
接收所述第一电子设备响应于所述询问消息发送的响应消息;
在所述响应消息指示用户同意分享的情况下,向所述第二电子设备推送分享消息。
上述是否同意分享所述目标设备具体可以理解为:是否同意分享所述目标设备的使用权限。
由于只有在第一电子设备的用户同意分享的情况下,才会向第二电子设备推送分享消息,从而能够进一步提高设备分享的安全性。
参见图2,图2是本发明实施例提供的服务器200的结构图,如图2所示,服务器200包括:
获取模块201,用于获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,所述第一电子设备为对目标设备具有管理权限的电子设备;
判断模块202,用于根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性;
推送模块203,用于在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限。
可选的,所述至少一个第一目标信息包括:第一路由器信息,所述第一路由器信息用于识别与所述第一电子设备通信连接的路由器,所述至少一个第二目标信息包括:第二路由器信息,所述第二路由器信息用于识别与所述第二电子设备通信连接的路由器;
所述判断模块202用于:
在所述第一路由器信息与所述第二路由器信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
可选的,所述至少一个第一目标信息包括:第一位置信息,所述第一位 置信息用于指示所述第一电子设备当前所处的位置,所述至少一个第二目标信息包括:第二位置信息,所述第二位置信息用于指示所述第二电子设备当前所处的位置;
所述判断模块202用于:
在所述第一位置信息和所述第二位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
可选的,所述至少一个第一目标信息包括:第一识别信息,所述第一识别信息用于识别所述第一电子设备,所述至少一个第二目标信息包括:第二识别信息,所述第二识别信息用于识别所述第二电子设备;
如图3所示,所述判断模块202包括:
获取单元2021,用于根据所述第一识别信息,获取所述第一电子设备的家庭位置信息,且根据所述第二识别信息,获取所述第二电子设备的家庭位置信息;
判断单元2022,用于在所述第一电子设备的家庭位置信息与所述第二电子设备的家庭位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
可选的,所述获取单元2021用于:
根据所述第一识别信息,调取预先存储的所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的家庭位置信息;或者,
所述获取单元2021用于:
根据所述第一识别信息,调取预先存储的所述第一电子设备的历史位置信息,并根据所述第一电子设备的历史位置信息确定所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的历史位置信息,并根据所述第二电子设备的历史位置信息确定所述第二电子设备的家庭位置信息。
可选的,如图4所示,所述推送模块203包括:
询问单元2031,用于在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第一电子设备发送询问消息,所述询问消息用于询问 用户是否同意分享所述目标设备给所述第二电子设备;
接收单元2032,用于接收所述第一电子设备响应于所述询问消息发送的响应消息;
推送单元2033,用于在所述响应消息指示用户同意分享的情况下,向所述第二电子设备推送分享消息。
服务器200能够实现图1的方法实施例中服务器实现的各个过程,为避免重复,这里不再赘述。
本发明实施例的服务器200,由于能够获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性,并在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限,从而无需接收用户的输入,就能够实现设备的自动分享,这样,能够提高设备分享时的分享效率。
请参阅图5,图5是本发明实施例提供的服务器的结构图,如图5所示,服务器500包括:处理器501、收发机502、存储器503、用户接口504和总线接口,其中:
处理器501,用于读取存储器503中的程序,执行下列过程:
获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,所述第一电子设备为对目标设备具有管理权限的电子设备;
根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性;
在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限。
其中,收发机502,用于在处理器501的控制下接收和发送数据。
在图5中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器501代表的一个或多个处理器和存储器503代表的存储器的各种电路链接 在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机502可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。针对不同的用户设备,用户接口504还可以是能够外接内接需要设备的接口,连接的设备包括但不限于小键盘、显示器、扬声器、麦克风、操纵杆等。
处理器501负责管理总线架构和通常的处理,存储器503可以存储处理器501在执行操作时所使用的数据。
可选的,所述至少一个第一目标信息包括:第一路由器信息,所述第一路由器信息用于识别与所述第一电子设备通信连接的路由器,所述至少一个第二目标信息包括:第二路由器信息,所述第二路由器信息用于识别与所述第二电子设备通信连接的路由器;
处理器501执行的所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
在所述第一路由器信息与所述第二路由器信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
可选的,所述至少一个第一目标信息包括:第一位置信息,所述第一位置信息用于指示所述第一电子设备当前所处的位置,所述至少一个第二目标信息包括:第二位置信息,所述第二位置信息用于指示所述第二电子设备当前所处的位置;
处理器501执行的所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
在所述第一位置信息和所述第二位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
可选的,所述至少一个第一目标信息包括:第一识别信息,所述第一识别信息用于识别所述第一电子设备,所述至少一个第二目标信息包括:第二识别信息,所述第二识别信息用于识别所述第二电子设备;
处理器501执行的所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
根据所述第一识别信息,获取所述第一电子设备的家庭位置信息,且根据所述第二识别信息,获取所述第二电子设备的家庭位置信息;
在所述第一电子设备的家庭位置信息与所述第二电子设备的家庭位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
可选的,处理器501执行的所述根据所述第一识别信息,获取所述第一电子设备的家庭位置信息,且根据所述第二识别信息,获取所述第二电子设备的家庭位置信息,包括:
根据所述第一识别信息,调取预先存储的所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的家庭位置信息;或者,
根据所述第一识别信息,调取预先存储的所述第一电子设备的历史位置信息,并根据所述第一电子设备的历史位置信息确定所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的历史位置信息,并根据所述第二电子设备的历史位置信息确定所述第二电子设备的家庭位置信息。
可选的,处理器501执行的所述在所述第一电子设备与第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,包括:
在所述第一电子设备与所述第二电子设备具有互动属性的情况下,通过收发机502向所述第一电子设备发送询问消息,所述询问消息用于询问用户是否同意分享所述目标设备给所述第二电子设备;
通过收发机502接收所述第一电子设备响应于所述询问消息发送的响应消息;
在所述响应消息指示用户同意分享的情况下,通过收发机502向所述第二电子设备推送分享消息。
服务器500能够实现前述实施例中服务器实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例中的服务器500,由于能够获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性,并在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限,从而无需接收用户的输入,就能够实现设备的自动分享,这样,能够提高设备分享时的分享效率。
本发明实施例还提供一种服务器,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述设备分享方法的步骤。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述设备分享方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一 些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得服务器执行本发明各个实施例所述的方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,RAM)等。
可以理解的是,本公开实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,模块、单元、子单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本公开所述功能的其它电子单元或其组合中。
对于软件实现,可通过执行本公开实施例所述功能的模块(例如过程、函数等)来实现本公开实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (16)

  1. 一种设备分享方法,应用于服务器,包括:
    获取第一电子设备的至少一个第一目标信息和第二电子设备的至少一个第二目标信息,所述第一电子设备为对目标设备具有管理权限的电子设备;
    根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性;
    在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限。
  2. 根据权利要求1所述的方法,其中,所述至少一个第一目标信息包括:第一路由器信息,所述第一路由器信息用于识别与所述第一电子设备通信连接的路由器,所述至少一个第二目标信息包括:第二路由器信息,所述第二路由器信息用于识别与所述第二电子设备通信连接的路由器;
    所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
    在所述第一路由器信息与所述第二路由器信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
  3. 根据权利要求1所述的方法,其中,所述至少一个第一目标信息包括:第一位置信息,所述第一位置信息用于指示所述第一电子设备当前所处的位置,所述至少一个第二目标信息包括:第二位置信息,所述第二位置信息用于指示所述第二电子设备当前所处的位置;
    所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
    在所述第一位置信息和所述第二位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
  4. 根据权利要求1所述的方法,其中,所述至少一个第一目标信息包括:第一识别信息,所述第一识别信息用于识别所述第一电子设备,所述至少一个第二目标信息包括:第二识别信息,所述第二识别信息用于识别所述第二 电子设备;
    所述根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与第二电子设备是否具有互动属性,包括:
    根据所述第一识别信息,获取所述第一电子设备的家庭位置信息,且根据所述第二识别信息,获取所述第二电子设备的家庭位置信息;
    在所述第一电子设备的家庭位置信息与所述第二电子设备的家庭位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
  5. 根据权利要求4所述的方法,其中,所述根据所述第一识别信息,获取所述第一电子设备的家庭位置信息,且根据所述第二识别信息,获取所述第二电子设备的家庭位置信息,包括:
    根据所述第一识别信息,调取预先存储的所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的家庭位置信息;或者,
    根据所述第一识别信息,调取预先存储的所述第一电子设备的历史位置信息,并根据所述第一电子设备的历史位置信息确定所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的历史位置信息,并根据所述第二电子设备的历史位置信息确定所述第二电子设备的家庭位置信息。
  6. 根据权利要求1所述的方法,其中,所述在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,包括:
    在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第一电子设备发送询问消息,所述询问消息用于询问用户是否同意分享所述目标设备给所述第二电子设备;
    接收所述第一电子设备响应于所述询问消息发送的响应消息;
    在所述响应消息指示用户同意分享的情况下,向所述第二电子设备推送分享消息。
  7. 一种服务器,包括:
    获取模块,用于获取第一电子设备的至少一个第一目标信息和第二电子 设备的至少一个第二目标信息,所述第一电子设备为对目标设备具有管理权限的电子设备;
    判断模块,用于根据所述至少一个第一目标信息和所述至少一个第二目标信息,判断所述第一电子设备与所述第二电子设备是否具有互动属性;
    推送模块,用于在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第二电子设备推送分享消息,所述分享消息用于向所述第二电子设备分享所述目标设备的使用权限。
  8. 根据权利要求7所述的服务器,其中,所述至少一个第一目标信息包括:第一路由器信息,所述第一路由器信息用于识别与所述第一电子设备通信连接的路由器,所述至少一个第二目标信息包括:第二路由器信息,所述第二路由器信息用于识别与所述第二电子设备通信连接的路由器;
    所述判断模块用于:
    在所述第一路由器信息与所述第二路由器信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
  9. 根据权利要求7所述的服务器,其中,所述至少一个第一目标信息包括:第一位置信息,所述第一位置信息用于指示所述第一电子设备当前所处的位置,所述至少一个第二目标信息包括:第二位置信息,所述第二位置信息用于指示所述第二电子设备当前所处的位置;
    所述判断模块用于:
    在所述第一位置信息和所述第二位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
  10. 根据权利要求7所述的服务器,其中,所述至少一个第一目标信息包括:第一识别信息,所述第一识别信息用于识别所述第一电子设备,所述至少一个第二目标信息包括:第二识别信息,所述第二识别信息用于识别所述第二电子设备;
    所述判断模块包括:
    获取单元,用于根据所述第一识别信息,获取所述第一电子设备的家庭位置信息,且根据所述第二识别信息,获取所述第二电子设备的家庭位置信息;
    判断单元,用于在所述第一电子设备的家庭位置信息与所述第二电子设备的家庭位置信息匹配的情况下,判定所述第一电子设备与所述第二电子设备具有互动属性。
  11. 根据权利要求10所述的服务器,其中,所述获取单元用于:
    根据所述第一识别信息,调取预先存储的所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的家庭位置信息;或者
    所述获取单元用于:
    根据所述第一识别信息,调取预先存储的所述第一电子设备的历史位置信息,并根据所述第一电子设备的历史位置信息确定所述第一电子设备的家庭位置信息,且根据所述第二识别信息,调取预先存储的所述第二电子设备的历史位置信息,并根据所述第二电子设备的历史位置信息确定所述第二电子设备的家庭位置信息。
  12. 根据权利要求7所述的服务器,其中,所述推送模块包括:
    询问单元,用于在所述第一电子设备与所述第二电子设备具有互动属性的情况下,向所述第一电子设备发送询问消息,所述询问消息用于询问用户是否同意分享所述目标设备给所述第二电子设备;
    接收单元,用于接收所述第一电子设备响应于所述询问消息发送的响应消息;
    推送单元,用于在所述响应消息指示用户同意分享的情况下,向所述第二电子设备推送分享消息。
  13. 一种服务器,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的设备分享方法的步骤。
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的设备分享方法的步骤。
  15. 一种计算机软件产品,所述计算机软件产品被存储在非易失的存储介质中,所述软件产品被配置成被至少一个处理器执行以实现如权利要求1 至6中任一项所述的设备分享方法的步骤。
  16. 一种服务器,所述服务器被配置成用于执行如权利要求1至6中任一项所述的设备分享方法。
PCT/CN2021/078587 2020-03-09 2021-03-02 设备分享方法及服务器 WO2021179944A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010155889.6 2020-03-09
CN202010155889.6A CN111404788A (zh) 2020-03-09 2020-03-09 一种设备分享方法及服务器

Publications (1)

Publication Number Publication Date
WO2021179944A1 true WO2021179944A1 (zh) 2021-09-16

Family

ID=71428602

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/078587 WO2021179944A1 (zh) 2020-03-09 2021-03-02 设备分享方法及服务器

Country Status (2)

Country Link
CN (1) CN111404788A (zh)
WO (1) WO2021179944A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992465A (zh) * 2021-09-29 2022-01-28 青岛海尔科技有限公司 电器设备的控制方法、装置和云平台

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404788A (zh) * 2020-03-09 2020-07-10 维沃移动通信有限公司 一种设备分享方法及服务器

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209800A (zh) * 2016-06-30 2016-12-07 北京小米移动软件有限公司 设备权限共享方法和装置
CN107948926A (zh) * 2017-11-02 2018-04-20 北京小米移动软件有限公司 智能设备分享的方法和装置
CN108694306A (zh) * 2017-03-29 2018-10-23 三星电子株式会社 管理和控制外部物联网设备的方法和支持其的电子设备
CN108809968A (zh) * 2018-05-28 2018-11-13 北京小米移动软件有限公司 设备共享方法、装置及存储介质
CN111404788A (zh) * 2020-03-09 2020-07-10 维沃移动通信有限公司 一种设备分享方法及服务器

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079565A (zh) * 2014-06-13 2014-10-01 小米科技有限责任公司 授权方法和装置
CN105119875B (zh) * 2015-06-24 2019-03-08 深圳市海蕴新能源有限公司 一种智能设备的授权方法和装置
CN106096343B (zh) * 2016-05-27 2019-09-13 腾讯科技(深圳)有限公司 消息访问控制方法及设备
CN106992989B (zh) * 2017-05-17 2020-06-23 广东美的制冷设备有限公司 智能家居的分享授权方法、服务器及可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209800A (zh) * 2016-06-30 2016-12-07 北京小米移动软件有限公司 设备权限共享方法和装置
CN108694306A (zh) * 2017-03-29 2018-10-23 三星电子株式会社 管理和控制外部物联网设备的方法和支持其的电子设备
CN107948926A (zh) * 2017-11-02 2018-04-20 北京小米移动软件有限公司 智能设备分享的方法和装置
CN108809968A (zh) * 2018-05-28 2018-11-13 北京小米移动软件有限公司 设备共享方法、装置及存储介质
CN111404788A (zh) * 2020-03-09 2020-07-10 维沃移动通信有限公司 一种设备分享方法及服务器

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992465A (zh) * 2021-09-29 2022-01-28 青岛海尔科技有限公司 电器设备的控制方法、装置和云平台
CN113992465B (zh) * 2021-09-29 2023-10-24 青岛海尔科技有限公司 电器设备的控制方法、装置和云平台

Also Published As

Publication number Publication date
CN111404788A (zh) 2020-07-10

Similar Documents

Publication Publication Date Title
CN108280367B (zh) 数据操作权限的管理方法、装置、计算设备及存储介质
US10666594B2 (en) Proactive intelligent personal assistant
US11095657B2 (en) Method, apparatus, and computer program product for selectively granting permissions to group-based objects in a group-based communication system
US10200319B2 (en) Searchable peer-to-peer system through instant messaging based topic indexes
US11258800B2 (en) Managing admin controlled access of external resources to group-based communication interfaces via a group-based communication system
WO2021179944A1 (zh) 设备分享方法及服务器
CN107133309B (zh) 流程实例的存储、查询方法及装置、存储介质及电子设备
JP2010517143A (ja) ユーザーインターフェースの表示を管理する方法
CN109670297A (zh) 业务权限的开通方法、装置、存储介质及电子设备
WO2020119476A1 (zh) 联盟链信息发布控制方法及终端设备
US10757048B2 (en) Intelligent personal assistant as a contact
CN103475577A (zh) 一种获得特征信息的方法、装置及网络设备
US9912519B2 (en) Transmission management apparatus, transmission system, and computer-readable recording medium
US20130331116A1 (en) Transmitting initiation details from a mobile device
US20190004879A1 (en) Managing a plug-in application recipe via an interface
JP5723413B2 (ja) リモートネットワーク接続方法、及びリモートネットワーク接続システム
TW201637415A (zh) 用於大型會議的橋接裝置
KR20200091080A (ko) 공유 사무실에 관한 서비스를 제공하는 방법
WO2021057064A1 (zh) 基于人工智能的数据交互转换方法、装置、设备及介质
CN114153153A (zh) 设备控制方法、系统、装置、电子设备和存储介质
CN110968367A (zh) 一种电商商品字段配置方法、装置、服务器及存储介质
US9577967B2 (en) Method and system for managing an informational site using a social networking application
US20200053095A1 (en) Systems And Methods For Managing Access Control
US9853691B2 (en) Near field communication technology-based terminal application control method, apparatus, and system
US10778524B2 (en) Method and system of in home wi-fi access point replication

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21767437

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21767437

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.02.23)

122 Ep: pct application non-entry in european phase

Ref document number: 21767437

Country of ref document: EP

Kind code of ref document: A1