CN115276888A - Method, device, terminal and storage medium for determining data transmission rate - Google Patents

Method, device, terminal and storage medium for determining data transmission rate Download PDF

Info

Publication number
CN115276888A
CN115276888A CN202110477466.0A CN202110477466A CN115276888A CN 115276888 A CN115276888 A CN 115276888A CN 202110477466 A CN202110477466 A CN 202110477466A CN 115276888 A CN115276888 A CN 115276888A
Authority
CN
China
Prior art keywords
data transmission
determining
transmission rate
antenna
communication state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110477466.0A
Other languages
Chinese (zh)
Inventor
霍文甲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110477466.0A priority Critical patent/CN115276888A/en
Publication of CN115276888A publication Critical patent/CN115276888A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0002Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate

Landscapes

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

Abstract

The application relates to a method, a device, a terminal and a storage medium for determining data transmission rate. The method for determining the data transmission rate comprises the following steps: acquiring a communication state of a terminal; and determining a target data transmission rate of the camera module according to the communication state. In the method, the data transmission rate (MIPI rate) of the camera module is determined according to the communication state of the terminal, so that the interference of the current communication state on the data transmission rate of the camera module is avoided, the stability of the camera module is improved, the normal work of the camera module is better ensured, and the use experience of a user is improved.

Description

Method, device, terminal and storage medium for determining data transmission rate
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for determining a data transmission rate.
Background
At present, more and more antenna types are set in terminals such as mobile phones and the like so as to be used in wifi, bluetooth, 4G and 5G communication scenes. Because the internal space of the terminal is limited, and the camera module occupies a larger space, the radio frequency rate of part of the antennas can influence the data transmission rate of the camera module, so that the camera module cannot work normally.
Disclosure of Invention
To overcome the problems in the related art, the present application provides a method, an apparatus, a terminal and a storage medium for determining a data transmission rate.
According to a first aspect of embodiments of the present application, there is provided a method for determining a data transmission rate, which is applied to a terminal having a camera module, the method including:
acquiring the communication state of the terminal;
and determining a target data transmission rate of the camera module according to the communication state.
Optionally, the obtaining the current communication state of the terminal includes:
and acquiring the communication state of the terminal in the use process of the camera module.
Optionally, the determining a target data transmission rate according to the current communication state includes:
and determining that the communication state of the terminal is switched from a first communication state to a second communication state, and determining the data transmission rate corresponding to the second communication state as the target data transmission rate.
Optionally, before determining the data transmission rate corresponding to the second communication state as the target data transmission rate, the method further includes:
and determining that the second communication state is kept for a preset time.
Optionally, the communication status comprises at least one of: network type for communication, antenna for communication, radio frequency rate of antenna for communication.
Optionally, the determining that the communication state of the terminal is switched from the first communication state to the second communication state includes:
determining that an antenna used for communication is switched from a first antenna to a second antenna; and/or the presence of a gas in the atmosphere,
the radio frequency rate of the antenna used for communication is determined to be switched from the first radio frequency rate to the second radio frequency rate.
Optionally, the determining the data transmission rate corresponding to the second communication state as the target data transmission rate includes:
determining the second antenna as an interference antenna, and determining the data transmission rate corresponding to the second radio frequency rate as the target data transmission rate; and/or the presence of a gas in the gas,
and determining that the second antenna is not an interference antenna, and determining the maximum data transmission rate of the camera module as the target data transmission rate.
Optionally, the determining the data transmission rate corresponding to the second radio frequency rate as the target data transmission rate includes:
acquiring preset configuration information, wherein the preset configuration information comprises a mapping relation between a radio frequency rate and a data transmission rate;
and determining the data transmission rate corresponding to the second radio frequency rate in the preset configuration information as the target data transmission rate.
According to a second aspect of embodiments of the present application, there is provided an apparatus for determining a data transmission rate, which is applied to a terminal having a camera module, the apparatus including:
the acquisition module is used for acquiring the communication state of the terminal;
and the determining module is used for determining the target data transmission rate of the camera module according to the communication state.
Optionally, the obtaining module is further configured to:
and acquiring the communication state of the terminal in the using process of the camera module.
Optionally, the determining module is further configured to:
and determining that the communication state of the terminal is switched from a first communication state to a second communication state, and determining the data transmission rate corresponding to the second communication state as the target data transmission rate.
Optionally, the determining module is further configured to:
and determining that the second communication state is kept for a preset time.
Optionally, the communication status comprises at least one of: a network type for communication, an antenna for communication, and a radio frequency rate of the antenna for communication.
Optionally, the determining module is further configured to:
determining that an antenna used for communication is switched from a first antenna to a second antenna; and/or the presence of a gas in the atmosphere,
and determining that the radio frequency rate of the antenna used for communication is switched from the first radio frequency rate to the second radio frequency rate.
Optionally, the determining module is further configured to:
determining the second antenna as an interference antenna, and determining the data transmission rate corresponding to the second radio frequency rate as the target data transmission rate; and/or the presence of a gas in the atmosphere,
and determining that the second antenna is not an interference antenna, and determining the maximum data transmission rate of the camera module as the target data transmission rate.
Optionally, the determining module is further configured to:
acquiring preset configuration information, wherein the preset configuration information comprises a mapping relation between a radio frequency rate and a data transmission rate;
and determining the data transmission rate corresponding to the second radio frequency rate in the preset configuration information as the target data transmission rate.
According to a third aspect of embodiments of the present application, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of the first aspect.
According to a fourth aspect of embodiments herein, there is provided a non-transitory computer readable storage medium having instructions which, when executed by a processor of a terminal, enable the terminal to perform the method of the first aspect.
The technical scheme provided by the embodiment of the application can have the following beneficial effects: in the method, the data transmission rate (MIPI rate) of the camera module is determined according to the communication state of the terminal, so that the interference of the current communication state on the data transmission rate of the camera module is avoided, the stability of the camera module is improved, the normal work of the camera module is better ensured, and the use experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flow chart illustrating a method of determining a data transmission rate according to an example embodiment.
Fig. 1a is a table illustrating a mapping of radio frequency rates to data transmission rates according to an example embodiment.
Fig. 2 is a block diagram illustrating an apparatus for determining a data transmission rate according to an example embodiment.
Fig. 3 is a block diagram of a terminal shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the related art, a copper foil is mostly wrapped on a connector and a Flexible Printed Circuit (FPC) of a camera module, and shielding is realized through hardware, so that the radio frequency rate of an antenna is prevented from interfering with the camera module. But the cost of this scheme is higher, and can occupy the inner space of terminal, and the parcel is difficult to implement, if the parcel is not in place, still can receive the interference by the camera module, and the effect is relatively poor.
The present disclosure provides a method of determining a data transmission rate, which is applied to a terminal having a camera module. In the method, the data transmission rate of the camera module (the data transmission rate refers to the MIPI (Mobile Industry Processor Interface) rate of the camera module) is determined according to the communication state of the terminal, so that the interference of the current communication state on the data transmission rate of the camera module is avoided, the stability of the camera module is improved, the normal work of the camera module is better ensured, and the use experience of a user is improved.
In one exemplary embodiment, a method of determining a data transmission rate is provided, which is applied to a terminal having a camera module. Referring to fig. 1, the method includes:
s110, acquiring a communication state of a terminal;
and S120, determining the target data transmission rate of the camera module according to the communication state.
In step S110, the communication status of the terminal may be detected in real time or periodically, and then the detection result is transmitted to the processor, so that the processor can obtain the communication status of the terminal.
It should be noted that, in this method, the communication state of the terminal may also be acquired during the use of the camera module.
For example, whether the camera module is in use may be detected in real time or periodically. Under the condition that the camera module is determined to be in the using process, the communication state of the terminal is detected, so that the terminal is prevented from frequently and meaningfully acquiring the communication state, and power consumption is reduced.
Wherein, in the use process of the camera module, the method can comprise the following steps: the camera module starts to start, the camera module is in a starting state (namely in the starting process), the camera module is in a using state, and the camera module needs to be in a data transmission state.
Alternatively, only if the camera module is in use, there may be situations where the radio frequency rate of the antenna used for communication interferes with the camera module's normal data transmission. If the camera module is not in use, there is no data transmission that interferes with the camera module. Therefore, the method can also determine that the camera module is in the use state firstly and then acquire the communication state, thereby avoiding frequently acquiring the communication state and reducing energy consumption.
In step S120, after the communication status is determined, the target data transmission rate that is not interfered by the communication status is determined according to the communication status.
For example, if the first communication state may cause interference to the camera module, a data transfer rate (i.e., a target data transfer rate) that is not interfered by the first communication state may be set for the camera module. Therefore, the interference of the communication state to the camera module can be avoided, the normal work of the camera module is ensured, the image with the best image quality in the current communication state is output, and the use experience of a user is improved.
In the method, the target data transmission rate (MIPI rate) of the camera module can be determined according to the communication state of the terminal, so that the camera module is prevented from being interfered by the communication state, and the camera module is ensured to work normally.
In one exemplary embodiment, a method of determining a data transmission rate is provided for a terminal having a camera module. In the method, the communication state of the terminal may include at least one of the following: a network type for communication, an antenna for communication, a radio frequency rate of the antenna for communication, and the like.
The network standards comprise a 3G network, a 4G network, a 5G network and the like. Terminals are generally configured with communication functions of multiple network systems to better meet communication requirements.
In addition, a terminal generally includes multiple types of antennas to implement communication in different network systems.
For example, the terminal may include an antenna for enabling WIFI, bluetooth, 4G, 5G, etc. communications. Of course, the terminal may further include other types of antennas for communication, which is not described herein.
Each network type can be configured with one antenna, and can also be configured with more antennas. Each antenna can be used for realizing the communication of only one network system and can also be used for realizing the communication of more network systems. Each antenna can be set at a plurality of radio frequency rates (or radio frequency rate ranges), or can be set at a fixed radio frequency rate (or radio frequency rate range). Each rf rate (or range of rf rates) may correspond to multiple antennas (i.e., multiple antennas each set the same rf rate (or range of rf rates)), or to a single antenna (i.e., each set a different rf rate (or range of rf rates)).
It should be noted that the above mentioned radio frequency rate range refers to a radio frequency rate range corresponding to the same data transmission rate. That is, when the radio frequency rate is within the radio frequency rate range, the target data transmission rate can be set to the same data transmission rate.
When the camera module is used, since the radio frequency rate of a part of the antennas (denoted as interfering antennas) affects the data transmission rate of the camera module, the method mainly determines the data transmission rate of the camera module according to the radio frequency rate of the interfering antennas.
In the case of example 1, the following examples,
when the network type, the antenna and the radio frequency rate (or radio frequency rate range) of the terminal correspond to each other, that is, each network type corresponds to a unique antenna, and each antenna corresponds to a unique radio frequency rate (or radio frequency rate range), the communication state may only include one of the network type for communication, the antenna for communication, and the radio frequency rate (or radio frequency rate range) of the antenna for communication.
The communication state may include only a network system used for communication.
After the network type currently used by the terminal for communication is obtained, the antenna and the radio frequency rate (or the radio frequency rate range) currently used by the terminal for communication can be determined. If the antenna is an interference antenna, the target data transmission rate can be determined according to the radio frequency rate (or the radio frequency rate range), and the camera module is prevented from being influenced by the communication state.
In the case of the example 2, the following,
when the network system of the terminal corresponds to the antenna, each network system corresponds to a unique antenna. But each antenna may correspond to multiple radio frequency rates (or ranges of radio frequency rates).
The communication state may include a network type used for communication and a radio frequency rate (or a radio frequency rate range) of an antenna used for communication.
And after the network type currently used for communication by the terminal is obtained, determining the antenna currently used for communication by the terminal. If the antenna is an interference antenna, the target data transmission rate can be determined according to the radio frequency rate (or radio frequency rate range) in the communication state, and the camera module is prevented from being influenced by the communication state.
In the example 3, the process of the present invention,
each antenna of the terminal can be used for realizing communication of multiple network systems, and each antenna can correspond to multiple radio frequency rates (or radio frequency rate ranges).
The communication state may include an antenna used for communication and a radio frequency rate of the antenna.
After the antenna currently used for communication of the terminal is obtained, if the antenna is an interference antenna, the target data transmission rate can be determined according to the radio frequency rate (or radio frequency rate range) in the communication state, so that the camera module is prevented from being influenced by the communication state.
It should be noted that the method is not limited to the three cases, but may be implemented in other ways: and determining the data transmission rate of the camera module according to the radio frequency rate of the interference antenna, thereby avoiding the interference of the communication state on the normal data transmission of the camera module.
In one exemplary embodiment, a method of determining a data transmission rate is provided, which is applied to a terminal having a camera module. This method is an improvement over step S120 of the above method. In the method, the determining a target data transmission rate of the camera module according to the communication state includes:
s210, determining that the communication state of the terminal is switched from a first communication state to a second communication state;
s220, determining the data transmission rate corresponding to the second communication state as the target data transmission rate.
In the method, the communication state of the terminal can be periodically or real-timely detected, and whether the communication state is changed or not can be judged. When the communication state is determined to be changed (namely, the first communication state is switched to the second communication state), the data transmission rate which is not interfered by the second communication state is determined, and the data transmission rate is used as the target data transmission rate of the camera module, so that the interference of the communication state to the camera module is avoided, and the normal work of the camera module is ensured.
As an example of this, the following is given,
the terminal is currently in a first communication state, the target data transmission rate of the camera module is a first target data transmission rate, and the first target data transmission rate is not influenced by the first communication state.
At the same time, the terminal detects its communication state in real time. When the communication state is determined to be changed, namely the communication state is determined to be switched from the first communication state to the second communication state, the data transmission rate of the camera module is adjusted. For example, the data transmission rate (e.g., the second data transmission rate) corresponding to the second communication status is determined as the new target data transmission rate, i.e., the target camera transmission rate of the camera module is adjusted to the second target data transmission rate, so as to avoid the second communication status from affecting the normal data transmission of the camera module.
Therefore, the target data transmission rate can be adjusted according to the communication state, so that the camera module is prevented from being interfered by the communication state, and the normal work of the camera module is ensured.
The determining that the communication state of the terminal is switched from the first communication state to the second communication state may include at least one of the following:
case 1: determining that an antenna used for communication is switched from a first antenna to a second antenna;
case 2: and determining that the radio frequency rate of the antenna used for communication is switched from the first radio frequency rate to the second radio frequency rate.
In the case of the example 1, the following,
the communication state includes an antenna used for communication. If the antenna used for communication is changed: switching from the first antenna to the second antenna. It is determined that the communication state of the terminal is switched from the first communication state to the second communication state. Otherwise, determining that the communication state of the terminal is not changed.
In the case of the example 2, the following,
the communication state includes a radio frequency rate of an antenna used for communication. If the radio frequency rate of the antenna used for communication changes: and switching from the first radio frequency rate to the second radio frequency rate. It is determined that the communication state of the terminal is switched from the first communication state to the second communication state. Otherwise, determining that the communication state of the terminal is not changed.
In the example 3, the process of the present invention,
the communication state includes an antenna used for communication and a radio frequency rate of the antenna used for communication. If the antenna used for communication is changed: switching from the first antenna to the second antenna; and/or the radio frequency rate of the antenna used for communication is changed: and switching from the first radio frequency rate to the second radio frequency rate. It is determined that the communication state of the terminal is switched from the first communication state to the second communication state. Otherwise, determining that the communication state of the terminal is not changed.
In the method, each communication state corresponds to a data transmission rate (or a data transmission rate range), and the camera module can normally work at the data transmission rate.
The method can dynamically adjust the data transmission rate of the camera module according to the communication state, thereby always ensuring that the camera module is not interfered by the communication state, ensuring the normal use of the camera module and improving the use experience of a user.
In one exemplary embodiment, a method of determining a data transmission rate is provided, which is applied to a terminal having a camera module. Before determining the data transmission rate corresponding to the second communication state as the target data transmission rate, the method further includes: determining that the second communication state has been maintained for a preset time period.
It will be appreciated that due to environmental influences, the communication state (e.g., the antenna used for communication) may change briefly and then return to the original communication state. In this case, the data transmission rate of the camera module does not need to be frequently adjusted.
For example, the preset time period may be 3 seconds. Assuming that the antenna currently used for communication is an antenna of a 5G communication type, the terminal briefly adjusts the antenna used for communication to an antenna of a 4G communication type due to a brief interruption of a 5G signal of the base station, and after the 5G signal is restored, the terminal adjusts the antenna used for communication to an antenna of the original 5G communication type. Meanwhile, the 4G communication type antenna is used for only 2 seconds, and since 2 seconds is less than 3 seconds, the data transmission rate of the camera module is not adjusted.
In the method, after the communication state of the terminal is changed, the terminal needs to wait for the preset time length so as to avoid frequently adjusting the data transmission rate of the camera module and reduce energy consumption. Meanwhile, the preset time is short, so that the normal work of the camera module cannot be influenced.
In one exemplary embodiment, a method of determining a data transmission rate is provided, which is applied to a terminal having a camera module. In the method, the second communication state includes a second antenna used for communication and a second radio frequency rate of the antenna used for communication (i.e., the second antenna).
Determining the data transmission rate corresponding to the second communication state as the target data transmission rate, which may include:
s310, judging whether the second antenna is an interference antenna; if yes, go to step S320; if not, go to step S330;
s320, determining the data transmission rate corresponding to the second radio frequency rate as a target data transmission rate;
s330, determining the maximum data transmission rate of the camera module as a target data transmission rate.
In step S310, a preset identifier may be configured for each type of antenna, where the preset identifier is used to characterize whether the corresponding antenna is an interfering antenna.
For example, before the terminal leaves the factory, a simulation mode experiment may be performed on the terminal to determine an interfering antenna and a non-interfering antenna therein. And configuring an 'interference' identifier for the interference antenna and a 'non-interference' identifier for the non-interference antenna.
When the user uses the terminal subsequently, if the preset identifier of the antenna used for communication currently used is determined to be the 'interference' identifier, the antenna is determined to be the interference antenna. If the identification of the antenna currently used for communication is determined to be a non-interference identification, the antenna is determined not to be an interference antenna, and the antenna is determined to be a non-interference antenna.
It should be noted that the preset identifier may also be other types of identifiers. For example, the default identification of the interfering antenna is "+", the default identification of the non-interfering antenna is "-", etc. The preset identifier only needs to be able to distinguish the interfering antenna from the non-interfering antenna.
In addition, it may also be determined whether the antenna currently used for communication is an interference antenna in other manners, which is not described herein again.
For example, each antenna used for communication may be numbered. And carrying out simulation mode experiments on the terminal in advance, determining an interference antenna which can generate interference on the camera module, and determining a number set according to the number of the interference antenna.
When the terminal is used, after the number of the antenna currently used for communication is determined, whether the number belongs to the numbers in the number set can be determined to be an interference antenna.
In the method, if it is determined that the antenna currently used for communication is an interfering antenna, which indicates that the antenna may interfere with the camera module, the target data transmission rate needs to be determined according to the current radio frequency rate (i.e., the radio frequency rate of the antenna currently used for communication) to avoid the camera module from being affected.
If it is determined that the antenna currently used for communication is not an interfering antenna, indicating that the antenna is not interfering with the camera module, the camera module may use any data transmission rate. It is understood that the maximum data transfer rate of the camera module may be determined as the target data transfer rate in this case. That is, the camera module may transmit the image at the maximum data transmission rate to improve the quality of the image and improve the user experience.
In one exemplary embodiment, a method of determining a data transmission rate of a camera module is provided, which is applied to a terminal having the camera module. The method is an improvement of step S320 in the foregoing method, and exemplarily, determining the data transmission rate corresponding to the second radio frequency rate as the target data transmission rate may include:
s410, acquiring preset configuration information;
and S420, determining the data transmission rate corresponding to the second radio frequency rate in the preset configuration information as a target data transmission rate.
In step S410, the preset configuration information includes a mapping relationship between the radio frequency rate and the data transmission rate. The preset configuration information may be set by the terminal before leaving the factory, or may be set by the user, which is not limited herein.
In step S420, the radio frequency rate that is the same as the second radio frequency rate is searched from the preset configuration information, and then the data transmission rate corresponding to the radio frequency rate is determined as the target data transmission rate.
As an example of this, it is possible to illustrate,
the preset configuration information includes a mapping table (i.e. a mapping table of radio frequency rate and data transmission rate) as shown in fig. 1 a.
Referring to fig. 1a, in the using process of the terminal, if the second radio frequency rate is "2560Mhz", the target data transmission rate is determined to be "2100Msps/trio", that is, the camera module is controlled to perform data transmission at the data transmission rate of "2100 Msps/trio". If the second radio frequency rate is "19400Mhz," the target data transfer rate is determined to be "1850Msps/trio," i.e., the camera module is controlled to perform data transfer at a data transfer rate of "1850 Msps/trio.
It should be noted that when it is determined that the second antenna is not an interfering antenna, there is no radio frequency rate that interferes with the data transmission rate of the camera module. In the last row of the mapping table of fig. 1a, the rf rate is "0", which indicates no antenna interference (i.e. there is no rf rate that interferes with the data transmission rate of the camera module), and correspondingly, the target data transmission rate is the maximum rate (e.g. 2500 Msps/trio), and the camera module can operate at the maximum data transmission rate.
In the method, the data transmission rate of the camera module can be adjusted in real time according to the antenna used for communication and the radio frequency rate of the antenna, so that the interference of the communication state to the camera module is avoided, the normal work of the camera module is better ensured, and the use experience of a user is improved.
In one exemplary embodiment, a method of determining a data transmission rate is provided for a terminal having a camera module. In the method, whether to turn on the camera module may be determined first. After determining to turn on the camera module, a communication state of the terminal (including an antenna for communication and a radio frequency rate of the antenna) is detected. The communication status is then transmitted to the processor, and the processor can obtain the initial communication status of the terminal. And then determining a data transmission rate corresponding to the initial communication state, and controlling the camera module to work at the data transmission rate.
And then periodically detects whether the camera module is in a use state. If the camera module is determined to be in the closed state, the user does not use the camera module any more, and the whole process is ended.
If it is determined that the camera module is in the use state, the communication state of the terminal is periodically detected and then transmitted to the processor, and the processor can acquire the current communication state of the terminal.
And after the terminal acquires the current communication state, comparing the current communication state with the last communication state. Wherein, the last communication state refers to the communication state obtained in the last detection period.
If the two are the same, no adjustment is made to the target data transfer rate of the camera module.
And if the two are different, determining that the communication state of the terminal is switched from the first communication state to the second communication state. And then determining the corresponding data transmission rate according to the second communication state (namely the current communication state). The re-determined data transmission rate is then determined as the target data transmission rate. That is, the data transmission rate of the camera module is adjusted to the data transmission rate corresponding to the second communication state. The data transmission rate is not interfered by the second radio frequency rate, and the normal work of the camera module can be ensured.
After the target data transmission rate of the camera module is determined again, step S560 is entered again to continuously detect whether the camera module is in use.
The circulation can ensure that the data transmission rate of the camera module can not be influenced by the communication state all the time, ensure that the camera module can normally work all the time, and improve the use experience of users.
In one exemplary embodiment, an apparatus for determining a data transmission rate of a camera module is provided, which is applied to a terminal having the camera module. The device is used for implementing the method described above, and as shown in fig. 2, the device includes an obtaining module 101 and a determining module 102, and in the process of implementing the method:
an obtaining module 101, configured to obtain a communication state of a terminal;
a determining module 102, configured to determine a target data transmission rate of the camera module according to the communication status.
In one exemplary embodiment, an apparatus for determining a data transmission rate of a camera module is provided for a terminal having the camera module. Referring to fig. 2, in the apparatus, the obtaining module 101 is further configured to:
and acquiring the communication state of the terminal in the use process of the camera module.
In one exemplary embodiment, an apparatus for determining a data transmission rate of a camera module is provided for a terminal having the camera module. Referring to fig. 2, in the apparatus, the determining module 102 is further configured to:
and determining that the communication state of the terminal is switched from the first communication state to the second communication state, and determining the data transmission rate corresponding to the second communication state as the target data transmission rate.
In one exemplary embodiment, an apparatus for determining a data transmission rate of a camera module is provided, which is applied to a terminal having the camera module. Referring to fig. 2, in the apparatus, the determining module 102 is further configured to:
determining that the second communication state has been maintained for a preset time period.
In one exemplary embodiment, an apparatus for determining a data transmission rate of a camera module is provided, which is applied to a terminal having the camera module. In the apparatus, the communication state includes at least one of: a network type for communication, an antenna for communication, and a radio frequency rate of the antenna for communication.
In one exemplary embodiment, an apparatus for determining a data transmission rate of a camera module is provided, which is applied to a terminal having the camera module. Referring to fig. 2, in the apparatus, the determining module 102 is further configured to:
determining that an antenna used for communication is switched from a first antenna to a second antenna; and/or the presence of a gas in the atmosphere,
the radio frequency rate of the antenna used for communication is determined to be switched from the first radio frequency rate to the second radio frequency rate.
In one exemplary embodiment, an apparatus for determining a data transmission rate of a camera module is provided, which is applied to a terminal having the camera module. Referring to fig. 2, in the apparatus, the determining module 102 is further configured to:
determining the second antenna as an interference antenna, and determining the data transmission rate corresponding to the second radio frequency rate as a target data transmission rate; and/or the presence of a gas in the atmosphere,
and determining that the second antenna is not an interference antenna, and determining the maximum data transmission rate of the camera module as a target data transmission rate.
In one exemplary embodiment, an apparatus for determining a data transmission rate of a camera module is provided, which is applied to a terminal having the camera module. Referring to fig. 2, in the apparatus, the determining module 102 is further configured to:
acquiring preset configuration information, wherein the preset configuration information comprises a mapping relation between a radio frequency rate and a data transmission rate;
and determining the data transmission rate corresponding to the second radio frequency rate in the preset configuration information as the target data transmission rate.
The application also provides a terminal which can be a mobile phone, a tablet computer, a notebook computer and other equipment with a camera module.
In an exemplary embodiment, illustrated with reference to fig. 3, the terminal 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the terminal 400, such as operations associated with display, telephone calls, data communications, camera module operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 406 provide power to the various components of the terminal 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 400.
The multimedia component 408 includes a screen providing an output interface between the terminal 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera module and/or a rear camera module. When the terminal 400 is in an operation mode, such as a photographing mode or a video mode, the front camera module and/or the rear camera module can receive external multimedia data. Each of the front camera module and the rear camera module may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect an open/closed state of the terminal 400, relative positioning of components, such as a display and keypad of the terminal 400, the sensor assembly 414 can also detect a change in position of the terminal 400 or a component of the terminal 400, the presence or absence of user contact with the terminal 400, orientation or acceleration/deceleration of the terminal 400, and a change in temperature of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communications between the terminal 400 and other devices in a wired or wireless manner. The device 700 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the terminal 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The instructions in the storage medium, when executed by a processor of the terminal, enable the terminal to perform the methods shown in the above-described embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (18)

1. A method for determining a data transmission rate, applied to a terminal having a camera module, the method comprising:
acquiring a communication state of the terminal;
and determining a target data transmission rate of the camera module according to the communication state.
2. The method of claim 1, wherein the obtaining the current communication status of the terminal comprises:
and acquiring the communication state of the terminal in the use process of the camera module.
3. The method of claim 1 or 2, wherein determining the target data transfer rate of the camera module based on the communication status comprises:
and determining that the communication state of the terminal is switched from a first communication state to a second communication state, and determining the data transmission rate corresponding to the second communication state as the target data transmission rate.
4. The method according to claim 3, wherein before determining the data transmission rate corresponding to the second communication status as the target data transmission rate, the method further comprises:
determining that the second communication state has been maintained for a preset duration.
5. The method of claim 3, wherein the communication state comprises at least one of: a network type for communication, an antenna for communication, and a radio frequency rate of the antenna for communication.
6. The method according to claim 5, wherein the determining that the communication state of the terminal is switched from the first communication state to the second communication state comprises:
determining that an antenna used for communication is switched from a first antenna to a second antenna; and/or the presence of a gas in the gas,
and determining that the radio frequency rate of the antenna used for communication is switched from the first radio frequency rate to the second radio frequency rate.
7. The method according to claim 6, wherein the determining the data transmission rate corresponding to the second communication state as the target data transmission rate comprises:
determining the second antenna as an interference antenna, and determining the data transmission rate corresponding to the second radio frequency rate as the target data transmission rate; and/or the presence of a gas in the gas,
and determining that the second antenna is not an interference antenna, and determining the maximum data transmission rate of the camera module as the target data transmission rate.
8. The method of claim 7, wherein the determining the data transmission rate corresponding to the second radio frequency rate as the target data transmission rate comprises:
acquiring preset configuration information, wherein the preset configuration information comprises a mapping relation between a radio frequency rate and a data transmission rate;
and determining the data transmission rate corresponding to the second radio frequency rate in the preset configuration information as the target data transmission rate.
9. An apparatus for determining a data transmission rate, applied to a terminal having a camera module, the apparatus comprising:
the acquisition module is used for acquiring the communication state of the terminal;
and the determining module is used for determining the target data transmission rate of the camera module according to the communication state.
10. The apparatus of claim 9, wherein the obtaining module is further configured to:
and acquiring the communication state of the terminal in the using process of the camera module.
11. The apparatus of claim 9 or 10, wherein the determining module is further configured to:
and determining that the communication state of the terminal is switched from a first communication state to a second communication state, and determining the data transmission rate corresponding to the second communication state as the target data transmission rate.
12. The apparatus of claim 11, wherein the determining module is further configured to:
and determining that the second communication state is kept for a preset time.
13. The apparatus of claim 11, wherein the communication state comprises at least one of: network type for communication, antenna for communication, radio frequency rate of antenna for communication.
14. The apparatus of claim 13, wherein the determining module is further configured to:
determining that an antenna used for communication is switched from a first antenna to a second antenna; and/or the presence of a gas in the atmosphere,
and determining that the radio frequency rate of the antenna used for communication is switched from the first radio frequency rate to the second radio frequency rate.
15. The apparatus of claim 14, wherein the determining module is further configured to:
determining the second antenna as an interference antenna, and determining the data transmission rate corresponding to the second radio frequency rate as the target data transmission rate; and/or the presence of a gas in the gas,
and determining that the second antenna is not an interference antenna, and determining the maximum data transmission rate of the camera module as the target data transmission rate.
16. The apparatus of claim 15, wherein the determining module is further configured to:
acquiring preset configuration information, wherein the preset configuration information comprises a mapping relation between a radio frequency rate and a data transmission rate;
and determining the data transmission rate corresponding to the second radio frequency rate in the preset configuration information as the target data transmission rate.
17. A terminal, characterized in that the terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 1 to 8.
18. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the method of any of claims 1 to 8.
CN202110477466.0A 2021-04-29 2021-04-29 Method, device, terminal and storage medium for determining data transmission rate Pending CN115276888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110477466.0A CN115276888A (en) 2021-04-29 2021-04-29 Method, device, terminal and storage medium for determining data transmission rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110477466.0A CN115276888A (en) 2021-04-29 2021-04-29 Method, device, terminal and storage medium for determining data transmission rate

Publications (1)

Publication Number Publication Date
CN115276888A true CN115276888A (en) 2022-11-01

Family

ID=83745024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110477466.0A Pending CN115276888A (en) 2021-04-29 2021-04-29 Method, device, terminal and storage medium for determining data transmission rate

Country Status (1)

Country Link
CN (1) CN115276888A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357033A (en) * 2015-10-16 2016-02-24 华为技术有限公司 Method and device for reducing interference of mobile industry processor interface to communication quality
CN105871477A (en) * 2015-12-11 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and apparatus for resisting to higher harmonic interference of camera MIPI (Mobile Industry Processor Interface) bus and mobile terminal
CN106936515A (en) * 2017-05-09 2017-07-07 广东欧珀移动通信有限公司 Radio frequency interference processing method, storage medium and terminal
US20180138991A1 (en) * 2015-04-20 2018-05-17 Huawei Technologies Co., Ltd. Method and Apparatus for Preventing Camera from Interfering with Antenna, and Electronic Device
CN108282192A (en) * 2017-12-12 2018-07-13 努比亚技术有限公司 A kind of antenna switching control method, communication terminal and computer readable storage medium
CN109194357A (en) * 2018-09-11 2019-01-11 青岛海信移动通信技术股份有限公司 A kind of method and terminal setting MIPI frequency
CN109348013A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Antenna transmission power adjustment method, device, mobile terminal and storage medium
CN111491072A (en) * 2020-04-20 2020-08-04 维沃移动通信有限公司 Pixel clock frequency adjusting method and device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180138991A1 (en) * 2015-04-20 2018-05-17 Huawei Technologies Co., Ltd. Method and Apparatus for Preventing Camera from Interfering with Antenna, and Electronic Device
CN105357033A (en) * 2015-10-16 2016-02-24 华为技术有限公司 Method and device for reducing interference of mobile industry processor interface to communication quality
CN105871477A (en) * 2015-12-11 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and apparatus for resisting to higher harmonic interference of camera MIPI (Mobile Industry Processor Interface) bus and mobile terminal
CN106936515A (en) * 2017-05-09 2017-07-07 广东欧珀移动通信有限公司 Radio frequency interference processing method, storage medium and terminal
CN108282192A (en) * 2017-12-12 2018-07-13 努比亚技术有限公司 A kind of antenna switching control method, communication terminal and computer readable storage medium
CN109194357A (en) * 2018-09-11 2019-01-11 青岛海信移动通信技术股份有限公司 A kind of method and terminal setting MIPI frequency
CN109348013A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Antenna transmission power adjustment method, device, mobile terminal and storage medium
CN111491072A (en) * 2020-04-20 2020-08-04 维沃移动通信有限公司 Pixel clock frequency adjusting method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US11832279B2 (en) Signal transmission method, signal transmission apparatus, electronic device and computer-readable storage medium
US11284398B2 (en) Communication link configuration method and device
CN109156026B (en) Method, device, equipment and storage medium for sending uplink scheduling request
US20230292269A1 (en) Method and apparatus for determining offset indication, and method and apparatus for determining offset
US11457479B2 (en) Method and apparatus for configuring random access occasion, method and apparatus for random access
US11596018B2 (en) Region configuration method and device
CN110945899B (en) Frequency band state indicating method and device and frequency band state determining method and device
US20190281543A1 (en) Communication method and device
CN111261081B (en) Screen display method and device
CN108011191B (en) Antenna, terminal, and method and device for controlling antenna
CN110875769A (en) Wireless communication device and antenna switching method
US11323144B2 (en) Method and device for indicating inter-modulation distortion, base station, and user equipment
CN111601377B (en) Temperature control method, device and storage medium
US11812386B2 (en) Configuration adjustment methods, apparatuses, electronic device and computer readable storage medium
CN108702283B (en) Method and device for configuring and analyzing synchronous broadcast block, base station and user equipment
CN109922203B (en) Terminal, screen off method and device
US20220015066A1 (en) Method and device for transmitting control information and data
CN112787745B (en) Wireless communication method, device, electronic equipment and storage medium
CN114449542B (en) Cell registration method, device and medium
CN115276888A (en) Method, device, terminal and storage medium for determining data transmission rate
CN115316000A (en) Resource configuration method and device, and resource determination method and device
CN112187326A (en) Antenna control method, device, equipment and storage medium
EP3840496A1 (en) Bandwidth part adjustment method and bandwidth part adjustment apparatus
CN116582880B (en) Signal intensity detection method and device, electronic equipment and storage medium
CN112565521B (en) Information processing method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination