Communication method and device, electronic equipment, storage medium and program product
By evaluating and switching channels based on service and network metrics in wireless screen projection or multi-screen collaboration scenarios, the problem of poor communication quality was solved, and the user experience was improved.
Patent Information
- Application Number
- CN202410966721.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2026-01-20
AI Technical Summary
In applications such as wireless screen mirroring or multi-screen collaboration, when communication quality is poor, existing technologies cannot effectively switch channels to meet communication needs, resulting in a poor user experience.
By determining the service quality of the target service on the first channel and switching to the second channel when preset conditions are not met, the service quality of the target service on the second channel is ensured to be higher than that on the first channel. Service and network metrics data are used for accurate evaluation and channel switching.
It improved the operational quality of the target services in an open network environment and enhanced the user experience of using the target services.
Smart Images

Figure CN121367950A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of communication, and particularly relates to a communication method and device, electronic equipment, storage medium and program product. BACKGROUND
[0002] With the rapid development of the intelligence of electronic equipment, the interaction technologies of multiple electronic equipment such as wireless projection and multi-screen collaboration are widely applied. For example, in the application scene of wireless projection or multi-screen collaboration, the first device can send image data to the second device through the gateway device based on the working Wireless Fidelity Station (WiFi STA) mode; the first device can also send image data directly to the second device based on the working Wireless Fidelity Peer To Peer (WiFi P2P) mode, so that the second device displays the picture of the first device, and realizes the functions of wireless projection or multi-screen collaboration.
[0003] However, there may be a case that the communication quality between the first device and the second device is poor, and the current channel switching method in the case of poor communication quality cannot meet the communication demand. SUMMARY
[0004] To overcome the problems in the related art, the present disclosure provides a communication method and device, electronic equipment, storage medium and program product, which improves the running quality of the target service and further improves the user experience of using the target service.
[0005] According to a first aspect of the embodiments of the present disclosure, a communication method is provided, comprising:
[0006] determining the service quality of the target service running in the first channel;
[0007] in response to the service quality not meeting the preset service quality condition, switching to the second channel to run the target service; wherein the service quality of the target service running in the second channel is higher than the service quality of the target service running in the first channel.
[0008] In some embodiments, the method further comprises:
[0009] obtaining the service index data of the target service and the network index data of the target service running;
[0010] The determination of the service quality of the target service running in the first channel comprises:
[0011] determining the service quality of the target service based on the service index data of the target service and / or the network index data of the target service running.
[0012] In some embodiments, the service indicator data of the target service and / or the network indicator data of the running of the target service determine the service quality of the target service, including:
[0013] In response to the service scenario to which the target service belongs corresponding to an evaluation model of service indicator data, determining whether the service indicator data meets the preset service quality condition based on the evaluation model;
[0014] In response to the service scenario to which the target service belongs not corresponding to the evaluation model, determining whether the service quality of the target service meets the preset service quality condition based on the network indicator data.
[0015] In some embodiments, the evaluation model of the service indicator data is obtained by training historical service indicator data and historical service quality of the target service.
[0016] In some embodiments, the method further includes:
[0017] In response to the service quality meeting the preset service quality condition, saving the network indicator data of the running of the target service on the first channel; wherein the saved network indicator data is used as an evaluation basis for service quality.
[0018] In some embodiments, in response to the service quality not meeting the preset service quality condition, switching to a second channel to run the target service, including:
[0019] In response to the service quality not meeting the preset service quality condition, switching to the second channel to run the target service through one or more channel switches.
[0020] In some embodiments, in response to the service quality not meeting the preset service quality condition, switching to the second channel to run the target service through one or more channel switches, including:
[0021] In response to the service quality not meeting the preset service quality condition, switching to the second channel to run the target service through one or more channel switches within a preset threshold number of switches.
[0022] According to a second aspect of the embodiments of the present disclosure, a communication device is provided, including:
[0023] A determining module is configured to determine the service quality of a target service running on a first channel.
[0024] The switching module is configured to switch to the second channel to run the target service in response to the service quality not satisfying the preset service quality condition, wherein the service quality of the target service running on the second channel is higher than the service quality of the target service running on the first channel.
[0025] The apparatus further includes an obtaining module configured to obtain service index data of the target service and network index data of the target service running on the network.
[0026] The determining module is further configured to determine the service quality of the target service based on the service index data of the target service and / or the network index data of the target service running on the network.
[0027] The determining module is further configured to determine, in response to the service scenario to which the target service belongs corresponding to an evaluation model of the service index data, whether the service index data satisfies the preset service quality condition based on the evaluation model.
[0028] In response to the service scenario to which the target service belongs not corresponding to the evaluation model, the determining module is configured to determine whether the service quality of the target service satisfies the preset service quality condition based on the network index data.
[0029] The determining module is further configured to obtain the evaluation model of the service index data by training historical service index data and historical service quality of the target service.
[0030] The apparatus further includes a saving module configured to save the network index data of the target service running on the first channel in response to the service quality satisfying the preset service quality condition, wherein the saved network index data is used as an evaluation basis for the service quality.
[0031] The switching module is further configured to switch to the second channel to run the target service after one or more channel switching in response to the service quality not satisfying the preset service quality condition.
[0032] The switching module is further configured to switch to the second channel to run the target service after one or more channel switching within a preset threshold of switching times in response to the service quality not satisfying the preset service quality condition.
[0033] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including:
[0034] a processor;
[0035] a memory for storing computer programs or instructions;
[0036] The processor executes the computer program or the instruction to implement the steps of the method in the first aspect.
[0037] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, which stores a computer program or an instruction, and when the computer program or the instruction in the storage medium is executed by a processor, the steps of the method in the first aspect are implemented.
[0038] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, which includes a computer program or an instruction, and when the computer program or the instruction is executed by a processor, the steps of the method in the first aspect are implemented.
[0039] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:
[0040] In the embodiments of the present disclosure, the electronic device guides the switching of the channel running the target service to a second channel with better service quality of the target service based on the service quality of the target service running in the first channel, and performs channel switching according to the service quality of the target service, which is beneficial to switching to a channel that better meets the running requirements of the target service in an open network environment, improves the running quality of the target service, and further improves the user experience of using the target service.
[0041] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0042] The accompanying drawings, which are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.
[0043] Figure 1 is a channel adjustment schematic diagram in a screen projection type service scenario in related technology 1.
[0044] Figure 2 is a channel adjustment schematic diagram in a non-screen projection type service scenario in related technology 2.
[0045] Figure 3 is a flowchart of a communication method according to an exemplary embodiment.
[0046] Figure 4 is a communication schematic diagram according to an exemplary embodiment.
[0047] Figure 5 is a schematic diagram of an electronic device module to which a channel switching method in the embodiments of the present disclosure is applied.
[0048] Figure 6 is a flow chart of a communication channel switching method shown in embodiments of the present disclosure.
[0049] Figure 7 is a block diagram of a communication device shown according to an exemplary embodiment.
[0050] Figure 8 is a structural block diagram of the device 800 shown according to an exemplary embodiment. DETAILED DESCRIPTION
[0051] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is only exemplary and is not intended to limit the present disclosure, unless otherwise explicitly indicated. Rather, they are merely examples of apparatus and methods consistent with aspects of the present disclosure as detailed in the appended claims.
[0052] Figure 1 is a schematic diagram of channel adjustment in a screen projection type service scenario in related art 1, as shown in Figure 1 In related art 1, multiple electronic devices are in a network environment 100 in a screen projection or multi-screen collaboration service scenario, and related art 1 performs a dynamic channel adjustment scheme as follows:
[0053] S101, the first device and the second device establish an STA path in the 149 channel; wherein the first device is a smart terminal (for example, a mobile phone, a tablet, a personal computer, etc.), and the second device is an access point (AP) device (for example, a router, etc.);
[0054] S102, the first device and the third device establish a P2P path in the 36 channel; wherein the third device is a large screen device (for example, a television, a tablet, a personal computer, etc.);
[0055] S103, the first device completes the establishment of the concurrent channels of the STA path and the P2P path, forming a network topology structure of a dual band adaptive concurrent (DBAC) mode of different frequencies and different channels. Since the communication in the DBAC mode is time-division multiplexing in two frequency bands, the switching overhead causes the link delay to be aggravated, so the first device adopts a roaming method to establish an STA path with the fourth device in the 36 channel, and completes the channel switching; wherein the fourth device is an AP device (for example, a router, etc.).
[0056] In the related art 1, when the first device initially establishes concurrent channels with the STA path and the P2P path, the first device attempts to connect the STA path of the first device to the fourth device in a roaming manner, triggers the channel switching only once, completes the dynamic adjustment of the communication channel between the devices, and finally forms a single channel concurrency (SCC) / dual-band adaptive concurrency / dual-band dual concurrent (DBDC) state of the same frequency and different channels. However, after the related art 1 completes the channel adjustment, it no longer performs any other dynamic adjustment on the P2P channel for the communication interaction between the first device and the third device. Since the channel state and quality change at any time, if only a single channel is used for the communication between the first device and the third device in an open environment, even if the current channel quality deteriorates to the extent that the target service cannot be supported, the channel switching will not be performed, and it is difficult to provide stable and reliable screen projection or multi-screen collaboration experience for users.
[0057] Figure 2 is a channel adjustment schematic diagram in a non-screen projection type service scenario in the related art 2, as shown in Figure 2 In the related art 2, a plurality of electronic devices are in a network environment 200 in a non-screen projection type service scenario, and the dynamic channel adjustment scheme of the related art 2 has the following process:
[0058] S201, the first device and the second device establish a STA path on the 149 channel; wherein the first device is a smart terminal (for example, a mobile phone, a tablet, a personal computer, etc.), and the second device is an AP device (for example, a router, etc.) that can support two frequency bands of 2.4G and 5G;
[0059] S202, if the second device detects that the wireless signal strength (RSSI) of the first device decreases to a preset first signal strength threshold, the STA path of the first device and the second device is switched from the 149 channel of the 5G frequency band to the 1 channel of the 2.4G frequency band; if the second device detects that the wireless signal strength of the first device increases to a preset second signal strength threshold, the STA path of the first device and the second device is switched from the 1 channel of the 2.4G frequency band to the 149 channel of the 5G frequency band.
[0060] In the related art 2, the channel dynamic adjustment scheme only utilizes the wireless signal strength parameter detected by the second device to guide the first device and the second device to perform multiple switching between the 2.4G / 5G frequency bands. However, the related art 2 cannot trigger the frequency band switching to improve the communication quality in the case that the wireless signal strength of the 2.4G and 5G networks is poor (for example, the 2.4G environment is too crowded, and the 5G environment is congested). The scheme has little effect on improving the user experience of the near field business.
[0061] To this end, the embodiment of the present disclosure discloses a communication method, Figure 3 is a flow chart of a communication method according to an exemplary embodiment, as Figure 3 shown, the method mainly includes the following steps:
[0062] S301, determining the service quality of the target service running on the first channel;
[0063] S302, in response to the service quality not meeting the preset service quality condition, switching to the second channel to run the target service; wherein the service quality of the target service running on the second channel is higher than the service quality of the target service running on the first channel.
[0064] The communication method provided by the embodiment of the present disclosure can be an electronic device, wherein the electronic device can be a mobile phone, a camera, a tablet computer, a vehicle-mounted device, a wearable device, etc. In some possible implementation manners, the communication method can be realized by calling the computer readable instructions stored in the memory by the processor.
[0065] In the embodiment of the present disclosure, the target service can be a screen projection type service, such as wireless screen projection, multi-screen collaboration, etc. It can also be a non-screen projection type service, such as data interconnection, mouse collaboration, wireless audio, home control, etc. In the embodiment of the present disclosure, the target device is a device that can be connected and communicated with the electronic device in an open network environment and run the target service. The target device can be a mobile phone, a camera, a tablet computer, a television, a smart home device, a vehicle-mounted device, a wearable device, etc.
[0066] In the embodiment of the present disclosure, the connection mode between the electronic device and the target device can be various, which can be that the electronic device is connected with the target device in the way of forwarding based on the gateway device; or the electronic device is directly connected with the target device in the way of direct connection. In the embodiment of the present disclosure, the electronic device can be connected with the target device based on the first channel and communicate with each other, so as to run the target service. The first channel can be a communication channel in the WiFi STA mode; or a communication channel in the WiFi P2P mode, which is not limited in the present disclosure.
[0067] Figure 4is a communication diagram shown according to an exemplary embodiment, as Figure 4 As shown in the open network environment 400, the electronic device and the target device communicate in a gateway forwarding manner to perform a service such as screen projection or multi-screen collaboration, wherein the first device (the electronic device) transmits image data to the gateway device based on a station mode 149 channel (a first channel), so that the gateway device forwards the image data to the target device not shown based on a communication channel of the station mode, so that the target device can display the screen of the electronic device.
[0068] In other embodiments, the electronic device and the target device directly communicate in a direct connection manner to perform a service such as data intercommunication or wireless audio, and the first device (the electronic device) directly communicates with the third device (the target device) based on an X channel (a first channel) of a direct connection mode, so that the target device can perform data transmission with the electronic device or play audio on the electronic device.
[0069] In the embodiments of the present disclosure, the service quality represents the quality of the target service running on the first channel, and can be used to evaluate whether the current status of the first channel can meet the service running requirement of the target service. In the foregoing step S301, the electronic device determines the service quality of the target service running on the first channel in multiple ways. For example, the service quality of the target service running on the first channel can be determined according to experience data fed back by the user to at least one of the electronic device and the target device; the service quality of the target service running on the first channel can be determined based on network index data of the first channel when the target service runs; or the service quality of the target service running on the first channel can be determined based on service index data when the target service runs on the first channel.
[0070] In some embodiments, if the electronic device and / or the target device has a black screen or no response of application software, the user can feed back that the experience of using the device is poor, and then determine that the service quality of the target service running on the first channel is poor; if the electronic device and / or the target device can run various application software smoothly, the user can feed back that the experience of using the device is good, and then determine that the service quality of the target service running on the first channel is good.
[0071] In other embodiments, if it is detected that the corresponding packet loss rate of the electronic device running the target service is high, or it is detected that the screen of the target device is stuck or has poor definition, it is determined that the service quality of the target service running on the first channel is poor; if it is detected that the corresponding packet loss rate of the electronic device running the target service is low, or it is detected that the screen of the target device is smooth and has high resolution, it is determined that the service quality of the target service running on the first channel is good.
[0072] In the embodiments of the present disclosure, the electronic device can preset a service quality condition, and determine whether the service quality of the first channel meets the target service running requirement. In some embodiments, the electronic device can determine whether the service quality of the first channel meets the preset service quality condition by using a threshold value determination method. For example, if the service quality is greater than the preset service quality threshold value, it is determined that the service quality meets the preset service quality condition; if the service quality is less than or equal to the preset service quality threshold value, it is determined that the service quality does not meet the preset service quality condition.
[0073] In other embodiments, the electronic device can determine whether the service quality of the first channel meets the preset service quality condition by using a quality evaluation model. For example, the electronic device can preset an evaluation model, and determine whether the service quality of the first channel meets the preset service quality condition by using the index data of the target service running and the evaluation model. The index data includes at least one of service index data and network index data.
[0074] In the embodiments of the present disclosure, the second channel can be a communication channel in WiFi STA mode, or a communication channel in WiFi P2P mode. In the case that the service quality does not meet the preset service quality condition, the electronic device can switch to the second channel to run the target service with the target device, and the service quality of the target service running on the second channel is higher than that running on the first channel. For example, the speed of the target service running on the second channel can be faster, the definition of the target service running on the second channel can be higher, and the stability of the target service running on the second channel can be better.
[0075] In the embodiments of the present disclosure, the electronic device can switch to the second channel to run the target service with the target device in various ways. For example, the electronic device can switch to the second channel in real time when it is detected that the service quality does not meet the preset service quality condition. Alternatively, the electronic device can switch to the second channel when it is detected that the service quality does not meet the preset service quality condition for multiple times within a preset time period. The electronic device can perform one or more channel switching to ensure that the service quality of the target service running on the second channel meets the preset service quality condition.
[0076] In the embodiments of the present disclosure, when the electronic device and the target device perform channel switching, if the electronic device and the target device communicate based on a direct connection mode, the electronic device and the target device can directly switch the WiFi P2P path connected to the second channel. If the electronic device and the target device communicate based on a gateway device forwarding mode, the electronic device and the gateway device can switch the WiFi STA path connected to the second channel. Alternatively, the electronic device and the gateway device can switch the WiFi STA path connected to the second channel, and the gateway device and the target device can switch the WiFi STA path connected to the second channel.
[0077] It should be noted that in the foregoing related art 1, in the case of deteriorating communication quality, the first device and the third device only switch to fixed channel communication once, but the quality of the fixed channel communication can not be able to continuously meet the operation requirements of the target service; the related art 2 only uses the signal strength of the channel to guide the frequency band switching, but the new frequency band after switching can still not be able to meet the operation requirements of the target service, and the above methods cannot handle the case that the channel network condition deteriorates to the extent that the target service cannot be operated.
[0078] In the embodiments of the present disclosure, the electronic device guides the switching of the channel running the target service to a second channel with better service quality based on the service quality of the target service running on a first channel, and performs channel switching according to the service quality of the target service, which is beneficial to switching to a channel that is more suitable for the operation requirements of the target service in an open network environment, improves the operation quality of the target service, and further improves the experience of the user using the target service.
[0079] In some embodiments, the method further comprises:
[0080] obtaining service indicator data of the target service and network indicator data of the target service running;
[0081] The determination of the service quality of the target service running on the first channel comprises:
[0082] determining the service quality of the target service based on the service indicator data of the target service and / or the network indicator data of the target service running.
[0083] In the embodiments of the present disclosure, the service indicator data of the target service of the electronic device represents the service state when the target service runs, which can be video quality data, user experience data, etc.; wherein the video quality indicators can specifically include video code rate, video resolution, video frame rate, compression ratio, etc.; and the user experience indicators can specifically include buffer time, smoothness, number of stalls, picture clarity, etc. In the embodiments of the present disclosure, the network indicator data of the target service running represents the network state when the target service runs, which can be network delay, packet loss rate, bandwidth, network jitter, etc.
[0084] In the embodiments of the present disclosure, when the electronic device and the target device communicate based on the first channel, the electronic device can obtain the service indicator data and the network indicator data in multiple ways, which can be obtaining the service indicator data and / or the network indicator data from the electronic device side; or receiving the service indicator data and / or the network indicator data detected by the target device side.
[0085] In the embodiments of the present disclosure, the electronic device determines the quality of service of the target service running based on the channel in various ways based on the service indicator data of the target service and / or the network indicator data of the network running the target service. The quality of service of the target service can be determined by using one-sided data of the electronic device or the target device. The quality of service of the target service can also be determined by combining multi-sided data obtained by the electronic device and the target device. The service indicator data and the network indicator data can be obtained from the same device or different devices.
[0086] In some embodiments, the electronic device preliminarily determines that the quality of service of the target service running on the first channel is poor based on the service indicator data of the target service. The quality of service of the target service running on the first channel can be further determined based on the network indicator data of the first channel running the target service. If the network indicator data indicates that the current network quality of the first channel is good, it is determined that the quality of service of the target service running meets the preset quality of service condition. If the network indicator data indicates that the current network quality of the first channel is poor, it is determined that the quality of service of the target service running does not meet the preset quality of service condition. For example, in the scenario of the phone and the large-screen device performing the screen projection service, if the video is stuck and the image quality is poor on the large-screen device, the network indicator data of the first channel running the screen projection service of the phone can be further detected. If the network indicator data of the first channel based on the phone is poor, the communication channel between the phone and the large-screen device is switched to the second device. If the network indicator data of the first channel based on the phone is good, the channel is not switched.
[0087] In the embodiments of the present disclosure, the electronic device first determines whether the running state of the target service is normal by using the service indicator data (service experience) of the target device. In the case that the running state of the target service is abnormal, it is further determined whether the abnormal running of the target service is caused by the poor network quality of the first channel where the electronic device is located. The accuracy of the abnormal service cause detection is improved, so that the channel switching is performed in the case that the target service is abnormal due to the poor network quality of the first channel. The accuracy of the channel switching is improved, and the false triggering of the channel switching is reduced.
[0088] In the embodiments of the present disclosure, the electronic device determines the quality of service of the target service in various ways. The quality of service can be determined by comparing the preset service indicator threshold corresponding to the service indicator data and the preset network indicator threshold corresponding to the network indicator data. The quality of service of the target service running on the electronic device can also be determined by inputting the service indicator data and / or the network indicator data into the preset evaluation model.
[0089] In the embodiments of the present disclosure, since the service indicator data can reflect the service state of the target service when running based on the first channel, the network indicator data can reflect the network state of the target service when running on the first channel, and the electronic device can evaluate the support capability of the first channel for the target service by using the service state and / or the network state of the target service when running, thereby guiding the channel switching according to the support capability of the first channel for the target service, and improving the reliability of the target service running.
[0090] In some embodiments, the service quality of the target service is determined based on the service indicator data of the target service and / or the network indicator data of the target service running, including:
[0091] In response to the business scenario to which the target service belongs corresponding to an evaluation model of the service indicator data, determining whether the service indicator data meets the preset service quality condition based on the evaluation model;
[0092] In response to the business scenario to which the target service belongs not corresponding to the evaluation model, determining whether the service quality of the target service meets the preset service quality condition based on the network indicator data.
[0093] It should be noted that when the electronic device is connected with the target device and communicates, different types of target services can be run. Since the business scenarios corresponding to different types of target services are not the same, the monitoring configuration requirements of the service quality corresponding to each business scenario are also not the same, and then the preset evaluation model of the electronic device can include multiple types to adapt to different business scenarios corresponding to the target service.
[0094] In the embodiments of the present disclosure, the evaluation model can include a low-latency model, a normal model, and a high-quality model, and the evaluation parameters set by different evaluation models and the threshold values corresponding to the evaluation parameters are different, which are used to adapt to different types of target services. The input data corresponding to the evaluation model can be one or more of at least the aforementioned video quality data and user indicator data.
[0095] In the embodiments of the present disclosure, the low-latency model is a model with high requirements for user experience data and high tolerance for video quality data, that is, the evaluation requirements corresponding to the low-latency model are generally lower buffer time, smoothness, and number of stalls, and slightly lower video code rate, video resolution, video frame rate, and slightly higher compression ratio. The high-quality model is a model with relatively high tolerance for user experience data and high requirements for video quality data, that is, the evaluation requirements corresponding to the high-quality model are slightly longer buffer time, smoothness, and relatively slightly higher number of stalls, and higher video code rate, video resolution, video frame rate, and slightly lower compression ratio. The normal model has moderate requirements for user experience data and video quality data compared to the above two models.
[0096] It should be noted that the video fluency generally refers to lower buffering time and less freezing times; the code stream is negatively correlated with the video compression ratio, and generally the video encoder will reduce the redundancy information of the video data as much as possible to achieve a higher compression ratio, so as to realize a smaller code stream. For example, the video encoder can discard some detail information to achieve a higher compression ratio, but the high compression ratio can also cause loss of video quality. Therefore, the evaluation parameters included in each evaluation model and the threshold corresponding to the evaluation parameters can be flexibly adjusted according to actual business.
[0097] In the embodiments of the present disclosure, the electronic device can detect whether the target service has an evaluation model adapted thereto according to the running target service. The detection manner can be querying the evaluation model corresponding to the service tag by using the service tag corresponding to the target service. If the evaluation model is queried, it indicates that the target service has a corresponding evaluation model. If the evaluation model is not queried, it indicates that the target service does not have an evaluation model adapted thereto.
[0098] In the embodiments of the present disclosure, the electronic device can determine whether the target service index data meets the preset service quality condition by using the evaluation model corresponding to the scene to which the target service belongs. In the case that the target service does not have a corresponding evaluation model, the network index data can be directly used to determine whether the target service index data meets the preset service quality condition. In some embodiments, when the scene to which the target service belongs does not have a corresponding evaluation model, a default evaluation model can be used; wherein the default evaluation model is obtained based on the network index data.
[0099] Evaluation model Buffer time Choppiness times Code stream Frame rate Resolution Low latency model 1s 3 Drop 15% Drop 50% Drop 33% High quality model 5s 10 Increase 67% - - Normal model 2s 5 - - -
[0100] Table 1
[0101] Table 1 is a schematic diagram of an evaluation model and its parameter configuration. As shown in Table 1, the electronic device and the target device perform a screen projection service on the first channel, and video data with a resolution of 1080p, a frame rate of 60, and a code stream of 12M code rate is being transmitted. If the electronic device or the target device detects that the buffering time exceeds 1 second within 5 minutes or the freezing times are more than 3 times within 1 minute, it indicates that the current screen projection service index cannot meet the preset quality condition of the screen projection service.
[0102] In the embodiments of the present disclosure, the electronic device sets the corresponding evaluation model for different service scenes to which the target service belongs, so as to realize diversified setting of the evaluation model. On the one hand, in the case that the scene to which the target service belongs has a corresponding evaluation model, the diversified evaluation model is used to facilitate targeted quality evaluation of various service scenes and improve the accuracy of service quality evaluation. On the other hand, in the case that the scene to which the target service belongs does not have a corresponding evaluation model, the network index data of the first channel is directly used to determine whether the service index meets the preset service quality condition.
[0103] In some embodiments, the evaluation model of the service indicator data is obtained by training historical service indicator data and historical service quality of the target service.
[0104] Figure 5 Figure 1 is a schematic diagram of an electronic device module to which a channel switching method shown in embodiments of the present disclosure is applicable. The electronic device in embodiments of the present disclosure can be a first device or a third device as shown in Figure 1. Figure 5 When the first device and the third device communicate based on a P2P channel, the roles of the first device and the third device can be interchangeable. That is, when the first device is the owner of a direct communication group, the third device is a client of the direct communication group, and vice versa.
[0105] In embodiments of the present disclosure, the electronic device (the first device) includes a quality monitoring module configured to monitor audio and video indicator data of the third device, including but not limited to video item data, network item data, and user experience data; a quality evaluation module configured to determine whether the current service quality meets the channel adjustment requirement based on the audio and video indicator data of the third device or the network performance indicator data of the first device; a switching instruction module configured to stop sending a channel switch announcement (CSA) message to the third device in the current frequency band, so as to instruct the third device to send a channel switch request; and a switching module configured to re-establish a communication connection with the third device based on the switched frequency band after receiving the CSA frequency band switching request sent by the third device.
[0106] In embodiments of the present disclosure, the electronic device can set the evaluation model in the quality evaluation module. The electronic device can record historical service indicator data and historical service quality of the running target service, and train the evaluation model based on the historical data in various ways. In some embodiments, the electronic device records various data when the service quality is normal and abnormal during the running of the target service, and obtains a preset service quality threshold for service quality judgment and an evaluation model corresponding to the target service. In other embodiments, the electronic device obtains initial parameters of the evaluation model by training based on historical service indicator data and historical service quality, and finally obtains the evaluation model by using the corresponding relationship between the service indicator data and the service quality and converging the parameters corresponding to the evaluation model.
[0107] In embodiments of the present disclosure, the electronic device records historical service indicator data and historical service quality, and trains the evaluation model. The evaluation model trained based on the historical data can well reflect the corresponding relationship between the service indicator data and the service quality, and can improve the accuracy of service quality evaluation, and further improve the accuracy of channel switching of the electronic device.
[0108] In some embodiments, the method further comprises:
[0109] In response to the service quality satisfying the preset service quality condition, saving network index data of the target service running on the first channel; wherein the saved network index data is used as a basis for evaluating service quality.
[0110] In the embodiments of the present disclosure, when the electronic device determines that the service quality satisfies the preset service quality condition, i.e., the first channel can better support the running of the target service, the electronic device can save the network index data and the service quality data when the target service runs on the first channel, so that the electronic device can evaluate the service quality based on the saved data in the future.
[0111] In the embodiments of the present disclosure, the electronic device can preset a default evaluation model, which is used to determine the service quality directly according to the network index data when the target service belongs to a service scenario that does not correspond to an evaluation model; wherein the default evaluation model can include one or more evaluation parameters such as network delay, packet loss rate, bandwidth, and network jitter, and the default evaluation model can be trained based on the saved historical network index data when the service quality satisfies the preset service quality condition.
[0112] For example, the electronic device records the matching relationship between the historical network index data corresponding to the evaluation parameters in the default evaluation model and the historical service quality when the target device does not have a current video picture freezing scenario, and learns the matching relationship to obtain the default evaluation model.
[0113] In the embodiments of the present disclosure, the electronic device records the historical network index data and the historical service quality when the service quality satisfies the preset service quality condition, so that the electronic device can use the network quality index data satisfying the preset service quality condition as a reference in the case where there is no corresponding evaluation model, thereby improving the service quality evaluation accuracy in the case where there is no corresponding evaluation model.
[0114] In some embodiments, the method further comprises:
[0115] In response to the service quality not satisfying the preset service quality condition, switching to the second channel to run the target service through one or more channel switching.
[0116] In the embodiments of the present disclosure, when the service quality does not meet the preset service quality condition, the electronic device can switch to an intermediate channel, and after the switching, according to an evaluation model corresponding to the target service and / or a default evaluation model, the service quality of the target service running on the intermediate channel is determined again whether it meets the preset service quality condition. If yes, the intermediate channel is taken as the second channel and the switching is stopped. If no, the switching of the channel is continued until the second channel with higher service quality running the target service is switched to.
[0117] In the embodiments of the present disclosure, the electronic device can perform one or more channel switching. During the switching of the channel, it can be detected again whether the current channel can meet the running requirement of the target service. If no, the switching is continued until the second channel with higher service quality running the target service is switched to, so as to meet the service requirement of the target service, improve the accuracy of the channel switching, and further improve the performance of the electronic device running the target service.
[0118] In some embodiments, the switching to the second channel to run the target service after one or more channel switching in response to the service quality not meeting the preset service quality condition comprises:
[0119] In response to the service quality not meeting the preset service quality condition, the switching to the second channel to run the target service after one or more channel switching within a preset switching number threshold.
[0120] It should be noted that the time slice configuration is the time slice allocation of the communication channel, mainly involving how to effectively allocate time resources in a given channel bandwidth so that multiple signals can share the same physical line. In the embodiments of the present disclosure, when the service quality does not meet the preset service quality condition, it is further determined whether the unreasonable time slice configuration of the network topology leads to it. If yes, the current network topology is switched to another type. If no, it is directly switched to a new channel. For example, the electronic device under the DBAC topology structure detects that the time slice configuration is not suitable for the target service scenario, and the DBAC can be reconfigured for time slice.
[0121] In the embodiments of the present disclosure, the electronic device sets the switching number of the channel. It can be that the switching number of the channel is controlled within a preset switching number threshold within a preset time length. The preset switching number threshold can be associatedly configured according to different scenes to which the target service belongs, so that the channel switching is better adapted to the requirement of the target service.
[0122] In the embodiments of the present disclosure, when the service quality does not meet the preset service quality condition, the electronic device can control the switching number of the channel, reduce the frequent back-and-forth switching problem, reduce the invalid switching of the channel, and save the resources of the electronic device.
[0123] Figure 6 This is a flowchart illustrating a communication channel switching method in an embodiment of this disclosure, such as... Figure 6 As shown, the communication channel switching method includes the following steps:
[0124] S601, Start near-field communication service;
[0125] In this embodiment, both the STA and P2P paths of the first device (i.e., the electronic device in this embodiment) are created and can be used to execute subsequent steps related to screen projection services, multi-screen collaboration services, or other non-screen projection near-field services. It should be noted that this application does not limit the choice of STA, P2P, or other similar network paths for near-field communication.
[0126] S602. Based on the tags of the user's actual application, query whether there is a matching business model and obtain the matching result; wherein, the business model includes: the quality monitoring configuration corresponding to the business scenario;
[0127] In this embodiment of the disclosure, the quality monitoring configuration corresponding to the business scenario included in the business model (i.e. the evaluation model in this embodiment of the disclosure) can be understood as a quality monitoring configuration adapted to the business scenario. The business scenario can be understood as the scenario corresponding to the first device and the third device using different types of applications and functions in the near field communication scenario (e.g., wireless screen projection, multi-screen collaboration or other usage scenarios).
[0128] It should be noted that different business scenarios have different quality monitoring configuration requirements, which in turn correspond to different business models; the matching result indicates whether there is a business model that matches the business scenario.
[0129] In this embodiment of the disclosure, the quality monitoring configuration (i.e., the evaluation parameter configuration corresponding to the evaluation model in this embodiment of the disclosure) can be understood as a comprehensive setting of the following indicators: video quality indicators, network quality indicators, user experience indicators, and other parameter settings:
[0130] In this embodiment of the disclosure, when the electronic device determines that the running service has a matching service model, step S603 is executed; when it determines that the running service does not have a matching service model, step S609 is executed.
[0131] S603. Issue the matching quality monitoring configuration and perform quality monitoring according to the matching quality monitoring configuration;
[0132] S604. Monitor the current audio and video quality indicators to determine if they are causing stuttering;
[0133] It should be noted that in this embodiment, the video stuttering of the third device may be caused by poor network conditions of the first channel of the first device, or it may be caused by the third device running too many applications. In this embodiment, the electronic device uses the quality monitoring configuration included in the matching service model to determine whether the stuttering is caused by the network of the electronic device based on the audio and video quality indicators matched by the service model. That is, in this embodiment, in response to the evaluation model with service indicator data corresponding to the service scenario to which the target service belongs, it determines whether the service indicator data meets the preset service quality conditions based on the evaluation model.
[0134] For example, if the first device detects that the third device's video is lagging, it can further detect whether the lagging is caused by the network conditions of the first channel (video data sending end) of the first device. If it is determined that the lagging is caused by the network quality of the first channel, the channel can be switched.
[0135] In this embodiment of the disclosure, if the electronic device determines that a lag is caused, step S606 is executed; otherwise, step S605 is executed.
[0136] S605. Record and learn the matching relationship between the current model and network metrics (video quality, user experience, and network quality);
[0137] In this embodiment, the electronic device records the matching relationship between the current model and network metrics, and learns this matching relationship, which is the default evaluation model in this embodiment. This allows the first device to reference its network parameters when using a model without a matching model, thereby improving the network lag recognition rate of the unmatched service model. The default model (default evaluation model) includes a quality monitoring configuration. The Default model's tags may include the default quality monitoring configuration, and the Default model only monitors network quality metrics.
[0138] S606. Switch channel configuration and notify the near-field device to switch channels;
[0139] In this embodiment of the present disclosure, the electronic device notifies the channel switching indication module to issue a channel switching announcement and continues to perform near-field communication services according to the switched channel. That is, in this embodiment of the present disclosure, in response to the service quality not meeting the preset service quality conditions, the device switches to the second channel to run the target service.
[0140] S607 monitors current audio and video quality indicators to determine if stuttering is caused;
[0141] In this embodiment of the disclosure, after the electronic device switches channels, it can again confirm whether the current lag is caused by the network based on the audio and video quality indicators matched by the model. If there is lag, step S606 is executed; otherwise, step S608 is executed. The monitoring method can refer to the aforementioned step S604. The difference is that step S604 monitors the audio and video quality indicators of the channel before the switch, while step S607 uses the audio and video quality indicators of the channel after the switch.
[0142] S608. Record and learn the matching relationship between the current model and network metrics (video quality, user experience, and network quality);
[0143] S609. Issue the default quality monitoring configuration and perform quality monitoring according to the default quality monitoring configuration;
[0144] S610: Monitor current audio and video quality indicators to confirm whether the current network is experiencing lag;
[0145] In this embodiment of the disclosure, in the absence of a matching service model, the electronic device can determine whether the network is lagging based on network quality parameters (network latency, packet loss rate, bandwidth, and network jitter) by comparing each network quality parameter with a preset standard value. If the network quality parameter is greater than or equal to a preset quality threshold, it is determined that the current network is not lagging; if it is less than the preset threshold, it is determined that the network is lagging.
[0146] In this embodiment of the disclosure, the corresponding network quality parameters will adopt the parameters in the conventional model. If they do not exist, the high-quality model parameters will be selected first, followed by the low-latency model parameters. If none of them exist, the predefined values under the default condition will be used. This method can improve the matching degree of network quality parameters with services as much as possible and reduce the probability that the use of network quality indicators cannot reflect the actual service indicators.
[0147] In this embodiment of the disclosure, if the electronic device confirms that a lag has occurred, it executes step S611; otherwise, it executes step S610.
[0148] S611. Switch channel configuration and notify the near-field device to switch channels;
[0149] In this embodiment of the present disclosure, the electronic device notifies the channel switching indication module to issue a channel switching announcement and continues to perform near-field communication services according to the switched channel. That is, in this embodiment of the present disclosure, in response to the service quality not meeting the preset service quality conditions, the device switches to the second channel to run the target service.
[0150] In this embodiment, on the one hand, the electronic device uses service indicator data, network indicator data, and an evaluation model corresponding to the scenario of the target service to evaluate the service quality of the target service running on the first channel, and continuously monitors one or more intermediate channels after switching, so as to eventually switch the electronic device to a second channel with high service quality for running the target service, thereby improving the service quality of the electronic device running the target service and enhancing the user experience of using the electronic device to run the target service; on the other hand, when there is no suitable evaluation model for the target service, the electronic device directly uses network indicator data to guide the channel switching, resulting in high switching efficiency; in addition, the electronic device records various historical data to train the evaluation model, which helps to improve the evaluation accuracy of the evaluation model.
[0151] Figure 7 This is a block diagram illustrating a communication device according to an exemplary embodiment. Figure 7 As shown, the device 700 mainly includes:
[0152] The determination module 701 is used to determine the service quality of the target service operating on the first channel;
[0153] The switching module 702 is used to switch to the second channel to run the target service in response to the service quality not meeting the preset service quality conditions; wherein the service quality of the target service running on the second channel is higher than the service quality running on the first channel.
[0154] The device further includes an acquisition module for acquiring service indicator data of the target service and network indicator data of the target service operation.
[0155] The determining module 701 is further configured to determine the service quality of the target service based on the service indicator data of the target service and / or the network indicator data of the target service operation.
[0156] The determining module 701 is further configured to respond to an evaluation model that corresponds to business indicator data in the business scenario to which the target business belongs, and determine whether the business indicator data meets the preset business quality conditions based on the evaluation model.
[0157] In response to the fact that the business scenario to which the target service belongs does not correspond to the evaluation model, the service quality of the target service is determined based on the network indicator data to determine whether the service quality meets the preset service quality conditions.
[0158] The determining module 701 is further used to train the evaluation model of the business indicator data on the historical business indicator data and historical business quality of the target business.
[0159] The device further includes a storage module, used to store network indicator data of the target service operating on the first channel in response to the service quality meeting the preset service quality conditions; wherein the stored network indicator data is used as a basis for evaluating service quality.
[0160] The switching module 702 is further configured to, in response to the service quality not meeting the preset service quality conditions, switch to the second channel to run the target service after one or more channel switching operations.
[0161] The switching module 702 is further configured to, in response to the service quality not meeting the preset service quality conditions, switch to the second channel to run the target service after one or more channel switching operations within a preset switching count threshold.
[0162] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0163] Figure 8 This is a structural block diagram illustrating a device 800 according to an exemplary embodiment. For example, device 800 may be a mobile phone, tablet computer, wearable device, or in-vehicle device, etc.
[0164] Reference Figure 8 The device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input / output (I / O) interface 812, sensor component 814, and communication component 816.
[0165] Processing component 802 typically controls the overall operation of device 800, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0166] Memory 804 is configured to store various types of data to support operation on device 800. Examples of such data include at least one of the following: instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, and videos. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0167] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 800.
[0168] Multimedia component 808 includes a screen that provides an output interface between device 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a Touch Panel, the screen may be implemented as a touchscreen to receive input signals from the user. The Touch Panel includes one or more touch sensors to sense touches, swipes, and gestures on the Touch Panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0169] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0170] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0171] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or one of its components, the presence or absence of user contact with device 800, orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.
[0172] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), Bluetooth (BT), and other technologies.
[0173] In an exemplary embodiment, device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0174] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including executable instructions or a computer program, which can be executed by the processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0175] A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any of the communication methods described in the embodiments of this disclosure.
[0176] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the communication methods described in this disclosure.
[0177] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0178] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A communication method, characterized in that, The method includes: Determine the service quality of the target service operating on the first channel; In response to the fact that the service quality does not meet the preset service quality conditions, the target service is switched to a second channel to run; wherein the service quality of the target service running on the second channel is higher than the service quality running on the first channel.
2. The method according to claim 1, characterized in that, The method further includes: Obtain the business indicator data of the target service, and the network indicator data of the target service operation; Determining the service quality of the target service operating on the first channel includes: The service quality of the target service is determined based on the service indicator data of the target service and / or the network indicator data of the target service operation.
3. The method according to claim 2, characterized in that, The determination of the service quality of the target service based on the service indicator data of the target service and / or the network indicator data of the target service operation includes: In response to the evaluation model that corresponds to the business scenario to which the target business belongs, the evaluation model is used to determine whether the business indicator data meets the preset business quality conditions. In response to the fact that the business scenario to which the target service belongs does not correspond to the evaluation model, the service quality of the target service is determined based on the network indicator data to determine whether the service quality meets the preset service quality conditions.
4. The method according to claim 3, characterized in that, The evaluation model for the business indicator data is obtained by training on the historical business indicator data and historical business quality of the target business.
5. The method according to claim 1, characterized in that, The method further includes: In response to the service quality meeting the preset service quality conditions, network indicator data of the target service operating on the first channel is saved; wherein, the saved network indicator data is used as the basis for evaluating service quality.
6. The method according to claim 1, characterized in that, The step of switching to the second channel to run the target service in response to the service quality not meeting the preset service quality conditions includes: In response to the fact that the service quality does not meet the preset service quality conditions, the target service is switched to the second channel after one or more channel switching operations.
7. The method according to claim 6, characterized in that, The step of responding to the service quality not meeting the preset service quality conditions by switching to the second channel to run the target service after one or more channel handovers includes: In response to the fact that the service quality does not meet the preset service quality conditions, the target service is switched to the second channel to run after one or more channel handovers within a preset handover number threshold.
8. A communication device, characterized in that, include: The determination module is used to determine the service quality of the target service running on the first channel; A switching module is used to switch to a second channel to run the target service in response to the service quality not meeting a preset service quality condition; wherein the service quality of the target service running on the second channel is higher than the service quality running on the first channel.
9. An electronic device, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 7.