WO2022025693A1 - Method for scheduling multiple sessions in wireless communication system, and electronic device supporting same - Google Patents

Method for scheduling multiple sessions in wireless communication system, and electronic device supporting same Download PDF

Info

Publication number
WO2022025693A1
WO2022025693A1 PCT/KR2021/009952 KR2021009952W WO2022025693A1 WO 2022025693 A1 WO2022025693 A1 WO 2022025693A1 KR 2021009952 W KR2021009952 W KR 2021009952W WO 2022025693 A1 WO2022025693 A1 WO 2022025693A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
sessions
session
ranging
execution score
Prior art date
Application number
PCT/KR2021/009952
Other languages
French (fr)
Korean (ko)
Inventor
양이
강문석
김현철
임성준
장종훈
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2022025693A1 publication Critical patent/WO2022025693A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols
    • H04W80/10Upper layer protocols adapted for application session management, e.g. SIP [Session Initiation Protocol]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Definitions

  • Various embodiments of the present invention relate to a scheduling technique for a multi-session in a wireless communication system.
  • An electronic device supporting ultra-wideband (UWB) communication among various wireless communication methods may provide a precise positioning function.
  • the electronic device may measure the location of the external electronic device through a ranging operation using UWB communication, and may control the function of the external electronic device or control the function of the external electronic device based on the measured location of the external electronic device. It can provide location-based services specified by the device.
  • UWB ultra-wideband
  • an electronic device supporting UWB communication may communicate with a plurality of external electronic devices through a multi-session.
  • the electronic device may perform scheduling for a multi-session in order to control a collision occurring during communication with a plurality of external electronic devices.
  • the electronic device may consider the priority of a service supported by an application corresponding to each of the plurality of sessions in the process of scheduling multi-sessions to control collisions occurring during communication with a plurality of external electronic devices.
  • it may not be possible to consider the ranging characteristic in ultra-wideband communication. Accordingly, the electronic device may be unable to efficiently execute a ranging session with a plurality of external electronic devices.
  • Various embodiments of the present disclosure may provide a method for scheduling a plurality of sessions based on an execution score for each of the plurality of sessions, and an electronic device supporting the same.
  • An electronic device includes a communication module supporting ultra-wideband communication, a memory for storing an application supporting a service using the ultra-wideband communication, a processor operatively connected to the communication module and the memory; and a scheduler operatively connected to the processor, wherein the scheduler establishes a plurality of sessions for communicating with a plurality of external electronic devices, calculates an execution score for each of the plurality of sessions, and is configured to perform scheduling for the plurality of sessions based on the execution score for each of the sessions of a rank, a role of the electronic device for each of the plurality of sessions, a duration of a ranging round of each of the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, or the scheduling It may be calculated based on at least one of weights given to the number of failed ranging rounds.
  • the scheduling method for a multi-session in a wireless communication system includes an operation of setting a plurality of sessions for communicating with a plurality of external electronic devices, and execution of each of the plurality of sessions calculating a score, and performing scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions, wherein the execution score for each of the plurality of sessions includes: Priority of an application corresponding to each of the plurality of sessions, the role of the electronic device for each of the plurality of sessions, the duration of a ranging round of each of the plurality of sessions, and unscheduled for each of the plurality of sessions It may be calculated based on at least one of the number of unscheduled ranging rounds and a weight given to the number of unscheduled ranging rounds.
  • the plurality of sessions by performing scheduling for a plurality of sessions based on an execution score for each of the plurality of sessions, in consideration of the ranging characteristic in ultra-wideband communication, the plurality of sessions It can support efficient scheduling for
  • FIG. 1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure
  • FIG. 2 is a diagram for explaining the configuration of an electronic device supporting scheduling for multi-session in a wireless communication system according to an embodiment of the present invention.
  • 3A is a diagram for describing a ranging operation between an electronic device and an external electronic device according to an embodiment of the present invention.
  • 3B is a diagram for explaining another ranging operation between an electronic device and an external electronic device according to an embodiment of the present invention.
  • FIG. 4 is a diagram for explaining a scheduling method for a multi-session in a wireless communication system according to an embodiment of the present invention.
  • FIG. 5 is a diagram for explaining a method of operating an electronic device for scheduling multi-session in a wireless communication system according to an embodiment of the present invention.
  • 6A is a diagram illustrating a scheduling result when no weight is applied to an execution score for each session according to an embodiment of the present invention.
  • 6B is a diagram illustrating an execution score when no weight is applied to an execution score for each session according to an embodiment of the present invention.
  • 6C is a diagram illustrating the number of unscheduled ranging rounds when no weight is applied to an execution score for each of the sessions according to an embodiment of the present invention.
  • FIG. 7A is a diagram illustrating a scheduling result when a weight applied to an execution score for each session is set to a static value according to an embodiment of the present invention.
  • 7B is a diagram illustrating an execution score when a weight applied to the execution score for each session is set to a static value according to an embodiment of the present invention.
  • 7C is a diagram illustrating the number of unscheduled ranging rounds when a weight applied to an execution score for each session is set to a static value according to an embodiment of the present invention.
  • 8A is a diagram illustrating a scheduling result when a weight applied to an execution score for each session is set to a dynamic value according to an embodiment of the present invention.
  • 8B is a diagram illustrating an execution score when a weight applied to the execution score for each session is set to a dynamic value according to an embodiment of the present invention.
  • 8C is a diagram illustrating the number of unscheduled ranging rounds when a weight applied to an execution score for each session is set to a dynamic value according to an embodiment of the present invention.
  • FIG. 9 is a diagram for explaining a method of adjusting at least one of a contention period of a session or a duration of a ranging round according to an embodiment of the present invention.
  • FIG. 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with at least one of the electronic device 104 and the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • a first network 198 eg, a short-range wireless communication network
  • a second network 199 e.g., a second network 199
  • the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 may be included.
  • at least one of these components eg, the connection terminal 178
  • may be omitted or one or more other components may be added to the electronic device 101 .
  • some of these components are integrated into one component (eg, display module 160 ). can be
  • the processor 120 for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be stored in the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 .
  • software eg, a program 140
  • the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 .
  • the volatile memory 132 may be stored in the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 .
  • the processor 120 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor).
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit
  • NPU neural processing unit
  • an image signal processor e.g., a sensor hub processor, or a communication processor.
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit
  • NPU neural processing unit
  • an image signal processor e.g., a sensor hub processor, or a communication processor.
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123
  • the auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the coprocessor 123 eg, an image signal processor or a communication processor
  • may be implemented as part of another functionally related component eg, the camera module 180 or the communication module 190. have.
  • the auxiliary processor 123 may include a hardware structure specialized for processing an artificial intelligence model.
  • Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited
  • the artificial intelligence model may include a plurality of artificial neural network layers.
  • Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example.
  • the artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
  • the memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ).
  • the data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto.
  • the memory 130 may include a volatile memory 132 or a non-volatile memory 134 .
  • the program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
  • the input module 150 may receive a command or data to be used in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 .
  • the input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 155 may output a sound signal to the outside of the electronic device 101 .
  • the sound output module 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback.
  • the receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.
  • the display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 .
  • the display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device.
  • the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
  • the audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 or an external electronic device (eg, a sound output module 155 ) directly or wirelessly connected to the electronic device 101 . A sound may be output through the electronic device 102 (eg, a speaker or headphones).
  • an external electronic device eg, a sound output module 155
  • a sound may be output through the electronic device 102 (eg, a speaker or headphones).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do.
  • the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 177 may support one or more designated protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ).
  • the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card
  • the connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a LAN (local area network) communication module, or a power line communication module).
  • GNSS global navigation satellite system
  • a corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • a first network 198 eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)
  • a second network 199 eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • a telecommunication network
  • the wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 .
  • the electronic device 101 may be identified or authenticated.
  • the wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR).
  • NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low-latency
  • the wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • a high frequency band eg, mmWave band
  • the wireless communication module 192 includes various technologies for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna.
  • the wireless communication module 192 may support various requirements specified in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ).
  • the wireless communication module 192 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less).
  • a peak data rate eg, 20 Gbps or more
  • loss coverage eg, 164 dB or less
  • U-plane latency for realizing URLLC
  • the antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC)
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 .
  • Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 .
  • all or a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 may perform the function or service itself instead of executing the function or service itself.
  • one or more external electronic devices may be requested to perform at least a part of the function or the service.
  • One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 .
  • the electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 104 may include an Internet of things (IoT) device.
  • Server 108 may be an intelligent server using machine learning and/or neural networks.
  • the external electronic device 104 or the server 108 may be included in the second network 199 .
  • the electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • FIG. 2 is a diagram for explaining the configuration of an electronic device supporting scheduling for multi-session in a wireless communication system according to an embodiment of the present invention.
  • the electronic device 200 may support ultra-wideband (UWB) communication, and may provide a precise positioning function using ultra-wideband communication.
  • the electronic device may measure the location of an external electronic device (eg, the electronic device 102 or the electronic device 104 of FIG. 1 ) through a ranging operation using ultra-wideband communication, and measure the location.
  • a function of the external electronic device may be controlled based on the location of the designated external electronic device, or a location-based service designated as the external electronic device may be provided.
  • ultra-wideband communication may refer to short-range high-speed wireless communication using a wide frequency band, low spectral density, and short pulse width in a baseband state.
  • the frequency band of ultra-wideband communication is a 3 GHz band (eg, about 3.735 GHz to 4.8 GHz), a 7 GHz band (eg, about 7.2 GHz to 10.2 GHz), and/or a 6 GHz band (eg, about 6.0 GHz to 7.2 GHz) GHz) may be included.
  • a 3 GHz band eg, about 3.735 GHz to 4.8 GHz
  • a 7 GHz band eg, about 7.2 GHz to 10.2 GHz
  • 6 GHz band eg, about 6.0 GHz to 7.2 GHz
  • the electronic device 200 may communicate with a plurality of external electronic devices through a multi-session in order to provide the above-described function or service in various forms through association with a plurality of external electronic devices. have.
  • the electronic device 200 may perform scheduling for a multi-session (a plurality of sessions) in order to control a collision occurring during communication with a plurality of external electronic devices.
  • the electronic device 200 provides information about a plurality of sessions based on an execution score for each of the plurality of sessions. Scheduling can be done.
  • the electronic device 200 includes a communication module 210 (eg, the communication module 190 of FIG. 1 ), a scheduler 211 , and a processor 230 (eg: The processor 120 of FIG. 2 ) and a memory 250 (eg, the memory 130 of FIG. 2 ) may be included.
  • a communication module 210 eg, the communication module 190 of FIG. 1
  • a scheduler 211 e.g. The processor 120 of FIG. 2
  • a processor 230 eg: The processor 120 of FIG. 2
  • a memory 250 eg, the memory 130 of FIG. 2
  • the configuration of the electronic device 200 is not limited thereto.
  • the electronic device 200 may further include at least one other component in addition to the above-described components.
  • the communication module 210 may support communication between the electronic device 200 and an external electronic device.
  • the communication module 210 establishes wireless communication (eg, ultra-wideband communication) according to a prescribed communication protocol with an external electronic device, and transmits and receives signals or data using a frequency band supported by the wireless communication can do.
  • wireless communication eg, ultra-wideband communication
  • the communication module 210 may establish a plurality of sessions for communicating with a plurality of external electronic devices (eg, the electronic device 102 or the electronic device 104 of FIG. 1 ).
  • the session represents a logical connection for transmitting and receiving signals or data between the electronic device 200 and an external electronic device, and the communication module 210 may establish a session for each of the plurality of external electronic devices.
  • the communication module 210 supporting ultra-wideband communication may set a ranging session for performing a positioning operation with the plurality of external electronic devices for each of the plurality of external electronic devices.
  • the number of sessions may be less than or equal to a specified number (eg, five).
  • the scheduler 211 may schedule the plurality of sessions. According to an embodiment, the operation of setting the plurality of sessions during the operation of the communication module 210 may be performed by the scheduler 211 . According to an embodiment, at least some of the operations of the scheduler 211 may be performed by the communication module 210 or the processor 230 . For example, the scheduler 211 may be included in the communication module 210 or the processor 230 . In another embodiment, at least some of the operations of the scheduler 211 may be performed by a module specialized in processing an artificial intelligence model (eg, an artificial intelligence module (not shown)). For example, the operation of calculating an execution score for each of a plurality of sessions to be described later may be performed by the artificial intelligence module.
  • an artificial intelligence module eg, an artificial intelligence module (not shown)
  • the scheduler 211 may calculate a running score for each of the plurality of sessions.
  • the scheduler 211 determines the priority of the application corresponding to the session (eg, the application 146 of FIG. 1 ), the role of the electronic device 200 for the session, and the ranging round duration of the session. , the number of unscheduled ranging rounds for the session, and/or a weight assigned to the number of unscheduled ranging rounds may be used to calculate an execution score for the session.
  • the scheduler 211 may calculate an execution score for the session based on the priority of the application corresponding to the session.
  • the application may be an application that supports a service using ultra-wideband communication to an external electronic device that is a communication target through the session.
  • the priority of the application may be set based on at least one of an execution state of the application and a type of service supported by the application (eg, an access service, a content sharing service, or a device search service).
  • the scheduler 211 may set the priority of the application differently depending on whether the application is being executed in the foreground or background state. .
  • the scheduler 211 may set the priority of the application to be higher, and calculate a high execution score for the session corresponding to the application.
  • the scheduler 211 may set the priority of the application to be high when the service supported by the application is a service for which a result must be derived within a specified time, and the execution score for the session corresponding to the application may be calculated as high.
  • the service supported by the application is an access service (eg, a car access service)
  • the scheduler 211 sets the priority of the application to be high for a session corresponding to the application.
  • a high execution score can be calculated.
  • the scheduler 211 may calculate an execution score for the session based on the role of the electronic device 200 for the session.
  • the role of the electronic device 200 for the session is whether the electronic device 200 is a device that controls an external electronic device that is a communication target through the session or a device controlled by the external electronic device, and/ Alternatively, when the electronic device 200 is a device for controlling the external electronic device, it may be set based on at least one of the number of external electronic devices controlled by the electronic device 200 .
  • the scheduler 211 may calculate the execution score to be higher when the electronic device 200 is a device controlling the external electronic device than when the electronic device 200 is a device controlled by the external electronic device.
  • the scheduler 211 may calculate the execution score to be higher as the number of external electronic devices controlled by the electronic device 200 increases. .
  • the scheduler 211 may calculate an execution score for the session based on the duration of a ranging round of the session.
  • the duration of the ranging round of the session may be calculated by the duration (or execution time) of the ranging round 300 described with reference to FIG. 3A .
  • the scheduler 211 may calculate the execution score to be higher as the duration (or execution time) of the ranging round 300 is shorter. That is, the scheduler 211 may calculate the execution score to be higher as the positioning time of the external electronic device through the session is shorter.
  • the scheduler 211 may calculate an execution score for the session based on the number of unscheduled ranging rounds for the session.
  • An unscheduled ranging round for the session may indicate an unscheduled ranging round.
  • the number of unscheduled ranging rounds for the specific session increases can do. That is, the number of unscheduled ranging rounds for the specific session may be increased when performance of another session is determined after one session is performed by scheduling, or when performance of the specific session cannot be determined.
  • the scheduler 211 may calculate a higher execution score for the session as the number of unscheduled ranging rounds for the session increases.
  • the scheduler 211 may calculate an execution score for the session based on a weight given to the number of unscheduled ranging rounds for the session.
  • the weight may serve to increase the probability that a ranging round of a session that cannot be performed by scheduling can be performed. That is, when the execution order of the ranging round of the specific session is delayed because the execution score for the specific session is low, the scheduler 211 performs scheduling for the specific session in order to guarantee the execution of the ranging round of the specific session.
  • the execution score for the specific session may be increased. Accordingly, as the number of unscheduled ranging rounds for the specific session increases, the increase in the execution score for the specific session increases by the weight, so that the probability that the ranging round of the specific session will be executed may increase. have.
  • the method of applying the weight may include a static method or a dynamic method.
  • the scheduler 211 may set the weight to a specified value.
  • the scheduler 211 may apply the same weight to each of a plurality of sessions.
  • the scheduler 211 may set the weight differently according to a specified condition.
  • the scheduler 211 may configure an execution score for each of a plurality of sessions, a remaining number of executions for the plurality of sessions, and an unscheduled lane for each of the plurality of sessions.
  • the weight may be set based on at least one of the number of zing rounds and/or the number of ranging failures due to a specified timeout for each of the plurality of sessions. That is, in the dynamic scheme, the scheduler 211 may apply different weights to each of a plurality of sessions. As an example, the scheduler 211 determines that the execution score for the specific session is lower, the number of remaining executions for the specific session is smaller, and the number of unscheduled ranging rounds for the specific session is higher, the higher the number of unscheduled ranging rounds for the specific session. As the number of ranging failures due to exceeding the specified time for the sequencing is increased, the weight applied to the specific session may be set higher.
  • the scheduler 211 may perform scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions. According to an embodiment, the scheduler 211 may calculate an execution score for each of the plurality of sessions or change the calculated execution score in addition to scheduling the plurality of sessions. .
  • the scheduler 211 may control a session having a high execution score to be executed preferentially. For example, when at least two sessions among a plurality of sessions collide, the scheduler 211 may perform scheduling such that a session having a high execution score among the at least two sessions is preferentially executed. Also, when a session is executed by scheduling, the scheduler 211 sets the number of unscheduled ranging rounds for the executed session to an initial value (eg, zero (0)), may reduce the performance score for In addition, the scheduler 211 may increase the number of unscheduled ranging rounds for the session with the low execution score among the at least two sessions, thereby increasing the execution score for the session with the low execution score. have. Accordingly, the execution probability for a session that has not been executed due to a low execution score may increase.
  • an initial value eg, zero (0)
  • the scheduler 211 may terminate the session. For example, when the scheduler 211 increases the number of unscheduled ranging rounds for a session having a low execution score among the at least two sessions, the increased value is a ranging failure due to a specified timeout. If it is greater than the number of , the session with the low execution score may be terminated. In addition, the scheduler 211 may transmit the state of the terminated session to the processor 230 .
  • the scheduler 211 when at least two sessions among a plurality of sessions collide, the scheduler 211 is configured to perform a contention period or ranging in a session having a lower execution score among the at least two sessions. At least one of the duration of the round may be reduced.
  • the scheduler 211 may increase the execution probability of the session having the low execution score by reducing the duration of the contention period or the ranging round in the session having the low execution score.
  • the scheduler 211 determines a contention period in the session.
  • the duration of the ranging round may be reduced.
  • the processor 230 may control at least one other component of the electronic device 200 and may perform various data processing or operations. According to an embodiment, the processor 230 may execute a command for controlling operations of the communication module 210 or the scheduler 211 . In some embodiments, the processor 230 may perform at least one of the operations of the communication module 210 and the scheduler 211 . For example, the processor 230 may calculate an execution score for each of the plurality of sessions. In this case, the processor 230 may transmit the calculated execution score for each of the plurality of sessions to the scheduler 211 .
  • the memory 250 may store various data used by at least one component of the electronic device 200 . According to an embodiment, the memory 250 may store an application supporting a service using the communication module 210 . According to an embodiment, the memory 250 may store data or instructions used by a process executed by the processor 230 or an application program.
  • the scheduler 211 may be implemented as software (eg, the program 140 ) in the memory 250 .
  • the processor 230 of the electronic device 200 may call at least one command among one or more commands stored from the memory 250 and execute it.
  • the electronic device (eg, the electronic device 200 of FIG. 2 ) includes a communication module (eg, the communication module 210 of FIG. 2 ) supporting ultra-wideband communication, the second A memory for storing an application supporting a service using broadband communication (eg, the memory 250 of FIG. 2 ), a processor operatively connected to the communication module and the memory (eg, the processor 230 of FIG. 2 ), and a scheduler (eg, the scheduler 211 of FIG.
  • a communication module eg, the communication module 210 of FIG. 2
  • the second A memory for storing an application supporting a service using broadband communication
  • a processor operatively connected to the communication module and the memory
  • a scheduler eg, the scheduler 211 of FIG.
  • the scheduler establishes a plurality of sessions for communicating with a plurality of external electronic devices, and each of the plurality of sessions calculate an execution score for , and perform scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions, wherein the execution score for each of the plurality of sessions includes: Priority of an application corresponding to each of the sessions of , the role of the electronic device for each of the plurality of sessions, the duration of a ranging round of each of the plurality of sessions It may be calculated based on at least one of the number of unscheduled ranging rounds and a weight given to the number of unscheduled ranging rounds.
  • the scheduler may be configured to perform scheduling such that, when at least two sessions among the plurality of sessions collide, a session having a high execution score among the at least two sessions is preferentially executed. have.
  • the scheduler sets the number of unscheduled ranging rounds for the session having the high execution score to an initial value, and schedules the session having the low execution score among the at least two sessions. It may be set to increase the number of failed ranging rounds.
  • the scheduler is configured to, if the number of unscheduled ranging rounds for the session with the low execution score is greater than the number of ranging failures due to a specified timeout, terminate the session with the low execution score; , to communicate the state for the session with the low execution score to the processor.
  • the weight may be set to a specified value.
  • the weight includes an execution score for each of the plurality of sessions, a remaining number of executions for the plurality of sessions, a number of unscheduled ranging rounds for each of the plurality of sessions, and the It may be set based on at least one of the number of ranging failures due to a specified timeout for each of the plurality of sessions.
  • the priority of the application may be set based on at least one of an execution state of the application and a type of service supported by the application.
  • the role of the electronic device determines whether the electronic device is a device for controlling an external electronic device that is a communication target or a device controlled by the external electronic device, and whether the electronic device controls the external electronic device
  • the setting may be based on at least one of the number of external electronic devices controlled by the electronic device.
  • the scheduler when at least two sessions of the plurality of sessions collide, the scheduler may be configured to perform a contention interval or a ranging round duration in a session having a lower execution score among the at least two sessions. It may be set to decrease at least one.
  • the scheduler may be included in at least one of the communication module, the processor, and the artificial intelligence module.
  • 3A is a diagram for describing a ranging operation between an electronic device and an external electronic device according to an embodiment of the present invention.
  • a ranging control phase (RCP) 310
  • the electronic device 301 eg, the electronic device 200 of FIG. 2
  • RCM 311 may be transmitted to at least one or more external electronic devices (eg, the first external electronic device 302 to the N-th external electronic device 303 ).
  • the RCM 311 is a signal for initiating a ranging operation (or ranging round) 300 , and may include an information element (IE).
  • the information element included in the RCM 311 includes an advanced raging control (ARC) IE including a ranging configuration parameter, and a ranging interval indicating when the next ranging round starts.
  • ARC advanced raging control
  • N is a natural number, meaning that the number of external electronic devices receiving the RCM 311 from the electronic device 301 may be one or a plurality.
  • a poll message (or a ranging poll frame (RFRAME(Poll))) 321 to the external electronic devices 302 to 303 .
  • the poll message 321 may include information requesting a ranging result from the external electronic devices 302-303.
  • the poll message 321 indicates that a double-sided two-way ranging (DS-TWR) requesting a ranging result from the external electronic devices 302 to 303 is started. It may include a ranging report control double-sided two-way ranging (RRCDT) IE.
  • the electronic device 301 may transmit a poll message (or a ranging poll frame (RFRAME(Poll))) 321 to the external electronic devices 302 to 303 in a broadcast manner.
  • a ranging response phase (RRP) 330 , the external electronic devices 302 to 303 that have received the poll message 321 transmit a response message (or a ranging response frame (RFRAME (Response))).
  • a response message or a ranging response frame (RFRAME (Response))
  • ) 331 to 332 may be transmitted to the electronic device 301 .
  • the first external electronic device 302 may transmit a first response message 331 to the electronic device 301
  • the Nth external electronic device 303 may transmit an Nth response message 332 to the electronic device 301 .
  • the response messages 331 to 332 are a response between the RRCDT IE and the electronic device 301 including that the external electronic devices 302 to 303 start a second round trip of the DS-TWR. It may include a ranging request reply time (RRRT) IE requesting a time (reply time).
  • RRRT ranging request reply time
  • a second polling phase (PP) 340 the electronic device 301 transmits a ranging end message (or a ranging final frame (RFRAME(Final))) 341 to the external electronic devices 302 to 303 .
  • a ranging end message or a ranging final frame (RFRAME(Final))
  • the ranging end message 341 may be a signal for notifying the end of a ranging operation.
  • a measurement reporting phase the electronic device 301 transmits ranging-related data (or data frame) 351 to the external electronic devices 302 to 303 .
  • the MRP 350 may mean a section for exchanging ranging-related data 351 between the electronic device 301 and the external electronic devices 302 to 303 .
  • the ranging-related data 351 includes a ranging reply time deferred (RRTD) IE including information related to a response time of the electronic device 301 and a ranging round trip time measurement (RRTM) IE including information related to a round trip.
  • RRTD ranging reply time deferred
  • RRTM ranging round trip time measurement
  • the external electronic devices 302 to 303 may determine a ranging result based on the received RRTD IE and RRTM IE. Also, the external electronic devices 302 to 303 may transmit the determined ranging result to the electronic device 301 .
  • a ranging interval update phase (RIUP) 360 , the electronic device 301 sends a ranging interval update message 361 to the external electronic devices 302 to 303 .
  • RIUP ranging interval update phase
  • the electronic device 301 transmits a value indicating the ranging interval to be changed through the ranging interval update message 361 to the external electronic devices. It can be transmitted to (302 to 303).
  • the RCP 310 , the first PP 320 , the RRP 330 , the second PP 340 , and the MRP 350 are included in one ranging round 300 .
  • one ranging round 300 may further include the RIUP 360 .
  • a plurality of ranging rounds 300 may be performed between the electronic device 301 and the external electronic devices 302 to 303 .
  • the number (N) of external electronic devices communicating with the electronic device 301 is out of band (OOB) (eg, BLE, BT, or WiFi) from the external electronic device before performing the above-described operations. ) can be set based on a signal received through OOB (OOB) (eg, BLE, BT, or WiFi) from the external electronic device before performing the above-described operations. ) can be set based on a signal received through OOB) (eg, BLE, BT, or WiFi) from the external electronic device before performing the above-described operations. ) can be set based on a signal received through OOB (OOB) (eg, BLE, BT, or WiFi) from the external electronic device before performing the above-described operations. ) can be set based on a signal received through OOB (OOB) (eg, BLE, BT, or WiFi) from the external electronic device before performing the above-described operations. ) can be set based on a signal received through OOB (OOB) (eg
  • messages eg, ranging control message 311 , poll message 321 , and lane
  • messages transmitted by the electronic device 301 to the external electronic devices 302 to 303 in the above-described operations
  • At least one of the ring end message 341, the data frame 351, and the ranging interval update message 361) may be transmitted in a multicast manner.
  • 3B is a diagram for explaining another ranging operation between an electronic device and an external electronic device according to an embodiment of the present invention.
  • the ranging operation in FIG. 3B includes a ranging operation between the electronic device 301 for a content sharing service and external electronic devices (eg, the first external electronic device 302 to the N-th external electronic device 303 ). can do.
  • 3B illustrates an operation in which the electronic device 301 and external electronic devices (eg, the first external electronic device 302 to the N-th external electronic device 303) perform UWB communication.
  • the first poll message is transmitted in operation 1111 of transmitting the first poll message for better understanding of the present invention.
  • the electronic device 301 transmits the poll message to external electronic devices (eg: The first external electronic device 302 to the N-th external electronic device 303), and the external electronic devices 302 to 303 transmit a response message to the poll message as an example. have.
  • external electronic devices eg: The first external electronic device 302 to the N-th external electronic device 303
  • the electronic device 301 may transmit a first poll message.
  • the first poll message may be broadcast to an external electronic device (eg, the electronic device 102 to the electronic device 104 of FIG. 1 ) existing in the vicinity of the electronic device 301 .
  • the first external electronic device 302 to the Nth external electronic device 303 located in the vicinity of the electronic device 301 may receive the first poll message.
  • Operation 1111 means that the first poll message is transmitted at the same time, and the time (or time point) at which the first external electronic device 302 to the N-th external electronic device 303 receives the first poll message is an electronic
  • the reception time may be different depending on the distance away from the device 301 .
  • the time at which the first external electronic device 302 receives the first poll message and the time at which the N-th external electronic device 303 receives the first poll message may be different.
  • the first poll message includes a first protocol type, a first service type, a first frame type, first contention phase information 1110 (eg, 30 ms), a first distance measurement cycle 1170, and first transmission offset information (eg, 0xA0) or at least one of the first response control information.
  • the first transmission offset information may be expressed in hexadecimal. When the first transmission offset information is “0xA0”, “1010 0000” may be expressed in binary numbers from 7 bits to 0 bits.
  • the first reception offset setting information is 1 (eg, a value of 7 bits), the first transmission offset number (eg, a value of 4 bits to 0 bits) is 0, and the first transmission offset The number (eg, a value of 6 bits to 5 bits) may represent 5. Since the first poll message is a first message sent from the electronic device 301, the electronic device 301 moves before the first poll message in slot 0 (eg, the first subslot among 50 subslots) (eg, slot 0). It can also be transmitted as 4 (eg, Tx Offset 4), which is the transmission offset number included in the poll message transmitted to .
  • Tx Offset 4 is the transmission offset number included in the poll message transmitted to .
  • the first external electronic device 302 may transmit a first response message.
  • the first external electronic device 302 may transmit a first response message based on first contention phase information included in the first poll message or transmission offset information received before the first poll message.
  • the first external electronic device 302 may determine a slot or an offset number to transmit the first response message based on transmission offset information received before the first poll message. Based on the transmission offset information received before the first poll message, the first external electronic device 302 performs slot 15 (eg, 50 sub-slots) during the time (eg, 50 slots) of the first contention phase information.
  • transmission may be performed with a first offset number (eg, Tx Offset 2).
  • Tx Offset 2 a first offset number
  • the first external electronic device 302 After transmitting the first response message, the first external electronic device 302 enters a sleep state with respect to the UWB communication until the first distance measurement cycle 1170 included in the first poll message ends. can do.
  • the sleep state may include deactivating at least some functions of the communication module 210 performing UWB communication or operating the communication module 210 in a low power state.
  • the first external electronic device 302 may activate UWB communication to receive the second poll message.
  • the N-th external electronic device 303 may transmit a first response message.
  • the N-th external electronic device 303 may transmit a first response message based on first contention phase information included in the first poll message or transmission offset information received before the first poll message.
  • the N-th external electronic device 303 may determine a slot or an offset number to transmit the first response message based on transmission offset information received before the first poll message.
  • the N-th external electronic device 303 performs slot 17 (eg, 50 sub-slots) during the time (eg, 50 slots) of the first contention phase information based on the transmission offset information received before the first poll message.
  • the N-th external electronic device 303 After transmitting the first response message, the N-th external electronic device 303 enters a sleep state for the UWB communication until the first distance measurement cycle 1170 included in the first poll message ends. can do. When the first distance measurement cycle 1170 ends, the N-th external electronic device 303 may activate UWB communication to receive the second poll message.
  • a first offset number eg, Tx Offset 3
  • the electronic device 301 when the time of the first contention phase information 1110 expires after the electronic device 301 transmits the first poll message, the remaining time ( 1171), it can enter the sleep mode for UWB communication.
  • the electronic device 301 may measure the distance to the external electronic device that has transmitted the response message based on the response message received during the time of the first contention phase information 1110 and calculate angle of arrival (AOA) information. have.
  • AOA angle of arrival
  • the electronic device 301 may transmit a second poll message by activating UWB communication.
  • the electronic device 301 before entering the sleep mode or after activating UWB communication, the electronic device 301 may determine second contention phase information or second transmission offset information based on a response message.
  • the processor of the electronic device 301 may dynamically adjust the time of the contention phase according to the number of external electronic devices that have transmitted the response message.
  • the electronic device 301 may determine the second transmission offset information based on the response message or the second poll message. For example, the processor determines the number of transmission offsets based on the length of the payload included in the second poll message, sets a specific bit value of the second transmission offset information to 0 or 1, and sets the second transmission offset number can be decided
  • the electronic device 301 may transmit a second poll message.
  • external electronic devices eg, the first external electronic device 302 to the N-th external electronic device 303
  • the time at which the external electronic devices receive the second poll message may differ depending on the distance between the first external electronic device 302 to the N-th external electronic device 303 and the distance from the electronic device 301 . have.
  • the second poll message includes a second protocol type, a second service type, a second frame type, a second contention phase information 1130 (eg, 30 ms), a second distance measurement cycle 1180, and a second transmission offset information. (eg, 0xA2) or at least one of second response control information.
  • “1010 0010” may be expressed in binary numbers from 7 bits to 0 bits.
  • the second reception offset setting information eg, a value of 7 bits
  • the second transmission offset number eg, a value of 4 bits to 0 bits
  • the second transmission offset The number (eg, a value of 6 bits to 5 bits) may represent 5.
  • the electronic device 301 Since the second poll message is a message sent from the electronic device 301 during the second distance measurement cycle 1180, the electronic device 301 receives slot 0 (eg, the first sub-slot among 50 sub-slots) (eg, slot 0). ) to the first transmission offset number 0 (eg, Tx Offset 0) included in the first poll message.
  • slot 0 eg, the first sub-slot among 50 sub-slots
  • slot 0 eg, slot 0
  • the first transmission offset number 0 eg, Tx Offset 0
  • the first external electronic device 302 may transmit a second response message.
  • the first external electronic device 302 may transmit a second response message based on second contention phase information included in the second poll message or first transmission offset information included in the first poll message.
  • the first external electronic device 302 determines a slot or an offset number to transmit the second response message based on first transmission offset information (eg, 0xA0) included in the first poll message.
  • first transmission offset information eg, 0xA0
  • the first external electronic device 302 performs slot 10 (eg, 50 sub-slots) of the time (eg, 50 slots) of the second contention phase information.
  • 11th subslot (eg, slot 10) can be transmitted with a first offset number (eg, Tx Offset 3). Since the reception offset setting information is 1, the first external electronic device 302 may transmit with an offset number different from that of the electronic device 301 . After transmitting the second response message, the first external electronic device 302 enters a sleep state for the UWB communication until the second distance measurement cycle 1180 included in the second poll message ends. can When the second distance measurement cycle 1180 ends, the first external electronic device 302 may activate UWB communication to receive the third poll message.
  • a first offset number eg, Tx Offset 3
  • the N-th external electronic device 303 may transmit a second response message.
  • the N-th external electronic device 303 may transmit a second response message based on second contention phase information included in the second poll message or first transmission offset information included in the first poll message.
  • the N-th external electronic device 303 determines a slot or an offset number to transmit the second response message based on first transmission offset information (eg, 0xA0) included in the first poll message.
  • first transmission offset information eg, 0xA0
  • the N-th external electronic device 303 transmits the second contention phase information in slot 21 (eg, 50 sub-slots) during the time period (eg, 50 slots).
  • the N-th external electronic device 303 may transmit with an offset number different from that of the electronic device 301 .
  • the N-th external electronic device 303 may enter a sleep state for the UWB communication until the second distance measurement cycle 1180 included in the second poll message ends. can When the second distance measurement cycle 1180 ends, the N-th external electronic device 303 may activate UWB communication to receive the second poll message.
  • the electronic device 301 when the time of the second contention phase information 1130 expires after the electronic device 301 transmits the second poll message, the remaining time ( 1181), it may enter a sleep mode for UWB communication.
  • the electronic device 301 may measure the distance to the external electronic device based on the response message received during the time of the second contention phase information 1130 and calculate the AOA information.
  • the electronic device 301 may transmit a third poll message by activating UWB communication.
  • the electronic device 301 may determine third contention phase information or third transmission offset information based on a response message before entering the sleep mode or after activating UWB communication.
  • the electronic device 301 may transmit a third poll message.
  • external electronic devices eg, the first external electronic device 302 to the N-th external electronic device 303
  • Operation 1151 means that the third poll message is transmitted at the same time, and the reception time of the first external electronic device 302 to the Nth external electronic device 303 varies depending on the distance from the electronic device 301 . can
  • the third poll message includes a third protocol type, a third service type, a third frame type, a third contention phase information 1150 (eg, 30 ms), a third distance measurement cycle 1190, and a third transmission offset information. (eg, 0xA3), or at least one of third response control information.
  • the third transmission offset information is “0xA3”
  • “1010 0011” may be expressed in binary numbers from 7 bits to 0 bits.
  • the third reception offset setting information eg, a value of 7 bits
  • the third transmission offset number eg, a value of 4 bits to 0 bits
  • the third transmission offset is The number (eg, a value of 6 bits to 5 bits) may represent 5.
  • the electronic device 301 Since the third poll message is a message sent from the electronic device 301 during the third distance measurement cycle 1190, the electronic device 301 sends slot 0 (eg, the first sub-slot among 50 sub-slots) (eg, slot 0). ) to the second transmission offset number 2 (eg, Tx Offset 2) included in the second poll message.
  • slot 0 eg, the first sub-slot among 50 sub-slots
  • slot 0 eg, slot 0
  • the second transmission offset number 2 eg, Tx Offset 2
  • the first external electronic device 302 may transmit a third response message.
  • the first external electronic device 302 may transmit a third response message based on third contention phase information included in the third poll message or second transmission offset information included in the second poll message.
  • the first external electronic device 302 determines a slot or an offset number to transmit the third response message based on second transmission offset information (eg, 0xA2) included in the second poll message.
  • second transmission offset information eg, 0xA2 included in the second poll message.
  • the reception offset setting information of the second transmission offset number is 1, the first external electronic device 302 performs slot 20 (eg, 50 sub-slots) during the time (eg, 50 slots) of the third contention phase information.
  • transmission may be performed with a first offset number (eg, Tx Offset 3). Since the reception offset setting information is 1, the first external electronic device 302 may transmit with an offset number different from that of the electronic device 301 . After transmitting the third response message, the first external electronic device 302 enters a sleep state for the UWB communication until the third distance measurement cycle 1190 included in the third poll message ends. can do. When the third distance measurement cycle 1190 ends, the first external electronic device 302 may activate UWB communication to receive the fourth poll message.
  • a first offset number eg, Tx Offset 3
  • the N-th external electronic device 303 may transmit a third response message.
  • the N-th external electronic device 303 may transmit a third response message based on third contention phase information included in the third poll message or second transmission offset information included in the second poll message.
  • the N-th external electronic device 303 determines a slot or an offset number to transmit the third response message based on second transmission offset information (eg, 0xA2) included in the second poll message.
  • second transmission offset information eg, 0xA2
  • the N-th external electronic device 303 performs slot 15 (eg, 50 sub-slots) of the time (eg, 50 slots) of the third contention phase information.
  • transmission may be performed with a first offset number (eg, Tx Offset 1). Since the reception offset setting information is 1, the N-th external electronic device 303 may transmit with an offset number different from that of the electronic device 301 . After transmitting the third response message, the N-th external electronic device 303 may enter a sleep state for the UWB communication until the third distance measurement cycle 1190 included in the third poll message ends. can When the third distance measurement cycle 1190 ends, the N-th external electronic device 303 may activate UWB communication to receive the fourth poll message.
  • a first offset number eg, Tx Offset 1
  • Sleep mode can be entered for UWB communication.
  • the electronic device 301 may measure the distance to the external electronic device based on the response message received during the time of the third contention phase information 1150 and calculate the AOA information.
  • the electronic device 301 may transmit a fourth poll message by activating UWB communication.
  • the electronic device 301 may determine fourth contention phase information or fourth transmission offset information based on a response message before entering the sleep mode or after activating UWB communication.
  • FIG. 4 is a diagram for explaining a scheduling method for a multi-session in a wireless communication system according to an embodiment of the present invention.
  • the scheduler eg, the scheduler 211 of FIG. 2
  • the electronic device eg, the electronic device 200 of FIG. 2
  • the session represents a logical connection for transmitting and receiving signals or data between the electronic device and the external electronic device, and the scheduler may establish a session for each of the plurality of external electronic devices.
  • the scheduler may calculate an execution score for each of the plurality of sessions.
  • the scheduler determines a priority of an application corresponding to each of the plurality of sessions, a role of the electronic device for each of the plurality of sessions, a duration of a ranging round of each of the plurality of sessions, and each of the plurality of sessions
  • An execution score for each of the plurality of sessions may be calculated based on at least one of the number of unscheduled ranging rounds for , and a weight given to the number of unscheduled ranging rounds.
  • the priority of the application may be set based on at least one of an execution state of the application and a type of service supported by the application. For example, the scheduler may set the priority of the application to be higher when the application is executed in the foreground state than when the application is executed in the background state, and the execution score for the session corresponding to the application may be calculated to be high .
  • the scheduler may set the priority of the application to be high, and The performance score for the performance can also be calculated to be high.
  • the role of the electronic device for the session is whether the electronic device is a device that controls an external electronic device that is a communication target through the session or a device controlled by the external electronic device, and
  • the device may be set based on at least one of the number of external electronic devices controlled by the electronic device.
  • the scheduler may calculate the execution score to be higher when the electronic device is a device controlling the external electronic device than when the electronic device is a device controlled by the external electronic device.
  • the scheduler may calculate the execution score to be higher as the number of external electronic devices controlled by the electronic device increases.
  • the scheduler may calculate the execution score to be higher as the duration of the ranging round of the session is shorter. For example, the scheduler may calculate the execution score to be higher as the positioning time of the external electronic device through the session is shorter.
  • the scheduler may calculate a higher execution score for the session as the number of unscheduled ranging rounds for the session increases.
  • the scheduler may give weight to the number of unscheduled ranging rounds for the session. For example, when the execution order of the ranging round is delayed because the execution score of the session is low, the scheduler may give weight to the number of unscheduled ranging rounds for the session to increase the execution score for the session. can Accordingly, as the number of unscheduled ranging rounds for the session increases, the increase in the execution score for the session increases by the weight, so that the probability that the ranging round of the session will be executed may increase.
  • the weight may be set to a specified value.
  • the weight includes an execution score for each of the plurality of sessions, a remaining number of executions for the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, and/ Alternatively, it may be set based on at least one of the number of ranging failures due to a specified timeout for each of the plurality of sessions.
  • the scheduler may perform scheduling for the plurality of sessions based on the calculated execution score.
  • the scheduler may control a session having a high execution score to be executed preferentially. For example, when at least two sessions among the plurality of sessions collide, the scheduler may perform scheduling such that a session having a high execution score among the at least two sessions is preferentially executed. For example, when the execution time (or slot) of one session overlaps at least partially with another session or affects the other session, the scheduler determines the session having a higher execution score among the two sessions. Scheduling can be performed so that it runs preferentially.
  • the scheduler when a session is executed by scheduling, the scheduler sets the number of unscheduled ranging rounds for the executed session to an initial value (eg, zero (0)), and the execution score for the executed session can reduce
  • the scheduler may increase the number of unscheduled ranging rounds for the session having the low execution score among the at least two sessions, thereby increasing the execution score of the session having the low execution score. Accordingly, the execution probability for a session that has not been executed due to a low execution score may increase.
  • the scheduler may terminate the specific session when the number of unscheduled ranging rounds for the specific session among the plurality of sessions is greater than the number of ranging failures due to a specified timeout. For example, when the scheduler increases the number of unscheduled ranging rounds for a session having a lower execution score among the at least two sessions, the increased value is greater than the number of ranging failures due to a specified timeout. If it is large, the session with the low execution score may be terminated. Also, the scheduler may transmit the state of the terminated session to the processor of the electronic device (eg, the processor 230 of FIG. 2 ).
  • the processor of the electronic device eg, the processor 230 of FIG. 2 .
  • At least one of the above-described operations may be performed by a communication module (eg, the communication module 210 of FIG. 2 ) or the processor.
  • the communication module or the processor may calculate an execution score for each of the plurality of sessions in operation 430 .
  • the communication module or the processor may transmit the calculated execution score for each of the plurality of sessions to the scheduler.
  • FIG. 5 is a diagram for explaining a method of operating an electronic device for scheduling multi-session in a wireless communication system according to an embodiment of the present invention.
  • the scheduler (eg, the scheduler 211 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) may determine whether a new connection is requested in operation 501 .
  • the scheduler may determine whether session establishment for connection with a new external electronic device is requested.
  • the request for a new connection may include a case in which the electronic device detects that the external electronic device requests a UWB session through out of band (OOB) (eg, BLE, BT, or WiFi). .
  • OOB out of band
  • the scheduler may determine whether the preset number of sessions is less than a specified number (eg, 5) .
  • the scheduler may perform a session creation failure process in operation 508 .
  • the scheduler may transmit a status message indicating failure of session creation to a processor of the electronic device (eg, the processor 230 of FIG. 2 ).
  • the processor may provide information through a display (eg, the display module 160 of FIG. 1 ) based on a message about a session creation failure received from the scheduler.
  • the scheduler may control the communication module (eg, the communication module 210 of FIG. 2 ) to enter a sleep state. Thereafter, as in operation 507 , the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
  • the scheduler may establish a new session for connection with a new external electronic device and calculate an initial execution score for the established new session.
  • the initial execution score is an initially set execution score, based on at least one of a priority of an application corresponding to the new session, a role of the electronic device for the new session, and a duration of a ranging round of the new session. can be calculated. For example, the number of unscheduled ranging rounds for a session and a weight given to the number of unscheduled ranging rounds may not be considered in the initial execution score.
  • the scheduler may calculate an execution score for a session corresponding to the service according to a service executed by the electronic device.
  • the scheduler performs the session based on at least some of UWB setting values included in a signal received from an external electronic device through out of band (OOB) (eg, BLE, BT, or WiFi). performance score can be calculated.
  • OOB out of band
  • the scheduler may determine whether scheduling of the new session is possible without conflicting with a previously established session. When it is determined that scheduling without collision is possible, in operation 505 , the scheduler may execute a function through a session according to scheduling. For example, the scheduler may control the communication module to perform a positioning function through the session. In addition, after executing the function through the session, the scheduler may control the communication module to enter a sleep state in operation 506 . Thereafter, as in operation 507 , the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
  • the scheduler may perform scheduling based on an execution score in operation 510 . For example, the scheduler may perform scheduling based on the initial execution score of the new session and the preset execution score of the session.
  • the scheduler may execute a function through a session according to the scheduling.
  • the scheduler may control the communication module to enter a sleep state in operation 506 .
  • the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
  • the scheduler may determine in operation 509 whether a conflict between preset sessions occurs.
  • the electronic device may perform scheduling based on the setting of a plurality of sessions and, when a ranging time comes, determine whether a collision between sessions occurs.
  • the scheduler may execute a function through a session according to scheduling in operation 505 .
  • the scheduler may control the communication module to enter a sleep state in operation 506 .
  • the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
  • the scheduler may perform scheduling based on an execution score in operation 510 .
  • the scheduler may perform scheduling based on an execution score for each of the preset sessions.
  • the scheduler may execute a function through a session according to the scheduling.
  • the scheduler may control the communication module to enter a sleep state in operation 506 .
  • the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
  • the scheduling method for a multi-session in a wireless communication system includes an operation of setting a plurality of sessions for communicating with a plurality of external electronic devices (eg, operation 410 of FIG. 4 ). , calculating an execution score for each of the plurality of sessions (eg, operation 430 of FIG. 4 ), and performing scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions operation (eg, operation 450 of FIG.
  • the execution score for each of the plurality of sessions is the priority of an application corresponding to each of the plurality of sessions, and an electronic score for each of the plurality of sessions Among the role of the device, the duration of each ranging round of the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, or a weight given to the number of unscheduled ranging rounds It may be calculated based on at least one.
  • a session having a high execution score among the at least two sessions has priority. It may include an operation of performing scheduling to be executed as .
  • the scheduling operation so that the session having the high execution score is preferentially executed may include setting the number of unscheduled ranging rounds for the session having the high execution score to an initial value; and increasing the number of unscheduled ranging rounds for a session having a low execution score among the at least two sessions.
  • the scheduling of the plurality of sessions may include: If the number of unscheduled ranging rounds for the session with the low execution score is greater than the number of ranging failures due to a specified timeout, The method may further include terminating the session having the low execution score and transmitting a state of the session having the low execution score to the processor of the electronic device.
  • the weight may be set to a specified value.
  • the weight includes an execution score for each of the plurality of sessions, a remaining number of executions for the plurality of sessions, a number of unscheduled ranging rounds for each of the plurality of sessions, and the It may be set based on at least one of the number of ranging failures due to a specified timeout for each of the plurality of sessions.
  • the priority of the application may be set based on at least one of an execution state of the application and a type of service supported by the application.
  • the role of the electronic device determines whether the electronic device is a device for controlling an external electronic device that is a communication target or a device controlled by the external electronic device, and whether the electronic device controls the external electronic device
  • the setting may be based on at least one of the number of external electronic devices controlled by the electronic device.
  • the scheduling of the plurality of sessions may include, when at least two sessions of the plurality of sessions collide, in a session having a low execution score among the at least two sessions. and reducing at least one of a contention period or a duration of a ranging round.
  • the calculating of the execution score for each of the plurality of sessions may include determining that the execution score is at least one of a communication module of the electronic device, a processor of the electronic device, or an artificial intelligence module of the electronic device. may include an operation of being calculated by , and transmitted to the scheduler of the electronic device.
  • the scheduler (eg, the scheduler 211 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) determines the number of unscheduled ranging rounds for each of the plurality of sessions. weights can be applied. For example, when the execution order of the ranging round is delayed because the execution score of the specific session is low, the scheduler gives weight to the number of unscheduled ranging rounds for the specific session, so that the execution score for the specific session can increase Accordingly, as the number of unscheduled ranging rounds for the specific session increases, the increase in the execution score for the specific session increases by the weight, so that the probability that the ranging round of the specific session will be executed may increase. have.
  • the initial execution score may be set based on a priority of an application corresponding to each session.
  • the initial execution score may be determined based on the execution state (foreground or background) of the application corresponding to each session and/or the type of service supported by the application corresponding to each session.
  • the method of applying the weight may include a static method or a dynamic method.
  • the scheduler may set the weight to a specified value.
  • the scheduler may apply the same weight to each of a plurality of sessions.
  • the scheduler may set the weight differently according to a specified condition.
  • the scheduler may apply different weights to each of a plurality of sessions.
  • FIGS. 6A to 6C describe a case in which no weight is assigned
  • FIGS. 7A to 7C describe a case in which weight is assigned in the static manner
  • FIGS. 8A to 8C weight is applied in the dynamic manner. Let me explain the case.
  • the first session and the second session in FIGS. 6A to 8C are, for example, sessions corresponding to the first car access service and the second car access service, respectively, and have a hopping sequence and the size of the ranging block. represents the case of 100 ms
  • the third session is, for example, a session corresponding to the transmission side in the content sharing service, and represents a case where the ranging interval is 100 ms and the contention period is 30 ms
  • the fourth and fifth sessions are
  • each of the sessions corresponding to the receiving side in the content sharing service may represent a case where the ranging interval is 100 ms and the contention period is 10 ms.
  • the execution score for the sessions may include the priority of the application corresponding to the session, the role of the electronic device for the session, the duration of the ranging round of the session, the number of unscheduled ranging rounds for the session, and/or the It may be calculated based on at least one of weights given to the number of unscheduled ranging rounds. For example, the execution score may be calculated by Equation 1 below.
  • the running score of session i represents the running score of the i-th session
  • P i represents the priority of an application corresponding to the i-th session
  • R i represents the role of the electronic device for the i-th session
  • NC i denotes the number of external electronic devices controlled by the electronic device when the role of the electronic device for the i-th session is a device to control the external electronic device
  • D i denotes the duration of the ranging round of the i-th session
  • NSRN i denotes the number of unscheduled ranging rounds for the i-th session
  • W i denotes a weight applied to the number of unscheduled ranging rounds for the i-th session
  • a denotes a ranging round of the session It can be expressed as a constant multiplied by the duration of
  • the duration of the ranging round of the first session is 15 ms
  • the running score of the first session is (20 + 5 + 10 + 50/15 + (NSRN 1 * W 1 )).
  • the performance score can be calculated as a value of (30 + 5 + 30 + 50/30 + (NSRN 3 * W 3 )).
  • FIG. 6A is a diagram illustrating a scheduling result when no weight is applied to an execution score for each of the sessions according to an embodiment of the present invention
  • FIG. 6B is a diagram showing execution of each of the sessions according to an embodiment of the present invention It is a view showing the execution score when no weight is applied to the score
  • FIG. 6C is the number of unscheduled ranging rounds when no weight is applied to the execution score for each of the sessions according to an embodiment of the present invention. is a diagram showing
  • the scheduler eg, the scheduler 211 of FIG. 2
  • the electronic device eg, the electronic device 200 of FIG. 2
  • No weighting may be applied to the number of
  • the scheduling result values shown in FIGS. 6A to 6C may correspond to a result of multiplying the number of unscheduled ranging rounds for each of the plurality of sessions by a fixed natural number 1 .
  • W i may be fixed to the natural number 1.
  • a session with a low initial execution score (eg, the initial execution of the fourth session or the fifth session) If the score is 14), the execution probability may be low. That is, as shown in FIG. 6C , in a session (eg, a fourth session or a fifth session) having a low initial execution score, the number of unscheduled ranging rounds inevitably increases continuously.
  • the execution probability of a session with a low initial execution score is low, despite the continuous increase in the number of unscheduled ranging rounds for the session, if the session fails to execute, eventually the unscheduled lane for the session The number of jing rounds becomes greater than the number of ranging failures due to a specified timeout (eg, 10 times), and accordingly, the session may not be executed and may be terminated. Accordingly, a weight may be applied to the number of unscheduled ranging rounds for the session so that the session can be scheduled even in the case of a session having a low initial execution score (eg, the fourth session or the fifth session).
  • FIG. 7A is a diagram illustrating a scheduling result when a weight applied to an execution score for each of the sessions is set to a static value according to an embodiment of the present invention
  • FIG. 7B is a diagram showing the sessions according to an embodiment of the present invention. It is a diagram showing an execution score when the weight applied to the execution score for each is set to a static value
  • FIG. 7C is a view showing the weight applied to the execution score for each session according to an embodiment of the present invention is a static value It is a diagram showing the number of unscheduled ranging rounds when set to .
  • the scheduler eg, the scheduler 211 of FIG. 2
  • the electronic device eg, the electronic device 200 of FIG. 2
  • the static value may be a value greater than the natural number 1.
  • the scheduling result values shown in FIGS. 7A to 7C are the result of multiplying the number of unscheduled ranging rounds for each of the plurality of sessions by a fixed natural number n (n>1) (eg 10). can be matched.
  • n natural number
  • W i may be fixed to a natural number n (n>1).
  • a session with a low initial execution score may increase the probability of execution. For example, in a session with a low initial execution score, the number of unscheduled ranging rounds increases to a certain stage. As the number of unscheduled ranging rounds increases, the increase in the execution score for the session is increased by the weight, and consequently, the execution score for the session becomes higher than the execution score for other sessions and may be executed.
  • a session with a high initial execution score (eg, a first session, a second session, or a third session) is a session with a low initial execution score (eg: 4th session or 5th session)
  • the weights may be set to be less than or equal to a specified value.
  • FIG. 8A is a diagram illustrating a scheduling result when a weight applied to an execution score for each session is set to a dynamic value according to an embodiment of the present invention
  • FIG. 8B is a diagram showing sessions according to an embodiment of the present invention. It is a diagram showing an execution score when the weight applied to the execution score for each is set to a dynamic value
  • FIG. 8c is a dynamic value of the weight applied to the execution score for each of the sessions according to an embodiment of the present invention. It is a diagram showing the number of unscheduled ranging rounds when set to .
  • the scheduler eg, the scheduler 211 of FIG. 2
  • the electronic device eg, the electronic device 200 of FIG. 2
  • Weights can be applied as dynamic values to the number of
  • the scheduler may apply different weights to each of the plurality of sessions. For example, in Equation 1 above, W i may be set differently for each session.
  • the scheduler is configured to: an execution score for each of the plurality of sessions, the number of remaining executions for the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, and the plurality of The weight may be set based on at least one of the number of ranging failures due to a specified timeout for each of the sessions of .
  • the scheduler determines that the lower the execution score for the specific session, the smaller the number of remaining executions for the specific session, the greater the number of unscheduled ranging rounds for the specific session, the higher the number of unscheduled ranging rounds for the specific session.
  • a weight applied to the specific session may be set higher.
  • a session with a high initial execution score (eg, the first session, the second session, or The execution probability of the third session) may also increase, and the execution probability of a session (eg, the fourth session or the fifth session) having a low initial execution score may also increase.
  • the probability that the session will be executed before the number of unscheduled ranging rounds becomes greater than the number of ranging failures due to a specified timeout (eg, 10) may increase.
  • FIG. 9 is a diagram for explaining a method of adjusting at least one of a contention period of a session or a duration of a ranging round according to an embodiment of the present invention.
  • the communication module (eg, the communication module 210 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) collides with at least two sessions among a plurality of sessions, At least one of a contention interval or a duration of a ranging round in a session having a low execution score among the at least two sessions may be reduced.
  • the communication module may increase the execution probability of the session having the low execution score by reducing the duration of the contention period or the ranging round in the session having the low execution score.
  • the communication module is configured to maintain a contention period or a ranging round in the session period can be reduced.
  • the contention period of the first session is the first time interval (eg, 20 ms) and the second session (eg, session for car access)
  • the communication module performs the first session without collision with the second session, Considering the time interval, the contention period of the first session may be set in a slot (eg, slot 80 and slot 180) before the slot in which the next RCM of the second session is transmitted.
  • the communication module may reduce the contention period of the first session from the first time interval to a second time interval (eg, 10 ms).
  • the communication module may set the contention period of the first session without collision of the first session and the second session.
  • the communication module may recover the contention period of the first session when the next ranging round is reached without collision of the first session and the second session. For example, the communication module may change the contention period of the first session from the second time interval to the first time interval.
  • the electronic device may have various types of devices.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a wearable device e.g., a smart bracelet
  • a home appliance device e.g., a home appliance
  • first”, “second”, or “first” or “second” may simply be used to distinguish the component from other components in question, and may refer to components in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit.
  • a module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document include one or more stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). It may be implemented as software (eg, the program 140) including instructions.
  • a processor eg, processor 120
  • a device eg, electronic device 101
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • 'non-transitory' only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
  • a signal eg, electromagnetic wave
  • the method according to various embodiments disclosed in this document may be included in a computer program product (computer program product) and provided.
  • Computer program products may be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed online (eg download or upload), directly between smartphones (eg smartphones).
  • a part of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
  • each component (eg, module or program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have.
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or a program
  • the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Disclosed is an electronic device comprising: a communication module supporting ultra-wideband communication; a memory for storing an application supporting a service using the ultra-wideband communication; a processor operatively connected to the communication module and the memory; and a scheduler operatively connected to the processor, wherein: the scheduler is configured to configure multiple sessions for communication with multiple external electronic devices, calculate an execution score for each of the multiple sessions, and perform scheduling for the multiple sessions on the basis of the execution score for each of the multiple sessions; and the execution score of each of the multiple sessions is calculated on the basis of at least one of a priority of an application corresponding to each of the multiple sessions, a role of the electronic device for each of the multiple sessions, duration of a ranging round of each of the multiple sessions, the number of ranging rounds, which have failed to be scheduled, for each of the multiple sessions, and a weight assigned to the number of the ranging rounds, which have failed to be scheduled. Various other embodiments identified through the present document are also possible.

Description

무선 통신 시스템에서의 멀티 세션에 대한 스케줄링 방법 및 이를 지원하는 전자 장치Scheduling method for multi-session in a wireless communication system and electronic device supporting the same
본 발명의 다양한 실시예들은, 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링 기술에 관한 것이다.Various embodiments of the present invention relate to a scheduling technique for a multi-session in a wireless communication system.
최근 들어, 무선 통신 시스템이 급격하게 발전됨에 따라, 무선 통신을 이용한 서비스의 수요가 늘어나고 무선 통신 모듈을 포함하는 전자 장치의 보급도 늘어나고 있다. 다양한 무선 통신 방식 중 초광대역(ultra-wideband, UWB) 통신을 지원하는 전자 장치는 정밀한 측위 기능을 제공할 수 있다. 예를 들어, 전자 장치는 UWB 통신을 이용한 레인징(ranging) 동작을 통해 외부 전자 장치의 위치를 측정할 수 있으며, 측정된 외부 전자 장치의 위치에 기반하여 외부 전자 장치의 기능을 제어하거나 외부 전자 장치로 지정된 위치 기반 서비스를 제공할 수 있다.In recent years, as wireless communication systems are rapidly developed, the demand for services using wireless communication has increased, and the spread of electronic devices including wireless communication modules has also increased. An electronic device supporting ultra-wideband (UWB) communication among various wireless communication methods may provide a precise positioning function. For example, the electronic device may measure the location of the external electronic device through a ranging operation using UWB communication, and may control the function of the external electronic device or control the function of the external electronic device based on the measured location of the external electronic device. It can provide location-based services specified by the device.
한편, UWB 통신을 지원하는 전자 장치는 멀티 세션을 통해 복수의 외부 전자 장치들과 통신할 수 있다. 전자 장치는 복수의 외부 전자 장치들과의 통신 중 발생하는 충돌을 제어하기 위해 멀티 세션에 대한 스케줄링을 수행할 수 있다.Meanwhile, an electronic device supporting UWB communication may communicate with a plurality of external electronic devices through a multi-session. The electronic device may perform scheduling for a multi-session in order to control a collision occurring during communication with a plurality of external electronic devices.
전자 장치는 복수의 외부 전자 장치들과의 통신 중 발생하는 충돌을 제어하기 위해 멀티 세션에 대한 스케줄링을 수행하는 과정에서, 복수의 세션들 각각에 대응하는 어플리케이션이 지원하는 서비스의 우선 순위를 고려할 수는 있지만, 초광대역 통신에서의 레인징 특성을 고려하지 못할 수 있다. 이에 따라, 전자 장치는 복수의 외부 전자 장치들과의 레인징 세션을 효율적으로 실행하지 못하는 경우가 발생될 수 있다.The electronic device may consider the priority of a service supported by an application corresponding to each of the plurality of sessions in the process of scheduling multi-sessions to control collisions occurring during communication with a plurality of external electronic devices. However, it may not be possible to consider the ranging characteristic in ultra-wideband communication. Accordingly, the electronic device may be unable to efficiently execute a ranging session with a plurality of external electronic devices.
본 발명의 다양한 실시예들은, 복수의 세션들 각각에 대한 실행 스코어를 기반으로 복수의 세션들에 대한 스케줄링을 수행하는 방법 및 이를 지원하는 전자 장치를 제공할 수 있다.Various embodiments of the present disclosure may provide a method for scheduling a plurality of sessions based on an execution score for each of the plurality of sessions, and an electronic device supporting the same.
본 발명의 다양한 실시예에 따른 전자 장치는, 초광대역 통신을 지원하는 통신 모듈, 상기 초광대역 통신을 이용한 서비스를 지원하는 어플리케이션을 저장하는 메모리, 상기 통신 모듈 및 상기 메모리와 작동적으로 연결된 프로세서, 및 상기 프로세서와 작동적으로 연결된 스케줄러를 포함하고, 상기 스케줄러는, 복수의 외부 전자 장치들과 통신하기 위한 복수의 세션들을 설정하고, 상기 복수의 세션들 각각에 대한 실행 스코어를 산출하고, 상기 복수의 세션들 각각에 대한 실행 스코어를 기반으로, 상기 복수의 세션들에 대한 스케줄링을 수행하도록 설정되고, 상기 복수의 세션들 각각에 대한 실행 스코어는, 상기 복수의 세션들 각각에 대응하는 어플리케이션의 우선 순위, 상기 복수의 세션들 각각에 대한 상기 전자 장치의 역할, 상기 복수의 세션들 각각의 레인징 라운드의 지속 기간, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 또는 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여 산출될 수 있다.An electronic device according to various embodiments of the present disclosure includes a communication module supporting ultra-wideband communication, a memory for storing an application supporting a service using the ultra-wideband communication, a processor operatively connected to the communication module and the memory; and a scheduler operatively connected to the processor, wherein the scheduler establishes a plurality of sessions for communicating with a plurality of external electronic devices, calculates an execution score for each of the plurality of sessions, and is configured to perform scheduling for the plurality of sessions based on the execution score for each of the sessions of a rank, a role of the electronic device for each of the plurality of sessions, a duration of a ranging round of each of the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, or the scheduling It may be calculated based on at least one of weights given to the number of failed ranging rounds.
또한, 본 발명의 다양한 실시예에 따른 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링 방법은, 복수의 외부 전자 장치들과 통신하기 위한 복수의 세션들을 설정하는 동작, 상기 복수의 세션들 각각에 대한 실행 스코어를 산출하는 동작, 및 상기 복수의 세션들 각각에 대한 실행 스코어를 기반으로, 상기 복수의 세션들에 대한 스케줄링을 수행하는 동작을 포함하고, 상기 복수의 세션들 각각에 대한 실행 스코어는, 상기 복수의 세션들 각각에 대응하는 어플리케이션의 우선 순위, 상기 복수의 세션들 각각에 대한 전자 장치의 역할, 상기 복수의 세션들 각각의 레인징 라운드의 지속 기간, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 또는 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여 산출될 수 있다.In addition, the scheduling method for a multi-session in a wireless communication system according to various embodiments of the present invention includes an operation of setting a plurality of sessions for communicating with a plurality of external electronic devices, and execution of each of the plurality of sessions calculating a score, and performing scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions, wherein the execution score for each of the plurality of sessions includes: Priority of an application corresponding to each of the plurality of sessions, the role of the electronic device for each of the plurality of sessions, the duration of a ranging round of each of the plurality of sessions, and unscheduled for each of the plurality of sessions It may be calculated based on at least one of the number of unscheduled ranging rounds and a weight given to the number of unscheduled ranging rounds.
본 발명의 다양한 실시예들에 따르면, 복수의 세션들 각각에 대한 실행 스코어를 기반으로 복수의 세션들에 대한 스케줄링을 수행함으로써, 초광대역 통신에서의 레인징 특성을 고려하여, 복수의 세션들에 대한 효율적인 스케줄링을 지원할 수 있다.According to various embodiments of the present invention, by performing scheduling for a plurality of sessions based on an execution score for each of the plurality of sessions, in consideration of the ranging characteristic in ultra-wideband communication, the plurality of sessions It can support efficient scheduling for
이 외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.In addition, various effects directly or indirectly identified through this document may be provided.
도 1은 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure;
도 2는 본 발명의 일 실시예에 따른 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링을 지원하는 전자 장치의 구성을 설명하기 위한 도면이다.2 is a diagram for explaining the configuration of an electronic device supporting scheduling for multi-session in a wireless communication system according to an embodiment of the present invention.
도 3a는 본 발명의 일 실시예에 따른 전자 장치와 외부 전자 장치들 간의 레인징 동작을 설명하기 위한 도면이다.3A is a diagram for describing a ranging operation between an electronic device and an external electronic device according to an embodiment of the present invention.
도 3b는 본 발명의 일 실시예에 따른 전자 장치와 외부 전자 장치들 간의 다른 레인징 동작을 설명하기 위한 도면이다.3B is a diagram for explaining another ranging operation between an electronic device and an external electronic device according to an embodiment of the present invention.
도 4는 본 발명의 일 실시예에 따른 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링 방법을 설명하기 위한 도면이다.4 is a diagram for explaining a scheduling method for a multi-session in a wireless communication system according to an embodiment of the present invention.
도 5는 본 발명의 일 실시예에 따른 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링을 수행하는 전자 장치의 운용 방법을 설명하기 위한 도면이다.5 is a diagram for explaining a method of operating an electronic device for scheduling multi-session in a wireless communication system according to an embodiment of the present invention.
도 6a는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 가중치를 적용하지 않은 경우의 스케줄링 결과를 나타낸 도면이다.6A is a diagram illustrating a scheduling result when no weight is applied to an execution score for each session according to an embodiment of the present invention.
도 6b는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 가중치를 적용하지 않은 경우의 실행 스코어를 나타낸 도면이다.6B is a diagram illustrating an execution score when no weight is applied to an execution score for each session according to an embodiment of the present invention.
도 6c는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 가중치를 적용하지 않은 경우의 스케줄링되지 못한 레인징 라운드의 수를 나타낸 도면이다.6C is a diagram illustrating the number of unscheduled ranging rounds when no weight is applied to an execution score for each of the sessions according to an embodiment of the present invention.
도 7a는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 정적인 값으로 설정된 경우의 스케줄링 결과를 나타낸 도면이다.7A is a diagram illustrating a scheduling result when a weight applied to an execution score for each session is set to a static value according to an embodiment of the present invention.
도 7b는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 정적인 값으로 설정된 경우의 실행 스코어를 나타낸 도면이다.7B is a diagram illustrating an execution score when a weight applied to the execution score for each session is set to a static value according to an embodiment of the present invention.
도 7c는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 정적인 값으로 설정된 경우의 스케줄링되지 못한 레인징 라운드의 수를 나타낸 도면이다.7C is a diagram illustrating the number of unscheduled ranging rounds when a weight applied to an execution score for each session is set to a static value according to an embodiment of the present invention.
도 8a는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 동적인 값으로 설정된 경우의 스케줄링 결과를 나타낸 도면이다.8A is a diagram illustrating a scheduling result when a weight applied to an execution score for each session is set to a dynamic value according to an embodiment of the present invention.
도 8b는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 동적인 값으로 설정된 경우의 실행 스코어를 나타낸 도면이다.8B is a diagram illustrating an execution score when a weight applied to the execution score for each session is set to a dynamic value according to an embodiment of the present invention.
도 8c는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 동적인 값으로 설정된 경우의 스케줄링되지 못한 레인징 라운드의 수를 나타낸 도면이다.8C is a diagram illustrating the number of unscheduled ranging rounds when a weight applied to an execution score for each session is set to a dynamic value according to an embodiment of the present invention.
도 9는 본 발명의 일 실시예에 따른 세션의 경쟁 구간 또는 레인징 라운드의 지속 기간 중 적어도 하나를 조절하는 방법을 설명하기 위한 도면이다.9 is a diagram for explaining a method of adjusting at least one of a contention period of a session or a duration of a ranging round according to an embodiment of the present invention.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.In connection with the description of the drawings, the same or similar reference numerals may be used for the same or similar components.
이하, 첨부된 도면을 참조하여 본 발명의 다양한 실시예들이 설명된다. 설명의 편의를 위하여 도면에 도시된 구성요소들은 그 크기가 과장 또는 축소될 수 있으며, 본 발명이 반드시 도시된 바에 의해 한정되는 것은 아니다.Hereinafter, various embodiments of the present invention will be described with reference to the accompanying drawings. For convenience of description, the sizes of the components shown in the drawings may be exaggerated or reduced, and the present invention is not necessarily limited to the illustrated ones.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments. Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with at least one of the electronic device 104 and the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 may be included. In some embodiments, at least one of these components (eg, the connection terminal 178 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components (eg, sensor module 176 , camera module 180 , or antenna module 197 ) are integrated into one component (eg, display module 160 ). can be
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be stored in the volatile memory 132 , and may process commands 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 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, when the electronic device 101 includes the main processor 121 and the sub-processor 123 , the sub-processor 123 may use less power than the main processor 121 or may be set to be specialized for a specified function. can The auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the coprocessor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). have. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ). The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a non-volatile memory 134 .
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.The input module 150 may receive a command or data to be used in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 . The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output a sound signal to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. The receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.The display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 . The display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device. According to an embodiment, the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 or an external electronic device (eg, a sound output module 155 ) directly or wirelessly connected to the electronic device 101 . A sound may be output through the electronic device 102 (eg, a speaker or headphones).
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to one embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, 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, an SD card interface, or an audio interface.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied 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).
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a LAN (local area network) communication module, or a power line communication module). A corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 . The electronic device 101 may be identified or authenticated.
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR). NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)). The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 includes various technologies for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ). According to an embodiment, the wireless communication module 192 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less).
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) other than the radiator may be additionally formed as a part of the antenna module 197 .
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.
일 실시예에 따르면, 명령 또는 데이터는 제2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 is to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199 . The electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
도 2는 본 발명의 일 실시예에 따른 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링을 지원하는 전자 장치의 구성을 설명하기 위한 도면이다.2 is a diagram for explaining the configuration of an electronic device supporting scheduling for multi-session in a wireless communication system according to an embodiment of the present invention.
전자 장치(200)(예: 도 1의 전자 장치(101))는 초광대역(ultra-wideband, UWB) 통신을 지원할 수 있으며, 초광대역 통신을 이용하여 정밀한 측위 기능을 제공할 수 있다. 예를 들어, 전자 장치는 초광대역 통신을 이용한 레인징(ranging) 동작을 통해 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 전자 장치(104))의 위치를 측정할 수 있으며, 측정된 외부 전자 장치의 위치에 기반하여 외부 전자 장치의 기능을 제어하거나 외부 전자 장치로 지정된 위치 기반 서비스를 제공할 수 있다. 여기서, 초광대역 통신은 기저대역 상태에서 넓은 주파수 대역, 낮은 스펙트럼 밀도, 짧은 펄스 폭을 이용한 단거리 고속 무선 통신을 의미할 수 있다. 예를 들어, 초광대역 통신의 주파수 대역은, 3GHz 대역(예: 약 3.735GHz 내지 4.8GHz), 7GHz 대역(예: 약 7.2GHz 내지 10.2GHz) 및/또는 6GHz 대역(예: 약 6.0GHz 내지 7.2GHz)을 포함할 수 있다. The electronic device 200 (eg, the electronic device 101 of FIG. 1 ) may support ultra-wideband (UWB) communication, and may provide a precise positioning function using ultra-wideband communication. For example, the electronic device may measure the location of an external electronic device (eg, the electronic device 102 or the electronic device 104 of FIG. 1 ) through a ranging operation using ultra-wideband communication, and measure the location. A function of the external electronic device may be controlled based on the location of the designated external electronic device, or a location-based service designated as the external electronic device may be provided. Here, ultra-wideband communication may refer to short-range high-speed wireless communication using a wide frequency band, low spectral density, and short pulse width in a baseband state. For example, the frequency band of ultra-wideband communication is a 3 GHz band (eg, about 3.735 GHz to 4.8 GHz), a 7 GHz band (eg, about 7.2 GHz to 10.2 GHz), and/or a 6 GHz band (eg, about 6.0 GHz to 7.2 GHz) GHz) may be included.
일 실시예에 따르면, 전자 장치(200)는 상술한 기능 또는 서비스를 복수의 외부 전자 장치들과의 연계를 통해 다양한 형태로 제공하기 위해, 멀티 세션을 통해 복수의 외부 전자 장치들과 통신할 수 있다. 이 과정에서, 전자 장치(200)는 복수의 외부 전자 장치들과의 통신 중 발생하는 충돌을 제어하기 위해 멀티 세션(복수의 세션들)에 대한 스케줄링을 수행할 수 있다. 또한, 전자 장치(200)는 초광대역 통신에서의 레인징 특성을 고려하여 복수의 세션들에 대한 효율적인 스케줄링을 지원하기 위해, 복수의 세션들 각각에 대한 실행 스코어를 기반으로 복수의 세션들에 대한 스케줄링을 수행할 수 있다.According to an embodiment, the electronic device 200 may communicate with a plurality of external electronic devices through a multi-session in order to provide the above-described function or service in various forms through association with a plurality of external electronic devices. have. In this process, the electronic device 200 may perform scheduling for a multi-session (a plurality of sessions) in order to control a collision occurring during communication with a plurality of external electronic devices. In addition, in order to support efficient scheduling of a plurality of sessions in consideration of a ranging characteristic in ultra-wideband communication, the electronic device 200 provides information about a plurality of sessions based on an execution score for each of the plurality of sessions. Scheduling can be done.
상술한 기능을 지원하기 위해, 도 2를 참조하면, 전자 장치(200)는 통신 모듈(210)(예: 도 1의 통신 모듈(190)), 스케줄러(211), 프로세서(230)(예: 도 2의 프로세서(120)) 및 메모리(250)(예: 도 2의 메모리(130))를 포함할 수 있다. 그러나, 전자 장치(200)의 구성이 이에 한정되는 것은 아니다. 다양한 실시예에 따르면, 전자 장치(200)는 상술한 구성요소들 외에 적어도 하나의 다른 구성요소를 더 포함할 수 있다.To support the above-described function, referring to FIG. 2 , the electronic device 200 includes a communication module 210 (eg, the communication module 190 of FIG. 1 ), a scheduler 211 , and a processor 230 (eg: The processor 120 of FIG. 2 ) and a memory 250 (eg, the memory 130 of FIG. 2 ) may be included. However, the configuration of the electronic device 200 is not limited thereto. According to various embodiments, the electronic device 200 may further include at least one other component in addition to the above-described components.
상기 통신 모듈(210)은 전자 장치(200)와 외부 전자 장치 간의 통신을 지원할 수 있다. 예를 들어, 상기 통신 모듈(210)은 외부 전자 장치와 규정된 통신 프로토콜에 따른 무선 통신(예: 초광대역 통신)을 수립하고, 상기 무선 통신이 지원하는 주파수 대역을 이용하여 신호 또는 데이터를 송수신할 수 있다.The communication module 210 may support communication between the electronic device 200 and an external electronic device. For example, the communication module 210 establishes wireless communication (eg, ultra-wideband communication) according to a prescribed communication protocol with an external electronic device, and transmits and receives signals or data using a frequency band supported by the wireless communication can do.
일 실시예에 따르면, 상기 통신 모듈(210)은 복수의 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 전자 장치(104))들과 통신하기 위한 복수의 세션들을 설정할 수 있다. 상기 세션은 전자 장치(200)와 외부 전자 장치 간의 신호 또는 데이터의 송수신을 위한 논리적인 연결을 나타내는 것으로, 상기 통신 모듈(210)은 상기 복수의 외부 전자 장치들 각각에 대해 세션을 설정할 수 있다. 예를 들어, 초광대역 통신을 지원하는 상기 통신 모듈(210)은 상기 복수의 외부 전자 장치들과 측위 동작을 수행하기 위한 레인징 세션을 상기 복수의 외부 전자 장치들 각각에 대해 설정할 수 있다. 일 실시예에 따르면, 상기 세션의 개수는 지정된 개수(예: 5개) 이하일 수 있다.According to an embodiment, the communication module 210 may establish a plurality of sessions for communicating with a plurality of external electronic devices (eg, the electronic device 102 or the electronic device 104 of FIG. 1 ). The session represents a logical connection for transmitting and receiving signals or data between the electronic device 200 and an external electronic device, and the communication module 210 may establish a session for each of the plurality of external electronic devices. For example, the communication module 210 supporting ultra-wideband communication may set a ranging session for performing a positioning operation with the plurality of external electronic devices for each of the plurality of external electronic devices. According to an embodiment, the number of sessions may be less than or equal to a specified number (eg, five).
상기 스케줄러(211)는 상기 복수의 세션들에 대한 스케줄링을 수행할 수 있다. 일 실시예에 따르면, 상기 통신 모듈(210)의 동작 중 상기 복수의 세션들을 설정하는 동작은 상기 스케줄러(211)에 의해 수행될 수도 있다. 일 실시예에 따르면, 상기 스케줄러(211)의 동작들 중 적어도 일부는 상기 통신 모듈(210) 또는 상기 프로세서(230)에 의해 수행될 수도 있다. 일 예로, 상기 스케줄러(211)는 상기 통신 모듈(210) 또는 상기 프로세서(230)에 포함될 수 있다. 다른 실시예에서, 상기 스케줄러(211)의 동작들 중 적어도 일부는 인공지능 모델의 처리에 특화된 모듈(예: 인공지능 모듈(미도시))에 의해 수행될 수도 있다. 예를 들어, 후술하는 복수의 세션들 각각에 대한 실행 스코어를 산출하는 동작은 상기 인공지능 모듈에 의해 수행될 수 있다.The scheduler 211 may schedule the plurality of sessions. According to an embodiment, the operation of setting the plurality of sessions during the operation of the communication module 210 may be performed by the scheduler 211 . According to an embodiment, at least some of the operations of the scheduler 211 may be performed by the communication module 210 or the processor 230 . For example, the scheduler 211 may be included in the communication module 210 or the processor 230 . In another embodiment, at least some of the operations of the scheduler 211 may be performed by a module specialized in processing an artificial intelligence model (eg, an artificial intelligence module (not shown)). For example, the operation of calculating an execution score for each of a plurality of sessions to be described later may be performed by the artificial intelligence module.
일 실시예에 따르면, 상기 스케줄러(211)는 상기 복수의 세션들 각각에 대한 실행 스코어(running score)를 산출할 수 있다. 상기 스케줄러(211)는 세션에 대응하는 어플리케이션(예: 도 1의 어플리케이션(146))의 우선 순위, 세션에 대한 전자 장치(200)의 역할, 세션의 레인징 라운드의 지속 기간(ranging round duration), 세션에 대한 스케줄링되지 못한 레인징 라운드의 수, 및/또는 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여, 상기 세션에 대한 실행 스코어를 산출할 수 있다.According to an embodiment, the scheduler 211 may calculate a running score for each of the plurality of sessions. The scheduler 211 determines the priority of the application corresponding to the session (eg, the application 146 of FIG. 1 ), the role of the electronic device 200 for the session, and the ranging round duration of the session. , the number of unscheduled ranging rounds for the session, and/or a weight assigned to the number of unscheduled ranging rounds may be used to calculate an execution score for the session.
일 실시예에 따르면, 상기 스케줄러(211)는 세션에 대응하는 어플리케이션의 우선 순위에 기반하여, 상기 세션에 대한 실행 스코어를 산출할 수 있다. 여기서, 상기 어플리케이션은 상기 세션을 통한 통신 대상이 되는 외부 전자 장치에 초광대역 통신을 이용한 서비스를 지원하는 어플리케이션일 수 있다. 상기 어플리케이션의 우선 순위는 상기 어플리케이션의 실행 상태 및 상기 어플리케이션이 지원하는 서비스의 종류(예: 접근(access) 서비스, 컨텐츠 공유 서비스 또는 장치 검색 서비스) 중 적어도 하나에 기반하여 설정될 수 있다. 상기 스케줄러(211)는 상기 실행 스코어를 산출하는 시점에, 상기 어플리케이션이 포어그라운드(foreground) 상태로 실행되고 있는지 또는 백그라운드(background) 상태로 실행되고 있는지에 따라 상기 어플리케이션의 우선 순위를 다르게 설정할 수 있다. 일 예로, 상기 스케줄러(211)는 상기 어플리케이션이 백그라운드 상태로 실행되는 경우보다 포어그라운드 상태로 실행될 때, 상기 어플리케이션의 우선 순위를 높게 설정할 수 있고, 상기 어플리케이션에 대응하는 세션에 대한 실행 스코어도 높게 산출될 수 있다. 상기 스케줄러(211)는 상기 어플리케이션이 지원하는 서비스가 지정된 시간 내에 결과를 도출해내야 하는 서비스인 경우, 상기 어플리케이션의 우선 순위를 높게 설정할 수 있고, 상기 어플리케이션에 대응하는 세션에 대한 실행 스코어도 높게 산출될 수 있다. 예를 들어, 상기 스케줄러(211)는 상기 어플리케이션이 지원하는 서비스가 접근 서비스(예: 카 액세스(car access) 서비스)인 경우, 상기 어플리케이션의 우선 순위를 높게 설정하여 상기 어플리케이션에 대응하는 세션에 대한 실행 스코어를 높게 산출할 수 있다.According to an embodiment, the scheduler 211 may calculate an execution score for the session based on the priority of the application corresponding to the session. Here, the application may be an application that supports a service using ultra-wideband communication to an external electronic device that is a communication target through the session. The priority of the application may be set based on at least one of an execution state of the application and a type of service supported by the application (eg, an access service, a content sharing service, or a device search service). At the time of calculating the execution score, the scheduler 211 may set the priority of the application differently depending on whether the application is being executed in the foreground or background state. . For example, when the application is executed in the foreground state than when the application is executed in the background state, the scheduler 211 may set the priority of the application to be higher, and calculate a high execution score for the session corresponding to the application. can be The scheduler 211 may set the priority of the application to be high when the service supported by the application is a service for which a result must be derived within a specified time, and the execution score for the session corresponding to the application may be calculated as high. can For example, when the service supported by the application is an access service (eg, a car access service), the scheduler 211 sets the priority of the application to be high for a session corresponding to the application. A high execution score can be calculated.
일 실시예에 따르면, 상기 스케줄러(211)는 세션에 대한 전자 장치(200)의 역할에 기반하여, 상기 세션에 대한 실행 스코어를 산출할 수 있다. 상기 세션에 대한 전자 장치(200)의 역할은 전자 장치(200)가 상기 세션을 통한 통신 대상이 되는 외부 전자 장치를 제어하는 장치인지 또는 상기 외부 전자 장치로부터 제어되는 장치인지에 대한 여부, 및/또는 전자 장치(200)가 상기 외부 전자 장치를 제어하는 장치인 경우에 전자 장치(200)가 제어하고 있는 외부 전자 장치의 수 중 적어도 하나에 기반하여 설정될 수 있다. 일 예로, 상기 스케줄러(211)는 전자 장치(200)가 상기 외부 전자 장치로부터 제어되는 장치인 경우보다 상기 외부 전자 장치를 제어하는 장치일 때, 상기 실행 스코어를 높게 산출할 수 있다. 다른 예로, 상기 스케줄러(211)는 전자 장치(200)가 상기 외부 전자 장치를 제어하는 장치인 경우, 전자 장치(200)에 의해 제어되는 외부 전자 장치의 수가 많을수록 상기 실행 스코어를 높게 산출할 수 있다.According to an embodiment, the scheduler 211 may calculate an execution score for the session based on the role of the electronic device 200 for the session. The role of the electronic device 200 for the session is whether the electronic device 200 is a device that controls an external electronic device that is a communication target through the session or a device controlled by the external electronic device, and/ Alternatively, when the electronic device 200 is a device for controlling the external electronic device, it may be set based on at least one of the number of external electronic devices controlled by the electronic device 200 . For example, the scheduler 211 may calculate the execution score to be higher when the electronic device 200 is a device controlling the external electronic device than when the electronic device 200 is a device controlled by the external electronic device. As another example, when the electronic device 200 is a device that controls the external electronic device, the scheduler 211 may calculate the execution score to be higher as the number of external electronic devices controlled by the electronic device 200 increases. .
일 실시예에 따르면, 상기 스케줄러(211)는 세션의 레인징 라운드의 지속 기간에 기반하여, 상기 세션에 대한 실행 스코어를 산출할 수 있다. 상기 세션의 레인징 라운드의 지속 기간은 도 3a에서 설명하는 레인징 라운드(300)의 지속 시간(또는 수행 시간)에 의해 산출될 수 있다. 일 예로, 상기 스케줄러(211)는 상기 레인징 라운드(300)의 지속 기간(또는 수행 시간)이 짧을수록 상기 실행 스코어를 높게 산출할 수 있다. 즉, 상기 스케줄러(211)는 상기 세션을 통한 외부 전자 장치의 측위 시간이 짧을수록 상기 실행 스코어를 높게 산출할 수 있다.According to an embodiment, the scheduler 211 may calculate an execution score for the session based on the duration of a ranging round of the session. The duration of the ranging round of the session may be calculated by the duration (or execution time) of the ranging round 300 described with reference to FIG. 3A . For example, the scheduler 211 may calculate the execution score to be higher as the duration (or execution time) of the ranging round 300 is shorter. That is, the scheduler 211 may calculate the execution score to be higher as the positioning time of the external electronic device through the session is shorter.
일 실시예에 따르면, 상기 스케줄러(211)는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수에 기반하여, 상기 세션에 대한 실행 스코어를 산출할 수 있다. 상기 세션에 대한 스케줄링되지 못한 레인징 라운드는 수행되지 못한 레인징 라운드를 나타낼 수 있다. 예컨대, 복수의 세션들이 스케줄링에 의해 수행되는 과정에서, 특정 세션의 실행 스코어가 낮아 상기 특정 세션의 레인징 라운드의 실행 순서가 늦춰질 때, 상기 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수는 증가할 수 있다. 즉, 상기 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수는, 스케줄링에 의해 어느 하나의 세션이 수행된 후 다른 하나의 세션의 수행을 결정할 때, 상기 특정 세션의 수행이 결정되지 못할 때 증가될 수 있다. 예를 들어, 레인징 주기가 100ms인 경우 상기 특정 세션이 100ms 동안 스케쥴링 되지 못하는 경우 스케줄링되지 못한 레인징 라운드의 수는 증가할 수 있다. 상기 스케줄러(211)는 상기 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 많을수록 상기 세션에 대한 실행 스코어를 높게 산출할 수 있다.According to an embodiment, the scheduler 211 may calculate an execution score for the session based on the number of unscheduled ranging rounds for the session. An unscheduled ranging round for the session may indicate an unscheduled ranging round. For example, in a process in which a plurality of sessions are performed by scheduling, when the execution order of the ranging rounds of the specific session is delayed because the execution score of the specific session is low, the number of unscheduled ranging rounds for the specific session increases can do. That is, the number of unscheduled ranging rounds for the specific session may be increased when performance of another session is determined after one session is performed by scheduling, or when performance of the specific session cannot be determined. can For example, when the ranging period is 100 ms and the specific session is not scheduled for 100 ms, the number of unscheduled ranging rounds may increase. The scheduler 211 may calculate a higher execution score for the session as the number of unscheduled ranging rounds for the session increases.
일 실시예에 따르면, 상기 스케줄러(211)는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치에 기반하여, 상기 세션에 대한 실행 스코어를 산출할 수 있다. 상기 가중치는 스케줄링에 의해 수행되지 못하는 세션의 레인징 라운드가 수행될 수 있는 확률을 높이는 역할을 할 수 있다. 즉, 특정 세션에 대한 실행 스코어가 낮아 상기 특정 세션의 레인징 라운드의 실행 순서가 늦춰질 때, 상기 스케줄러(211)는 상기 특정 세션의 레인징 라운드의 실행을 보장하기 위해, 상기 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수에 가중치를 부여하여, 상기 특정 세션에 대한 실행 스코어를 높일 수 있다. 이에 따라, 상기 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 증가할수록 상기 가중치에 의해 상기 특정 세션에 대한 실행 스코어의 증가 폭이 증가되기 때문에, 상기 특정 세션의 레인징 라운드가 실행될 확률이 높아질 수 있다.According to an embodiment, the scheduler 211 may calculate an execution score for the session based on a weight given to the number of unscheduled ranging rounds for the session. The weight may serve to increase the probability that a ranging round of a session that cannot be performed by scheduling can be performed. That is, when the execution order of the ranging round of the specific session is delayed because the execution score for the specific session is low, the scheduler 211 performs scheduling for the specific session in order to guarantee the execution of the ranging round of the specific session. By giving weight to the number of ranging rounds that have not been reached, the execution score for the specific session may be increased. Accordingly, as the number of unscheduled ranging rounds for the specific session increases, the increase in the execution score for the specific session increases by the weight, so that the probability that the ranging round of the specific session will be executed may increase. have.
상기 가중치를 적용하는 방식은 정적 방식 또는 동적 방식을 포함할 수 있다. 상기 정적 방식에서, 상기 스케줄러(211)는 상기 가중치를 지정된 값으로 설정할 수 있다. 예를 들어, 상기 정적 방식에서, 상기 스케줄러(211)는 복수의 세션들 각각에 대해 서로 동일한 가중치를 적용할 수 있다. 다른 예를 들어, 상기 동적 방식에서, 상기 스케줄러(211)는 상기 가중치를 지정된 조건에 따라 다르게 설정할 수 있다. 일 실시예에 따르면, 상기 동적 방식에서, 상기 스케줄러(211)는 복수의 세션들 각각에 대한 실행 스코어, 상기 복수의 세션들에 대한 잔여 실행 횟수, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 및/또는 상기 복수의 세션들 각각에 대한 지정된 시간 초과(timeout)에 의한 레인징 실패의 수 중 적어도 하나에 기반하여, 상기 가중치를 설정할 수 있다. 즉, 상기 동적 방식에서, 상기 스케줄러(211)는 복수의 세션들 각각에 대해 서로 다른 가중치를 적용할 수 있다. 일 예로, 상기 스케줄러(211)는 특정 세션에 대한 실행 스코어가 낮을수록, 상기 특정 세션에 대한 잔여 실행 횟수가 적을수록, 상기 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 많을수록, 상기 특정 세션에 대한 지정된 시간 초과에 의한 레인징 실패의 수가 많을수록, 상기 특정 세션에 적용되는 가중치를 높게 설정할 수 있다. The method of applying the weight may include a static method or a dynamic method. In the static method, the scheduler 211 may set the weight to a specified value. For example, in the static method, the scheduler 211 may apply the same weight to each of a plurality of sessions. For another example, in the dynamic scheme, the scheduler 211 may set the weight differently according to a specified condition. According to an embodiment, in the dynamic manner, the scheduler 211 may configure an execution score for each of a plurality of sessions, a remaining number of executions for the plurality of sessions, and an unscheduled lane for each of the plurality of sessions. The weight may be set based on at least one of the number of zing rounds and/or the number of ranging failures due to a specified timeout for each of the plurality of sessions. That is, in the dynamic scheme, the scheduler 211 may apply different weights to each of a plurality of sessions. As an example, the scheduler 211 determines that the execution score for the specific session is lower, the number of remaining executions for the specific session is smaller, and the number of unscheduled ranging rounds for the specific session is higher, the higher the number of unscheduled ranging rounds for the specific session. As the number of ranging failures due to exceeding the specified time for the sequencing is increased, the weight applied to the specific session may be set higher.
일 실시예에 따르면, 상기 스케줄러(211)는 상기 복수의 세션들 각각에 대한 실행 스코어를 기반으로, 상기 복수의 세션들에 대한 스케줄링을 수행할 수 있다. 일 실시예에 따르면, 상기 스케줄러(211)는 상기 복수의 세션들에 대한 스케줄링을 수행하는 것 외에, 상기 복수의 세션들 각각에 대한 실행 스코어를 산출할 수도 있고, 산출된 실행 스코어를 변경할 수도 있다.According to an embodiment, the scheduler 211 may perform scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions. According to an embodiment, the scheduler 211 may calculate an execution score for each of the plurality of sessions or change the calculated execution score in addition to scheduling the plurality of sessions. .
일 실시예에 따르면, 상기 스케줄러(211)는 실행 스코어가 높은 세션이 우선적으로 실행되도록 제어할 수 있다. 예컨대, 상기 스케줄러(211)는 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행할 수 있다. 또한, 상기 스케줄러(211)는 스케줄링에 의해 세션이 실행되면, 상기 실행된 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 초기 값(예: 제로(0))으로 설정하여, 상기 실행된 세션에 대한 실행 스코어를 감소시킬 수 있다. 아울러, 상기 스케줄러(211)는 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 증가시켜, 상기 낮은 실행 스코어를 가지는 세션에 대한 실행 스코어를 증가시킬 수 있다. 이에 따라, 실행 스코어가 낮아 실행되지 못한 세션에 대한 실행 확률이 높아질 수 있다.According to an embodiment, the scheduler 211 may control a session having a high execution score to be executed preferentially. For example, when at least two sessions among a plurality of sessions collide, the scheduler 211 may perform scheduling such that a session having a high execution score among the at least two sessions is preferentially executed. Also, when a session is executed by scheduling, the scheduler 211 sets the number of unscheduled ranging rounds for the executed session to an initial value (eg, zero (0)), may reduce the performance score for In addition, the scheduler 211 may increase the number of unscheduled ranging rounds for the session with the low execution score among the at least two sessions, thereby increasing the execution score for the session with the low execution score. have. Accordingly, the execution probability for a session that has not been executed due to a low execution score may increase.
일 실시예에 따르면, 상기 스케줄러(211)는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 지정된 시간 초과에 의한 레인징 실패의 수보다 크면, 상기 세션을 종료할 수 있다. 예를 들어, 상기 스케줄러(211)는 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 증가시켰을 때, 증가된 값이 지정된 시간 초과에 의한 레인징 실패의 수보다 크면, 상기 낮은 실행 스코어를 가지는 세션을 종료할 수 있다. 또한, 상기 스케줄러(211)는 종료된 세션에 대한 상태를 상기 프로세서(230)로 전달할 수 있다.According to an embodiment, if the number of unscheduled ranging rounds for the session is greater than the number of ranging failures due to a specified timeout, the scheduler 211 may terminate the session. For example, when the scheduler 211 increases the number of unscheduled ranging rounds for a session having a low execution score among the at least two sessions, the increased value is a ranging failure due to a specified timeout. If it is greater than the number of , the session with the low execution score may be terminated. In addition, the scheduler 211 may transmit the state of the terminated session to the processor 230 .
일 실시예에 따르면, 상기 스케줄러(211)는 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에서의 경쟁 구간(contention period) 또는 레인징 라운드의 지속 기간 중 적어도 하나를 감소시킬 수 있다. 상기 스케줄러(211)는 낮은 실행 스코어를 가지는 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간을 감소시킴으로써, 상기 낮은 실행 스코어를 가지는 세션의 실행 확률을 높일 수 있다. 일 실시예에 따르면, 상기 스케줄러(211)는 상기 낮은 실행 스코어를 가지는 세션이 컨텐츠 공유(예: 퀵 쉐어(quick share)) 서비스를 제공하는 어플리케이션에 대응되는 세션일 때, 상기 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간을 감소시킬 수 있다.According to an embodiment, when at least two sessions among a plurality of sessions collide, the scheduler 211 is configured to perform a contention period or ranging in a session having a lower execution score among the at least two sessions. At least one of the duration of the round may be reduced. The scheduler 211 may increase the execution probability of the session having the low execution score by reducing the duration of the contention period or the ranging round in the session having the low execution score. According to an embodiment, when the session having the low execution score is a session corresponding to an application that provides a content sharing (eg, quick share) service, the scheduler 211 determines a contention period in the session. Alternatively, the duration of the ranging round may be reduced.
상기 프로세서(230)는 전자 장치(200)의 적어도 하나의 다른 구성요소를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 상기 프로세서(230)는 상기 통신 모듈(210) 또는 상기 스케줄러(211)의 동작들을 제어하기 위한 명령어를 실행할 수 있다. 어떤 실시예에서, 상기 프로세서(230)는 상기 통신 모듈(210) 또는 상기 스케줄러(211)의 동작들 중 적어도 하나의 동작을 수행할 수도 있다. 예를 들어, 상기 프로세서(230)는 복수의 세션들 각각에 대한 실행 스코어를 산출할 수 있다. 이때, 상기 프로세서(230)는 산출된 복수의 세션들 각각에 대한 실행 스코어를 상기 스케줄러(211)로 전달할 수 있다.The processor 230 may control at least one other component of the electronic device 200 and may perform various data processing or operations. According to an embodiment, the processor 230 may execute a command for controlling operations of the communication module 210 or the scheduler 211 . In some embodiments, the processor 230 may perform at least one of the operations of the communication module 210 and the scheduler 211 . For example, the processor 230 may calculate an execution score for each of the plurality of sessions. In this case, the processor 230 may transmit the calculated execution score for each of the plurality of sessions to the scheduler 211 .
상기 메모리(250)는 전자 장치(200)의 적어도 하나의 구성요소에 의해 사용되는 다양한 데이터를 저장할 수 있다. 일 실시예에 따르면, 상기 메모리(250)는 상기 통신 모듈(210)을 이용한 서비스를 지원하는 어플리케이션을 저장할 수 있다. 일 실시예에 따르면, 상기 메모리(250)는 상기 프로세서(230)에 의해 실행되는 프로세스 또는 응용 프로그램에 의해 사용되는 데이터 또는 명령어를 저장할 수 있다.The memory 250 may store various data used by at least one component of the electronic device 200 . According to an embodiment, the memory 250 may store an application supporting a service using the communication module 210 . According to an embodiment, the memory 250 may store data or instructions used by a process executed by the processor 230 or an application program.
일 실시예에 따르면, 상기 스케줄러(211)는 상기 메모리(250) 내에 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 전자 장치(200)의 프로세서(230)는, 상기 메모리(250)로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다.According to an embodiment, the scheduler 211 may be implemented as software (eg, the program 140 ) in the memory 250 . For example, the processor 230 of the electronic device 200 may call at least one command among one or more commands stored from the memory 250 and execute it.
상술한 바와 같이, 다양한 실시예에 따르면, 전자 장치(예: 도 2의 전자 장치(200))는, 초광대역 통신을 지원하는 통신 모듈(예: 도 2의 통신 모듈(210)), 상기 초광대역 통신을 이용한 서비스를 지원하는 어플리케이션을 저장하는 메모리(예: 도 2의 메모리(250)), 상기 통신 모듈 및 상기 메모리와 작동적으로 연결된 프로세서(예: 도 2의 프로세서(230)), 및 상기 프로세서와 작동적으로 연결된 스케줄러(예: 도 2의 스케줄러(211))를 포함하고, 상기 스케줄러는, 복수의 외부 전자 장치들과 통신하기 위한 복수의 세션들을 설정하고, 상기 복수의 세션들 각각에 대한 실행 스코어를 산출하고, 상기 복수의 세션들 각각에 대한 실행 스코어를 기반으로, 상기 복수의 세션들에 대한 스케줄링을 수행하도록 설정되고, 상기 복수의 세션들 각각에 대한 실행 스코어는, 상기 복수의 세션들 각각에 대응하는 어플리케이션의 우선 순위, 상기 복수의 세션들 각각에 대한 상기 전자 장치의 역할, 상기 복수의 세션들 각각의 레인징 라운드의 지속 기간, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 또는 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여 산출될 수 있다.As described above, according to various embodiments, the electronic device (eg, the electronic device 200 of FIG. 2 ) includes a communication module (eg, the communication module 210 of FIG. 2 ) supporting ultra-wideband communication, the second A memory for storing an application supporting a service using broadband communication (eg, the memory 250 of FIG. 2 ), a processor operatively connected to the communication module and the memory (eg, the processor 230 of FIG. 2 ), and a scheduler (eg, the scheduler 211 of FIG. 2 ) operatively connected to the processor, wherein the scheduler establishes a plurality of sessions for communicating with a plurality of external electronic devices, and each of the plurality of sessions calculate an execution score for , and perform scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions, wherein the execution score for each of the plurality of sessions includes: Priority of an application corresponding to each of the sessions of , the role of the electronic device for each of the plurality of sessions, the duration of a ranging round of each of the plurality of sessions It may be calculated based on at least one of the number of unscheduled ranging rounds and a weight given to the number of unscheduled ranging rounds.
다양한 실시예에 따르면, 상기 스케줄러는, 상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행하도록 설정될 수 있다.According to various embodiments, the scheduler may be configured to perform scheduling such that, when at least two sessions among the plurality of sessions collide, a session having a high execution score among the at least two sessions is preferentially executed. have.
다양한 실시예에 따르면, 상기 스케줄러는, 상기 높은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 초기 값으로 설정하고, 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 증가시키도록 설정될 수 있다.According to various embodiments, the scheduler sets the number of unscheduled ranging rounds for the session having the high execution score to an initial value, and schedules the session having the low execution score among the at least two sessions. It may be set to increase the number of failed ranging rounds.
다양한 실시예에 따르면, 상기 스케줄러는, 상기 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 지정된 시간 초과에 의한 레인징 실패의 수보다 크면, 상기 낮은 실행 스코어를 가지는 세션을 종료하고, 상기 프로세서로 상기 낮은 실행 스코어를 가지는 세션에 대한 상태를 전달하도록 설정될 수 있다.According to various embodiments, the scheduler is configured to, if the number of unscheduled ranging rounds for the session with the low execution score is greater than the number of ranging failures due to a specified timeout, terminate the session with the low execution score; , to communicate the state for the session with the low execution score to the processor.
다양한 실시예에 따르면, 상기 가중치는 지정된 값으로 설정될 수 있다.According to various embodiments, the weight may be set to a specified value.
다양한 실시예에 따르면, 상기 가중치는 상기 복수의 세션들 각각에 대한 실행 스코어, 상기 복수의 세션들에 대한 잔여 실행 횟수, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 및 상기 복수의 세션들 각각에 대한 지정된 시간 초과에 의한 레인징 실패의 수 중 적어도 하나에 기반하여 설정될 수 있다.According to various embodiments, the weight includes an execution score for each of the plurality of sessions, a remaining number of executions for the plurality of sessions, a number of unscheduled ranging rounds for each of the plurality of sessions, and the It may be set based on at least one of the number of ranging failures due to a specified timeout for each of the plurality of sessions.
다양한 실시예에 따르면, 상기 어플리케이션의 우선 순위는 상기 어플리케이션의 실행 상태 및 상기 어플리케이션이 지원하는 서비스의 종류 중 적어도 하나에 기반하여 설정될 수 있다.According to various embodiments, the priority of the application may be set based on at least one of an execution state of the application and a type of service supported by the application.
다양한 실시예에 따르면, 상기 전자 장치의 역할은 상기 전자 장치가 통신 대상인 외부 전자 장치를 제어하는 장치인지 또는 상기 외부 전자 장치로부터 제어되는 장치인지에 대한 여부, 및 상기 전자 장치가 상기 외부 전자 장치를 제어하는 장치인 경우에 상기 전자 장치가 제어하고 있는 외부 전자 장치의 수 중 적어도 하나에 기반하여 설정될 수 있다.According to various embodiments, the role of the electronic device determines whether the electronic device is a device for controlling an external electronic device that is a communication target or a device controlled by the external electronic device, and whether the electronic device controls the external electronic device In the case of a controlling device, the setting may be based on at least one of the number of external electronic devices controlled by the electronic device.
다양한 실시예에 따르면, 상기 스케줄러는, 상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간 중 적어도 하나를 감소시키도록 설정될 수 있다.According to various embodiments, when at least two sessions of the plurality of sessions collide, the scheduler may be configured to perform a contention interval or a ranging round duration in a session having a lower execution score among the at least two sessions. It may be set to decrease at least one.
다양한 실시예에 따르면, 상기 스케줄러는 상기 통신 모듈, 상기 프로세서 또는 인공지능 모듈 중 적어도 하나에 포함될 수 있다.According to various embodiments, the scheduler may be included in at least one of the communication module, the processor, and the artificial intelligence module.
도 3a는 본 발명의 일 실시예에 따른 전자 장치와 외부 전자 장치들 간의 레인징 동작을 설명하기 위한 도면이다.3A is a diagram for describing a ranging operation between an electronic device and an external electronic device according to an embodiment of the present invention.
도 3a를 참조하면, 레인징 컨트롤 페이즈(ranging control phase, RCP)(310)에서, 전자 장치(301)(예: 도 2의 전자 장치(200))는 레인징 제어 메시지(ranging control message, RCM)(311)를 적어도 하나 이상의 외부 전자 장치들(예: 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303))에게 전송할 수 있다. 상기 RCM(311)은 레인징 동작(또는 레인징 라운드(ranging round))(300)을 개시하기 위한 신호로서, 정보 요소(information element, IE)를 포함할 수 있다. 예를 들어, 상기 RCM(311)에 포함되는 정보 요소는 레인징 설정 파라미터(ranging configuration parameter)가 포함된 ARC(advanced raging control) IE, 다음 레인징 라운드가 언제 시작되는지를 나타내는 레인징 간격(ranging interval) 정보를 포함하는 RIU(ranging interval update) IE, 및 앵커(anchor)(전자 장치(301)와 통신하는 외부 전자 장치(302 내지 303)) 별로 어느 레인징 슬롯에서 통신할지에 대한 정보를 포함하는 RS(ranging scheduling) IE를 포함할 수 있다. 여기서, 상기 N은 자연수로서, 전자 장치(301)로부터 상기 RCM(311)을 수신하는 외부 전자 장치의 수가 하나 또는 복수 개가 될 수 있다는 것을 의미한다.Referring to FIG. 3A , in a ranging control phase (RCP) 310 , the electronic device 301 (eg, the electronic device 200 of FIG. 2 ) transmits a ranging control message (RCM). ) 311 may be transmitted to at least one or more external electronic devices (eg, the first external electronic device 302 to the N-th external electronic device 303 ). The RCM 311 is a signal for initiating a ranging operation (or ranging round) 300 , and may include an information element (IE). For example, the information element included in the RCM 311 includes an advanced raging control (ARC) IE including a ranging configuration parameter, and a ranging interval indicating when the next ranging round starts. interval) information including information on which ranging slot to communicate in each RIU (ranging interval update) IE, and anchors (external electronic devices 302 to 303 communicating with the electronic device 301) RS (Ranging Scheduling) IE may be included. Here, N is a natural number, meaning that the number of external electronic devices receiving the RCM 311 from the electronic device 301 may be one or a plurality.
제1 폴링 페이즈(polling phase, PP)(320)에서, 전자 장치(301)는 폴 메시지(또는 레인징 폴 프레임(RFRAME(Poll)))(321)를 상기 외부 전자 장치들(302 내지 303)에게 전송할 수 있다. 상기 폴 메시지(321)는 상기 외부 전자 장치들(302 내지 303)에게 레인징 결과를 요구하는 정보를 포함할 수 있다. 예를 들어, 상기 폴 메시지(321)는 상기 외부 전자 장치들(302 내지 303)에게 레인징 결과를 요구하는 양면 양방향 레인징(double-sided two-way ranging, DS-TWR)을 시작한다는 것을 나타내는 RRCDT(ranging report control double-sided two-way ranging) IE를 포함할 수 있다. 예를 들어, 전자 장치(301)는 폴 메시지(또는 레인징 폴 프레임(RFRAME(Poll)))(321)를 브로드캐스트 방식으로 상기 외부 전자 장치들(302 내지 303)에게 전송할 수 있다.In a first polling phase (PP) 320 , the electronic device 301 transmits a poll message (or a ranging poll frame (RFRAME(Poll))) 321 to the external electronic devices 302 to 303 . can be sent to The poll message 321 may include information requesting a ranging result from the external electronic devices 302-303. For example, the poll message 321 indicates that a double-sided two-way ranging (DS-TWR) requesting a ranging result from the external electronic devices 302 to 303 is started. It may include a ranging report control double-sided two-way ranging (RRCDT) IE. For example, the electronic device 301 may transmit a poll message (or a ranging poll frame (RFRAME(Poll))) 321 to the external electronic devices 302 to 303 in a broadcast manner.
레인징 응답 페이즈(ranging response phase, RRP)(330)에서, 상기 폴 메시지(321)를 수신한 외부 전자 장치들(302 내지 303)은, 응답 메시지(또는 레인징 응답 프레임(RFRAME(Response)))(331 내지 332)를 전자 장치(301)로 전송할 수 있다. 예를 들어, 상기 제1 외부 전자 장치(302)는 제1 응답 메시지(331)를 전자 장치(301)로 전송할 수 있고, 상기 제N 외부 전자 장치(303)는 제N 응답 메시지(332)를 전자 장치(301)로 전송할 수 있다. 상기 응답 메시지(331 내지 332)는 상기 외부 전자 장치들(302 내지 303)이 상기 DS-TWR의 두 번째 라운드 트립(round trip)이 시작된다는 의미를 포함하는 RRCDT IE와 전자 장치(301)의 응답 시간(reply time)을 요구하는 RRRT(ranging request reply time) IE를 포함할 수 있다.In a ranging response phase (RRP) 330 , the external electronic devices 302 to 303 that have received the poll message 321 transmit a response message (or a ranging response frame (RFRAME (Response))). ) 331 to 332 may be transmitted to the electronic device 301 . For example, the first external electronic device 302 may transmit a first response message 331 to the electronic device 301 , and the Nth external electronic device 303 may transmit an Nth response message 332 to the electronic device 301 . may be transmitted to the electronic device 301 . The response messages 331 to 332 are a response between the RRCDT IE and the electronic device 301 including that the external electronic devices 302 to 303 start a second round trip of the DS-TWR. It may include a ranging request reply time (RRRT) IE requesting a time (reply time).
제2 폴링 페이즈(PP)(340)에서, 전자 장치(301)는 레인징 종료 메시지(또는 레인징 파이널 프레임(RFRAME(Final)))(341)를 상기 외부 전자 장치들(302 내지 303)에게 전송할 수 있다. 상기 레인징 종료 메시지(341)는 레인징 동작의 종료를 알리기 위한 신호일 수 있다.In a second polling phase (PP) 340 , the electronic device 301 transmits a ranging end message (or a ranging final frame (RFRAME(Final))) 341 to the external electronic devices 302 to 303 . can be transmitted The ranging end message 341 may be a signal for notifying the end of a ranging operation.
측정 보고 페이즈(measurement reporting phase, MRP)(350)에서, 전자 장치(301)는 레인징과 관련된 데이터(또는 데이터 프레임(DATA Frame))(351)를 상기 외부 전자 장치들(302 내지 303)에게 전송할 수 있다. 상기 MRP(350)는 전자 장치(301)와 상기 외부 전자 장치들(302 내지 303) 간에 레인징과 관련된 데이터(351)를 서로 교환하는 구간을 의미할 수 있다. 상기 레인징과 관련된 데이터(351)는 전자 장치(301)의 응답 시간과 관련된 정보를 포함하는 RRTD(ranging reply time deferred) IE 및 라운드 트립과 관련된 정보를 포함하는 RRTM(ranging round trip time measurement) IE를 포함할 수 있다.In a measurement reporting phase (MRP) 350 , the electronic device 301 transmits ranging-related data (or data frame) 351 to the external electronic devices 302 to 303 . can be transmitted The MRP 350 may mean a section for exchanging ranging-related data 351 between the electronic device 301 and the external electronic devices 302 to 303 . The ranging-related data 351 includes a ranging reply time deferred (RRTD) IE including information related to a response time of the electronic device 301 and a ranging round trip time measurement (RRTM) IE including information related to a round trip. may include
일 실시예에 따르면, 상기 외부 전자 장치들(302 내지 303)은 수신된 RRTD IE 및 RRTM IE에 기초하여 레인징 결과를 결정할 수 있다. 또한, 상기 외부 전자 장치들(302 내지 303)은 결정된 레인징 결과를 전자 장치(301)로 전송할 수 있다.According to an embodiment, the external electronic devices 302 to 303 may determine a ranging result based on the received RRTD IE and RRTM IE. Also, the external electronic devices 302 to 303 may transmit the determined ranging result to the electronic device 301 .
레인징 간격 갱신 페이즈(ranging interval update phase, RIUP)(360)에서, 전자 장치(301)는 레인징 간격 갱신 메시지(ranging interval update message)(361)를 상기 외부 전자 장치들(302 내지 303)에게 전송할 수 있다. 예를 들어, 전자 장치(301)가 레인징 간격을 변경하고자 하는 경우, 전자 장치(301)는 레인징 간격 갱신 메시지(361)를 통해 변경하고자 하는 레인징 간격을 나타내는 값을 상기 외부 전자 장치들(302 내지 303)에게 전송할 수 있다.In a ranging interval update phase (RIUP) 360 , the electronic device 301 sends a ranging interval update message 361 to the external electronic devices 302 to 303 . can be transmitted For example, when the electronic device 301 intends to change the ranging interval, the electronic device 301 transmits a value indicating the ranging interval to be changed through the ranging interval update message 361 to the external electronic devices. It can be transmitted to (302 to 303).
일 실시예에 따르면, 상기 RCP(310), 상기 제1 PP(320), 상기 RRP(330), 상기 제2 PP(340) 및 상기 MRP(350)는 하나의 레인징 라운드(300)에 포함될 수 있다. 어떤 실시예에서, 하나의 레인징 라운드(300)에는 상기 RIUP(360)를 더 포함할 수 있다. 또한, 전자 장치(301)와 외부 전자 장치들(302 내지 303) 간에는 복수의 레인징 라운드(300)들이 수행될 수 있다.According to an embodiment, the RCP 310 , the first PP 320 , the RRP 330 , the second PP 340 , and the MRP 350 are included in one ranging round 300 . can In some embodiments, one ranging round 300 may further include the RIUP 360 . Also, a plurality of ranging rounds 300 may be performed between the electronic device 301 and the external electronic devices 302 to 303 .
일 실시예에 따르면, 전자 장치(301)와 통신하는 외부 전자 장치의 개수(상기 N)는 상술한 동작들의 수행 전에 외부 전자 장치로부터 OOB(out of band)(예를 들어, BLE, BT 또는 WiFi)를 통해 수신된 신호에 기반하여 설정될 수 있다.According to an embodiment, the number (N) of external electronic devices communicating with the electronic device 301 is out of band (OOB) (eg, BLE, BT, or WiFi) from the external electronic device before performing the above-described operations. ) can be set based on a signal received through
일 실시예에 따르면, 상술한 동작들에서 전자 장치(301)가 상기 외부 전자 장치들(302 내지 303)에게 전송하는 메시지들(예: 레인징 제어 메시지(311), 폴 메시지(321), 레인징 종료 메시지(341), 데이터 프레임(351) 또는 레인징 간격 갱신 메시지(361))중 적어도 하나는 멀티캐스트 방식으로 전송될 수 있다.According to an embodiment, messages (eg, ranging control message 311 , poll message 321 , and lane) transmitted by the electronic device 301 to the external electronic devices 302 to 303 in the above-described operations At least one of the ring end message 341, the data frame 351, and the ranging interval update message 361) may be transmitted in a multicast manner.
도 3b는 본 발명의 일 실시예에 따른 전자 장치와 외부 전자 장치들 간의 다른 레인징 동작을 설명하기 위한 도면이다.3B is a diagram for explaining another ranging operation between an electronic device and an external electronic device according to an embodiment of the present invention.
도 3b에서의 레인징 동작은 컨텐츠 공유 서비스를 위한 전자 장치(301)와 외부 전자 장치들(예: 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303)) 간의 레인징 동작을 포함할 수 있다. 도 3b에서는 전자 장치(301)와 외부 전자 장치들(예: 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303))이 UWB 통신을 수행하는 동작을 나타낼 수 있다. 도 3b에서는 발명의 이해를 돕기 위하여 첫 번째 폴 메시지를 전송하는 동작 1111에서 제1 폴 메시지를 전송한다고 설명하고 있지만, 동작 1111 이전에 전자 장치(301)는 폴 메시지를 외부 전자 장치들(예: 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303))로 전송하고, 상기 외부 전자 장치들(302 내지 303)는 상기 폴 메시지에 대한 응답 메시지를 전송한 경우를 예로 들어 설명할 수 있다.The ranging operation in FIG. 3B includes a ranging operation between the electronic device 301 for a content sharing service and external electronic devices (eg, the first external electronic device 302 to the N-th external electronic device 303 ). can do. 3B illustrates an operation in which the electronic device 301 and external electronic devices (eg, the first external electronic device 302 to the N-th external electronic device 303) perform UWB communication. In FIG. 3B , it is described that the first poll message is transmitted in operation 1111 of transmitting the first poll message for better understanding of the present invention. However, before operation 1111, the electronic device 301 transmits the poll message to external electronic devices (eg: The first external electronic device 302 to the N-th external electronic device 303), and the external electronic devices 302 to 303 transmit a response message to the poll message as an example. have.
도 3b를 참조하면, 동작 1111에서, 전자 장치(301)(예: 도 2의 전자 장치(200))는 제1 폴 메시지를 전송할 수 있다. 상기 제1 폴 메시지는 전자 장치(301)의 주변에 존재하는 외부 전자 장치(예: 도 1의 전자 장치(102) 내지 전자 장치(104))에 브로드캐스트될 수 있다. 예를 들어, 전자 장치(301)의 주변에 있는 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303)는 상기 제1 폴 메시지를 수신할 수 있다. 동작 1111은 동일한 시간에 제1 폴 메시지를 전송하는 것을 의미하며, 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303)가 상기 제1 폴 메시지를 수신하는 시간(또는 시점)은 전자 장치(301)와 떨어진 거리에 따라 수신하는 시간이 다를 수 있다. 예를 들어, 제1 외부 전자 장치(302)가 상기 제1 폴 메시지를 수신하는 시간과 제N 외부 전자 장치(303)가 상기 제1 폴 메시지를 수신하는 시간은 다를 수 있다.Referring to FIG. 3B , in operation 1111 , the electronic device 301 (eg, the electronic device 200 of FIG. 2 ) may transmit a first poll message. The first poll message may be broadcast to an external electronic device (eg, the electronic device 102 to the electronic device 104 of FIG. 1 ) existing in the vicinity of the electronic device 301 . For example, the first external electronic device 302 to the Nth external electronic device 303 located in the vicinity of the electronic device 301 may receive the first poll message. Operation 1111 means that the first poll message is transmitted at the same time, and the time (or time point) at which the first external electronic device 302 to the N-th external electronic device 303 receives the first poll message is an electronic The reception time may be different depending on the distance away from the device 301 . For example, the time at which the first external electronic device 302 receives the first poll message and the time at which the N-th external electronic device 303 receives the first poll message may be different.
상기 제1 폴 메시지는 제1 프로토콜 타입, 제1 서비스 타입, 제1 프레임 타입, 제1 컨텐션 페이즈 정보(1110)(예: 30ms), 제1 거리 측정 사이클(1170), 제1 전송 오프셋 정보(예: 0xA0), 또는 제1 응답 제어 정보 중 적어도 하나를 포함할 수 있다. 다양한 실시예들에 따르면, 상기 제1 전송 오프셋 정보는 16진수로 표기한 것일 수 있다. 상기 제1 전송 오프셋 정보가 "0xA0"인 경우, 7 비트부터 0 비트까지 2진수로 표기하면 "1010 0000"을 나타낼 수 있다. 전송 오프셋 정보를 참조하면, 제1 수신 오프셋 설정 정보는 1(예: 7 비트의 값)이고, 제1 전송 오프셋 번호(예: 4 비트 내지 0 비트의 값)는 0이고, 제1 전송 오프셋의 개수(예: 6 비트 내지 5 비트의 값)는 5를 나타낼 수 있다. 상기 제1 폴 메시지는 전자 장치(301)에서 보내는 첫번째 메시지이므로, 전자 장치(301)는 슬롯0(예: 50개의 서브 슬롯 중에서 첫번째 서브 슬롯)(예: slot 0)에서 상기 제1 폴 메시지 이전에 전송한 폴 메시지에 포함된 전송 오프셋 번호인 4(예: Tx Offset 4)로 전송할 수도 있다.The first poll message includes a first protocol type, a first service type, a first frame type, first contention phase information 1110 (eg, 30 ms), a first distance measurement cycle 1170, and first transmission offset information (eg, 0xA0) or at least one of the first response control information. According to various embodiments, the first transmission offset information may be expressed in hexadecimal. When the first transmission offset information is “0xA0”, “1010 0000” may be expressed in binary numbers from 7 bits to 0 bits. Referring to the transmission offset information, the first reception offset setting information is 1 (eg, a value of 7 bits), the first transmission offset number (eg, a value of 4 bits to 0 bits) is 0, and the first transmission offset The number (eg, a value of 6 bits to 5 bits) may represent 5. Since the first poll message is a first message sent from the electronic device 301, the electronic device 301 moves before the first poll message in slot 0 (eg, the first subslot among 50 subslots) (eg, slot 0). It can also be transmitted as 4 (eg, Tx Offset 4), which is the transmission offset number included in the poll message transmitted to .
동작 1113에서, 상기 외부 전자 장치들 중 하나인 제1 외부 전자 장치(302)는 제1 응답 메시지를 전송할 수 있다. 제1 외부 전자 장치(302)는 상기 제1 폴 메시지에 포함된 제1 컨텐션 페이즈 정보 또는 상기 제1 폴 메시지 이전에 수신한 전송 오프셋 정보에 기반하여 제1 응답 메시지를 전송할 수 있다. 다양한 실시예들에 따르면, 제1 외부 전자 장치(302)는 상기 제1 폴 메시지 이전에 수신한 전송 오프셋 정보에 기반하여 상기 제1 응답 메시지를 전송할 슬롯 또는 오프셋 번호를 결정할 수 있다. 제1 외부 전자 장치(302)는 상기 제1 폴 메시지 이전에 수신한 전송 오프셋 정보에 기반하여 제1 컨텐션 페이즈 정보의 시간(예: 50개의 슬롯) 중 슬롯15(예: 50개의 서브 슬롯들 16번째 서브 슬롯)(예: slot 15)에서 제1 오프셋 번호(예: Tx Offset 2)로 전송할 수 있다. 제1 외부 전자 장치(302)는 상기 제1 응답 메시지를 전송한 후, 상기 제1 폴 메시지에 포함된 상기 제1 거리 측정 사이클(1170)이 종료될 때까지 상기 UWB 통신에 대하여 슬립 상태로 진입할 수 있다. 예를 들어 슬립 상태는 UWB 통신을 수행하는 통신 모듈(210)의 적어도 일부 기능을 비활성화 하거나 통신 모듈(210)을 저전력 상태로 동작하도록 하는 것을 포함할 수 있다. 제1 외부 전자 장치(302)는 제1 거리 측정 사이클(1170)이 종료되면, 제2 폴 메시지를 수신하기 위하여 UWB 통신을 활성화할 수 있다.In operation 1113, the first external electronic device 302, which is one of the external electronic devices, may transmit a first response message. The first external electronic device 302 may transmit a first response message based on first contention phase information included in the first poll message or transmission offset information received before the first poll message. According to various embodiments, the first external electronic device 302 may determine a slot or an offset number to transmit the first response message based on transmission offset information received before the first poll message. Based on the transmission offset information received before the first poll message, the first external electronic device 302 performs slot 15 (eg, 50 sub-slots) during the time (eg, 50 slots) of the first contention phase information. In the 16th subslot) (eg, slot 15), transmission may be performed with a first offset number (eg, Tx Offset 2). After transmitting the first response message, the first external electronic device 302 enters a sleep state with respect to the UWB communication until the first distance measurement cycle 1170 included in the first poll message ends. can do. For example, the sleep state may include deactivating at least some functions of the communication module 210 performing UWB communication or operating the communication module 210 in a low power state. When the first distance measurement cycle 1170 ends, the first external electronic device 302 may activate UWB communication to receive the second poll message.
동작 1114에서, 상기 외부 전자 장치들 중 다른 적어도 하나인 제N 외부 전자 장치(303)는 제1 응답 메시지를 전송할 수 있다. 제N 외부 전자 장치(303)는 상기 제1 폴 메시지에 포함된 제1 컨텐션 페이즈 정보 또는 상기 제1 폴 메시지 이전에 수신한 전송 오프셋 정보에 기반하여 제1 응답 메시지를 전송할 수 있다. 다양한 실시예들에 따르면, 제N 외부 전자 장치(303)는 상기 제1 폴 메시지 이전에 수신한 전송 오프셋 정보에 기반하여 상기 제1 응답 메시지를 전송할 슬롯 또는 오프셋 번호를 결정할 수 있다. 제N 외부 전자 장치(303)는 상기 제1 폴 메시지 이전에 수신한 전송 오프셋 정보에 기반하여 제1 컨텐션 페이즈 정보의 시간(예: 50개의 슬롯) 중 슬롯17(예: 50개의 서브 슬롯들 18번째 서브 슬롯)(예: slot 17)에서 제1 오프셋 번호(예: Tx Offset 3)로 전송할 수 있다. 제N 외부 전자 장치(303)는 상기 제1 응답 메시지를 전송한 후, 상기 제1 폴 메시지에 포함된 상기 제1 거리 측정 사이클(1170)이 종료될 때까지 상기 UWB 통신에 대하여 슬립 상태로 진입할 수 있다. 제N 외부 전자 장치(303)는 제1 거리 측정 사이클(1170)이 종료되면, 제2 폴 메시지를 수신하기 위하여 UWB 통신을 활성화할 수 있다.In operation 1114 , at least one other of the external electronic devices, the N-th external electronic device 303 may transmit a first response message. The N-th external electronic device 303 may transmit a first response message based on first contention phase information included in the first poll message or transmission offset information received before the first poll message. According to various embodiments, the N-th external electronic device 303 may determine a slot or an offset number to transmit the first response message based on transmission offset information received before the first poll message. The N-th external electronic device 303 performs slot 17 (eg, 50 sub-slots) during the time (eg, 50 slots) of the first contention phase information based on the transmission offset information received before the first poll message. 18th subslot) (eg, slot 17) can be transmitted with a first offset number (eg, Tx Offset 3). After transmitting the first response message, the N-th external electronic device 303 enters a sleep state for the UWB communication until the first distance measurement cycle 1170 included in the first poll message ends. can do. When the first distance measurement cycle 1170 ends, the N-th external electronic device 303 may activate UWB communication to receive the second poll message.
다양한 실시예들에 따르면, 전자 장치(301)는 상기 제1 폴 메시지를 전송한 이후, 제1 컨텐션 페이즈 정보(1110)의 시간이 종료되면, 제1 거리 측정 사이클(1170)의 남은 시간(1171) 동안 UWB 통신에 대하여 슬립 모드에 진입할 수 있다. 전자 장치(301)는 제1 컨텐션 페이즈 정보(1110)의 시간 동안 수신되는 응답 메시지에 기반하여 응답 메시지를 전송한 외부 전자 장치와의 거리를 측정하고, AOA(angle of arrival) 정보를 계산할 수 있다. 전자 장치(301)는 제1 거리 측정 사이클(1170)의 남은 시간(1171)이 종료되면, UWB 통신을 활성화하여 제2 폴 메시지를 전송할 수 있다. 일 실시예에 따르면, 전자 장치(301)는 상기 슬립 모드에 진입하기 전 또는 UWB 통신을 활성화 이후, 응답 메시지에 기반하여 제2 컨텐션 페이즈 정보 또는 제2 전송 오프셋 정보를 결정할 수 있다. 전자 장치(301)의 프로세서는 상기 응답 메시지를 전송한 외부 전자 장치의 개수에 따라 컨텐션 페이즈의 시간을 동적으로 조절할 수 있다. 전자 장치(301)는 상기 응답 메시지 또는 제2 폴 메시지에 기반하여 제2 전송 오프셋 정보를 결정할 수 있다. 예를 들어, 상기 프로세서는 제2 폴 메시지에 포함되는 페이로드의 길이에 기반하여 전송 오프셋 개수를 결정하고, 제2 전송 오프셋 정보의 특정 비트 값을 0 또는 1로 설정하며, 제2 전송 오프셋 번호를 결정할 수 있다.According to various embodiments, when the time of the first contention phase information 1110 expires after the electronic device 301 transmits the first poll message, the remaining time ( 1171), it can enter the sleep mode for UWB communication. The electronic device 301 may measure the distance to the external electronic device that has transmitted the response message based on the response message received during the time of the first contention phase information 1110 and calculate angle of arrival (AOA) information. have. When the remaining time 1171 of the first distance measurement cycle 1170 ends, the electronic device 301 may transmit a second poll message by activating UWB communication. According to an embodiment, before entering the sleep mode or after activating UWB communication, the electronic device 301 may determine second contention phase information or second transmission offset information based on a response message. The processor of the electronic device 301 may dynamically adjust the time of the contention phase according to the number of external electronic devices that have transmitted the response message. The electronic device 301 may determine the second transmission offset information based on the response message or the second poll message. For example, the processor determines the number of transmission offsets based on the length of the payload included in the second poll message, sets a specific bit value of the second transmission offset information to 0 or 1, and sets the second transmission offset number can be decided
동작 1131에서, 전자 장치(301)는 제2 폴 메시지를 전송할 수 있다. 예를 들어, 외부 전자 장치들(예: 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303))은 상기 제2 폴 메시지를 수신할 수 있다. 상기 외부 전자 장치들이 상기 제2 폴 메시지를 수신하는 시간은, 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303)가 전자 장치(301)와 떨어진 거리에 따라 수신하는 시간이 다를 수 있다.In operation 1131 , the electronic device 301 may transmit a second poll message. For example, external electronic devices (eg, the first external electronic device 302 to the N-th external electronic device 303 ) may receive the second poll message. The time at which the external electronic devices receive the second poll message may differ depending on the distance between the first external electronic device 302 to the N-th external electronic device 303 and the distance from the electronic device 301 . have.
상기 제2 폴 메시지는 제2 프로토콜 타입, 제2 서비스 타입, 제2 프레임 타입, 제2 컨텐션 페이즈 정보(1130)(예: 30ms), 제2 거리 측정 사이클(1180), 제2 전송 오프셋 정보(예: 0xA2), 또는 제2 응답 제어 정보 중 적어도 하나를 포함할 수 있다. 다양한 실시예들에 따르면, 상기 제2 전송 오프셋 정보가 "0xA2"인 경우, 7 비트부터 0 비트까지 2진수로 표기하면 "1010 0010"을 나타낼 수 있다. 전송 오프셋 정보를 참조하면, 제2 수신 오프셋 설정 정보(예: 7 비트의 값)는 1이고, 제2 전송 오프셋 번호(예: 4 비트 내지 0 비트의 값)는 2이고, 제2 전송 오프셋의 개수(예: 6 비트 내지 5 비트의 값)는 5를 나타낼 수 있다. 상기 제2 폴 메시지는 제2 거리 측정 사이클(1180) 동안 전자 장치(301)에서 보내는 메시지이므로, 전자 장치(301)는 슬롯0(예: 50개의 서브 슬롯 중에서 첫번째 서브 슬롯)(예: slot 0)에서 상기 제1 폴 메시지에 포함된 제1 전송 오프셋 번호인 0(예: Tx Offset 0)으로 전송할 수 있다.The second poll message includes a second protocol type, a second service type, a second frame type, a second contention phase information 1130 (eg, 30 ms), a second distance measurement cycle 1180, and a second transmission offset information. (eg, 0xA2) or at least one of second response control information. According to various embodiments, when the second transmission offset information is “0xA2”, “1010 0010” may be expressed in binary numbers from 7 bits to 0 bits. Referring to the transmission offset information, the second reception offset setting information (eg, a value of 7 bits) is 1, the second transmission offset number (eg, a value of 4 bits to 0 bits) is 2, and the second transmission offset The number (eg, a value of 6 bits to 5 bits) may represent 5. Since the second poll message is a message sent from the electronic device 301 during the second distance measurement cycle 1180, the electronic device 301 receives slot 0 (eg, the first sub-slot among 50 sub-slots) (eg, slot 0). ) to the first transmission offset number 0 (eg, Tx Offset 0) included in the first poll message.
동작 1133에서, 상기 외부 전자 장치들 중 하나인 제1 외부 전자 장치(302)는 제2 응답 메시지를 전송할 수 있다. 제1 외부 전자 장치(302)는 상기 제2 폴 메시지에 포함된 제2 컨텐션 페이즈 정보 또는 상기 제1 폴 메시지에 포함된 제1 전송 오프셋 정보에 기반하여 제2 응답 메시지를 전송할 수 있다. 다양한 실시예들에 따르면, 제1 외부 전자 장치(302)는 상기 제1 폴 메시지에 포함된 제1 전송 오프셋 정보(예: 0xA0)에 기반하여 상기 제2 응답 메시지를 전송할 슬롯 또는 오프셋 번호를 결정할 수 있다. 상기 제1 전송 오프셋 번호의 수신 오프셋 설정 정보가 1이므로, 제1 외부 전자 장치(302)는 제2 컨텐션 페이즈 정보의 시간(예: 50개의 슬롯) 중 슬롯10(예: 50개의 서브 슬롯들 11번째 서브 슬롯)(예: slot 10)에서 제1 오프셋 번호(예: Tx Offset 3)로 전송할 수 있다. 수신 오프셋 설정 정보는 1이므로, 제1 외부 전자 장치(302)는 전자 장치(301)와 다른 오프셋 번호로 전송할 수 있다. 제1 외부 전자 장치(302)는 상기 제2 응답 메시지를 전송한 후, 상기 제2 폴 메시지에 포함된 제2 거리 측정 사이클(1180)이 종료될 때까지 상기 UWB 통신에 대하여 슬립 상태로 진입할 수 있다. 제1 외부 전자 장치(302)는 제2 거리 측정 사이클(1180)이 종료되면, 제3 폴 메시지를 수신하기 위하여 UWB 통신을 활성화할 수 있다.In operation 1133, the first external electronic device 302, which is one of the external electronic devices, may transmit a second response message. The first external electronic device 302 may transmit a second response message based on second contention phase information included in the second poll message or first transmission offset information included in the first poll message. According to various embodiments, the first external electronic device 302 determines a slot or an offset number to transmit the second response message based on first transmission offset information (eg, 0xA0) included in the first poll message. can Since the reception offset setting information of the first transmission offset number is 1, the first external electronic device 302 performs slot 10 (eg, 50 sub-slots) of the time (eg, 50 slots) of the second contention phase information. 11th subslot) (eg, slot 10) can be transmitted with a first offset number (eg, Tx Offset 3). Since the reception offset setting information is 1, the first external electronic device 302 may transmit with an offset number different from that of the electronic device 301 . After transmitting the second response message, the first external electronic device 302 enters a sleep state for the UWB communication until the second distance measurement cycle 1180 included in the second poll message ends. can When the second distance measurement cycle 1180 ends, the first external electronic device 302 may activate UWB communication to receive the third poll message.
동작 1134에서, 상기 외부 전자 장치들 중 적어도 하나인 제N 외부 전자 장치(303)는 제2 응답 메시지를 전송할 수 있다. 제N 외부 전자 장치(303)는 상기 제2 폴 메시지에 포함된 제2 컨텐션 페이즈 정보 또는 상기 제1 폴 메시지에 포함된 제1 전송 오프셋 정보에 기반하여 제2 응답 메시지를 전송할 수 있다. 다양한 실시예들에 따르면, 제N 외부 전자 장치(303)는 상기 제1 폴 메시지에 포함된 제1 전송 오프셋 정보(예: 0xA0)에 기반하여 상기 제2 응답 메시지를 전송할 슬롯 또는 오프셋 번호를 결정할 수 있다. 상기 제1 전송 오프셋 번호의 수신 오프셋 설정 정보가 1이므로, 제N 외부 전자 장치(303)는 제2 컨텐션 페이즈 정보의 시간(예: 50개의 슬롯) 중 슬롯21(예: 50개의 서브 슬롯들 22번째 서브 슬롯)(예: slot 21)에서 제1 오프셋 번호(예: Tx Offset 4)로 전송할 수 있다. 수신 오프셋 설정 정보가 1이므로, 제N 외부 전자 장치(303)는 전자 장치(301)와 다른 오프셋 번호로 전송할 수 있다. 제N 외부 전자 장치(303)는 상기 제2 응답 메시지를 전송한 후, 상기 제2 폴 메시지에 포함된 제2 거리 측정 사이클(1180)이 종료될 때까지 상기 UWB 통신에 대하여 슬립 상태로 진입할 수 있다. 제N 외부 전자 장치(303)는 제2 거리 측정 사이클(1180)이 종료되면, 제2 폴 메시지를 수신하기 위하여 UWB 통신을 활성화할 수 있다.In operation 1134 , the N-th external electronic device 303 , which is at least one of the external electronic devices, may transmit a second response message. The N-th external electronic device 303 may transmit a second response message based on second contention phase information included in the second poll message or first transmission offset information included in the first poll message. According to various embodiments, the N-th external electronic device 303 determines a slot or an offset number to transmit the second response message based on first transmission offset information (eg, 0xA0) included in the first poll message. can Since the reception offset setting information of the first transmission offset number is 1, the N-th external electronic device 303 transmits the second contention phase information in slot 21 (eg, 50 sub-slots) during the time period (eg, 50 slots). 22 th sub-slot) (eg, slot 21) can be transmitted with a first offset number (eg, Tx Offset 4). Since the reception offset setting information is 1, the N-th external electronic device 303 may transmit with an offset number different from that of the electronic device 301 . After transmitting the second response message, the N-th external electronic device 303 may enter a sleep state for the UWB communication until the second distance measurement cycle 1180 included in the second poll message ends. can When the second distance measurement cycle 1180 ends, the N-th external electronic device 303 may activate UWB communication to receive the second poll message.
다양한 실시예들에 따르면, 전자 장치(301)는 상기 제2 폴 메시지를 전송한 이후, 제2 컨텐션 페이즈 정보(1130)의 시간이 종료되면, 제2 거리 측정 사이클(1180)의 남은 시간(1181) 동안 UWB 통신에 대하여 슬립 모드에 진입할 수 있다. 전자 장치(301)는 제2 컨텐션 페이즈 정보(1130)의 시간 동안 수신되는 응답 메시지에 기반하여 외부 전자 장치와의 거리를 측정하고, AOA 정보를 계산할 수 있다. 전자 장치(301)는 제2 거리 측정 사이클(1180)의 남은 시간(1181)이 종료되면, UWB 통신을 활성화하여 제3 폴 메시지를 전송할 수 있다. 전자 장치(301)는 상기 슬립 모드에 진입하기 전 또는 UWB 통신을 활성화 이후, 응답 메시지에 기반하여 제3 컨텐션 페이즈 정보 또는 제3 전송 오프셋 정보를 결정할 수 있다.According to various embodiments, when the time of the second contention phase information 1130 expires after the electronic device 301 transmits the second poll message, the remaining time ( 1181), it may enter a sleep mode for UWB communication. The electronic device 301 may measure the distance to the external electronic device based on the response message received during the time of the second contention phase information 1130 and calculate the AOA information. When the remaining time 1181 of the second distance measurement cycle 1180 ends, the electronic device 301 may transmit a third poll message by activating UWB communication. The electronic device 301 may determine third contention phase information or third transmission offset information based on a response message before entering the sleep mode or after activating UWB communication.
동작 1151에서, 전자 장치(301)는 제3 폴 메시지를 전송할 수 있다. 예를 들어, 외부 전자 장치들(예: 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303))는 상기 제3 폴 메시지를 수신할 수 있다. 동작 1151은 동일한 시간에 제3 폴 메시지를 전송하는 것을 의미하며, 제1 외부 전자 장치(302) 내지 제N 외부 전자 장치(303)가 전자 장치(301)와 떨어진 거리에 따라 수신하는 시간이 다를 수 있다.In operation 1151, the electronic device 301 may transmit a third poll message. For example, external electronic devices (eg, the first external electronic device 302 to the N-th external electronic device 303 ) may receive the third poll message. Operation 1151 means that the third poll message is transmitted at the same time, and the reception time of the first external electronic device 302 to the Nth external electronic device 303 varies depending on the distance from the electronic device 301 . can
상기 제3 폴 메시지는 제3 프로토콜 타입, 제3 서비스 타입, 제3 프레임 타입, 제3 컨텐션 페이즈 정보(1150)(예: 30ms), 제3 거리 측정 사이클(1190), 제3 전송 오프셋 정보(예: 0xA3), 또는 제3 응답 제어 정보 중 적어도 하나를 포함할 수 있다. 다양한 실시예들에 따르면, 상기 제3 전송 오프셋 정보가 "0xA3"인 경우, 7 비트부터 0 비트까지 2진수로 표기하면 "1010 0011"을 나타낼 수 있다. 전송 오프셋 정보를 참조하면, 제3 수신 오프셋 설정 정보(예: 7 비트의 값)는 1이고, 제3 전송 오프셋 번호(예: 4 비트 내지 0 비트의 값)는 3이고, 제3 전송 오프셋의 개수(예: 6 비트 내지 5 비트의 값)는 5를 나타낼 수 있다. 상기 제3 폴 메시지는 제3 거리 측정 사이클(1190) 동안 전자 장치(301)에서 보내는 메시지이므로, 전자 장치(301)는 슬롯0(예: 50개의 서브 슬롯 중에서 첫번째 서브 슬롯)(예: slot 0)에서 상기 제2 폴 메시지에 포함된 제2 전송 오프셋 번호인 2(예: Tx Offset 2)로 전송할 수 있다.The third poll message includes a third protocol type, a third service type, a third frame type, a third contention phase information 1150 (eg, 30 ms), a third distance measurement cycle 1190, and a third transmission offset information. (eg, 0xA3), or at least one of third response control information. According to various embodiments, when the third transmission offset information is “0xA3”, “1010 0011” may be expressed in binary numbers from 7 bits to 0 bits. Referring to the transmission offset information, the third reception offset setting information (eg, a value of 7 bits) is 1, the third transmission offset number (eg, a value of 4 bits to 0 bits) is 3, and the third transmission offset is The number (eg, a value of 6 bits to 5 bits) may represent 5. Since the third poll message is a message sent from the electronic device 301 during the third distance measurement cycle 1190, the electronic device 301 sends slot 0 (eg, the first sub-slot among 50 sub-slots) (eg, slot 0). ) to the second transmission offset number 2 (eg, Tx Offset 2) included in the second poll message.
동작 1153에서, 상기 외부 전자 장치들 중 하나인 제1 외부 전자 장치(302)는 제3 응답 메시지를 전송할 수 있다. 제1 외부 전자 장치(302)는 상기 제3 폴 메시지에 포함된 제3 컨텐션 페이즈 정보 또는 상기 제2 폴 메시지에 포함된 제2 전송 오프셋 정보에 기반하여 제3 응답 메시지를 전송할 수 있다. 다양한 실시예들에 따르면, 제1 외부 전자 장치(302)는 상기 제2 폴 메시지에 포함된 제2 전송 오프셋 정보(예: 0xA2)에 기반하여 상기 제3 응답 메시지를 전송할 슬롯 또는 오프셋 번호를 결정할 수 있다. 상기 제2 전송 오프셋 번호의 수신 오프셋 설정 정보가 1이므로, 제1 외부 전자 장치(302)는 제3 컨텐션 페이즈 정보의 시간(예: 50개의 슬롯) 중 슬롯20(예: 50개의 서브 슬롯들 21번째 서브 슬롯)(예: slot 20)에서 제1 오프셋 번호(예: Tx Offset 3)로 전송할 수 있다. 수신 오프셋 설정 정보는 1이므로, 제1 외부 전자 장치(302)는 전자 장치(301)와 다른 오프셋 번호로 전송할 수 있다. 제1 외부 전자 장치(302)는 상기 제3 응답 메시지를 전송한 후, 상기 제3 폴 메시지에 포함된 상기 제3 거리 측정 사이클(1190)이 종료될 때까지 상기 UWB 통신에 대하여 슬립 상태로 진입할 수 있다. 제1 외부 전자 장치(302)는 제3 거리 측정 사이클(1190)이 종료되면, 제4 폴 메시지를 수신하기 위하여 UWB 통신을 활성화할 수 있다.In operation 1153, the first external electronic device 302, which is one of the external electronic devices, may transmit a third response message. The first external electronic device 302 may transmit a third response message based on third contention phase information included in the third poll message or second transmission offset information included in the second poll message. According to various embodiments, the first external electronic device 302 determines a slot or an offset number to transmit the third response message based on second transmission offset information (eg, 0xA2) included in the second poll message. can Since the reception offset setting information of the second transmission offset number is 1, the first external electronic device 302 performs slot 20 (eg, 50 sub-slots) during the time (eg, 50 slots) of the third contention phase information. In the 21st subslot) (eg, slot 20), transmission may be performed with a first offset number (eg, Tx Offset 3). Since the reception offset setting information is 1, the first external electronic device 302 may transmit with an offset number different from that of the electronic device 301 . After transmitting the third response message, the first external electronic device 302 enters a sleep state for the UWB communication until the third distance measurement cycle 1190 included in the third poll message ends. can do. When the third distance measurement cycle 1190 ends, the first external electronic device 302 may activate UWB communication to receive the fourth poll message.
동작 1154에서, 상기 외부 전자 장치들 중 적어도 하나인 제N 외부 전자 장치(303)는 제3 응답 메시지를 전송할 수 있다. 제N 외부 전자 장치(303)는 상기 제3 폴 메시지에 포함된 제3 컨텐션 페이즈 정보 또는 상기 제2 폴 메시지에 포함된 제2 전송 오프셋 정보에 기반하여 제3 응답 메시지를 전송할 수 있다. 다양한 실시예들에 따르면, 제N 외부 전자 장치(303)는 상기 제2 폴 메시지에 포함된 제2 전송 오프셋 정보(예: 0xA2)에 기반하여 상기 제3 응답 메시지를 전송할 슬롯 또는 오프셋 번호를 결정할 수 있다. 상기 제2 전송 오프셋 번호의 수신 오프셋 설정 정보가 1이므로, 제N 외부 전자 장치(303)는 제3 컨텐션 페이즈 정보의 시간(예: 50개의 슬롯) 중 슬롯15(예: 50개의 서브 슬롯들 16번째 서브 슬롯)(예: slot 15)에서 제1 오프셋 번호(예: Tx Offset 1)로 전송할 수 있다. 수신 오프셋 설정 정보가 1이므로, 제N 외부 전자 장치(303)는 전자 장치(301)와 다른 오프셋 번호로 전송할 수 있다. 제N 외부 전자 장치(303)는 상기 제3 응답 메시지를 전송한 후, 상기 제3 폴 메시지에 포함된 제3 거리 측정 사이클(1190)이 종료될 때까지 상기 UWB 통신에 대하여 슬립 상태로 진입할 수 있다. 제N 외부 전자 장치(303)는 제3 거리 측정 사이클(1190)이 종료되면, 제4 폴 메시지를 수신하기 위하여 UWB 통신을 활성화할 수 있다.In operation 1154, the N-th external electronic device 303, which is at least one of the external electronic devices, may transmit a third response message. The N-th external electronic device 303 may transmit a third response message based on third contention phase information included in the third poll message or second transmission offset information included in the second poll message. According to various embodiments, the N-th external electronic device 303 determines a slot or an offset number to transmit the third response message based on second transmission offset information (eg, 0xA2) included in the second poll message. can Since the reception offset setting information of the second transmission offset number is 1, the N-th external electronic device 303 performs slot 15 (eg, 50 sub-slots) of the time (eg, 50 slots) of the third contention phase information. In the 16th subslot) (eg, slot 15), transmission may be performed with a first offset number (eg, Tx Offset 1). Since the reception offset setting information is 1, the N-th external electronic device 303 may transmit with an offset number different from that of the electronic device 301 . After transmitting the third response message, the N-th external electronic device 303 may enter a sleep state for the UWB communication until the third distance measurement cycle 1190 included in the third poll message ends. can When the third distance measurement cycle 1190 ends, the N-th external electronic device 303 may activate UWB communication to receive the fourth poll message.
다양한 실시예들에 따르면, 전자 장치(301)는 상기 제3 폴 메시지를 전송한 이후, 제3 컨텐션 페이즈 정보(1150)의 시간이 종료되면, 제3 거리 측정 사이클(1190)의 남은 시간 동안 UWB 통신에 대하여 슬립 모드에 진입할 수 있다. 전자 장치(301)는 제3 컨텐션 페이즈 정보(1150)의 시간 동안 수신되는 응답 메시지에 기반하여 외부 전자 장치와의 거리를 측정하고, AOA 정보를 계산할 수 있다. 전자 장치(301)는 제3 거리 측정 사이클(1190)의 남은 시간이 종료되면, UWB 통신을 활성화하여 제4 폴 메시지를 전송할 수 있다. 전자 장치(301)는 상기 슬립 모드에 진입하기 전 또는 UWB 통신을 활성화 이후, 응답 메시지에 기반하여 제4 컨텐션 페이즈 정보 또는 제4 전송 오프셋 정보를 결정할 수 있다.According to various embodiments, when the time of the third contention phase information 1150 expires after the electronic device 301 transmits the third poll message, during the remaining time of the third distance measurement cycle 1190 Sleep mode can be entered for UWB communication. The electronic device 301 may measure the distance to the external electronic device based on the response message received during the time of the third contention phase information 1150 and calculate the AOA information. When the remaining time of the third distance measurement cycle 1190 ends, the electronic device 301 may transmit a fourth poll message by activating UWB communication. The electronic device 301 may determine fourth contention phase information or fourth transmission offset information based on a response message before entering the sleep mode or after activating UWB communication.
도 4는 본 발명의 일 실시예에 따른 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링 방법을 설명하기 위한 도면이다.4 is a diagram for explaining a scheduling method for a multi-session in a wireless communication system according to an embodiment of the present invention.
도 4를 참조하면, 전자 장치(예: 도 2의 전자 장치(200))의 스케줄러(예: 도 2의 스케줄러(211))는 동작 410에서, 복수의 세션들을 설정할 수 있다. 상기 세션은 전자 장치와 외부 전자 장치 간의 신호 또는 데이터의 송수신을 위한 논리적인 연결을 나타내는 것으로, 상기 스케줄러는 상기 복수의 외부 전자 장치들 각각에 대해 세션을 설정할 수 있다.Referring to FIG. 4 , the scheduler (eg, the scheduler 211 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) may set up a plurality of sessions in operation 410 . The session represents a logical connection for transmitting and receiving signals or data between the electronic device and the external electronic device, and the scheduler may establish a session for each of the plurality of external electronic devices.
동작 430에서, 상기 스케줄러는 복수의 세션들 각각에 대한 실행 스코어를 산출할 수 있다. 상기 스케줄러는 상기 복수의 세션들 각각에 대응하는 어플리케이션의 우선 순위, 상기 복수의 세션들 각각에 대한 전자 장치의 역할, 상기 복수의 세션들 각각의 레인징 라운드의 지속 기간, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 및 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여, 상기 복수의 세션들 각각에 대한 실행 스코어를 산출할 수 있다.In operation 430, the scheduler may calculate an execution score for each of the plurality of sessions. The scheduler determines a priority of an application corresponding to each of the plurality of sessions, a role of the electronic device for each of the plurality of sessions, a duration of a ranging round of each of the plurality of sessions, and each of the plurality of sessions An execution score for each of the plurality of sessions may be calculated based on at least one of the number of unscheduled ranging rounds for , and a weight given to the number of unscheduled ranging rounds.
일 실시예에 따르면, 상기 어플리케이션의 우선 순위는 상기 어플리케이션의 실행 상태 및 상기 어플리케이션이 지원하는 서비스의 종류 중 적어도 하나에 기반하여 설정될 수 있다. 일 예로, 상기 스케줄러는 상기 어플리케이션이 백그라운드 상태로 실행되는 경우보다 포어그라운드 상태로 실행될 때, 상기 어플리케이션의 우선 순위를 높게 설정할 수 있고, 상기 어플리케이션에 대응하는 세션에 대한 실행 스코어도 높게 산출될 수 있다. 다른 예로, 상기 스케줄러는 상기 어플리케이션이 지원하는 서비스가 지정된 시간 내에 결과를 도출해내야 하는 서비스(예: 카 액세스 서비스)인 경우, 상기 어플리케이션의 우선 순위를 높게 설정할 수 있고, 상기 어플리케이션에 대응하는 세션에 대한 실행 스코어도 높게 산출될 수 있다.According to an embodiment, the priority of the application may be set based on at least one of an execution state of the application and a type of service supported by the application. For example, the scheduler may set the priority of the application to be higher when the application is executed in the foreground state than when the application is executed in the background state, and the execution score for the session corresponding to the application may be calculated to be high . As another example, when the service supported by the application is a service that must derive a result within a specified time (eg, a car access service), the scheduler may set the priority of the application to be high, and The performance score for the performance can also be calculated to be high.
일 실시예에 따르면, 상기 세션에 대한 전자 장치의 역할은 전자 장치가 상기 세션을 통한 통신 대상이 되는 외부 전자 장치를 제어하는 장치인지 또는 상기 외부 전자 장치로부터 제어되는 장치인지에 대한 여부, 및 전자 장치가 상기 외부 전자 장치를 제어하는 장치인 경우에 전자 장치가 제어하고 있는 외부 전자 장치의 수 중 적어도 하나에 기반하여 설정될 수 있다. 일 예로, 상기 스케줄러는 전자 장치가 상기 외부 전자 장치로부터 제어되는 장치인 경우보다 상기 외부 전자 장치를 제어하는 장치일 때, 상기 실행 스코어를 높게 산출할 수 있다. 다른 예로, 상기 스케줄러는 전자 장치가 상기 외부 전자 장치를 제어하는 장치인 경우, 전자 장치에 의해 제어되는 외부 전자 장치의 수가 많을수록 상기 실행 스코어를 높게 산출할 수 있다.According to an embodiment, the role of the electronic device for the session is whether the electronic device is a device that controls an external electronic device that is a communication target through the session or a device controlled by the external electronic device, and When the device is a device for controlling the external electronic device, it may be set based on at least one of the number of external electronic devices controlled by the electronic device. For example, the scheduler may calculate the execution score to be higher when the electronic device is a device controlling the external electronic device than when the electronic device is a device controlled by the external electronic device. As another example, when the electronic device is a device that controls the external electronic device, the scheduler may calculate the execution score to be higher as the number of external electronic devices controlled by the electronic device increases.
일 실시예에 따르면, 상기 스케줄러는 상기 세션의 레인징 라운드의 지속 기간이 짧을수록 상기 실행 스코어를 높게 산출할 수 있다. 예를 들어, 상기 스케줄러는 상기 세션을 통한 외부 전자 장치의 측위 시간이 짧을수록 상기 실행 스코어를 높게 산출할 수 있다.According to an embodiment, the scheduler may calculate the execution score to be higher as the duration of the ranging round of the session is shorter. For example, the scheduler may calculate the execution score to be higher as the positioning time of the external electronic device through the session is shorter.
일 실시예에 따르면, 상기 스케줄러는 상기 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 많을수록 상기 세션에 대한 실행 스코어를 높게 산출할 수 있다.According to an embodiment, the scheduler may calculate a higher execution score for the session as the number of unscheduled ranging rounds for the session increases.
일 실시예에 따르면, 상기 스케줄러는 상기 세션에 대한 스케줄링되지 못한 레인징 라운드의 수에 가중치를 부여할 수 있다. 예를 들어, 상기 스케줄러는 상기 세션의 실행 스코어가 낮아 레인징 라운드의 실행 순서가 늦춰질 때, 상기 세션에 대한 스케줄링되지 못한 레인징 라운드의 수에 가중치를 부여하여, 상기 세션에 대한 실행 스코어를 높일 수 있다. 이에 따라, 상기 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 증가할수록 상기 가중치에 의해 상기 세션에 대한 실행 스코어의 증가 폭이 증가되기 때문에, 상기 세션의 레인징 라운드가 실행될 확률이 높아질 수 있다.According to an embodiment, the scheduler may give weight to the number of unscheduled ranging rounds for the session. For example, when the execution order of the ranging round is delayed because the execution score of the session is low, the scheduler may give weight to the number of unscheduled ranging rounds for the session to increase the execution score for the session. can Accordingly, as the number of unscheduled ranging rounds for the session increases, the increase in the execution score for the session increases by the weight, so that the probability that the ranging round of the session will be executed may increase.
일 실시예에 따르면, 상기 가중치는 지정된 값으로 설정될 수 있다. 일 실시예에 따르면, 상기 가중치는 상기 복수의 세션들 각각에 대한 실행 스코어, 상기 복수의 세션들에 대한 잔여 실행 횟수, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 및/또는 상기 복수의 세션들 각각에 대한 지정된 시간 초과에 의한 레인징 실패의 수 중 적어도 하나에 기반하여 설정될 수 있다.According to an embodiment, the weight may be set to a specified value. According to an embodiment, the weight includes an execution score for each of the plurality of sessions, a remaining number of executions for the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, and/ Alternatively, it may be set based on at least one of the number of ranging failures due to a specified timeout for each of the plurality of sessions.
동작 450에서, 상기 스케줄러는 산출된 실행 스코어에 기반하여, 상기 복수의 세션들에 대한 스케줄링을 수행할 수 있다. 일 실시예에 따르면, 상기 스케줄러는 실행 스코어가 높은 세션이 우선적으로 실행되도록 제어할 수 있다. 예컨대, 상기 스케줄러는 상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행할 수 있다. 예를 들어, 하나의 세션이 실행되는 시간(또는 slot)이 다른 하나의 세션과 적어도 일부 중첩되거나 또는 다른 하나의 세션에 영향을 주는 경우, 상기 스케줄러는 두 개의 세션들 중 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행할 수 있다. 또한, 상기 스케줄러는 스케줄링에 의해 세션이 실행되면, 상기 실행된 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 초기 값(예: 제로(0))으로 설정하여, 상기 실행된 세션에 대한 실행 스코어를 감소시킬 수 있다. 아울러, 상기 스케줄러는 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 증가시켜, 상기 낮은 실행 스코어를 가지는 세션에 대한 실행 스코어를 증가시킬 수 있다. 이에 따라, 실행 스코어가 낮아 실행되지 못한 세션에 대한 실행 확률이 높아질 수 있다.In operation 450, the scheduler may perform scheduling for the plurality of sessions based on the calculated execution score. According to an embodiment, the scheduler may control a session having a high execution score to be executed preferentially. For example, when at least two sessions among the plurality of sessions collide, the scheduler may perform scheduling such that a session having a high execution score among the at least two sessions is preferentially executed. For example, when the execution time (or slot) of one session overlaps at least partially with another session or affects the other session, the scheduler determines the session having a higher execution score among the two sessions. Scheduling can be performed so that it runs preferentially. In addition, when a session is executed by scheduling, the scheduler sets the number of unscheduled ranging rounds for the executed session to an initial value (eg, zero (0)), and the execution score for the executed session can reduce In addition, the scheduler may increase the number of unscheduled ranging rounds for the session having the low execution score among the at least two sessions, thereby increasing the execution score of the session having the low execution score. Accordingly, the execution probability for a session that has not been executed due to a low execution score may increase.
일 실시예에 따르면, 상기 스케줄러는 상기 복수의 세션들 중 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 지정된 시간 초과에 의한 레인징 실패의 수보다 크면, 상기 특정 세션을 종료할 수 있다. 예를 들어, 상기 스케줄러는 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 증가시켰을 때, 증가된 값이 지정된 시간 초과에 의한 레인징 실패의 수보다 크면, 상기 낮은 실행 스코어를 가지는 세션을 종료할 수 있다. 또한, 상기 스케줄러는 종료된 세션에 대한 상태를 상기 전자 장치의 프로세서(예: 도 2의 프로세서(230))로 전달할 수 있다.According to an embodiment, the scheduler may terminate the specific session when the number of unscheduled ranging rounds for the specific session among the plurality of sessions is greater than the number of ranging failures due to a specified timeout. For example, when the scheduler increases the number of unscheduled ranging rounds for a session having a lower execution score among the at least two sessions, the increased value is greater than the number of ranging failures due to a specified timeout. If it is large, the session with the low execution score may be terminated. Also, the scheduler may transmit the state of the terminated session to the processor of the electronic device (eg, the processor 230 of FIG. 2 ).
다양한 실시예에 따르면, 상술한 동작들 중 적어도 하나는 통신 모듈(예: 도 2의 통신 모듈(210)) 또는 상기 프로세서에 의해 수행될 수 있다. 예를 들어, 상기 통신 모듈 또는 상기 프로세서는 동작 430에서, 복수의 세션들 각각에 대한 실행 스코어를 산출할 수 있다. 이때, 상기 통신 모듈 또는 상기 프로세서는 산출된 복수의 세션들 각각에 대한 실행 스코어를 상기 스케줄러로 전달할 수 있다.According to various embodiments, at least one of the above-described operations may be performed by a communication module (eg, the communication module 210 of FIG. 2 ) or the processor. For example, the communication module or the processor may calculate an execution score for each of the plurality of sessions in operation 430 . In this case, the communication module or the processor may transmit the calculated execution score for each of the plurality of sessions to the scheduler.
도 5는 본 발명의 일 실시예에 따른 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링을 수행하는 전자 장치의 운용 방법을 설명하기 위한 도면이다.5 is a diagram for explaining a method of operating an electronic device for scheduling multi-session in a wireless communication system according to an embodiment of the present invention.
도 5를 참조하면, 전자 장치(예: 도 2의 전자 장치(200))의 스케줄러(예: 도 2의 스케줄러(211))는 동작 501에서, 새로운 연결이 요청되었는지를 확인할 수 있다. 예를 들어, 상기 스케줄러는 새로운 외부 전자 장치와의 연결을 위한 세션 설정이 요청되었는지를 판단할 수 있다. 예를 들어, 새로운 연결의 요청은, 외부 전자 장치로부터 OOB(out of band)(예를 들어, BLE, BT 또는 WiFi)를 통해 UWB 세션을 요청하는 것을 전자 장치가 감지한 경우를 포함할 수 있다.Referring to FIG. 5 , the scheduler (eg, the scheduler 211 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) may determine whether a new connection is requested in operation 501 . For example, the scheduler may determine whether session establishment for connection with a new external electronic device is requested. For example, the request for a new connection may include a case in which the electronic device detects that the external electronic device requests a UWB session through out of band (OOB) (eg, BLE, BT, or WiFi). .
새로운 연결이 요청(새로운 외부 전자 장치와의 연결을 위한 세션 설정이 요청)된 경우, 상기 스케줄러는 동작 502에서, 기설정된 세션의 개수가 지정된 개수(예: 5개) 미만인지를 판단할 수 있다.When a new connection is requested (session establishment for connection with a new external electronic device is requested), in operation 502, the scheduler may determine whether the preset number of sessions is less than a specified number (eg, 5) .
상기 기설정된 세션의 개수가 상기 지정된 개수 미만이 아닌 경우, 상기 스케줄러는 동작 508에서, 세션 생성에 대한 실패 처리를 수행할 수 있다. 일 예로, 상기 스케줄러는 전자 장치의 프로세서(예: 도 2의 프로세서(230))로 세션 생성의 실패를 나타내는 상태 메시지를 전달할 수 있다. 예를 들어, 상기 프로세서는 상기 스케줄러로부터 수신한 세션 생성의 실패에 대한 메시지에 기반하여 디스플레이(예: 도 1의 디스플레이 모듈(160))를 통해 정보를 제공할 수 있다. 상기 스케줄러는 동작 506에서와 같이, 통신 모듈(예: 도 2의 통신 모듈(210))이 슬립(sleep) 상태로 전환되도록 제어할 수 있다. 이 후, 상기 통신 모듈은 동작 507에서와 같이, 스케줄링에 따라 웨이크업(wakeup) 상태로 전환하고, 동작 501로 리턴할 수 있다.When the number of the preset sessions is not less than the designated number, the scheduler may perform a session creation failure process in operation 508 . For example, the scheduler may transmit a status message indicating failure of session creation to a processor of the electronic device (eg, the processor 230 of FIG. 2 ). For example, the processor may provide information through a display (eg, the display module 160 of FIG. 1 ) based on a message about a session creation failure received from the scheduler. As in operation 506 , the scheduler may control the communication module (eg, the communication module 210 of FIG. 2 ) to enter a sleep state. Thereafter, as in operation 507 , the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
상기 기설정된 세션의 개수가 상기 지정된 개수 미만인 경우, 상기 스케줄러는 동작 503에서, 새로운 외부 전자 장치와의 연결을 위한 새로운 세션을 설정할 수 있고, 설정된 새로운 세션에 대한 초기 실행 스코어를 산출할 수 있다. 상기 초기 실행 스코어는 최초 설정되는 실행 스코어로서, 상기 새로운 세션에 대응되는 어플리케이션의 우선 순위, 상기 새로운 세션에 대한 전자 장치의 역할, 및 상기 새로운 세션의 레인징 라운드의 지속 기간 중 적어도 하나에 기반하여 산출될 수 있다. 예를 들어, 상기 초기 실행 스코어에서는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수 및 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치를 고려하지 않을 수 있다. 일 실시예에 따르면, 상기 스케줄러는 전자 장치가 실행하는 서비스에 따라 상기 서비스에 대응되는 세션에 대한 실행 스코어를 산출할 수 있다. 다른 실시예에 따르면, 상기 스케줄러는 외부 전자 장치로부터 OOB(out of band)(예를 들어, BLE, BT 또는 WiFi)를 통해 수신한 신호에 포함된 UWB 설정 값들 중 적어도 일부에 기반하여 상기 세션에 대한 실행 스코어를 산출할 수 있다.When the preset number of sessions is less than the designated number, in operation 503 , the scheduler may establish a new session for connection with a new external electronic device and calculate an initial execution score for the established new session. The initial execution score is an initially set execution score, based on at least one of a priority of an application corresponding to the new session, a role of the electronic device for the new session, and a duration of a ranging round of the new session. can be calculated. For example, the number of unscheduled ranging rounds for a session and a weight given to the number of unscheduled ranging rounds may not be considered in the initial execution score. According to an embodiment, the scheduler may calculate an execution score for a session corresponding to the service according to a service executed by the electronic device. According to another embodiment, the scheduler performs the session based on at least some of UWB setting values included in a signal received from an external electronic device through out of band (OOB) (eg, BLE, BT, or WiFi). performance score can be calculated.
상기 초기 실행 스코어가 산출되면, 상기 스케줄러는 동작 504에서, 상기 새로운 세션이 기존에 설정된 세션과 충돌없이 스케줄링이 가능한지를 판단할 수 있다. 충돌없이 스케줄링이 가능하다고 판단되는 경우, 상기 스케줄러는 동작 505에서, 스케줄링에 따라 세션을 통한 기능을 실행할 수 있다. 예를 들어, 상기 스케줄러는 상기 세션을 통한 측위 기능을 수행할 수 있도록 상기 통신 모듈을 제어할 수 있다. 또한, 상기 세션을 통한 기능을 실행한 후, 상기 스케줄러는 동작 506에서, 상기 통신 모듈이 슬립 상태로 전환되도록 제어할 수 있다. 이 후, 상기 통신 모듈은 동작 507에서와 같이, 스케줄링에 따라 웨이크업 상태로 전환하고, 동작 501로 리턴할 수 있다.When the initial execution score is calculated, in operation 504 , the scheduler may determine whether scheduling of the new session is possible without conflicting with a previously established session. When it is determined that scheduling without collision is possible, in operation 505 , the scheduler may execute a function through a session according to scheduling. For example, the scheduler may control the communication module to perform a positioning function through the session. In addition, after executing the function through the session, the scheduler may control the communication module to enter a sleep state in operation 506 . Thereafter, as in operation 507 , the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
충돌없이 스케줄링이 가능하지 않다고 판단되는 경우, 상기 스케줄러는 동작 510에서, 실행 스코어에 기반하여 스케줄링을 수행할 수 있다. 예를 들어, 상기 스케줄러는 상기 새로운 세션의 초기 실행 스코어 및 상기 기설정된 세션의 실행 스코어에 기반하여, 스케줄링을 수행할 수 있다.If it is determined that scheduling without collision is not possible, the scheduler may perform scheduling based on an execution score in operation 510 . For example, the scheduler may perform scheduling based on the initial execution score of the new session and the preset execution score of the session.
실행 스코어에 기반하여 스케줄링을 수행한 후, 상기 스케줄러는 동작 505에서, 스케줄링에 따라 세션을 통한 기능을 실행할 수 있다. 또한, 상기 세션을 통한 기능을 실행한 후, 상기 스케줄러는 동작 506에서, 상기 통신 모듈이 슬립 상태로 전환되도록 제어할 수 있다. 이 후, 상기 통신 모듈은 동작 507에서와 같이, 스케줄링에 따라 웨이크업 상태로 전환하고, 동작 501로 리턴할 수 있다.After performing scheduling based on the execution score, in operation 505 , the scheduler may execute a function through a session according to the scheduling. In addition, after executing the function through the session, the scheduler may control the communication module to enter a sleep state in operation 506 . Thereafter, as in operation 507 , the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
동작 501에서 새로운 연결이 요청되었는지를 확인한 결과, 새로운 연결이 아닌 스케줄링에 따른 기설정된 세션에 대한 실행이 요청된 경우, 상기 스케줄러는 동작 509에서, 기설정된 세션들 간의 충돌이 발생하는지를 판단할 수 있다. 예를 들어, 전자 장치는 복수의 세션들의 설정에 기반하여 스케줄링을 수행하고, 레인징 시점이 된 경우 세션들 간의 충돌이 발생하는지 판단할 수 있다.As a result of checking whether a new connection is requested in operation 501, if execution of a preset session according to scheduling is requested instead of a new connection, the scheduler may determine in operation 509 whether a conflict between preset sessions occurs. . For example, the electronic device may perform scheduling based on the setting of a plurality of sessions and, when a ranging time comes, determine whether a collision between sessions occurs.
기설정된 세션들 간의 충돌이 발생하지 않는다고 판단된 경우, 상기 스케줄러는 동작 505에서, 스케줄링에 따라 세션을 통한 기능을 실행할 수 있다. 또한, 상기 세션을 통한 기능을 실행한 후, 상기 스케줄러는 동작 506에서, 상기 통신 모듈이 슬립 상태로 전환되도록 제어할 수 있다. 이 후, 상기 통신 모듈은 동작 507에서와 같이, 스케줄링에 따라 웨이크업 상태로 전환하고, 동작 501로 리턴할 수 있다.When it is determined that there is no collision between preset sessions, the scheduler may execute a function through a session according to scheduling in operation 505 . In addition, after executing the function through the session, the scheduler may control the communication module to enter a sleep state in operation 506 . Thereafter, as in operation 507 , the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
기설정된 세션들 간의 충돌이 발생한다고 판단된 경우, 상기 스케줄러는 동작 510에서, 실행 스코어에 기반하여 스케줄링을 수행할 수 있다. 예를 들어, 상기 스케줄러는 상기 기설정된 세션들 각각에 대한 실행 스코어에 기반하여, 스케줄링을 수행할 수 있다.When it is determined that a collision between preset sessions occurs, the scheduler may perform scheduling based on an execution score in operation 510 . For example, the scheduler may perform scheduling based on an execution score for each of the preset sessions.
실행 스코어에 기반하여 스케줄링을 수행한 후, 상기 스케줄러는 동작 505에서, 스케줄링에 따라 세션을 통한 기능을 실행할 수 있다. 또한, 상기 세션을 통한 기능을 실행한 후, 상기 스케줄러는 동작 506에서, 상기 통신 모듈이 슬립 상태로 전환되도록 제어할 수 있다. 이 후, 상기 통신 모듈은 동작 507에서와 같이, 스케줄링에 따라 웨이크업 상태로 전환하고, 동작 501로 리턴할 수 있다.After performing scheduling based on the execution score, in operation 505 , the scheduler may execute a function through a session according to the scheduling. In addition, after executing the function through the session, the scheduler may control the communication module to enter a sleep state in operation 506 . Thereafter, as in operation 507 , the communication module may switch to a wakeup state according to scheduling and return to operation 501 .
상술한 바와 같이, 다양한 실시예에 따르면, 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링 방법은, 복수의 외부 전자 장치들과 통신하기 위한 복수의 세션들을 설정하는 동작(예: 도 4의 동작 410), 상기 복수의 세션들 각각에 대한 실행 스코어를 산출하는 동작(예: 도 4의 동작 430), 및 상기 복수의 세션들 각각에 대한 실행 스코어를 기반으로, 상기 복수의 세션들에 대한 스케줄링을 수행하는 동작(예: 도 4의 동작 450)을 포함하고, 상기 복수의 세션들 각각에 대한 실행 스코어는, 상기 복수의 세션들 각각에 대응하는 어플리케이션의 우선 순위, 상기 복수의 세션들 각각에 대한 전자 장치의 역할, 상기 복수의 세션들 각각의 레인징 라운드의 지속 기간, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 또는 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여 산출될 수 있다.As described above, according to various embodiments, the scheduling method for a multi-session in a wireless communication system includes an operation of setting a plurality of sessions for communicating with a plurality of external electronic devices (eg, operation 410 of FIG. 4 ). , calculating an execution score for each of the plurality of sessions (eg, operation 430 of FIG. 4 ), and performing scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions operation (eg, operation 450 of FIG. 4 ), wherein the execution score for each of the plurality of sessions is the priority of an application corresponding to each of the plurality of sessions, and an electronic score for each of the plurality of sessions Among the role of the device, the duration of each ranging round of the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, or a weight given to the number of unscheduled ranging rounds It may be calculated based on at least one.
다양한 실시예에 따르면, 상기 복수의 세션들에 대한 스케줄링을 수행하는 동작은, 상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행하는 동작을 포함할 수 있다.According to various embodiments, in the performing of the scheduling of the plurality of sessions, when at least two sessions among the plurality of sessions collide, a session having a high execution score among the at least two sessions has priority. It may include an operation of performing scheduling to be executed as .
다양한 실시예에 따르면, 상기 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행하는 동작은, 상기 높은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 초기 값으로 설정하는 동작, 및 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 증가시키는 동작을 포함할 수 있다.According to various embodiments, the scheduling operation so that the session having the high execution score is preferentially executed may include setting the number of unscheduled ranging rounds for the session having the high execution score to an initial value; and increasing the number of unscheduled ranging rounds for a session having a low execution score among the at least two sessions.
다양한 실시예에 따르면, 상기 복수의 세션들에 대한 스케줄링을 수행하는 동작은, 상기 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 지정된 시간 초과에 의한 레인징 실패의 수보다 크면, 상기 낮은 실행 스코어를 가지는 세션을 종료하고, 상기 전자 장치의 프로세서로 상기 낮은 실행 스코어를 가지는 세션에 대한 상태를 전달하는 동작을 더 포함할 수 있다.According to various embodiments, the scheduling of the plurality of sessions may include: If the number of unscheduled ranging rounds for the session with the low execution score is greater than the number of ranging failures due to a specified timeout, The method may further include terminating the session having the low execution score and transmitting a state of the session having the low execution score to the processor of the electronic device.
다양한 실시예에 따르면, 상기 가중치는 지정된 값으로 설정될 수 있다.According to various embodiments, the weight may be set to a specified value.
다양한 실시예에 따르면, 상기 가중치는 상기 복수의 세션들 각각에 대한 실행 스코어, 상기 복수의 세션들에 대한 잔여 실행 횟수, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 및 상기 복수의 세션들 각각에 대한 지정된 시간 초과에 의한 레인징 실패의 수 중 적어도 하나에 기반하여 설정될 수 있다.According to various embodiments, the weight includes an execution score for each of the plurality of sessions, a remaining number of executions for the plurality of sessions, a number of unscheduled ranging rounds for each of the plurality of sessions, and the It may be set based on at least one of the number of ranging failures due to a specified timeout for each of the plurality of sessions.
다양한 실시예에 따르면, 상기 어플리케이션의 우선 순위는 상기 어플리케이션의 실행 상태 및 상기 어플리케이션이 지원하는 서비스의 종류 중 적어도 하나에 기반하여 설정될 수 있다.According to various embodiments, the priority of the application may be set based on at least one of an execution state of the application and a type of service supported by the application.
다양한 실시예에 따르면, 상기 전자 장치의 역할은 상기 전자 장치가 통신 대상인 외부 전자 장치를 제어하는 장치인지 또는 상기 외부 전자 장치로부터 제어되는 장치인지에 대한 여부, 및 상기 전자 장치가 상기 외부 전자 장치를 제어하는 장치인 경우에 상기 전자 장치가 제어하고 있는 외부 전자 장치의 수 중 적어도 하나에 기반하여 설정될 수 있다.According to various embodiments, the role of the electronic device determines whether the electronic device is a device for controlling an external electronic device that is a communication target or a device controlled by the external electronic device, and whether the electronic device controls the external electronic device In the case of a controlling device, the setting may be based on at least one of the number of external electronic devices controlled by the electronic device.
다양한 실시예에 따르면, 상기 복수의 세션들에 대한 스케줄링을 수행하는 동작은, 상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간 중 적어도 하나를 감소시키는 동작을 포함할 수 있다.According to various embodiments, the scheduling of the plurality of sessions may include, when at least two sessions of the plurality of sessions collide, in a session having a low execution score among the at least two sessions. and reducing at least one of a contention period or a duration of a ranging round.
다양한 실시예에 따르면, 상기 복수의 세션들 각각에 대한 실행 스코어를 산출하는 동작은, 상기 실행 스코어는 상기 전자 장치의 통신 모듈, 상기 전자 장치의 프로세서, 또는 상기 전자 장치의 인공지능 모듈 중 적어도 하나에 의해 산출되어 상기 전자 장치의 스케줄러로 전달되는 동작을 포함할 수 있다.According to various embodiments, the calculating of the execution score for each of the plurality of sessions may include determining that the execution score is at least one of a communication module of the electronic device, a processor of the electronic device, or an artificial intelligence module of the electronic device. may include an operation of being calculated by , and transmitted to the scheduler of the electronic device.
일 실시예에 따르면, 전자 장치(예: 도 2의 전자 장치(200))의 스케줄러(예: 도 2의 스케줄러(211))는 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 가중치를 적용할 수 있다. 예를 들어, 상기 스케줄러는 특정 세션의 실행 스코어가 낮아 레인징 라운드의 실행 순서가 늦춰질 때, 상기 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수에 가중치를 부여하여, 상기 특정 세션에 대한 실행 스코어를 높일 수 있다. 이에 따라, 상기 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 증가할수록 상기 가중치에 의해 상기 특정 세션에 대한 실행 스코어의 증가 폭이 증가되기 때문에, 상기 특정 세션의 레인징 라운드가 실행될 확률이 높아질 수 있다.According to an embodiment, the scheduler (eg, the scheduler 211 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) determines the number of unscheduled ranging rounds for each of the plurality of sessions. weights can be applied. For example, when the execution order of the ranging round is delayed because the execution score of the specific session is low, the scheduler gives weight to the number of unscheduled ranging rounds for the specific session, so that the execution score for the specific session can increase Accordingly, as the number of unscheduled ranging rounds for the specific session increases, the increase in the execution score for the specific session increases by the weight, so that the probability that the ranging round of the specific session will be executed may increase. have.
일 실시예에 따르면, 초기 실행 스코어는 각 세션에 대응하는 어플리케이션의 우선 순위에 기반하여 설정될 수 있다. 예를 들어, 각 세션에 대응하는 어플리케이션의 실행 상태(포어그라운드 또는 백그라운드), 및/또는 각 세션에 대응하는 어플리케이션이 지원하는 서비스의 종류에 기반하여 초기 실행 스코어가 결정될 수 있다.According to an embodiment, the initial execution score may be set based on a priority of an application corresponding to each session. For example, the initial execution score may be determined based on the execution state (foreground or background) of the application corresponding to each session and/or the type of service supported by the application corresponding to each session.
상기 가중치를 적용하는 방식은 정적 방식 또는 동적 방식을 포함할 수 있다. 상기 정적 방식에서, 상기 스케줄러는 상기 가중치를 지정된 값으로 설정할 수 있다. 예를 들어, 상기 정적 방식에서, 상기 스케줄러는 복수의 세션들 각각에 대해 서로 동일한 가중치를 적용할 수 있다. 상기 동적 방식에서, 상기 스케줄러는 상기 가중치를 지정된 조건에 따라 다르게 설정할 수 있다. 예를 들어, 상기 동적 방식에서, 상기 스케줄러는 복수의 세션들 각각에 대해 서로 다른 가중치를 적용할 수 있다.The method of applying the weight may include a static method or a dynamic method. In the static method, the scheduler may set the weight to a specified value. For example, in the static method, the scheduler may apply the same weight to each of a plurality of sessions. In the dynamic scheme, the scheduler may set the weight differently according to a specified condition. For example, in the dynamic scheme, the scheduler may apply different weights to each of a plurality of sessions.
도 6a 내지 도 6c에서는 가중치를 부여하지 않은 경우에 대해 설명하고, 도 7a 내지 도 7c에서는 상기 정적 방식으로 가중치를 부여하는 경우에 대해 설명하며, 도 8a 내지 도 8c에서는 상기 동적 방식으로 가중치를 부여하는 경우에 대해 설명하도록 한다.6A to 6C describe a case in which no weight is assigned, FIGS. 7A to 7C describe a case in which weight is assigned in the static manner, and in FIGS. 8A to 8C weight is applied in the dynamic manner. Let me explain the case.
도 6a 내지 도 8c에서의 제1 세션 및 제2 세션은 각각 예를 들어, 제1 카 액세스 서비스 및 제2 카 액세스 서비스에 대응되는 세션들로 호핑 시퀀스(hopping sequence)를 가지고 레인징 블록의 크기가 100ms인 경우를 나타내고, 제3 세션은 예를 들어, 컨텐츠 공유 서비스에서 전송측에 대응되는 세션으로 레인징 간격이 100ms이고 컨텐션 구간이 30ms인 경우를 나타내며, 제4 세션 및 제5 세션은 각각 예를 들어, 컨텐츠 공유 서비스에서 수신측에 대응되는 세션들로 레인징 간격이 100ms이고 컨텐션 구간이 10ms인 경우를 나타낼 수 있다.The first session and the second session in FIGS. 6A to 8C are, for example, sessions corresponding to the first car access service and the second car access service, respectively, and have a hopping sequence and the size of the ranging block. represents the case of 100 ms, the third session is, for example, a session corresponding to the transmission side in the content sharing service, and represents a case where the ranging interval is 100 ms and the contention period is 30 ms, and the fourth and fifth sessions are For example, each of the sessions corresponding to the receiving side in the content sharing service may represent a case where the ranging interval is 100 ms and the contention period is 10 ms.
상기 세션들에 대한 실행 스코어는 세션에 대응하는 어플리케이션의 우선 순위, 세션에 대한 전자 장치의 역할, 세션의 레인징 라운드의 지속 기간, 세션에 대한 스케줄링되지 못한 레인징 라운드의 수, 및/또는 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여 산출될 수 있다. 예를 들어, 상기 실행 스코어는 다음의 수학식 1에 의해 산출될 수 있다.The execution score for the sessions may include the priority of the application corresponding to the session, the role of the electronic device for the session, the duration of the ranging round of the session, the number of unscheduled ranging rounds for the session, and/or the It may be calculated based on at least one of weights given to the number of unscheduled ranging rounds. For example, the execution score may be calculated by Equation 1 below.
Figure PCTKR2021009952-appb-img-000001
Figure PCTKR2021009952-appb-img-000001
여기서, running score of session i는 i번째 세션의 실행 스코어를 나타내고, Pi는 i번째 세션에 대응하는 어플리케이션의 우선 순위를 나타내며, Ri는 i번째 세션에 대한 전자 장치의 역할을 나타내고, NCi는 i번째 세션에 대한 전자 장치의 역할이 외부 전자 장치를 제어하는 장치인 경우에 전자 장치가 제어하고 있는 외부 전자 장치의 수를 나타내며, Di는 i번째 세션의 레인징 라운드의 지속 기간을 나타내고, NSRNi는 i번째 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 나타내며, Wi는 i번째 세션에 대한 스케줄링되지 못한 레인징 라운드의 수에 적용되는 가중치를 나타내고, a는 세션의 레인징 라운드의 지속 기간에 곱해지는 상수를 나타낼 수 있다.Here, the running score of session i represents the running score of the i-th session, P i represents the priority of an application corresponding to the i-th session, R i represents the role of the electronic device for the i-th session, NC i denotes the number of external electronic devices controlled by the electronic device when the role of the electronic device for the i-th session is a device to control the external electronic device, D i denotes the duration of the ranging round of the i-th session, , NSRN i denotes the number of unscheduled ranging rounds for the i-th session, W i denotes a weight applied to the number of unscheduled ranging rounds for the i-th session, and a denotes a ranging round of the session It can be expressed as a constant multiplied by the duration of
일 예로, 상기 제1 세션에 대응하는 어플리케이션이 백그라운드 상태로 실행되는 카 액세스 서비스를 제공하는 어플리케이션이고(P1 = 20), 상기 제1 세션에 대한 전자 장치가 10개의 외부 전자 장치들을 제어하는 장치이며(R1 = 5, NC1 = 10), 상기 제1 세션의 레인징 라운드의 지속 기간이 15ms일 때(D1 = 15, a = 50), 상기 제1 세션의 실행 스코어는 (20 + 5 + 10 + 50/15 + (NSRN1 * W1))의 값으로 산출될 수 있다.For example, the application corresponding to the first session is an application providing a car access service that is executed in a background state (P 1 = 20), and the electronic device for the first session controls ten external electronic devices. (R 1 = 5, NC 1 = 10), when the duration of the ranging round of the first session is 15 ms (D 1 = 15, a = 50), the running score of the first session is (20 + 5 + 10 + 50/15 + (NSRN 1 * W 1 )).
다른 예로, 상기 제3 세션에 대응하는 어플리케이션이 포어그라운드 상태로 실행되는 컨텐츠 공유 서비스를 제공하는 어플리케이션이고(P3 = 30), 상기 제3 세션에 대한 전자 장치가 30개의 외부 전자 장치들을 제어하는 장치(컨텐츠 전송 장치)이며(R3 = 5, NC3 = 30), 상기 제3 세션의 레인징 라운드의 지속 기간이 30ms일 때(D3 = 30, a = 50), 상기 제3 세션의 실행 스코어는 (30 + 5 + 30 + 50/30 + (NSRN3 * W3))의 값으로 산출될 수 있다.As another example, the application corresponding to the third session is an application providing a content sharing service executed in a foreground state (P 3 = 30), and the electronic device for the third session controls 30 external electronic devices. device (content transmission device) (R 3 = 5, NC 3 = 30), and when the duration of the ranging round of the third session is 30 ms (D 3 = 30, a = 50), The performance score can be calculated as a value of (30 + 5 + 30 + 50/30 + (NSRN 3 * W 3 )).
또 다른 예로, 상기 제5 세션에 대응하는 어플리케이션이 백그라운드 상태로 실행되는 컨텐츠 공유 서비스를 제공하는 어플리케이션이고(P5 = 10), 상기 제5 세션에 대한 전자 장치가 외부 전자 장치로부터 제어되는 장치(컨텐츠 수신 장치)이며(R5 = 1, NC5 = 0), 상기 제5 세션의 레인징 라운드의 지속 기간이 10ms일 때(D5 = 10, a = 50), 상기 제5 세션의 실행 스코어는 (10 + 1 + 0 + 50/10 + (NSRN5 * W5))의 값으로 산출될 수 있다.As another example, the application corresponding to the fifth session is an application that provides a content sharing service executed in a background state (P 5 = 10), and the electronic device for the fifth session is controlled by an external electronic device ( content receiving device) (R 5 = 1, NC 5 = 0), and when the duration of the ranging round of the fifth session is 10 ms (D 5 = 10, a = 50), the execution score of the fifth session can be calculated as a value of (10 + 1 + 0 + 50/10 + (NSRN 5 * W 5 )).
도 6a는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 가중치를 적용하지 않은 경우의 스케줄링 결과를 나타낸 도면이고, 도 6b는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 가중치를 적용하지 않은 경우의 실행 스코어를 나타낸 도면이며, 도 6c는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 가중치를 적용하지 않은 경우의 스케줄링되지 못한 레인징 라운드의 수를 나타낸 도면이다.6A is a diagram illustrating a scheduling result when no weight is applied to an execution score for each of the sessions according to an embodiment of the present invention, and FIG. 6B is a diagram showing execution of each of the sessions according to an embodiment of the present invention It is a view showing the execution score when no weight is applied to the score, and FIG. 6C is the number of unscheduled ranging rounds when no weight is applied to the execution score for each of the sessions according to an embodiment of the present invention. is a diagram showing
도 6a 내지 도 6c를 참조하면, 전자 장치(예: 도 2의 전자 장치(200))의 스케줄러(예: 도 2의 스케줄러(211))는 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 가중치를 적용하지 않을 수 있다. 예를 들어, 도 6a 내지 도 6c에 도시된 스케줄링 결과 값들은 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 고정된 자연수 1을 곱한 결과에 대응될 수 있다. 예를 들어, 상기 수학식 1에서 Wi가 자연수 1로 고정될 수 있다.6A to 6C , the scheduler (eg, the scheduler 211 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) performs an unscheduled ranging round for each of a plurality of sessions No weighting may be applied to the number of For example, the scheduling result values shown in FIGS. 6A to 6C may correspond to a result of multiplying the number of unscheduled ranging rounds for each of the plurality of sessions by a fixed natural number 1 . For example, in Equation 1, W i may be fixed to the natural number 1.
복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 가중치를 적용하지 않은 경우, 도 6b에 도시된 바와 같이, 초기 실행 스코어가 낮은 세션(예: 제4 세션 또는 제5 세션의 초기 실행 스코어는 14인 경우)의 실행 확률이 낮을 수 있다. 즉, 도 6c에 도시된 바와 같이, 초기 실행 스코어가 낮은 세션(예: 제4 세션 또는 제5 세션)은 스케줄링되지 못한 레인징 라운드의 수가 지속적으로 증가할 수밖에 없다. 또한, 초기 실행 스코어가 낮은 세션의 실행 확률이 낮기 때문에, 상기 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 지속적으로 증가함에도 불구하고, 상기 세션이 실행되지 못하면, 결국 상기 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 지정된 시간 초과에 의한 레인징 실패의 수(예: 10회)보다 커지게 되고, 이에 따라, 상기 세션이 실행되지 못하고 종료될 수 있다. 이에 따라, 초기 실행 스코어가 낮은 세션(예: 제4 세션 또는 제5 세션)의 경우에도 스케줄링될 수 있도록, 상기 세션에 대한 스케줄링되지 못한 레인징 라운드의 수에 가중치를 적용할 수 있다.When no weight is applied to the number of unscheduled ranging rounds for each of the plurality of sessions, as shown in FIG. 6B , a session with a low initial execution score (eg, the initial execution of the fourth session or the fifth session) If the score is 14), the execution probability may be low. That is, as shown in FIG. 6C , in a session (eg, a fourth session or a fifth session) having a low initial execution score, the number of unscheduled ranging rounds inevitably increases continuously. In addition, because the execution probability of a session with a low initial execution score is low, despite the continuous increase in the number of unscheduled ranging rounds for the session, if the session fails to execute, eventually the unscheduled lane for the session The number of jing rounds becomes greater than the number of ranging failures due to a specified timeout (eg, 10 times), and accordingly, the session may not be executed and may be terminated. Accordingly, a weight may be applied to the number of unscheduled ranging rounds for the session so that the session can be scheduled even in the case of a session having a low initial execution score (eg, the fourth session or the fifth session).
도 7a는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 정적인 값으로 설정된 경우의 스케줄링 결과를 나타낸 도면이고, 도 7b는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 정적인 값으로 설정된 경우의 실행 스코어를 나타낸 도면이며, 도 7c는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 정적인 값으로 설정된 경우의 스케줄링되지 못한 레인징 라운드의 수를 나타낸 도면이다.7A is a diagram illustrating a scheduling result when a weight applied to an execution score for each of the sessions is set to a static value according to an embodiment of the present invention, and FIG. 7B is a diagram showing the sessions according to an embodiment of the present invention. It is a diagram showing an execution score when the weight applied to the execution score for each is set to a static value, and FIG. 7C is a view showing the weight applied to the execution score for each session according to an embodiment of the present invention is a static value It is a diagram showing the number of unscheduled ranging rounds when set to .
도 7a 내지 도 7c를 참조하면, 전자 장치(예: 도 2의 전자 장치(200))의 스케줄러(예: 도 2의 스케줄러(211))는 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 정적인 값으로 가중치를 적용할 수 있다. 예를 들어, 상기 스케줄러는 복수의 세션들 각각에 대해 서로 동일한 가중치를 적용할 수 있다. 여기서, 상기 정적인 값은 자연수 1보다 큰 값일 수 있다. 예를 들어, 도 7a 내지 도 7c에 도시된 스케줄링 결과 값들은 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 고정된 자연수 n(n>1)(예: 10)을 곱한 결과에 대응될 수 있다. 예를 들어, 상기 수학식 1에서 Wi가 자연수 n(n>1)으로 고정될 수 있다.7A to 7C , the scheduler (eg, the scheduler 211 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) performs an unscheduled ranging round for each of a plurality of sessions A weight can be applied as a static value to the number of For example, the scheduler may apply the same weight to each of the plurality of sessions. Here, the static value may be a value greater than the natural number 1. For example, the scheduling result values shown in FIGS. 7A to 7C are the result of multiplying the number of unscheduled ranging rounds for each of the plurality of sessions by a fixed natural number n (n>1) (eg 10). can be matched. For example, in Equation 1, W i may be fixed to a natural number n (n>1).
복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 정적인 값으로 가중치를 적용한 경우, 도 7b에 도시된 바와 같이, 초기 실행 스코어가 낮은 세션(예: 제4 세션 또는 제5 세션)의 실행 확률이 높아질 수 있다. 예를 들어, 초기 실행 스코어가 낮은 세션은 스케줄링되지 못한 레인징 라운드의 수가 어느 단계까지 증가하게 되는데, 상기 스케줄링되지 못한 레인징 라운드의 수에 가중치가 부여되면(예: 가중치가 곱해지면), 상기 스케줄링되지 못한 레인징 라운드의 수가 증가할수록 상기 가중치에 의해 상기 세션에 대한 실행 스코어의 증가 폭이 증가되기 때문에, 결국 상기 세션에 대한 실행 스코어가 다른 세션에 대한 실행 스코어보다 높아지게 되어 실행될 수 있다.When a weight is applied as a static value to the number of unscheduled ranging rounds for each of a plurality of sessions, as shown in FIG. 7B , a session with a low initial execution score (eg, a fourth session or a fifth session) may increase the probability of execution. For example, in a session with a low initial execution score, the number of unscheduled ranging rounds increases to a certain stage. As the number of unscheduled ranging rounds increases, the increase in the execution score for the session is increased by the weight, and consequently, the execution score for the session becomes higher than the execution score for other sessions and may be executed.
다만, 상기 가중치가 너무 높게 설정되는 경우, 도 7b에 도시된 바와 같이, 최초 실행 스코어가 높은 세션(예: 제1 세션, 제2 세션 또는 제3 세션)이 최초 실행 스코어가 낮은 세션(예: 제4 세션 또는 제5 세션)과 충돌될 때, 상기 최초 실행 스코어가 높은 세션이 종료될 확률이 높을 수 있다. 이에 따라, 정적 방식으로 가중치를 부여하는 경우, 가중치는 지정된 값 이하로 설정될 수 있다.However, when the weight is set too high, as shown in FIG. 7B , a session with a high initial execution score (eg, a first session, a second session, or a third session) is a session with a low initial execution score (eg: 4th session or 5th session), there may be a high probability that the session having a high initial execution score is terminated. Accordingly, in the case of assigning weights in a static manner, the weights may be set to be less than or equal to a specified value.
도 8a는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 동적인 값으로 설정된 경우의 스케줄링 결과를 나타낸 도면이고, 도 8b는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 동적인 값으로 설정된 경우의 실행 스코어를 나타낸 도면이며, 도 8c는 본 발명의 일 실시예에 따른 세션들 각각에 대한 실행 스코어에 적용되는 가중치가 동적인 값으로 설정된 경우의 스케줄링되지 못한 레인징 라운드의 수를 나타낸 도면이다.8A is a diagram illustrating a scheduling result when a weight applied to an execution score for each session is set to a dynamic value according to an embodiment of the present invention, and FIG. 8B is a diagram showing sessions according to an embodiment of the present invention. It is a diagram showing an execution score when the weight applied to the execution score for each is set to a dynamic value, and FIG. 8c is a dynamic value of the weight applied to the execution score for each of the sessions according to an embodiment of the present invention. It is a diagram showing the number of unscheduled ranging rounds when set to .
도 8a 내지 도 8c를 참조하면, 전자 장치(예: 도 2의 전자 장치(200))의 스케줄러(예: 도 2의 스케줄러(211))는 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 동적인 값으로 가중치를 적용할 수 있다. 예를 들어, 상기 스케줄러는 복수의 세션들 각각에 대해 서로 다른 가중치를 적용할 수 있다. 예를 들어, 상기 수학식 1에서 Wi가 세션별로 다르게 설정될 수 있다.8A to 8C , the scheduler (eg, the scheduler 211 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) performs an unscheduled ranging round for each of a plurality of sessions Weights can be applied as dynamic values to the number of For example, the scheduler may apply different weights to each of the plurality of sessions. For example, in Equation 1 above, W i may be set differently for each session.
일 실시예에 따르면, 상기 스케줄러는 복수의 세션들 각각에 대한 실행 스코어, 상기 복수의 세션들에 대한 잔여 실행 횟수, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 및 상기 복수의 세션들 각각에 대한 지정된 시간 초과에 의한 레인징 실패의 수 중 적어도 하나에 기반하여, 상기 가중치를 설정할 수 있다. 일 예로, 상기 스케줄러는 특정 세션에 대한 실행 스코어가 낮을수록, 상기 특정 세션에 대한 잔여 실행 횟수가 적을수록, 상기 특정 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 많을수록, 상기 특정 세션에 대한 지정된 시간 초과에 의한 레인징 실패의 수가 많을수록, 상기 특정 세션에 적용되는 가중치를 높게 설정할 수 있다.According to an embodiment, the scheduler is configured to: an execution score for each of the plurality of sessions, the number of remaining executions for the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, and the plurality of The weight may be set based on at least one of the number of ranging failures due to a specified timeout for each of the sessions of . As an example, the scheduler determines that the lower the execution score for the specific session, the smaller the number of remaining executions for the specific session, the greater the number of unscheduled ranging rounds for the specific session, the higher the number of unscheduled ranging rounds for the specific session. As the number of ranging failures due to excess increases, a weight applied to the specific session may be set higher.
복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수에 동적인 값으로 가중치를 적용한 경우, 도 8b에 도시된 바와 같이, 초기 실행 스코어가 높은 세션(예: 제1 세션, 제2 세션 또는 제3 세션)의 실행 확률도 높아지고, 초기 실행 스코어가 낮은 세션(예: 제4 세션 또는 제5 세션)의 실행 확률도 높아질 수 있다. 또한, 상기 초기 실행 스코어가 낮은 세션의 경우, 상기 스케줄링되지 못한 레인징 라운드의 수가 지정된 시간 초과에 의한 레인징 실패의 수(예: 10회)보다 커지기 전에 상기 세션이 실행될 확률이 높아질 수 있다.When a weight is dynamically applied to the number of unscheduled ranging rounds for each of a plurality of sessions, as shown in FIG. 8B , a session with a high initial execution score (eg, the first session, the second session, or The execution probability of the third session) may also increase, and the execution probability of a session (eg, the fourth session or the fifth session) having a low initial execution score may also increase. Also, in the case of a session having a low initial execution score, the probability that the session will be executed before the number of unscheduled ranging rounds becomes greater than the number of ranging failures due to a specified timeout (eg, 10) may increase.
도 9는 본 발명의 일 실시예에 따른 세션의 경쟁 구간 또는 레인징 라운드의 지속 기간 중 적어도 하나를 조절하는 방법을 설명하기 위한 도면이다.9 is a diagram for explaining a method of adjusting at least one of a contention period of a session or a duration of a ranging round according to an embodiment of the present invention.
도 9를 참조하면, 전자 장치(예: 도 2의 전자 장치(200))의 통신 모듈(예: 도 2의 통신 모듈(210))은 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간 중 적어도 하나를 감소시킬 수 있다. 상기 통신 모듈은 낮은 실행 스코어를 가지는 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간을 감소시킴으로써, 상기 낮은 실행 스코어를 가지는 세션의 실행 확률을 높일 수 있다. 일 실시예에 따르면, 상기 통신 모듈은 상기 낮은 실행 스코어를 가지는 세션이 컨텐츠 공유(예: 퀵 쉐어) 서비스를 제공하는 어플리케이션에 대응되는 세션일 때, 상기 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간을 감소시킬 수 있다.Referring to FIG. 9 , the communication module (eg, the communication module 210 of FIG. 2 ) of the electronic device (eg, the electronic device 200 of FIG. 2 ) collides with at least two sessions among a plurality of sessions, At least one of a contention interval or a duration of a ranging round in a session having a low execution score among the at least two sessions may be reduced. The communication module may increase the execution probability of the session having the low execution score by reducing the duration of the contention period or the ranging round in the session having the low execution score. According to an embodiment, when the session having the low execution score is a session corresponding to an application providing a content sharing (eg, quick share) service, the communication module is configured to maintain a contention period or a ranging round in the session period can be reduced.
예를 들어, 도 9에 도시된 바와 같이, 제1 세션(예: 퀵 쉐어를 위한 세션)의 경쟁 구간이 제1 시간 간격(예: 20ms)이면서 제2 세션(예: 카 액세스를 위한 세션)을 위한 다음 RCM이 전송되는 슬롯(예: 슬롯 101 및 슬롯 102)보다 이전 슬롯에 스케줄링 가능할 때, 상기 통신 모듈은 상기 제1 세션 및 상기 제2 세션의 충돌없이, 상기 제1 세션의 경쟁 구간의 시간 간격을 고려하여, 상기 제2 세션의 다음 RCM이 전송되는 슬롯보다 이전 슬롯(예: 슬롯 80 및 슬롯 180)에 상기 제1 세션의 경쟁 구간을 설정할 수 있다. 그러나, 상기 제1 세션의 경쟁 구간이 상기 제2 세션을 위한 다음 RCM이 전송되는 슬롯보다 이전 슬롯에 스케줄링 가능하지 않을 경우(예: 상기 제1 세션의 요청이 슬롯 90 또는 슬롯 190에서 시작되는 경우), 상기 제1 세션과 상기 제2 세션이 충돌될 수 있다. 이때, 상기 통신 모듈은 상기 제1 세션의 경쟁 구간을 상기 제1 시간 간격에서 제2 시간 간격(예: 10ms)으로 감소시킬 수 있다. 이 경우, 상기 통신 모듈은 상기 제1 세션 및 상기 제2 세션의 충돌없이, 상기 제1 세션의 경쟁 구간을 설정할 수 있다. 또한, 상기 통신 모듈은 상기 제1 세션 및 상기 제2 세션의 충돌없이 다음 레인징 라운드가 되면, 상기 제1 세션의 경쟁 구간을 복구할 수 있다. 예를 들어, 상기 통신 모듈은 상기 제1 세션의 경쟁 구간을 상기 제2 시간 간격에서 상기 제1 시간 간격으로 변경할 수 있다.For example, as shown in FIG. 9 , the contention period of the first session (eg, session for quick share) is the first time interval (eg, 20 ms) and the second session (eg, session for car access) When scheduling is possible in a slot earlier than the slot in which the next RCM is transmitted (eg, slot 101 and slot 102), the communication module performs the first session without collision with the second session, Considering the time interval, the contention period of the first session may be set in a slot (eg, slot 80 and slot 180) before the slot in which the next RCM of the second session is transmitted. However, when the contention period of the first session is not schedulable in a slot earlier than the slot in which the next RCM for the second session is transmitted (eg, when the request of the first session starts in slot 90 or slot 190) ), the first session and the second session may collide. In this case, the communication module may reduce the contention period of the first session from the first time interval to a second time interval (eg, 10 ms). In this case, the communication module may set the contention period of the first session without collision of the first session and the second session. Also, the communication module may recover the contention period of the first session when the next ranging round is reached without collision of the first session and the second session. For example, the communication module may change the contention period of the first session from the second time interval to the first time interval.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제1", "제2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제1) 구성요소가 다른(예: 제2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but it should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "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 "A , B, or C" each may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as “first”, “second”, or “first” or “second” may simply be used to distinguish the component from other components in question, and may refer to components in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101))에 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document include one or more stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). It may be implemented as software (eg, the program 140) including instructions. For example, a processor (eg, processor 120 ) of a device (eg, electronic device 101 ) may call at least one command among one or more commands stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be included in a computer program product (computer program product) and provided. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed online (eg download or upload), directly between smartphones (eg smartphones). In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.

Claims (15)

  1. 전자 장치에 있어서,In an electronic device,
    초광대역 통신을 지원하는 통신 모듈;Communication module supporting ultra-wideband communication;
    상기 초광대역 통신을 이용한 서비스를 지원하는 어플리케이션을 저장하는 메모리;a memory for storing an application supporting a service using the ultra-wideband communication;
    상기 통신 모듈 및 상기 메모리와 작동적으로 연결된 프로세서; 및a processor operatively coupled to the communication module and the memory; and
    상기 프로세서와 작동적으로 연결된 스케줄러를 포함하고,a scheduler operatively coupled to the processor;
    상기 스케줄러는,The scheduler is
    복수의 외부 전자 장치들과 통신하기 위한 복수의 세션들을 설정하고,establishing a plurality of sessions for communicating with a plurality of external electronic devices;
    상기 복수의 세션들 각각에 대한 실행 스코어를 산출하고,calculating an execution score for each of the plurality of sessions;
    상기 복수의 세션들 각각에 대한 실행 스코어를 기반으로, 상기 복수의 세션들에 대한 스케줄링을 수행하도록 설정되고,is configured to perform scheduling for the plurality of sessions based on the execution score for each of the plurality of sessions,
    상기 복수의 세션들 각각에 대한 실행 스코어는,The execution score for each of the plurality of sessions is,
    상기 복수의 세션들 각각에 대응하는 어플리케이션의 우선 순위, 상기 복수의 세션들 각각에 대한 상기 전자 장치의 역할, 상기 복수의 세션들 각각의 레인징 라운드의 지속 기간, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 또는 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여 산출되는 전자 장치.Priority of an application corresponding to each of the plurality of sessions, a role of the electronic device for each of the plurality of sessions, duration of a ranging round of each of the plurality of sessions, The electronic device is calculated based on at least one of the number of unscheduled ranging rounds and a weight given to the number of unscheduled ranging rounds.
  2. 청구항 1에 있어서,The method according to claim 1,
    상기 스케줄러는,The scheduler is
    상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행하도록 설정된 전자 장치.The electronic device is configured to perform scheduling such that, when at least two sessions of the plurality of sessions collide, a session having a higher execution score among the at least two sessions is preferentially executed.
  3. 청구항 2에 있어서,3. The method according to claim 2,
    상기 스케줄러는,The scheduler is
    상기 높은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 초기 값으로 설정하고,setting the number of unscheduled ranging rounds for the session with the high execution score as an initial value;
    상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 증가시키도록 설정된 전자 장치.The electronic device is configured to increase the number of unscheduled ranging rounds for a session having a low execution score among the at least two sessions.
  4. 청구항 3에 있어서,4. The method according to claim 3,
    상기 스케줄러는,The scheduler is
    상기 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 지정된 시간 초과에 의한 레인징 실패의 수보다 크면, 상기 낮은 실행 스코어를 가지는 세션을 종료하고, 상기 프로세서로 상기 낮은 실행 스코어를 가지는 세션에 대한 상태를 전달하도록 설정된 전자 장치.If the number of unscheduled ranging rounds for the session with the low execution score is greater than the number of ranging failures due to a specified timeout, the session with the low execution score is terminated, and the processor with the low execution score An electronic device set up to communicate state about a session.
  5. 청구항 1에 있어서,The method according to claim 1,
    상기 가중치는 지정된 값으로 설정되는 전자 장치.The weight is set to a specified value.
  6. 청구항 1에 있어서,The method according to claim 1,
    상기 가중치는 상기 복수의 세션들 각각에 대한 실행 스코어, 상기 복수의 세션들에 대한 잔여 실행 횟수, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 및 상기 복수의 세션들 각각에 대한 지정된 시간 초과에 의한 레인징 실패의 수 중 적어도 하나에 기반하여 설정되는 전자 장치.The weight is an execution score for each of the plurality of sessions, the number of remaining executions for the plurality of sessions, the number of unscheduled ranging rounds for each of the plurality of sessions, and the number of unscheduled ranging rounds for each of the plurality of sessions. An electronic device configured based on at least one of a number of ranging failures due to a specified timeout for
  7. 청구항 1에 있어서,The method according to claim 1,
    상기 어플리케이션의 우선 순위는 상기 어플리케이션의 실행 상태 및 상기 어플리케이션이 지원하는 서비스의 종류 중 적어도 하나에 기반하여 설정되는 전자 장치.The priority of the application is set based on at least one of an execution state of the application and a type of service supported by the application.
  8. 청구항 1에 있어서,The method according to claim 1,
    상기 전자 장치의 역할은 상기 전자 장치가 통신 대상인 외부 전자 장치를 제어하는 장치인지 또는 상기 외부 전자 장치로부터 제어되는 장치인지에 대한 여부, 및 상기 전자 장치가 상기 외부 전자 장치를 제어하는 장치인 경우에 상기 전자 장치가 제어하고 있는 외부 전자 장치의 수 중 적어도 하나에 기반하여 설정되는 전자 장치.The role of the electronic device determines whether the electronic device is a device for controlling an external electronic device, a communication target, or a device controlled by the external electronic device, and when the electronic device is a device for controlling the external electronic device An electronic device configured based on at least one of the number of external electronic devices controlled by the electronic device.
  9. 청구항 1에 있어서,The method according to claim 1,
    상기 스케줄러는,The scheduler is
    상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간 중 적어도 하나를 감소시키도록 설정된 전자 장치.The electronic device is configured to reduce at least one of a contention period or a duration of a ranging round in a session having a lower execution score among the at least two sessions when at least two of the plurality of sessions collide.
  10. 청구항 1에 있어서,The method according to claim 1,
    상기 스케줄러는 상기 통신 모듈, 상기 프로세서 또는 인공지능 모듈 중 적어도 하나에 포함되는 전자 장치.The scheduler is an electronic device included in at least one of the communication module, the processor, and the artificial intelligence module.
  11. 무선 통신 시스템에서의 멀티 세션에 대한 스케줄링 방법에 있어서,In a scheduling method for a multi-session in a wireless communication system,
    복수의 외부 전자 장치들과 통신하기 위한 복수의 세션들을 설정하는 동작;establishing a plurality of sessions for communicating with a plurality of external electronic devices;
    상기 복수의 세션들 각각에 대한 실행 스코어를 산출하는 동작; 및calculating an execution score for each of the plurality of sessions; and
    상기 복수의 세션들 각각에 대한 실행 스코어를 기반으로, 상기 복수의 세션들에 대한 스케줄링을 수행하는 동작을 포함하고,Based on the execution score for each of the plurality of sessions, comprising the operation of performing scheduling for the plurality of sessions,
    상기 복수의 세션들 각각에 대한 실행 스코어는,The execution score for each of the plurality of sessions is,
    상기 복수의 세션들 각각에 대응하는 어플리케이션의 우선 순위, 상기 복수의 세션들 각각에 대한 전자 장치의 역할, 상기 복수의 세션들 각각의 레인징 라운드의 지속 기간, 상기 복수의 세션들 각각에 대한 스케줄링되지 못한 레인징 라운드의 수, 또는 상기 스케줄링되지 못한 레인징 라운드의 수에 부여되는 가중치 중 적어도 하나에 기반하여 산출되는 방법.Priority of an application corresponding to each of the plurality of sessions, a role of the electronic device for each of the plurality of sessions, a duration of a ranging round of each of the plurality of sessions, scheduling for each of the plurality of sessions The method is calculated based on at least one of the number of non-scheduled ranging rounds and a weight given to the number of unscheduled ranging rounds.
  12. 청구항 11에 있어서,12. The method of claim 11,
    상기 복수의 세션들에 대한 스케줄링을 수행하는 동작은,The operation of scheduling the plurality of sessions includes:
    상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행하는 동작을 포함하는 방법.and performing scheduling such that, when at least two sessions of the plurality of sessions collide, a session having a higher execution score among the at least two sessions is preferentially executed.
  13. 청구항 12에 있어서,13. The method of claim 12,
    상기 높은 실행 스코어를 가지는 세션이 우선적으로 실행되도록 스케줄링을 수행하는 동작은,The operation of scheduling so that the session having the high execution score is executed preferentially includes:
    상기 높은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 초기 값으로 설정하는 동작; 및setting the number of unscheduled ranging rounds for the session having the high execution score to an initial value; and
    상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수를 증가시키는 동작을 포함하는 방법.and increasing a number of unscheduled ranging rounds for a session having a lower execution score of the at least two sessions.
  14. 청구항 13에 있어서,14. The method of claim 13,
    상기 복수의 세션들에 대한 스케줄링을 수행하는 동작은,The operation of scheduling the plurality of sessions includes:
    상기 낮은 실행 스코어를 가지는 세션에 대한 스케줄링되지 못한 레인징 라운드의 수가 지정된 시간 초과에 의한 레인징 실패의 수보다 크면, 상기 낮은 실행 스코어를 가지는 세션을 종료하고, 상기 전자 장치의 프로세서로 상기 낮은 실행 스코어를 가지는 세션에 대한 상태를 전달하는 동작을 더 포함하는 방법.If the number of unscheduled ranging rounds for the session with the low execution score is greater than the number of ranging failures due to a specified timeout, the session with the low execution score is terminated, and the low execution rate is executed by the processor of the electronic device. The method further comprising conveying status for the session having the score.
  15. 청구항 11에 있어서,12. The method of claim 11,
    상기 복수의 세션들에 대한 스케줄링을 수행하는 동작은,The operation of scheduling the plurality of sessions includes:
    상기 복수의 세션들 중 적어도 두 개의 세션들이 충돌하는 경우, 상기 적어도 두 개의 세션들 중 낮은 실행 스코어를 가지는 세션에서의 경쟁 구간 또는 레인징 라운드의 지속 기간 중 적어도 하나를 감소시키는 동작을 포함하는 방법.reducing at least one of a contention interval or a duration of a ranging round in a session having a lower execution score of the at least two sessions when at least two of the plurality of sessions collide .
PCT/KR2021/009952 2020-07-31 2021-07-30 Method for scheduling multiple sessions in wireless communication system, and electronic device supporting same WO2022025693A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2020-0096332 2020-07-31
KR1020200096332A KR20220015812A (en) 2020-07-31 2020-07-31 Method for scheduling of multi-session in wireless communication system and electronic device supporting the same

Publications (1)

Publication Number Publication Date
WO2022025693A1 true WO2022025693A1 (en) 2022-02-03

Family

ID=80035920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/009952 WO2022025693A1 (en) 2020-07-31 2021-07-30 Method for scheduling multiple sessions in wireless communication system, and electronic device supporting same

Country Status (2)

Country Link
KR (1) KR20220015812A (en)
WO (1) WO2022025693A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11457330B2 (en) 2020-08-25 2022-09-27 Cisco Technology, Inc. Dynamic anchor assignments for UWB ranging
US11470571B2 (en) 2020-08-25 2022-10-11 Cisco Technology, Inc. Assigning UWB anchors for client ranging
US11533698B2 (en) 2020-12-16 2022-12-20 Cisco Technology, Inc. Mapping method to compensate for UWB coverage gaps
US11564057B2 (en) * 2020-08-25 2023-01-24 Cisco Technology, Inc. Prioritized scheduling for UWB ranging
US11644525B2 (en) 2020-11-04 2023-05-09 Cisco Technology, Inc. Location accuracy augmentation method with ultra wideband
US11828832B2 (en) 2020-08-25 2023-11-28 Cisco Technology, Inc. Infrastructure triggering techniques to facilitate secure ultra-wideband (UWB) ranging

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016081442A1 (en) * 2014-11-18 2016-05-26 T-Mobile Usa, Inc. Application-based multi-band transmission
US20180338331A1 (en) * 2017-05-22 2018-11-22 David R. Hall Apparatus for Distributing Short-Range Wireless Signals using an Interconnection Protocol for Electronic Devices
US20190386918A1 (en) * 2018-06-16 2019-12-19 Versa Networks, Inc. Application performance based path-selection using dynamic metrics
US20200092216A1 (en) * 2016-09-13 2020-03-19 Gogo Llc User directed bandwidth optimization
US20200137518A1 (en) * 2018-07-06 2020-04-30 Apple Inc. Ranging Priority Indication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016081442A1 (en) * 2014-11-18 2016-05-26 T-Mobile Usa, Inc. Application-based multi-band transmission
US20200092216A1 (en) * 2016-09-13 2020-03-19 Gogo Llc User directed bandwidth optimization
US20180338331A1 (en) * 2017-05-22 2018-11-22 David R. Hall Apparatus for Distributing Short-Range Wireless Signals using an Interconnection Protocol for Electronic Devices
US20190386918A1 (en) * 2018-06-16 2019-12-19 Versa Networks, Inc. Application performance based path-selection using dynamic metrics
US20200137518A1 (en) * 2018-07-06 2020-04-30 Apple Inc. Ranging Priority Indication

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11457330B2 (en) 2020-08-25 2022-09-27 Cisco Technology, Inc. Dynamic anchor assignments for UWB ranging
US11470571B2 (en) 2020-08-25 2022-10-11 Cisco Technology, Inc. Assigning UWB anchors for client ranging
US11564057B2 (en) * 2020-08-25 2023-01-24 Cisco Technology, Inc. Prioritized scheduling for UWB ranging
US11812334B2 (en) 2020-08-25 2023-11-07 Cisco Technology, Inc. Dynamic anchor assignments for UWB ranging
US11832208B2 (en) 2020-08-25 2023-11-28 Cisco Technology, Inc. Assigning UWB anchors for client ranging
US11828832B2 (en) 2020-08-25 2023-11-28 Cisco Technology, Inc. Infrastructure triggering techniques to facilitate secure ultra-wideband (UWB) ranging
US11838830B2 (en) 2020-08-25 2023-12-05 Cisco Technology, Inc. Prioritized scheduling for UWB ranging
US11644525B2 (en) 2020-11-04 2023-05-09 Cisco Technology, Inc. Location accuracy augmentation method with ultra wideband
US11533698B2 (en) 2020-12-16 2022-12-20 Cisco Technology, Inc. Mapping method to compensate for UWB coverage gaps

Also Published As

Publication number Publication date
KR20220015812A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
WO2022025693A1 (en) Method for scheduling multiple sessions in wireless communication system, and electronic device supporting same
WO2022065945A1 (en) Positioning method using multiple devices and electronic device therefor
WO2022158763A1 (en) Electronic device for establishing communication connection to external electronic device and operation method thereof
WO2022231205A1 (en) Electronic device for transmitting/receiving data during uwb ranging, and method therefor
WO2022164148A2 (en) Electronic device for broadcasting advertisement packets together with counterpart electronic device, and operating method thereof
WO2022225188A1 (en) Method and device for processing back-off on basis of scan duty
WO2022055245A1 (en) Method and electronic device for improving wireless communication performance
WO2023075171A1 (en) Electronic device for supporting wireless communication
WO2023054842A1 (en) Positioning method using wireless communication, and electronic device for supporting same
WO2021210916A1 (en) Method for transmitting and receiving data and electronic device supporting the same
WO2023003167A1 (en) Electronic device for carrying out media synchronization of link and operation method of electronic device
WO2022255567A1 (en) Electronic device for receiving time difference of arrival messages, and operating method therefor
WO2024019330A1 (en) Device and method for controlling radio waves in bluetooth environment
WO2022019455A1 (en) Method and device for performing communication
WO2024034784A1 (en) Electronic device, method, and non-transitory computer-readable storage medium for performing advertising process synchronized with advertising process in another electronic device
WO2023038303A1 (en) Electronic device, method, and computer readable storage medium for managing transmission to external electronic device within wireless environment
WO2024063327A1 (en) Electronic device for managing keep alive period and operating method thereof
WO2023075399A1 (en) Electronic device for positioning and operation method thereof
WO2023096077A1 (en) Electronic device, method, and computer readable storage medium for changing reception timing from external electronic device within wireless environment
WO2024053910A1 (en) Apparatus and method for selecting accelerator suitable for machine learning model
WO2022114562A1 (en) Electronic device and operation method thereof
WO2023058868A1 (en) Electronic device for positioning and operating method therefor
WO2023277374A1 (en) Electronic device using uwb signal, and method
WO2023063580A1 (en) Method for performing wireless communication and electronic device supporting same
WO2022030853A1 (en) Electronic device and method for performing communication using same

Legal Events

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

Ref document number: 21851046

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21851046

Country of ref document: EP

Kind code of ref document: A1