WO2021169585A1 - Method for arbitration between devices in local area network environment, electronic devices, and local area network system - Google Patents

Method for arbitration between devices in local area network environment, electronic devices, and local area network system Download PDF

Info

Publication number
WO2021169585A1
WO2021169585A1 PCT/CN2020/141610 CN2020141610W WO2021169585A1 WO 2021169585 A1 WO2021169585 A1 WO 2021169585A1 CN 2020141610 W CN2020141610 W CN 2020141610W WO 2021169585 A1 WO2021169585 A1 WO 2021169585A1
Authority
WO
WIPO (PCT)
Prior art keywords
request
broadcast information
electronic device
area network
local area
Prior art date
Application number
PCT/CN2020/141610
Other languages
French (fr)
Chinese (zh)
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 WO2021169585A1 publication Critical patent/WO2021169585A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1881Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with schedule organisation, e.g. priority, sequence management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present disclosure relates to the technical field of local area networks, and in particular to an arbitration method between devices in a local area network environment, electronic equipment, and a local area network system.
  • a local area network it usually includes multiple electronic devices (such as embedded devices).
  • electronic devices such as embedded devices.
  • the user issues a control command or performs a remote control multiple electronic devices will receive the same request at the same time, but usually the command is for one
  • the command is for one
  • the most suitable equipment should respond and deal with it.
  • At least some of the embodiments of the present disclosure provide an arbitration method between devices in a local area network environment, electronic devices, and a local area network system. It does not need to introduce other server devices or set up cluster nodes, so as to reduce costs and improve applicability.
  • an arbitration method between devices in a local area network environment including:
  • the obtaining the first calculation value for the first request includes at least one of the following manners:
  • the first request being in the form of voice, based on at least one of the volume and the intelligibility of the first request, and the distance between the first request and the first electronic device, it is determined that the The first calculated value of the first request;
  • a first calculation value for the first request is determined.
  • the receiving the second broadcast information broadcast by the second electronic device in the local area network includes:
  • the determining whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information includes:
  • the determining whether the received second broadcast information satisfies an arbitration condition based on the second time includes:
  • the determining whether to execute the first request based on a comparison result of the second calculation value and the first calculation value in the second broadcast information that meets the arbitration condition includes:
  • the first calculation value is greater than the second calculation value in all the second broadcast information, it is determined to execute the first request.
  • an electronic device including:
  • a receiving module configured to receive the first request and store the first time when the first request is received
  • An obtaining module configured to obtain a first calculated value for the first request, where the first calculated value is related to the information attribute in the first request or the processing capability of the first electronic device;
  • a broadcast module configured to broadcast first broadcast information, the first broadcast information including the first time when the first request is received, and the first calculated value;
  • the execution module is configured to receive the second broadcast information broadcast by the second electronic device in the local area network, and determine whether to execute the first request based on the comparison result of the first broadcast information and the second broadcast information.
  • the obtaining the first calculation value for the first request includes at least one of the following manners:
  • the first request being in the form of voice, based on at least one of the volume and the intelligibility of the first request, and the distance between the first request and the first electronic device, it is determined that the The first calculated value of the first request;
  • a first calculation value for the first request is determined.
  • an electronic device including:
  • Set as a memory for storing executable instructions of the processor
  • the processor is configured to call instructions stored in the memory to execute the method described in any one of the first aspect.
  • a local area network system including at least two electronic devices
  • the first electronic device of the at least two electronic devices is configured to execute the above-mentioned arbitration method between devices in the local area network environment.
  • the first calculated value can be calculated according to the received request, and the first calculated value and the first time when the request is received can be broadcast, and the calculated value broadcast by other electronic devices can also be received. And time (the second calculated value and the second time), by comparing the two broadcast messages, it is determined whether to execute the received request. In this way, there is no need to configure server equipment, and no need to select master node equipment, which is simple and convenient, saves costs, and has better applicability.
  • Fig. 1 shows a flowchart of an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure.
  • Fig. 2 shows a flowchart of step S40 in a method for arbitrating between devices in a local area network environment according to an embodiment of the present disclosure.
  • Fig. 3 shows a schematic diagram of an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure.
  • Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • the embodiments of the present disclosure provide an arbitration method between devices in a local area network environment.
  • the execution subject of the method is an electronic device in the local area network.
  • the electronic device may be any household device or terminal device.
  • the electronic device may be a user equipment ( User Equipment, UE), mobile devices, user terminals, terminals, cellular phones, cordless phones, personal digital assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, smart speakers, smart lights, Smart power strips, smart air conditioners, smart fans, etc.
  • the method provided by the embodiments of the present disclosure may be implemented by a processor invoking a computer-readable instruction stored in a memory.
  • Fig. 1 shows a flowchart of an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure. As shown in Fig. 1, the arbitration method between devices in a local area network environment includes:
  • S10 Receive the first request and store the first time when the first request is received
  • S20 Obtain a first calculation value for the first request, where the first calculation value is related to the information attribute in the first request or the processing capability of the first electronic device;
  • S30 Broadcast first broadcast information, where the first broadcast information includes the first time and the first calculated value;
  • S40 Receive second broadcast information broadcast by a second electronic device in the local area network, and determine whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information.
  • the method in the embodiment of the present disclosure can be applied to a local area network, and the local area network can include multiple electronic devices. All the electronic devices in the local area network can execute the method of the embodiment of the present disclosure.
  • the requested electronic device The following uses the first electronic device as an example to describe the method for implementing the embodiments of the present disclosure.
  • the first electronic device may receive a first request, and the first request may be a control command sent by a user to an electronic device in a local area network, or a control command sent to the electronic device through a control device such as a mobile phone.
  • the user can send commands such as "turn on the light”, “turn off the light”, and "adjust temperature” by voice, or can also send control commands through the terminal device.
  • the embodiment of the present disclosure does not specifically limit the content of the first request As long as the content used to interact with the electronic device is included in the embodiment of the present disclosure, and the embodiment of the present disclosure does not specifically limit the form of the first request, for example, it may be in the form of a voice or a control signal.
  • the electronic device in the local area network When the electronic device in the local area network receives the first request, it can simultaneously obtain the time when the first request is received, that is, the first time, and can store the first time and the first request, for example, in a memory Cache, or it can be stored in a fixed storage address.
  • the first calculated value for the first request may be obtained based on the first request.
  • the first calculated value is a value related to the information attribute in the first request, or may also be related to the first request.
  • the information attribute may include at least one of the following information: the volume value and clarity of the first request, the distance between the device making the first request or the user and the first electronic device, and the data processing capability of the first electronic device It can include values such as memory size and CPU usage.
  • the embodiments of the present disclosure may be based on at least one of the volume and clarity of the first request, and the distance between the first request and the first electronic device One is to determine the first calculated value for the first request.
  • the first electronic device may be provided with a volume detector, or may also be provided with other devices capable of determining the voice information of the first request, such as a sound wave sensor, and the first calculated value of the volume value for the first request can be obtained through the foregoing device.
  • the first electronic device in the embodiment of the present disclosure may also determine the distance between the sender of the first request and the first electronic device according to the received sound signal of the first request.
  • a neural network may be configured in the first electronic device, and the neural network can detect information such as the volume and clarity of the input first hydrogen gas, the distance between the user or the device making the first request, and so on to obtain the corresponding first hydrogen gas. Calculated.
  • the embodiment of the present disclosure may also determine the first calculation value for the first request based on at least one of the memory and CPU occupancy rate of the first electronic device.
  • at least one of the memory and CPU usage of the first electronic device may also be used to measure the data processing capability of the first electronic device.
  • the memory or CPU usage may be determined as the first calculated value, This disclosure does not specifically limit this.
  • first broadcast information may be generated, and the first broadcast information may include the first time when the first request is received, and the first calculated value corresponding to the first request.
  • the first broadcast information can be transmitted in the local area network, and other electronic devices (collectively referred to as second electronic devices) in the local area network can receive the first broadcast information.
  • the first electronic device may also receive the second broadcast information broadcast by the second electronic device in the local area network.
  • the first broadcast information may be the second time based on the received request by the second electronic device and corresponding to the request. The second calculated value.
  • the embodiments of the present disclosure may receive the second broadcast information broadcast by other electronic devices (second electronic devices) upon receiving the first request, or may receive the second broadcast information within a preset time after the first broadcast information is sent.
  • the preset time can be 1 second, or other time values, which can be specifically set according to requirements.
  • the first broadcast information and the second broadcast information may be compared, and whether to perform the first requested arbitration is determined according to the comparison result.
  • Fig. 2 shows a flowchart of step S40 in an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure. Based on the comparison result of the first broadcast information and the second broadcast information, it is determined whether to execute the The first request includes:
  • S43 Determine whether to execute the first request based on a comparison result of the second calculation value and the first calculation value in the second broadcast information that meets the arbitration condition.
  • the second time and the second calculated value of the second request may be read from the second broadcast information.
  • the second electronic device is also The corresponding second calculation value can be generated when the request information (second request) is received, and the second broadcast information can be generated using the second time when the second request is received and the calculated second calculation value for the second request , And broadcast the second broadcast information in the local area network. Therefore, the second time and the second calculated value can be parsed in the second broadcast information.
  • the embodiment of the present disclosure can first use the first time in the first broadcast information and the second time in the second broadcast information to determine the second time.
  • the embodiment of the present disclosure may determine that the second broadcast information satisfies the arbitration condition when the interval between the first time and the second time is less than the time threshold. That is, when the time interval between the second time when the second electronic device receives the second request and the first time when the first electronic device receives the first request is less than the time threshold, the first request and the second request can be determined
  • the request is the same request, and the time threshold may be 1s, or may be a value less than 5s, which is not specifically limited in the present disclosure.
  • the present disclosure may determine the electronic device corresponding to the smallest calculated value as the electronic device that executes the first request.
  • the electronic device corresponding to the largest calculated value may also be determined as the electronic device that executes the first request. Therefore, it is possible to compare the first calculation value with the second calculation value in the second broadcast information meeting the arbitration condition, and determine whether to perform the operation corresponding to the first request based on the comparison result.
  • the electronic device with the highest volume and the best resolution may be determined as the electronic device that executes the first request That is, when the first calculated value is greater than the second calculated value in all the second broadcast information that meets the arbitration condition, it is determined that the first electronic device executes the first request.
  • the electronic device with the smallest distance and the smallest CPU usage rate may be determined as the one that executes the first request.
  • the electronic device may determine that the first electronic device executes the first request when the first calculation value is less than the second calculation value in the second broadcast information that all meets the arbitration condition.
  • Fig. 3 shows a schematic diagram of an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure.
  • each electronic device in the local area network can receive the request, and the request time can be recorded at this time.
  • the first calculated value such as at least one of volume value, distance value, clarity, and CPU memory.
  • the electronic device can initiate a broadcast by the device, and the broadcast content is the received request time and the fast processing value (the first time and the first calculated value).
  • the first electronic device can receive broadcasts (second broadcast information) from other devices.
  • the request time (first time and second time) within 1 second, can be regarded as the same request.
  • the first calculation value and the second calculation value are compared to determine the electronic device that executes the first request.
  • the embodiments of the present disclosure can calculate the first calculation value based on the received request, and can broadcast the first calculation value and the first time when the request is received, and can also receive calculations broadcast by other electronic devices.
  • the value and time (the second calculated value and the second time) are compared to determine whether to execute the received request by comparing two broadcast messages. In this way, there is no need to configure server equipment, and no need to select master node equipment, which is simple and convenient, saves costs, and has better applicability.
  • the embodiments of the present disclosure adopt a lightweight arbitration algorithm, which can meet actual usage requirements, and has simpler logic, less resource occupation, and is more suitable for use by embedded devices.
  • the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possibility.
  • the inner logic is determined.
  • the present disclosure also provides electronic devices, local area network systems, computer-readable storage media, and programs, all of which can be used to implement any arbitration method between devices in a local area network environment provided by the present disclosure.
  • the corresponding technical solutions and descriptions and refer to the methods Part of the corresponding records will not be repeated here.
  • Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present disclosure. As shown in Fig. 4, the electronic device includes:
  • the receiving module 10 is configured to receive the first request and store the first time when the first request is received;
  • the obtaining module 20 is configured to obtain a first calculated value for the first request, where the first calculated value is related to the information attribute in the first request or the processing capability of the first electronic device;
  • the broadcast module 30 is configured to broadcast first broadcast information, the first broadcast information including the first time when the first request is received, and the first calculated value;
  • the execution module 40 is configured to receive second broadcast information broadcast by a second electronic device in the local area network, and determine whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the embodiments of the present disclosure also provide a local area network system, which may include multiple electronic devices.
  • the first electronic device among the plurality of electronic devices is configured to execute the above-mentioned arbitration method between devices in the local area network environment.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above-mentioned method when executed by a processor.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured as the above-mentioned method.
  • a non-volatile computer-readable storage medium such as a memory including computer program instructions, which can be executed by a processor of an electronic device to complete the foregoing method.
  • the present disclosure may be a system, method and/or computer program product.
  • the computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
  • the computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • flash memory flash memory
  • SRAM static random access memory
  • CD-ROM compact disk read-only memory
  • DVD digital versatile disk
  • memory stick floppy disk
  • mechanical encoding device such as a printer with instructions stored thereon
  • the computer-readable storage medium used here is not interpreted as the instantaneous signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
  • the computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • the network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
  • the computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or in one or more programming languages.
  • Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages.
  • Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connect).
  • LAN local area network
  • WAN wide area network
  • an electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions.
  • the computer-readable program instructions are executed to realize various aspects of the present disclosure.
  • These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine that makes these instructions when executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing the instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more components for realizing the specified logical function.
  • Executable instructions may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.

Abstract

The present disclosure relates to a method for arbitration between devices in a local area network environment, electronic devices, and a local area network system. The method comprises: receiving a first request, and storing a first time at which the first request is received; acquiring a first calculated value with regard to the first request, wherein the first calculated value is related to an information attribute in the first request or the processing capability of a first electronic device; broadcasting first broadcast information, wherein the first broadcast information comprises the first time and the first calculated value; and receiving second broadcast information broadcasted by a second electronic device in a local area network, and on the basis of a comparison result between the first broadcast information and the second broadcast information, determining whether to execute the first request. The embodiments of the present disclosure are characterized by a low cost and a good applicability.

Description

局域网环境下设备间的仲裁方法、电子设备、局域网系统Arbitration method between equipment in local area network environment, electronic equipment, local area network system 技术领域Technical field
本公开涉及局域网技术领域,尤其涉及一种局域网环境下设备间的仲裁方法、电子设备、局域网系统。The present disclosure relates to the technical field of local area networks, and in particular to an arbitration method between devices in a local area network environment, electronic equipment, and a local area network system.
背景技术Background technique
在局域网中,通常包括多台电子设备(如嵌入式设备),在用户发出控制指令,或者执行遥控的情况下,多台电子设备会同时收到相同的请求,但是通常该指令是针对一台电子设备的,应当由最合适的设备回应处理。In a local area network, it usually includes multiple electronic devices (such as embedded devices). When the user issues a control command or performs a remote control, multiple electronic devices will receive the same request at the same time, but usually the command is for one For electronic equipment, the most suitable equipment should respond and deal with it.
现有的常见方案,1)使用额外的服务器或设备来裁决,2)依赖集群管理功能,由集群的leader节点来裁决,上述方案都会增加系统成本和减少方案的适用范围。Existing common solutions, 1) use additional servers or equipment to decide, 2) rely on the cluster management function, which is decided by the leader node of the cluster, the above solutions will increase the system cost and reduce the scope of application of the solution.
发明内容Summary of the invention
本公开至少部分实施例提供了一种局域网环境下设备间的仲裁方法、电子设备、局域网系统,既不需要引入其他的服务器设备,也不需要设置集群节点,以减少成本,提高适用性。At least some of the embodiments of the present disclosure provide an arbitration method between devices in a local area network environment, electronic devices, and a local area network system. It does not need to introduce other server devices or set up cluster nodes, so as to reduce costs and improve applicability.
在本公开其中一实施例中,提供了一种局域网环境下设备间的仲裁方法,包括:In one of the embodiments of the present disclosure, an arbitration method between devices in a local area network environment is provided, including:
接收第一请求并存储接收到所述第一请求的第一时间;Receiving the first request and storing the first time when the first request is received;
获取针对所述第一请求的第一计算值,所述第一计算值与所述第一请求中的信息属性或者所述第一电子设备的处理能力相关;Acquiring a first calculation value for the first request, where the first calculation value is related to the information attribute in the first request or the processing capability of the first electronic device;
广播第一广播信息,所述第一广播信息包括所述第一时间,以及所述第一计算值;Broadcasting first broadcast information, where the first broadcast information includes the first time and the first calculated value;
接收局域网内的第二电子设备广播的第二广播信息,基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求。Receiving second broadcast information broadcast by a second electronic device in the local area network, and determining whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information.
在一些可能的实施方式中,所述获取针对所述第一请求的第一计算值, 包括以下方式中的至少一种:In some possible implementation manners, the obtaining the first calculation value for the first request includes at least one of the following manners:
响应于所述第一请求为语音形式,基于所述第一请求的音量、清晰度,以及所述第一请求和所述第一电子设备之间的距离中的至少一种,确定针对所述第一请求的第一计算值;In response to the first request being in the form of voice, based on at least one of the volume and the intelligibility of the first request, and the distance between the first request and the first electronic device, it is determined that the The first calculated value of the first request;
基于所述第一电子设备的内存和CPU占用率中的至少一种,确定针对所述第一请求的第一计算值。Based on at least one of the memory and CPU occupancy rate of the first electronic device, a first calculation value for the first request is determined.
在一些可能的实施方式中,所述接收局域网内的第二电子设备广播的第二广播信息,包括:In some possible implementation manners, the receiving the second broadcast information broadcast by the second electronic device in the local area network includes:
接收所述执行广播操作之后的预设时间内的第二电子设备广播的第二广播信息。Receiving the second broadcast information broadcast by the second electronic device within a preset time after the broadcast operation is performed.
在一些可能的实施方式中,所述基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求,包括:In some possible implementation manners, the determining whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information includes:
获取所述第二广播信息中的第二时间和针对第二请求的第二计算值;Acquiring the second time in the second broadcast information and the second calculated value for the second request;
基于所述第二时间,确定接收到的所述第二广播信息是否满足仲裁条件;Based on the second time, determine whether the received second broadcast information satisfies an arbitration condition;
基于满足所述仲裁条件的第二广播信息中的第二计算值和第一计算值的比较结果,确定是否执行所述第一请求。Based on a comparison result of the second calculation value and the first calculation value in the second broadcast information that satisfies the arbitration condition, it is determined whether to execute the first request.
在一些可能的实施方式中,所述基于所述第二时间,确定接收到的所述第二广播信息是否满足仲裁条件,包括:In some possible implementation manners, the determining whether the received second broadcast information satisfies an arbitration condition based on the second time includes:
响应于所述第一时间和所述第二广播信息中的所述第二时间之间的间隔小于时间阈值,确定所述第二广播信息满足仲裁条件。In response to the interval between the first time and the second time in the second broadcast information being less than a time threshold, it is determined that the second broadcast information satisfies an arbitration condition.
在一些可能的实施方式中,所述基于满足所述仲裁条件的第二广播信息中的第二计算值和第一计算值的比较结果,确定是否执行所述第一请求,包括:In some possible implementation manners, the determining whether to execute the first request based on a comparison result of the second calculation value and the first calculation value in the second broadcast information that meets the arbitration condition includes:
在所述第一计算值小于全部第二广播信息中的第二计算值的情况下,确 定执行所述第一请求;或者If the first calculation value is less than the second calculation value in all the second broadcast information, determine to execute the first request; or
在所述第一计算值大于全部第二广播信息中的第二计算值的情况下,确定执行所述第一请求。In a case where the first calculation value is greater than the second calculation value in all the second broadcast information, it is determined to execute the first request.
在本公开其中一实施例中,还提供了一种电子设备,包括:In one of the embodiments of the present disclosure, an electronic device is also provided, including:
接收模块,设置为接收第一请求并存储接收到所述第一请求的第一时间;A receiving module, configured to receive the first request and store the first time when the first request is received;
获取模块,设置为获取针对所述第一请求的第一计算值,所述第一计算值与所述第一请求中的信息属性或者所述第一电子设备的处理能力相关;An obtaining module, configured to obtain a first calculated value for the first request, where the first calculated value is related to the information attribute in the first request or the processing capability of the first electronic device;
广播模块,设置为广播第一广播信息,所述第一广播信息包括接收到所述第一请求的所述第一时间,以及所述第一计算值;A broadcast module configured to broadcast first broadcast information, the first broadcast information including the first time when the first request is received, and the first calculated value;
执行模块,设置为接收局域网内的第二电子设备广播的第二广播信息,基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求。The execution module is configured to receive the second broadcast information broadcast by the second electronic device in the local area network, and determine whether to execute the first request based on the comparison result of the first broadcast information and the second broadcast information.
在一些可能的实施方式中,所述获取针对所述第一请求的第一计算值,包括以下方式中的至少一种:In some possible implementation manners, the obtaining the first calculation value for the first request includes at least one of the following manners:
响应于所述第一请求为语音形式,基于所述第一请求的音量、清晰度,以及所述第一请求和所述第一电子设备之间的距离中的至少一种,确定针对所述第一请求的第一计算值;In response to the first request being in the form of voice, based on at least one of the volume and the intelligibility of the first request, and the distance between the first request and the first electronic device, it is determined that the The first calculated value of the first request;
基于所述第一电子设备的内存和CPU占用率中的至少一种,确定针对所述第一请求的第一计算值。Based on at least one of the memory and CPU occupancy rate of the first electronic device, a first calculation value for the first request is determined.
在本公开其中一实施例中,还提供了一种电子设备,包括:In one of the embodiments of the present disclosure, an electronic device is also provided, including:
处理器;processor;
设置为存储处理器可执行指令的存储器;Set as a memory for storing executable instructions of the processor;
其中,所述处理器被配置为调用所述存储器存储的指令,以执行第一方面中任意一项所述的方法。Wherein, the processor is configured to call instructions stored in the memory to execute the method described in any one of the first aspect.
在本公开其中一实施例中,还提供了一种局域网系统,包括至少两个电子设备,In one of the embodiments of the present disclosure, there is also provided a local area network system including at least two electronic devices,
所述至少两个电子设备中的第一电子设备设置为执行上述局域网环境下设备间的仲裁方法。The first electronic device of the at least two electronic devices is configured to execute the above-mentioned arbitration method between devices in the local area network environment.
在本公开至少部分实施例中,可以根据接收到请求计算出第一计算值,并可以广播该第一计算值以及接收到请求的第一时间,同时也可以接收其他的电子设备广播的计算值和时间(第二计算值和第二时间),通过比较两个广播信息,来确定是否执行接收到的请求。通过该方式,不需要配置服务器设备,也不需要选择主节点设备,具有简单方便,同时节省成本的特点,另外还具有较好的适用性。In at least some of the embodiments of the present disclosure, the first calculated value can be calculated according to the received request, and the first calculated value and the first time when the request is received can be broadcast, and the calculated value broadcast by other electronic devices can also be received. And time (the second calculated value and the second time), by comparing the two broadcast messages, it is determined whether to execute the received request. In this way, there is no need to configure server equipment, and no need to select master node equipment, which is simple and convenient, saves costs, and has better applicability.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the present disclosure.
根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。According to the following detailed description of exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments that conform to the present disclosure, and are used together with the specification to explain the technical solutions of the present disclosure.
图1示出根据本公开实施例的局域网环境下设备间的仲裁方法的流程图。Fig. 1 shows a flowchart of an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure.
图2示出根据本公开实施例的一种局域网环境下设备间的仲裁方法中步骤S40的流程图。Fig. 2 shows a flowchart of step S40 in a method for arbitrating between devices in a local area network environment according to an embodiment of the present disclosure.
图3示出根据本公开实施例的局域网环境下设备间的仲裁方法的示意图。Fig. 3 shows a schematic diagram of an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure.
图4示出根据本公开实施例的电子设备的框图。Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the drawings. The same reference numerals in the drawings indicate elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, unless otherwise noted, the drawings are not necessarily drawn to scale.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The dedicated word "exemplary" here means "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" need not be construed as being superior or better than other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship describing the associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, exist alone B these three situations. In addition, the term "at least one" in this document means any one of a plurality of or any combination of at least two of the plurality, for example, including at least one of A, B, and C, may mean including A, Any one or more elements selected in the set formed by B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. Those skilled in the art should understand that the present disclosure can also be implemented without certain specific details. In some instances, the methods, means, elements, and circuits well known to those skilled in the art have not been described in detail, so as to highlight the gist of the present disclosure.
本公开实施例提供了一种局域网环境下设备间的仲裁方法,该方法的执行主体是局域网中的电子设备,电子设备可以是任意的家居设备或者终端设备,例如,电子设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备、智能音箱、智能电灯、智能插排、智能空调、智能风扇等。在一些可能的实现方式中,本公开实施例提供的方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。The embodiments of the present disclosure provide an arbitration method between devices in a local area network environment. The execution subject of the method is an electronic device in the local area network. The electronic device may be any household device or terminal device. For example, the electronic device may be a user equipment ( User Equipment, UE), mobile devices, user terminals, terminals, cellular phones, cordless phones, personal digital assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, smart speakers, smart lights, Smart power strips, smart air conditioners, smart fans, etc. In some possible implementation manners, the method provided by the embodiments of the present disclosure may be implemented by a processor invoking a computer-readable instruction stored in a memory.
图1示出根据本公开实施例的局域网环境下设备间的仲裁方法的流程图,如图1所示,所述局域网环境下设备间的仲裁方法包括:Fig. 1 shows a flowchart of an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure. As shown in Fig. 1, the arbitration method between devices in a local area network environment includes:
S10:接收第一请求并存储接收到所述第一请求的第一时间;S10: Receive the first request and store the first time when the first request is received;
S20:获取针对所述第一请求的第一计算值,所述第一计算值与所述第一请求中的信息属性或者所述第一电子设备的处理能力相关;S20: Obtain a first calculation value for the first request, where the first calculation value is related to the information attribute in the first request or the processing capability of the first electronic device;
S30:广播第一广播信息,所述第一广播信息包括所述第一时间,以及所述第一计算值;S30: Broadcast first broadcast information, where the first broadcast information includes the first time and the first calculated value;
S40:接收局域网内的第二电子设备广播的第二广播信息,基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求。S40: Receive second broadcast information broadcast by a second electronic device in the local area network, and determine whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information.
本公开实施例中的方法可以应用在局域网中,该局域网内可以包括多个电子设备,局域网内的电子设备均可以执行本公开实施例的方法,通过本公开实施例的方法可以确定执行接收到请求的电子设备。下面以第一电子设备为例说明执行本公开实施例提供的方法。The method in the embodiment of the present disclosure can be applied to a local area network, and the local area network can include multiple electronic devices. All the electronic devices in the local area network can execute the method of the embodiment of the present disclosure. The requested electronic device. The following uses the first electronic device as an example to describe the method for implementing the embodiments of the present disclosure.
在一些可能的实施方式中,第一电子设备可以接收第一请求,该第一请求可以为用户向局域网内的电子设备发送的控制命令,或者通过手机等控制设备向电子设备发送的控制命令。例如,用户可通过语音的方式发送“开灯”、“关灯”、“调节温度”等命令,或者也可以通过终端设备发出控制命令,本公开实施例对第一请求的内容不做具体限定,只要用于与电子设备交互的内容,均包括在本公开实施例中,以及本公开实施例对第一请求的形式也不做具体限定,例如可以为语音形式、控制信号的形式等。In some possible implementation manners, the first electronic device may receive a first request, and the first request may be a control command sent by a user to an electronic device in a local area network, or a control command sent to the electronic device through a control device such as a mobile phone. For example, the user can send commands such as "turn on the light", "turn off the light", and "adjust temperature" by voice, or can also send control commands through the terminal device. The embodiment of the present disclosure does not specifically limit the content of the first request As long as the content used to interact with the electronic device is included in the embodiment of the present disclosure, and the embodiment of the present disclosure does not specifically limit the form of the first request, for example, it may be in the form of a voice or a control signal.
局域网内的电子设备在接收到第一请求的情况下,可以同时获取接收到第一请求到的时间,即第一时间,并可以将第一时间和第一请求进行存储,例如可以在内存中缓存,或者也可以存储在固定存储地址内。When the electronic device in the local area network receives the first request, it can simultaneously obtain the time when the first request is received, that is, the first time, and can store the first time and the first request, for example, in a memory Cache, or it can be stored in a fixed storage address.
在得到第一请求的情况下,可以基于该第一请求得到针对第一请求的第一计算值,该第一计算值是和第一请求中的信息属性相关的数值,或者也可以是与第一电子设备当前的数据处理能力相关的数值。其中,信息属性可以包括以下信息中的至少一种:第一请求的音量值、清晰度、发出第一请求的设备或者用户与第一电子设备之间的距离,第一电子设备的数据处理能力可 以包括内存大小、CPU占用率等数值。In the case of obtaining the first request, the first calculated value for the first request may be obtained based on the first request. The first calculated value is a value related to the information attribute in the first request, or may also be related to the first request. A numerical value related to the current data processing capability of an electronic device. Wherein, the information attribute may include at least one of the following information: the volume value and clarity of the first request, the distance between the device making the first request or the user and the first electronic device, and the data processing capability of the first electronic device It can include values such as memory size and CPU usage.
其中,在接收的第一请求为语音形式的情况下,本公开实施例可以基于第一请求的音量、清晰度,以及所述第一请求和所述第一电子设备之间的距离中的至少一种,确定针对所述第一请求的第一计算值。其中第一电子设备内可以设置音量检测仪,或者也可以设置声波传感器等其他能够确定第一请求的语音信息的器件,通过上述器件可以得到针对第一请求的音量值的第一计算值。另外,本公开实施例中的第一电子设备还可以根据接收到的第一请求的声音信号,确定第一请求的发出者与第一电子设备之间的距离。或者,第一电子设备内可以配置有神经网络,该神经网络能够检测输入的第一氢气的音量、清晰度、发出第一请求的用户或者设备之间的距离等信息,进而得到相应的第一计算值。上述仅为示例性说明,不作为本公开的具体限定。Wherein, in the case that the received first request is in the form of voice, the embodiments of the present disclosure may be based on at least one of the volume and clarity of the first request, and the distance between the first request and the first electronic device One is to determine the first calculated value for the first request. The first electronic device may be provided with a volume detector, or may also be provided with other devices capable of determining the voice information of the first request, such as a sound wave sensor, and the first calculated value of the volume value for the first request can be obtained through the foregoing device. In addition, the first electronic device in the embodiment of the present disclosure may also determine the distance between the sender of the first request and the first electronic device according to the received sound signal of the first request. Alternatively, a neural network may be configured in the first electronic device, and the neural network can detect information such as the volume and clarity of the input first hydrogen gas, the distance between the user or the device making the first request, and so on to obtain the corresponding first hydrogen gas. Calculated. The foregoing is only an exemplary description, and is not a specific limitation of the present disclosure.
另外,本公开实施例还可以基于所述第一电子设备的内存和CPU占用率中的至少一种,确定针对所述第一请求的第一计算值。本公开实施例中,还可以利用第一电子设备的内存以及CPU占用率中的至少一种来衡量第一电子设备的数据处理能力,例如可以将内存或者CPU占用率确定为第一计算值,本公开对此不作具体限定。In addition, the embodiment of the present disclosure may also determine the first calculation value for the first request based on at least one of the memory and CPU occupancy rate of the first electronic device. In the embodiments of the present disclosure, at least one of the memory and CPU usage of the first electronic device may also be used to measure the data processing capability of the first electronic device. For example, the memory or CPU usage may be determined as the first calculated value, This disclosure does not specifically limit this.
在得到第一计算值的情况下,可以生成第一广播信息,该第一广播信息可以包括接收到第一请求的第一时间,以及与第一请求对应的第一计算值。第一广播信息可以在局域网内传输,局域网内的其他电子设备(统称为第二电子设备)可以接收该第一广播信息。同理地,第一电子设备也可以接收局域网内的第二电子设备广播的第二广播信息,该第一广播信息可以为第二电子设备基于接收到的请求的第二时间,以及与请求对应的第二计算值。When the first calculated value is obtained, first broadcast information may be generated, and the first broadcast information may include the first time when the first request is received, and the first calculated value corresponding to the first request. The first broadcast information can be transmitted in the local area network, and other electronic devices (collectively referred to as second electronic devices) in the local area network can receive the first broadcast information. In the same way, the first electronic device may also receive the second broadcast information broadcast by the second electronic device in the local area network. The first broadcast information may be the second time based on the received request by the second electronic device and corresponding to the request. The second calculated value.
本公开实施例可以在接收到第一请求的情况下,接收其余电子设备(第二电子设备)广播的第二广播信息,也可以在发出第一广播信息之后的预设时间内,接收第二电子设备广播的第二广播信息。其中预设时间可以为1秒, 或者也可以为其他的时间值,具体可以根据需求设定。The embodiments of the present disclosure may receive the second broadcast information broadcast by other electronic devices (second electronic devices) upon receiving the first request, or may receive the second broadcast information within a preset time after the first broadcast information is sent. The second broadcast information broadcast by the electronic device. The preset time can be 1 second, or other time values, which can be specifically set according to requirements.
在接收到第二广播信息的情况下,可以将第一广播信息和第二广播信息进行比较,并根据比较结果确定是否执行第一请求的仲裁。In the case of receiving the second broadcast information, the first broadcast information and the second broadcast information may be compared, and whether to perform the first requested arbitration is determined according to the comparison result.
图2示出根据本公开实施例的一种局域网环境下设备间的仲裁方法中步骤S40的流程图,所述基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求,包括:Fig. 2 shows a flowchart of step S40 in an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure. Based on the comparison result of the first broadcast information and the second broadcast information, it is determined whether to execute the The first request includes:
S41:获取所述第二广播信息中的第二时间和针对第二请求的第二计算值;S41: Acquire the second time in the second broadcast information and the second calculated value for the second request;
S42:基于所述第二时间,确定接收到的所述第二广播信息是否满足仲裁条件;S42: Based on the second time, determine whether the received second broadcast information satisfies an arbitration condition;
S43:基于满足所述仲裁条件的第二广播信息中的第二计算值和第一计算值的比较结果,确定是否执行所述第一请求。S43: Determine whether to execute the first request based on a comparison result of the second calculation value and the first calculation value in the second broadcast information that meets the arbitration condition.
本公开实施例中,可以在接收到第二广播信息时,首先从第二广播信息中读取第二时间和第二请求的第二计算值,如上述实施例所述,第二电子设备也可以在接收到请求信息(第二请求)时生成对应的第二计算值,并可以利用接收到第二请求的第二时间和计算出的针对第二请求的第二计算值生成第二广播信息,并在局域网内广播第二广播信息。因此,在第二广播信息中可以解析获得第二时间和第二计算值,本公开实施例可以首先利用第一广播信息中的第一时间和第二广播信息中的第二时间,确定第二广播信息是否满足仲裁条件,该仲裁条件用于表征第二电子设备接收的第二请求与第一广播信息中的第一请求是否为相同的请求。其中,本公开实施例可以在第一时间和第二时间之间的间隔小于时间阈值,确定第二广播信息满足仲裁条件。也就是说,在第二电子设备接收到第二请求的第二时间与第一电子设备接收到第一请求的第一时间之间的时间间隔小于时间阈值时,可以确定第一请求和第二请求为相同的请求,时间阈值可以为1s,或者也可以为小于5s的数值, 本公开对此不作具体限定。In the embodiments of the present disclosure, when the second broadcast information is received, the second time and the second calculated value of the second request may be read from the second broadcast information. As described in the above embodiment, the second electronic device is also The corresponding second calculation value can be generated when the request information (second request) is received, and the second broadcast information can be generated using the second time when the second request is received and the calculated second calculation value for the second request , And broadcast the second broadcast information in the local area network. Therefore, the second time and the second calculated value can be parsed in the second broadcast information. The embodiment of the present disclosure can first use the first time in the first broadcast information and the second time in the second broadcast information to determine the second time. Whether the broadcast information satisfies an arbitration condition, and the arbitration condition is used to characterize whether the second request received by the second electronic device and the first request in the first broadcast information are the same request. Among them, the embodiment of the present disclosure may determine that the second broadcast information satisfies the arbitration condition when the interval between the first time and the second time is less than the time threshold. That is, when the time interval between the second time when the second electronic device receives the second request and the first time when the first electronic device receives the first request is less than the time threshold, the first request and the second request can be determined The request is the same request, and the time threshold may be 1s, or may be a value less than 5s, which is not specifically limited in the present disclosure.
在确定出满足仲裁条件的第二广播信息的情况下,可以继续对比第一广播信息中的第一计算值与满足仲裁条件的第二广播信息中的第二计算值,并根据二者的比较结果,确定是否执行第一请求。在所述第一计算值小于全部第二广播信息中的第二计算值的情况下,确定执行所述第一请求;或者在所述第一计算值大于全部第二广播信息中的第二计算值的情况下,确定执行所述第一请求。In the case of determining the second broadcast information that satisfies the arbitration condition, you can continue to compare the first calculation value in the first broadcast information with the second calculation value in the second broadcast information that meets the arbitration condition, and compare the two As a result, it is determined whether to execute the first request. When the first calculation value is less than the second calculation value in all the second broadcast information, it is determined to execute the first request; or when the first calculation value is greater than the second calculation in all the second broadcast information Value, it is determined to execute the first request.
也就是说,本公实施例可以将最小的计算值对应的电子设备确定为执行第一请求的电子设备中。或者,也可以将最大的计算值对应的电子设备确定为执行第一请求的电子设备。因此可以比较第一计算值和满足仲裁条件的第二广播信息中的第二计算值,基于比较结果确定是否执行第一请求对应的操作。具体的,在第一计算值是由第一请求对应的音量值、清晰度、内存等信息确定的情况下,可以将音量最高、清晰度最好的电子设备确定为执行第一请求的电子设备,即在第一计算值大于全部的满足仲裁条件的第二广播信息中的第二计算值时,确定由第一电子设备执行该第一请求。In other words, the present disclosure may determine the electronic device corresponding to the smallest calculated value as the electronic device that executes the first request. Alternatively, the electronic device corresponding to the largest calculated value may also be determined as the electronic device that executes the first request. Therefore, it is possible to compare the first calculation value with the second calculation value in the second broadcast information meeting the arbitration condition, and determine whether to perform the operation corresponding to the first request based on the comparison result. Specifically, in the case where the first calculation value is determined by the volume value, resolution, memory and other information corresponding to the first request, the electronic device with the highest volume and the best resolution may be determined as the electronic device that executes the first request That is, when the first calculated value is greater than the second calculated value in all the second broadcast information that meets the arbitration condition, it is determined that the first electronic device executes the first request.
或者,在第一计算值由第一电子设备和请求发出方之间的距离或者CPU占用率等信息确定的情况下,可以将距离最小、CPU占用率最小的电子设备确定为执行第一请求的电子设备,即可以在第一计算值小于全部满足仲裁条件的第二广播信息中的第二计算值时,确定由第一电子设备执行该第一请求。Or, in the case where the first calculated value is determined by information such as the distance between the first electronic device and the requester or the CPU usage rate, the electronic device with the smallest distance and the smallest CPU usage rate may be determined as the one that executes the first request. The electronic device may determine that the first electronic device executes the first request when the first calculation value is less than the second calculation value in the second broadcast information that all meets the arbitration condition.
图3示出根据本公开实施例的局域网环境下设备间的仲裁方法的示意图,在局域网内发送请求信息时,局域网内的每个电子设备都可以收到该请求,此时可以记录请求时间,快速计算出本设备处理的值(第一计算值),如音量值、距离值、清晰度、CPU内存中的至少一种。电子设备可以设备发起广播,广播内容是接收到的请求时间和快速处理值(第一时间和第一计算 值)。此时可以等待预设时间,在等待的预设时间内,第一电子设备可以收到其他设备的广播(第二广播信息),此时可以先比较第一广播信息和第二广播信息中的请求时间(第一时间和第二时间),偏差1秒内都可以作为同一次请求。然后比较第一计算值和第二计算值,确定执行第一请求的电子设备。Fig. 3 shows a schematic diagram of an arbitration method between devices in a local area network environment according to an embodiment of the present disclosure. When request information is sent in the local area network, each electronic device in the local area network can receive the request, and the request time can be recorded at this time. Quickly calculate the value processed by the device (the first calculated value), such as at least one of volume value, distance value, clarity, and CPU memory. The electronic device can initiate a broadcast by the device, and the broadcast content is the received request time and the fast processing value (the first time and the first calculated value). At this time, you can wait for a preset time. During the waiting preset time, the first electronic device can receive broadcasts (second broadcast information) from other devices. At this time, you can first compare the first broadcast information with the second broadcast information. The request time (first time and second time), within 1 second, can be regarded as the same request. Then, the first calculation value and the second calculation value are compared to determine the electronic device that executes the first request.
综上所述,本公开实施例,可以根据接收到请求计算出第一计算值,并可以广播该第一计算值以及接收到请求的第一时间,同时也可以接收其他的电子设备广播的计算值和时间(第二计算值和第二时间),通过比较两个广播信息,来确定是否执行接收到的请求。通过该方式,不需要配置服务器设备,也不需要选择主节点设备,具有简单方便,同时节省成本的特点,另外还具有较好的适用性。In summary, the embodiments of the present disclosure can calculate the first calculation value based on the received request, and can broadcast the first calculation value and the first time when the request is received, and can also receive calculations broadcast by other electronic devices. The value and time (the second calculated value and the second time) are compared to determine whether to execute the received request by comparing two broadcast messages. In this way, there is no need to configure server equipment, and no need to select master node equipment, which is simple and convenient, saves costs, and has better applicability.
也就是说,本公开实施例采用了轻量级的仲裁算法,能满足实际的使用需求,且逻辑较简单,资源占有较少,更适合嵌入式设备使用。That is to say, the embodiments of the present disclosure adopt a lightweight arbitration algorithm, which can meet actual usage requirements, and has simpler logic, less resource occupation, and is more suitable for use by embedded devices.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above-mentioned methods of the specific implementation, the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possibility. The inner logic is determined.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。It can be understood that the various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. The length is limited, and the details of this disclosure will not be repeated.
此外,本公开还提供了电子设备、局域网系统、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种局域网环境下设备间的仲裁方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides electronic devices, local area network systems, computer-readable storage media, and programs, all of which can be used to implement any arbitration method between devices in a local area network environment provided by the present disclosure. The corresponding technical solutions and descriptions and refer to the methods Part of the corresponding records will not be repeated here.
图4示出根据本公开实施例的电子设备的框图,如图4所示,所电子设备包括:Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present disclosure. As shown in Fig. 4, the electronic device includes:
接收模块10,设置为接收第一请求并存储接收到所述第一请求的第一时间;The receiving module 10 is configured to receive the first request and store the first time when the first request is received;
获取模块20,设置为获取针对所述第一请求的第一计算值,所述第一计算值与所述第一请求中的信息属性或者所述第一电子设备的处理能力相关;The obtaining module 20 is configured to obtain a first calculated value for the first request, where the first calculated value is related to the information attribute in the first request or the processing capability of the first electronic device;
广播模块30,设置为广播第一广播信息,所述第一广播信息包括接收到所述第一请求的所述第一时间,以及所述第一计算值;The broadcast module 30 is configured to broadcast first broadcast information, the first broadcast information including the first time when the first request is received, and the first calculated value;
执行模块40,设置为接收局域网内的第二电子设备广播的第二广播信息,基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求。The execution module 40 is configured to receive second broadcast information broadcast by a second electronic device in the local area network, and determine whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments. For brevity, here No longer.
另外,本公开实施例还提供了一种局域网系统,该系统可以包括多个电子设备。多个电子设备中的第一电子设备设置为执行上述局域网环境下设备间的仲裁方法。In addition, the embodiments of the present disclosure also provide a local area network system, which may include multiple electronic devices. The first electronic device among the plurality of electronic devices is configured to execute the above-mentioned arbitration method between devices in the local area network environment.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是非易失性计算机可读存储介质。The embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above-mentioned method when executed by a processor. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为上述方法。An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured as the above-mentioned method.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器,上述计算机程序指令可由电子设备的处理器执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as a memory including computer program instructions, which can be executed by a processor of an electronic device to complete the foregoing method.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指 令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。The computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (non-exhaustive list) include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon The protruding structure in the hole card or the groove, and any suitable combination of the above. The computer-readable storage medium used here is not interpreted as the instantaneous signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在 远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。The computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or in one or more programming languages. Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions. The computer-readable program instructions are executed to realize various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Here, various aspects of the present disclosure are described with reference to flowcharts and/or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine that makes these instructions when executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing the instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions onto a computer, other programmable data processing device, or other equipment, so that a series of operation steps are executed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , So that the instructions executed on the computer, other programmable data processing apparatus, or other equipment realize the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和 计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions, and operations of the system, method, and computer program product according to multiple embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more components for realizing the specified logical function. Executable instructions. In some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Without departing from the scope and spirit of the illustrated embodiments, many modifications and changes are obvious to those of ordinary skill in the art. The choice of terms used herein is intended to best explain the principles, practical applications, or improvements to technologies in the market of the embodiments, or to enable other ordinary skilled in the art to understand the embodiments disclosed herein.

Claims (10)

  1. 一种局域网环境下设备间的仲裁方法,应用在局域网内的第一电子设备中,包括:An arbitration method between devices in a local area network environment, applied to a first electronic device in a local area network, includes:
    接收第一请求并存储接收到所述第一请求的第一时间;Receiving the first request and storing the first time when the first request is received;
    获取针对所述第一请求的第一计算值,所述第一计算值与所述第一请求中的信息属性或者所述第一电子设备的处理能力相关;Acquiring a first calculation value for the first request, where the first calculation value is related to the information attribute in the first request or the processing capability of the first electronic device;
    广播第一广播信息,所述第一广播信息包括所述第一时间,以及所述第一计算值;Broadcasting first broadcast information, where the first broadcast information includes the first time and the first calculated value;
    接收局域网内的第二电子设备广播的第二广播信息,基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求。Receiving second broadcast information broadcast by a second electronic device in the local area network, and determining whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information.
  2. 根据权利要求1所述的方法,其中,所述获取针对所述第一请求的第一计算值,包括以下方式中的至少一种:The method according to claim 1, wherein said obtaining the first calculated value for the first request comprises at least one of the following ways:
    响应于所述第一请求为语音形式,基于所述第一请求的音量、清晰度,以及所述第一请求和所述第一电子设备之间的距离中的至少一种,确定针对所述第一请求的第一计算值;In response to the first request being in the form of voice, based on at least one of the volume and the intelligibility of the first request, and the distance between the first request and the first electronic device, it is determined that the The first calculated value of the first request;
    基于所述第一电子设备的内存和CPU占用率中的至少一种,确定针对所述第一请求的第一计算值。Based on at least one of the memory and CPU occupancy rate of the first electronic device, a first calculation value for the first request is determined.
  3. 根据权利要求1或2所述的方法,其中,所述接收局域网内的第二电子设备广播的第二广播信息,包括:The method according to claim 1 or 2, wherein the receiving the second broadcast information broadcast by the second electronic device in the local area network comprises:
    接收所述执行广播操作之后的预设时间内的第二电子设备广播的第二广播信息。Receiving the second broadcast information broadcast by the second electronic device within a preset time after the broadcast operation is performed.
  4. 根据权利要求3所述的方法,其中,所述基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求,包括:The method according to claim 3, wherein the determining whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information comprises:
    获取所述第二广播信息中的第二时间和针对第二请求的第二计算值;Acquiring the second time in the second broadcast information and the second calculated value for the second request;
    基于所述第二时间,确定接收到的所述第二广播信息是否满足仲裁条件;Based on the second time, determine whether the received second broadcast information satisfies an arbitration condition;
    基于满足所述仲裁条件的第二广播信息中的第二计算值和第一计算值的比较结果,确定是否执行所述第一请求。Based on a comparison result of the second calculation value and the first calculation value in the second broadcast information that satisfies the arbitration condition, it is determined whether to execute the first request.
  5. 根据权利要求4所述的方法,其中,所述基于所述第二时间,确定接收到的所述第二广播信息是否满足仲裁条件,包括:The method according to claim 4, wherein the determining whether the received second broadcast information satisfies an arbitration condition based on the second time comprises:
    响应于所述第一时间和所述第二广播信息中的所述第二时间之间的间隔小于时间阈值,确定所述第二广播信息满足仲裁条件。In response to the interval between the first time and the second time in the second broadcast information being less than a time threshold, it is determined that the second broadcast information satisfies an arbitration condition.
  6. 根据权利要求4或5所述的方法,其中,所述基于满足所述仲裁条件的第二广播信息中的第二计算值和第一计算值的比较结果,确定是否执行所述第一请求,包括:The method according to claim 4 or 5, wherein the determining whether to execute the first request based on the comparison result of the second calculation value and the first calculation value in the second broadcast information that satisfies the arbitration condition, include:
    在所述第一计算值小于全部第二广播信息中的第二计算值的情况下,确定执行所述第一请求;或者If the first calculation value is less than the second calculation value in all the second broadcast information, determine to execute the first request; or
    在所述第一计算值大于全部第二广播信息中的第二计算值的情况下,确定执行所述第一请求。In a case where the first calculation value is greater than the second calculation value in all the second broadcast information, it is determined to execute the first request.
  7. 一种电子设备,包括:An electronic device including:
    接收模块,设置为接收第一请求并存储接收到所述第一请求的第一时间;A receiving module, configured to receive the first request and store the first time when the first request is received;
    获取模块,设置为获取针对所述第一请求的第一计算值,所述第一计算值与所述第一请求中的信息属性或者所述第一电子设备的处理能力相关;An obtaining module, configured to obtain a first calculated value for the first request, where the first calculated value is related to the information attribute in the first request or the processing capability of the first electronic device;
    广播模块,设置为广播第一广播信息,所述第一广播信息包括接收到所述第一请求的所述第一时间,以及所述第一计算值;A broadcast module configured to broadcast first broadcast information, the first broadcast information including the first time when the first request is received, and the first calculated value;
    执行模块,设置为接收局域网内的第二电子设备广播的第二广播信息,基于所述第一广播信息和第二广播信息的比较结果,确定是否执行所述第一请求。The execution module is configured to receive second broadcast information broadcast by a second electronic device in the local area network, and determine whether to execute the first request based on a comparison result of the first broadcast information and the second broadcast information.
  8. 根据权利要求7所述的电子设备,其中,所述获取针对所述第一请求的第一计算值,包括以下方式中的至少一种:8. The electronic device according to claim 7, wherein said obtaining the first calculated value for the first request comprises at least one of the following ways:
    响应于所述第一请求为语音形式,基于所述第一请求的音量、清晰度,以及所述第一请求和所述第一电子设备之间的距离中的至少一种,确定针对所述第一请求的第一计算值;In response to the first request being in the form of voice, based on at least one of the volume and the intelligibility of the first request, and the distance between the first request and the first electronic device, it is determined that the The first calculated value of the first request;
    基于所述第一电子设备的内存和CPU占用率中的至少一种,确定针对所述第一请求的第一计算值。Based on at least one of the memory and CPU occupancy rate of the first electronic device, a first calculation value for the first request is determined.
  9. 一种电子设备,包括:An electronic device including:
    处理器;processor;
    设置为存储处理器可执行指令的存储器;Set as a memory for storing executable instructions of the processor;
    其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1-6中任意一项所述的方法。Wherein, the processor is configured to call instructions stored in the memory to execute the method according to any one of claims 1-6.
  10. 一种局域网系统,包括至少两个电子设备,A local area network system including at least two electronic devices,
    所述至少两个电子设备中的第一电子设备设置为执行如权利要求1-6中任意一项所述的局域网环境下设备间的仲裁方法。The first electronic device of the at least two electronic devices is configured to execute the arbitration method between devices in a local area network environment according to any one of claims 1-6.
PCT/CN2020/141610 2020-02-26 2020-12-30 Method for arbitration between devices in local area network environment, electronic devices, and local area network system WO2021169585A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010121197.XA CN111342981A (en) 2020-02-26 2020-02-26 Arbitration method between devices in local area network environment, electronic device and local area network system
CN202010121197.X 2020-02-26

Publications (1)

Publication Number Publication Date
WO2021169585A1 true WO2021169585A1 (en) 2021-09-02

Family

ID=71185572

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141610 WO2021169585A1 (en) 2020-02-26 2020-12-30 Method for arbitration between devices in local area network environment, electronic devices, and local area network system

Country Status (2)

Country Link
CN (1) CN111342981A (en)
WO (1) WO2021169585A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111342981A (en) * 2020-02-26 2020-06-26 杭州涂鸦信息技术有限公司 Arbitration method between devices in local area network environment, electronic device and local area network system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933715A (en) * 2017-06-06 2018-12-04 北京猎户星空科技有限公司 A kind of exchange method, device and smart machine
CN109450750A (en) * 2018-11-30 2019-03-08 广东美的制冷设备有限公司 Sound control method, device, mobile terminal and the household appliance of equipment
US20190208024A1 (en) * 2017-12-29 2019-07-04 Dish Network L.L.C. Internet of things (iot) device discovery platform
CN110048863A (en) * 2019-03-08 2019-07-23 佛山市云米电器科技有限公司 A kind of smart home device response arbitration system and method
CN111342981A (en) * 2020-02-26 2020-06-26 杭州涂鸦信息技术有限公司 Arbitration method between devices in local area network environment, electronic device and local area network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547306B (en) * 2018-12-06 2021-04-30 杭州涂鸦信息技术有限公司 Intelligent household equipment management method and system, intelligent gateway and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933715A (en) * 2017-06-06 2018-12-04 北京猎户星空科技有限公司 A kind of exchange method, device and smart machine
US20190208024A1 (en) * 2017-12-29 2019-07-04 Dish Network L.L.C. Internet of things (iot) device discovery platform
CN109450750A (en) * 2018-11-30 2019-03-08 广东美的制冷设备有限公司 Sound control method, device, mobile terminal and the household appliance of equipment
CN110048863A (en) * 2019-03-08 2019-07-23 佛山市云米电器科技有限公司 A kind of smart home device response arbitration system and method
CN111342981A (en) * 2020-02-26 2020-06-26 杭州涂鸦信息技术有限公司 Arbitration method between devices in local area network environment, electronic device and local area network system

Also Published As

Publication number Publication date
CN111342981A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US10514888B1 (en) User-adaptive volume selection
US8699723B2 (en) Audio device volume manager using measured volume perceived at a first audio device to control volume generation by a second audio device
JP2019091005A (en) Multi apparatus interactive method, device, apparatus and computer readable medium
US9311049B2 (en) System to improve numereical conversions and associated methods
US20120020487A1 (en) Audio device volume manager using measured distance between first and second audio devices to control volume generation by the second audio device
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
US20170077744A1 (en) Electronic device and method of wireless power transfer therefor
WO2021022710A1 (en) Message queue processing method, device, electronic apparatus, and computer readable non-volatile storage medium
WO2020102928A1 (en) Wireless signal transmission method, wireless signal transmission device and terminal device
US20120053937A1 (en) Generalizing text content summary from speech content
WO2021169585A1 (en) Method for arbitration between devices in local area network environment, electronic devices, and local area network system
CN110782884B (en) Far-field pickup noise processing method, device, equipment and storage medium
US20130290495A1 (en) Method of setting optimal ping interval and electronic device therefor
CN111435318A (en) Dex optimization method of application program and terminal
CN111176744A (en) Electronic equipment control method, device, terminal and storage medium
US20200341653A1 (en) Method, network adapter and computer program product for processing data
US10375370B2 (en) Audio capture on mobile client devices
CN111582456B (en) Method, apparatus, device and medium for generating network model information
CN113342759A (en) Content sharing method, device, equipment and storage medium
JP2020194988A (en) Communication control method and communication system
US11431349B2 (en) Method, electronic device and computer program product for processing data
US20140325152A1 (en) Quadtree based data management for memory
CN112070163B (en) Image segmentation model training and image segmentation method, device and equipment
KR102255339B1 (en) Method for generating internet of media information and apparatus for the same
WO2021179998A1 (en) Spatial information determination method and apparatus

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: 20921177

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: 20921177

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20921177

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 1205 DATED 06/07/2023)