Signal sending method and apparatus and electronic device

By adjusting the transmission power according to WiFi signal quality parameters, the communication quality and power consumption issues of the WiFi protocol in poor network environments are solved, achieving the effect of reducing power consumption while ensuring communication quality.

WO2025218580A1PCT designated stage Publication Date: 2025-10-23VIVO MOBILE COMM CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/088388
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-16
Filing Date
2025-04-11
Publication Date
2025-10-23

AI Technical Summary

Technical Problem

Existing WiFi protocols cannot balance the communication quality and power consumption of electronic devices, resulting in decreased communication quality and increased power consumption when the network environment is poor.

Method used

By receiving a first WiFi signal sent by a second electronic device, the target transmission power of at least one field in the second WiFi signal is adjusted according to its quality parameters to match the current network environment.

Benefits of technology

While ensuring communication quality, the power consumption of electronic devices has been reduced, and the adaptability and efficiency of signal transmission have been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025088388_23102025_PF_FP_ABST
    Figure CN2025088388_23102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of communications. Disclosed are a signal sending method and apparatus and an electronic device. The method comprises: receiving a first WiFi signal sent by a second electronic device; on the basis of a quality parameter of the first WiFi signal, determining target transmit power of at least one field in a second WiFi signal, wherein the second WiFi signal is a WiFi signal sent by a first electronic device to the second electronic device; and using the target transmit power to send the at least one field in the second WiF signal.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and electronic device for transmitting signal

[0001] Cross-reference to Related Applications

[0002] This application claims priority to Chinese Patent Application No. 202410460505.X, filed on April 16, 2024, entitled “Method, device and electronic device for transmitting signal”, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD

[0003] The present application belongs to the field of communication technology, and specifically relates to a method, device and electronic device for transmitting signal. BACKGROUND

[0004] With the rapid development of electronic technology, electronic devices such as mobile phones, tablet computers and palmtop computers are becoming more and more popular and have gradually become an indispensable part of people's lives. Currently, Wireless Fidelity (WiFi) technology has been widely used in electronic devices, and the way of using WiFi to access the Internet is favored by more and more users.

[0005] Generally, when an electronic device detects a WiFi signal, it will transmit data to be transmitted to a WiFi routing device providing the WiFi signal at a certain transmission power. In fact, the greater the transmission power means higher data transmission rate and higher communication quality, but the greater the transmission power also requires higher power consumption. Therefore, how to balance the communication quality and power consumption of the electronic device has become a problem to be solved. SUMMARY

[0006] The purpose of the embodiments of the present application is to provide a method, device and electronic device for transmitting signal, which can solve the technical problem that the existing WiFi protocol cannot balance the communication quality and power consumption of the electronic device.

[0007] In a first aspect, the embodiments of the present application provide a method for transmitting signal, the method comprising:

[0008] receiving a first WiFi signal transmitted by a second electronic device;

[0009] determining a target transmission power of at least one field in a second WiFi signal according to a quality parameter of the first WiFi signal, wherein the second WiFi signal is a WiFi signal transmitted by the first electronic device to the second electronic device;

[0010] transmitting the at least one field in the second WiFi signal at the target transmission power.

[0011] In a second aspect, the embodiments of the present application provide a device for transmitting signal, the device comprising:

[0012] receive a first WiFi signal sent by a second electronic device;

[0013] determine a target transmission power of at least one field in a second WiFi signal according to a quality parameter of the first WiFi signal, wherein the second WiFi signal is a WiFi signal sent by the first electronic device to the second electronic device;

[0014] send the at least one field in the second WiFi signal with the target transmission power.

[0015] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores programs or instructions executable on the processor. When the programs or instructions are executed by the processor, the steps of the method provided in the first aspect are implemented.

[0016] In a fourth aspect, a readable storage medium is provided. The readable storage medium stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the method provided in the first aspect are implemented.

[0017] In a fifth aspect, a chip is provided. The chip includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is configured to execute programs or instructions to implement the steps of the method provided in the first aspect.

[0018] In a sixth aspect, a computer program product is provided. The program product is stored in a storage medium. When the program product is executed by at least one processor, the steps of the method provided in the first aspect are implemented.

[0019] In the signal sending method, device and electronic device, the first WiFi signal sent by the second electronic device can be received, and the transmission power of at least one field in the second WiFi signal is adjusted according to the quality parameter of the first WiFi signal. In this way, since the quality parameter of the signal is used to represent the communication quality of the network environment where the first electronic device is located, the transmission power of part or all fields in the signal sent by the first electronic device is adjusted based on the quality parameter, so that the transmission power of the signal is matched with the current network environment through the flexible adjustment of the transmission power of each field in the signal, and the first electronic device can reduce the power consumption as much as possible while ensuring the communication quality. BRIEF DESCRIPTION OF DRAWINGS

[0020] FIG. 1 is a flow diagram of a signal sending method according to an embodiment of the present application;

[0021] Fig. 2 is a structural schematic diagram of a signal sending device according to another embodiment of the present application;

[0022] Fig. 3 is a structural schematic diagram of an electronic device according to yet another embodiment of the present application;

[0023] Fig. 4 is a hardware structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the present application.

[0025] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", and the like are generally of a kind, and are not limited to the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / ", generally means that the objects before and after are in an "or" relationship.

[0026] To solve the above technical problems, the present application provides a signal sending method. The signal sending method provided by the embodiments of the present application will be described in detail below with reference to the drawings and specific embodiments and their application scenarios.

[0027] As shown in Fig. 1, Fig. 1 is a flowchart of a signal sending method according to an embodiment of the present application. The signal sending method provided by the present application can include the following steps.

[0028] S101, receiving a first WiFi signal sent by a second electronic device;

[0029] In this embodiment, in a wireless local area network environment, the second electronic device can be a WiFi routing device. The WiFi routing device can provide WiFi network access for terminal devices around it as a WiFi access point. The terminal device can be connected to the WiFi network, and then the second electronic device and the terminal device can communicate with each other by transmitting WiFi signals. The first electronic device can be a terminal device connected to the WiFi network provided by the second electronic device.

[0030] S102, determine a target transmission power of at least one field in a second WiFi signal according to the quality parameter of the first WiFi signal, wherein the second WiFi signal is a WiFi signal sent by the first electronic device to the second electronic device;

[0031] In the embodiment, the terminal device and the second electronic device under the WiFi network usually transmit the WiFi signal at a fixed default power. After the terminal device receives the first WiFi signal sent by the second electronic device at the default power, the terminal device can parse the first WiFi signal to obtain the quality parameter of the first WiFi signal. The quality parameter can represent the signal quality of the first WiFi signal, and can further evaluate the network environment between the terminal device and the second electronic device based on the signal quality.

[0032] If the signal quality and the network environment reflected by the quality parameter are good, the terminal device can transmit the second WiFi signal at the default power.

[0033] If the signal quality and the network environment reflected by the quality parameter are poor, if the terminal device still transmits the second WiFi signal at the default power when the terminal device sends the second WiFi signal to the second electronic device, the second electronic device may not correctly receive data, the data transmission rate may be reduced, and the network delay may be increased. In order to avoid the above problems, it is necessary to determine the target transmission power of the second WiFi signal according to the quality parameter.

[0034] Since the WiFi signal is composed of a series of data packets, and each data packet is composed of a plurality of fields with the same format. Therefore, in the process of re-determining the target transmission power of the second WiFi signal, the target transmission power of the entire second WiFi signal can be re-determined, or only the target transmission power of part of the fields of the data packet in the second WiFi signal can be re-determined.

[0035] S103, transmit at least one field in the second WiFi signal at the target transmission power.

[0036] In the embodiment of the application, after the target transmission power is determined, the terminal device can set the target transmission power as the current transmission power of the terminal device, so that the terminal device can transmit the signal at the target transmission power when communicating with the second electronic device, and transmit at least one field in the second WiFi signal at the target transmission power. The terminal device can also re-acquire the quality parameter of the received first WiFi signal every interval of a preset time, update the target transmission power based on the quality parameter, and then dynamically adjust the actual transmission power according to the latest target transmission power, that is, update the actual transmission power of the terminal device to the latest target transmission power.

[0037] In the present application, the first WiFi signal sent by the second electronic device can be received, and the transmission power of at least one field in the second WiFi signal is adjusted according to the quality parameter of the first WiFi signal. In this way, since the quality parameter of the signal is used to represent the communication quality of the network environment where the first electronic device is located, adjusting the transmission power of part or all fields of the signal transmitted by the first electronic device based on the quality parameter can make the transmission power of the signal match the current network environment through flexible adjustment of the transmission power of each field in the signal, so that the first electronic device can reduce power consumption as much as possible while ensuring communication quality.

[0038] In some embodiments, S102 comprises:

[0039] In the case where the quality parameter meets the first condition, the data state of at least one data packet in the first WiFi signal is obtained;

[0040] According to the data state, at least one field in the second WiFi signal is determined as the first field;

[0041] According to the data state, the target transmission power of the first field is determined.

[0042] In the present embodiment, the quality parameter of the first WiFi signal can be extracted by parsing the WiFi frame header of the received first WiFi signal. After obtaining the quality parameter of the first WiFi signal, if the quality parameter of the first WiFi signal meets the first condition, it can be considered that there may be a field that needs power breakthrough in the second WiFi signal sent by the first electronic device to the second electronic device. Then, by parsing each field included in each data packet in the first WiFi signal, the signal modulation parameter of the data packet can be determined, and the data state of the data packet can be obtained through the signal modulation parameter. The data state can also reflect the communication situation of the first WiFi signal, so the field in the second WiFi signal that needs power breakthrough can be determined based on the data state of the data packet, and at least one field that needs power breakthrough is determined as the first field. Then, the target transmission power of the first field is determined according to the data state. The first condition means that the quality parameter is less than the quality threshold set by the user in advance, so there is a field that needs power breakthrough in the second WiFi signal sent by the first electronic device to the second electronic device.

[0043] In the embodiment, the quality parameter of the first WiFi signal and the specific data state of the data packet in the first WiFi signal are combined to evaluate the communication quality between the terminal device and the second electronic device, and to determine the first field in the second WiFi signal that needs to adjust the transmission power and determine the target transmission power of the first field, so that a more accurate target transmission power can be obtained, and the target transmission power can better adapt to the current network environment.

[0044] In some embodiments, the quality parameter includes signal strength and modulation and coding level, and before the data state of the at least one data packet in the first WiFi signal is acquired, the method further includes:

[0045] In the case where the signal strength is less than the signal strength threshold and the modulation and coding level is less than the level threshold, it is determined that the quality parameter meets the first condition.

[0046] In the embodiment, the quality parameter of the first WiFi signal can include RSSI (Received Signal Strength Indicator, signal strength) and MCS level (Modulation and Coding Scheme, modulation and coding level).

[0047] Wherein, RSSI refers to the signal strength of the received first WiFi signal, and the signal strength can be used to evaluate the connection quality between devices. Higher RSSI indicates stronger signal, and lower RSSI indicates weaker signal. The MCS level indicates the type and parameters of the modulation and coding scheme used, and the MCS level can be used together with the RSSI to evaluate the data transmission rate of the first WiFi signal.

[0048] In the embodiment, the signal strength corresponding to the first WiFi signal can be detected first, and then the signal strength is compared with the preset signal strength threshold. If the signal strength is greater than or equal to the signal strength threshold, it can be considered that the communication quality between the terminal device and the second electronic device is high, and then the terminal device can transmit the WiFi signal according to the default power. If the signal strength is less than the signal strength threshold, the modulation and coding level can be further compared with the preset level threshold. If the modulation and coding level is less than the level threshold, it is considered that the transmission rate of the signal transmission in the current network environment according to the current modulation and coding scheme will be relatively slow, and it can cause transmission interruption.

[0049] Therefore, the terminal device cannot transmit the second WiFi signal according to the default power, and the terminal device can select at least one first field that needs to increase the transmission power from the multiple fields included in the second WiFi signal according to the data state, and re-determine the target transmission power of the first field.

[0050] In addition, if the signal strength is greater than or equal to the signal strength threshold value, or the signal strength is less than the signal strength threshold value and the modulation coding level is greater than or equal to the level threshold value, the terminal device can transmit the signal at a default power, and compare the signal strength and the modulation coding level with the corresponding threshold value every interval of a preset time to reevaluate the network environment to determine whether the transmission power of the second WiFi signal needs to be re-determined.

[0051] In the above manner, the communication quality of the signal between the terminal device and the second electronic device can be evaluated through the signal strength and the modulation coding level of the first WiFi signal, and if the communication quality is low, the transmission power of part or all fields in the second WiFi signal is determined according to the data state, so that the transmission power of the second WiFi signal can adapt to the current network environment between the terminal device and the second electronic device.

[0052] In some embodiments, the first WiFi signal includes a plurality of data packets, each data packet including at least one of a short training field, a long training field, a signal field, and a data field, and the data state includes at least one of a frequency offset value of the data packet, a channel estimation result, and an error vector magnitude of each field.

[0053] The at least one field in the second WiFi signal is determined as a first field according to the data state, including at least one of:

[0054] In a case where a standard deviation of frequency offset values of N consecutive data packets in the first WiFi signal is greater than a first standard deviation threshold value, the short training field in the second WiFi signal is determined as the first field, N being a positive integer;

[0055] In a case where a standard deviation of channel estimation results of N consecutive data packets in the first WiFi signal is greater than a second standard deviation threshold value, and a standard deviation of error vector magnitudes of data fields of the N consecutive data packets is greater than a third standard deviation threshold value, the long training field in the second WiFi signal is determined as the first field;

[0056] In a case where an error vector magnitude of a signal field of a data packet in the first WiFi signal is greater than a first threshold value, the signal field in the second WiFi signal is determined as the first field;

[0057] In a case where an error vector magnitude of a data field of a data packet in the first WiFi signal is greater than a second threshold value, the data field in the second WiFi signal is determined as the first field.

[0058] In the embodiment, the data packets in all WiFi signals can be divided into STF (Short Training Field), LTF (Long Training Field), SIG (Signal Field) and Data fields. Among them, the short training field, the long training field and the signal field are the frame header of the WiFi signal, and the data field carries the actual data.

[0059] The data state of the data packet in the first WiFi signal can be determined by analyzing the field attribute of each field in the data packet in the first WiFi signal, and the target transmission power of which field in the second WiFi signal needs to be re-determined is determined based on the data state.

[0060] Specifically, the frequency offset value of each data packet can be identified by analyzing the field attribute of the short training field in each data packet in the first WiFi signal. If the standard deviation of the frequency offset values of N consecutive data packets in the first WiFi signal is greater than the first standard deviation threshold, it can be considered that the dispersion degree of the frequency offset values of the N consecutive data packets is too high, so that the difference between the actual frequency offset and the ideal frequency offset of the first WiFi signal is large, and therefore the short training field needs to be determined as the first field, and the transmission power of the short training field corresponding to the frequency offset in the second WiFi signal needs to be re-determined.

[0061] The channel estimation result of each data packet can also be identified by analyzing the field attribute of the long training field in each data packet in the first WiFi signal. If the standard deviation of the channel estimation results of N consecutive data packets in the first WiFi signal is greater than the second standard deviation threshold, the standard deviation of the error vector magnitude of the data field of the N consecutive data packets is compared with the third standard deviation threshold. If the standard deviation of the error vector magnitude is greater than the third standard deviation threshold, it can be considered that the dispersion degree of the channel estimation results of the N consecutive data packets is too high, causing poor channel quality, and therefore the long training field needs to be determined as the first field, and the transmission power of the long training field corresponding to the channel quality in the second WiFi signal needs to be re-determined.

[0062] In addition, the error vector magnitude of the signal field and the error vector magnitude of the data field can be determined by analyzing the field attribute of the signal field and the data field of each data packet in the first WiFi signal. The error vector magnitude is an index for measuring signal modulation error. If the error vector magnitude of the signal field of a data packet in the first WiFi signal is greater than a first threshold value, it can be considered that the difference between the signal field of the first WiFi signal and the signal field of the ideal signal is too large, and the transmission power of the signal field in the second WiFi signal needs to be determined again. Similarly, if the error vector magnitude of the data field of a data packet in the first WiFi signal is greater than a second threshold value, it can be considered that the difference between the data field of the first WiFi signal and the data field of the ideal signal is too large, and the transmission power of the data field in the second WiFi signal needs to be determined again.

[0063] In the above manner, the field attribute of each field in the first WiFi signal can be analyzed to evaluate the data state of the data packet in the first WiFi signal. If the data state is abnormal, the field corresponding to the abnormal data state can be determined as the first field, and the transmission power of the first field of the second WiFi signal is adjusted, so that each field in the second WiFi signal approaches the ideal situation of signal transmission, and the communication quality between the terminal device and the second electronic device is ensured to be high.

[0064] In some embodiments, the target transmission power of the first field is determined according to the data state, including:

[0065] obtaining a first gear level of the current transmission power of the first field;

[0066] adjusting the transmission power of the first field to a second gear level until the data state corresponding to the first field at the second gear level meets a second condition, the second gear level being a gear level next to the first gear level in the P gear levels, wherein the transmission power of the first field includes P gear levels;

[0067] determining the transmission power corresponding to the second gear level as the target transmission power of the first field.

[0068] In this embodiment, in the case that the signal strength is less than the signal strength threshold value and the modulation and coding level is less than the level threshold value, the transmission power of the first field in the second WiFi signal transmitted by the terminal device needs to be increased on the basis of the current transmission power of the terminal device.

[0069] The adjustable range of the transmission power can be set to P levels in advance, each level corresponding to a transmission power, and the higher the level, the higher the corresponding transmission power. After determining the first field, the first level corresponding to the current transmission power of the first field can be further obtained, and the transmission power of the first field is increased by one level on the basis of the first level. If the data state corresponding to the first field meets the second condition at the second level, the transmission power corresponding to the second level is determined as the target transmission power of the first field. Otherwise, the transmission power of the first field is continuously increased in the above manner until the data state corresponding to the first field meets the second condition at the second level.

[0070] The second condition is that the signal quality of the first electronic device determined based on the data state reaches a pre-set state threshold.

[0071] In this way, the transmission power of the first field can be flexibly adjusted within the adjustable range, so that the final transmission power of the first field accurately adapts to the current communication quality.

[0072] FIG. 2 is a structural schematic diagram of a signal sending device provided by another embodiment of the present application. As shown in FIG. 2, the signal sending device can include:

[0073] The receiving module 201 is configured to receive a first WiFi signal sent by a second electronic device.

[0074] The determining module 202 is configured to determine a target transmission power of at least one field in a second WiFi signal according to a quality parameter of the first WiFi signal, wherein the second WiFi signal is a WiFi signal sent by the first electronic device to the second electronic device.

[0075] The sending module 203 is configured to send at least one field in the second WiFi signal at the target transmission power.

[0076] In the present application, the first WiFi signal sent by the second electronic device can be received, and the transmission power of at least one field in the second WiFi signal is adjusted according to the quality parameter of the first WiFi signal. In this way, since the quality parameter of the signal is used to represent the communication quality of the network environment where the first electronic device is located, adjusting the transmission power of part or all fields of the signal sent by the first electronic device based on the quality parameter can match the transmission power of the signal with the current network environment through flexible adjustment of the transmission power of each field in the signal, so that the first electronic device can reduce power consumption as much as possible while ensuring communication quality.

[0077] In another optional example, the determining module 202 includes:

[0078] an acquisition unit, configured to acquire a data state of at least one data packet in the first WiFi signal in a case where the quality parameter satisfies a first condition;

[0079] a first determination unit, configured to determine at least one field in the second WiFi signal as a first field according to the data state;

[0080] a second determination unit, configured to determine a target transmit power of the first field according to the data state.

[0081] In another optional example, the signal sending apparatus includes:

[0082] a breakthrough module, configured to determine that the quality parameter satisfies the first condition in a case where the signal strength is less than a signal strength threshold value and the modulation and coding level is less than a level threshold value.

[0083] In another optional example, the first WiFi signal includes a plurality of data packets, each data packet including at least one of a short training field, a long training field, a signal field and a data field, the data state including at least one of a frequency offset value of a data packet, a channel estimation result and an error vector magnitude of each field, and the first determination unit further includes:

[0084] a first determination sub-unit, configured to determine the short training field in the second WiFi signal as the first field in a case where a standard deviation of frequency offset values of N continuous data packets in the first WiFi signal is greater than a first standard deviation threshold value, N being a positive integer;

[0085] a second determination sub-unit, configured to determine the long training field in the second WiFi signal as the first field in a case where a standard deviation of channel estimation results of N continuous data packets in the first WiFi signal is greater than a second standard deviation threshold value, and a standard deviation of error vector magnitudes of data fields of the N continuous data packets is greater than a third standard deviation threshold value;

[0086] a third determination sub-unit, configured to determine the signal field in the second WiFi signal as the first field in a case where an error vector magnitude of the signal field of a data packet in the first WiFi signal is greater than a first threshold value;

[0087] a fourth determination sub-unit, configured to determine the data field in the second WiFi signal as the first field in a case where an error vector magnitude of the data field of a data packet in the first WiFi signal is greater than a second threshold value.

[0088] In another optional example, the second determination unit further includes:

[0089] The acquisition subunit is configured to acquire a first gear level of the transmission power of the first field;

[0090] The adjustment subunit is configured to adjust the transmission power of the first field to a second gear level until the data state corresponding to the first field at the second gear level meets a second condition, the second gear level being a gear level adjacent to the first gear level in the P gear levels, wherein the transmission power of the first field comprises P gear levels.

[0091] The fifth determination subunit is configured to determine the transmission power corresponding to the second gear level as the target transmission power of the first field.

[0092] The signal sending apparatus in the embodiments of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), and the like. The electronic device can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like. The embodiments of the present application are not limited in this regard.

[0093] The signal sending apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an IOS operating system, or other possible operating systems, and the embodiments of the present application are not limited in this regard.

[0094] The signal sending apparatus provided in the embodiments of the present application can implement each process implemented by the method embodiment of FIG. 1, and thus the details are not repeated here.

[0095] Optionally, as shown in FIG. 3, the embodiment of the present application further provides an electronic device 100, comprising a processor 110, a memory 119, a program or instruction stored in the memory 119 and executable on the processor 110, which, when executed by the processor 110, implements each process of the above-mentioned signal sending method embodiment and achieves the same technical effects. To avoid repetition, details are not described herein.

[0096] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0097] Please refer to FIG. 4, which is a schematic diagram of the hardware structure of an electronic device implementing the embodiment of the present application. The electronic device 100 includes but is not limited to: a radio frequency unit 121, a network module 122, an audio output unit 123, an input unit 124, a sensor 125, a display unit 126, a user input unit 127, an interface unit 128, a memory 129, and a processor 120, etc.

[0098] Those skilled in the art can understand that the electronic device 120 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 120 through a power management system, so as to realize the functions of managing charging, discharging, and power consumption management through the power management system. The electronic device structure shown in FIG. 4 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which are not described herein.

[0099] The network module 122 is configured to receive a first WiFi signal sent by a second electronic device;

[0100] The processor 120 is configured to determine a target transmission power of at least one field in a second WiFi signal according to a quality parameter of the first WiFi signal, wherein the second WiFi signal is a WiFi signal sent by the first electronic device to the second electronic device;

[0101] The radio frequency unit 121 is configured to send at least one field in the second WiFi signal at the target transmission power.

[0102] In the present application, the first WiFi signal sent by the second electronic device can be received, and the transmission power of at least one field in the second WiFi signal can be adjusted according to the quality parameter of the first WiFi signal. In this way, since the quality parameter of the signal is used to represent the communication quality of the network environment where the first electronic device is located, the transmission power of part or all fields of the signal transmitted by the first electronic device is adjusted based on the quality parameter, so that the transmission power of the signal is matched with the current network environment through the flexible adjustment of the transmission power of each field in the signal, and the first electronic device can reduce power consumption as much as possible while ensuring communication quality.

[0103] In another optional example, the processor 120 is further configured to:

[0104] In a case where the quality parameter satisfies a first condition, a data state of at least one data packet in the first WiFi signal is obtained;

[0105] At least one field in the second WiFi signal is determined as a first field according to the data state;

[0106] The target transmission power of the first field is determined according to the data state.

[0107] In another optional example, the processor 120 is further configured to:

[0108] In a case where the signal strength is less than a signal strength threshold and the modulation and coding level is less than a level threshold, it is determined that the quality parameter satisfies the first condition.

[0109] In another optional example, the first WiFi signal includes a plurality of data packets, each data packet includes at least one of a short training field, a long training field, a signal field and a data field, the data state includes at least one of a frequency offset value of a data packet, a channel estimation result and an error vector magnitude of each field, and the processor 120 is further configured to:

[0110] In a case where the standard deviation of the frequency offset values of N consecutive data packets in the first WiFi signal is greater than a first standard deviation threshold, the short training field in the second WiFi signal is determined as the first field, N being a positive integer;

[0111] In a case where the standard deviation of the channel estimation results of N consecutive data packets in the first WiFi signal is greater than a second standard deviation threshold, and the standard deviation of the error vector magnitudes of the data fields of the N consecutive data packets is greater than a third standard deviation threshold, the long training field in the second WiFi signal is determined as the first field;

[0112] determining the signal field in the second WiFi signal as the first field when the error vector magnitude of the signal field of the data packet in the first WiFi signal is greater than a first threshold value;

[0113] determining the data field in the second WiFi signal as the first field when the error vector magnitude of the data field of the data packet in the first WiFi signal is greater than a second threshold value.

[0114] In another optional example, the processor 120 is further configured to:

[0115] obtain a first gear level of the transmission power of the first field;

[0116] adjust the transmission power of the first field to a second gear level until the data state corresponding to the first field at the second gear level meets a second condition, the second gear level being a gear level adjacent to the first gear level in the P gear levels, wherein the transmission power of the first field comprises P gear levels.

[0117] determine the transmission power corresponding to the second gear level as the target transmission power of the first field.

[0118] It should be understood that in the embodiments of the present application, the input unit 124 can include a graphics processor (GPU) 1241 and a microphone 1242. The graphics processor 1241 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 126 can include a display panel 1261, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 127 includes at least one of a touch panel 1271 and other input devices 1272. The touch panel 1271 is also called a touch screen. The touch panel 1271 can include two parts of a touch detection device and a touch controller. The other input devices 1272 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, an operating lever, and the like, which will not be described here.

[0119] The memory 129 can be used to store software programs and various data. The memory 129 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 129 can include a volatile memory or a non-volatile memory, or the memory 129 can include both a volatile memory and a non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 129 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0120] The processor 120 can include one or more processing units; optionally, the processor 120 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 120.

[0121] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize each process of the above-mentioned signal sending method embodiment, and the same technical effects can be achieved, and thus details are not repeated here.

[0122] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0123] The chip provided in the embodiments of the present application includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used to run programs or instructions to realize each process of the above-mentioned signal sending method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.

[0124] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip, etc.

[0125] The embodiments of the present application provide a computer program product stored in a storage medium, which is executed by at least one processor to realize each process of the above-mentioned signal sending method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.

[0126] It should be noted that in this paper, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to the order of performing the functions as shown or discussed, but also includes performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from the described order, and various steps can be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.

[0127] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, or network equipment, etc.) execute the method described in each embodiment of the present application.

[0128] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims.

Claims

1. A method for transmitting a signal, the method being applied to a first electronic device, the method comprising: receiving a first WiFi signal transmitted by a second electronic device; determining a target transmission power of at least one field in a second WiFi signal according to a quality parameter of the first WiFi signal, wherein the second WiFi signal is a WiFi signal transmitted by the first electronic device to the second electronic device; and transmitting the at least one field in the second WiFi signal at the target transmission power. The determining of the target transmission power of the at least one field in the second WiFi signal according to the quality parameter of the first WiFi signal comprises: in a case where the quality parameter satisfies a first condition, obtaining a data state of at least one data packet in the first WiFi signal; determining the at least one field in the second WiFi signal as a first field according to the data state; and determining the target transmission power of the first field according to the data state. The quality parameter comprises a signal strength and a modulation and coding level, and the method further comprises, before the obtaining of the data state of the at least one data packet in the first WiFi signal: in a case where the signal strength is less than a signal strength threshold and the modulation and coding level is less than a level threshold, determining that the quality parameter satisfies the first condition. The first WiFi signal comprises a plurality of data packets, each data packet comprising at least one of a short training field, a long training field, a signal field and a data field, and the data state comprises at least one of a frequency offset value of a data packet, a channel estimation result and an error vector magnitude of each field. The determining of the at least one field in the second WiFi signal as the first field according to the data state comprises at least one of: in a case where a standard deviation of frequency offset values of N consecutive data packets in the first WiFi signal is greater than a first standard deviation threshold, determining a short training field in the second WiFi signal as the first field, N being a positive integer; in a case where a standard deviation of channel estimation results of N consecutive data packets in the first WiFi signal is greater than a second standard deviation threshold and a standard deviation of error vector magnitudes of data fields of the N consecutive data packets in the first WiFi signal is greater than a third standard deviation threshold, determining a long training field in the second WiFi signal as the first field; in a case where an error vector magnitude of a signal field of a data packet in the first WiFi signal is greater than a first threshold, determining a signal field in the second WiFi signal as the first field; and in a case where an error vector magnitude of a data field of a data packet in the first WiFi signal is greater than a second threshold, determining a data field in the second WiFi signal as the first field. The determining of the target transmission power of the first field according to the data state comprises: obtaining a first gear level of a current transmission power of the first field. ​ ​ ​ 2. The method of claim 1, wherein, ​ ​ ​ ​ 3. The method of claim 2, wherein, ​ ​ 4. The method of claim 2, wherein, ​ ​ ​ ​ ​ ​ 5. The method of claim 2, wherein, ​ ​ adjusting a transmission power of the first field to a second gear level until a data state corresponding to the first field at the second gear level meets a second condition, the second gear level being a previous gear level adjacent to the first gear level among P gear levels, wherein the transmission power of the first field comprises the P gear levels; determining a transmission power corresponding to the second gear level as a target transmission power of the first field.

6. A signal transmitting apparatus, comprising: a receiving module, configured to receive a first WiFi signal transmitted by a second electronic device; a determining module, configured to determine a target transmission power of at least one field in a second WiFi signal according to a quality parameter of the first WiFi signal, wherein the second WiFi signal is a WiFi signal transmitted by the first electronic device to the second electronic device; a transmitting module, configured to transmit at least one field in the second WiFi signal at the target transmission power.

7. The apparatus of claim 6, wherein, The determining module comprises: an obtaining unit, configured to obtain a data state of at least one data packet in the first WiFi signal in a case where the quality parameter meets a first condition; a first determining unit, configured to determine at least one field in the second WiFi signal as a first field according to the data state; a second determining unit, configured to determine a target transmission power of the first field according to the data state.

8. The apparatus of claim 7, wherein, The quality parameter comprises a signal strength and a modulation and coding level, and the signal transmitting apparatus comprises: a breakthrough module, configured to determine that the quality parameter meets the first condition in a case where the signal strength is less than a signal strength threshold value and the modulation and coding level is less than a level threshold value.

9. The apparatus of claim 7, wherein, The first WiFi signal comprises a plurality of data packets, each data packet comprising at least one of a short training field, a long training field, a signal field and a data field, the data state comprising at least one of a frequency offset value of a data packet, a channel estimation result and an error vector magnitude of each field, and the first determining unit further comprises: a first determining sub-unit, configured to determine the short training field in the second WiFi signal as the first field in a case where a standard deviation of frequency offset values of N continuous data packets in the first WiFi signal is greater than a first standard deviation threshold value, N being a positive integer; a second determining sub-unit, configured to determine the long training field in the second WiFi signal as the first field in a case where a standard deviation of channel estimation results of N continuous data packets in the first WiFi signal is greater than a second standard deviation threshold value, and a standard deviation of error vector magnitudes of data fields of the N continuous data packets is greater than a third standard deviation threshold value; a third determining sub-unit, configured to determine the signal field in the second WiFi signal as the first field in a case where an error vector magnitude of a signal field of a data packet in the first WiFi signal is greater than a first threshold value. The fourth determining sub-unit is configured to determine the data field in the second WiFi signal as the first field when an error vector magnitude of a data field of a data packet in the first WiFi signal is greater than a second threshold value.

10. The apparatus of claim 7, wherein, The second determining unit further includes: An obtaining sub-unit, configured to obtain a first gear level at which a transmission power of the first field currently is; An adjusting sub-unit, configured to adjust the transmission power of the first field to a second gear level until a data state corresponding to the first field at the second gear level meets a second condition, the second gear level being a gear level adjacent to the first gear level among the P gear levels, wherein the transmission power of the first field includes P gear levels; A fifth determining sub-unit, configured to determine the transmission power corresponding to the second gear level as a target transmission power of the first field. 11.An electronic device, comprising a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions being executed by the processor to implement the steps of the signal transmission method according to any one of claims 1-5. 12.A readable storage medium, the readable storage medium storing programs or instructions, the programs or instructions being executed by a processor to implement the steps of the signal transmission method according to any one of claims 1-5. 13.A computer program product, the computer program product being stored in a storage medium, the computer program product being executed by at least one processor to implement the steps of the signal transmission method according to any one of claims 1-5. 14.A chip, the chip comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being configured to run programs or instructions to implement the steps of the signal transmission method according to any one of claims 1-5. 15.An electronic device configured to implement the steps of the signal transmission method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Method and apparatus for receiving emission power related information

    CN109804676A

  • System and method extending range of a wireless network

    CN111903056A

  • Adjustment method of Wi-Fi module, intelligent device and Internet of Things system

    CN117641551A

  • Signal sending method and device and electronic equipment

    CN118354434A

  • Method and apparatus for transmitting data in wireless communication system

    US20180220456A1