Apparatus and method for communication between neighboring devices in wireless network
By dynamically selecting and parallel execution of proxy server and proxy client functions in electronic devices, the service discovery process in NAN is optimized, and the problem of high proxy service current consumption in NAN is solved, thereby reducing current consumption and extending battery life.
Patent Information
- Application Number
- CN202411019968.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-11-07
- Filing Date
- 2019-11-04
- Publication Date
- 2024-11-22
AI Technical Summary
In electronic devices based on neighbor-aware networks (NAN), there is a problem of excessive current consumption when using proxy services, especially during dynamic selection and negotiation between proxy servers and proxy clients.
Optimize the discovery window wake-up interval and service discovery process to reduce current consumption by enabling dynamic selection and parallel execution of proxy server and proxy client functions in electronic devices. The specific implementation includes performing service discovery within the wake-up interval of the discovery window through a wireless communication circuit, and negotiating the proxy server and client roles with external electronic devices in the same NAN cluster, and dynamically adjusting the wake-up interval to reduce current consumption.
It effectively reduces the current consumption of electronic devices, prevents excessive emphasis on current consumption, and realizes flexible switching and negotiation between the proxy server and proxy client functions of electronic devices, improving battery life.
Smart Images

Figure CN119012323A_ABST
Abstract
Description
[0001] This case is a divisional application of the invention patent application with the application date of November 4, 2019, application number 201980073013.2, and invention name "Apparatus and method for communication between neighboring devices in a wireless network". Technical Field
[0002] Certain embodiments of the present disclosure generally relate to an apparatus and method for communication between proximate electronic devices (eg, neighbor awareness networking (NAN) devices) in a wireless network (eg, a low-power near field communication network based on NAN). Background Art
[0003] Recently, with the development of digital technology, various types of electronic devices, such as mobile communication terminals, smart phones, tablet personal computers (PCs), laptops, wearable devices, digital cameras, personal computers and Internet of Things (IoT) devices, have been widely deployed. In addition, various types of proximity services using low-power discovery technology have been developed recently. For example, proximity services (or proximity communication services) have been developed, whereby adjacent electronic devices can quickly exchange data through a proximity network. Such proximity services may include low-power proximity services using Bluetooth low energy (BLE) beacons, or low-power proximity services based on low-power near field communication technology (e.g., neighbor awareness network (NAN)) in a wireless local area network (WLAN) environment.
[0004] According to an embodiment, in a low-power proximity service based on NAN (hereinafter referred to as a "proximity service"), the configuration of the proximity network can be dynamically changed according to the movement of the electronic device within the proximity network. A group of electronic devices constituting a proximity network can be referred to as a cluster. The electronic devices included in the cluster can send and receive signals (e.g., beacons or beacon signals) and service discovery frames (SDF) for discovery with each other during a synchronization duration (or communication duration). For example, at least one electronic device in the cluster can send a signal for notifying the existence of the cluster, and a new electronic device that wants to join the cluster can receive the signal.
[0005] In order to reduce current consumption or power consumption, the electronic devices in the cluster may each have different activity durations during which they can send and receive signals. In NAN communication, the activity duration during which a signal can be sent or received may be referred to as a discovery window (DW). In addition, the electronic devices included in the cluster may reduce current consumption by maintaining a low power state (e.g., a sleep state) outside of the activity duration. An electronic device used as a NAN proxy server may consume more power than a device used as a NAN proxy client. Summary of the invention
[0006] Technical issues
[0007] Certain embodiments disclosed herein relate to apparatus and methods capable of improving current consumption of NAN electronic devices using a NAN service discovery proxy function.
[0008] Certain embodiments disclosed herein relate to an apparatus and method for enabling an electronic device to dynamically (or adaptively) select one or more functions of a NAN proxy server and a NAN proxy client in order to improve current consumption.
[0009] Solution to the problem
[0010] The present disclosure provides an electronic device, comprising: a housing; at least one antenna; at least one wireless communication circuit, which is located in the housing, operably connected to the antenna, and configured to support communication in a discovery window wake-up interval synchronized with a first external electronic device and a second external electronic device in the same Neighbor Awareness Network (NAN) cluster based on a Neighbor Awareness Network (NAN) protocol; at least one processor; and a memory, storing instructions, which, when executed by the at least one processor, enable the electronic device to: perform service discovery in the discovery window wake-up interval through the wireless communication circuit, establish a network connection with a first external electronic device operating as a first proxy client, operate the electronic device as a first proxy server of the first external electronic device, while operating the electronic device as the first proxy server of the first external electronic device, receive a notification signal from the second external electronic device, perform proxy server negotiation with the second external electronic device based on the received signal, and, based on the proxy server negotiation, operate the electronic device as a second proxy client of the second external electronic device in parallel with operating the electronic device as the first proxy server of the first external electronic device.
[0011] The present disclosure provides an operating method of an electronic device, comprising: performing service discovery at a discovery window wake-up interval through a wireless communication circuit of the electronic device; establishing a network connection with a first external electronic device operating as a first proxy client; operating the electronic device as a first proxy server of the first external electronic device; while operating the electronic device as the first proxy server of the first external electronic device, receiving a signal for notification from a second external electronic device; performing proxy server negotiation with the second external electronic device based on the received signal; and, based on the proxy server negotiation, operating the electronic device as a second proxy client of the second external electronic device in parallel with operating the electronic device as the first proxy server of the first external electronic device.
[0012] According to an embodiment, an electronic device may include: a housing; at least one antenna; at least one wireless communication circuit, which is located in the housing, operably connected to the antenna, and configured to support a neighbor awareness network (NAN) protocol; a processor, which is located in the housing and operably connected to the wireless communication circuit; and a memory, which is operably connected to the processor, wherein the memory stores instructions that, when executed, cause the processor to: broadcast a first signal notifying the electronic device that it can operate as a first proxy server through the wireless communication circuit; receive a second signal including a first proxy client registration request from a first external electronic device; in response to the second signal, send a third signal including a first proxy client registration response to the first external electronic device; while operating as a first proxy server for the first external electronic device, receive a fourth signal notifying the second external electronic device that it can operate as a second proxy server from a second external electronic device through the wireless communication circuit; based on the fourth signal, send a fifth signal including a second proxy client registration request to the second external electronic device; receive a sixth signal including a second proxy client registration response corresponding to the fifth signal from the second external electronic device; and operate the electronic device as a first proxy client for the second external electronic device in parallel with operating the electronic device as a first proxy server for the first external electronic device.
[0013] According to an embodiment, an electronic device may include: a housing; at least one antenna; at least one wireless communication circuit, which is located in the housing, operably connected to the antenna, and is configured to support communication based on a Neighbor Awareness Network (NAN) protocol with a discovery window (DW) wake-up interval (awake interval) synchronized with external electronic devices in the same NAN cluster; a processor, which is located in the housing and operably connected to the wireless communication circuit; and a memory, which is operably connected to the processor, wherein the memory stores instructions that, when executed, cause the processor to: perform service discovery with a discovery window wake-up interval through the wireless communication circuit; receive a first signal from an external electronic device notifying that the external electronic device can operate as a proxy server; perform proxy server negotiation with the external electronic device based on the received first signal; and based on the performed proxy server negotiation, operate the electronic device as a proxy server for the external electronic device, or operate the electronic device as a proxy client for the external electronic device.
[0014] According to an embodiment, an operating method of an electronic device may include: broadcasting a first signal notifying that the electronic device can operate as a first proxy server; receiving a second signal including a first proxy client registration request from a first external electronic device; in response to the second signal, sending a third signal including a first proxy client registration response to the first external electronic device; while operating as a first proxy server for the first external electronic device, receiving a fourth signal from a second external electronic device notifying that the second external electronic device can operate as a second proxy server; sending a fifth signal including a second proxy client registration request to the second external electronic device based on the fourth signal; receiving a sixth signal including a second proxy client registration response corresponding to the fifth signal from the second external electronic device; and operating the electronic device as a first proxy client of the second external electronic device in parallel with operating the electronic device as a first proxy server for the first external electronic device.
[0015] According to an embodiment of the present disclosure that solves the above-mentioned problem, a computer-readable recording medium having a program recorded thereon for a processor to execute the above-mentioned method may be included.
[0016] Advantageous Effects of the Invention
[0017] According to an embodiment, in the service discovery proxy function, the electronic device may dynamically (or adaptively) select a proxy server or a proxy client function, and thus current consumption may be reduced.
[0018] According to an embodiment, because the electronic device dynamically selects the proxy server or proxy client function, or the electronic device simultaneously performs the proxy server and proxy client functions, any one electronic device can continuously perform the proxy server function, thereby preventing excessive emphasis on current consumption for the corresponding electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0020] Figure 1 is a block diagram illustrating electronic devices in a network environment according to various embodiments.
[0021] Figure 2 is a block diagram showing an example of a system configuration according to an embodiment.
[0022] Figure 3 is a diagram showing an example of a signal transmission protocol in a proximity network according to an embodiment.
[0023] Figure 4 is a diagram illustrating an example of data transmission and reception in a cluster according to an embodiment.
[0024] Figure 5 is a diagram illustrating an example in which an electronic device is simultaneously a proxy server and a proxy client according to an embodiment.
[0025] Figure 6 is a diagram illustrating an operation method in which an electronic device is a proxy server and a proxy client at the same time according to an embodiment.
[0026] Figure 7 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0027] Figure 8 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0028] Fig. 9 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0029] Fig.10 is a diagram illustrating an example of a proxy server negotiation process according to an embodiment.
[0030] Fig.11 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0031] Fig.12 is a flowchart illustrating an operating method of an electronic device according to an embodiment. DETAILED DESCRIPTION
[0032] Figure 1 is a block diagram illustrating an electronic device 101 in a network environment 100 according to various embodiments.
[0033] refer to Figure 1 , the electronic device 101 in the network environment 100 may communicate with the electronic device 102 via the first network 198 (e.g., a short-range wireless communication network), or communicate with the electronic device 104 or the server 108 via the second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 may include a processor 120, a memory 130, an input device 150, a sound output device 155, a display device 160, an audio module 170, a sensor module 176, an interface 177, a haptic module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a user identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one of the components (e.g., the display device 160 or the camera module 180) may be omitted from the electronic device 101, or one or more other components may be added to the electronic device 101. In some embodiments, some of the components may be implemented as a single integrated circuit. For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented to be embedded in the display device 160 (eg, a display).
[0034] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to an embodiment, as at least part of the data processing or calculation, the processor 120 may load a command or data received from another component (e.g., sensor module 176 or communication module 190) into the volatile memory 132, process the command or data stored in the volatile memory 132, and store the result data in the non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) and an auxiliary processor 123 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor 121 in operation. Additionally or alternatively, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or adapted to be specifically used for a specified function. The auxiliary processor 123 may be implemented separately from the main processor 121 , or as part of the main processor 121 .
[0035] When the main processor 121 is in an inactive (e.g., sleeping) state, the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 (not the main processor 121), or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 together with the main processor 121. According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., camera module 180 or communication module 190) that is functionally related to the auxiliary processor 123.
[0036] The memory 130 may store various data used by at least one component of the electronic device 101 (e.g., the processor 120 or the sensor module 176). The various data may include, for example, software (e.g., the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.
[0037] The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system (OS) 142 , middleware 144 , or applications 146 .
[0038] The input device 150 may receive commands or data from outside the electronic device 101 (e.g., a user) to be used by other components of the electronic device 101 (e.g., the processor 120). The input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (e.g., a stylus).
[0039] The sound output device 155 can output a sound signal to the outside of the electronic device 101. The sound output device 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as playing multimedia or playing records, and the receiver can be used for incoming calls. Depending on the embodiment, the receiver can be implemented as a separate part from the speaker, or as a part of the speaker.
[0040] The display device 160 may visually provide information to the outside of the electronic device 101 (e.g., a user). The display device 160 may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment, the display device 160 may include a touch circuit adapted to detect a touch or a sensor circuit (e.g., a pressure sensor) adapted to measure the strength of a force caused by a touch.
[0041] The audio module 170 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 170 may obtain sound via the input device 150, or output sound via the sound output device 155 or an earphone of an external electronic device (e.g., electronic device 102) directly (e.g., wired) or wirelessly connected to the electronic device 101.
[0042] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a user's state) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.
[0043] The interface 177 may support one or more specific protocols that will be used to connect the electronic device 101 directly (e.g., wired) or wirelessly to an external electronic device (e.g., the electronic device 102). According to an embodiment, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
[0044] The connection end 178 may include a connector, wherein the electronic device 101 can be physically connected to an external electronic device (e.g., the electronic device 102) via the connector. According to an embodiment, the connection end 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0045] The haptic module 179 may convert the electric signal into mechanical stimulation (eg, vibration or motion) or electric stimulation that can be recognized by the user through his sense of touch or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electric stimulator.
[0046] The camera module 180 may capture still images or moving images. According to an embodiment, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.
[0047] The power management module 188 may manage power supply to the electronic device 101. According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0048] The battery 189 may power at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0049] The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108), and perform communication via the established communication channel. The communication module 190 may include one or more communication processors capable of operating independently from the processor 120 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with an external electronic device via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or a wide area network (WAN))). These various types of communication modules can be implemented as a single component (e.g., a single chip), or these various types of communication modules can be implemented as multiple components separated from each other (e.g., multiple chips). The wireless communication module 192 can identify and authenticate the electronic device 101 in a communication network (such as the first network 198 or the second network 199) using user information (e.g., an International Mobile Subscriber Identity (IMSI)) stored in the user identification module 196.
[0050] The antenna module 197 may transmit or receive a signal or power to or from the outside of the electronic device 101 (e.g., an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiating element formed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a PCB). According to an embodiment, the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected from the plurality of antennas by, for example, the communication module 190 (e.g., the wireless communication module 192). A signal or power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as part of the antenna module 197.
[0051] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, a general purpose input output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.
[0052] According to an embodiment, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via the server 108 connected to the second network 199. Each of the electronic device 102 and the electronic device 104 may be a device of the same type as the electronic device 101, or a device of a different type from the electronic device 101. According to an embodiment, all or some operations to be run on the electronic device 101 may be run on one or more of the external electronic device 102, the external electronic device 104, or the server 108. For example, if the electronic device 101 should automatically perform a function or service or should perform a function or service in response to a request from a user or another device, the electronic device 101 may request the one or more external electronic devices to perform at least part of the function or service instead of running the function or service, or the electronic device 101 may request the one or more external electronic devices to perform at least part of the function or service in addition to running the function or service. The one or more external electronic devices that receive the request may perform the requested at least part of the function or service, or perform another function or another service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may provide the result as at least a partial reply to the request with or without further processing the result. To this end, cloud computing technology, distributed computing technology or client-server computing technology may be used, for example.
[0053] The electronic device according to various embodiments may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to an embodiment of the present disclosure, the electronic device is not limited to those electronic devices described above.
[0054] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but rather include various changes, equivalents, or alternative forms for the corresponding embodiments. For the description of the drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that a noun in the singular form corresponding to a term may include one or more things, unless the relevant context clearly indicates otherwise.
[0055] As used herein, each of phrases such as “A or B,” “at least one of A and B,” “at least one of A or B,” “A, B or C,” “at least one of A, B and C,” and “at least one of A, B or C” may include any one or all possible combinations of items listed together with a corresponding one of the plurality of phrases. As used herein, terms such as “first” and “second” or “first” and “second” may be used to simply distinguish a corresponding component from another component and do not limit the components in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “combined with another element (e.g., the second element)”, “combined to another element (e.g., the second element)”, “connected with another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” when the term “operably” or “communicatively” is used or when the term “operably” or “communicatively” is not used, it means that the element may be directly (e.g., wired) connected to the other element, wirelessly connected to the other element, or connected to the other element via a third element.
[0056] As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or a minimum unit or portion of the single integrated component. For example, according to an embodiment, a module may be implemented in the form of an application specific integrated circuit (ASIC).
[0057] The various embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, under the control of a processor, a processor (e.g., processor 120) of the machine (e.g., electronic device 101) may call at least one of the one or more instructions stored in the storage medium and execute the at least one instruction with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be run by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. Among them, the term "non-transitory" only means that the storage medium is a tangible device and does not include signals (e.g., electromagnetic waves), but the term does not distinguish between data being semi-permanently stored in a storage medium and data being temporarily stored in a storage medium.
[0058] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be released in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be downloaded via an application store (e.g., Play Store TM ) The computer program product may be published (e.g., downloaded or uploaded) online, or the computer program product may be distributed (e.g., downloaded or uploaded) directly between two user devices (e.g., smart phones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a memory of a manufacturer's server, an application store's server, or a forwarding server).
[0059] According to various embodiments, each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities. According to various embodiments, one or more components in the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each component in the multiple components in the same or similar manner as a corresponding component in the multiple components before integration. According to various embodiments, the operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more operations in the operations may be run or omitted in different orders, or one or more other operations may be added.
[0060] Figure 2 is a block diagram showing an example of a system configuration according to an embodiment.
[0061] For example, Figure 2 An exemplary configuration of a NAN cluster 200 as a proximity network according to an embodiment is shown. In the following description, the cluster 200 may include a group of electronic devices 210, 220, 230, and 240 constituting a proximity network, so that the electronic devices (or NAN devices) 210, 220, 230, and 240 can send and receive data to each other. In this way, according to various NAN standards, the cluster 200 may be referred to as a NAN cluster.
[0062] refer to Figure 2, the cluster 200 may be composed of a plurality of electronic devices 210, 220, 230, and 240. The electronic devices 210, 220, 230, and 240 included in the cluster 200 may send and receive beacons (or discovery beacons) and service discovery frames (SDFs) within a synchronized duration (or communication duration) (e.g., a discovery window (DW)). For example, the electronic devices 210, 220, 230, and 240 in the cluster 200 have time clocks that are synchronized with each other, so they may send and receive beacons and SDFs to each other in the same discovery window. According to an embodiment, an electronic device supporting a low-power near field communication technology based on NAN may broadcast a discovery signal (e.g., a beacon) so that the electronic device may be discovered by another electronic device in a predetermined first interval (e.g., approximately 100 milliseconds), and the electronic device may receive a discovery signal broadcasted from other electronic devices by performing a scan in a predetermined second interval (e.g., approximately 10 milliseconds). According to an embodiment, the electronic device may recognize at least one other electronic device located around the electronic device based on the discovery signal received through scanning, and the electronic device may perform time and channel synchronization with the recognized electronic device.
[0063] For example, Figure 2 As shown, each of the plurality of electronic devices 210, 220, 230, and 240 can form a cluster 200 by sending beacons to other electronic devices 210, 220, 230, and 240 and receiving beacons from other electronic devices 210, 220, 230, and 240, and the electronic devices 210, 220, 230, and 240 in the cluster 200 can perform time and channel synchronization. In an embodiment, time and channel synchronization can be performed based on the time and channel of the electronic device with the highest master preference in the cluster. For example, the electronic devices 210, 220, 230, and 240 in the cluster 200 can exchange signals of master preference information indicating the preference of the devices to operate with each other as anchor masters. And through the exchanged signals, the electronic devices can determine the electronic device with the highest master preference as the anchor master (or master device). According to an embodiment, the anchor master can be the electronic device on which the time and channel synchronization of the electronic devices 210, 220, 230, and 240 in the cluster 200 is based. The anchor master can be changed according to the master preference of the electronic device.
[0064] According to an embodiment, the discovery window (or discovery interval) may be repeated according to a predetermined interval, and in the discovery window, each of the electronic devices 210, 220, 230, and 240 that have been time / channel synchronized may send beacons and SDFs to other electronic devices and receive beacons and SDFs from other electronic devices. According to an embodiment, beacons may be periodically sent and received in each discovery window to continuously maintain time and channel synchronization of the electronic devices 210, 220, 230, and 240 in the cluster 200. According to an embodiment, SDFs may be sent and received in the discovery window according to the necessity of providing services with the discovered electronic devices 210, 220, 230, and 240. According to an embodiment, among the electronic devices 210, 220, 230, and 240 that have been time / channel synchronized, an electronic device operating as an anchor master may send beacons in the intervals between discovery windows to detect new electronic devices.
[0065] According to an embodiment, each of the electronic devices 210, 220, 230, and 240 in the cluster 200 can reduce current consumption by operating in an active state only during a discovery window and operating in a low power state (e.g., a sleep state) during the remaining interval outside the discovery window. In this way, the discovery window corresponds to the time (e.g., an interval measured in milliseconds) during which the electronic device is in an active state (or awake state) and consumes power, while in the interval outside the discovery window, the electronic device is in a sleep state where low power discovery may be performed. Therefore, the electronic devices 210, 220, 230, and 240 in the cluster 200 can be activated simultaneously at the start time of the discovery window (e.g., DW start) synchronized by time synchronization, and they can be switched to a sleep state simultaneously at the end time of the discovery window (e.g., DW end).
[0066] According to an embodiment, the electronic devices 210, 220, 230, and 240 included in the cluster 200 may use Figure 3 The protocol shown is used to perform discovery, synchronization, and data exchange operations.
[0067] Figure 3 is a diagram showing an example of a signal transmission protocol in a proximity network according to an embodiment.
[0068] For example, Figure 3 It may be an example diagram of a discovery window according to an embodiment. Figure 3 In the example of FIG. 1 , electronic devices included in one cluster may transmit signals through a specific channel (eg, channel 6 (Ch 6)) based on the NAN standard.
[0069] refer to Figure 3, the electronic devices included in one cluster may transmit the synchronization beacon 310 and the SDF 320 in the synchronization discovery window (DW) 325. In another interval 340 (e.g., the interval between discovery windows) outside the discovery window 325, the discovery beacon 330 may be transmitted by at least one electronic device. According to an embodiment, the electronic device may transmit the synchronization beacon 310 and the SDF 320 based on competition between electronic devices. For example, one electronic device may compete with another electronic device to transmit the synchronization beacon 310 and the SDF 320 of the electronic device, and the other electronic device may receive the synchronization beacon 310 and the SDF 320 based on a specific priority.
[0070] According to an embodiment, for data exchange between various electronic devices, the discovery window 325 may be an interval in which the corresponding electronic device is activated from a sleep state corresponding to a power saving mode to a wake-up state. For example, the discovery window 325 may be divided into a plurality of millisecond time units (TU). According to an embodiment, the discovery window 325 for sending and receiving synchronization beacons 310 and SDF 320 may occupy 16 time units (TU), and the discovery window 325 may have a cycle (or interval) repeated in 512 time units (TU).
[0071] According to an embodiment, the discovery beacon 330 may be a signal sent so that other electronic devices that cannot join the cluster can discover the cluster. For example, the discovery beacon 330 is a signal for notifying the existence of the cluster, and an electronic device that is not part of the cluster can discover and join the cluster by performing passive scanning to receive the discovery beacon 330.
[0072] According to an embodiment, the discovery beacon 330 may include information required for synchronization with the cluster. For example, the discovery beacon 330 may include a frame control (FC) field indicating the function of the discovery beacon signal, a broadcast address, a media access control (MAC) address of the electronic device that initiates the beacon, a cluster identifier, a sequence control field, a timestamp of the beacon frame, a beacon interval indicating the transmission interval of the discovery beacon 330, or at least one of the capability information of the sending electronic device. According to an embodiment, the discovery beacon 330 may include information elements related to at least one neighboring network (or cluster). In an embodiment, information related to a neighboring network may be referred to as attribute information.
[0073] According to an embodiment, the synchronization beacon 310 may be a signal for maintaining synchronization between synchronized electronic devices in the cluster. The synchronization beacon 310 may be sent by a synchronization device among the electronic devices in the cluster. For example, the synchronization device may be an anchor master device, a master device, or a non-master synchronization device defined in the NAN standard.
[0074] According to an embodiment, the synchronization beacon 310 may include information required for synchronization of electronic devices in the cluster. For example, the synchronization beacon 310 may include at least one of an FC field indicating the function of the synchronization beacon signal, a broadcast address, a MAC address of the sending electronic device, a cluster identifier, a sequence control field, a timestamp of the beacon frame, a beacon interval indicating the interval between the start points of the discovery window 325, or the capability information of the sending electronic device. According to an embodiment, the synchronization beacon 310 may include information elements related to at least one neighboring network (or cluster). For example, neighboring network related information may include the content of the service provided by the neighboring network.
[0075] According to an embodiment, the SDF 320 may be a signal for exchanging data through a neighboring network. According to an embodiment, the SDF 320 may be a vendor-specific public action frame, and the SDF 320 may include various fields. For example, the SDF 320 may include a category or action field, and the SDF 320 may include at least one piece of neighboring network related information.
[0076] As described above, the synchronization beacon 310, the SDF 320, and the discovery beacon 330 may include neighboring network related information. In an embodiment, the neighboring network related information may include an identifier indicating the type of information, the length of the information, and the body field containing the information. According to an embodiment, the information in the body field may include at least one of main indication information, cluster information, service identifier list information, service descriptor information, connection capability information, wireless LAN infrastructure information, peer-to-peer (P2P) operation information, independent basic service set (IBSS) information, mesh information, further neighboring network service discovery information, further availability map information, country code information, ranging information, cluster discovery information, or vendor-specific information.
[0077] Figure 4 is a diagram illustrating an example of data transmission and reception in a cluster according to an embodiment.
[0078] For example, Figure 4 An example is shown in which a first electronic device 410, a second electronic device 420, and a third electronic device 430 form a cluster through a near field communication technology, and the electronic devices 410, 420, and 430 can send and receive beacons and / or SDFs to each other. Figure 4 In the example shown, the first electronic device 410 functions as a master electronic device.
[0079] refer to Figure 4, the first electronic device 410 may transmit a beacon and an SDF in a discovery window 450. According to an embodiment, the first electronic device 410 may broadcast a beacon and an SDF in each discovery window 450, and the window 450 is repeated at each predetermined interval (eg, interval 460).
[0080] According to an embodiment, the second electronic device 420 and the third electronic device 430 may receive the beacon and the SDF transmitted by the first electronic device 410. According to an embodiment, the second electronic device 420 and the third electronic device 430 may receive the beacon and the SDF broadcasted from the first electronic device 410 in each discovery window 450.
[0081] According to an embodiment, the beacon transmitted in the discovery window 450 may be a synchronization beacon, and the synchronization beacon may include information for maintaining synchronization between the electronic devices 410, 420, and 430. For example, if the electronic devices 410, 420, and 430 are included in a cluster, all three devices may be synchronized with the time clock of the master electronic device (e.g., the first electronic device 410), and thus the discovery window 450 may be activated at the same time.
[0082] According to an embodiment, in an interval outside the discovery window 450 (e.g., interval 460), the electronic devices 410, 420, and 430 may remain in a sleep state in order to reduce current consumption. Therefore, the electronic devices 410, 420, and 430 may reduce current consumption by operating in an awake state only during the discovery window 450.
[0083] According to a specific embodiment, a method and apparatus for further improving the current consumption of NAN devices based on low-power near field communication technology (or NAN standard) are disclosed. For example, in NAN, a NAN service discovery agent (hereinafter referred to as "service discovery agent") function for reducing current consumption by controlling traffic load distribution is defined, and an electronic device (or proxy device) can operate (or run) as a NAN proxy server (hereinafter referred to as "proxy server") or a NAN proxy client (hereinafter referred to as "proxy client"). According to an embodiment, in a cluster, any one electronic device can operate as a proxy server, and other electronic devices can operate as proxy clients.
[0084] According to an embodiment, the electronic devices in the cluster can be synchronized with the same discovery window, proxy server negotiation can be performed between the electronic devices, and the roles of the proxy server and the proxy client can be assigned to each of the operating electronic devices based on the proxy server negotiation. According to an embodiment, the electronic device designated as the proxy server can perform data communication (e.g., service discovery) instead of the proxy client, so the current consumption of the proxy client can be reduced. According to an embodiment, the electronic device can support the functions (or roles or operations) of both the proxy server and the proxy client, and the electronic device can dynamically switch or perform these functions simultaneously to further improve the current consumption.
[0085] Figure 5 is a diagram illustrating an example in which an electronic device is simultaneously a proxy server and a proxy client according to an embodiment.
[0086] like Figure 5 As shown in the example of , the electronic device 101, the first external electronic device 520 and the second external electronic device 530 are included in the cluster 500. According to the embodiment, the electronic device 101 supports two functions of the proxy server 511 and the proxy client 513, the first external electronic device 520 operates as a proxy client 525, and the second external electronic device 530 operates as a proxy server 535.
[0087] According to an embodiment, if the electronic device 101 (e.g., a mobile device) operates to establish a network connection with a first external electronic device 520 (e.g., an IoT device or a wearable device), the electronic device 101 may operate as a proxy server 511. According to an embodiment, the first external electronic device 520, which is more sensitive to current consumption than the electronic device 101, may register service information and wake-up interval information in the electronic device 101, and the first external electronic device 520 may operate as a proxy client 525.
[0088] According to an embodiment, the electronic device 101 can identify that a new proxy server (e.g., a second external electronic device 530) is nearby through service discovery. According to an embodiment, the electronic device (e.g., the second external electronic device 530) operating as a new proxy server 535 in the cluster 500 can be a fixed type electronic device that is always powered, such as an access point (AP), a hub, an artificial intelligence (AI) device (e.g., an AI speaker), or a TV. In this case, in order to reduce current consumption, the electronic device 101 can also be registered as a proxy client 513 in the second external electronic device 530 (e.g., the proxy server 535), so that the current consumption in the electronic device 101 can be reduced.
[0089] According to an embodiment, in Figure 5In the case of the cluster 500 shown, the electronic device 101 can support a dual mode, in which the electronic device 101 operates as a proxy server 511 relative to the first external electronic device 520 to manage the first external electronic device 520 registered as a proxy client 525, and in order to minimize current consumption, the electronic device 101 is also registered as a proxy client 513 in the second external electronic device 530 operating as a proxy server 535.
[0090] refer to Figure 5 , the electronic device 101 can use the service discovery proxy function with the first external electronic device 520. According to an embodiment, as a proxy server 511, the electronic device 101 can register and manage the service information and wake-up interval information of the first external electronic device 520. Figure 5 One proxy client is shown in FIG. 1 , but the disclosed embodiments are not limited thereto, and the electronic device 101 may register and manage several proxy clients.
[0091] According to an embodiment, in Figure 5 In the case shown, the electronic device 101 may include information of the first external electronic device 520 in the discovery window, and the electronic device 101 may perform a service discovery operation (e.g., SDF (e.g., publish, subscribe, or follow-up message) exchange). According to an embodiment, in the service discovery operation, the electronic device 101 may receive an SDF (e.g., a publish message) sent by the second external electronic device 530, and the electronic device 101 may recognize that the second external electronic device 530 operates as a proxy server 535.
[0092] According to an embodiment, the electronic device 101 may perform a dual mode in which the electronic device 101 performs the function of a proxy server 511 relative to the first external electronic device 520 and simultaneously operates as a proxy client 513 relative to the second external electronic device 530. The electronic device 101 may send service information and wake-up interval information to the second external electronic device 530. According to an embodiment, the service information registered by the electronic device 101 in the second external electronic device 530 may include, for example, both service information of the electronic device 101 (e.g., first service information) and service information registered by the first external electronic device 520 operating as a proxy client 525 relative to the electronic device 101 (e.g., second service information).
[0093] According to an embodiment, the second external electronic device 530 may use service information (eg, first service information and second service information) from the electronic device 101 and / or the first external electronic device 520 during the service discovery operation.
[0094] According to an embodiment, the wake-up interval information (e.g., first wake-up interval information) registered by the electronic device 101 for reducing current consumption should not be greater than the wake-up interval information (e.g., second wake-up interval information) of the first external electronic device 520 managed by the electronic device 101 itself, but can be configured to have an interval less than or equal to the second wake-up interval information (e.g., first wake-up interval ≤ second wake-up interval). For example, considering the wake-up interval (e.g., second wake-up interval) of the first external electronic device 520, the electronic device 101 can configure the wake-up interval (e.g., first wake-up interval) of the electronic device 101.
[0095] According to an embodiment, the electronic device 101 can more effectively reduce current consumption by dynamically switching between a proxy server and a proxy client depending on the service discovery proxy function. For example, in an embodiment, the electronic device 101 can operate as a proxy server and a proxy client at the same time, or the electronic device 101 can be dynamically configured as a proxy server and a proxy client. Hereinafter, according to a specific embodiment, the operation of the electronic device 101 to reduce current consumption based on the dual-mode operation of the proxy server and the proxy client will be described in more detail with reference to the accompanying drawings to be described later.
[0096] The electronic device 101 according to an embodiment of the present disclosure may include: a housing; at least one antenna; at least one wireless communication circuit (eg, Figure 1 A wireless communication module 192) located in the housing, operably connected to the antenna, and configured to support a Neighbor Awareness Network (NAN) protocol; a processor (e.g., Figure 1 a processor 120) located in the housing and operably connected to the wireless communication circuitry; and a memory (e.g., Figure 1 130), which is operably connected to the processor 120, wherein the memory 130 stores instructions that, when executed, cause the processor to: broadcast a notification to the electronic device 101 (e.g., Figure 5 The electronic device 101 can be used as a first proxy server to operate the first signal; from the first external electronic device (eg, Figure 5 the first external electronic device 520) receiving a second signal including a first proxy client registration request; in response to the second signal, sending a third signal including a first proxy client registration response to the first external electronic device; while operating as a first proxy server for the first external electronic device, receiving a notification from the second external electronic device through the wireless communication circuit to the second external electronic device (e.g., Figure 5The invention further comprises the steps of: sending a fourth signal to the second external electronic device 530) that the second external electronic device can operate as a second proxy server; based on the fourth signal, sending a fifth signal including a second proxy client registration request to the second external electronic device; receiving a sixth signal including a second proxy client registration response corresponding to the fifth signal from the second external electronic device; and operating the electronic device as a first proxy client of the second external electronic device in parallel with operating the electronic device as a first proxy server of the first external electronic device.
[0097] Processor 120 may include a microprocessor or any suitable type of processing circuit, such as one or more general-purpose processors (e.g., ARM-based processors), digital signal processors (DSPs), programmable logic devices (PLDs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), graphics processing units (GPUs), video card controllers, etc. In addition, it will be recognized that when a general-purpose computer accesses the code for implementing the processing shown herein, the execution of the code converts the general-purpose computer into a special-purpose computer for performing the processing shown herein. The specific functions and steps provided in the accompanying drawings may be implemented in hardware, software, or a combination of both, and may be executed in whole or in part within the programming instructions of a computer. No claim element herein shall be interpreted under the provisions of 35 U.S.C. § 112(f) unless the element is expressly stated using the phrase "means for..." In addition, the skilled person understands and appreciates that a "processor" or "microprocessor" may be hardware in the claimed disclosure. Under the broadest reasonable interpretation, the appended claims are statutory subject matter consistent with 35 U.S.C. § 101.
[0098] According to an embodiment, the first signal may include proxy server capability information of the electronic device 101 and / or discovery window (DW) wakeup interval information.
[0099] According to an embodiment, the second signal may include discovery window wake-up interval information of the first external electronic device.
[0100] According to an embodiment, the fifth signal may include discovery window wake-up interval information of the electronic device 101, and the discovery window wake-up interval information of the electronic device 101 may be based on at least the discovery window wake-up interval information of the first external electronic device.
[0101] According to an embodiment, the fifth signal may include first discovery window wake-up interval information of the electronic device 101 and second discovery window wake-up interval information of the first external electronic device registered as a second proxy client of the electronic device 101 .
[0102] According to an embodiment, the first discovery window wake-up interval information of the electronic device 101 may be configured to be an interval that is less than or equal to the second discovery window wake-up interval information of the first external electronic device.
[0103] According to an embodiment, the instructions may cause the processor 120 to: send a proxy server indication including the address of the second external electronic device and / or discovery window wake-up interval information to the first external electronic device via service discovery frame (SDF) information received from the second external electronic device, and based on the proxy server indication, maintain the first external electronic device as a second proxy client of the electronic device 101, or cause the first external electronic device to terminate its operation as a second proxy client of the electronic device 101 and operate as a third proxy client of the second external electronic device.
[0104] According to an embodiment, when the electronic device deviates from the area of the second external electronic device by a predetermined amount, the instructions may cause the processor to terminate the electronic device as a first proxy client of the second external electronic device and maintain the electronic device as a first proxy server of the first external electronic device.
[0105] The electronic device 101 according to the embodiment may include: a housing; at least one antenna; at least one wireless communication circuit (eg, Figure 1 A wireless communication module 192) located in the housing, operably connected to the antenna, and configured to support communication based on a Neighbor Awareness Network (NAN) protocol at a discovery window (DW) wake-up interval synchronized with external electronic devices in the same NAN cluster; a processor (e.g., Figure 1 a processor 120) located in the housing and operably connected to the wireless communication circuit; and a memory (e.g., Figure 1 Memory 130), wherein the memory 130 stores instructions that, when executed, cause the processor 120 to: perform service discovery at a discovery window wake-up interval via a wireless communication circuit; receive notifications from an external electronic device (e.g., Fig.10 The second electronic device 1020 can be used as a first signal of the proxy server operation; based on the received first signal, perform a proxy server negotiation with the external electronic device; and based on the performed proxy server negotiation, the electronic device 101 (for example, Fig.10 The first electronic device 1010) operates as a proxy server of the external electronic device, or the electronic device 101e operates as a proxy client of the external electronic device.
[0106] According to an embodiment, the first signal may include proxy server capability information and / or service information of the external electronic device.
[0107] According to an embodiment, the proxy server negotiation may include the exchange of proxy server intent, discovery window wake-up interval, number of registrable clients, expiration time, and / or device type information.
[0108] According to an embodiment, when the electronic device 101 is to operate as a proxy client, the instructions may cause the processor 120 to send proxy registration request information including service information of the electronic device 101 and / or a discovery window wake-up interval to the external electronic device.
[0109] According to an embodiment, when the electronic device 101 is to operate as a proxy server, the instructions may cause the processor 120 to configure an expiration time of the proxy server and perform service discovery based on a discovery window wakeup interval and / or service information of the electronic device 101 and the external electronic device.
[0110] Figure 6 is a diagram illustrating an operation method in which an electronic device is a proxy server and a proxy client at the same time according to an embodiment.
[0111] According to an embodiment, Figure 6 An example of a dual-mode operation method can be shown, in which the electronic device 101 is both a proxy server and a proxy client, as described above with reference to Figure 5 Included.
[0112] According to an embodiment, the electronic device 101 supporting both the proxy server and the proxy client functions may perform a process of registering the first external electronic device 620 as a proxy client when the electronic device 101 operates as a proxy server, and the electronic device 101 may manage service information registered by the first external electronic device 620. Figure 6 Although not shown in the figure, the electronic device 101 can register and manage one or more proxy clients according to the capabilities of the electronic device 101.
[0113] refer to Figure 6 In operation 601, the electronic device 101 (e.g., a mobile device) may send information indicating whether a proxy server function is supported in an SDF (e.g., a publish message) during a discovery window interval. According to an embodiment, the information indicating whether a proxy server function is supported may include proxy server capability information and wake-up interval information (e.g., a discovery window (DW) wake-up interval). According to an embodiment, Figure 6As illustrated in , during the initial operation, the electronic device 101, the first external electronic device 620, and the second external electronic device 630 may wake up once in each of their discovery windows (e.g., when the wake-up interval A of the electronic device 101 is 1, and the wake-up interval B of the first external electronic device 620 is 1) to perform service discovery. For example, the electronic devices in the cluster (e.g., the electronic device 101, the first external electronic device 620, and the second external electronic device 630) may be synchronized with the same discovery window. According to an embodiment, as Figure 6 As shown, when the second external electronic device 630 operates as a proxy client of the electronic device 101, the second external electronic device 630 can reconfigure its wake-up interval to "4" (eg, wake-up interval B=1→wake-up interval B=4) so as to wake up once every four discovery windows.
[0114] In operation 603, in the cluster, an external electronic device or an adjacent NAN device (e.g., the first external electronic device 620) synchronized with the electronic device 101 in the same discovery window may receive an SDF (e.g., a publish message) broadcast by the electronic device 101, and the external electronic device or the adjacent NAN device may identify whether the electronic device 101 supports a proxy server function. According to an embodiment, the first external electronic device 620 may be a device (e.g., an IoT device or a wearable device) that is sensitive to current consumption, that is, the device has a relatively small battery.
[0115] At operation 605, the first external electronic device 620 may identify that the electronic device 101 supports a proxy server function, and the first external electronic device 620 may send a request message (e.g., a proxy registration request message) for requesting proxy registration to the electronic device 101 that performs the proxy server function. According to an embodiment, the request message may include service information and wake-up interval information (e.g., wake-up interval B=4) of the first external electronic device 620. According to an embodiment, the first external electronic device 620 may adjust the wake-up interval to be provided to the electronic device 101 so as to reduce current consumption when the first external electronic device 620 operates as a proxy client. According to an embodiment, when operating as a proxy client, the first external electronic device 620 may extend (or reconfigure) the currently configured wake-up interval (e.g., wake-up interval B=1), and the first external electronic device 620 may reduce current consumption when operating as a proxy client.
[0116] At operation 607, the electronic device 101 may send a response message (e.g., a proxy registration response message) to the first external electronic device 620 regarding whether to register the proxy of the first external electronic device 620 in response to the proxy registration request from the first external electronic device 620. According to an embodiment, the response message may include information (e.g., status) regarding acceptance or rejection of the proxy registration request from the first external electronic device 620. According to an embodiment, if the electronic device 101 accepts the proxy registration request from the first external electronic device 620, the response message may include registration information (e.g., registration ID information (e.g., registration id B)) given (or assigned) to the first external electronic device 620 by the electronic device 101.
[0117] In operation 609, if the proxy registration request is accepted by the electronic device 101, the first external electronic device 620 may operate as a proxy client. According to an embodiment, the first external electronic device 620 may reduce current consumption by performing a wake-up operation once every four discovery windows based on a wake-up interval requested by the first external electronic device 620 itself (e.g., wake-up interval = 4). According to an embodiment, the electronic device 101 may wake up in each discovery window (e.g., wake-up interval A = 1) to perform service discovery. According to an embodiment, the electronic device 101 may manage the first external electronic device 620 as a proxy client, and the electronic device 101 may perform service discovery instead of the first external electronic device 620.
[0118] In operation 611, the second external electronic device 630 that performs the proxy server function in the cluster may broadcast the SDF (e.g., publish a message) at a discovery window interval (e.g., wake-up interval C=1). According to an embodiment, the second external electronic device 630 may include information in the SDF to be sent, the information including whether the proxy server function is supported (e.g., proxy server capability information or wake-up interval information). According to an embodiment, through service discovery in the cluster 500, the electronic device 101 may recognize that a new proxy server (e.g., the second external electronic device 630) that is not the electronic device 101 itself is around the electronic device 101. According to an embodiment, as Figure 6As shown, the second external electronic device 630 may be a fixed type device that is always powered. In order to reduce current consumption, the electronic device 101 may also be registered as a proxy client in the second external electronic device 630, and conventional power is supplied to the second external electronic device 630, so that the wake-up interval can be extended in the second external electronic device 630, and the current consumption can be reduced in the electronic device 101. According to an embodiment, the electronic device 101 and the second external electronic device 630 can identify each other by performing service discovery between two electronic devices in the same cluster. For example, the electronic device 101 can determine whether a new proxy server (e.g., the second external electronic device 630) is found in the cluster while performing service discovery. According to an embodiment, in the case where the electronic device 101 and the first external electronic device 620 move to a cluster including the second external electronic device 630, the electronic device 101, the first external electronic device 620, and the second external electronic device 630 may be included in the same cluster.
[0119] At operation 613, the electronic device 101 may receive the SDF transmitted by the second external electronic device 630, and the electronic device 101 may recognize that the second external electronic device 630 operates as a proxy server. According to an embodiment, the electronic device 101 may recognize device type information of the second external electronic device 630. For example, the electronic device 101 may recognize whether the second external electronic device 630 is a device that is always powered, such as the above-mentioned AP, hub, etc.
[0120] In operation 615, if the second external electronic device 630 is a proxy server, the electronic device 101 may send a proxy registration request message for requesting proxy registration of the electronic device 101 to the second external electronic device 630, similar to the above-mentioned operation of requesting proxy registration by the first external electronic device 620. According to an embodiment, the proxy registration request message requested by the electronic device 101 from the second external electronic device 630 may include service information (e.g., first service information (e.g., service information A)) and wake-up interval information (e.g., first wake-up interval information (e.g., wake-up interval A') of the electronic device 101, and service information (e.g., second service information (e.g., service information B)) and wake-up interval information (e.g., second wake-up interval information (e.g., wake-up interval B)) of the first external electronic device 620 managed as a proxy client by the electronic device 101. According to an embodiment, the wake-up interval information of the electronic device 101 may be configured to have a value (or interval) that is less than or equal to the value of the wake-up interval information of the first external electronic device 620.
[0121] According to various embodiments, the wake-up interval information (e.g., wake-up interval A') of the electronic device 101 registered in the second external electronic device 630 by the electronic device 101 should not be greater than the wake-up interval information (e.g., wake-up interval B=4) of the first external electronic device 620 managed by the electronic device 101. On the contrary, it can be configured to have an interval less than or equal to that of the first external electronic device 620 (e.g., first wake-up interval ≤ second wake-up interval). For example, the electronic device 101 can configure the wake-up interval (e.g., wake-up interval A') to "2" (e.g., wake-up interval A'=2), which is equal to or less than "4" of the wake-up interval of the first external electronic device 560 (e.g., wake-up interval B=4).
[0122] At operation 617, the second external electronic device 630 may send a proxy registration response message to the electronic device 101 in response to the proxy registration request from the electronic device 101. According to an embodiment, the proxy registration response message may include information (e.g., status) on acceptance or rejection of the proxy registration request from the electronic device 101. According to an embodiment, if the second external electronic device 630 accepts the proxy registration request from the electronic device 101, the response message may include registration information (e.g., registration ID information (e.g., registration id A)) given (or assigned) to the electronic device 101 by the second external electronic device 630.
[0123] According to an embodiment, the electronic device 101 may be registered as a proxy client in the second external electronic device 630 by exchanging a proxy registration request and a proxy registration response with the second external electronic device 630. According to an embodiment, as shown in operation 619, the electronic device 101 may operate as a proxy client with respect to the second external electronic device 630 and simultaneously operate as a proxy server with respect to the first external electronic device 620 by exchanging a proxy registration request and a proxy registration response with the second external electronic device 630. For example, the electronic device 101 may operate as a proxy server and a proxy client at the same time.
[0124] In an embodiment, the proxy registration request message and the proxy registration response message may use an SDF, or they may use a separate NAN action frame (NAF).
[0125] According to an embodiment, when registering information (e.g., service information and wake-up interval information) in the second external electronic device 630 at operation 615, the electronic device 101 may also register service information of a proxy client (e.g., the first external electronic device 620) managed by the electronic device 101 through a proxy server operation. According to an embodiment, the service information registered by the electronic device 101 in the second external electronic device 630 may include service information of the electronic device 101 (e.g., first service information) and service information registered by the first external electronic device 620 operating as a proxy client in the electronic device 101 (e.g., second service information).
[0126] According to an embodiment, in the case of extending (or configuring) the wake-up interval (e.g., the first wake-up interval) of the electronic device 101 operating as a proxy client of the second external electronic device 630, the electronic device 101 may configure a wake-up interval that is less than or equal to the second wake-up interval with reference to the wake-up interval (e.g., the second wake-up interval) of the proxy client of the electronic device 101 (e.g., the first external electronic device 620).
[0127] For example, the electronic device 101 may perform service discovery with the second external electronic device 630 during the discovery window for the second external electronic device 630, and if service information related to the first external electronic device 620 is needed, it is necessary for the electronic device 101 to transmit the corresponding information to the first external electronic device 620. And if the service information acquired from the second external electronic device 630 is the service information registered by the first external electronic device 620, when the first external electronic device 620 wakes up, the electronic device 101 may transmit the corresponding result at the discovery window interval. In this case, if the electronic device 101 has a wake-up interval greater than the wake-up interval of the first external electronic device 620, a delay may occur when transmitting the corresponding service information to the first external electronic device 620, which results in inefficiency in transmitting the service information. Therefore, according to a specific embodiment, with reference to the wake-up interval of the registered proxy client, the electronic device 101 may operate to register in the second external electronic device 630 a wake-up interval that is less than or equal to the minimum wake-up interval of the proxy client under the control of the electronic device 101.
[0128] According to an embodiment, the electronic device 101 may send a message (e.g., a proxy server indication message) including information (e.g., address information and wake-up interval information) related to the second external electronic device 630 to the first external electronic device 620. In a specific embodiment, the proxy server indication message may use an SDF, or the proxy server indication message may use a new NAF.
[0129] According to an embodiment, Figure 6As shown in operation 621 of the embodiment, the second external electronic device 630 may transmit the SDF including the service information registered in the second external electronic device 630 to the electronic device 101. Figure 6 As shown in operation 623, the electronic device 101 may transmit a proxy server indication message (eg, including address information of the second external electronic device 630 as a new proxy server) to the first external electronic device 620 based on the SDF received from the second external electronic device 630.
[0130] According to an embodiment, if a proxy server indication message is received from the electronic device 101, the first external electronic device 620 may maintain the electronic device 101 as its proxy server, or the first external electronic device 620 may terminate the proxy client function with the electronic device 101 and the first external electronic device 620 may be registered as a new proxy client in the second external electronic device 630.
[0131] According to an embodiment, Figure 6 As shown, the electronic device 101 can manage and operate the first external electronic device 620 as a proxy client (e.g., perform a proxy server function for the first external electronic device 620), and the electronic device 101 can operate as a proxy client for the second external electronic device 630 to reduce its current consumption in the same way as the first external electronic device 620 reduces its current consumption. According to an embodiment, if the electronic device 101 and the first external electronic device 620 move and leave the area (e.g., cluster) of the second external electronic device 630, the electronic device 101 can remove (or terminate) the proxy client function with the second external electronic device 630, and the electronic device 101 and the second external electronic device 630 can maintain the proxy server operation for the first external electronic device 620. Therefore, the electronic device 101 can operate to reduce the current consumption of the first external electronic device 620, and depending on the situation, the electronic device 101 can operate as a proxy client at the same time, so that its own current consumption can be reduced.
[0132] Figure 7 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0133] In an embodiment, Figure 7 An exemplary case may be shown in which the electronic device 101 supports the functions of both a proxy server and a proxy client, and the electronic device 101 functions as a proxy server and a proxy client at the same time.
[0134] refer to Figure 7, at operation 701, the processor 120 of the electronic device 101 may activate a NAN function, and the electronic device 101 may synchronize with a neighboring electronic device (eg, a NAN device) having a NAN function to form a NAN cluster.
[0135] In operation 703, the processor 120 may activate a proxy server function of the electronic device 101, and the processor 120 may start a proxy server operation.
[0136] In operation 705 , the processor 120 may send proxy server capability information notifying the electronic device 101 that it supports the proxy server operation through the SDF (eg, a publish, subscribe, or follow-up message).
[0137] At operation 707, the processor 120 may receive a signal from an adjacent first external electronic device (eg, Figure 5 or Figure 6 The first external electronic device 520 or 620) receives a proxy registration request message for requesting proxy registration. According to an embodiment, the proxy registration request message sent by the first external electronic device may include wake-up interval information and service information of the first external electronic device.
[0138] At operation 709 , the processor 120 may transmit a proxy registration response message corresponding to the proxy registration request message to the first external electronic device.
[0139] At operation 711, the processor 120 may perform service discovery including registration information of the first external electronic device. According to an embodiment, based on the proxy registration response message, the processor 120 may manage the first external electronic device as a proxy client, and the processor 120 may perform service discovery on behalf of the first external electronic device.
[0140] At operation 713, the processor 120 may determine whether a new proxy server is found in the cluster while performing service discovery. For example, the processor 120 may receive a second external electronic device (eg, Figure 5 or Figure 6 The SDF of the second external electronic device 530 or 630) recognizes that the second external electronic device supports the proxy server function.
[0141] In operation 713 , if the proxy server is not found (eg, “No” is answered in operation 713 ), the processor 120 may continue with operation 711 to perform operations subsequent to operation 711 .
[0142] At operation 713, if a proxy server is found (e.g., "yes" is answered at operation 713), the processor 120 may send a proxy registration request message for requesting proxy registration to the second external electronic device at operation 715. According to an embodiment, the proxy registration request message sent by the electronic device 101 may include wake-up interval information and service information registered by the first external electronic device and wake-up interval information and service information of the electronic device 101. According to an embodiment, the wake-up interval information (e.g., the first wake-up interval) of the electronic device 101 may be configured as an interval that is less than (shorter than) or equal to the second wake-up interval of the first external electronic device (e.g., the first wake-up interval ≤ the second wake-up interval).
[0143] At operation 717 , the processor 120 may receive a proxy registration response message from the second external electronic device.
[0144] At operation 719, after receiving the proxy response message from the second external electronic device, the processor 120 may operate as a proxy client of the second external electronic device. According to an embodiment, the processor 120 may start a dual-mode operation of a proxy server and a proxy client of the electronic device 101. For example, the processor 120 may perform an operation of a proxy client for a second external electronic device while maintaining an operation of a proxy server for a first external electronic device.
[0145] Figure 8 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0146] For example, Figure 8 An example of a dual mode may be shown in which the electronic device 101 supports functions of both a proxy server and a proxy client, and the electronic device 101 operates as a proxy server and a proxy client at the same time.
[0147] refer to Figure 8 At operation 801, the processor 120 of the electronic device 101 may broadcast a first signal notifying that the electronic device 101 may operate as a proxy server. According to an embodiment, the processor 120 may transmit a first signal to the wireless communication circuit (e.g., Figure 1 The wireless communication module 192 of the electronic device 101) broadcasts a first signal to notify the neighboring external electronic devices in the cluster. According to an embodiment, the wireless communication circuit may be located in the housing of the electronic device 101, may be electrically connected to the antenna, and may be configured to support the NAN protocol. According to an embodiment, the first signal may include the proxy server capability information and / or the discovery window (DW) wake-up interval information of the electronic device 101.
[0148] At operation 803, the processor 120 may receive a signal from a first external electronic device (eg, Figure 5 or Figure 6 The first external electronic device 520 or 620) receives the second signal including the proxy client registration request. According to an embodiment, the second signal may include the discovery window wake-up interval information of the first external electronic device.
[0149] At operation 805 , the processor 120 may transmit a third signal including a proxy client registration response to the first external electronic device in response to the second signal.
[0150] At operation 807, while operating as a proxy server for the first external electronic device, the processor 120 may receive a notification from the second external electronic device that the second external electronic device (eg, Figure 5 or Figure 6 The second external electronic device 530 or 630) can act as a fourth signal for operating as a proxy server.
[0151] At operation 809, the processor 120 may send a fifth signal including a proxy client registration request to the second external electronic device based on the fourth signal. According to an embodiment, the fifth signal may include discovery window wakeup interval information of the electronic device 101 based at least on the discovery window wakeup interval information of the first external electronic device.
[0152] At operation 811, the processor 120 may receive a sixth signal including a proxy client registration response corresponding to the fifth signal from the second external electronic device. According to an embodiment, the processor 120 may send a seventh signal (e.g., a proxy server indication message) including an address of the second external electronic device and / or discovery window wake-up interval information to the first external electronic device in response to the reception of the sixth signal.
[0153] At operation 813 , the processor 120 may operate as a proxy client for the second external electronic device in parallel with the electronic device 101 operating as a proxy server for the first external electronic device.
[0154] According to a specific embodiment, the electronic device 101 may operate to select the functions of a proxy server and a proxy client. For example, the electronic device 101 may dynamically select the functions of a proxy server and a proxy client. According to an embodiment, in the case of a mobile device with a battery, it may be difficult to maintain its state as a proxy server due to limited resources such as electricity. According to a specific embodiment, the proxy server function may be negotiated between electronic devices (e.g., mobile devices) with limited power, and the electronic devices may operate as a proxy server and a proxy client within a predetermined time interval that will eventually expire. For example, in the case of NAN, the same service information may be sent and received via SDF. In this case, it may be inefficient for all electronic devices to wake up in each discovery window to perform service discovery. According to a specific embodiment, in this case, current consumption can be reduced by dynamically determining the proxy server between the electronic devices and registering the information of adjacent proxy clients with the same service information in the cluster. Hereinafter, the operation for dynamic NAN service discovery proxy server configuration according to an embodiment will be described.
[0155] Fig. 9 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0156] For example, Fig. 9 An operation example in which the electronic device 101 dynamically performs NAN service discovery proxy server configuration may be shown.
[0157] refer to Fig. 9 , at operation 901, the processor 120 of the electronic device 101 may activate a NAN function, and the electronic device 101 may form a NAN cluster with an adjacent external electronic device (eg, a NAN device) having a NAN function through a NAN synchronization process.
[0158] At operation 903, the processor 120 may perform a service discovery exchange (e.g., SDF (e.g., publish, subscribe, or track message)) in a discovery window synchronized with an external electronic device in the same NAN cluster. According to an embodiment, electronic devices in the same NAN cluster (e.g., the electronic device 101 and the external electronic device) may be synchronized with the same discovery window.
[0159] At operation 905, the processor 120 may perform proxy server negotiation with an external electronic device. According to an embodiment, the processor may identify service information of the external electronic device and / or proxy capability information indicating whether the electronic device can perform proxy server negotiation through service discovery. According to an embodiment, if there is an electronic device that can act as a proxy server in the NAN cluster, the processor 120 may perform proxy server negotiation with the corresponding electronic device based on the proxy capability information.
[0160] At operation 907, the processor 120 may determine whether the electronic device 101 operates as a proxy server or a proxy client based on the proxy server negotiation. According to an embodiment, the processor may dynamically determine the proxy server through the proxy server negotiation.
[0161] In operation 907, if it is determined that the electronic device operates as a proxy client according to the result of the proxy server negotiation (for example, "No" is answered in operation 907), then in operation 909, the processor 120 can operate as a proxy client by registering the service information and wake-up interval information of the electronic device 101 in the external electronic device determined as the proxy server. According to an embodiment, when operating as a proxy client, the processor 120 can continue operations 903 and 905 to perform service discovery and proxy server negotiation in a specified discovery window (for example, every four discovery windows). For example, when operating as a proxy client, the processor 120 can re-execute service discovery and proxy server negotiation by performing operations 903 and 905 periodically or at a specified time.
[0162] In operation 907, if it is determined based on the result of the proxy server negotiation that the electronic device operates as a proxy server (e.g., the answer to operation 907 is "yes"), then in operation 911, the processor 120 can configure an expiration time, after which the electronic device 101 will stop operating as a proxy server.
[0163] At operation 913, the processor 120 may start its operation as a proxy server, and at operation 915, the processor 120 may perform a registration process with a proxy client. According to an embodiment, the processor 120 may register and manage a proxy client by exchanging a proxy registration request and a proxy registration response with the proxy client. According to an embodiment, the processor 120 may perform service discovery instead of a proxy client registered in the electronic device 101.
[0164] According to an embodiment, if during the proxy server negotiation operation of operation 905, the external electronic device is registered as a proxy client (for example, the electronic device 101 obtains service information and wake-up interval information), the processor 120 may not perform the registration process at operation 915. According to an embodiment, it may be difficult for the processor 120 to determine whether to register as a client through the proxy server negotiation operation at operation 905. Therefore, if Fig. 9As shown, the processor 120 may start the actual proxy server operation at operation 913, and in the case of starting the proxy server operation, the processor 120 may perform a registration process with an external electronic device at operation 915. According to an embodiment, when the electronic device 101 operates as a proxy server, the processor 120 may receive or manage a proxy registration request of another proxy client. For example, the processor 120 may register and manage one or more proxy clients based at least on the capabilities of the electronic device 101.
[0165] In operation 917 , the processor 120 may determine whether a time for serving as a proxy server has expired.
[0166] At operation 917, if the time has not expired (eg, the answer to operation 917 is “No”), the processor 120 may continue with operation 915 to perform operations after operation 915, such as Figure 6 According to an embodiment, the processor 120 may monitor time while performing service discovery on behalf of a proxy client registered in the electronic device 101.
[0167] At operation 917, if the time has expired (e.g., the answer is "yes" at operation 917), the processor 120 may continue with operation 903 to perform operations after operation 903. According to an embodiment, two electronic devices (e.g., electronic device 101 and proxy client) may terminate their previous roles (e.g., proxy server or proxy client), and they may re-perform proxy server negotiation.
[0168] According to a specific embodiment, the Fig. 9 The operations shown dynamically determine the proxy servers among the electronic devices in the same NAN cluster, and the roles of the proxy servers can be distributed (or switched) at various given time intervals.
[0169] Fig.10 is a diagram illustrating an example of a proxy server negotiation process according to an embodiment.
[0170] refer to Fig.10 In operation 1001, a first electronic device 1010 and a second electronic device 1020 may exchange SDF (e.g., publish, subscribe, or follow-up messages). According to an embodiment, in addition to service information, the SDF may include capability information related to a proxy function (e.g., proxy capability information). According to an embodiment, the capability information may include whether the corresponding electronic device supports a proxy server negotiation function. According to an embodiment, the proxy server negotiation may be performed, for example, between electronic devices that can operate both as a proxy server and as a proxy client.
[0171] In operation 1003 and operation 1005, the first electronic device 1010 and the second electronic device 1020 may identify an external electronic device (e.g., a relative electronic device) in a cluster through service discovery, and the first electronic device 1010 and the second electronic device 1020 may identify whether the corresponding external electronic device supports proxy server negotiation. According to an embodiment, as a result of the service discovery, the first electronic device 1010 and the second electronic device 1020 may identify proxy capability information indicating whether the relative electronic device can perform proxy server negotiation using service information of the relative electronic device.
[0172] In operation 1007, the first electronic device 1010 and the second electronic device 1020 may perform a proxy server negotiation process for determining a proxy server. According to an embodiment, the proxy server negotiation process may be limited to electronic devices that include the same service information in the SDF. For example, the proxy server negotiation process may be performed only by limited electronic devices having the same service ID or the same service name.
[0173] According to an embodiment, the proxy server negotiation process may be performed by exchanging a proxy negotiation request message and a proxy negotiation response message. According to an embodiment, the proxy negotiation request message and the proxy negotiation response message may use an SDF, or they may use a separate NAF. According to an embodiment, the proxy negotiation request message and the proxy negotiation response message may include a proxy server intent value. According to an embodiment, the first electronic device 1010 and the second electronic device 1020 may compare the corresponding proxy server intent values with each other, and the electronic device with a higher proxy server intent value may be determined as a proxy server. According to an embodiment, the proxy server intent may be determined randomly, or may be determined by the corresponding electronic device based on at least the battery level, device type, or service type of the electronic device.
[0174] According to an embodiment, the proxy negotiation request message and the proxy negotiation response message may include the wake-up interval value expected by the corresponding electronic device. According to an embodiment, the first electronic device 1010 and the second electronic device 1020 may determine the proxy server based on the corresponding wake-up interval value in the same manner as the proxy server intention. For example, because an electronic device with a larger wake-up interval value may be more sensitive to current consumption, an electronic device with a smaller wake-up interval may be determined as a proxy server.
[0175] According to an embodiment, the proxy negotiation request message and the proxy negotiation response message may specify the number and / or device type of supportable proxy clients. For example, the first electronic device 1010 and the second electronic device 1020 may determine the proxy server based on the above values. According to an embodiment, the proxy negotiation request message and the proxy negotiation response message may specify an expiration time, and the expiration time specified by the electronic device determined as the proxy server may be used. According to an embodiment, the expiration time may mean the running time of the corresponding electronic device operating as a proxy server after the proxy server negotiation. According to an embodiment, if the expiration time expires, the electronic devices 1010 and 1020 may determine a new proxy server through the proxy server negotiation process again.
[0176] According to an embodiment, Fig.10 An example in which the first electronic device 1010 is determined as a proxy server may be shown. For example, the first electronic device 1010 may start a proxy server operation in operation 1009 , and the second electronic device 1020 may start a proxy client operation in operation 1011 .
[0177] In operation 1013, the first electronic device 1010 (proxy server) may include proxy server capability information indicating the proxy server in the SDF, and the first electronic device 1010 may send the SDF to the second electronic device 1020. The second electronic device 1020 may recognize the proxy server capability information on the first electronic device 1010 through the received SDF.
[0178] At operation 1015 , the second electronic device 1020 may request the first electronic device 1010 to register the second electronic device 1020 as a proxy client by sending a proxy registration request message including the service information and / or wake-up interval information as described above to the first electronic device 1010 .
[0179] In operation 1017 , the first electronic device 1010 may register the second electronic device 1020 as a proxy client of the first electronic device 1010 by sending a proxy registration response message to the second electronic device 1020 in response to the proxy registration request from the second electronic device 1020 .
[0180] In operation 1019 and operation 1021, the first electronic device 1010 and the second electronic device 1020 may perform service discovery by applying the new wake-up interval. According to an embodiment, the second electronic device 1020 operating as a proxy client may reduce current consumption by adjusting the wake-up interval according to the configured wake-up interval, and the first electronic device 1010 operating as a proxy server may perform service discovery instead of the service information of the second electronic device 1020.
[0181] Fig.11 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0182] For example, Fig.11 An example may be shown in which an electronic device 101 supporting the functions of both a proxy server and a proxy client performs proxy server negotiation with an adjacent external electronic device in a cluster, and the electronic device dynamically configures the proxy server or the proxy client according to the result of the negotiation. According to an embodiment, the proxy server negotiation may be performed, for example, between electronic devices that can operate as both a proxy server and a proxy client at the same time.
[0183] refer to Fig.11 At operation 1101, the processor 120 of the electronic device 101 may communicate with the wireless communication circuit (eg, Figure 1 The wireless communication module 192 of the present invention performs service discovery at a discovery window wake-up interval. According to an embodiment, the processor 120 may control the operation of the wireless communication circuit to perform communication based on the NAN protocol at a discovery window wake-up interval synchronized with an external electronic device in the same NAN cluster.
[0184] At operation 1103, the processor 120 may receive a signal from the external electronic device for notifying that the external electronic device can operate as a proxy server. According to an embodiment, the signal may include proxy server capability information and / or service information of the external electronic device.
[0185] At operation 1105, the processor 120 may perform proxy server negotiation with the external electronic device based on the received signal. According to an embodiment, the proxy server negotiation may include proxy server intent, discovery window wakeup interval, number of registrable clients, expiration time, and / or device type information.
[0186] At operation 1107, the processor 120 may make the electronic device 101 a proxy server for an external electronic device, or the processor 120 may make the electronic device 101 a proxy client for an external electronic device. According to an embodiment, if as a result of the negotiation, the electronic device 101 operates as a proxy client, the processor 120 may send a proxy registration request message including service information and / or a discovery window wake-up interval of the electronic device 101 to the external electronic device. According to an embodiment, if as a result of the negotiation, the electronic device 101 operates as a proxy server, the processor 120 may configure the expiration time of the proxy server, and the processor 120 may perform service discovery based on the discovery window wake-up interval and / or service information of the electronic device 101 and the external electronic device. According to an embodiment, the processor 120 may dynamically configure the expiration time when the electronic device 101 operates as a proxy server based at least on the battery level, device type, or service type of the electronic device 101.
[0187] Fig.12 is a flowchart illustrating an operating method of an electronic device according to an embodiment.
[0188] For example, Fig.12 An example may be shown in which the electronic device 101 is registered and operates as a proxy client of an external electronic device.
[0189] refer to Fig.12 At operation 1201, the processor 120 of the electronic device 101 may communicate with the wireless communication circuit (eg, Figure 1 The wireless communication module 192 of the present invention performs service discovery at a discovery window wake-up interval. According to an embodiment, the processor 120 may control the operation of the wireless communication circuit to perform communication based on the NAN protocol at a discovery window wake-up interval synchronized with external electronic devices in the same NAN cluster.
[0190] At operation 1203, the processor 120 may receive a first signal from the first external electronic device for notifying that the first external electronic device can operate as a proxy server. According to an embodiment, the first signal may include proxy server capability information and / or service information of the first external electronic device.
[0191] At operation 1205, the processor 120 may perform a registration process with the first external electronic device based on the received first signal. According to an embodiment, the processor 120 of the electronic device 101 may be registered as a proxy client of the first external electronic device by exchanging a proxy registration request and a proxy registration response with the first external electronic device via a communication circuit.
[0192] At operation 1207 , the processor 120 of the electronic device 101 may start operating as a proxy client of the first external electronic device.
[0193] At operation 1209, while operating as a proxy client of the first external electronic device, the processor 120 may receive a second signal including information about the second external electronic device (e.g., address information and wake-up interval information of the second external electronic device) from the first external electronic device. According to an embodiment, the processor 120 may receive a second signal from the first external electronic device notifying that the second external electronic device can operate as a proxy server. According to an embodiment, the second signal may include a proxy server indication message including information about a new proxy server (e.g., a second external electronic device that is a proxy server for the first external electronic device). According to an embodiment, the proxy server indication message may use an SDF, or the proxy server indication message may use a new NAF.
[0194] At operation 1211, the processor 120 may control the electronic device 101 to operate as a proxy client of the first external electronic device, or the processor 120 may control the electronic device 101 to operate as a proxy client of the second external electronic device based on the received second signal. According to an embodiment, if a proxy server indication message including information about a new proxy server is received from the first external electronic device, the processor 120 may continue to operate as a proxy client of the electronic device 101, or the processor 120 may terminate the proxy client function with the first external electronic device and may be newly registered as a proxy client in the second external electronic device that is a new proxy server.
[0195] According to an embodiment, the processor 120 may determine whether to maintain the operation with the first external electronic device or terminate the proxy client function with the first external electronic device based at least on the battery level, device type, or service type of the first external electronic device. According to an embodiment, when the first external electronic device sends a proxy server indication message including information about a new proxy server to the electronic device 101, the first external electronic device may include information for requesting that the electronic device 101 be registered as a proxy client of the second external electronic device in the proxy server indication message. According to an embodiment, if such information is received from the first external electronic device, the processor may terminate the proxy client function with the first external electronic device, and the processor may be newly registered as a proxy client in the second external electronic device.
[0196] According to an embodiment of the present disclosure, the operating method of the electronic device 101 may include broadcasting a notification to the electronic device 101 (eg, Figure 5 The electronic device 101 can be used as a first proxy server to operate the first signal; from the first external electronic device (eg, Figure 5 the first external electronic device 520) receiving a second signal including a first proxy client registration request; in response to the second signal, sending a third signal including a first proxy client registration response to the first external electronic device; while operating as a first proxy server for the first external electronic device, receiving a notification from the second external electronic device to the second external electronic device (e.g., Figure 5 The method comprises the steps of: sending a fourth signal including a second proxy client registration request to the second external electronic device 530) that the second external electronic device 530 can operate as a second proxy server; based on the fourth signal, sending a fifth signal including a second proxy client registration request to the second external electronic device; receiving a sixth signal including a second proxy client registration response corresponding to the fifth signal from the second external electronic device; and operating the electronic device 101 as a first proxy client of the second external electronic device in parallel with operating the electronic device 101 as a first proxy server of the first external electronic device.
[0197] According to an embodiment, the first signal may include proxy server capability information of the electronic device and / or first discovery window (DW) wakeup interval information of the electronic device, and the second signal may include second discovery window wakeup interval information of the first external electronic device.
[0198] According to an embodiment, the fifth signal may include first discovery window wake-up interval information of the electronic device 101 and second discovery window wake-up interval information of the first external electronic device registered as a second proxy client of the electronic device 101, and the first discovery window wake-up interval information of the electronic device 101 may be configured based at least on the second discovery window wake-up interval information.
[0199] According to an embodiment, the first discovery window wake-up interval information of the electronic device 101 may be configured to be an interval that is less than or equal to the second discovery window wake-up interval information of the first external electronic device.
[0200] According to an embodiment, the method may include sending a proxy server indication including an address of the second external electronic device and / or discovery window wakeup interval information to the first external electronic device through a service discovery frame (SDF) information received from the second external electronic device.
[0201] According to an embodiment, the method may include, based on a proxy server indication, maintaining the first external electronic device as a second proxy client of the electronic device, or terminating the first external electronic device as a second proxy client of the electronic device so as to enable the first external electronic device to operate as a third proxy client of the second external electronic device.
[0202] According to an embodiment, the method may include, when the electronic device deviates from the area of the second external electronic device by a predetermined amount, terminating the electronic device as a first proxy client of the second external electronic device and maintaining the electronic device as a first proxy server of the first external electronic device.
[0203] The specific above-mentioned embodiments of the present disclosure may be implemented in hardware, firmware, or via the execution of software or computer code, which may be stored in a recording medium, such as a CD ROM, a digital versatile disk (DVD), a magnetic tape, a random access memory (RAM), a floppy disk, a hard disk, or a magneto-optical disk or computer code downloaded over a network, which is initially stored on a remote recording medium or a non-transitory machine-readable medium, and will be stored on a local recording medium, so that the methods described herein may be presented via software stored on a recording medium using a general-purpose computer or a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). As understood in the art, a computer, a processor, a microprocessor controller, or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.), which may store or receive software or computer code, which, when accessed and executed by a computer, a processor, or hardware, may implement the processing methods described herein.
[0204] Although specific embodiments of the present disclosure have been described in the specification and the drawings, these embodiments are only used as a general meaning to help those of ordinary skill in the art to obtain a comprehensive understanding of the present disclosure, and do not limit the scope of the present disclosure. Therefore, it should be understood that in addition to the embodiments disclosed herein, all modifications or modification types derived based on the technical ideas of the present disclosure are included in the scope of the present disclosure.
Claims
1. An electronic device, include: shell; at least one antenna; at least one wireless communication circuit located in the housing, operably connected to the antenna, and configured to support communication at a discovery window wake-up interval synchronized with a first external electronic device and a second external electronic device in the same NAN cluster based on a Neighbor Awareness Network (NAN) protocol; at least one processor; as well as A memory storing instructions, wherein when the instructions are executed by the at least one processor, the electronic device: Perform service discovery via wireless communication circuits during the discovery window wake-up interval. establishing a network connection with a first external electronic device operating as a first proxy client, operating the electronic device as a first proxy server for a first external electronic device, while operating the electronic device as a first proxy server for the first external electronic device, receiving a signal for notification from a second external electronic device, performing proxy server negotiation with a second external electronic device based on the received signal, and Based on the proxy server negotiation, in parallel with operating the electronic device as a first proxy server for the first external electronic device, the electronic device is operated as a second proxy client for the second external electronic device.
2. The electronic device according to claim 1, in, The signal includes proxy server capability information and / or service information of the second external electronic device.
3. The electronic device according to claim 1, in, The proxy server negotiation includes the exchange of proxy server intent, discovery window wake-up interval, number of registrable clients, expiration time, and / or device type information.
4. The electronic device according to claim 1, in, When the instructions are executed by the at least one processor, the electronic device, when operating as a second proxy client, sends proxy registration request information including service information and / or a discovery window wake-up interval of the electronic device to a second external electronic device.
5. The electronic device according to claim 1, in, When the instructions are executed by the at least one processor, the electronic device: when the electronic device operates as a second proxy server, configures the expiration time of the second proxy server, and performs service discovery based on the discovery window wake-up interval and / or service information of the electronic device and the first external electronic device.
6. The electronic device according to claim 1, in, When the instructions are executed by the at least one processor, the electronic device: broadcasting a signal through the wireless communication circuit notifying that the electronic device can operate as a second proxy server, and Based on receiving the signal including the first proxy client registration request from the first external electronic device, a signal including the first proxy client registration response is transmitted to the first external electronic device.
7. The electronic device according to claim 6, in, When the instructions are executed by the at least one processor, the electronic device: Based on receiving a signal notifying that the second external electronic device can operate as a first proxy server from the second external electronic device through the wireless communication circuit while operating as a second proxy server of the first external electronic device, a signal including a second proxy client registration request is sent to the second external electronic device.
8. The electronic device according to claim 7, in, When the instructions are executed by the at least one processor, the electronic device: Based on receiving a signal including a second proxy client registration response from the second external electronic device, the electronic device is operated as a second proxy client of the second external electronic device.
9. The electronic device according to claim 6, in, When the instructions are executed by the at least one processor, the electronic device: sending a proxy server indication including an address of the second external electronic device and / or discovery window wake-up interval information to the first external electronic device through the service discovery frame information received from the second external electronic device, and Based on the proxy server instruction, the first external electronic device is kept as a first proxy client of the electronic device, or the first external electronic device is terminated as the first proxy client of the electronic device and operates as a third proxy client of the second external electronic device.
10. The electronic device according to claim 6, in, When the instructions are executed by the at least one processor, the electronic device: when the electronic device deviates from the area of the second external electronic device by a predetermined amount, terminates the electronic device as a second proxy client of the second external electronic device, and maintains the electronic device as a second proxy server of the first external electronic device.
11. A method for operating an electronic device, include: performing service discovery at a discovery window wake-up interval by a wireless communication circuit of the electronic device; establishing a network connection with a first external electronic device operating as a first proxy client; operating the electronic device as a first proxy server for a first external electronic device; receiving a signal for notification from a second external electronic device while operating the electronic device as a first proxy server for the first external electronic device; performing a proxy server negotiation with a second external electronic device based on the received signal; as well as Based on the proxy server negotiation, in parallel with operating the electronic device as a first proxy server for the first external electronic device, the electronic device is operated as a second proxy client for the second external electronic device.
12. The method according to claim 11, in, The signal includes proxy server capability information and / or service information of the second external electronic device.
13. The method according to claim 11, in, The proxy server negotiation includes the exchange of proxy server intent, discovery window wake-up interval, number of registrable clients, expiration time, and / or device type information.
14. The method according to claim 11, further comprising: include: When the electronic device operates as a second proxy client, proxy registration request information including service information and / or a discovery window wake-up interval of the electronic device is sent to a second external electronic device.
15. The method according to claim 11, further comprising: include: When the electronic device operates as a second proxy server, an expiration time of the second proxy server is configured, and service discovery is performed based on a discovery window wakeup interval and / or service information of the electronic device and the first external electronic device.
16. The method according to claim 11, further comprising: include: broadcasting a signal through the wireless communication circuit notifying that the electronic device can operate as a second proxy server, and Based on receiving the signal including the first proxy client registration request from the first external electronic device, a signal including the first proxy client registration response is transmitted to the first external electronic device.
17. The method according to claim 16, further comprising: include: Based on receiving a signal notifying that the second external electronic device can operate as a first proxy server from the second external electronic device through the wireless communication circuit while operating as a second proxy server of the first external electronic device, a signal including a second proxy client registration request is sent to the second external electronic device.
18. The method according to claim 17, further comprising: include: Based on receiving a signal including a second proxy client registration response from the second external electronic device, the electronic device is operated as a second proxy client of the second external electronic device.
19. The method according to claim 16, further comprising: include: sending a proxy server indication including an address of the second external electronic device and / or discovery window wake-up interval information to the first external electronic device through the service discovery frame information received from the second external electronic device, and Based on the proxy server instruction, the first external electronic device is kept as a first proxy client of the electronic device, or the first external electronic device is terminated as the first proxy client of the electronic device and operates as a third proxy client of the second external electronic device.
20. The method according to claim 16, further comprising: include: When the electronic device deviates from the area of the second external electronic device by a predetermined amount, the electronic device is terminated as a second proxy client of the second external electronic device, and the electronic device is maintained as a second proxy server of the first external electronic device.
