Wireless frame processing method, terminal and storage medium
By obtaining the terminal power supply capability information and determining the transmission parameters of the wireless frame, the problem of wireless frame transmission caused by insufficient power supply is solved, and stable transmission and cost reduction are achieved.
Patent Information
- Application Number
- CN202110272229.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-12
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2041-03-12
AI Technical Summary
When the terminal's power supply capacity is insufficient, it cannot send wireless frames normally, resulting in unstable operation and increased costs.
By obtaining the current power supply capability information of the terminal, the transmission parameters of the wireless frame, such as frame length and frame interval, are determined to meet the instantaneous energy demand of the power supply and ensure the normal transmission of the wireless frame.
This reduces terminal costs without increasing circuit design, improving operating stability and product competitiveness.
Smart Images

Figure CN115086901B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a wireless frame processing method, terminal, and storage medium. Background Art
[0002] Terminals (such as IoT terminals) can transmit data by sending wireless frames. When a terminal sends wireless frames, it requires a large amount of instantaneous power, which places high demands on the terminal's instantaneous power supply capability. Factors such as a decrease in battery power within the terminal or a significant temperature impact on the terminal may cause the terminal's instantaneous power supply capability to decrease, resulting in the terminal being unable to send wireless frames normally. The terminal is therefore unable to send data normally, seriously affecting the normal operation of the terminal. In order for the terminal to be able to send wireless frames normally in the above circumstances, additional design of the terminal circuit is often required, which greatly increases the cost of the terminal.
[0003] Therefore, it is of great significance to improve the working stability of the terminal and reduce the cost of the terminal. Summary of the Invention
[0004] The main technical problem solved by the present invention is to provide a wireless frame processing method, a terminal, and a storage medium, which can realize the normal transmission of wireless frames according to the power supply capacity information of the current power supply. The first aspect of the present application provides a wireless frame processing method, which includes: obtaining the current power supply capacity information of the terminal; and determining the transmission parameters of the wireless frame of the terminal based on the current power supply capacity information, so that when the terminal sends the wireless frame according to the transmission parameters, the power supply capacity of the current power supply can meet the instantaneous energy demand of the wireless transmission.
[0005] A second aspect of the present application provides a terminal comprising a power supply, an acquisition circuit, and an adjustment circuit. The acquisition circuit is configured to acquire information about the current power supply capability of the terminal; the adjustment circuit is configured to determine transmission parameters for wireless frames of the terminal based on the current power supply capability information, so that when the terminal transmits wireless frames according to the transmission parameters, the current power supply capability can meet the instantaneous energy demand of wireless transmission.
[0006] A third aspect of the present application provides a terminal, which includes a memory and a processor coupled to each other, and the processor is used to execute program instructions stored in the memory to implement the wireless frame processing method described in the first aspect above.
[0007] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program that can be executed by a processor, and the computer program is used for the wireless frame processing method described in the first aspect above.
[0008] Compared with the existing technology, the beneficial effect of the present application is: by obtaining the current power supply capacity information of the terminal and using it to determine the sending parameters of the terminal's wireless frame, when the terminal sends the wireless frame according to the sending parameters, the current power supply capacity can meet the instantaneous energy demand of the wireless transmission, thereby realizing the normal transmission of the wireless frame without the need for additional circuit design, reducing the cost of the terminal and improving the competitiveness of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0010] Figure 1 This is a flow chart of an embodiment of the wireless frame processing method of the present application;
[0011] Figure 2 This is a first flow chart of another embodiment of the wireless frame processing method of the present application;
[0012] Figure 3 This is a second flow chart of another embodiment of the wireless frame processing method of the present application;
[0013] Figure 4 This is a schematic diagram of a framework of an embodiment of the terminal of the present application;
[0014] Figure 5 This is a schematic diagram of the framework of an embodiment of the electronic device of the present application;
[0015] Figure 6 It is a schematic diagram of a framework of an embodiment of a computer-readable storage device of the present application. DETAILED DESCRIPTION
[0016] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0017] See Figure 1 , Figure 1 It is a flowchart of an embodiment of the wireless frame processing method of the present application.
[0018] Specifically, the wireless frame processing method of the present application includes the following steps:
[0019] Step S11: Acquire the current power supply capability information of the terminal.
[0020] The terminal implementing the communication control method of the present application is, for example, a wireless communication device. The wireless communication device can be an Internet of Things terminal, such as a temperature sensor, a humidity sensor, or an air pressure sensor. The wireless communication device can also be a smart wearable product, such as a smart watch or a smart bracelet. The wireless communication device can also be a wireless walkie-talkie, a mobile phone, etc.
[0021] The current power supply capability information of the terminal may include the maximum current that the power supply can currently provide, the amount of electrical energy currently stored in the power supply, or the charging time of the power supply, etc. It can be understood that factors related to the power output of the power supply are all part of the current power supply capability information.
[0022] When there are multiple power sources, the current power supply capability information may be information about the current power supply capabilities of these multiple power sources. For example, when a terminal has two power sources, the current power supply capability information may be information about the current power supply capabilities of these two power sources. It is understood that when a terminal has multiple power sources, one of the power sources may be set as the primary power source to power the terminal when transmitting radio frames, and the remaining power sources may be set as backup power sources. When the primary power source is low or out of power, the backup power source charges the primary power source, or the backup power source and the primary power source are used together to power the terminal when transmitting radio frames. In one specific implementation scenario, the primary power source is a capacitor used to power the terminal when transmitting radio frames, and the backup power source is a discharge power source used to charge the capacitor. In another specific implementation scenario, both the primary power source and the backup power source are discharge power sources. When the primary power source is low, the primary power source and the backup power source are used together to power the terminal when transmitting radio frames.
[0023] Step S12: determining the terminal's wireless frame transmission parameters based on the current power supply capability information, so that when the terminal sends wireless frames based on the transmission parameters, the current power supply capability can meet the instantaneous energy demand of wireless transmission.
[0024] After obtaining information about the terminal's current power supply capability, the terminal's radio frame transmission parameters can be determined based on the power supply status. These radio frame transmission parameters include, for example, the frame length and / or interframe interval. The frame length refers to the length of a single radio frame, such as 100 milliseconds. The interframe interval is the interval between two radio frame transmissions. For example, if the first radio frame is transmitted at the current moment and the second radio frame is transmitted 3 seconds later, the interframe interval is 3 seconds.
[0025] The terminal's wireless frame transmission parameters are determined based on the current power supply capability information. For example, the frame length of the wireless frame that can be sent can be determined based on the current power stored in the power supply, or the shortest frame interval of the wireless frame that can be sent can be determined based on the charging time of the power supply.
[0026] By obtaining the current power supply capacity information of the terminal and using it to determine the terminal's wireless frame transmission parameters, when the terminal sends wireless frames according to the transmission parameters, the current power supply capacity can meet the instantaneous energy demand of wireless transmission, thereby achieving normal transmission of wireless frames without the need for additional circuit design, reducing terminal costs and improving product competitiveness.
[0027] The following is another embodiment of the wireless frame processing method of the present application. Specifically, the embodiment includes the following steps S21-S22.
[0028] Step S21: Acquire the current power supply capability information of the terminal.
[0029] Please refer to the above step S11, which will not be described again here.
[0030] In one embodiment, the power supply includes an energy storage element, such as a capacitor. The energy storage element can store electrical energy and is used to provide power when the terminal transmits radio frames. This provides a transient high current to the terminal, meeting the terminal's power needs and enabling normal radio frame transmission. In some embodiments, the energy storage element can also be an inductor.
[0031] The current power supply capability information may include the energy storage status and / or charging time of the energy storage element, such as the energy storage status and / or charging time of a capacitor. The energy storage status refers to the amount of energy stored in the energy storage element, and the charging time refers to the time required for the energy storage element to be fully charged from 0 stored energy.
[0032] In one embodiment, the power supply also includes a discharge power supply, such as a low self-discharge battery, specifically a low self-discharge nickel-metal hydride battery. The discharge power supply can charge the energy storage element so that the energy storage element can provide the instantaneous large current required when the terminal sends a wireless frame. Specifically, the charging time for the discharge power supply to charge the energy storage element can be determined based on the remaining power of the discharge power supply. The remaining power of the discharge power supply can be used to estimate the remaining power of the battery based on information such as the battery voltage, the ammeter, and the working time of the device. The charging time of the energy storage element is calculated based on the specific type of energy storage element. For example, when the energy storage element is a capacitor, it can be calculated using the charging calculation method of the capacitor. When the energy storage element is an inductor, it can be calculated using the energy storage formula of the inductor.
[0033] Step S22: Determine the terminal's wireless frame transmission parameters based on the current power supply capability information.
[0034] Please refer to the above step S12, which will not be repeated here.
[0035] In one embodiment, the frame length of the wireless frame can be determined based on the power storage status of the energy storage element, that is, the frame length of the wireless frame can be determined based on the amount of electrical energy stored in the energy storage element. Because the energy storage element is used to provide electrical energy for the terminal to send wireless frames, the amount of electrical energy stored in the energy storage element determines the maximum time the terminal can operate when transmitting a wireless frame, which in turn determines the frame length of the wireless frame transmitted by the terminal. For example, when the electrical energy stored in the energy storage element can only allow the terminal to maintain the transmission state for 400 milliseconds, the frame length of the wireless frame can be determined to be no more than 400 milliseconds, for example, 380 milliseconds.
[0036] In one embodiment, the energy storage status of the energy storage element is determined based on the current ambient temperature of the terminal. The current ambient temperature of the terminal can be obtained by a temperature sensor built into the terminal. Because the energy storage element's ability to store electrical energy is affected by temperature, the energy storage status of the energy storage element can be determined based on the current ambient temperature of the terminal. For example, if the energy storage element is a capacitor, the capacitance of the capacitor at a certain temperature can be obtained based on a curve showing the change in capacitance with temperature, thereby determining the capacitor's energy storage status.
[0037] In this way, the frame length of the wireless frame is determined according to the power storage condition of the energy storage element, so that the terminal can successfully send a wireless frame without failing to send the wireless frame due to lack of power.
[0038] See also Figure 2 , Figure 2 2 is a first flow chart of another embodiment of the wireless frame processing method of the present application. Specifically, the above-mentioned determination of the frame length of the wireless frame according to the power storage condition of the energy storage element includes the following steps S221 and S222.
[0039] Step S221: obtaining the frame length required for the data to be sent, and obtaining the maximum frame length that can be sent using the electric energy stored in the energy storage element.
[0040] When a terminal needs to send data, it can obtain the amount of data to be sent and determine the required frame length for the data to be sent based on the amount of data. For example, if the amount of data to be sent is 58B, the frame length of the wireless frame required to send 58B of data can be determined accordingly, such as 400 milliseconds.
[0041] The maximum frame length that can be sent using the energy stored in the energy storage element can be understood as the maximum duration that the energy stored in the energy storage element can keep the terminal in the transmitting state. This is also the maximum frame length that the terminal can send. For example, if a capacitor stores 45 mA of energy, which can keep the terminal in the transmitting state for 400 milliseconds, the maximum frame length that can be sent using the energy stored in the energy storage element is 400 milliseconds.
[0042] Step S222: If the frame length required by the data to be sent is greater than the maximum frame length, the data to be sent is divided into at least two radio frames for transmission, wherein the frame lengths of the at least two radio frames are both less than the maximum frame length.
[0043] When the frame length required for the data to be sent is greater than the maximum frame length that can be sent by the electrical energy stored in the energy storage element, it means that the terminal cannot send all the data to be sent by sending one wireless frame. If the energy storage element is exhausted during the sending process, the wireless frame transmission will fail, affecting the normal operation of the terminal. Therefore, at this time, the data to be sent can be divided into at least two wireless frames for transmission, and the frame length of each frame in the at least two wireless frames is set to be less than the maximum frame length that can be sent by the electrical energy stored in the energy storage element, so that the terminal can send data normally and the terminal can work normally. In a specific implementation scenario, the data to be sent can be divided into two wireless frames for transmission, and the frame length of each wireless frame is less than the maximum frame length.
[0044] In some embodiments, the terminal may also divide the data to be sent into 3 radio frames or 4 radio frames for transmission.
[0045] By dividing the data to be sent into at least two wireless frames (frame length is less than the maximum frame length) to send the data, the terminal can determine the frame length of the wireless frame according to the energy storage condition of the energy storage element, and ultimately the terminal can send data normally.
[0046] In one embodiment, the interframe interval of wireless frames can be determined based on the charging time of the energy storage element. Once the stored energy in the energy storage element is consumed, it must be fully charged before it can provide power to the terminal again. Therefore, the interframe interval of wireless frames can be determined based on the charging time of the energy storage element. In one embodiment, if the charging time of the energy storage element is 1.5 seconds, the interframe interval of wireless frames can be set to no less than 1.5 seconds.
[0047] In this way, by determining the frame interval of the wireless frame according to the charging time of the energy storage element, the energy storage element can be fully charged each time the terminal sends a wireless frame, and can provide power for the terminal to send the wireless frame, so that the terminal can send the wireless frame normally and operate normally.
[0048] See also Figure 3 , Figure 32 is a second flow chart of another embodiment of the wireless frame processing method of the present application. Specifically, the above-mentioned determination of the frame interval of the wireless frame according to the charging time of the energy storage element includes the following steps S223 to S225.
[0049] Step S223: Determine whether the current frame interval is less than the charging time.
[0050] The terminal can obtain the current frame interval and determine whether the current frame interval is less than the charging time. For example, if the current frame interval is 2 seconds and the charging time is 3 seconds, the frame interval is less than the charging time.
[0051] If the current frame interval is less than the charging time, step S224 is executed; if the current frame interval is not less than the charging time, step S225 is executed.
[0052] Step S224: setting the current frame interval to be no less than the charging duration.
[0053] If the current interframe interval is less than the charging duration, this means that the energy storage element is not fully charged when the terminal sends the second wireless frame. If the frame length of the second wireless frame is too long, the second wireless frame may fail to be sent. Therefore, the current interframe interval can be set to be no less than the charging duration. This ensures that the energy storage element is fully charged when the terminal sends the second wireless frame, allowing the terminal to send the second wireless frame normally.
[0054] Step S225: Do not adjust the current frame interval.
[0055] If the current frame interval is not less than the charging duration, it means that the terminal can send wireless frames normally at this time, so no adjustment is required.
[0056] The above solution obtains the current power supply capability information of the terminal and uses it to determine the transmission parameters of the terminal's wireless frame, so that the current power supply capability information can realize the normal transmission of the wireless frame without the need for additional circuit design, thereby reducing the cost of the terminal and improving the competitiveness of the product.
[0057] In one embodiment, it is also possible to determine whether to execute the step of obtaining the current power supply capability information of the terminal and the subsequent steps based on the current ambient temperature or the remaining power of the discharge power supply. In a specific implementation scenario, the step of obtaining the current power supply capability information of the terminal can be executed when the current ambient temperature is not greater than the preset temperature. The preset temperature is, for example, a certain temperature, such as 10 degrees Celsius, 5 degrees Celsius, and so on. When the energy storage element is a capacitor, the preset value can also be the temperature value corresponding to the actual capacitance of the capacitor being a preset proportion of the nominal capacitance. The preset proportion is, for example, two-thirds, one-half, and so on. In another specific implementation scenario, the step of obtaining the current power supply capability information of the terminal can be executed when the remaining power of the discharge power supply is less than the preset power value. The preset power is, for example, half, one-third, and so on of the nominal capacity of the discharge power supply.
[0058] In this way, by determining the specific conditions for obtaining the current power supply capability information of the terminal, when the conditions are not met, the current power supply capability information of the terminal and its subsequent steps will not be obtained, thereby reducing the energy consumption of the terminal and improving the battery life of the terminal.
[0059] See Figure 4 , Figure 4 This is a schematic diagram of the framework of an embodiment of a terminal of the present application. Terminal 40 includes a power supply 41, an acquisition circuit 42, and an adjustment circuit 43. Acquisition circuit 42 is used to obtain the current power supply status of power supply 41 of terminal 40. Adjustment circuit 43 is used to determine the transmission parameters of wireless frames of terminal 40 based on the current power supply status of power supply 41, so that when terminal 40 transmits wireless frames according to the transmission parameters, the current power supply capacity can meet the instantaneous energy requirements of wireless transmission.
[0060] The transmission parameters of the above-mentioned radio frames include the frame length and / or frame interval of the radio frames.
[0061] The power supply 41 includes an energy storage element. The current power supply capability information includes the energy storage element's power storage status and / or charging duration. The adjustment circuit 43 is further configured to implement at least one of the following steps: determining a wireless frame length based on the energy storage element's power storage status; and determining a wireless frame interval based on the energy storage element's charging duration.
[0062] The power storage condition of the energy storage element is determined according to the current ambient temperature of the terminal 40 .
[0063] Among them, the adjustment circuit 43 is also used to obtain the frame length required for the data to be sent, and to obtain the maximum frame length that can be sent using the electrical energy stored in the energy storage element; when the frame length required for the data to be sent is greater than the maximum frame length, the adjustment circuit is used to divide the data to be sent into at least two wireless frames for transmission, wherein the frame length of any wireless frame after the split is less than the maximum frame length.
[0064] The adjustment circuit 43 is further configured to determine whether the current frame interval is less than the charging duration; if so, the adjustment circuit is configured to set the current frame interval to be no less than the charging duration.
[0065] The power supply 41 also includes a discharge power supply. The acquisition circuit 42 is also used to determine the charging time of the discharge power supply to charge the energy storage element according to the remaining power of the discharge power supply of the terminal 40.
[0066] The terminal 40 further includes a determination circuit. The determination circuit is used to determine whether the current ambient temperature is not greater than a preset temperature. If so, the acquisition circuit 42 acquires the current power supply capability information of the terminal 40; and / or the determination circuit is used to determine whether the remaining power of the discharged power supply is less than a preset power value. If so, the acquisition circuit 42 acquires the current power supply capability information of the terminal 40. Figure 5 , Figure 5 is a schematic diagram of a framework of an embodiment of an electronic device of the present application. The electronic device 50 includes a memory 51 and a processor 52 coupled to each other. The processor 52 is configured to execute program instructions stored in the memory 51 to implement the steps of any of the above-described radio frame processing method embodiments. In a specific implementation scenario, the electronic device 50 may include, but is not limited to, a microcomputer and a server. Furthermore, the electronic device 50 may also include a mobile device such as a laptop computer or a tablet computer, which is not limited herein.
[0067] Specifically, the processor 52 is used to control itself and the memory 51 to implement the steps of any of the above-mentioned communication control method embodiments. The processor 52 can also be called a CPU (Central Processing Unit). The processor 52 may be an integrated circuit chip with signal processing capabilities. The processor 52 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 52 can be implemented by an integrated circuit chip.
[0068] See also Figure 6 , Figure 6 The storage device 60 stores a computer program 61, which, when executed by a processor, can implement the steps of the communication control method in any of the above embodiments.
[0069] The computer-readable storage medium storage device may specifically be a medium that can store computer programs, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the computer program. The server may send the stored computer program to other devices for execution, or may also execute the stored computer program itself.
[0070] The above solution obtains the current power supply capacity information of the terminal and uses it to determine the transmission parameters of the terminal's wireless frame. When the terminal sends the wireless frame according to the transmission parameters, the current power supply capacity can meet the instantaneous energy demand of the wireless transmission, thereby realizing the normal transmission of the wireless frame without the need for additional circuit design, reducing the cost of the terminal and improving the competitiveness of the product.
[0071] The above is only an implementation method of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A wireless frame processing method, characterized in that: include: When the current ambient temperature is not greater than a preset temperature and the remaining power of the terminal's discharge power supply is less than a preset power value, obtaining current power supply capability information of the terminal; The current power supply capability information includes the power storage status and / or charging duration of the energy storage element of the terminal, the discharge power supply is used to charge the energy storage element, and the energy storage element is used to supply power when the terminal transmits wireless frames, and the charging duration is determined according to the remaining power of the discharge power supply of the terminal; Based on the current power supply capacity information, the sending parameters of the wireless frame of the terminal are determined so that when the terminal sends the wireless frame according to the sending parameters, the power supply capacity of the current power supply can meet the instantaneous energy demand of the wireless transmission; wherein, the sending parameters of the wireless frame include the frame length and / or frame interval of the wireless frame, the frame length of the wireless frame is determined based on the power storage condition of the energy storage element, and the frame interval is determined based on the charging time of the energy storage element.
2. The method according to claim 1, characterized in that The power storage condition of the energy storage element is determined according to the current ambient temperature of the terminal.
3. The method according to claim 1, characterized in that Determining the frame length of the wireless frame according to the power storage condition of the energy storage element includes: Obtaining a frame length required for data to be sent, and obtaining a maximum frame length that can be sent using the electrical energy stored in the energy storage element; If the frame length required for the data to be sent is greater than the maximum frame length, the data to be sent is divided into at least two radio frames for transmission, wherein the frame length of any split radio frame is less than the maximum frame length.
4. The method according to claim 1, wherein Determining the frame interval of the wireless frame according to the charging time of the energy storage element includes: Determine whether the current frame interval is less than the charging time; If so, the current frame interval is set to be no less than the charging duration.
5. The method according to claim 1, wherein The preset temperature is a fixed temperature value, or a temperature value corresponding to when the actual capacitance of the energy storage element is a preset ratio of the nominal capacitance; The preset power is half or one third of the nominal capacity of the discharge power supply.
6. The method according to claim 5, characterized in that The preset ratio is two-thirds or one-half.
7. A terminal, characterized in that: include: power supply; An acquisition circuit is used to obtain the current power supply capability information of the terminal when the current ambient temperature is not greater than a preset temperature and the remaining power of the terminal's discharge power supply is less than a preset power value; the current power supply capability information includes the power storage condition and / or charging time of the terminal's energy storage element, the discharge power supply is used to charge the energy storage element, and the energy storage element is used to supply power when the terminal transmits a wireless frame, and the charging time is determined according to the remaining power of the terminal's discharge power supply; an adjustment circuit is used to determine the sending parameters of the terminal's wireless frame according to the current power supply capability information, so that when the terminal sends the wireless frame according to the sending parameters, the power supply capability of the current power supply can meet the instantaneous energy demand of the wireless transmission; wherein the sending parameters of the wireless frame include the frame length and / or frame interval of the wireless frame, the frame length of the wireless frame is determined based on the power storage condition of the energy storage element, and the frame interval is determined based on the charging time of the energy storage element.
8. An electronic device, characterized in that: It comprises a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the wireless frame processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the wireless frame processing method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Device and method for sensing electric quantity of battery of portable electronic device
CN101567476A
Computable RFID uplink communication link optimization method
CN107704791A
Wireless station and a transmission method in a wireless local area network
CN1618054A