Data transmission method, data transmission device, electronic equipment and medium

By controlling the data transmission behavior of the modem when the electronic device is in a screen-off state, the high power consumption problem caused by the modem and application processor not being able to sleep for a long time is solved, achieving the effect of reducing power consumption and improving network search efficiency under weak network coverage.

CN115665833BActive Publication Date: 2025-12-19VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211328682.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-12-19
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

Electronic devices experience high power consumption when the screen is off because the modem and application processor cannot sleep for extended periods, especially in areas with weak network coverage. This leads to rapid battery drain and negatively impacts the user experience.

Method used

When the electronic device is in a screen-off state and the network standard with a slow data transmission speed, the modem suspends uplink data transmission and resumes uplink data transmission in a network standard with a faster data transmission speed. At the same time, it limits the size of data packets to reduce transmission time and ensures that the air interface connection is disconnected to enter a sleep state when there is no data transmission.

Benefits of technology

By reducing the power consumption of electronic devices when the screen is off, network search efficiency is improved, ensuring users receive communication information in a timely manner, extending device battery life, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115665833B_ABST
    Figure CN115665833B_ABST
Patent Text Reader

Abstract

The application discloses a data transmission method, a data transmission device, an electronic device and a medium, and belongs to the technical field of communication. The method comprises the following steps: in the case that the electronic device is in an off-screen state and a first network mode, the modem stops transmitting uplink data; in the case that the electronic device is in the off-screen state and a second network mode, the modem transmits uplink data; and the data transmission speed of the electronic device in the first network mode is less than the data transmission speed of the electronic device in the second network mode.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of communication, and particularly relates to a data transmission method, a data transmission device, an electronic device and a medium. BACKGROUND

[0002] With the rapid development of electronic devices, electronic devices are increasingly common in user life. In the use process of electronic devices, various application programs, electronic device hardware and electronic device systems can all cause the electronic device to consume power, resulting in reduced endurance of the electronic device.

[0003] In the case that the electronic device is in an off-screen state, various application programs need to transmit a large amount of background data. In the case that the data transmission speed of the electronic device is very slow, the transmission time of the background data will be very long. During this data transmission process, the application processor and the modem cannot sleep, and the standby power consumption is very large, thereby causing the electronic device to consume up to 10% of power in one hour of off-screen standby, which seriously affects the user experience. SUMMARY

[0004] The purpose of the embodiments of the application is to provide a data transmission method, a data transmission device, an electronic device and a medium, which can solve the problem of very large power consumption of the electronic device.

[0005] In a first aspect, the embodiments of the application provide a data transmission method applied to an electronic device, wherein the electronic device comprises a modem, and the method comprises the following steps:

[0006] stopping the modem from transmitting uplink data in the case that the electronic device is in an off-screen state and a first network standard;

[0007] transmitting uplink data by the modem in the case that the electronic device is in the off-screen state and a second network standard;

[0008] the data transmission speed of the electronic device in the first network standard is less than the data transmission speed of the electronic device in the second network standard.

[0009] In a second aspect, the embodiments of the application provide a data transmission device applied to an electronic device, wherein the electronic device comprises a modem, and the device comprises the following modules:

[0010] a first transmission module, configured to stop the modem from transmitting uplink data in the case that the electronic device is in an off-screen state and a first network standard;

[0011] a second transmission module, configured to transmit uplink data by the modem in the case that the electronic device is in the off-screen state and a second network standard;

[0012] The data transmission speed of the electronic device in the first network mode is less than the data transmission speed of the electronic device in the second network mode.

[0013] In a third aspect, an electronic device is provided. The electronic device includes a processor and a memory. The memory stores programs or instructions executable by the processor. The programs or instructions, when executed by the processor, implement the steps of the method of the first aspect.

[0014] In a fourth aspect, a readable storage medium is provided. The readable storage medium stores programs or instructions. The programs or instructions, when executed by a processor, implement the steps of the method of the first aspect.

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

[0016] In a sixth aspect, a computer program product is provided. The computer program product is stored in a storage medium. The computer program product is executed by at least one processor to implement the method of the first aspect.

[0017] In the embodiments of the present application, by stopping the modem from transmitting uplink data when the electronic device is in the screen-off state and the first network mode, it is ensured that the downlink data will gradually decrease after no uplink data is transmitted, so that the network disconnects the air interface connection when detecting no data transmission, and the modem and the application processor can enter sleep, thereby achieving the purpose of power saving. At the same time, since the modem returns to the idle state from the connected state, the network searching efficiency can be greatly improved, the network searching time of the electronic device in the screen-off state is greatly reduced, the modem and the application processor can enter sleep more quickly, and the problem of high power consumption caused by the long-time sleep of the modem and the application processor is solved. At the same time, the downlink data reception is not affected, so that the user can receive communication information such as call request or instant message in time. BRIEF DESCRIPTION OF DRAWINGS

[0018] Figure 1 is a flowchart of a data transmission method provided by the embodiments of the present application;

[0019] Figure 2 is a structural schematic diagram of a data transmission device provided by the embodiments of the present application;

[0020] Figure 3 is a structural schematic diagram of an electronic device provided by the embodiments of the present application;

[0021] Figure 4 is a hardware schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0022] 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.

[0023] 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 data 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 those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually a category, 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 represents that the front and rear associated objects are in an "or" relationship.

[0024] The data transmission method, data transmission device, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail below with reference to the drawings, through specific embodiments and application scenarios.

[0025] The data transmission method can be applied to an electronic device, and can be specifically executed by hardware or software in the electronic device.

[0026] The electronic device includes, but is not limited to, a mobile phone or a tablet computer and other portable communication devices having a touch-sensitive surface (for example, a touch screen display and / or a touchpad). It should also be understood that in some embodiments, the electronic device can not be a portable communication device, but a desktop computer having a touch-sensitive surface (for example, a touch screen display and / or a touchpad).

[0027] In each of the following embodiments, an electronic device including a display and a touch-sensitive surface is described. However, it should be understood that the electronic device can include one or more other physical user interface devices such as physical keyboards, mice, and joysticks.

[0028] Figure 1 is a flowchart of a data transmission method provided by an embodiment of the present application. The data transmission method can be applied to an electronic device, and the electronic device can include a modem (Modem).

[0029] As Figure 1As shown, the data transmission method comprises steps 110 and 120.

[0030] Step 110, in the case that the electronic device is in a screen-off state and a first network standard, the modem stops transmitting uplink data.

[0031] Step 120, in the case that the electronic device is in a screen-off state and a second network standard, the modem transmits uplink data.

[0032] The data transmission speed of the electronic device in the first network standard is less than the data transmission speed of the electronic device in the second network standard.

[0033] In actual implementation, the network standard can include a second generation mobile communication technology (2G) network standard, a third generation mobile communication technology (3G) network standard, a fourth generation mobile communication technology (4G) network standard, a fifth generation mobile communication technology (5G) network standard, or other network standards, which are not limited here.

[0034] In the embodiments of the present application, the first network standard refers to a network standard with slower data transmission speed or a network standard used by the electronic device in some weak coverage scenarios. The second network standard refers to a network standard with faster data transmission speed compared to the first network standard. It can be understood that the first network standard and the second network standard are relative concepts and are not limited to a specific network standard.

[0035] In the following, the first network standard is taken as a 2G or 3G network, and the second network standard is taken as a 4G or 5G network as an example to illustrate the embodiments of the present application.

[0036] In the related art, even in areas with very good cellular signal coverage, there are still many places without 4G or 5G network signal coverage or weak coverage, such as conference rooms, underground garages, or remote mountainous areas. In these places, the data service of a 4G terminal or a 5G terminal will fall back to a 2G or 3G network, and the data transmission on the 2G or 3G network is very slow, and the transmission time is very long.

[0037] In actual scenarios, when the electronic device is in a screen-off standby state, there is a large amount of background data that needs to be transmitted uplink.

[0038] Background data generally refers to data that is automatically transmitted over the network by certain applications without opening the applications, i.e., data that does not need to be manually updated. Background data such as instant messaging messages, electronic markets, mailbox synchronization, stock quotes, or weather data, etc. The corresponding application program can automatically update the data according to the defined period or frequency when the electronic device is in the screen-off state.

[0039] Because the data transmission is very slow on the 2G or 3G network, and the transmission time is very long, the application processor (AP) and the modem cannot sleep, unlike the 4G or 5G network, which can enter sleep after quickly transmitting data. That is, the electronic device is transmitting data for a long time on the 2G or 3G network; at the same time, in order to recover the 4G or 5G service faster, the modem also needs to periodically search for the 4G or 5G network. In order not to affect the transmission speed of the 2G or 3G network, the 4G or 5G network is generally not searched in full frequency, so the network searching efficiency is relatively low, and the electronic device cannot quickly find the 4G or 5G network to recover the 4G or 5G service. The electronic device cannot quickly transmit data and sleep because it has not recovered the 4G or 5G service. Long-time data transmission and network searching of the electronic device result in high power consumption.

[0040] When the screen is off, the average current of the electronic device is very high. For example, the average current of the electronic device when it is in screen-off standby state on the 2G or 3G network reaches nearly 500 mA; and the average current of the electronic device when it is in screen-on state and uses the 5G network to play short videos is only about 500 mA. In this scenario, the electronic device consumes up to 10% of the power in one hour of screen-off standby, and the rapid power consumption will greatly affect the user's experience of using the electronic device.

[0041] In an area covered only by the 2G or 3G network, the user must rely on the 2G or 3G network to provide data services when the electronic device is in the screen-on state. However, when the user is not using the electronic device, the application of the data transmission method provided in the embodiments of the present application can greatly reduce the standby power consumption; and after moving to an area covered by the 4G or 5G network, the 4G or 5G service can be recovered faster, thereby reducing the power consumption.

[0042] In some embodiments, the application processor (AP) can immediately notify the modem when the electronic device is in the screen-off state. The modem will start a screen-off timer, and the normal transmission of uplink data is maintained during the running of the screen-off timer. The duration of the screen-off timer can be set according to actual conditions, for example, the screen-off duration can be set to 3 minutes or 5 minutes, etc., which is not limited herein.

[0043] After the length of time that the screen-off timer is timing out, it is determined whether the network mode of the electronic device.

[0044] If the electronic device is in the first network mode, i.e., after the length of time that the screen-off timer is timing out, the electronic device camps on a 2G or 3G network, the transmission of uplink data is suspended. If the electronic device is in the second network mode, i.e., after the length of time that the screen-off timer is timing out, the electronic device camps on a 4G or 5G network, the normal transmission of uplink data is maintained.

[0045] After the electronic device is turned on, the AP will immediately notify the Modem, and if the screen-off timer is still running, the Modem will immediately stop the running of the screen-off timer.

[0046] In step 110, when the electronic device enters the screen-off state, if the electronic device is in the first network mode, i.e., the Modem can only provide 2G or 3G service, at this time, the Modem actively suspends the transmission of uplink data. At the same time, a retransmission timer is started, and the running time period of the retransmission timer is a first time period, i.e., the time period between the starting time of the retransmission timer and the ending time of the running of the first time period. The first time period can be denoted as T_retransmit.

[0047] The length of time corresponding to the first time period can be set as a first length, and the first length can be set according to actual conditions, for example, it can be set as 10 minutes or 15 minutes, etc.

[0048] The first time period T_retransmit of the running of the retransmission timer is to ensure that after the uplink data is suspended for a period of time, a small window period is provided, which can have the opportunity to send some small packet data to the network, and ensure that the user receives relevant information in time. The data transmission after the retransmission timer times out will be described in subsequent embodiments.

[0049] It can be understood that, in the case that the network state and the screen state of the electronic device do not change, during the first time period T_retransmit of the running of the retransmission timer, the Modem maintains the suspension of the transmission of uplink data.

[0050] In the embodiments of the present application, the uplink data can be data transmitted from the electronic device to a network device, and the network device can be, for example, a base station.

[0051] In some embodiments, the electronic device can include an application processor.

[0052] The data transmission method further includes:

[0053] In a case where the electronic device is in a screen-off state and a first network mode, the modem receives a data packet sent by the application processor, and a size of the data packet does not exceed a second threshold.

[0054] In actual implementation, when the electronic device enters the screen-off state, if the electronic device is in the first network mode, that is, the modem can only provide 2G or 3G service, the modem can inform the application processor AP that the AP can only provide 2G or 3G service. At this time, the electronic device can limit the size of the transmitted data packet according to the characteristics of the data packet in different types of application programs, that is, the size of the transmitted data packet does not exceed a second threshold, wherein the second threshold can be set according to actual conditions.

[0055] For example, only small packet data is allowed to be transmitted. In the embodiment of the application, the AP can send a heartbeat packet of some instant software to the network. The small packet data refers to a data packet with less data field or smaller capacity. The small packet data can be designed according to actual needs, which is not limited here. For example, if the characteristics of the heartbeat packet of a certain instant chat software are determined, a corresponding filtering rule can be formulated to allow the specified heartbeat packet to be sent, and the filtering rule can include a limitation on the size of the data packet or the type of the data packet.

[0056] If the electronic device is switched from the first network mode to the second network mode, that is, the 4G or 5G service is restored, the AP can remove the transmission limit of the size of the data packet, that is, the AP can normally transmit the uplink data.

[0057] According to the data transmission method provided in the embodiment of the application, by limiting the type of the data packet transmitted by the application processor in a case where the electronic device is in a screen-off state and a first network mode, only small packet data is allowed to be transmitted, thereby avoiding the problem that the data transmission time is very long due to a large amount of transmitted data, so that the data transmission time in the first network mode can be reduced and the power consumption can be reduced.

[0058] In step 120, when the electronic device enters the screen-off state, if the electronic device is in the second network mode, that is, the modem (Modem) can provide 4G or 5G service, the modem can transmit uplink data and keep the normal transmission of the uplink data.

[0059] In some embodiments, after the modem stops transmitting the uplink data, the data transmission method further includes:

[0060] In a case where the electronic device is switched from the screen-off state to the screen-on state, the modem resumes transmitting the uplink data.

[0061] It can be understood that when the electronic device enters the screen-on state, the Modem performs the transmission of the uplink data regardless of whether the electronic device is in the first network mode or the second network mode.

[0062] If the transmission of the uplink data is suspended during the screen-off state of the electronic device, that is, the electronic device is in the first network mode, the transmission of the uplink data is resumed immediately after the screen-on. For example, after the screen-on of the electronic device, the Modem resumes the transmission of the uplink data, and if the first time period T_retransmit set by the retransmission timer is still running, the running of the first time period T_retransmit is immediately stopped. The AP can also release the transmission restriction of the data type, that is, the AP can normally transmit the uplink data.

[0063] If the transmission of the uplink data is not suspended during the screen-off state of the electronic device, that is, the electronic device is in the second network mode, the normal transmission of the uplink data can be continued after the screen-on.

[0064] Here, the screen-off state refers to a state in which the screen of the electronic device is turned off, and the screen-on state refers to a state in which the screen of the electronic device is turned on.

[0065] According to the data transmission method provided in the embodiments of the present application, under the condition that the electronic device is switched from the screen-off state to the screen-on state, the normal transmission of the uplink data can be immediately resumed or continued, and the normal use of the electronic device is not affected.

[0066] It should be noted that, in order to balance the function and power consumption, when the electronic device enters the screen-on state and is in the first network mode, although the 2G or 3G network is very slow, the data transmission function of the 2G or 3G network must still be used.

[0067] When the electronic device uses the 2G or 3G network to transmit data, the radio frequency (RF) resource is mainly used to transmit data, and the RF resource used to find the 4G or 5G network is relatively small, so the network searching efficiency is low. Even if the electronic device returns to an area covered by the 4G or 5G network, the speed of the electronic device to recover the 4G or 5G network is relatively slow.

[0068] It can be understood that the amount of uplink data transmission is large in the data transmission process. In the related art, if the transmission of the uplink data is not controlled, it is actually measured that the uplink data is sent for several hours. Therefore, under the condition that the transmission of the uplink data is controlled, the downlink data can be reduced, and then the network has the opportunity to release the air interface link.

[0069] In addition, after the uplink data transmission is suspended, the downlink data is not affected, that is, the electronic device can continue to receive the downlink data. For example, during the screen-off state of the electronic device, the instant messaging software in the electronic device can still receive instant messages sent by other terminals, and can also receive communication information such as a call or a short message.

[0070] In the embodiments of the present application, under the 2G or 3G network, the Modem suspends the uplink data transmission, and after the network releases the air interface connection, that is, the Modem is switched from the connected state to the idle state. At this time, all RF resources can be used to search for the 4G or 5G network. When the electronic device returns to the area covered by the 4G or 5G network, the speed of the electronic device to recover the 4G or 5G network will be much faster.

[0071] According to the data transmission method provided in the embodiments of the present application, by stopping the uplink data transmission when the electronic device is in the screen-off state and the first network standard, it is ensured that the downlink data will gradually decrease after there is no uplink data transmission, so that the network disconnects the air interface connection when detecting no data transmission, and the Modem and the application processor can enter sleep, thereby achieving the purpose of power saving. At the same time, since the Modem is switched from the connected state to the idle state, the network searching efficiency can be greatly improved, the network searching time of the electronic device in the screen-off state is greatly reduced, the Modem and the application processor can enter sleep more quickly, and the problem of high power consumption caused by the long-time sleep of the Modem and the application processor is solved. At the same time, the downlink data reception is not affected, so that the user can receive communication information such as a call request or instant information in time.

[0072] In some embodiments, after the Modem stops transmitting the uplink data, the data transmission method further includes:

[0073] In the case where the electronic device is switched from the first network standard to the second network standard, the Modem resumes transmitting the uplink data.

[0074] It can be understood that, in the case where the electronic device is in the screen-off state and is switched from the first network standard to the second network standard, the Modem is switched from stopping transmitting the uplink data to resuming transmitting the uplink data.

[0075] In actual execution, during the first time period in which the retransmission timer runs, the electronic device is switched from the first network standard to the second network standard, that is, during the screen-off state, when the Modem is switched from the 2G or 3G service to the 4G or 5G service, the Modem can immediately resume the transmission of the uplink data and stop the running of the retransmission timer.

[0076] For example, after the screen-off timer expires, the area where the electronic device is located is an area only covered by 2G or 3G network signals, the Modem can only provide 2G or 3G services, and the Modem will immediately suspend the transmission of uplink data and start a retransmission timer, that is, the first period T_retransmit of the retransmission timer starts running.

[0077] After a period of time, if the electronic device moves from the area covered by 2G or 3G network signals to the area covered by 4G or 5G network signals, the Modem can resume 4G or 5G services, and if the first period T_retransmit of the retransmission timer is still running, the running of the first period T_retransmit is immediately stopped, and the transmission of uplink data is immediately resumed.

[0078] According to the data transmission method provided in the embodiments of the present application, by modulating and demodulating the Modem to resume the transmission of uplink data in a case where the electronic device is switched from the first network standard to the second network standard, the data of the electronic device can be updated in time, and the data transmission can be completed as soon as possible under the second network standard, so that the application processor and the Modem can be put to sleep faster, and the purpose of reducing power consumption is achieved.

[0079] In some embodiments, after the Modem transmits the uplink data, the data transmission method further includes:

[0080] In a case where the electronic device is switched from the second network standard to the first network standard, the Modem stops transmitting the uplink data.

[0081] It can be understood that, in a case where the electronic device is in a screen-off state and is switched from the second network standard to the first network standard, the Modem changes from transmitting the uplink data to stopping transmitting the uplink data.

[0082] In actual execution, the electronic device is switched from the second network standard to the first network standard after being turned off, that is, during the screen-off period, the network service provided by the Modem (Modem) is returned from 4G or 5G service to 2G or 3G service, the Modem can actively suspend the transmission of uplink data and start a retransmission timer, that is, the first period T_retransmit of the retransmission timer starts running.

[0083] For example, after the screen-off timer expires, the area where the electronic device is located is an area covered by a 4G or 5G network signal, and the Modem can provide 4G or 5G services. At this time, the Modem will maintain the transmission of uplink data. If the electronic device moves from the area covered by the 4G or 5G network signal to an area covered by a 2G or 3G network signal, the Modem can only provide 2G or 3G services, and the Modem immediately suspends the transmission of uplink data and starts a retransmission timer, that is, the first time period T_retransmit set by the retransmission timer starts running.

[0084] According to the data transmission method provided in the embodiments of the present application, in the case where the electronic device is switched from the second network mode to the first network mode, the Modem actively suspends the transmission of uplink data within the first time period, thereby facilitating the network to release the air interface connection and improving the network searching efficiency.

[0085] In some embodiments, the data transmission method further comprises:

[0086] In the case where the signal strength of the first network mode exceeds the first threshold, the Modem transmits uplink data within a second time period, the start time of the second time period being the end time of the first time period, and the first time period being the time period during which the Modem stops transmitting uplink data;

[0087] In the case where the signal strength of the first network mode does not exceed the first threshold, the Modem stops transmitting uplink data within the second time period.

[0088] In actual execution, in the case where the duration of the stop of the transmission of uplink data exceeds the first duration corresponding to the first time period set by the retransmission timer, that is, after the first time period T_retransmit expires, the electronic device determines the signal strength in the first network mode, that is, determines whether the signal quality at this time meets the requirements.

[0089] In the case where it is determined that the signal strength corresponding to the first network mode exceeds the first threshold, the Modem resumes transmitting uplink data within a second time period. The second duration corresponding to the second time period can be set according to actual conditions, for example, the second duration can be set to 1 minute, 3 minutes or 5 minutes, and the like, which are not limited herein. The first threshold can also be set according to actual conditions, which is not limited herein. The second time period is a time period after the first time period, and the start time of the second time period can be the end time of the first time period.

[0090] After the second time period, that is, in the case where the duration of the transmission of uplink data exceeds the second duration, the Modem suspends the transmission of uplink data again and starts the retransmission timer again, that is, the first time period T_retransmit set by the retransmission timer starts running.

[0091] In the case that the signal strength corresponding to the first network standard does not exceed the first threshold, the Modem continues to suspend the transmission of the uplink data, and can start the retransmission timer again, and run the second time period set by the retransmission timer. It can be understood that the time lengths corresponding to the first time period and the second time period can be the same or different, which is not limited here.

[0092] For example, if the signal quality of the 2G or 3G network reaches the first threshold, it means that the network signal is good at this time, and the Modem is allowed to transmit uplink data in the 2G or 3G network for a period of time, for example, 1 minute. Then after 1 minute, the Modem suspends the transmission of the uplink data again, and starts the retransmission timer, that is, the first time period T_retransmit set by the retransmission timer starts running.

[0093] If the signal quality of the 2G or 3G network does not reach the threshold, it means that the network signal is poor at this time, and the Modem continues to suspend the transmission of the uplink data, and starts the retransmission timer, that is, the first time period T_retransmit set by the retransmission timer starts running.

[0094] It can be understood that the first time period in which the retransmission timer runs in the embodiment of the application can be set in advance according to the needs, that is, the retransmission timer can automatically run in the first time period each time it is started. Of course, the retransmission timer can also be started at different times, and the running time period can be set to be the same or different each time, which is not limited here.

[0095] According to the data transmission method provided in the embodiment of the application, by determining the signal strength of the first network standard, the network signal quality of the electronic device at present can be determined, and the opportunity of data transmission can be provided when the signal quality is good, and the flexibility of data transmission is further improved.

[0096] In the embodiment of the application, the data transmission speed of the electronic device is slow in the 2G or 3G network. The electronic device does not suspend the transmission of the uplink data when it is in the bright screen state, and it is difficult to transmit a slightly larger picture and file occupying the memory. The electronic device suspends the transmission of the uplink data after the screen is turned off, and does not affect the user experience. After the data transmission method provided in the embodiment of the application is adopted, the average standby current of the electronic device staying in the 2G / 3G network is reduced from about 500 mA to 40 mA, and the heating problem of the standby screen-off is effectively alleviated, and the battery life is prolonged.

[0097] The data transmission method provided in the embodiment of the application can be executed by a data transmission device. In the embodiment of the application, the data transmission device provided in the embodiment of the application is described by taking the data transmission device as an example.

[0098] The embodiment of the present application further provides a data transmission device, which can be applied to an electronic device, and the electronic device can comprise a modem.

[0099] Figure 2 FIG. 1 is a structural schematic diagram of a data transmission device provided by the embodiment of the present application.

[0100] As shown in Figure 2 the data transmission device can comprise a first transmission module 210 and a second transmission module 220.

[0101] The first transmission module 210 is configured to stop the modem from transmitting uplink data when the electronic device is in an off-screen state and a first network mode.

[0102] The second transmission module 220 is configured to make the modem transmit uplink data when the electronic device is in the off-screen state and a second network mode.

[0103] The data transmission speed of the electronic device in the first network mode is less than the data transmission speed of the electronic device in the second network mode.

[0104] According to the data transmission device provided by the embodiment of the present application, when the electronic device is in an off-screen state and a first network mode, the modem can stop transmitting uplink data, so that the downlink data is gradually reduced after no uplink data is transmitted, and thus the network disconnects the air interface connection when no data transmission is detected, and the modem and the application processor can enter sleep, thereby achieving the purpose of power saving. Meanwhile, the modem returns to the idle state from the connected state, which can greatly improve the network searching efficiency, so that the network searching time of the electronic device in the off-screen state is greatly reduced, and the modem and the application processor can enter sleep more quickly, thereby solving the problem of high power consumption caused by the long-time sleep of the modem and the application processor. Meanwhile, the downlink data reception is not affected, so that the user can receive the communication information such as call request or instant message in time.

[0105] In some embodiments, the device further comprises:

[0106] The third transmission module is configured to make the modem transmit uplink data in a second time period when the signal strength of the first network mode exceeds a first threshold, wherein the start time of the second time period is the end time of a first time period, and the first time period is a time period during which the modem stops transmitting uplink data.

[0107] The fourth transmission module is configured to make the modem stop transmitting uplink data in the second time period when the signal strength of the first network mode does not exceed the first threshold.

[0108] In some embodiments, the apparatus further includes:

[0109] a fifth transmission module, configured to resume transmission of uplink data by the modem when the electronic device is switched from the first network mode to the second network mode.

[0110] In some embodiments, the apparatus further includes:

[0111] a sixth transmission module, configured to resume transmission of uplink data by the modem when the electronic device is switched from the screen-off state to the screen-on state.

[0112] In some embodiments, the apparatus further includes:

[0113] a seventh transmission module, configured to stop transmission of uplink data by the modem when the electronic device is switched from the second network mode to the first network mode.

[0114] In some embodiments, the electronic device includes an application processor, and the apparatus further includes:

[0115] an eighth transmission module, configured to receive, by the modem, a data packet sent by the application processor when the electronic device is in the screen-off state and the first network mode, the data packet having a size not exceeding a second threshold.

[0116] The data transmission apparatus in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device than a 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, or 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, and the embodiments of the present application are not limited in this regard.

[0117] The data transmission apparatus in the embodiments of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not limited in the embodiments of the present application.

[0118] The data transmission apparatus provided in the embodiments of the present application can realize Figure 1 The processes realized by the method embodiments are not repeated here to avoid repetition.

[0119] Optionally, as Figure 3 shown, the embodiments of the present application further provide an electronic device 300, which includes a processor 301, a memory 302, a program or instruction stored in the memory 302 and executable on the processor 301. When the program or instruction is executed by the processor 301, each process of the above-mentioned data transmission method embodiments is realized, and the same technical effects can be achieved. To avoid repetition, the processes are not repeated here.

[0120] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.

[0121] Figure 4 To implement the hardware structure of an electronic device in the embodiments of the present application.

[0122] The electronic device 400 includes but is not limited to a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, and the like.

[0123] Those skilled in the art can understand that the electronic device 400 can further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 410 through a power management system, so as to realize the functions of power management, such as charging, discharging, and power consumption management, through the power management system. Figure 4 The electronic device structure shown in the embodiments of the present application does not constitute a limitation on the electronic device. The electronic device can include more or fewer components than those shown in the figure, or combine certain components, or have different arrangement of components, which are not repeated here.

[0124] The processor 410 is configured to stop the modem from transmitting uplink data when the electronic device is in an off-screen state and a first network mode.

[0125] The processor 410 is further configured to make the modem transmit uplink data when the electronic device is in the off-screen state and a second network mode.

[0126] The data transmission speed of the electronic device in the first network mode is less than the data transmission speed of the electronic device in the second network mode.

[0127] According to the electronic device provided in the embodiments of the present application, when the electronic device is in the screen-off state and the first network mode, the modem can stop transmitting uplink data, so that the downlink data gradually decreases after no uplink data is transmitted, and the network disconnects the air interface connection when detecting no data transmission, so that the modem and the application processor can enter sleep, thereby achieving the purpose of saving power. Meanwhile, the modem returns to the idle state from the connected state, which can greatly improve the network searching efficiency, so that the network searching time of the electronic device in the screen-off state is greatly reduced, and the modem and the application processor can enter sleep more quickly, thereby solving the problem of high power consumption caused by long-time sleep of the modem and the application processor. Meanwhile, the downlink data reception is not affected, so that the user can receive communication information such as call request or instant message in time.

[0128] Optionally, the processor 410 is further configured to make the modem resume transmitting uplink data when the electronic device is switched from the first network mode to the second network mode.

[0129] Optionally, the processor 410 is further configured to make the modem resume transmitting uplink data when the electronic device is switched from the screen-off state to the screen-on state.

[0130] Optionally, the processor 410 is further configured to make the modem stop transmitting uplink data when the electronic device is switched from the second network mode to the first network mode.

[0131] Optionally, the processor 410 is further configured to make the modem transmit uplink data in a second time period when the signal strength of the first network mode exceeds a first threshold, wherein the start time of the second time period is the end time of a first time period, and the first time period is a time period during which the modem stops transmitting uplink data.

[0132] The processor 410 is further configured to make the modem stop transmitting uplink data in the second time period when the signal strength of the first network mode does not exceed the first threshold.

[0133] Optionally, the electronic device includes an application processor, and the processor 410 is further configured to make the modem receive a data packet sent by the application processor when the electronic device is in the screen-off state and the first network mode, and the size of the data packet does not exceed a second threshold.

[0134] It should be understood that in the embodiments of the present application, the input unit 404 can include a graphics processing unit (GPU) 4041 and a microphone 4042. The graphics processing unit 4041 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 406 can include a display panel 4061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 407 includes at least one of a touch panel 4071 and other input devices 4072. The touch panel 4071 is also referred to as a touch screen. The touch panel 4071 can include two parts of a touch detection device and a touch controller. The other input devices 4072 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, a joystick, and the like, which will not be described here.

[0135] The memory 409 can be used to store software programs and various data. The memory 409 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 409 can include a volatile memory or a non-volatile memory, or the memory 409 can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link DRAM (SLDRAM), and a direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 409 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0136] The processor 410 can include one or more processing units; optionally, the processor 410 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 a wireless communication signal, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 410.

[0137] The embodiment of the present application further provides a readable storage medium, wherein a program or instruction is stored on the readable storage medium, the program or instruction is executed by a processor to realize each process of the above-mentioned data transmission method embodiment, and the same technical effects can be achieved, and details are not described herein again to avoid repetition.

[0138] The processor is the processor in the electronic device in the above-mentioned embodiment. 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, and the like.

[0139] The embodiment of the present application further provides a chip, wherein the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used to run a program or instruction to realize each process of the above-mentioned data transmission method embodiment, and the same technical effects can be achieved, and details are not described herein again to avoid repetition.

[0140] It should be understood that the chip mentioned in the embodiment 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, and the like.

[0141] It should be noted that in this document, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles, or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or include elements inherent to such processes, methods, articles, or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of additional identical elements 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, and can also include 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.

[0142] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, 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 in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.

[0143] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A data transmission method applied to an electronic device, the electronic device comprising a modem, characterized in that, The method comprises: In the case that the electronic device is in a screen-off state and a first network mode, the modem stops transmitting uplink data; In the case that the electronic device is in the screen-off state and a second network mode, the modem transmits uplink data; The data transmission speed of the electronic device in the first network mode is less than the data transmission speed of the electronic device in the second network mode; The case that the electronic device is in a screen-off state and a first network mode, the modem stops transmitting uplink data, comprises: After the time length timed by the screen-off timer expires, the network mode of the electronic device is determined; In the case that the electronic device is in the first network mode, the modem stops transmitting uplink data.

2. The data transmission method of claim 1, wherein, After the modem stops transmitting uplink data, the method further comprises: In the case that the electronic device switches from the first network mode to the second network mode, the modem resumes transmitting uplink data.

3. The data transmission method of claim 1, wherein, After the modem stops transmitting uplink data, the method further comprises: In the case that the electronic device switches from the screen-off state to the screen-on state, the modem resumes transmitting uplink data.

4. The data transmission method of claim 1, wherein, After the modem transmits uplink data, the method further comprises: In the case that the electronic device switches from the second network mode to the first network mode, the modem stops transmitting uplink data.

5. The data transmission method according to any one of claims 1-4, characterized in that, The method further comprises: In the case that the signal strength of the first network mode exceeds a first threshold value, the modem transmits uplink data within a second time period, the start time of the second time period being the end time of a first time period, and the first time period being the time period during which the modem stops transmitting uplink data; In the case that the signal strength of the first network mode does not exceed the first threshold value, the modem stops transmitting uplink data within the second time period.

6. The data transmission method according to any one of claims 1 to 4, characterized in that, The electronic device comprises an application processor, and the method further comprises: In the case that the electronic device is in the screen-off state and the first network mode, the modem receives a data packet sent by the application processor, and the size of the data packet does not exceed a second threshold value.

7. A data transmission apparatus applied to an electronic device, the electronic device comprising a modem, characterized in that, The device comprises: A first transmission module configured to, in the case that the electronic device is in a screen-off state and a first network mode, stop the modem from transmitting uplink data; A second transmission module configured to, in the case that the electronic device is in the screen-off state and a second network mode, make the modem transmit uplink data; The data transmission speed of the electronic device in the first network mode is less than the data transmission speed of the electronic device in the second network mode; The first transmission module is configured to, after the time length timed by the screen-off timer expires, determine the network mode of the electronic device; and in the case that the electronic device is in the first network mode, stop the modem from transmitting uplink data.

8. The data transmission apparatus according to claim 7, wherein The device further comprises: a third transmission module, configured to cause the modem to transmit uplink data in a second time period if the signal strength of the first network standard exceeds a first threshold, wherein a start time of the second time period is an end time of a first time period, and the first time period is a time period during which the modem stops transmitting uplink data; a fourth transmission module, configured to cause the modem to stop transmitting uplink data in the second time period if the signal strength of the first network standard does not exceed the first threshold.

9. 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 data transmission method according to any one of claims 1-6.

10. A readable storage medium, characterized by, programs or instructions stored on the readable storage medium, the programs or instructions being executed by the processor to implement the steps of the data transmission method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Network standard switching method, terminal, and computer-readable storage medium

    CN109257785A

  • Network connection processing method, related equipment and computer storage medium

    CN114650588A