WO2023284805A1 - Channel selection method, devices, storage medium and chip - Google Patents

Channel selection method, devices, storage medium and chip Download PDF

Info

Publication number
WO2023284805A1
WO2023284805A1 PCT/CN2022/105563 CN2022105563W WO2023284805A1 WO 2023284805 A1 WO2023284805 A1 WO 2023284805A1 CN 2022105563 W CN2022105563 W CN 2022105563W WO 2023284805 A1 WO2023284805 A1 WO 2023284805A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
terminal device
quality information
electronic device
candidate channels
Prior art date
Application number
PCT/CN2022/105563
Other languages
French (fr)
Chinese (zh)
Inventor
王春风
廖欣
李�杰
许金良
罗芊
樊晓宇
徐赛
何斌
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023284805A1 publication Critical patent/WO2023284805A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3005Mechanisms for avoiding name conflicts
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Definitions

  • the present disclosure relates to the communication field, and more particularly, to a channel selection method, device, storage medium and chip.
  • a Wi-Fi device may work in a 2.4 Gigahertz (Gigahertz, GHz) frequency band and a 5 GHz frequency band.
  • the 2.4GHz frequency band is an IST public frequency band, and multiple devices sharing this frequency band will interfere with each other.
  • the 5GHz frequency band has higher data transmission efficiency than the 2.4GHz frequency band.
  • 5GHz has a high frequency, but its penetration is poor, especially in home application scenarios, and its ability to penetrate walls will be worse than that of 2.4GHz.
  • Wi-Fi realizes the frequency domain multiplexing of 40MHz, 80MHz, 120MHz, and 160MHz by superimposing every 20MHz, it is easy to have channel overlap.
  • Mutual interference of signals from multiple devices and overlapping channels will lead to communication rate fluctuations, serious network retransmissions, and low communication service quality experienced by users.
  • Embodiments of the present disclosure provide a channel selection method, device, storage medium and chip.
  • a channel selection method includes: the first terminal device establishes a communication service with the second terminal device through the first channel.
  • the first terminal device acquires quality information of the first channel. If the first terminal device determines that the quality of the first channel indicated by the quality information is lower than the threshold, it switches the communication service from the first channel to the second channel. In this way, the working channel can be reselected for switching based on the quality information of the working channel during the running of the communication service, thereby improving the communication service quality.
  • the channel quality information may include information related to at least one of channel quality of service (Quality of Service, QoS) and channel quality.
  • QoS Quality of Service
  • the information related to the QoS of the channel can be used to determine the switching opportunity of the channel.
  • the information related to the QoS of the channel may include but not limited to: packet loss rate, retransmission times, sending and receiving rate, and round-trip time.
  • Information about channel quality can be used to select the channel to be switched.
  • information related to channel quality may include, but not limited to: channel load (chload), signal-to-noise ratio (SNR), interference number (SignalNum), signal strength (SignalRSSI), round-trip time delay (RTT), bandwidth (BW ), jitter (Jitter), noise (Noise).
  • the first terminal device may acquire quality information of multiple candidate channels, where the multiple candidate channels include the second channel. Furthermore, the first terminal device may switch the communication service from the first channel to the second channel based at least on the quality information of multiple candidate channels. For example, the first terminal device may measure the quality of multiple candidate channels by itself, so as to acquire quality information of the multiple candidate channels. Alternatively, the first terminal device may also receive quality information of multiple candidate channels measured by other terminal devices from other terminal devices. In this way, in the case that the first terminal device may not be convenient to measure the quality of the candidate channel due to the current deployment of services, the first terminal device can also perform channel switching based on the quality information of multiple candidate channels received from other terminal devices .
  • the first terminal device may receive quality information for a first subset of the plurality of candidate channels from the second terminal device.
  • the first terminal device may determine quality information for a second subset of the plurality of candidate channels.
  • the first terminal device may select the second channel from the intersection of the first subset and the second subset based on the quality information of the first subset and the quality information of the second subset. In this manner, the first terminal device and the second terminal device can select a channel to be switched through negotiation.
  • the first terminal device may determine first quality information for the plurality of candidate channels and may receive second quality information for the plurality of candidate channels from the third terminal device. Furthermore, the first terminal device may update the first quality information based on the second quality information, so as to use the updated first quality information as the quality information. In this manner, when the first terminal device has weak measurement capabilities or can only measure part of channel parameters, all channel parameters can be obtained by receiving channel quality information from other terminal devices.
  • the fourth terminal device when the fourth terminal device joins the communication network where the first terminal device is located for the first time, it may not have channel quality information. In this case, the first terminal device may send channel quality information to the fourth terminal device, so as to facilitate the rapid establishment of communication services between the fourth terminal device and other terminal devices.
  • a quality threshold for a channel may be associated with a type of communication traffic. Thus, different thresholds may be determined according to different communication service types, thereby determining different channel switching opportunities.
  • the first terminal device may reduce the quality of the communication service if the quality of the channel is lower than a threshold.
  • the first terminal device may reacquire the quality information of the first channel after a predetermined period of time. If the quality of the first channel indicated by the reacquired quality information is still lower than the threshold, the first terminal device may switch the communication service from the first channel to the second channel. Thus, frequent channel switching can be avoided.
  • an electronic device in a second aspect, includes one or more processors and memory.
  • One or more computer programs are stored in the memory.
  • One or more computer programs include instructions. When the instruction is executed by the electronic device, the electronic device is made to execute the method according to the first aspect.
  • a computer readable storage medium has instructions stored therein. When the instruction is run on the electronic device, the electronic device is made to execute the method according to the first aspect.
  • a chip in a fourth aspect, includes processing circuitry.
  • the processing circuit is configured to perform the method according to the first aspect.
  • Figure 1 shows a schematic block diagram of a communication network in which embodiments of the present disclosure may be implemented
  • Fig. 2 shows a schematic diagram of an interface of a terminal device according to some embodiments of the present disclosure
  • FIG. 3 shows a signaling interaction diagram of a channel selection process according to some embodiments of the present disclosure
  • Fig. 4 shows a signaling interaction diagram of a channel selection process according to other embodiments of the present disclosure
  • FIG. 5 shows a signaling interaction diagram of a channel selection process according to still other embodiments of the present disclosure
  • Figure 6 shows a flowchart of an example method for channel selection according to some embodiments of the present disclosure
  • FIG. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 8 shows a schematic diagram of the software structure of an electronic device with an Android (Android) system with a layered architecture according to an embodiment of the present disclosure.
  • Fig. 1 shows a schematic block diagram of an example communication network 100 in which embodiments of the present disclosure may be implemented.
  • the communication network 100 may include terminal devices 110 , 120 , 130 and a router 140 .
  • the terminal devices 110 , 120 , 130 are respectively shown as a personal computer, a mobile phone (also called a mobile phone) and a tablet computer.
  • each of the terminal devices 110, 120, 130 may be other electronic devices.
  • Examples of other electronic devices may include, but are not limited to: tablet computers, televisions (also known as smart screens or big screen devices), ultra-mobile personal computers (UMPCs), handheld computers, netbooks, personal digital assistants (personal digital assistant, PDA), vehicle equipment (also known as car machine), wearable electronic equipment, virtual reality equipment, etc.
  • UMPCs ultra-mobile personal computers
  • PDA personal digital assistant
  • vehicle equipment also known as car machine
  • wearable electronic equipment virtual reality equipment
  • terminal devices and routers shown in FIG. 1 are only for illustration, and the communication network 100 may include more or fewer terminal devices and routers, which is not limited in this embodiment of the present disclosure.
  • the terminal devices 110, 120, 130 and the router 140 can form a network through wired, wireless or a combination of both.
  • the networking refers to that the terminal devices 110, 120, and 130 complete device discovery based on heartbeat messages, and there is no actual connection.
  • Wireless methods may include, but are not limited to, Bluetooth (BT), Wireless Fidelity (Wi-Fi), Near Field Communication (NFC), Frequency Modulation (FM), Zigbee, Infrared (infrared, IR) technology, etc., where Bluetooth can be traditional Bluetooth or Bluetooth Low Energy (Bluetooth Low Energy, BLE).
  • Each of the terminal devices 110, 120, 130 and the router 140 periodically sends a heartbeat message to identify itself as being online. Any one of the terminal devices 110, 120, 130 and the router 140 can discover other devices based on heartbeat messages received from other devices. Furthermore, the terminal devices 110 , 120 , 130 and the router 140 can perform credible authentication based on the same user name, based on scanning a code, or inputting a PIN code. After the trusted authentication is completed, the terminal devices 110, 120, 130 and the router 140 can form a network. There may not necessarily be an actual connection between the terminal devices 110, 120, and 130 after networking.
  • the terminal devices 110 , 120 and 130 can form a local area network via the router 140 .
  • the router 140 can be set as an access point (Access Point, AP), and the terminal devices 110, 120 and 130 can access the router 140 as a station (Station).
  • AP access point
  • Station station
  • the router 140 may not participate in the networking, so the router 140 is not required to send and receive heartbeat messages, and the router 140 only supports forwarding heartbeat messages.
  • the router 140 may also participate in networking, in which case the router 140 will send and receive heartbeat messages.
  • the terminal devices 110 , 120 and 130 may form a network without the router 140 .
  • FIG. 2 shows a schematic diagram of an interface 200 of one terminal device (for example, terminal device 120 ) after each terminal device in FIG. 1 is networked.
  • the interface 200 may be a main interface, a background interface, or a negative screen of the terminal device. It can be seen from the interface 200 that the icon 110-1 of the terminal device 110 and the icon 130-1 of the terminal device 130 are floating around the icon 120-1 of the terminal device 120, which means that the terminal device 110, the terminal device 120 and the terminal device 130 have The networking is completed.
  • any two terminal devices among the terminal devices 110, 120 and 130 can establish a connection in response to the initiation of a communication service.
  • the connection can be a wired connection or a wireless connection.
  • Examples of the communication service may include, but are not limited to: distributed multi-screen collaboration, file transfer, distributed file system, distributed data management, and the like.
  • any two terminal devices among the terminal devices 110 , 120 and 130 may be connected via the router 140 .
  • any two terminal devices among the terminal devices 110, 120, and 130 may be directly connected in a peer-to-peer (Peer-to-Peer, P2P) manner.
  • P2P peer-to-peer
  • two terminal devices can negotiate P2P-related parameters with each other.
  • the two terminal devices can negotiate with each other which terminal device will act as the group owner (Group Owner, GO), P2P connection key, and so on.
  • any two terminal devices among the terminal devices 110, 120, and 130 may also be directly connected in a shared manner.
  • one of the two terminal devices is virtualized as an AP (also called SoftAp) to realize the connection.
  • terminal devices 110 and 120 establishing a P2P connection to run a screen projection service (ie, projecting content displayed on the screen of terminal device 110 to terminal device 120 ) as an example.
  • a screen projection service ie, projecting content displayed on the screen of terminal device 110 to terminal device 120
  • connections other than P2P connections may be established between terminal devices 110 and 120 .
  • Embodiments of the present disclosure do not impose any limitation on this.
  • the embodiments of the present disclosure can be applied to other scenarios of channel selection, and are not limited to the scenario of connecting terminal devices through P2P, SoftAp or AP-Station.
  • the terminal device 110 may serve as a GO, and the terminal device 120 may serve as a GC.
  • one of the terminal device 110 and the terminal device 120 will select an appropriate candidate channel from multiple candidate channels as a working channel between them to run communication services.
  • the working channel selected before running the communication service is also referred to as the first channel.
  • the terminal device serving as GO among the terminal devices 110 and 120 may select a working channel.
  • the terminal device serving as the GC among the terminal devices 110 and 120 may also select the working channel, which is not limited in this embodiment of the present disclosure.
  • the terminal device acting as GO may measure the channel quality of multiple candidate channels to obtain the first measurement result of the channel.
  • a terminal device acting as a GO may determine evaluation scores for a plurality of candidate channels based at least on the first measurement result. The evaluation scores each indicate the channel quality of the corresponding candidate channel.
  • a terminal device acting as a GC may also measure channel qualities of multiple candidate channels to obtain a second channel measurement result.
  • a terminal device acting as a GC may determine evaluation scores for the plurality of candidate channels based at least on the second measurement result. Details about determining the evaluation scores of multiple candidate channels will be described in detail in the section "Channel Measurement, Measurement Result Synchronization, and Channel Score Matrix Construction" below.
  • the terminal device acting as the GO among the terminal devices 110 and 120 may select a candidate channel from the multiple candidate channels as the working channel based on the evaluation scores of the multiple candidate channels determined by itself.
  • the terminal devices 110 and 120 may determine the working channel through negotiation. Such an embodiment will be described below with reference to FIG. 3 .
  • FIG. 3 shows a signaling interaction diagram of a channel selection process 300 according to some embodiments of the present disclosure.
  • channel selection process 300 will be described with reference to various elements shown in FIG. 1 . However, it should be understood that the channel selection process 300 may also be performed in any other communication scenario.
  • the terminal device 110 acts as a GO
  • the terminal device 120 acts as a GC
  • the terminal device 110 acting as a GO selects a working channel.
  • the terminal device 120 may select (310) a subset (also referred to as subset A) of the plurality of candidate channels based on the evaluation scores of the plurality of candidate channels determined by itself.
  • the plurality of candidate channels may be a collection of channels supported by the terminal devices 110 and 120 .
  • subset A may include candidate channels supported by terminal device 120.
  • the terminal device 120 may send (320) the information of the subset A of the plurality of candidate channels to the terminal device 110 . Accordingly, terminal device 110 may receive ( 330 ) information of subset A of the plurality of candidate channels from terminal device 120 .
  • the terminal device 120 may send the information of the subset A of multiple candidate channels to the terminal device 110 in the form of a channel list (also referred to as a channel list A).
  • a channel list also referred to as a channel list A.
  • Candidate channels in channel list A may be arranged in order of evaluation scores.
  • the candidate channels in the channel list A may be arranged in order of evaluation scores from high to low or from low to high.
  • the terminal device 120 can work in multiple frequency bands.
  • the terminal device 120 may respectively determine a channel sub-table for multiple frequency bands, and the channel list A includes information about channels in the multiple channel sub-tables.
  • the terminal device 120 can determine the channel sub-tables A1 and A2 respectively for the 2.4GHz and 5GHz frequency bands, and the channel list A can include the candidate channels in the channel sub-tables A1 and A2. channel information.
  • the candidate channels in the channel sub-tables A1 and A2 may be arranged in order of evaluation scores from high to low or from low to high.
  • subset A1 may include candidate channels with indexes 31, 32, and 33 respectively (also referred to as candidate channels 31, 32, and 33) associated with the 2.4GHz frequency band
  • subset A2 may include candidate channels associated with the 5GHz frequency band.
  • candidate channels with indices 34, 35 and 36 respectively also referred to as candidate channels 34, 35 and 36).
  • the terminal device 110 may select (340) a subset (also referred to as subset B) of the plurality of candidate channels based on the evaluation scores of the plurality of candidate channels determined by itself.
  • subset B may include candidate channels supported by terminal device 110 .
  • the terminal device 110 may arrange the channels of the subset B according to the order of evaluation scores, so as to generate a channel list (also referred to as a channel list B).
  • a channel list also referred to as a channel list B
  • the candidate channels in the channel list B may also be arranged in order of evaluation scores from high to low or from low to high.
  • the terminal device 110 may also work in multiple frequency bands.
  • the terminal device 110 may respectively generate a channel sub-table for multiple frequency bands, and the channel list B includes information of channels in the multiple channel sub-tables.
  • the terminal device 110 can respectively determine channel sub-tables B1 and B2 for the 2.4GHz and 5GHz frequency bands, and the channel list B can include channel sub-tables B1 and B2.
  • candidate channels in the channel sub-tables B1 and B2 may be arranged in order of evaluation scores from high to low or from low to high.
  • subset B1 may include candidate channels with indices 32, 33, and 34 respectively (also referred to as candidate channels 32, 33, and 34) associated with the 2.4GHz band
  • subset B2 may include Candidate channels with indices 35, 36 and 37 respectively (also referred to as candidate channels 35, 36 and 37).
  • the terminal device 110 may select (350) a candidate channel from the intersection of the subset A and the subset B as the working channel.
  • subset A includes channel sub-tables A1 and A2 and subset B includes channel sub-tables B1 and B2
  • terminal device 110 can switch to a channel in the channel sub-table A candidate channel is selected from the intersection of tables A1 and B1 as the working channel, that is, a candidate channel is selected from the candidate channels 32 and 33 as the working channel.
  • the terminal device 110 can select a candidate channel as the working channel in the intersection of the channel sub-tables A2 and B2, that is, select one of the candidate channels 35 and 36 The candidate channel is used as the working channel.
  • act 340 is shown in Figure 3 as being performed after act 330, this is merely an example. In other examples, act 340 may be performed between act 310 and act 330 , or act 340 may be performed before act 310 , or act 340 may be performed in parallel with act 310 .
  • FIG. 3 shows the process of selecting a working channel by the terminal device 110 acting as a GO.
  • the terminal device 120 acting as a GC may also perform a process similar to the process 300 to select a working channel.
  • the terminal device 120 acting as a GC may receive information of a subset of candidate channels with better channel quality determined by the terminal device 110 from the terminal device 110 acting as a GO, based on the evaluation scores of the candidate channels determined by itself To select another subset of candidate channels with better channel quality, and then select a candidate channel from the intersection of these two subsets as the working channel.
  • a channel with better channel quality is selected to establish the communication service, thereby improving the communication service quality.
  • both terminal devices 110 and 120 can create a working channel between the two terminal devices 110 and 120 to run communication services.
  • the terminal device 120 may send a video stream to the terminal device 110 , and then project the video stream onto the display screen of the terminal device 110 .
  • the terminal device 110 or 120 can measure the service quality of the working channel during the operation of the communication service. Measuring the quality of service of the working channel may include measuring at least one of the following items of the working channel: packet loss rate, retransmission times, sending and receiving rate, and round-trip time.
  • one of the terminal devices 110 and 120 may switch the operating channel from the first channel to the second channel.
  • the terminal device 110 or 120 may select the second channel from the multiple candidate channels based on the evaluation scores of the multiple candidate channels.
  • the terminal devices 110 and 120 may determine the second channel through negotiation. Such an embodiment will be described below with reference to FIG. 4 .
  • FIG. 4 shows a signaling interaction diagram of a channel selection process 400 according to some embodiments of the present disclosure.
  • channel selection process 400 will be described with reference to various elements shown in FIG. 1 . However, it should be understood that the channel selection process 400 may also be performed in any other communication scenario.
  • the terminal device 110 acts as the GO
  • the terminal device 120 acts as the GC
  • the terminal device 110 acting as the GO selects the second working channel to be switched to.
  • the terminal device 120 measures the service quality of the current working channel (ie, the first channel) (410). If the service quality of the first channel is lower than the threshold, the terminal device 120 selects (420) a subset (also referred to as subset C) of the plurality of candidate channels based on the evaluation scores of the plurality of candidate channels determined by itself.
  • a subset also referred to as subset C
  • the threshold is associated with a type of communication traffic.
  • different communication services may have different tolerances for channel QoS.
  • the corresponding threshold can be determined according to the type of communication service.
  • the subset C may include candidate channels supported by the terminal device 120 .
  • the terminal device 120 may send (430) information of the subset C of the plurality of candidate channels to the terminal device 110 . Accordingly, the terminal device 110 may receive (440) from the terminal device 120 information of the subset C of the plurality of candidate channels.
  • the terminal device 120 may send the information of the subset C of multiple candidate channels to the terminal device 110 in the form of a channel list (also referred to as a channel list C).
  • the candidate channels in the channel list C may be arranged in order of evaluation scores from high to low or from low to high.
  • the terminal device 120 can respectively determine a channel sub-list for the multiple frequency bands, and the channel list C includes the channels in the multiple channel sub-tables Information.
  • the terminal device 110 may select (450) a subset (also referred to as subset D) of the plurality of candidate channels based on the evaluation scores of the plurality of candidate channels determined by itself.
  • the subset D may include candidate channels supported by the terminal device 110.
  • the terminal device 110 may arrange the channels of the subset D according to the order of evaluation scores, so as to generate a channel list (also referred to as a channel list D).
  • a channel list also referred to as a channel list D
  • the candidate channels in the channel list D may also be arranged in order of evaluation scores from high to low or from low to high.
  • the terminal device 110 can work in multiple frequency bands
  • the terminal device 110 can respectively generate a channel sub-table for the multiple frequency bands
  • the channel list D includes information about channels in the multiple channel sub-tables.
  • the terminal device 110 may select (460) a candidate channel from the intersection of the subset C and the subset D as the second channel.
  • subset C includes channel subtables C1 and C2 associated with the 2.4GHz frequency band and subset D includes channel subtables D1 and D2 associated with the 5GHz frequency band
  • terminal device 110 may select a candidate channel in the intersection of the channel sub-tables C1 and D1 as the working channel.
  • the terminal device 110 may select a candidate channel in the intersection of the channel sub-tables C2 and D2 as the working channel.
  • the terminal device 110 may send a switching notification to the terminal device 120 .
  • the switching notification may indicate information of the second channel.
  • the switching notification may also indicate the switching time of the channel.
  • the terminal devices 110 and 120 may switch the working channel to the second channel at the notified switching time.
  • act 450 is shown in Figure 4 as being performed after act 440, this is merely an example. In other examples, act 450 may be performed between act 410 and act 440 , or act 440 may be performed before act 410 , or act 450 may be performed in parallel with act 410 .
  • FIG. 4 shows a process in which the terminal device 110 acting as a GO selects a channel to be switched to.
  • the terminal device 120 acting as the GC may also perform a process similar to the process 400 to select the channel to be switched to.
  • a working channel may be reselected based on the channel measurement result for switching, thereby further improving the communication service quality.
  • the terminal device 120 may reduce the quality of the communication service. For example, the terminal device 120 may reduce the code rate, resolution, compressed picture quality, etc., so as to reduce the bandwidth occupancy rate.
  • the terminal device 120 may re-measure the service quality of the first channel after a predetermined period of time. For example, terminal device 120 may start a timer. If the timer expires and the remeasured quality of service is still lower than the threshold, the terminal device 120 may switch the communication service from the first channel to the second channel. On the other hand, if the timer expires and the remeasured quality of service is higher than the threshold, the terminal device 120 may keep the communication traffic on the first channel. Thus, it is possible to avoid affecting communication services due to channel switching.
  • the terminal devices 110 and 120 may measure the channel qualities of multiple candidate channels in an idle state, so as to respectively obtain the first measurement result and the second measurement result of the channels. It should be noted that the terminal devices 110 and 120 can measure the channel quality of the candidate channel before and during the communication service, and the scope of the present disclosure is not limited in this respect. In addition, the terminal device 130 in the communication network 100 may also measure the channel quality of multiple candidate channels in an idle state, so as to obtain a third channel measurement result.
  • any one of the terminal devices 110, 120 and 130 may periodically measure the channel quality of multiple candidate channels in an idle state. In such an embodiment, if any one of the terminal devices 110, 120 and 130 detects that the measurement period has expired, the terminal device may determine whether it is capable of taking measurements. For example, if the terminal device 110 does not have the measurement capability or is deploying services, it may determine that it cannot perform the measurement itself.
  • the terminal device can further determine whether it is in an idle state. In some embodiments, if the terminal device is not currently connected to any AP or has not established any P2P service, the terminal device is in an idle state. In some other embodiments, if the terminal device is in the Wi-Fi state, but there is no Wi-Fi connection with other devices, or although there is a Wi-Fi connection with other devices, but the current traffic is less than a predetermined threshold, Then the terminal device is in an idle state.
  • the two terminal devices may also negotiate to switch from the working channel to a candidate channel for measurement in a certain period during the communication service, and switch back to the working channel after the measurement is completed. In this way, it is possible to prevent packet loss due to the fact that the two terminal devices are not in the same channel and the sending and receiving are inconsistent.
  • a terminal device not participating in the networking may also measure the channel quality of multiple candidate channels. In such an embodiment, a longer measurement period can be set.
  • a terminal device that does not participate in the networking can only retain a measurement result once in a static state. After the terminal device participates in the networking, the measurement period can be shortened.
  • the terminal device triggers a measurement when it senses that the mobile state is switched to the stationary state.
  • the embodiments of the present disclosure may also have other application scenarios.
  • two terminal devices can conduct a one-time networking to share files temporarily.
  • the terminal device may measure channel evaluation parameters as shown in Table 1 below.
  • Table 1 is only illustrative, and the terminal device may measure more or less evaluation parameters, and the scope of the present disclosure is not limited in this respect.
  • the terminal device may determine whether it is in an idle state every time it measures a candidate channel. If it is determined that it is in an idle state, the terminal device may further measure other candidate channels.
  • the terminal device 130 when the terminal device 130 joins the communication network formed by the terminal devices 110 and 120 for the first time, the terminal device 110 or 120 may synchronize its own channel measurement results (first measurement results or second measurement results) to the terminal device 130.
  • “joining” here means that the terminal device 130 joins the communication network formed by the terminal devices 110 and 120 but does not initiate a communication service, and the terminal device 130 only discovers the terminal devices 110 and 120 through a discovery mechanism. In this way, if the terminal device 130 initiates a communication service with other terminal devices (not shown in FIG. 1 ) immediately after accessing the network, the terminal device 130 can select the Appropriate channels are established for traffic. Thus, communication efficiency is improved. Such an embodiment will be described below with reference to FIG. 5 .
  • FIG. 5 shows a signaling interaction diagram of a channel measurement result synchronization process 500 according to some embodiments of the present disclosure.
  • process 500 will be described with reference to various elements shown in FIG. 1 . However, it should be understood that process 500 may also be performed in any other communication scenario.
  • terminal device 130 accesses the communication network formed by terminal devices 110 and 120 for the first time, and terminal device 110 synchronizes its own channel measurement result (first measurement result) to terminal device 130 .
  • a process similar to the process 500 may be performed between the terminal device 120 and the terminal device 130 to achieve synchronization of channel measurement results.
  • the terminal device 130 accesses the communication network formed by the terminal devices 110 and 120 for the first time, it sends ( 510 ) a measurement result synchronization request to the terminal device 110 .
  • the terminal device 110 may synchronize ( 530 ) the first measurement result of the channel to the terminal device 130 . Accordingly, the terminal device 130 receives (540) from the terminal device 110 a first measurement result of the channel.
  • the terminal device 110 can synchronize the channel measurement results through a local area network.
  • the terminal device 110 may synchronize the channel measurement results through BLE broadcast or BLE connection.
  • the terminal device 130 may determine evaluation scores of multiple candidate channels based on the first measurement result.
  • the terminal device 130 may also measure the channel quality of multiple candidate channels (550), to obtain a third measurement result of the channel.
  • the terminal device 130 may use its own channel measurement result (ie, the third measurement result) to update the evaluation scores of multiple candidate channels.
  • some terminal devices in the communication network 100 may not be convenient for measurement because services are currently being deployed. For example, as mentioned above, since the terminal devices 110 and 120 are deploying the screen projection service, it is not convenient to measure the channel quality.
  • a terminal device that is convenient for measurement in the communication network 100 may synchronize its own measurement results to a terminal device that is not convenient for measurement.
  • the terminal device 130 may synchronize (560) its own channel measurement result (ie, the third measurement result) to the terminal device 110 .
  • the terminal device 130 may synchronize channel measurement results through a local area network.
  • the terminal device 130 may synchronize the channel measurement results through BLE broadcast or BLE connection.
  • the terminal device 110 receives ( 570 ) the third measurement result from the terminal device 130 .
  • the terminal device 110 may use the third measurement result to update (580) the local evaluation scores of the plurality of candidate channels.
  • some terminal devices in the communication network 100 may not have measurement capabilities, have weak measurement capabilities, or can only measure part of the evaluation parameters.
  • terminal devices in the communication network 100 may include rich devices and lightweight devices. Rich devices usually have measurement capability and abundant hardware resources, so they can perform channel measurement with idle resources. For example, rich devices can be scheduled with rich computing resources.
  • the rich device may have additional radio frequency resources, such as supporting dual radio frequencies such as 2.4GHz and 5GHz or supporting three radio frequencies such as 2.4GHz, 5GHz and 6GHz.
  • the rich device may have additional device resources, such as a separate antenna, or a separate wireless chip resource, so that channel measurement can be performed with idle resources.
  • a terminal device capable of measuring or capable of measuring all evaluation parameters may synchronize its own measurement results to a terminal device that does not have measurement capability, has weak measurement capability, or can only measure part of the evaluation parameters.
  • each terminal device in the communication network 100 can obtain or update the measurement result of the channel, so as to determine or update the evaluation score of the channel. Furthermore, each terminal device can select an appropriate working channel based on the evaluation score of the channel when the communication service is initiated.
  • some terminal devices in the communication network 100 may be very electrical devices, and if the very electrical devices frequently synchronize channel measurement results, they will consume more power consumption.
  • multiple thresholds can be defined for each parameter to be measured, and each threshold is associated with a corresponding gear. For example, take the signal strength shown in Table 1 as an example.
  • a first threshold, a second threshold, a third threshold, and a fourth threshold arranged in descending order may be defined for signal strength.
  • the first threshold, the second threshold, the third threshold and the fourth threshold are respectively associated with strong, medium, weak and unacceptable gears. If the measured signal strength fluctuates within four thresholds, synchronization may not be initiated. If the measured signal strength fluctuates across a threshold, synchronization is initiated. For example, synchronization may be initiated if the measured signal strength is below a fourth threshold, indicating that the measured signal strength is at an unacceptable level.
  • terminal devices in the communication network 100 may dynamically exchange measurement capability information with each other at any time when they participate in the networking. If each end device supports measurements, no synchronization is required. If a terminal device is unable to perform self-measurement due to the fact that the measurement may affect the service due to the busy phase of distributed services, only the terminal device can notify one or more nearby devices to synchronize the channel measurement results to itself.
  • the measurement cycle of the terminal device (for example, the constant power device) may be shortened.
  • the terminal device can measure locally, its own measurement result is preferentially used. In the case that there is no local measurement result of the terminal device, if there is only one measurement result, the measurement result is used. In the case that a terminal device has measurement results synchronized by multiple neighbors at the same time, the measurement result synchronized by the neighbor closest to itself is preferentially used. In the event that an end device simultaneously has measurements synchronized by several neighbors at close distances, the most recent measurement is used first.
  • the terminal device 110 may determine the distance and angle between the two based on the heartbeat message received from the terminal device 130 . Therefore, after receiving the third measurement result from the terminal device 130, the terminal device 110 may reduce (also referred to as attenuation) the received third measurement result based on at least one of the distance and angle between the two. As an example, the terminal device 110 may reduce the received third measurement result by a predetermined value based on at least one of a distance and an angle between the two.
  • terminal device 110 may attenuate the signal strength in the third measurement result based on Table 2 below.
  • the terminal device 110 may not attenuate the signal strength in the third measurement result. If the distance between the terminal device 110 and the terminal device 130 is 5 meters, the terminal device 110 may attenuate the signal strength in the third measurement result by 2 decibels. If the distance between the terminal device 110 and the terminal device 130 is 10 meters, the terminal device 110 may attenuate the signal strength in the third measurement result by 4 decibels. and so on.
  • the terminal device attenuating the channel measurement results received from other terminal devices.
  • the terminal device may select a corresponding attenuation strategy according to a specific application scenario, and the scope of the present disclosure is not limited in this respect.
  • a terminal device may consider that the measurement results have no effect on itself. For example, a terminal device can perceive the signal boundary on a certain channel based on the measurement results received from other terminal devices, but the measurement results of this channel have been attenuated below a predetermined threshold. The sending and receiving of the device is not affected.
  • any one of the terminal devices 110, 120 and 130 may determine evaluation scores of multiple candidate channels based on the measurement results of the channels. Any one of the terminal devices 110, 120 and 130 may maintain the evaluation scores of the plurality of candidate channels in any suitable manner. As an example, any of terminal devices 110, 120, and 130 may utilize a channel scoring matrix to maintain evaluation scores for a plurality of candidate channels. Of course, the evaluation scores of multiple candidate channels may also be maintained in a manner other than the channel scoring matrix, and the scope of the present disclosure is not limited in this respect. In the following, for the purpose of illustration, the channel scoring matrix will be used as an example for description.
  • any of terminal devices 110, 120, and 130 may determine an evaluation score for each of the plurality of candidate channels based on:
  • xi represents the measured value of the i-th evaluation parameter of the candidate channel
  • f i ( xi ) represents the score associated with the i-th evaluation parameter
  • a i represents the weight associated with the i-th evaluation parameter
  • the evaluation parameters of the candidate channels may include, for example, the evaluation parameters shown in Table 1 above.
  • x 1 can represent the amount of interference of the candidate channel
  • x 2 can represent the signal strength of the candidate channel
  • x 3 can represent the channel load of the candidate channel
  • x 2 can represent the noise floor of the candidate channel.
  • the measured values of each evaluation parameter can be input into the neural network model, and the evaluation score can be output after effective calculation.
  • FIG. 6 shows a flowchart of an example method 600 for channel selection according to some embodiments of the present disclosure.
  • example method 600 may be implemented by a first terminal device.
  • the first terminal device may be any one of the terminal devices 110 , 120 and 130 in the example communication network 100 .
  • the method 600 may be implemented by a processor or a processing unit of the terminal device 110, 120 or 130 in cooperation with other components (for example, a transceiver).
  • the example method 600 may also be implemented by other communication devices independent of the example communication network 100 .
  • the first terminal device measures the quality of service of the first channel during communication traffic with the second terminal device over the first channel.
  • the first terminal device switches communication traffic from the first channel to the second channel.
  • the terminal device can switch to the channel with the globally optimal channel quality during the running of the communication service. For example, in the case of a large number of distributed services, the central node in the network can issue instructions in advance to make the terminal equipment in the network choose to work on a predetermined channel or select a channel that can accommodate the current service, so that the entire network Communication quality is optimal.
  • FIG. 7 shows a schematic structural diagram of an electronic device 700 according to an embodiment of the present disclosure.
  • the electronic device 700 may include a processor 210, an external memory interface 292, an internal memory 296, a subscriber identity module (Subscriber Identification Module, SIM) card interface 294, a display screen 220, a camera 222, an indicator 224, a motor 226, button 228, universal serial bus (Universal Serial Bus, USB) interface 230, charging manager module 240, power management module 242, battery 244, mobile communication module 250, antenna 252, wireless communication module 260, antenna 262, audio Module 270, speaker 272, receiver 274, microphone 276, earphone interface 278, sensor module 280 and so on.
  • a processor 210 may include a processor 210, an external memory interface 292, an internal memory 296, a subscriber identity module (Subscriber Identification Module, SIM) card interface 294, a display screen 220, a camera 222, an indicator 224, a motor 226, button 228, universal serial bus (Universal Serial Bus, USB) interface 230, charging
  • the sensor module 280 includes a pressure sensor 2802, a gyro sensor 2804, an air pressure sensor 2806, a magnetic sensor 2808, an acceleration sensor 2810, a distance sensor 2812, a proximity light sensor 2814, a fingerprint sensor 2816, a temperature sensor 2818, a touch sensor 2820 and an ambient light sensor 2822 et al.
  • FIG. 7 is only a schematic illustration, and the electronic device 700 may include more or fewer components, or multiple components may be combined into one component, or one component may be split into multiple components. , or a combination of the above, etc.
  • the components shown in FIG. 7 can be implemented by hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units, for example, may include a central processing unit (Central Processing Unit, CPU), an application processor (Application Processor, AP), a modem processor, a graphics processing unit (Graphics Processing Unit, GPU), image signal processor (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (Neural-Network Processing Unit, NPU), etc., where different processing units can be independent devices or integrated in one or more processors.
  • CPU Central Processing Unit
  • AP Application Processor
  • modem processor a graphics processing unit
  • ISP image signal processor
  • controller video codec
  • digital signal processor Digital Signal Processor
  • DSP Digital Signal Processor
  • NPU neural network Processing Unit
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in the processor 210 is a cache memory.
  • the memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • the interface can include an integrated circuit (Inter-Integrated Circuit, I2C) interface, an integrated circuit built-in audio (Inter-Integrated Circuit Sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a universal asynchronous transmitter (Universal Asynchronous Receiver/Transmitter, UART) interface, mobile industry processor interface (Mobile Industry Processor Interface, MIPI), general-purpose input/output (General-Purpose Input/Output, GPIO) interface, SIM card interface 294, and/or USB interface 230, etc.
  • I2C Inter-Integrated Circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM Pulse Code Modulation
  • UART Universal Asynchronous Receiver/Transmitter
  • MIPI Mobile Industry Processor Interface
  • GPIO General-purpose input/output
  • SIM card interface 294 SIM card interface 294, and/or USB interface 230, etc.
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 210 may include multiple sets of I2C buses.
  • the processor 210 may be respectively coupled to the touch sensor 2820, the charger, the flashlight, the camera 222, etc. through different I2C bus interfaces.
  • the processor 210 may be coupled to the touch sensor 2820 through the I2C interface, so that the processor 210 and the touch sensor 2820 communicate through the I2C bus interface to realize the touch function of the electronic device 700 .
  • the I2S interface can be used for audio communication.
  • processor 210 may include multiple sets of I2S buses.
  • the processor 210 may be coupled to the audio module 270 through an I2S bus to implement communication between the processor 210 and the audio module 270 .
  • the audio module 270 can transmit audio signals to the wireless communication module 260 through the I2S interface, so as to realize the function of answering calls through Bluetooth headsets and the like.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 270 and the wireless communication module 260 may be coupled through a PCM bus interface.
  • the audio module 270 can also transmit audio signals to the wireless communication module 260 through the PCM interface, so as to realize the function of answering calls through a Bluetooth headset or the like. It can be understood that both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 210 and the wireless communication module 260 .
  • the processor 220 communicates with the Bluetooth module in the wireless communication module 260 through the UART interface to realize the Bluetooth function.
  • the audio module 270 can transmit audio signals to the wireless communication module 260 through the UART interface, so as to realize the function of playing music through a Bluetooth headset or the like.
  • the MIPI interface can be used to connect the processor 210 with peripheral devices such as the display screen 220 and the camera 222 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 210 and the camera 222 communicate through the CSI interface to implement the shooting function of the electronic device 700 .
  • the processor 220 and the display screen 220 communicate through the DSI interface to implement the display function of the electronic device 700 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 210 with the camera 222 , the display screen 220 , the wireless communication module 260 , the audio module 270 , the sensor module 280 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 230 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 230 can be used to connect a charger to charge the electronic device 700 , and can also be used to transmit data between the electronic device 700 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the electronic device 700 may also adopt an interface connection manner different from that described above, or may adopt a combination of various interface connection manners.
  • the charging management module 240 is configured to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 240 may receive a charging input from the wired charger through the USB interface 230 .
  • the charging management module 240 may receive a wireless charging input through a wireless charging coil of the electronic device 700 . While the charging management module 240 is charging the battery 244 , it can also supply power to the electronic device 700 through the power management module 242 .
  • the power management module 242 is used for connecting the battery 244 , the charging management module 240 and the processor 210 .
  • the power management module 242 receives the input of the battery 244 and/or the charging management module 240, and provides power for the processor 210, the internal memory 296, the display 220, the camera 222 and the wireless communication module 260, etc.
  • the power management module 242 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (such as leakage, impedance).
  • the power management module 242 can also be disposed in the processor 210 .
  • the power management module 242 and the charging management module 240 can also be set in the same device.
  • the wireless communication function of the electronic device 700 can be realized by the mobile communication module 250, the antenna 252, the wireless communication module 260, the antenna 262, the modem processor and the baseband processor.
  • the antenna 252 and the antenna 262 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 700 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • antenna 252 may be multiplexed as a diversity antenna for a wireless local area network.
  • an antenna can be used in conjunction with a tuning switch.
  • the mobile communication module 250 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 700 .
  • the mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 250 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 252 .
  • at least part of the functional modules of the mobile communication module 250 may be set in the processor 210 .
  • at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be set in the same device.
  • the modem processor may include a modulator and a demodulator, wherein the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal, and the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 272 , receiver 274 , etc.), or displays images or videos through display screen 220 .
  • the modem processor may be a stand-alone device. In other scenarios, the modem processor may be independent of the processor 210, and be set in the same device as the mobile communication module 250 or other functional modules.
  • the wireless communication module 260 can provide wireless communication solutions including wireless local area network (Wireless Local Area Network, WLAN) applied on the electronic device 700, such as Wi-Fi network, BT, Global Navigation Satellite System (Global Navigation Satellite System, GNSS ), FM (Frequency Modulation, FM), NFC, infrared technology (infrared, IR).
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 262 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the wireless communication module 260 can also receive the signal to be transmitted from the processor 210 , frequency-modulate and amplify it, and convert it into electromagnetic waves through the antenna 262 for radiation.
  • the antenna 252 of the electronic device 700 is coupled to the mobile communication module 250, and the antenna 262 is coupled to the wireless communication module 260, so that the electronic device 700 can communicate with the network and/or other devices through wireless communication technology.
  • the wireless communication technologies here can include Global System For Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), broadband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technologies, etc.
  • GNSS can include Global Positioning System (Global Positioning System, GPS), Global Navigation Satellite System (Global Navigation Satellite System, GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (Quasi-Zenith Satellite System, QZSS) and/or Satellite Based Augmentation Systems (SBAS).
  • Global Positioning System Global Positioning System, GPS
  • Global Navigation Satellite System Global Navigation Satellite System, GLONASS
  • BeiDou Navigation Satellite System BDS
  • Quasi-Zenith Satellite System Quasi-Zenith Satellite System
  • QZSS Satellite Based Augmentation Systems
  • SBAS Satellite Based Augmentation Systems
  • the electronic device 700 realizes the display function through the GPU, the display screen 220 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 220 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 220 is used for displaying text, images, videos and the like.
  • the display screen 220 includes a display panel, and the display panel can be a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode.
  • Body Active-Matrix Organic Light Emitting Diode, AMOLED
  • Flexible Light-Emitting Diode Flexible Light-Emitting Diode (Flex Light-Emitting Diode, FLED) Mini-LED, Micro-LED, Micro-OLED, Quantum Dot Light Emitting Diodes (QLED) Wait.
  • the electronic device 700 may include one or more display screens 220 .
  • the electronic device 700 can realize the shooting function through the ISP, the camera 222 , the video codec, the GPU, the display screen 220 , and the application processor.
  • the ISP is used for processing data fed back by the camera 222 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some scenarios, the ISP may be located in the camera 222 .
  • Camera 222 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element can be a charge coupled device (Charge Coupled Device, CCD) or a complementary metal oxide semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS) phototransistor.
  • CCD Charge Coupled Device
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 700 may include one or more cameras 222 .
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 700 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 700 may support one or more video codecs.
  • the electronic device 700 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • NPU is a neural network (Neural-Network, NN) computing processor.
  • NN neural network
  • Applications such as intelligent cognition of the electronic device 700 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the indicator 224 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the motor 226 can generate a vibrating alert.
  • the motor 226 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 226 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 20 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the keys 228 include a power key, a volume key and the like.
  • the button 228 can be a mechanical button or a touch button.
  • the electronic device 700 may receive key input and generate key signal input related to user settings and function control of the electronic device 700 .
  • the SIM card interface 294 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 700 by inserting it into the SIM card interface 294 or pulling it out from the SIM card interface 294 .
  • the electronic device 700 may support one or more SIM card interfaces 294 .
  • SIM card interface 294 can support Nano SIM card, Micro SIM card, mini SIM card etc. Multiple cards can be inserted into the same SIM card interface 294 at the same time, and the types of multiple cards can be the same or different.
  • the SIM card interface 294 is also compatible with different types of SIM cards.
  • the SIM card interface 294 is also compatible with external memory cards.
  • the electronic device 700 interacts with the network through the SIM card to implement functions such as calling and data communication. In some scenarios, the electronic device 700 uses an embedded SIM (embedded SIM, eSIM) card, and the eSIM card can be embedded in the electronic device 700 and cannot be separated from the electronic device 700.
  • embedded SIM embedded SIM
  • eSIM embedded SIM
  • the external memory interface 292 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 700.
  • the external memory card communicates with the processor 210 through the external memory interface 292 to realize the data storage function. Such as saving music, video and other files in the external memory card.
  • Internal memory 296 may be used to store computer-executable program code, which includes instructions.
  • the internal memory 296 may include an area for storing programs and an area for storing data.
  • the storage program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function) and the like.
  • the storage data area can store data (such as audio data, phone book) etc. created during the use of the electronic device 700 .
  • the internal memory 296 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (Universal Flash Storage, UFS) and the like.
  • the processor 210 executes various functional applications and data processing of the electronic device 700 by executing instructions stored in the internal memory 296 and/or instructions stored in a memory provided in the processor.
  • the electronic device 700 may implement audio functions through the audio module 270 , the speaker 272 , the receiver 274 , the microphone 276 , the earphone interface 278 , and the application processor. Such as music playback, recording, etc.
  • the audio module 270 is used to convert digital audio signals into analog audio signals for output, and is also used for converting analog audio input into digital audio signals.
  • the audio module 270 may also be used to encode and decode audio signals.
  • the audio module 270 may be set in the processor 210 , or some functional modules of the audio module 270 may be set in the processor 210 .
  • Receiver 274 also called “earpiece” is used to convert audio electrical signals into audio signals.
  • the receiver 274 can be placed close to the human ear to listen to the voice.
  • Microphone 276, also called “microphone” or “microphone”, is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 276 with a human mouth, and input the sound signal to the microphone 276 .
  • the electronic device 700 may be provided with at least one microphone 276 .
  • the electronic device 700 can be provided with two microphones 276, which can also implement a noise reduction function in addition to collecting sound signals.
  • the electronic device 700 can also be provided with three, four or more microphones 276 to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 278 is used for connecting wired earphones.
  • the headphone interface 278 can be a USB interface 230, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface, etc. .
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 2802 is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • the pressure sensor 2802 may be disposed on the display screen 220 .
  • the type of the pressure sensor 2802 may be a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 700 may also calculate the touch position according to the detection signal of the pressure sensor 2802 .
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on an image or file, it means that the image or file is selected, and the electronic device 700 executes an instruction that the image or file is selected.
  • a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the application window and the touch operation moves on the display screen 220 , an instruction to drag the application window up is executed.
  • a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon
  • the instruction of viewing the short message is executed.
  • the instruction of creating a new short message is executed.
  • the gyro sensor 2804 can be used to determine the motion posture of the electronic device 700 .
  • Air pressure sensor 2806 may be used to measure air pressure.
  • the magnetic sensor 2808 includes a Hall sensor.
  • the electronic device 700 can use the magnetic sensor 2808 to detect the opening and closing of the flip holster.
  • the acceleration sensor 2810 can be used to detect the acceleration of the electronic device 700 in various directions (generally three axes).
  • a distance sensor 2812 may be used to measure distance.
  • the electronic device 700 can measure the distance by infrared or laser. In a scene such as shooting, the electronic device 700 can use the distance sensor 2812 to measure a distance to achieve fast focusing.
  • Proximity light sensor 2814 may include, for example, LEDs and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 700 emits infrared light through a light emitting diode, and uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 700 . When insufficient reflected light is detected, the electronic device 700 may determine that there is no object nearby.
  • the electronic device 700 can use the proximity light sensor 2814 to detect that the user holds the electronic device 700 close to the ear to make a call, so as to automatically turn off the display screen 220 to save power.
  • Proximity light sensor 2814 can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • Fingerprint sensor 2816 may be used to capture fingerprints.
  • the electronic device 700 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, fingerprint photography, and fingerprint answering of incoming calls.
  • a temperature sensor 2818 may be used to detect temperature.
  • the touch sensor 2820 is also called “touch device” or “touch panel”.
  • the touch sensor 2820 can be disposed on the display screen 220 , and the touch sensor 2820 and the display screen 220 form a touch screen.
  • the touch sensor 2820 is used to detect a touch operation on or near it.
  • the touch sensor 2820 can transmit the detected touch operation to the application processor to determine the type of the touch event.
  • Visual output related to the touch operation can be provided through the display screen 220 .
  • the touch sensor 2820 may also be disposed on the surface of the electronic device 700 , which is different from the position of the display screen 220 .
  • the ambient light sensor 2822 is used for sensing ambient light brightness.
  • the electronic device 700 can adaptively adjust the brightness of the display screen 220 according to the perceived ambient light brightness.
  • the ambient light sensor 2822 can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 2822 can also cooperate with the proximity light sensor 2814 to detect whether the electronic device 700 is in the pocket, so as to prevent accidental touch.
  • the sensor module 280 may further include an infrared sensor, an ultrasonic sensor, an electric field sensor, etc., for assisting the electronic device 700 in recognizing gestures in the air.
  • the electronic device 700 in FIG. 7 is only schematic, and it may include more or less components when it is implemented as a different type of device.
  • the electronic device 700 when it is implemented as a desktop computer, it may not have the SIM card interface 294 .
  • the software system of the electronic device 700 may adopt a layered architecture, a Harmony OS architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • FIG. 8 shows a software structural block diagram of an electronic device 700 with a layered architecture Android (Android) system according to an embodiment of the present disclosure.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. As shown in FIG. 8 , the Android system can be divided into four layers, which are an application program layer 810 , an application program framework layer 820 , a kernel layer 830 , and a network transport layer 840 from top to bottom.
  • the application layer 810 may include a series of application packages, including but not limited to camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications (Application, APP).
  • the application framework layer 820 provides an application programming interface (Application Programming Interface, API) and a programming framework for the applications of the application program layer 810.
  • the application framework layer 820 may include some predefined functions, including but not limited to window manager, content provider, view system, telephony manager, resource manager, notification manager and so on.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Data can include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, and more.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 700 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device 700 vibrates, and the indicator light flashes.
  • the kernel layer 830 includes at least a display driver, a camera driver, an audio driver, and a transmission driver. Different drivers of the kernel layer 830 are used to call hardware devices of the electronic device 700 to perform corresponding operations.
  • the display driver is used to support the interface display of the electronic device 700, etc.
  • the audio driver is used to support the playing audio of the electronic device 700, etc.
  • the transmission driver is used to support content sharing between the electronic device 700 and another electronic device.
  • the network transport layer 840 may be used for communication, data transmission, and the like between the electronic device 700 and another electronic device. It may include: a Bluetooth module, a Wi-Fi module, an NFC module, a discovery connection module, a pairing module, and a connection transmission module.
  • the discovery connection module can be used to discover another electronic device that can establish a communication connection.
  • the pairing module can be used to authenticate another electronic device that requests to establish a connection during the process of establishing a communication connection.
  • the connection transmission module can be used to transmit data or messages, instructions, etc. with another electronic device that has established a connection.

Landscapes

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

Abstract

Provided are a channel selection method, devices, a storage medium and a chip. The channel selection method comprises: a first terminal device establishes a communication service with a second terminal device by means of a first channel. The first terminal device acquires quality information of the first channel. If the first terminal device determines that the quality of the first channel indicated by the quality information is lower than a threshold, then the first terminal device switches the communication service from the first channel to a second channel. By means of the foregoing manner, during the operation of the communication service, on the basis of quality information of a working channel, the working channel may be reselected for switching, which may thus improve the quality of the communication service.

Description

信道选择方法、设备、存储介质和芯片Channel selection method, device, storage medium and chip 技术领域technical field
本公开涉及通信领域,并且更具体地,涉及信道选择方法、设备、存储介质和芯片。The present disclosure relates to the communication field, and more particularly, to a channel selection method, device, storage medium and chip.
背景技术Background technique
随着无线通信技术的发展,无线保真(Wireless-Fidelity,Wi-Fi)的应用越来越广泛。Wi-Fi设备可以工作在2.4吉赫兹(Gigahertz,GHz)频段和5GHz频段。2.4GHz频段是IST公用频段,多个设备共用该频段会相互干扰。5GHz频段相比2.4GHz频段具有更高的数据传输效率。然而,5GHz频率高,但穿透性差,尤其是在家庭应用场景中,其穿墙能力相比2.4GHz会更差。此外,由于Wi-Fi的频宽机制是通过每20MHz的叠加实现了40MHz、80MHz、120MHz、160MHz的频域的复用,因此很容易出现信道重叠。多个设备的信号相互干扰以及信道重叠的问题会导致通信速率波动、网络重传严重,用户体验的通信服务质量低。With the development of wireless communication technologies, applications of Wireless-Fidelity (Wi-Fi) become more and more extensive. A Wi-Fi device may work in a 2.4 Gigahertz (Gigahertz, GHz) frequency band and a 5 GHz frequency band. The 2.4GHz frequency band is an IST public frequency band, and multiple devices sharing this frequency band will interfere with each other. The 5GHz frequency band has higher data transmission efficiency than the 2.4GHz frequency band. However, 5GHz has a high frequency, but its penetration is poor, especially in home application scenarios, and its ability to penetrate walls will be worse than that of 2.4GHz. In addition, since the bandwidth mechanism of Wi-Fi realizes the frequency domain multiplexing of 40MHz, 80MHz, 120MHz, and 160MHz by superimposing every 20MHz, it is easy to have channel overlap. Mutual interference of signals from multiple devices and overlapping channels will lead to communication rate fluctuations, serious network retransmissions, and low communication service quality experienced by users.
发明内容Contents of the invention
本公开的实施例提供了信道选择方法、设备、存储介质和芯片。Embodiments of the present disclosure provide a channel selection method, device, storage medium and chip.
在第一方面,提供了一种信道选择方法。该方法包括:第一终端设备通过第一信道与第二终端设备建立通信业务。第一终端设备获取第一信道的质量信息。如果第一终端设备确定质量信息所指示的第一信道的质量低于阈值,则将通信业务从第一信道切换到第二信道。以此方式,可以在运行通信业务期间,基于工作信道的质量信息来重新选择工作信道进行切换,由此可以提高通信服务质量。In a first aspect, a channel selection method is provided. The method includes: the first terminal device establishes a communication service with the second terminal device through the first channel. The first terminal device acquires quality information of the first channel. If the first terminal device determines that the quality of the first channel indicated by the quality information is lower than the threshold, it switches the communication service from the first channel to the second channel. In this way, the working channel can be reselected for switching based on the quality information of the working channel during the running of the communication service, thereby improving the communication service quality.
在一些实施例中,信道的质量信息可以包括与信道的服务质量(Quality of Service,QoS)和信道质量中的至少一项有关的信息。与信道的QoS有关的信息可以用于确定信道的切换时机。作为示例,与信道的QoS有关的信息可以包括但不限于:丢包率、重传次数、收发速率、往返时间。与信道质量有关的信息可以用于选择所要切换的信道。作为示例,与信道质量有关的信息可以包括但不限于:信道负载(chload)、信噪比(SNR)、干扰数量(SignalNum)、信号强度(SignalRSSI)、往返时延(RTT)、带宽(BW)、抖动(Jitter)、噪声(Noise)。In some embodiments, the channel quality information may include information related to at least one of channel quality of service (Quality of Service, QoS) and channel quality. The information related to the QoS of the channel can be used to determine the switching opportunity of the channel. As an example, the information related to the QoS of the channel may include but not limited to: packet loss rate, retransmission times, sending and receiving rate, and round-trip time. Information about channel quality can be used to select the channel to be switched. As an example, information related to channel quality may include, but not limited to: channel load (chload), signal-to-noise ratio (SNR), interference number (SignalNum), signal strength (SignalRSSI), round-trip time delay (RTT), bandwidth (BW ), jitter (Jitter), noise (Noise).
在一些实施例中,第一终端设备可以获取多个候选信道的质量信息,多个候选信道包括第二信道。进而,第一终端设备可以至少基于多个候选信道的质量信息,将通信业务从第一信道切换到第二信道。例如,第一终端设备可以自行测量多个候选信道的质量,以获取多个候选信道的质量信息。可替换地,第一终端设备也可以从其他终端设备接收其他终端设备测量的多个候选信道的质量信息。以此方式,在第一终端设备可能由于当前正在部署业务而不便于测量候选信道的质量的情况下,第一终端设备也能够基于从其他终端设备接收的多个候选信道的质量信息进行信道切换。In some embodiments, the first terminal device may acquire quality information of multiple candidate channels, where the multiple candidate channels include the second channel. Furthermore, the first terminal device may switch the communication service from the first channel to the second channel based at least on the quality information of multiple candidate channels. For example, the first terminal device may measure the quality of multiple candidate channels by itself, so as to acquire quality information of the multiple candidate channels. Alternatively, the first terminal device may also receive quality information of multiple candidate channels measured by other terminal devices from other terminal devices. In this way, in the case that the first terminal device may not be convenient to measure the quality of the candidate channel due to the current deployment of services, the first terminal device can also perform channel switching based on the quality information of multiple candidate channels received from other terminal devices .
在一些实施例中,第一终端设备可以从第二终端设备接收多个候选信道的第一子集的质量信息。第一终端设备可以确定多个候选信道的第二子集的质量信息。进而,第一终端设备可以基于第一子集的质量信息和第二子集的质量信息,从第一子集和第二子集的交集中选择第二信道。以此方式,第一终端设备和第二终端设备可以通过协商的方式来选择所要切换的信道。In some embodiments, the first terminal device may receive quality information for a first subset of the plurality of candidate channels from the second terminal device. The first terminal device may determine quality information for a second subset of the plurality of candidate channels. Furthermore, the first terminal device may select the second channel from the intersection of the first subset and the second subset based on the quality information of the first subset and the quality information of the second subset. In this manner, the first terminal device and the second terminal device can select a channel to be switched through negotiation.
在一些实施例中,第一终端设备可以确定多个候选信道的第一质量信息并且可以从第三 终端设备接收多个候选信道的第二质量信息。进而,第一终端设备可以基于第二质量信息来更新第一质量信息,从而将更新后的第一质量信息作为质量信息。以此方式,在第一终端设备测量测量能力弱、或者只能测量部分信道参数的情况下,可以通过从其他终端设备接收信道的质量信息来获取全部的信道参数。In some embodiments, the first terminal device may determine first quality information for the plurality of candidate channels and may receive second quality information for the plurality of candidate channels from the third terminal device. Furthermore, the first terminal device may update the first quality information based on the second quality information, so as to use the updated first quality information as the quality information. In this manner, when the first terminal device has weak measurement capabilities or can only measure part of channel parameters, all channel parameters can be obtained by receiving channel quality information from other terminal devices.
在一些实施例中,第四终端设备首次加入第一终端设备所在的通信网络时可能不具有信道的质量信息。在这种情况下,第一终端设备可以向第四终端设备发送信道的质量信息,以便促进第四终端设备与其他终端设备快速建立通信业务。In some embodiments, when the fourth terminal device joins the communication network where the first terminal device is located for the first time, it may not have channel quality information. In this case, the first terminal device may send channel quality information to the fourth terminal device, so as to facilitate the rapid establishment of communication services between the fourth terminal device and other terminal devices.
在一些实施例中,信道的质量阈值可以与通信业务的类型相关联。由此,可以根据不同的通信业务类型来确定不同的阈值,从而确定不同的信道切换时机。In some embodiments, a quality threshold for a channel may be associated with a type of communication traffic. Thus, different thresholds may be determined according to different communication service types, thereby determining different channel switching opportunities.
在一些实施例中,如果信道的质量低于阈值,第一终端设备可以降低通信业务的质量。在预定时间段之后第一终端设备可以重新获取第一信道的质量信息。如果重新获取的质量信息所指示的第一信道的质量仍低于阈值,那么第一终端设备可以将通信业务从第一信道切换到第二信道。由此,可以避免频繁的信道切换。In some embodiments, the first terminal device may reduce the quality of the communication service if the quality of the channel is lower than a threshold. The first terminal device may reacquire the quality information of the first channel after a predetermined period of time. If the quality of the first channel indicated by the reacquired quality information is still lower than the threshold, the first terminal device may switch the communication service from the first channel to the second channel. Thus, frequent channel switching can be avoided.
在第二方面,提供了一种电子设备。该电子设备包括一个或多个处理器以及存储器。存储器中存储有一个或多个计算机程序。一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行根据第一方面所述的方法。In a second aspect, an electronic device is provided. The electronic device includes one or more processors and memory. One or more computer programs are stored in the memory. One or more computer programs include instructions. When the instruction is executed by the electronic device, the electronic device is made to execute the method according to the first aspect.
在第三方面,提供了一种计算机可读存储介质。该计算机可读存储介质中存储有指令。当指令在电子设备上运行时,使得电子设备执行根据第一方面所述的方法。In a third aspect, a computer readable storage medium is provided. The computer readable storage medium has instructions stored therein. When the instruction is run on the electronic device, the electronic device is made to execute the method according to the first aspect.
在第四方面,提供了一种芯片。该芯片包括处理电路。处理电路被配置为执行根据第一方面所述的方法。In a fourth aspect, a chip is provided. The chip includes processing circuitry. The processing circuit is configured to perform the method according to the first aspect.
附图说明Description of drawings
结合附图并参考以下详细说明,本公开各实现方式的特征、优点及其他方面将变得更加明显。在此以示例性而非限制性的方式示出了本公开的若干实现方式,在附图中:The features, advantages and other aspects of various implementations of the present disclosure will become more apparent with reference to the following detailed description when taken in conjunction with the accompanying drawings. Several implementations of the present disclosure are shown here by way of illustration and not limitation, in the accompanying drawings:
图1示出了可以在其中实施本公开的实施例的通信网络的示意框图;Figure 1 shows a schematic block diagram of a communication network in which embodiments of the present disclosure may be implemented;
图2示出了根据本公开的一些实施例的终端设备的界面的示意图;Fig. 2 shows a schematic diagram of an interface of a terminal device according to some embodiments of the present disclosure;
图3示出了根据本公开的一些实施例的信道选择过程的信令交互图;FIG. 3 shows a signaling interaction diagram of a channel selection process according to some embodiments of the present disclosure;
图4示出了根据本公开的另一些实施例的信道选择过程的信令交互图;Fig. 4 shows a signaling interaction diagram of a channel selection process according to other embodiments of the present disclosure;
图5示出了根据本公开的又一些实施例的信道选择过程的信令交互图;FIG. 5 shows a signaling interaction diagram of a channel selection process according to still other embodiments of the present disclosure;
图6示出了根据本公开的一些实施例的用于信道选择的示例方法的流程图;Figure 6 shows a flowchart of an example method for channel selection according to some embodiments of the present disclosure;
图7示出了根据本公开的实施例的电子设备的结构示意图;以及FIG. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present disclosure; and
图8示出了根据本公开的实施例的具有分层架构的安卓(Android)系统的电子设备的软件结构示意图。FIG. 8 shows a schematic diagram of the software structure of an electronic device with an Android (Android) system with a layered architecture according to an embodiment of the present disclosure.
在各个附图中,相同或相似参考数字表示相同或相似元素。In the various drawings, the same or similar reference numerals denote the same or similar elements.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.
在本公开的实施例的描述中,术语“包括”及其类似用语应当理解为开放性包含,即“包括但不限于”。术语“基于”应当理解为“至少部分地基于”。术语“一个实施例”或“该实施例”应当理解为“至少一个实施例”。术语“第一”、“第二”等等可以指代不同的或相同的对象。下文还可能包括其他明确的和隐含的定义。In the description of the embodiments of the present disclosure, the term "comprising" and its similar expressions should be interpreted as an open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be read as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same object. Other definitions, both express and implied, may also be included below.
图1示出了可以在其中实施本公开的实施例的示例通信网络100的示意框图。如图所示,通信网络100可以包括终端设备110、120、130以及路由器140。Fig. 1 shows a schematic block diagram of an example communication network 100 in which embodiments of the present disclosure may be implemented. As shown in the figure, the communication network 100 may include terminal devices 110 , 120 , 130 and a router 140 .
可以理解,在图1的示例中,终端设备110、120、130被分别示出为个人计算机、移动电话(也被称为手机)和平板电脑。然而,在其他示例中,终端设备110、120、130中的每一个可以为其他电子设备。其他电子设备的示例可以包括但是不限于:平板电脑、电视(也被称为智慧屏或大屏设备)、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、车载设备(也被称为车机)、可穿戴电子设备、虚拟现实设备等。本公开的实施例对此不做任何限制。It can be understood that in the example of FIG. 1 , the terminal devices 110 , 120 , 130 are respectively shown as a personal computer, a mobile phone (also called a mobile phone) and a tablet computer. However, in other examples, each of the terminal devices 110, 120, 130 may be other electronic devices. Examples of other electronic devices may include, but are not limited to: tablet computers, televisions (also known as smart screens or big screen devices), ultra-mobile personal computers (UMPCs), handheld computers, netbooks, personal digital assistants (personal digital assistant, PDA), vehicle equipment (also known as car machine), wearable electronic equipment, virtual reality equipment, etc. Embodiments of the present disclosure do not impose any limitation on this.
此外,图1中示出的终端设备和路由器的数目仅仅是示意,通信网络100可以包括更多或更少的终端设备和路由器,本公开的实施例对此不做任何限制。In addition, the numbers of terminal devices and routers shown in FIG. 1 are only for illustration, and the communication network 100 may include more or fewer terminal devices and routers, which is not limited in this embodiment of the present disclosure.
终端设备110、120、130以及路由器140可以通过有线、无线或两者组合等方式来组网。组网指的是终端设备110、120、130基于心跳报文完成了设备发现,并不一定存在实际连接。无线方式可以包括但不限于蓝牙(Bluetooth,BT)、无线保真(Wireless Fidelity,Wi-Fi)、近场通信(Near Field Communication,NFC)、调频(Frequency Modulation,FM)、紫峰(Zigbee)、红外(infrared,IR)技术等等,其中蓝牙可以是传统蓝牙或者低功耗蓝牙(Bluetooth Low Energy,BLE)。The terminal devices 110, 120, 130 and the router 140 can form a network through wired, wireless or a combination of both. The networking refers to that the terminal devices 110, 120, and 130 complete device discovery based on heartbeat messages, and there is no actual connection. Wireless methods may include, but are not limited to, Bluetooth (BT), Wireless Fidelity (Wi-Fi), Near Field Communication (NFC), Frequency Modulation (FM), Zigbee, Infrared (infrared, IR) technology, etc., where Bluetooth can be traditional Bluetooth or Bluetooth Low Energy (Bluetooth Low Energy, BLE).
终端设备110、120、130以及路由器140各自会周期性地发送心跳报文,用于标识自身在线。终端设备110、120、130以及路由器140中的任一个设备可以基于从其他设备接收的心跳报文来发现其他设备。进而,终端设备110、120、130以及路由器140彼此之间可以基于相同的用户名、基于扫码、或者输入PIN码等方式进行可信认证。在完成可信认证之后,终端设备110、120、130以及路由器140可以进行组网。组网后的终端设备110、120、130之间不一定存在实际连接。Each of the terminal devices 110, 120, 130 and the router 140 periodically sends a heartbeat message to identify itself as being online. Any one of the terminal devices 110, 120, 130 and the router 140 can discover other devices based on heartbeat messages received from other devices. Furthermore, the terminal devices 110 , 120 , 130 and the router 140 can perform credible authentication based on the same user name, based on scanning a code, or inputting a PIN code. After the trusted authentication is completed, the terminal devices 110, 120, 130 and the router 140 can form a network. There may not necessarily be an actual connection between the terminal devices 110, 120, and 130 after networking.
在一些实施例中,终端设备110、120和130可以经由路由器140来组成局域网。在这样的实施例中,路由器140可以被设置为接入点(Access Point,AP),终端设备110、120和130可以作为站点(Station)接入该路由器140。In some embodiments, the terminal devices 110 , 120 and 130 can form a local area network via the router 140 . In such an embodiment, the router 140 can be set as an access point (Access Point, AP), and the terminal devices 110, 120 and 130 can access the router 140 as a station (Station).
在终端设备110、120和130通过路由器140来组成局域网的实施例中,路由器140可以不参与组网,因而不需要路由器140收发心跳报文,路由器140仅支持转发心跳报文即可。可替换地,路由器140也可以参与组网,在此情况下路由器140将会进行心跳报文的收发。In the embodiment where the terminal devices 110, 120, and 130 form a local area network through the router 140, the router 140 may not participate in the networking, so the router 140 is not required to send and receive heartbeat messages, and the router 140 only supports forwarding heartbeat messages. Alternatively, the router 140 may also participate in networking, in which case the router 140 will send and receive heartbeat messages.
在另一些实施例中,终端设备110、120和130可以不经由路由器140来组网。In some other embodiments, the terminal devices 110 , 120 and 130 may form a network without the router 140 .
图2示出了图1中的各终端设备组网后其中一个终端设备(例如终端设备120)的界面200的示意图。作为示例,界面200可以是终端设备的主界面、后台界面或负一屏等。从界面200可以看出,终端设备110的图标110-1和终端设备130的图标130-1悬浮在终端设备120的图标120-1周围,意味着终端设备110、终端设备120和终端设备130已经完成了组网。FIG. 2 shows a schematic diagram of an interface 200 of one terminal device (for example, terminal device 120 ) after each terminal device in FIG. 1 is networked. As an example, the interface 200 may be a main interface, a background interface, or a negative screen of the terminal device. It can be seen from the interface 200 that the icon 110-1 of the terminal device 110 and the icon 130-1 of the terminal device 130 are floating around the icon 120-1 of the terminal device 120, which means that the terminal device 110, the terminal device 120 and the terminal device 130 have The networking is completed.
在终端设备110、终端设备120和终端设备130完成组网以后,响应于通信业务的发起,终端设备110、120和130中的任意两个终端设备可以建立连接。该连接可以是有线连接或无线连接。该通信业务的示例可以包括但不限于:分布式多屏协同、文件传输、分布式文件系 统、分布式数据管理等。After the terminal device 110, the terminal device 120 and the terminal device 130 complete the networking, any two terminal devices among the terminal devices 110, 120 and 130 can establish a connection in response to the initiation of a communication service. The connection can be a wired connection or a wireless connection. Examples of the communication service may include, but are not limited to: distributed multi-screen collaboration, file transfer, distributed file system, distributed data management, and the like.
在一些实施例中,终端设备110、120和130中的任意两个终端设备可以经由路由器140进行连接。In some embodiments, any two terminal devices among the terminal devices 110 , 120 and 130 may be connected via the router 140 .
在另一些实施例中,终端设备110、120和130中的任意两个终端设备可以通过点对点(Peer-to-Peer,P2P)方式进行直接连接。在建立连接的过程中,两个终端设备可以彼此协商P2P相关参数。例如,两个终端设备可以彼此协商由哪个终端设备来充当群组所有者(Group Owner,GO)、P2P连接密钥等。In some other embodiments, any two terminal devices among the terminal devices 110, 120, and 130 may be directly connected in a peer-to-peer (Peer-to-Peer, P2P) manner. During the process of establishing a connection, two terminal devices can negotiate P2P-related parameters with each other. For example, the two terminal devices can negotiate with each other which terminal device will act as the group owner (Group Owner, GO), P2P connection key, and so on.
在又一些实施例中,终端设备110、120和130中的任意两个终端设备也可以通过共享方式进行直接连接。在这样的示例中,两个终端设备之一被虚拟成AP(也被称为SoftAp),以此来实现连接。In yet other embodiments, any two terminal devices among the terminal devices 110, 120, and 130 may also be directly connected in a shared manner. In such an example, one of the two terminal devices is virtualized as an AP (also called SoftAp) to realize the connection.
在下文中,将以终端设备110和120建立P2P连接以运行投屏业务(即,将终端设备110的屏幕上显示的内容投射到终端设备120)为例进行描述。然而,应当理解,取决于所发起的业务的类型,终端设备110和120之间可以建立P2P连接以外的连接。本公开的实施例对此不做任何限制。本公开的实施例可以应用于其他选择信道的场景,而不局限于终端设备之间通过P2P、SoftAp或AP-Station方式进行连接的场景。In the following, description will be made by taking terminal devices 110 and 120 establishing a P2P connection to run a screen projection service (ie, projecting content displayed on the screen of terminal device 110 to terminal device 120 ) as an example. However, it should be understood that, depending on the type of service initiated, connections other than P2P connections may be established between terminal devices 110 and 120 . Embodiments of the present disclosure do not impose any limitation on this. The embodiments of the present disclosure can be applied to other scenarios of channel selection, and are not limited to the scenario of connecting terminal devices through P2P, SoftAp or AP-Station.
在运行投屏业务的示例中,终端设备110可以充当GO,终端设备120可以充当GC。In an example of running a screen projection service, the terminal device 110 may serve as a GO, and the terminal device 120 may serve as a GC.
在终端设备110和120建立连接之后,终端设备110和终端设备120之一将从多个候选信道中选择一个适当的候选信道作为二者之间的工作信道,以运行通信业务。在下文中,在运行通信业务之前所选择的工作信道也被称为第一信道。After the terminal devices 110 and 120 establish a connection, one of the terminal device 110 and the terminal device 120 will select an appropriate candidate channel from multiple candidate channels as a working channel between them to run communication services. In the following, the working channel selected before running the communication service is also referred to as the first channel.
在终端设备110和120建立P2P连接的实施例中,可以由终端设备110和120中充当GO的终端设备来选择工作信道。可替换地,也可以由终端设备110和120中充当GC的终端设备来选择工作信道,本公开的实施例对此不做任何限制。In the embodiment where the terminal devices 110 and 120 establish a P2P connection, the terminal device serving as GO among the terminal devices 110 and 120 may select a working channel. Alternatively, the terminal device serving as the GC among the terminal devices 110 and 120 may also select the working channel, which is not limited in this embodiment of the present disclosure.
为了选择工作信道,在终端设备110和终端设备120完成组网之后以及建立连接之前,充当GO的终端设备可以测量多个候选信道的信道质量,以获得信道的第一测量结果。充当GO的终端设备可以至少基于第一测量结果来确定多个候选信道的评估分数。评估分数各自指示相应候选信道的信道质量。类似地,在组网之后以及建立连接之前,充当GC的终端设备也可以测量多个候选信道的信道质量,以获得信道的第二测量结果。充当GC的终端设备可以至少基于第二测量结果来确定多个候选信道的评估分数。关于确定多个候选信道的评估分数的细节将在下文中“信道测量、测量结果同步、信道评分矩阵构建”部分进行详细描述。In order to select a working channel, after the terminal device 110 and the terminal device 120 complete the networking and before the connection is established, the terminal device acting as GO may measure the channel quality of multiple candidate channels to obtain the first measurement result of the channel. A terminal device acting as a GO may determine evaluation scores for a plurality of candidate channels based at least on the first measurement result. The evaluation scores each indicate the channel quality of the corresponding candidate channel. Similarly, after networking and before establishing a connection, a terminal device acting as a GC may also measure channel qualities of multiple candidate channels to obtain a second channel measurement result. A terminal device acting as a GC may determine evaluation scores for the plurality of candidate channels based at least on the second measurement result. Details about determining the evaluation scores of multiple candidate channels will be described in detail in the section "Channel Measurement, Measurement Result Synchronization, and Channel Score Matrix Construction" below.
进而,在一些实施例中,终端设备110和120中充当GO的终端设备可以基于自身确定的多个候选信道的评估分数,从多个候选信道中选择一个候选信道作为工作信道。Furthermore, in some embodiments, the terminal device acting as the GO among the terminal devices 110 and 120 may select a candidate channel from the multiple candidate channels as the working channel based on the evaluation scores of the multiple candidate channels determined by itself.
在另一些实施例中,终端设备110和120可以通过协商来确定工作信道。以下将参考图3来描述这样的实施例。In some other embodiments, the terminal devices 110 and 120 may determine the working channel through negotiation. Such an embodiment will be described below with reference to FIG. 3 .
图3示出了根据本公开的一些实施例的信道选择过程300的信令交互图。为了论述的目的,将参考图1中示出的各种元素来描述信道选择过程300。然而,应当理解信道选择过程300也可以在任何其他通信场景中执行。此外,在过程300中,终端设备110充当GO,终端设备120充当GC,由充当GO的终端设备110来选择工作信道。FIG. 3 shows a signaling interaction diagram of a channel selection process 300 according to some embodiments of the present disclosure. For purposes of discussion, channel selection process 300 will be described with reference to various elements shown in FIG. 1 . However, it should be understood that the channel selection process 300 may also be performed in any other communication scenario. In addition, in the process 300, the terminal device 110 acts as a GO, the terminal device 120 acts as a GC, and the terminal device 110 acting as a GO selects a working channel.
如图3所示,终端设备120可以基于自身确定的多个候选信道的评估分数,选择(310)多个候选信道的一个子集(也被称作子集A)。As shown in FIG. 3 , the terminal device 120 may select (310) a subset (also referred to as subset A) of the plurality of candidate channels based on the evaluation scores of the plurality of candidate channels determined by itself.
在一些实施例中,多个候选信道可以是终端设备110和120所支持的信道的合集。在一 些实施例中,子集A可以包括终端设备120所支持的候选信道。In some embodiments, the plurality of candidate channels may be a collection of channels supported by the terminal devices 110 and 120 . In some embodiments, subset A may include candidate channels supported by terminal device 120.
进而,终端设备120可以向终端设备110发送(320)多个候选信道的子集A的信息。相应地,终端设备110可以从终端设备120接收(330)多个候选信道的子集A的信息。Further, the terminal device 120 may send (320) the information of the subset A of the plurality of candidate channels to the terminal device 110 . Accordingly, terminal device 110 may receive ( 330 ) information of subset A of the plurality of candidate channels from terminal device 120 .
在一些实施例中,终端设备120可以以信道列表(也被称作信道列表A)的方式向终端设备110发送多个候选信道的子集A的信息。信道列表A中的候选信道可以按照评估分数的顺序进行排列。例如,信道列表A中的候选信道可以按照评估分数从高到低或者从低到高的顺序进行排列。In some embodiments, the terminal device 120 may send the information of the subset A of multiple candidate channels to the terminal device 110 in the form of a channel list (also referred to as a channel list A). Candidate channels in channel list A may be arranged in order of evaluation scores. For example, the candidate channels in the channel list A may be arranged in order of evaluation scores from high to low or from low to high.
在一些实施例中,终端设备120可以工作在多个频段。在这样的实施例中,终端设备120可以针对多个频段分别确定一个信道子表,信道列表A包括多个信道子表中的信道的信息。例如,在终端设备120可以工作在2.4GHz和5GHz的示例中,终端设备120可以针对2.4GHz和5GHz频段分别确定信道子表A1和A2,信道列表A可以包括信道子表A1和A2中的候选信道的信息。信道子表A1和A2中的候选信道可以按照评估分数从高到低或者从低到高的顺序进行排列。例如,子集A1可以包括与2.4GHz频段相关联的、索引分别为31、32和33的候选信道(也被称作候选信道31、32和33),子集A2可以包括与5GHz频段相关联的、索引分别为34、35和36的候选信道(也被称作候选信道34、35和36)。In some embodiments, the terminal device 120 can work in multiple frequency bands. In such an embodiment, the terminal device 120 may respectively determine a channel sub-table for multiple frequency bands, and the channel list A includes information about channels in the multiple channel sub-tables. For example, in an example where the terminal device 120 can work at 2.4GHz and 5GHz, the terminal device 120 can determine the channel sub-tables A1 and A2 respectively for the 2.4GHz and 5GHz frequency bands, and the channel list A can include the candidate channels in the channel sub-tables A1 and A2. channel information. The candidate channels in the channel sub-tables A1 and A2 may be arranged in order of evaluation scores from high to low or from low to high. For example, subset A1 may include candidate channels with indexes 31, 32, and 33 respectively (also referred to as candidate channels 31, 32, and 33) associated with the 2.4GHz frequency band, and subset A2 may include candidate channels associated with the 5GHz frequency band. Candidate channels with indices 34, 35 and 36 respectively (also referred to as candidate channels 34, 35 and 36).
终端设备110可以基于自身确定的多个候选信道的评估分数,选择(340)多个候选信道的一个子集(也被称作子集B)。在一些实施例中,子集B可以包括终端设备110所支持的候选信道。The terminal device 110 may select (340) a subset (also referred to as subset B) of the plurality of candidate channels based on the evaluation scores of the plurality of candidate channels determined by itself. In some embodiments, subset B may include candidate channels supported by terminal device 110 .
在一些实施例中,终端设备110可以将子集B的信道按照评估分数的顺序进行排列,从而生成信道列表(也被称作信道列表B)。类似地,信道列表B中的候选信道也可以按照评估分数从高到低或者从低到高的顺序进行排列。In some embodiments, the terminal device 110 may arrange the channels of the subset B according to the order of evaluation scores, so as to generate a channel list (also referred to as a channel list B). Similarly, the candidate channels in the channel list B may also be arranged in order of evaluation scores from high to low or from low to high.
在一些实施例中,终端设备110也可以工作在多个频段。在这样的实施例中,终端设备110可以针对多个频段分别生成一个信道子表,信道列表B包括多个信道子表中的信道的信息。例如,在终端设备110可以工作在2.4GHz和5GHz频段的示例中,终端设备110可以针对2.4GHz和5GHz频段分别确定信道子表B1和B2,信道列表B可以包括信道子表B1和B2中的候选信道的信息。信道子表B1和B2中的候选信道可以按照评估分数从高到低或者从低到高的顺序进行排列。例如,子集B1可以包括与2.4GHz频段相关联的、索引分别为32、33和34的候选信道(也被称作候选信道32、33和34),子集B2可以包括与5GHz频段相关联的、索引分别为35、36和37的候选信道(也被称作候选信道35、36和37)。In some embodiments, the terminal device 110 may also work in multiple frequency bands. In such an embodiment, the terminal device 110 may respectively generate a channel sub-table for multiple frequency bands, and the channel list B includes information of channels in the multiple channel sub-tables. For example, in an example where the terminal device 110 can work in the 2.4GHz and 5GHz frequency bands, the terminal device 110 can respectively determine channel sub-tables B1 and B2 for the 2.4GHz and 5GHz frequency bands, and the channel list B can include channel sub-tables B1 and B2. Candidate channel information. The candidate channels in the channel sub-tables B1 and B2 may be arranged in order of evaluation scores from high to low or from low to high. For example, subset B1 may include candidate channels with indices 32, 33, and 34 respectively (also referred to as candidate channels 32, 33, and 34) associated with the 2.4GHz band, and subset B2 may include Candidate channels with indices 35, 36 and 37 respectively (also referred to as candidate channels 35, 36 and 37).
进一步,终端设备110可以从子集A和子集B的交集中选择(350)一个候选信道作为工作信道。Further, the terminal device 110 may select (350) a candidate channel from the intersection of the subset A and the subset B as the working channel.
例如,在子集A包括信道子表A1和A2并且子集B包括信道子表B1和B2的示例中,如果终端设备110想要切换到2.4GHz频段的信道,则终端设备110可以在信道子表A1和B1的交集中选择一个候选信道作为工作信道,即,从候选信道32和33中选择一个候选信道作为工作信道。又例如,如果终端设备110想要切换到5GHz频段的信道,则终端设备110可以在信道子表A2和B2的交集中选择一个候选信道作为工作信道,即,从候选信道35和36中选择一个候选信道作为工作信道。For example, in an example where subset A includes channel sub-tables A1 and A2 and subset B includes channel sub-tables B1 and B2, if terminal device 110 wants to switch to a channel in the 2.4GHz frequency band, terminal device 110 can switch to a channel in the channel sub-table A candidate channel is selected from the intersection of tables A1 and B1 as the working channel, that is, a candidate channel is selected from the candidate channels 32 and 33 as the working channel. For another example, if the terminal device 110 wants to switch to a channel in the 5GHz frequency band, the terminal device 110 can select a candidate channel as the working channel in the intersection of the channel sub-tables A2 and B2, that is, select one of the candidate channels 35 and 36 The candidate channel is used as the working channel.
可以理解,尽管在图3中示出在动作330之后执行动作340,然而这仅仅是示例。在其他示例中,可以在动作310与动作330之间执行动作340,或者在动作310之前执行动作340,或者动作340可以与动作310并行地执行。It will be appreciated that although act 340 is shown in Figure 3 as being performed after act 330, this is merely an example. In other examples, act 340 may be performed between act 310 and act 330 , or act 340 may be performed before act 310 , or act 340 may be performed in parallel with act 310 .
此外,可以理解,图3示出了由充当GO的终端设备110来选择工作信道的过程。然而,在其他实施例中,也可以由充当GC的终端设备120执行与过程300类似的过程来选择工作信道。在这样的实施例中,充当GC的终端设备120可以从充当GO的终端设备110接收终端设备110所确定的信道质量较好的候选信道的子集的信息,基于自身确定的候选信道的评估分数来选择信道质量较好的候选信道的另一子集,进而从这两个子集的交集中选择一个候选信道作为工作信道。In addition, it can be understood that FIG. 3 shows the process of selecting a working channel by the terminal device 110 acting as a GO. However, in other embodiments, the terminal device 120 acting as a GC may also perform a process similar to the process 300 to select a working channel. In such an embodiment, the terminal device 120 acting as a GC may receive information of a subset of candidate channels with better channel quality determined by the terminal device 110 from the terminal device 110 acting as a GO, based on the evaluation scores of the candidate channels determined by itself To select another subset of candidate channels with better channel quality, and then select a candidate channel from the intersection of these two subsets as the working channel.
根据本公开的实施例,在发起通信业务之时便选择了信道质量较好的信道来建立通信业务,由此可以提高通信服务质量。According to the embodiments of the present disclosure, when a communication service is initiated, a channel with better channel quality is selected to establish the communication service, thereby improving the communication service quality.
在选择了工作信道之后,终端设备110和120均可以在这两个终端设备110和120之间创建工作信道,以运行通信业务。例如,在投屏业务的示例中,终端设备120可以向终端设备110发送视频流,进而将视频流投射到终端设备110的显示屏上。After the working channel is selected, both terminal devices 110 and 120 can create a working channel between the two terminal devices 110 and 120 to run communication services. For example, in an example of a screen casting service, the terminal device 120 may send a video stream to the terminal device 110 , and then project the video stream onto the display screen of the terminal device 110 .
在运行通信业务期间,进行通信业务布放时所选择的信道可能会受到干扰而服务质量降低。为此,在运行通信业务期间,终端设备110或120可以对工作信道的服务质量进行测量。对工作信道的服务质量进行测量可以包括对工作信道的以下至少一项进行测量:丢包率、重传次数、收发速率、往返时间。During the running of the communication service, the channel selected when the communication service is deployed may be interfered and the service quality will be degraded. To this end, the terminal device 110 or 120 can measure the service quality of the working channel during the operation of the communication service. Measuring the quality of service of the working channel may include measuring at least one of the following items of the working channel: packet loss rate, retransmission times, sending and receiving rate, and round-trip time.
如果所测量的服务质量低于阈值,则终端设备110和120之一可以将工作信道从第一信道切换到第二信道。If the measured quality of service is below a threshold, one of the terminal devices 110 and 120 may switch the operating channel from the first channel to the second channel.
在一些实施例中,终端设备110或120可以基于多个候选信道的评估分数,从多个候选信道中选择第二信道。In some embodiments, the terminal device 110 or 120 may select the second channel from the multiple candidate channels based on the evaluation scores of the multiple candidate channels.
在另一些实施例中,终端设备110和120可以通过协商来确定第二信道。以下将参考图4来描述这样的实施例。In some other embodiments, the terminal devices 110 and 120 may determine the second channel through negotiation. Such an embodiment will be described below with reference to FIG. 4 .
图4示出了根据本公开的一些实施例的信道选择过程400的信令交互图。为了论述的目的,将参考图1中示出的各种元素来描述信道选择过程400。然而,应当理解信道选择过程400也可以在任何其他通信场景中执行。此外,在过程400中,终端设备110充当GO,终端设备120充当GC,由充当GO的终端设备110来选择所要切换到的第二工作信道。FIG. 4 shows a signaling interaction diagram of a channel selection process 400 according to some embodiments of the present disclosure. For purposes of discussion, channel selection process 400 will be described with reference to various elements shown in FIG. 1 . However, it should be understood that the channel selection process 400 may also be performed in any other communication scenario. In addition, in the process 400, the terminal device 110 acts as the GO, the terminal device 120 acts as the GC, and the terminal device 110 acting as the GO selects the second working channel to be switched to.
如图4所示,终端设备120对当前工作信道(即第一信道)的服务质量进行测量(410)。如果第一信道的服务质量低于阈值,则终端设备120基于自身确定的多个候选信道的评估分数,选择(420)多个候选信道的一个子集(也被称作子集C)。As shown in FIG. 4, the terminal device 120 measures the service quality of the current working channel (ie, the first channel) (410). If the service quality of the first channel is lower than the threshold, the terminal device 120 selects (420) a subset (also referred to as subset C) of the plurality of candidate channels based on the evaluation scores of the plurality of candidate channels determined by itself.
在一些实施例中,该阈值与通信业务的类型相关联。换言之,不同的通信业务对信道的服务质量的容忍程度可以不同。由此,可以根据通信业务的类型来确定相应的阈值。In some embodiments, the threshold is associated with a type of communication traffic. In other words, different communication services may have different tolerances for channel QoS. Thus, the corresponding threshold can be determined according to the type of communication service.
在一些实施例中,子集C可以包括终端设备120所支持的候选信道。In some embodiments, the subset C may include candidate channels supported by the terminal device 120 .
进而,终端设备120可以向终端设备110发送(430)多个候选信道的子集C的信息。相应地,终端设备110可以从终端设备120接收(440)多个候选信道的子集C的信息。Further, the terminal device 120 may send (430) information of the subset C of the plurality of candidate channels to the terminal device 110 . Accordingly, the terminal device 110 may receive (440) from the terminal device 120 information of the subset C of the plurality of candidate channels.
与子集A类似,终端设备120可以以信道列表(也被称作信道列表C)的方式向终端设备110发送多个候选信道的子集C的信息。信道列表C中的候选信道可以按照评估分数从高到低或者从低到高的顺序进行排列。Similar to the subset A, the terminal device 120 may send the information of the subset C of multiple candidate channels to the terminal device 110 in the form of a channel list (also referred to as a channel list C). The candidate channels in the channel list C may be arranged in order of evaluation scores from high to low or from low to high.
此外,与子集A类似,在终端设备120可以工作在多个频段的实施例中,终端设备120可以针对多个频段分别确定一个信道子表,信道列表C包括多个信道子表中的信道的信息。In addition, similar to subset A, in an embodiment where the terminal device 120 can work in multiple frequency bands, the terminal device 120 can respectively determine a channel sub-list for the multiple frequency bands, and the channel list C includes the channels in the multiple channel sub-tables Information.
终端设备110可以基于自身确定的多个候选信道的评估分数,选择(450)多个候选信道的一个子集(也被称作子集D)。在一些实施例中,子集D可以包括终端设备110所支持的 候选信道。The terminal device 110 may select (450) a subset (also referred to as subset D) of the plurality of candidate channels based on the evaluation scores of the plurality of candidate channels determined by itself. In some embodiments, the subset D may include candidate channels supported by the terminal device 110.
与子集B类似,终端设备110可以将子集D的信道按照评估分数的顺序进行排列,从而生成信道列表(也被称作信道列表D)。类似地,信道列表D中的候选信道也可以按照评估分数从高到低或者从低到高的顺序进行排列。Similar to the subset B, the terminal device 110 may arrange the channels of the subset D according to the order of evaluation scores, so as to generate a channel list (also referred to as a channel list D). Similarly, the candidate channels in the channel list D may also be arranged in order of evaluation scores from high to low or from low to high.
在终端设备110可以工作在多个频段的实施例中,终端设备110可以针对多个频段分别生成一个信道子表,信道列表D包括多个信道子表中的信道的信息。In an embodiment in which the terminal device 110 can work in multiple frequency bands, the terminal device 110 can respectively generate a channel sub-table for the multiple frequency bands, and the channel list D includes information about channels in the multiple channel sub-tables.
进一步,终端设备110可以从子集C和子集D的交集中选择(460)一个候选信道作为第二信道。Further, the terminal device 110 may select (460) a candidate channel from the intersection of the subset C and the subset D as the second channel.
例如,在子集C包括与2.4GHz频段相关联的信道子表C1和C2并且子集D包括与5GHz频段相关联的信道子表D1和D2的示例中,如果终端设备110想要切换到2.4GHz频段的信道,则终端设备110可以在信道子表C1和D1的交集中选择一个候选信道作为工作信道。又例如,如果终端设备110想要切换到5GHz频段的信道,则终端设备110可以在信道子表C2和D2的交集中选择一个候选信道作为工作信道。For example, in an example where subset C includes channel subtables C1 and C2 associated with the 2.4GHz frequency band and subset D includes channel subtables D1 and D2 associated with the 5GHz frequency band, if terminal device 110 wants to switch to 2.4 GHz frequency band channel, the terminal device 110 may select a candidate channel in the intersection of the channel sub-tables C1 and D1 as the working channel. For another example, if the terminal device 110 wants to switch to a channel in the 5GHz frequency band, the terminal device 110 may select a candidate channel in the intersection of the channel sub-tables C2 and D2 as the working channel.
在一些实施例中,可选地,在选择了所要切换到的第二信道之后,终端设备110可以向终端设备120发送切换通知。该切换通知可以指示第二信道的信息。此外,可选择地,该切换通知还可以指示信道的切换时间。进而,终端设备110和120可以在所通知的切换时间将工作信道切换到第二信道。In some embodiments, optionally, after selecting the second channel to be switched to, the terminal device 110 may send a switching notification to the terminal device 120 . The switching notification may indicate information of the second channel. In addition, optionally, the switching notification may also indicate the switching time of the channel. Furthermore, the terminal devices 110 and 120 may switch the working channel to the second channel at the notified switching time.
可以理解,尽管在图4中示出在动作440之后执行动作450,然而这仅仅是示例。在其他示例中,可以在动作410与动作440之间执行动作450,或者在动作410之前执行动作440,或者动作450可以与动作410并行地执行。It will be appreciated that although act 450 is shown in Figure 4 as being performed after act 440, this is merely an example. In other examples, act 450 may be performed between act 410 and act 440 , or act 440 may be performed before act 410 , or act 450 may be performed in parallel with act 410 .
此外,可以理解,图4示出了由充当GO的终端设备110来选择所要切换到的信道的过程。然而,在其他实施例中,也可以由充当GC的终端设备120执行与过程400类似的过程来选择所要切换到的信道。In addition, it can be understood that FIG. 4 shows a process in which the terminal device 110 acting as a GO selects a channel to be switched to. However, in other embodiments, the terminal device 120 acting as the GC may also perform a process similar to the process 400 to select the channel to be switched to.
根据本公开的实施例,在进行通信业务期间,如果检测到信道的服务质量低于阈值,可以基于信道的测量结果重新选择工作信道进行切换,由此可以进一步提高通信服务质量。According to the embodiments of the present disclosure, during the communication service, if it is detected that the service quality of the channel is lower than the threshold, a working channel may be reselected based on the channel measurement result for switching, thereby further improving the communication service quality.
在一些实施例中,在所测量的服务质量低于阈值的情况下,在将工作信道从第一信道切换到第二信道之前,终端设备120可以降低通信业务的质量。例如,终端设备120可以降低码率、分辨率、压缩画面质量等,从而降低带宽占用率。In some embodiments, if the measured quality of service is lower than a threshold, before switching the working channel from the first channel to the second channel, the terminal device 120 may reduce the quality of the communication service. For example, the terminal device 120 may reduce the code rate, resolution, compressed picture quality, etc., so as to reduce the bandwidth occupancy rate.
进而,终端设备120可以在预定时间段之后重新测量第一信道的服务质量。例如,终端设备120可以启动定时器。如果定时器超时并且重新测量的服务质量仍低于阈值,则终端设备120可以将该通信业务从第一信道切换到第二信道。另一方面,如果定时器超时并且重新测量的服务质量高于阈值,则终端设备120可以将该通信业务保持在第一信道上。由此,可以避免由于信道切换而影响通信业务。Furthermore, the terminal device 120 may re-measure the service quality of the first channel after a predetermined period of time. For example, terminal device 120 may start a timer. If the timer expires and the remeasured quality of service is still lower than the threshold, the terminal device 120 may switch the communication service from the first channel to the second channel. On the other hand, if the timer expires and the remeasured quality of service is higher than the threshold, the terminal device 120 may keep the communication traffic on the first channel. Thus, it is possible to avoid affecting communication services due to channel switching.
在下文中,将描述关于信道测量、同步、信道评分矩阵构建的细节。In the following, details about channel measurement, synchronization, channel scoring matrix construction will be described.
信道测量、测量结果同步、信道评分矩阵构建Channel measurement, synchronization of measurement results, construction of channel scoring matrix
1.信道测量1. Channel measurement
如前所述,终端设备110和120可以在空闲状态下测量多个候选信道的信道质量,以分别获得信道的第一测量结果和第二测量结果。需要指出的是,终端设备110和120在进行通信业务之前以及进行通信业务期间,均可以对候选信道的信道质量进行测量,本公开的范围 在此方面不受限制。此外,通信网络100中的终端设备130也可以在空闲状态下测量多个候选信道的信道质量,以获得信道的第三测量结果。As mentioned above, the terminal devices 110 and 120 may measure the channel qualities of multiple candidate channels in an idle state, so as to respectively obtain the first measurement result and the second measurement result of the channels. It should be noted that the terminal devices 110 and 120 can measure the channel quality of the candidate channel before and during the communication service, and the scope of the present disclosure is not limited in this respect. In addition, the terminal device 130 in the communication network 100 may also measure the channel quality of multiple candidate channels in an idle state, so as to obtain a third channel measurement result.
在一些实施例中,终端设备110、120和130中的任一个可以在空闲状态下周期性地测量多个候选信道的信道质量。在这样的实施例中,如果终端设备110、120和130中的任一个检测到测量周期已到,则该终端设备可以确定自身是否能够进行测量。例如,如果终端设备110不具备测量能力或者正在部署业务,则可以确定自身不能够进行测量。In some embodiments, any one of the terminal devices 110, 120 and 130 may periodically measure the channel quality of multiple candidate channels in an idle state. In such an embodiment, if any one of the terminal devices 110, 120 and 130 detects that the measurement period has expired, the terminal device may determine whether it is capable of taking measurements. For example, if the terminal device 110 does not have the measurement capability or is deploying services, it may determine that it cannot perform the measurement itself.
如果终端设备110、120和130中的任一个能够测量,则该终端设备可以进一步确定是否处于空闲状态。在一些实施例中,如果该终端设备当前未连接任何AP或者未建立任何P2P等业务,则该终端设备处于空闲状态。在另一些实施例中,如果该终端设备开启了Wi-Fi状态,但是不存在与其他设备的Wi-Fi连接,或者虽然存在与其他设备的Wi-Fi连接,但是当前流量小于预定的阈值,则该终端设备处于空闲状态。If any one of the terminal devices 110, 120 and 130 can measure, the terminal device can further determine whether it is in an idle state. In some embodiments, if the terminal device is not currently connected to any AP or has not established any P2P service, the terminal device is in an idle state. In some other embodiments, if the terminal device is in the Wi-Fi state, but there is no Wi-Fi connection with other devices, or although there is a Wi-Fi connection with other devices, but the current traffic is less than a predetermined threshold, Then the terminal device is in an idle state.
可以理解,以上仅是确定终端设备是否处于空闲状态的示例,本公开的范围在此方面不受限制。It can be understood that the above is only an example of determining whether the terminal device is in an idle state, and the scope of the present disclosure is not limited in this respect.
可替换地,两个终端设备也可以在进行通信业务期间,协商在某个周期一起从工作信道切换到一个候选信道进行测量,在完成测量之后二者再切换回工作信道。由此,可以防止由于两个终端设备不在同一个信道、收发不一致而丢包。Alternatively, the two terminal devices may also negotiate to switch from the working channel to a candidate channel for measurement in a certain period during the communication service, and switch back to the working channel after the measurement is completed. In this way, it is possible to prevent packet loss due to the fact that the two terminal devices are not in the same channel and the sending and receiving are inconsistent.
在一些实施例中,未参与组网的终端设备也可以对多个候选信道的信道质量进行测量。在这样的实施例中,可以设置较长的测量周期。此外,未参与组网的终端设备在静止状态下可以仅保留一次测量结果。终端设备在参与组网之后,测量周期可以缩短。可选地,终端设备在感知到从移动状态切换到静止状态时则触发一次测量。In some embodiments, a terminal device not participating in the networking may also measure the channel quality of multiple candidate channels. In such an embodiment, a longer measurement period can be set. In addition, a terminal device that does not participate in the networking can only retain a measurement result once in a static state. After the terminal device participates in the networking, the measurement period can be shortened. Optionally, the terminal device triggers a measurement when it senses that the mobile state is switched to the stationary state.
此外,本公开的实施例还可以存在其他应用场景。例如,两个终端设备可以进行一次性组网以便临时分享文件等。In addition, the embodiments of the present disclosure may also have other application scenarios. For example, two terminal devices can conduct a one-time networking to share files temporarily.
在一些实施例中,终端设备可以测量如以下表1所示的信道的评估参数。In some embodiments, the terminal device may measure channel evaluation parameters as shown in Table 1 below.
表1Table 1
Figure PCTCN2022105563-appb-000001
Figure PCTCN2022105563-appb-000001
可以理解,表1仅是示意,终端设备可以测量更多或更少的评估参数,本公开的范围在此方面不受限制。It can be understood that Table 1 is only illustrative, and the terminal device may measure more or less evaluation parameters, and the scope of the present disclosure is not limited in this respect.
在一些实施例中,终端设备可以每测量一个候选信道,就确定自身是否处于空闲状态。如果确定自身处于空闲状态,则终端设备可以进一步测量其他的候选信道。In some embodiments, the terminal device may determine whether it is in an idle state every time it measures a candidate channel. If it is determined that it is in an idle state, the terminal device may further measure other candidate channels.
2.测量结果同步2. Synchronization of measurement results
在一些实施例中,在终端设备130首次加入终端设备110和120所组成的通信网络时,终端设备110或120可以将自身的信道测量结果(第一测量结果或第二测量结果)同步到终端设备130。应当理解,此处的“加入”是指终端设备130加入到终端设备110和120所组成的通信网络但是并未发起通信业务,终端设备130只是通过发现机制发现了终端设备110和120。以此方式,如果终端设备130接入网络后立即发起与其他终端设备(图1中未示出)的通信业务,则终端设备130可以基于从终端设备110或120获得的信道的测量结果来选择适当的信道建立通信业务。由此,提高了通信效率。以下将参考图5来描述这样的实施例。In some embodiments, when the terminal device 130 joins the communication network formed by the terminal devices 110 and 120 for the first time, the terminal device 110 or 120 may synchronize its own channel measurement results (first measurement results or second measurement results) to the terminal device 130. It should be understood that "joining" here means that the terminal device 130 joins the communication network formed by the terminal devices 110 and 120 but does not initiate a communication service, and the terminal device 130 only discovers the terminal devices 110 and 120 through a discovery mechanism. In this way, if the terminal device 130 initiates a communication service with other terminal devices (not shown in FIG. 1 ) immediately after accessing the network, the terminal device 130 can select the Appropriate channels are established for traffic. Thus, communication efficiency is improved. Such an embodiment will be described below with reference to FIG. 5 .
图5示出了根据本公开的一些实施例的信道测量结果同步过程500的信令交互图。为了论述的目的,将参考图1中示出的各种元素来描述过程500。然而,应当理解,过程500也可以在任何其他通信场景中执行。在过程500中,终端设备130首次接入终端设备110和120所组成的通信网络,终端设备110将自身的信道测量结果(第一测量结果)同步到终端设备130。然而,应当理解,终端设备120和终端设备130之间可以执行与过程500类似的过程来实现信道测量结果的同步。FIG. 5 shows a signaling interaction diagram of a channel measurement result synchronization process 500 according to some embodiments of the present disclosure. For purposes of discussion, process 500 will be described with reference to various elements shown in FIG. 1 . However, it should be understood that process 500 may also be performed in any other communication scenario. In process 500 , terminal device 130 accesses the communication network formed by terminal devices 110 and 120 for the first time, and terminal device 110 synchronizes its own channel measurement result (first measurement result) to terminal device 130 . However, it should be understood that a process similar to the process 500 may be performed between the terminal device 120 and the terminal device 130 to achieve synchronization of channel measurement results.
如图5所示,终端设备130首次接入终端设备110和120所组成的通信网络后,向终端设备110发送(510)测量结果同步请求。在接收到(520)该测量结果同步请求后,终端设备110可以将信道的第一测量结果同步(530)到终端设备130。相应地,终端设备130从终端设备110接收(540)信道的第一测量结果。As shown in FIG. 5 , after the terminal device 130 accesses the communication network formed by the terminal devices 110 and 120 for the first time, it sends ( 510 ) a measurement result synchronization request to the terminal device 110 . After receiving ( 520 ) the measurement result synchronization request, the terminal device 110 may synchronize ( 530 ) the first measurement result of the channel to the terminal device 130 . Accordingly, the terminal device 130 receives (540) from the terminal device 110 a first measurement result of the channel.
在一些实施例中,终端设备110可以通过局域网来同步信道测量结果。可替换地,终端设备110可以通过BLE广播或者BLE连接来同步信道测量结果。In some embodiments, the terminal device 110 can synchronize the channel measurement results through a local area network. Alternatively, the terminal device 110 may synchronize the channel measurement results through BLE broadcast or BLE connection.
在一些实施例中,可选地,终端设备130可以基于第一测量结果来确定多个候选信道的评估分数。In some embodiments, optionally, the terminal device 130 may determine evaluation scores of multiple candidate channels based on the first measurement result.
在一些实施例中,可选地,在终端设备130接入终端设备110和终端设备120所组成的通信网络之后,终端设备130自身也可以对多个候选信道的信道质量进行测量(550),以获得信道的第三测量结果。In some embodiments, optionally, after the terminal device 130 accesses the communication network formed by the terminal device 110 and the terminal device 120, the terminal device 130 itself may also measure the channel quality of multiple candidate channels (550), to obtain a third measurement result of the channel.
在一些实施例中,可选地,终端设备130可以利用自身的信道测量结果(即第三测量结果)来更新多个候选信道的评估分数。In some embodiments, optionally, the terminal device 130 may use its own channel measurement result (ie, the third measurement result) to update the evaluation scores of multiple candidate channels.
在一些实施例中,通信网络100中的某些终端设备可能由于当前正在部署业务而不便于测量。例如,如上所述,由于终端设备110和120正在部署投屏业务,因而不便于对信道质量进行测量。在这样的实施例中,通信网络100中方便测量的终端设备可以将自身的测量结果同步到不便于测量的终端设备。例如,在过程500中,可选地,终端设备130可以将自身的信道测量结果(即第三测量结果)同步到(560)终端设备110。例如,终端设备130可以通过局域网来同步信道测量结果。可替换地,终端设备130可以通过BLE广播或者BLE连接来同步信道测量结果。In some embodiments, some terminal devices in the communication network 100 may not be convenient for measurement because services are currently being deployed. For example, as mentioned above, since the terminal devices 110 and 120 are deploying the screen projection service, it is not convenient to measure the channel quality. In such an embodiment, a terminal device that is convenient for measurement in the communication network 100 may synchronize its own measurement results to a terminal device that is not convenient for measurement. For example, in the process 500, optionally, the terminal device 130 may synchronize (560) its own channel measurement result (ie, the third measurement result) to the terminal device 110 . For example, the terminal device 130 may synchronize channel measurement results through a local area network. Alternatively, the terminal device 130 may synchronize the channel measurement results through BLE broadcast or BLE connection.
相应地,终端设备110从终端设备130接收(570)第三测量结果。在接收到(570)第三测量结果之后,可选地,终端设备110可以利用第三测量结果来更新(580)多个候选信道的本地的评估分数。Accordingly, the terminal device 110 receives ( 570 ) the third measurement result from the terminal device 130 . After receiving (570) the third measurement result, optionally, the terminal device 110 may use the third measurement result to update (580) the local evaluation scores of the plurality of candidate channels.
在另一些实施例中,通信网络100中的某些终端设备可能不具备测量能力、测量能力弱、或者只能测量部分评估参数。例如,通信网络100中的终端设备可以包括富设备和轻量化设 备。富设备通常具有测量能力,并且具有丰富的硬件资源,因而具有空闲资源可以进行信道测量。例如,富设备可以具有丰富的计算资源进行调度。或者,富设备可以具有额外的射频资源,例如支持2.4GHz和5GHz等双射频或者支持2.4GHz、5GHz和6GHz这样的三射频。或者,富设备可以具有额外的设备资源,例如单独的天线、或者单独的额外无线芯片资源,因而具有空闲资源可以进行信道测量。而轻量化设备可能无测量能力,或者不具有丰富的CPU资源,因而进行信道测量会严重影响业务;或者只能测量部分评估参数。在这样的实施例中,具备测量能力或者能够测量全部评估参数的终端设备可以将自身的测量结果同步到不具备测量能力、测量能力弱、或者只能测量部分评估参数的终端设备。In some other embodiments, some terminal devices in the communication network 100 may not have measurement capabilities, have weak measurement capabilities, or can only measure part of the evaluation parameters. For example, terminal devices in the communication network 100 may include rich devices and lightweight devices. Rich devices usually have measurement capability and abundant hardware resources, so they can perform channel measurement with idle resources. For example, rich devices can be scheduled with rich computing resources. Alternatively, the rich device may have additional radio frequency resources, such as supporting dual radio frequencies such as 2.4GHz and 5GHz or supporting three radio frequencies such as 2.4GHz, 5GHz and 6GHz. Alternatively, the rich device may have additional device resources, such as a separate antenna, or a separate wireless chip resource, so that channel measurement can be performed with idle resources. However, lightweight devices may not have measurement capabilities, or may not have abundant CPU resources, so channel measurement will seriously affect services; or only part of the evaluation parameters can be measured. In such an embodiment, a terminal device capable of measuring or capable of measuring all evaluation parameters may synchronize its own measurement results to a terminal device that does not have measurement capability, has weak measurement capability, or can only measure part of the evaluation parameters.
由此,通信网络100中的各终端设备都可以获得或更新信道的测量结果,从而可以确定或更新信道的评估分数。进而,各终端设备可以在通信业务发起时基于信道的评估分数来选择适当的工作信道。Thus, each terminal device in the communication network 100 can obtain or update the measurement result of the channel, so as to determine or update the evaluation score of the channel. Furthermore, each terminal device can select an appropriate working channel based on the evaluation score of the channel when the communication service is initiated.
在一些实施例中,通信网络100中的某些终端设备可能是非常电设备,非常电设备如果频繁进行信道测量结果的同步会消耗较多功耗。为了减少信道测量结果的同步,可以针对每个待测参数定义多个阈值,每个阈值与相应的档位相关联。例如,以表1所示的信号强度为例。可以针对信号强度定义按照从大到小顺序排列的第一阈值、第二阈值、第三阈值和第四阈值。第一阈值、第二阈值、第三阈值和第四阈值分别与强、中、弱、不可接受档位相关联。如果测量的信号强度在四个阈值范围内波动,则可以不启动同步。如果测量的信号强度跨阈值波动,则启动同步。例如,如果测量的信号强度低于第四阈值,表明测量的信号强度处于不可接受的水平,则可以启动同步。In some embodiments, some terminal devices in the communication network 100 may be very electrical devices, and if the very electrical devices frequently synchronize channel measurement results, they will consume more power consumption. In order to reduce the synchronization of channel measurement results, multiple thresholds can be defined for each parameter to be measured, and each threshold is associated with a corresponding gear. For example, take the signal strength shown in Table 1 as an example. A first threshold, a second threshold, a third threshold, and a fourth threshold arranged in descending order may be defined for signal strength. The first threshold, the second threshold, the third threshold and the fourth threshold are respectively associated with strong, medium, weak and unacceptable gears. If the measured signal strength fluctuates within four thresholds, synchronization may not be initiated. If the measured signal strength fluctuates across a threshold, synchronization is initiated. For example, synchronization may be initiated if the measured signal strength is below a fourth threshold, indicating that the measured signal strength is at an unacceptable level.
为了进一步减少信道测量结果的同步,通信网络100中的终端设备参与组网之初可以动态地随时交换彼此的测量能力信息。如果各终端设备均支持测量,则无需同步。如果某个终端设备由于进入分布式业务繁忙阶段,测量可能影响业务,因而无法自行测量,则仅该终端设备可以通知附近的一个或多个设备将信道测量结果同步给自己。In order to further reduce the synchronization of channel measurement results, terminal devices in the communication network 100 may dynamically exchange measurement capability information with each other at any time when they participate in the networking. If each end device supports measurements, no synchronization is required. If a terminal device is unable to perform self-measurement due to the fact that the measurement may affect the service due to the busy phase of distributed services, only the terminal device can notify one or more nearby devices to synchronize the channel measurement results to itself.
此外,在一些实施例中,为了提高测量结果的准确度,可以缩短终端设备(例如常电设备)的测量周期。In addition, in some embodiments, in order to improve the accuracy of the measurement result, the measurement cycle of the terminal device (for example, the constant power device) may be shortened.
3.同步测量结果的有效性裁决3. Verdict on validity of simultaneous measurement results
在一些实施例中,在终端设备本地可以测量的情况下,优先使用自身的测量结果。在终端设备本地无测量结果的情况下,如果仅有一份测量结果,则使用该测量结果。在终端设备同时具有由多个邻居同步的测量结果的情况下,优先使用由距离自身最近的邻居同步的测量结果。在终端设备同时具有由多个距离相近的邻居同步的测量结果的情况下,优先使用时间最近的测量结果。In some embodiments, if the terminal device can measure locally, its own measurement result is preferentially used. In the case that there is no local measurement result of the terminal device, if there is only one measurement result, the measurement result is used. In the case that a terminal device has measurement results synchronized by multiple neighbors at the same time, the measurement result synchronized by the neighbor closest to itself is preferentially used. In the event that an end device simultaneously has measurements synchronized by several neighbors at close distances, the most recent measurement is used first.
4.数据衰减4. Data decay
在一些实施例中,终端设备110可以基于从终端设备130接收的心跳报文来确定二者之间的距离和角度。因此,终端设备110从终端设备130接收到第三测量结果后,可以基于二者之间的距离和角度中的至少一项将接收的第三测量结果减小(也被称为衰减)。作为示例,终端设备110可以基于二者之间的距离和角度中的至少一项将接收的第三测量结果减小预定值。In some embodiments, the terminal device 110 may determine the distance and angle between the two based on the heartbeat message received from the terminal device 130 . Therefore, after receiving the third measurement result from the terminal device 130, the terminal device 110 may reduce (also referred to as attenuation) the received third measurement result based on at least one of the distance and angle between the two. As an example, the terminal device 110 may reduce the received third measurement result by a predetermined value based on at least one of a distance and an angle between the two.
例如,以信号强度为例,终端设备110可以基于以下表2来对第三测量结果中的信号强 度进行衰减。For example, taking signal strength as an example, terminal device 110 may attenuate the signal strength in the third measurement result based on Table 2 below.
表2Table 2
距离(米)distance (m) 衰减值(分贝)Attenuation value (dB)
小于3less than 3 00
33 22
66 44
99 66
如表2所示,如果终端设备110与终端设备130之间的距离小于5米,则终端设备110可以不对第三测量结果中的信号强度进行衰减。如果终端设备110与终端设备130之间的距离为5米,则终端设备110可以将第三测量结果中的信号强度衰减2分贝。如果终端设备110与终端设备130之间的距离为10米,则终端设备110可以将第三测量结果中的信号强度衰减4分贝。以此类推。As shown in Table 2, if the distance between the terminal device 110 and the terminal device 130 is less than 5 meters, the terminal device 110 may not attenuate the signal strength in the third measurement result. If the distance between the terminal device 110 and the terminal device 130 is 5 meters, the terminal device 110 may attenuate the signal strength in the third measurement result by 2 decibels. If the distance between the terminal device 110 and the terminal device 130 is 10 meters, the terminal device 110 may attenuate the signal strength in the third measurement result by 4 decibels. and so on.
可以理解,以上仅是终端设备对从其他终端设备接收的信道测量结果进行衰减的示例。终端设备可以根据具体的应用场景选择相应的衰减策略,本公开的范围在此方面不受限制。It can be understood that the above is only an example of the terminal device attenuating the channel measurement results received from other terminal devices. The terminal device may select a corresponding attenuation strategy according to a specific application scenario, and the scope of the present disclosure is not limited in this respect.
在一些实施例中,如果终端设备将从其他终端设备接收的信道测量结果衰减到预定阈值以下,则可以认为该测量结果对自身无影响。例如,终端设备基于从其他终端设备接收的某个信道的测量结果能够感知到该信道上的信号边界,但是该信道的测量结果已经被衰减到预定阈值以下,这种情况下该信号对该终端设备的收发是没有影响的。In some embodiments, if a terminal device attenuates channel measurement results received from other terminal devices below a predetermined threshold, it may consider that the measurement results have no effect on itself. For example, a terminal device can perceive the signal boundary on a certain channel based on the measurement results received from other terminal devices, but the measurement results of this channel have been attenuated below a predetermined threshold. The sending and receiving of the device is not affected.
5.信道评分矩阵构建5. Channel scoring matrix construction
在一些实施例中,在获得了信道的测量结果之后,终端设备110、120和130中的任一个可以基于信道的测量结果来确定多个候选信道的评估分数。终端设备110、120和130中的任一个可以通过任何适当的方式来维护多个候选信道的评估分数。作为示例,终端设备110、120和130中的任一个可以利用信道评分矩阵来维护多个候选信道的评估分数。当然,也可以利用信道评分矩阵以外的方式来维护多个候选信道的评估分数,本公开的范围在此方面不受限制。在下文中,出于说明的目的,将以信道评分矩阵为例进行描述。In some embodiments, after obtaining the measurement results of the channels, any one of the terminal devices 110, 120 and 130 may determine evaluation scores of multiple candidate channels based on the measurement results of the channels. Any one of the terminal devices 110, 120 and 130 may maintain the evaluation scores of the plurality of candidate channels in any suitable manner. As an example, any of terminal devices 110, 120, and 130 may utilize a channel scoring matrix to maintain evaluation scores for a plurality of candidate channels. Of course, the evaluation scores of multiple candidate channels may also be maintained in a manner other than the channel scoring matrix, and the scope of the present disclosure is not limited in this respect. In the following, for the purpose of illustration, the channel scoring matrix will be used as an example for description.
在一些实施例中,终端设备110、120和130中的任一个可以基于以下来确定多个候选信道中的每个候选信道的评估分数:In some embodiments, any of terminal devices 110, 120, and 130 may determine an evaluation score for each of the plurality of candidate channels based on:
Figure PCTCN2022105563-appb-000002
Figure PCTCN2022105563-appb-000002
其中x i表示候选信道的第i个评估参数的测量值,f i(x i)表示与第i个评估参数相关联的分数,a i表示与第i个评估参数相关联的权重。 where xi represents the measured value of the i-th evaluation parameter of the candidate channel, f i ( xi ) represents the score associated with the i-th evaluation parameter, and a i represents the weight associated with the i-th evaluation parameter.
在一些实施例中,a i可以通过仿真评估和/或实际测试来确定。例如,通过多次测量可以确定a 1=25,a 2=25,a 3=40,a 4=40。 In some embodiments, a i may be determined through simulation evaluation and/or actual testing. For example, a 1 =25, a 2 =25, a 3 =40, a 4 =40 can be determined through multiple measurements.
作为示例,候选信道的评估参数例如可以包括以上表1所示的评估参数。例如,x 1可以表示候选信道的干扰数量,x 2可以表示候选信道的信号强度,x 3可以表示候选信道的信道负载,x 2可以表示候选信道的底噪。 As an example, the evaluation parameters of the candidate channels may include, for example, the evaluation parameters shown in Table 1 above. For example, x 1 can represent the amount of interference of the candidate channel, x 2 can represent the signal strength of the candidate channel, x 3 can represent the channel load of the candidate channel, and x 2 can represent the noise floor of the candidate channel.
在一些实施例中,可以将各个评估参数的测量值输入神经网络模型,进行有效计算之后输出评估分数。In some embodiments, the measured values of each evaluation parameter can be input into the neural network model, and the evaluation score can be output after effective calculation.
图6示出了根据本公开的一些实施例的用于信道选择的示例方法600的流程图。在一些 实施例中,示例方法600可以由第一终端设备来实现。作为示例,第一终端设备可以是示例通信网络100中的终端设备110、120和130中的任一个。在这样的示例中,方法600可以由终端设备110、120或130的处理器或处理单元配合其他组件(例如,收发器)来实现。在其他实施例中,示例方法600也可以由独立于示例通信网络100的其他通信设备来实现。FIG. 6 shows a flowchart of an example method 600 for channel selection according to some embodiments of the present disclosure. In some embodiments, example method 600 may be implemented by a first terminal device. As an example, the first terminal device may be any one of the terminal devices 110 , 120 and 130 in the example communication network 100 . In such an example, the method 600 may be implemented by a processor or a processing unit of the terminal device 110, 120 or 130 in cooperation with other components (for example, a transceiver). In other embodiments, the example method 600 may also be implemented by other communication devices independent of the example communication network 100 .
在框610处,第一终端设备在通过第一信道与第二终端设备进行通信业务期间,测量第一信道的服务质量。At block 610, the first terminal device measures the quality of service of the first channel during communication traffic with the second terminal device over the first channel.
在框620处,如果服务质量低于阈值,则第一终端设备将通信业务从第一信道切换到第二信道。At block 620, if the quality of service is below the threshold, the first terminal device switches communication traffic from the first channel to the second channel.
利用方法600,终端设备能够在运行通信业务期间切换到信道质量全局最优的信道上。例如,在存在大量分布式业务的情况下,组网中的中心节点可以预先下发指令,使组网中的终端设备选择工作在预定信道或者选择能容纳当前业务的信道,从而使整个网络的通信质量达到最优。Using the method 600, the terminal device can switch to the channel with the globally optimal channel quality during the running of the communication service. For example, in the case of a large number of distributed services, the central node in the network can issue instructions in advance to make the terminal equipment in the network choose to work on a predetermined channel or select a channel that can accommodate the current service, so that the entire network Communication quality is optimal.
图7示出了根据本公开的实施例的电子设备700的结构示意图。如图7所示,电子设备700可以包括处理器210、外部存储器接口292、内部存储器296、订户身份模块(Subscriber Identification Module,SIM)卡接口294、显示屏220、摄像头222、指示器224、马达226、按键228、通用串行总线(Universal Serial Bus,USB)接口230、充电管理器模块240、电源管理模块242、电池244、移动通信模块250、天线252、无线通信模块260、天线262、音频模块270、扬声器272、受话器274、麦克风276、耳机接口278以及传感器模块280等。传感器模块280包括压力传感器2802、陀螺仪传感器2804、气压传感器2806、磁传感器2808、加速度传感器2810、距离传感器2812、接近光传感器2814、指纹传感器2816、温度传感器2818、触控传感器2820和环境光传感器2822等。FIG. 7 shows a schematic structural diagram of an electronic device 700 according to an embodiment of the present disclosure. As shown in FIG. 7 , the electronic device 700 may include a processor 210, an external memory interface 292, an internal memory 296, a subscriber identity module (Subscriber Identification Module, SIM) card interface 294, a display screen 220, a camera 222, an indicator 224, a motor 226, button 228, universal serial bus (Universal Serial Bus, USB) interface 230, charging manager module 240, power management module 242, battery 244, mobile communication module 250, antenna 252, wireless communication module 260, antenna 262, audio Module 270, speaker 272, receiver 274, microphone 276, earphone interface 278, sensor module 280 and so on. The sensor module 280 includes a pressure sensor 2802, a gyro sensor 2804, an air pressure sensor 2806, a magnetic sensor 2808, an acceleration sensor 2810, a distance sensor 2812, a proximity light sensor 2814, a fingerprint sensor 2816, a temperature sensor 2818, a touch sensor 2820 and an ambient light sensor 2822 et al.
可理解的是,图7仅是示意,电子设备700可以包括更多或更少的部件,或者可以将其中的多个部件组合为一个部件,或者可以将其中的一个部件拆分为多个部件,或者上述组合等。另外可理解的是,图7中所示的部件可以通过硬件、软件、或软件和硬件组合的方式实现。It can be understood that FIG. 7 is only a schematic illustration, and the electronic device 700 may include more or fewer components, or multiple components may be combined into one component, or one component may be split into multiple components. , or a combination of the above, etc. In addition, it can be understood that the components shown in FIG. 7 can be implemented by hardware, software, or a combination of software and hardware.
处理器210可以包括一个或多个处理单元,例如可以包括中央处理单元(Central Processing Unit,CPU)、应用处理器(Application Processor,AP)、调制解调处理器、图形处理单元(Graphics Processing Unit,GPU)、图像信号处理器(Image Signal Processor,ISP)、控制器、视频编解码器、数字信号处理器(Digital Signal Processor,DSP)、基带处理器、和/或神经网络处理器(Neural-Network Processing Unit,NPU)等,其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 210 may include one or more processing units, for example, may include a central processing unit (Central Processing Unit, CPU), an application processor (Application Processor, AP), a modem processor, a graphics processing unit (Graphics Processing Unit, GPU), image signal processor (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (Neural-Network Processing Unit, NPU), etc., where different processing units can be independent devices or integrated in one or more processors.
处理器210中还可以设置存储器,用于存储指令和数据。作为一例,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 210 for storing instructions and data. As an example, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
处理器210可以包括一个或多个接口。接口可以包括集成电路(Inter-Integrated Circuit,I2C)接口,集成电路内置音频(Inter-Integrated Circuit Sound,I2S)接口,脉冲编码调制(Pulse Code Modulation,PCM)接口,通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)接口,移动产业处理器接口(Mobile Industry Processor Interface,MIPI),通用输入/输出(General-Purpose Input/Output,GPIO)接口,SIM卡接口294、和/ 或USB接口230等。 Processor 210 may include one or more interfaces. The interface can include an integrated circuit (Inter-Integrated Circuit, I2C) interface, an integrated circuit built-in audio (Inter-Integrated Circuit Sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a universal asynchronous transmitter (Universal Asynchronous Receiver/Transmitter, UART) interface, mobile industry processor interface (Mobile Industry Processor Interface, MIPI), general-purpose input/output (General-Purpose Input/Output, GPIO) interface, SIM card interface 294, and/or USB interface 230, etc. .
I2C接口是一种双向同步串行总线,包括串行数据线(serial data line,SDA)和串行时钟线(derail clock line,SCL)。在一些场景中,处理器210可以包含多组I2C总线。处理器210可以通过不同的I2C总线接口分别耦合触控传感器2820、充电器、闪光灯、摄像头222等。例如,处理器210可以通过I2C接口耦合触控传感器2820,使处理器210与触控传感器2820通过I2C总线接口通信,实现电子设备700的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some scenarios, processor 210 may include multiple sets of I2C buses. The processor 210 may be respectively coupled to the touch sensor 2820, the charger, the flashlight, the camera 222, etc. through different I2C bus interfaces. For example, the processor 210 may be coupled to the touch sensor 2820 through the I2C interface, so that the processor 210 and the touch sensor 2820 communicate through the I2C bus interface to realize the touch function of the electronic device 700 .
I2S接口可以用于音频通信。在一些场景中,处理器210可以包含多组I2S总线。处理器210可以通过I2S总线与音频模块270耦合,实现处理器210与音频模块270之间的通信。在一些场景中,音频模块270可以通过I2S接口向无线通信模块260传递音频信号,实现通过蓝牙耳机等接听电话的功能。The I2S interface can be used for audio communication. In some scenarios, processor 210 may include multiple sets of I2S buses. The processor 210 may be coupled to the audio module 270 through an I2S bus to implement communication between the processor 210 and the audio module 270 . In some scenarios, the audio module 270 can transmit audio signals to the wireless communication module 260 through the I2S interface, so as to realize the function of answering calls through Bluetooth headsets and the like.
PCM接口也可以用于音频通信,将模拟信号抽样\量化和编码。在一些场景中,音频模块270与无线通信模块260可以通过PCM总线接口耦合。在一些场景中,音频模块270也可以通过PCM接口向无线通信模块260传递音频信号,实现通过蓝牙耳机等接听电话的功能。可理解,I2S接口和PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some scenarios, the audio module 270 and the wireless communication module 260 may be coupled through a PCM bus interface. In some scenarios, the audio module 270 can also transmit audio signals to the wireless communication module 260 through the PCM interface, so as to realize the function of answering calls through a Bluetooth headset or the like. It can be understood that both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些场景中,UART接口通常被用于连接处理器210与无线通信模块260。例如,处理器220通过UART接口与无线通信模块260中的蓝牙模块通信,实现蓝牙功能。在一些场景中,音频模块270可以通过UART接口向无线通信模块260传递音频信号,实现通过蓝牙耳机等播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some scenarios, a UART interface is generally used to connect the processor 210 and the wireless communication module 260 . For example, the processor 220 communicates with the Bluetooth module in the wireless communication module 260 through the UART interface to realize the Bluetooth function. In some scenarios, the audio module 270 can transmit audio signals to the wireless communication module 260 through the UART interface, so as to realize the function of playing music through a Bluetooth headset or the like.
MIPI接口可以被用于连接处理器210与显示屏220、摄像头222等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些场景中,处理器210和摄像头222通过CSI接口通信,实现电子设备700的拍摄功能。处理器220和显示屏220通过DSI接口通信,实现电子设备700的显示功能。The MIPI interface can be used to connect the processor 210 with peripheral devices such as the display screen 220 and the camera 222 . MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some scenarios, the processor 210 and the camera 222 communicate through the CSI interface to implement the shooting function of the electronic device 700 . The processor 220 and the display screen 220 communicate through the DSI interface to implement the display function of the electronic device 700 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些场景中,GPIO接口可以用于连接处理器210与摄像头222、显示屏220、无线通信模块260、音频模块270、传感器模块280等。GPIO接口还可以被配置为I2C接口、I2S接口、UART接口、MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some scenarios, the GPIO interface can be used to connect the processor 210 with the camera 222 , the display screen 220 , the wireless communication module 260 , the audio module 270 , the sensor module 280 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口230是符合USB标准规范的接口,具体可以是Mini USB接口、Micro USB接口、USB Type C接口等。USB接口230可以用于连接充电器为电子设备700充电,也可以用于电子设备700与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 230 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 230 can be used to connect a charger to charge the electronic device 700 , and can also be used to transmit data between the electronic device 700 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本公开中仅示意性地列举了各模块间的接口连接关系,但是这些示意不应解释成对电子设备700的结构限定。电子设备700也可以采用与上面所述的不同的接口连接方式,或可以采用多种接口连接方式的组合。It can be understood that the present disclosure only schematically lists the interface connection relationship among the modules, but these illustrations should not be interpreted as limiting the structure of the electronic device 700 . The electronic device 700 may also adopt an interface connection manner different from that described above, or may adopt a combination of various interface connection manners.
充电管理模块240用于从充电器接收充电输入。充电器可以是无线充电器,也可以是有线充电器。在有线充电的情形中,充电管理模块240可以通过USB接口230接收有线充电器的充电输入。在无线充电的情形中,充电管理模块240可以通过电子设备700的无线充电线圈接收无线充电输入。充电管理模块240为电池244充电的同时,还可以通过电源管理模块242为电子设备700供电。The charging management module 240 is configured to receive charging input from the charger. The charger can be a wireless charger or a wired charger. In the case of wired charging, the charging management module 240 may receive a charging input from the wired charger through the USB interface 230 . In the case of wireless charging, the charging management module 240 may receive a wireless charging input through a wireless charging coil of the electronic device 700 . While the charging management module 240 is charging the battery 244 , it can also supply power to the electronic device 700 through the power management module 242 .
电源管理模块242用于连接电池244、充电管理模块240以及处理器210。电源管理模块 242接收电池244和/或充电管理模块240的输入,为处理器210、内部存储器296,显示220、摄像头222和无线通信模块260等供电。电源管理模块242还可以用于监测电池容量、电池循环次数、电池健康状态(如漏电,阻抗)等参数。在一些情形中,电源管理模块242也可以设置于处理器210中。在另一些情形中,电源管理模块242和充电管理模块240也可以设置于同一个器件中。The power management module 242 is used for connecting the battery 244 , the charging management module 240 and the processor 210 . The power management module 242 receives the input of the battery 244 and/or the charging management module 240, and provides power for the processor 210, the internal memory 296, the display 220, the camera 222 and the wireless communication module 260, etc. The power management module 242 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (such as leakage, impedance). In some cases, the power management module 242 can also be disposed in the processor 210 . In other cases, the power management module 242 and the charging management module 240 can also be set in the same device.
电子设备700的无线通信功能可以通过移动通信模块250、天线252、无线通信模块260、天线262、调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 700 can be realized by the mobile communication module 250, the antenna 252, the wireless communication module 260, the antenna 262, the modem processor and the baseband processor.
天线252和天线262用于发射和接收电磁波信号。电子设备700中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如,可以将天线252复用为无线局域网的分集天线。例如,天线可以和调谐开关结合使用。The antenna 252 and the antenna 262 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 700 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, antenna 252 may be multiplexed as a diversity antenna for a wireless local area network. For example, an antenna can be used in conjunction with a tuning switch.
移动通信模块250可以提供应用在电子设备700上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线252转为电磁波辐射出去。在一些场景中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些场景中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。The mobile communication module 250 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 700 . The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 250 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 252 . In some scenarios, at least part of the functional modules of the mobile communication module 250 may be set in the processor 210 . In some scenarios, at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be set in the same device.
调制解调处理器可以包括调制器和解调器,其中,调制器用于将待发送的低频基带信号调制成中高频信号,解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器272、受话器274等)输出声音信号,或通过显示屏220显示图像或视频。在一些场景中,调制解调处理器可以是独立的器件。在另一些场景中,调制解调处理器可以独立于处理器210,与移动通信模块250或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator, wherein the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal, and the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 272 , receiver 274 , etc.), or displays images or videos through display screen 220 . In some scenarios, the modem processor may be a stand-alone device. In other scenarios, the modem processor may be independent of the processor 210, and be set in the same device as the mobile communication module 250 or other functional modules.
无线通信模块260可以提供应用在电子设备700上的包括无线局域网(Wireless Local Area Network,WLAN)等无线通信的解决方案,如Wi-Fi网络、BT、全球导航卫星系统(Global Navigation Satellite System,GNSS)、调频(Frequency Modulation,FM)、NFC、红外技术(infrared,IR)。无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线262接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频、放大,经天线262转为电磁波辐射出去。The wireless communication module 260 can provide wireless communication solutions including wireless local area network (Wireless Local Area Network, WLAN) applied on the electronic device 700, such as Wi-Fi network, BT, Global Navigation Satellite System (Global Navigation Satellite System, GNSS ), FM (Frequency Modulation, FM), NFC, infrared technology (infrared, IR). The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 262 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 . The wireless communication module 260 can also receive the signal to be transmitted from the processor 210 , frequency-modulate and amplify it, and convert it into electromagnetic waves through the antenna 262 for radiation.
在一些场景中,电子设备700的天线252和移动通信模块250耦合,天线262和无线通信模块260耦合,使得电子设备700可以通过无线通信技术与网络和/或其他设备通信。这里的无线通信技术可以包括全球移动通讯系统(Global System For Mobile Communications,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址接入(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、时分码分多址(Time-Division Code Division Multiple Access,TD-SCDMA)、长期演进(Long Term Evolution,LTE)、BT、GNSS、WLAN、NFC、FM、和/或IR技术等。In some scenarios, the antenna 252 of the electronic device 700 is coupled to the mobile communication module 250, and the antenna 262 is coupled to the wireless communication module 260, so that the electronic device 700 can communicate with the network and/or other devices through wireless communication technology. The wireless communication technologies here can include Global System For Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), broadband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technologies, etc.
GNSS可以包括全球卫星定位系统(Global Positioning System,GPS)、全球导航卫星系统(Global Navigation Satellite System,GLONASS)、北斗卫星导航系统(BeiDou navigation  satellite System,BDS)、准天顶卫星系统(Quasi-Zenith Satellite System,QZSS)和/或基于卫星的增强系统(Satellite Based Augmentation Systems,SBAS)。GNSS can include Global Positioning System (Global Positioning System, GPS), Global Navigation Satellite System (Global Navigation Satellite System, GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (Quasi-Zenith Satellite System, QZSS) and/or Satellite Based Augmentation Systems (SBAS).
电子设备700通过GPU、显示屏220、以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏220和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 700 realizes the display function through the GPU, the display screen 220 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 220 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏220用于显示文本、图像、视频等。显示屏220包括显示面板,显示面板可以采用液晶显示屏(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(Active-Matrix Organic Light Emitting Diode,AMOLED),柔性发光二极管(Flex Light-Emitting Diode,FLED)Mini-LED、Micro-LED、Micro-OLED、量子点发光二极管(Quantum Dot Light Emitting Diodes,QLED)等。在一些场景中,电子设备700可以包括1个或多个显示屏220。The display screen 220 is used for displaying text, images, videos and the like. The display screen 220 includes a display panel, and the display panel can be a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode. Body (Active-Matrix Organic Light Emitting Diode, AMOLED), Flexible Light-Emitting Diode (Flex Light-Emitting Diode, FLED) Mini-LED, Micro-LED, Micro-OLED, Quantum Dot Light Emitting Diodes (QLED) Wait. In some scenarios, the electronic device 700 may include one or more display screens 220 .
电子设备700可以通过ISP、摄像头222、视频编解码器、GPU、显示屏220以及应用处理器等实现拍摄功能。The electronic device 700 can realize the shooting function through the ISP, the camera 222 , the video codec, the GPU, the display screen 220 , and the application processor.
ISP用于处理摄像头222反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些场景中,ISP可以设置在摄像头222中。The ISP is used for processing data fed back by the camera 222 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some scenarios, the ISP may be located in the camera 222 .
摄像头222用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(Charge Coupled Device,CCD)或互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些场景中,电子设备700可以包括1个或多个摄像头222。 Camera 222 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element can be a charge coupled device (Charge Coupled Device, CCD) or a complementary metal oxide semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some scenarios, the electronic device 700 may include one or more cameras 222 .
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备700在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 700 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备700可以支持一种或多种视频编解码器。这样,电子设备700可以播放或录制多种编码格式的视频,例如,动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 700 may support one or more video codecs. In this way, the electronic device 700 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(Neural-Network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备700的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (Neural-Network, NN) computing processor. By referring to the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 700 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
指示器224可以是指示灯,可以用于指示充电状态、电量变化,也可以用于指示消息、未接来电、通知等。The indicator 224 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
马达226可以产生振动提示。马达226可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏20不同区域的触摸操作,马达226也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 226 can generate a vibrating alert. The motor 226 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 226 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 20 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
按键228包括开机键,音量键等。按键228可以是机械按键,也可以是触摸式按键。电子设备700可以接收按键输入,产生与电子设备700的用户设置以及功能控制有关的键信号输入。The keys 228 include a power key, a volume key and the like. The button 228 can be a mechanical button or a touch button. The electronic device 700 may receive key input and generate key signal input related to user settings and function control of the electronic device 700 .
SIM卡接口294用于连接SIM卡。SIM卡可以通过插入SIM卡接口294,或从SIM卡接口294拔出,实现和电子设备700的接触和分离。电子设备700可以支持1个或多个SIM卡接口294。SIM卡接口294可以支持Nano SIM卡、Micro SIM卡、mini SIM卡等。同一个SIM卡接口294可以同时插入多张卡,多张卡的类型可以相同,也可以不同。SIM卡接口294也可以兼容不同类型的SIM卡。SIM卡接口294也可以兼容外部存储卡。电子设备700通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些场景中,电子设备700采用嵌入式SIM(embedded SIM,eSIM)卡,eSIM卡可以嵌在电子设备700中,不能和电子设备700分离。The SIM card interface 294 is used for connecting a SIM card. The SIM card can be connected and separated from the electronic device 700 by inserting it into the SIM card interface 294 or pulling it out from the SIM card interface 294 . The electronic device 700 may support one or more SIM card interfaces 294 . SIM card interface 294 can support Nano SIM card, Micro SIM card, mini SIM card etc. Multiple cards can be inserted into the same SIM card interface 294 at the same time, and the types of multiple cards can be the same or different. The SIM card interface 294 is also compatible with different types of SIM cards. The SIM card interface 294 is also compatible with external memory cards. The electronic device 700 interacts with the network through the SIM card to implement functions such as calling and data communication. In some scenarios, the electronic device 700 uses an embedded SIM (embedded SIM, eSIM) card, and the eSIM card can be embedded in the electronic device 700 and cannot be separated from the electronic device 700.
外部存储器接口292可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备700的存储能力。外部存储卡通过外部存储器接口292与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 292 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 700. The external memory card communicates with the processor 210 through the external memory interface 292 to realize the data storage function. Such as saving music, video and other files in the external memory card.
内部存储器296可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器296可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(诸如声音播放功能,图像播放功能)等。存储数据区可存储电子设备700使用过程中所创建的数据(诸如音频数据,电话本)等。此外,内部存储器296可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(Universal Flash Storage,UFS)等。处理器210通过运行存储在内部存储器296的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备700的各种功能应用以及数据处理。 Internal memory 296 may be used to store computer-executable program code, which includes instructions. The internal memory 296 may include an area for storing programs and an area for storing data. Wherein, the storage program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function) and the like. The storage data area can store data (such as audio data, phone book) etc. created during the use of the electronic device 700 . In addition, the internal memory 296 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (Universal Flash Storage, UFS) and the like. The processor 210 executes various functional applications and data processing of the electronic device 700 by executing instructions stored in the internal memory 296 and/or instructions stored in a memory provided in the processor.
电子设备700可以通过音频模块270、扬声器272、受话器274、麦克风276、耳机接口278以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 700 may implement audio functions through the audio module 270 , the speaker 272 , the receiver 274 , the microphone 276 , the earphone interface 278 , and the application processor. Such as music playback, recording, etc.
音频模块270用于将数字音频信号转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些场景中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器210中。The audio module 270 is used to convert digital audio signals into analog audio signals for output, and is also used for converting analog audio input into digital audio signals. The audio module 270 may also be used to encode and decode audio signals. In some scenarios, the audio module 270 may be set in the processor 210 , or some functional modules of the audio module 270 may be set in the processor 210 .
受话器274,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备700接听电话或语音信息时,可以通过将受话器274靠近人耳接听语音。 Receiver 274, also called "earpiece", is used to convert audio electrical signals into audio signals. When the electronic device 700 receives a call or a voice message, the receiver 274 can be placed close to the human ear to listen to the voice.
麦克风276,也称“话筒”或“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风276发声,将声音信号输入到麦克风276。电子设备700可以设置至少一个麦克风276。例如,电子设备700可以设置两个麦克风276,除了采集声音信号,还可以实现降噪功能。例如,电子设备700还可以设置三个、四个或更多麦克风276,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。 Microphone 276, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 276 with a human mouth, and input the sound signal to the microphone 276 . The electronic device 700 may be provided with at least one microphone 276 . For example, the electronic device 700 can be provided with two microphones 276, which can also implement a noise reduction function in addition to collecting sound signals. For example, the electronic device 700 can also be provided with three, four or more microphones 276 to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
耳机接口278用于连接有线耳机。耳机接口278可以是USB接口230,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口等。The earphone interface 278 is used for connecting wired earphones. The headphone interface 278 can be a USB interface 230, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface, etc. .
压力传感器2802用于感受压力信号,可以将压力信号转换成电信号。在一些场景中,压力传感器2802可以设置于显示屏220。压力传感器2802的种类可以为电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器2802时,电极之间的电容改变。电子设备700根据 电容的变化确定压力的强度。当有触控操作作用于显示屏220时,电子设备700根据压力传感器2802检测触控操作强度。电子设备700也可以根据压力传感器2802的检测信号计算触控的位置。在一些场景中,作用于相同触控位置,但不同触控操作强度的触控操作,可以对应不同的操作指令。例如,当有触控操作强度小于第一压力阈值的触控操作作用于图像或者文件时,表示该图像或者文件被选中,则电子设备700执行图像或者文件处于被选中的指令。当有触控操作强度大于或等于第一压力阈值的触控操作作用于应用窗口时,且该触控操作在显示屏220上移动,则执行将该应用窗口拖起的指令。例如,当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 2802 is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some scenarios, the pressure sensor 2802 may be disposed on the display screen 220 . The type of the pressure sensor 2802 may be a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 2802, the capacitance between the electrodes changes. The electronic device 700 determines the intensity of the pressure from the change in capacitance. When a touch operation acts on the display screen 220 , the electronic device 700 detects the intensity of the touch operation according to the pressure sensor 2802 . The electronic device 700 may also calculate the touch position according to the detection signal of the pressure sensor 2802 . In some scenarios, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on an image or file, it means that the image or file is selected, and the electronic device 700 executes an instruction that the image or file is selected. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the application window and the touch operation moves on the display screen 220 , an instruction to drag the application window up is executed. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction of viewing the short message is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器2804可以用于确定电子设备700的运动姿态。The gyro sensor 2804 can be used to determine the motion posture of the electronic device 700 .
气压传感器2806可以用于测量气压。 Air pressure sensor 2806 may be used to measure air pressure.
磁传感器2808包括霍尔传感器。电子设备700可以利用磁传感器2808检测翻盖皮套的开合。The magnetic sensor 2808 includes a Hall sensor. The electronic device 700 can use the magnetic sensor 2808 to detect the opening and closing of the flip holster.
加速度传感器2810可以用于检测电子设备700在各个方向上(一般为三轴)加速度的大小。The acceleration sensor 2810 can be used to detect the acceleration of the electronic device 700 in various directions (generally three axes).
距离传感器2812可以用于测量距离。电子设备700可以通过红外或激光测量距离。在诸如拍摄场景中,电子设备700可以利用距离传感器2812测距以实现快速对焦。A distance sensor 2812 may be used to measure distance. The electronic device 700 can measure the distance by infrared or laser. In a scene such as shooting, the electronic device 700 can use the distance sensor 2812 to measure a distance to achieve fast focusing.
接近光传感器2814可以包括例如LED和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备700通过发光二极管向外发射红外光,使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备700附近有物体。当检测到不充分的反射光时,电子设备700可以确定附近没有物体。电子设备700可以利用接近光传感器2814检测用户手持电子设备700贴近耳朵通话,以便自动熄灭显示屏220达到省电的目的。接近光传感器2814也可用于皮套模式,口袋模式自动解锁与锁屏。 Proximity light sensor 2814 may include, for example, LEDs and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 700 emits infrared light through a light emitting diode, and uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 700 . When insufficient reflected light is detected, the electronic device 700 may determine that there is no object nearby. The electronic device 700 can use the proximity light sensor 2814 to detect that the user holds the electronic device 700 close to the ear to make a call, so as to automatically turn off the display screen 220 to save power. Proximity light sensor 2814 can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
指纹传感器2816可以用于采集指纹。电子设备700可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。 Fingerprint sensor 2816 may be used to capture fingerprints. The electronic device 700 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, fingerprint photography, and fingerprint answering of incoming calls.
温度传感器2818可以用于检测温度。A temperature sensor 2818 may be used to detect temperature.
触控传感器2820也称“触控器件”或“触摸面板”等。触控传感器2820可以设置于显示屏220,由触控传感器2820与显示屏220组成触控屏。触控传感器2820用于检测作用于其上或附近的触控操作。触控传感器2820可以将检测到的触控操作传递给应用处理器,以确定触控事件类型。可以通过显示屏220提供与触控操作相关的视觉输出。在另一些场景中,触控传感器2820也可以设置于电子设备700的表面,与显示屏220所处的位置不同。The touch sensor 2820 is also called "touch device" or "touch panel". The touch sensor 2820 can be disposed on the display screen 220 , and the touch sensor 2820 and the display screen 220 form a touch screen. The touch sensor 2820 is used to detect a touch operation on or near it. The touch sensor 2820 can transmit the detected touch operation to the application processor to determine the type of the touch event. Visual output related to the touch operation can be provided through the display screen 220 . In other scenarios, the touch sensor 2820 may also be disposed on the surface of the electronic device 700 , which is different from the position of the display screen 220 .
环境光传感器2822用于感知环境光亮度。电子设备700可以根据感知的环境光亮度自适应调节显示屏220的亮度。环境光传感器2822也可用于拍照时自动调节白平衡。环境光传感器2822还可以与接近光传感器2814配合,检测电子设备700是否在口袋里,以防误触。The ambient light sensor 2822 is used for sensing ambient light brightness. The electronic device 700 can adaptively adjust the brightness of the display screen 220 according to the perceived ambient light brightness. The ambient light sensor 2822 can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 2822 can also cooperate with the proximity light sensor 2814 to detect whether the electronic device 700 is in the pocket, so as to prevent accidental touch.
可选地,传感器模块280还可以包括红外传感器、超声波传感器及电场传感器等,以用于辅助电子设备700进行隔空手势的识别。Optionally, the sensor module 280 may further include an infrared sensor, an ultrasonic sensor, an electric field sensor, etc., for assisting the electronic device 700 in recognizing gestures in the air.
应理解的是,图7中的电子设备700仅是示意,其实现为不同类型的设备时,可以包括更多或更少的部件。例如,电子设备700被实现为台式计算机时,可以不具有SIM卡接口294。It should be understood that the electronic device 700 in FIG. 7 is only schematic, and it may include more or less components when it is implemented as a different type of device. For example, when the electronic device 700 is implemented as a desktop computer, it may not have the SIM card interface 294 .
电子设备700的软件系统可以采用分层架构、鸿蒙操作系统(Harmony OS)架构、事件驱动架构、微核架构、微服务架构、或云架构等。The software system of the electronic device 700 may adopt a layered architecture, a Harmony OS architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
图8示出了根据本公开的实施例的具有分层架构的安卓(Android)系统的电子设备700的软件结构框图。FIG. 8 shows a software structural block diagram of an electronic device 700 with a layered architecture Android (Android) system according to an embodiment of the present disclosure.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。如图8所示,Android系统可以被分为四层,从上至下依次为应用程序层810、应用程序框架层820、内核层830、以及网络传输层840。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. As shown in FIG. 8 , the Android system can be divided into four layers, which are an application program layer 810 , an application program framework layer 820 , a kernel layer 830 , and a network transport layer 840 from top to bottom.
应用程序层810可以包括一系列应用程序包,包括但不限于相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息等应用(Application,APP)。The application layer 810 may include a series of application packages, including but not limited to camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications (Application, APP).
应用程序框架层820为应用程序层810的应用程序提供应用编程接口(Application Programming Interface,API)和编程框架。应用程序框架层820可以包括一些预先定义的函数,包括但不限于窗口管理器、内容提供器、视图系统、电话管理器、资源管理器、通知管理器等。The application framework layer 820 provides an application programming interface (Application Programming Interface, API) and a programming framework for the applications of the application program layer 810. The application framework layer 820 may include some predefined functions, including but not limited to window manager, content provider, view system, telephony manager, resource manager, notification manager and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频、图像、音频、拨打和接听的电话、浏览历史和书签、电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Data can include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, and more.
视图系统包括可视控件,例如显示文字的控件、显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备700的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 700 . For example, the management of call status (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,诸如本地化字符串、图标、图片、布局文件、视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备700振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. The notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device 700 vibrates, and the indicator light flashes.
内核层830至少包含显示驱动、摄像头驱动、音频驱动、传输驱动。内核层830的不同驱动用于调用电子设备700的硬件设备,执行相应的操作。例如,显示驱动用于支持电子设备700的界面显示等,音频驱动用于支持电子设备700的播放音频等,传输驱动用于支持电子设备700与另一电子设备之间的内容分享等。The kernel layer 830 includes at least a display driver, a camera driver, an audio driver, and a transmission driver. Different drivers of the kernel layer 830 are used to call hardware devices of the electronic device 700 to perform corresponding operations. For example, the display driver is used to support the interface display of the electronic device 700, etc., the audio driver is used to support the playing audio of the electronic device 700, etc., and the transmission driver is used to support content sharing between the electronic device 700 and another electronic device.
网络传输层840可以用于电子设备700与另一电子设备之间的通信、数据传输等。可以包括:蓝牙模块、Wi-Fi模块、NFC模块、发现连接模块、配对模块和连接传输模块等。发现连接模块可以用于发现可建立通信连接的另一电子设备。配对模块可以用于在建立通信连接过程中对请求建立连接的另一电子设备进行认证。连接传输模块可以用于与已建立连接的另一电子设备传输数据或消息、指令等。The network transport layer 840 may be used for communication, data transmission, and the like between the electronic device 700 and another electronic device. It may include: a Bluetooth module, a Wi-Fi module, an NFC module, a discovery connection module, a pairing module, and a connection transmission module. The discovery connection module can be used to discover another electronic device that can establish a communication connection. The pairing module can be used to authenticate another electronic device that requests to establish a connection during the process of establishing a communication connection. The connection transmission module can be used to transmit data or messages, instructions, etc. with another electronic device that has established a connection.
应理解的是,如上所述的电子设备700仅是示意,不应解释为对本公开如下所述实施例的限制。It should be understood that the above-mentioned electronic device 700 is only illustrative, and should not be interpreted as limiting the following embodiments of the present disclosure.

Claims (10)

  1. 一种信道选择的方法,其特征在于,包括:A method for channel selection, characterized by comprising:
    第一终端设备通过第一信道与第二终端设备建立通信业务;The first terminal device establishes a communication service with the second terminal device through the first channel;
    获取所述第一信道的质量信息;acquiring quality information of the first channel;
    确定所述质量信息所指示的所述第一信道的质量低于阈值;以及determining that the quality of the first channel indicated by the quality information is lower than a threshold; and
    将所述通信业务从所述第一信道切换到第二信道。switching the communication traffic from the first channel to a second channel.
  2. 根据权利要求1所述的方法,其特征在于,将所述通信业务从所述第一信道切换到所述第二信道包括:The method according to claim 1, wherein switching the communication service from the first channel to the second channel comprises:
    所述第一终端设备获取多个候选信道的质量信息,所述多个候选信道包括所述第二信道;以及The first terminal device acquires quality information of a plurality of candidate channels, the plurality of candidate channels including the second channel; and
    所述第一终端设备至少基于所述多个候选信道的所述质量信息,将所述通信业务从所述第一信道切换到所述第二信道。The first terminal device switches the communication service from the first channel to the second channel based at least on the quality information of the plurality of candidate channels.
  3. 根据权利要求1或2所述的方法,其特征在于,将所述通信业务从所述第一信道切换到所述第二信道包括:The method according to claim 1 or 2, wherein switching the communication service from the first channel to the second channel comprises:
    所述第一终端设备从所述第二终端设备接收多个候选信道的第一子集的质量信息;The first terminal device receives quality information of a first subset of a plurality of candidate channels from the second terminal device;
    所述第一终端设备确定所述多个候选信道的第二子集的质量信息;以及the first terminal device determines quality information for a second subset of the plurality of candidate channels; and
    所述第一终端设备基于所述第一子集的所述质量信息和所述第二子集的所述质量信息,从所述第一子集和所述第二子集的交集中选择所述第二信道。The first terminal device selects the first subset from the intersection of the first subset and the second subset based on the quality information of the first subset and the quality information of the second subset. Describe the second channel.
  4. 根据权利要求2或3所述的方法,其特征在于,获取所述多个候选信道的所述质量信息包括:The method according to claim 2 or 3, wherein obtaining the quality information of the plurality of candidate channels comprises:
    所述第一终端设备确定所述多个候选信道的第一质量信息;The first terminal device determines first quality information of the plurality of candidate channels;
    所述第一终端设备从第三终端设备接收所述多个候选信道的第二质量信息;The first terminal device receives second quality information of the plurality of candidate channels from a third terminal device;
    所述第一终端设备基于所述第二质量信息来更新所述第一质量信息;以及The first terminal device updates the first quality information based on the second quality information; and
    将更新后的所述第一质量信息作为所述质量信息。The updated first quality information is used as the quality information.
  5. 根据权利要求2至4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2 to 4, wherein the method further comprises:
    响应于第四终端设备加入所述第一终端设备所在的通信网络,所述第一终端设备向所述第四终端设备发送所述质量信息。In response to the fourth terminal device joining the communication network where the first terminal device is located, the first terminal device sends the quality information to the fourth terminal device.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述阈值与所述通信业务的类型相关联。The method according to any one of claims 1 to 5, characterized in that the threshold value is associated with the type of communication traffic.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,将所述通信业务从所述第一信道切换到所述第二信道包括:The method according to any one of claims 1 to 6, wherein switching the communication service from the first channel to the second channel comprises:
    所述第一终端设备降低所述通信业务的质量;The first terminal device reduces the quality of the communication service;
    在预定时间段之后重新获取所述第一信道的所述质量信息;reacquiring the quality information of the first channel after a predetermined period of time;
    确定重新获取的所述质量信息所指示的所述第一信道的质量低于所述阈值;以及determining that the quality of the first channel indicated by the reacquired quality information is lower than the threshold; and
    所述第一终端设备将所述通信业务从所述第一信道切换到第二信道。The first terminal device switches the communication service from the first channel to a second channel.
  8. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device comprises:
    一个或多个处理器;以及one or more processors; and
    存储器;memory;
    其中,所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指 令,当所述指令被所述电子设备执行时,使得所述电子设备执行根据权利要求1-7中任一项所述的方法。Wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the electronic device, the electronic device executes the electronic device according to claims 1-7. any one of the methods described.
  9. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行根据权利要求1-7中任一项所述的方法。A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and it is characterized in that, when the instructions are run on the electronic device, the electronic device is made to execute any one of claims 1-7. method described in the item.
  10. 一种芯片,包括处理电路,被配置为执行根据权利要求1-7中任一项所述的方法。A chip comprising processing circuitry configured to perform the method according to any one of claims 1-7.
PCT/CN2022/105563 2021-07-16 2022-07-13 Channel selection method, devices, storage medium and chip WO2023284805A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202110808646 2021-07-16
CN202110808646.2 2021-07-16
CN202111060504 2021-09-10
CN202111060504.9 2021-09-10
CN202111512460.9A CN115622974A (en) 2021-07-16 2021-12-08 Communication method, device, computer readable storage medium and chip
CN202111512460.9 2021-12-08

Publications (1)

Publication Number Publication Date
WO2023284805A1 true WO2023284805A1 (en) 2023-01-19

Family

ID=84856591

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/105563 WO2023284805A1 (en) 2021-07-16 2022-07-13 Channel selection method, devices, storage medium and chip

Country Status (2)

Country Link
CN (1) CN115622974A (en)
WO (1) WO2023284805A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009119767A1 (en) * 2008-03-28 2009-10-01 京セラ株式会社 Wireless communication method and wireless communication system
CN104968023A (en) * 2015-06-10 2015-10-07 小米科技有限责任公司 Working channel adjusting method, device and equipment
CN105592504A (en) * 2014-10-23 2016-05-18 东莞宇龙通信科技有限公司 Multi-wifi module transmission method, transmission device and terminal
CN107333309A (en) * 2017-07-07 2017-11-07 北京佰才邦技术有限公司 The switching method and device of a kind of wireless channel
CN109716819A (en) * 2016-12-19 2019-05-03 华为技术有限公司 A kind of channel control method and equipment
CN113115382A (en) * 2020-01-13 2021-07-13 联发科技股份有限公司 Wireless communication method and communication device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009119767A1 (en) * 2008-03-28 2009-10-01 京セラ株式会社 Wireless communication method and wireless communication system
CN105592504A (en) * 2014-10-23 2016-05-18 东莞宇龙通信科技有限公司 Multi-wifi module transmission method, transmission device and terminal
CN104968023A (en) * 2015-06-10 2015-10-07 小米科技有限责任公司 Working channel adjusting method, device and equipment
CN109716819A (en) * 2016-12-19 2019-05-03 华为技术有限公司 A kind of channel control method and equipment
CN107333309A (en) * 2017-07-07 2017-11-07 北京佰才邦技术有限公司 The switching method and device of a kind of wireless channel
CN113115382A (en) * 2020-01-13 2021-07-13 联发科技股份有限公司 Wireless communication method and communication device

Also Published As

Publication number Publication date
CN115622974A (en) 2023-01-17

Similar Documents

Publication Publication Date Title
WO2020192781A1 (en) Capability reporting method and user equipment
WO2021185141A1 (en) Wi-fi aware link establishment method and system, electronic device, and storage medium
WO2021175300A1 (en) Data transmission method and apparatus, electronic device, and readable storage medium
CN113923230B (en) Data synchronization method, electronic device, and computer-readable storage medium
WO2022100610A1 (en) Screen projection method and apparatus, and electronic device and computer-readable storage medium
WO2021023046A1 (en) Electronic device control method and electronic device
WO2021036898A1 (en) Application activation method for apparatus having foldable screen, and related device
WO2022033320A1 (en) Bluetooth communication method, terminal device, and computer-readable storage medium
WO2023273317A1 (en) Channel switching method, electronic device, and storage medium
WO2021197071A1 (en) Wireless communication system and method
WO2022042265A1 (en) Communication method, terminal device, and storage medium
WO2021043250A1 (en) Bluetooth communication method, and related device
WO2021031865A1 (en) Call method and apparatus
WO2022262492A1 (en) Data downloading method and apparatus, and terminal device
WO2021218544A1 (en) Wireless connection providing system, method, and electronic apparatus
WO2022227906A1 (en) Method and apparatus for determining minimum slot offset value
WO2020134868A1 (en) Connection establishment method, and terminal apparatus
CN111615177A (en) Cell search method and user equipment
WO2022152167A1 (en) Network selection method and device
WO2020124447A1 (en) Multi-sim facing network management
WO2022161036A1 (en) Method and apparatus for selecting antenna, electronic device, and readable storage medium
WO2023284805A1 (en) Channel selection method, devices, storage medium and chip
CN113572586B (en) Method, user equipment and system for sending sounding reference signal
CN113453327A (en) Transmission power control method, terminal, chip system and system
WO2024093614A1 (en) Device input method and system, and electronic device and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1