CN113422620B - Communication rate control method, device, equipment and readable storage medium - Google Patents

Communication rate control method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113422620B
CN113422620B CN202110689940.6A CN202110689940A CN113422620B CN 113422620 B CN113422620 B CN 113422620B CN 202110689940 A CN202110689940 A CN 202110689940A CN 113422620 B CN113422620 B CN 113422620B
Authority
CN
China
Prior art keywords
communication
functional module
electronic device
rate
protocol
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.)
Active
Application number
CN202110689940.6A
Other languages
Chinese (zh)
Other versions
CN113422620A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110689940.6A priority Critical patent/CN113422620B/en
Publication of CN113422620A publication Critical patent/CN113422620A/en
Application granted granted Critical
Publication of CN113422620B publication Critical patent/CN113422620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/04Control of transmission; Equalising
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/46Monitoring; Testing
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The application discloses a communication rate control method, a device, equipment and a readable storage medium, which belong to the technical field of communication, and the method comprises the following steps: and acquiring communication quality information between the electronic equipment and the functional module, and adjusting the communication rate between the electronic equipment and the functional module according to the target abnormality judgment condition under the condition that the communication quality information meets the target abnormality judgment condition in the plurality of abnormality judgment conditions, and re-entering the step of acquiring the communication quality information between the electronic equipment and the functional module until the maximum transmission rate is reached under the condition that the communication between the electronic equipment and the functional module meets the fault tolerance rate.

Description

Communication rate control method, device, equipment and readable storage medium
Technical Field
The application belongs to the field of communication, and in particular relates to a communication rate control method, a device, equipment and a readable storage medium.
Background
At present, different types of communication interfaces are integrated in the electronic device and are used for connecting different functional modules so as to assist the electronic device to realize different functions. Wherein the functional modules of the partial communication interface connection can be configured by a user. Taking the function module as a memory card as an example, a user can select the memory card meeting the self requirement, and the memory card is installed in the electronic equipment through a communication interface reserved in the electronic equipment.
In the prior art, the hardware parameters of the electronic device are fixed before delivery, and when the functional module is configured by a user, the situation that the hardware parameters of the functional module are not matched with the hardware parameters of the electronic device may occur, so that the error rate of the electronic device is higher in the process of communicating with the functional module, and the communication quality is poor.
Disclosure of Invention
The embodiment aims to provide a communication rate control method, a device, equipment and a readable storage medium, which can solve the problems of higher error rate and poor stability of electronic equipment in the process of communicating with a functional module.
In a first aspect, an embodiment of the present application provides a communication rate control method, applied to an electronic device, where a function module is provided on the electronic device, and the electronic device and the function module establish a communication connection in a wired manner, where the method includes:
acquiring communication quality information between the electronic equipment and the functional module;
when the communication quality information accords with a target abnormality determination condition in a plurality of abnormality determination conditions, adjusting the communication rate between the electronic equipment and the functional module according to the target abnormality determination condition, and re-entering the step of acquiring the communication quality information between the electronic equipment and the functional module until the communication between the electronic equipment and the functional module reaches the maximum transmission rate under the condition of meeting the fault tolerance rate; wherein, the adjustment modes corresponding to different abnormality judgment conditions are different.
In a second aspect, an embodiment of the present application provides a communication rate control apparatus, including:
the acquisition module is used for acquiring the communication quality information between the electronic equipment and the functional module;
an adjusting module, configured to adjust, when the communication quality information meets a target abnormality determination condition of a plurality of abnormality determination conditions, a communication rate between the electronic device and the functional module according to the target abnormality determination condition, and reenter a step of acquiring the communication quality information between the electronic device and the functional module until the communication between the electronic device and the functional module reaches a maximum transmission rate when a fault tolerance rate is satisfied; wherein, the adjustment modes corresponding to different abnormality judgment conditions are different.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, a functional module is arranged on the electronic device, the electronic device and the functional module are connected in a wired mode to establish communication, communication quality information between the electronic device and the functional module is obtained, under the condition that the communication quality information accords with a target abnormality judgment condition in a plurality of abnormality judgment conditions, the communication rate between the electronic device and the functional module is adjusted according to the target abnormality judgment condition, and the step of obtaining the communication quality information between the electronic device and the functional module is re-entered until the communication between the electronic device and the functional module reaches the maximum transmission rate under the condition that the fault tolerance rate is met. In the communication connection between the electronic equipment and the functional module, when the hardware parameters of the electronic equipment and the functional module are not matched, the error rate in the data transmission process can be reduced and the communication quality can be improved by adjusting the communication rate between the electronic equipment and the functional module.
Drawings
Fig. 1 is a flowchart of steps of a communication rate control method according to an embodiment of the present application;
fig. 2 is a schematic connection diagram between an electronic device and a functional module according to an embodiment of the present application;
fig. 3 is a flowchart illustrating steps of another communication rate control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a communication rate control device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
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, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The communication rate control method provided by the embodiment of the application is described in detail below through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a communication rate control method according to an embodiment of the present application, where the method may include:
and 101, acquiring communication quality information between the electronic equipment and the functional module.
The communication rate control method can be executed by electronic equipment such as a mobile phone, a notebook computer, a computer and the like. The electronic equipment is provided with a functional module, and the electronic equipment and the functional module are in communication connection in a wired mode. Functional modules such as secure digital cards (Secure Digital Memory Card, SD) or external memory cards (TF) may be provided as memory cards in the electronic device. The specific type of the functional module may be set according to requirements, which is not limited in this embodiment.
In this embodiment, the electronic device and the functional module are connected by a wired connection manner, so as to establish a transmission path between the electronic device and the functional module, and establish a communication connection through the transmission path. As shown in fig. 2, fig. 2 is a schematic diagram of connection between an electronic device and a functional module according to an embodiment of the present application, a processor 201 (Central Processing Unit, CPU) is disposed on a motherboard in the electronic device, and a Board To Board (BTB) connector 202 for connecting the processor 201 is disposed on a sub-Board, and a flexible circuit Board (Flexible Printed Circuit Board, FPC) connector 204 for connecting a memory card 205 is disposed on the sub-Board. The BTB connector 202 is connected to the FPC connector 204 through the FPC connector 203, thereby realizing wired connection between the processor 201 and the memory card 204, i.e., wired connection between the electronic device and the memory card. Before the electronic device leaves the factory, hardware parameters of electronic components such as the processor 201, the BTB connector 202, the FPC connector 203, the FPC connector 204 and the like are fixed, and when the memory card is configured by the user, the hardware parameters of the memory card may not match with the hardware parameters of the electronic components in the electronic device, and the hardware parameters include parameters such as resistance, capacitance, inductance and the like. When the hardware parameters of the electronic component and the memory card are not matched, impedance mismatch between the electronic component and the memory card occurs during communication. Since the communication rate is related to the impedance, the higher the communication rate, the higher the error rate during data transmission in the case of impedance mismatch. The CPU may need to be repeated multiple times to write data to the memory card or not to write data to the memory card during the process of writing data to the memory card. Also, when the processor reads data from the memory card, it may be repeated a plurality of times to read data from the memory card, or it may be impossible to read data directly.
In the running process of the electronic equipment, the communication connection with the memory card is established in a wired mode, and the electronic equipment communicates with the memory card through the established communication connection. In the communication process, for the communication connection between the electronic device and the memory card, communication quality information can be acquired, and the communication quality is determined according to the communication quality information.
In one embodiment, the communication quality information includes at least one of a number of repeated requests and a number of transmission failures in the data transmission process. In combination with the above example, after establishing a communication connection with the memory card, the electronic device may acquire the number of repeated requests and the number of transmission failures, which may indicate the communication quality of the communication connection, in each writing/reading of data to/from the memory card. For example, when the communication quality information includes the number of transmission failures, in each process of writing data into the memory card, if response information returned by the memory card is not received within a preset transmission time period after the data is sent to the memory card for the first time, the electronic device determines that the memory card does not receive the data, and the number of transmission failures is 1. After the response information returned by the memory card is not received, the electronic device can send data to the memory card for the second time, and if the response information returned by the memory card is not received within the preset transmission time period, the second data transmission failure is determined, and the number of transmission failures is 2. And by analogy, the transmission failure times in the data writing process can be counted. After receiving the response information returned by the memory card, the electronic device determines that the data writing is successful, and ends the data transmission. When the response information returned by the memory card cannot be received, after the number of transmission failures reaches the preset end number, determining that the data writing fails, stopping sending the data to the memory card, and ending the data transmission.
For another example, when the communication quality information includes the number of repeated requests, the electronic device first sends a data request to the memory card in each process of reading data from the memory card, and if the data returned by the memory card is not received within a preset receiving period, determines that the data reading fails. After determining that the data reading fails, the electronic device may send a retransmission request for the current data request to the memory card, and if the data returned by the memory card is not received within the preset receiving period, it is determined that the number of repeated requests is 1. After the retransmission request is sent to the memory card, the data returned by the memory card is not received within the preset receiving time period, the retransmission request for the data request can be sent to the memory card again, and if the data returned by the memory card is not received within the preset receiving time period, the number of repeated requests is determined to be 2. And by analogy, the repeated request times in the data request process can be counted. After receiving the data returned by the memory card, the electronic device determines that the data reading is successful, and ends the data transmission. When the electronic device cannot receive the data returned by the memory card, the electronic device can stop sending the retransmission request to the memory card after the repeated request times reach the preset end times, determine that the data reading fails, and end the data transmission.
It should be noted that, when the electronic device counts the number of repeated requests and the number of data transmission failures, the statistics is the number of times in each data transmission process. When the electronic device and the memory card perform the next data transmission after the communication is finished, the repeated request times and the data transmission failure times can be counted again.
In practical applications, when there is a transmission failure in the communication connection and a retransmission request is sent, it is indicated that there is an abnormality in the communication connection, and when there is a large number of transmission failures and/or a large number of repeated requests, it is indicated that the communication quality is poor. Accordingly, the electronic device can determine the communication quality of the communication connection based on the number of transmission failures or the number of repeated requests.
In one embodiment, the electronic device may determine the communication quality in combination with the number of repeated requests and the number of transmission failures. In combination with the above example, if the data transmission process includes both a process of writing data into the memory card and a process of reading data from the memory card, the electronic device may count the number of repeated requests and the number of data transmission failures at the same time, and sum the number of repeated requests and the number of data transmission failures to obtain communication quality information that may represent communication quality.
In the embodiment of the application, the communication quality is determined according to the repeated request times and the transmission failure times, and the error rate in the data transmission process can be accurately described due to the repeated request times and the transmission failure times, so that the communication quality between the electronic equipment and the functional module can be accurately determined. In practical applications, the communication quality information may also be represented by other parameters in the communication connection, and the specific type of the communication quality information may be set according to requirements, which is not limited in this embodiment.
And 102, under the condition that the communication quality information accords with a target abnormality judgment condition in a plurality of abnormality judgment conditions, adjusting the communication rate between the electronic equipment and the functional module according to the target abnormality judgment condition, and re-entering the step of acquiring the communication quality information between the electronic equipment and the functional module until the communication between the electronic equipment and the functional module reaches the maximum transmission rate under the condition that the fault tolerance rate is met.
Wherein, the adjustment modes corresponding to different abnormality judgment conditions are different.
In one embodiment, a plurality of abnormality determination conditions may be set in advance, and when the communication quality information meets one of the abnormality determination conditions, it indicates that the communication quality between the electronic device and the functional module is poor. At this time, the communication rate between the electronic device and the functional module can be adjusted, and when the impedance of the electronic device and the impedance of the functional module are not matched, the error rate in the data transmission process can be reduced, so that the communication quality can be improved.
Optionally, the adjustment mode includes reducing the communication rate, and the speed reduction amplitudes corresponding to different abnormal judgment conditions are different; in the case where the communication quality information meets a target abnormality determination condition among the plurality of abnormality determination conditions, the step of adjusting the communication rate between the electronic device and the functional module in accordance with the target abnormality determination condition may be realized by:
and under the condition that the communication quality information accords with the target abnormality judgment condition, reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target abnormality judgment condition.
Wherein the communication quality information includes at least one of the number of repeated requests and the number of transmission failures in the data transmission process.
In one embodiment, when the communication quality information includes the number of repeated requests, in a case where the communication quality information meets the target abnormality determination condition, the step of reducing the communication rate between the electronic device and the functional module according to the speed reduction range corresponding to the target abnormality determination condition may be implemented as follows:
and under the condition that the repeated request times reach a target repeated request times threshold value in a plurality of repeated request times threshold values, reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target repeated request times threshold value.
In this embodiment, a plurality of abnormality determination conditions may be preset, and different abnormality determination conditions correspond to different communication qualities and deceleration amplitudes, respectively. In combination with the above example, when the communication quality information is the number of repeated requests, a plurality of thresholds of the number of repeated requests may be preset, each of the thresholds of the number of repeated requests is an abnormal judgment condition, and different thresholds of the number of repeated requests correspond to different communication quality and speed reduction amplitude respectively. For example, the preset repeat request count threshold may include 2 times, 3 times, 4 times, and 5 times, the count 2 corresponds to a 5% deceleration, the count 3 corresponds to a 10% deceleration, the count 4 corresponds to a 15% deceleration, and the count 5 corresponds to a 20% deceleration. The larger the threshold number of repeated requests is, the worse the communication quality is. When the electronic device obtains the number of repeated requests 3 in the data transmission process, the number of repeated requests 3 which is the same as the number of repeated requests obtained at the time, namely the target abnormality judgment condition, can be determined from a plurality of preset repeated request number thresholds. At this time, the electronic device may determine the deceleration amplitude 15% corresponding to the repetition request number threshold 3, and if the current communication rate of the electronic device is 100MHz, the electronic device may adjust the communication rate to 85MHz. Meanwhile, the electronic equipment can instruct the memory card to adjust the communication rate from 100MHz to 85MHz, so that the communication rate of the memory card is equal to the communication rate of the electronic equipment after being reduced. The specific deceleration process may be set according to requirements, which is not limited in this embodiment.
In the embodiment of the application, when the communication quality information acquired by the electronic device meets the abnormal judgment condition, it can be determined that the current communication quality is poor, and the electronic device can reduce the communication rate between the electronic device and the storage module. At this time, since the communication rate in the communication connection is lowered, the number of errors in the data transmission process can be reduced, thereby improving the communication quality.
In practical application, the abnormal judgment conditions corresponding to different communication qualities can be set, and different speed reduction ranges are set for different communication qualities, so that the electronic equipment can reduce corresponding communication rate according to different abnormal judgment conditions, can realize gradual adjustment of the communication rate, and avoid reducing the communication rate to a minimum value at one time, thereby enabling the electronic equipment to communicate with the functional module at the highest possible communication rate.
In one embodiment, when the communication quality information includes the number of transmission failures, in a case where the communication quality information meets the target abnormality determination condition, the step of reducing the communication rate between the electronic device and the functional module according to the speed reduction range corresponding to the target abnormality determination condition may be implemented as follows:
And under the condition that the transmission failure times reach a target transmission failure times threshold value in a plurality of transmission failure times threshold values, reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target transmission failure times threshold value.
In this embodiment, when the communication quality information is the number of transmission failures, a plurality of transmission failure frequency thresholds may be preset, each transmission failure frequency threshold is an abnormal judgment condition, and different transmission failure frequency thresholds respectively correspond to different communication quality and speed reduction amplitude. For example, the preset threshold number of transmission failures may include 2 times, 3 times, 4 times, and 5 times, the number of times 2 corresponds to 5% of the deceleration, the number of times 3 corresponds to 10% of the deceleration, the number of times 4 corresponds to 15% of the deceleration, and the number of times 5 corresponds to 20%. The larger the transmission failure number threshold value, the worse the communication quality. When the electronic device obtains the transmission failure frequency 3 in the data transmission process, the transmission failure frequency threshold 3 which is the same as the obtained transmission failure frequency can be determined from a plurality of preset transmission failure frequency thresholds, namely the target abnormality judgment condition. At this time, the electronic device may determine the deceleration amplitude corresponding to the transmission failure frequency threshold 3 by 15%, and if the current communication rate of the electronic device is 100MHz, the electronic device may adjust the communication rate to 85MHz. Meanwhile, the electronic equipment can instruct the memory card to adjust the communication rate from 100MHz to 85MHz, so that the communication rate of the memory card is equal to the communication rate of the electronic equipment after being reduced.
In another embodiment, the communication quality information may include both the number of repeated requests and the number of transmission failures. A plurality of frequency thresholds can be preset, each frequency threshold is an abnormal judgment condition, and different frequency thresholds respectively correspond to different communication quality and speed reduction amplitude. For example, the preset number of times threshold may include 2 times, 3 times, 4 times, and 5 times, the number of times 2 corresponds to 5% of the deceleration, the number of times 3 corresponds to 10% of the deceleration, the number of times 4 corresponds to 15% of the deceleration, and the number of times 5 corresponds to 20%. The larger the number of times threshold value, the worse the communication quality. When the sum of the transmission failure times and the repeated request times in the data transmission process is 3, the electronic equipment can determine the time threshold 3, namely the target abnormality judgment condition, from a plurality of preset time thresholds. At this time, the electronic device may determine the deceleration amplitude corresponding to the frequency threshold 3 by 15%, and when the current communication rate of the electronic device is 100MHz, the electronic device may adjust the communication rate to 85MHz. Meanwhile, the electronic equipment can instruct the memory card to adjust the communication rate from 100MHz to 85MHz, so that the communication rate of the memory card is equal to the communication rate of the electronic equipment after being reduced.
In the embodiment of the application, the communication quality is determined according to at least one parameter of the repeated request times and the transmission failure times, and the error rate in the output transmission process can be accurately described due to the repeated request times and the transmission failure times, so that the communication quality between the electronic equipment and the functional module can be accurately determined. The target parameter may also include other parameters in the communication connection, which is not limited in this embodiment.
In this embodiment, after the communication rate between the electronic device and the functional module is adjusted, the electronic device may re-execute step 101 and step 102 until the communication connection between the electronic device and the functional module can meet the fault tolerance rate, and stop executing step 101 and step 102 when the maximum transmission rate is reached. For example, the fault tolerance may include at least one of a number of repeated requests and a number of transmission failures. In combination with the above example, the fault tolerance may be 1 time, and when the electronic device and the storage device may communicate with each other, the number of repeated requests is 1 time or less, or the number of transmission failures is 1 time or less, or the sum of the number of repeated requests and the number of transmission failures is 1 time or less, in each data writing or reading process, it is determined that the communication connection satisfies the fault tolerance. When the fault tolerance is satisfied, the electronic device and the functional module are caused to communicate at the maximum transmission rate, and at this time, the execution of steps 101 and 102 is stopped.
It should be noted that, in the process of adjusting the communication rate between the electronic device and the functional module, the electronic device may also increase the communication rate between the electronic device and the functional module. Methods of adjusting the communication rate between the electronic device and the functional module may include, but are not limited to, the methods described in the examples above.
In summary, in this embodiment, a function module is provided on an electronic device, the electronic device and the function module establish a communication connection in a wired manner, obtain communication quality information between the electronic device and the function module, adjust a communication rate between the electronic device and the function module according to a target abnormality determination condition when the communication quality information meets the target abnormality determination condition of a plurality of abnormality determination conditions, and reenter a step of obtaining the communication quality information between the electronic device and the function module until the communication between the electronic device and the function module reaches a maximum transmission rate when the fault tolerance is satisfied. In the communication connection between the electronic equipment and the functional module, when the hardware parameters of the electronic equipment and the functional module are not matched, the error rate in the data transmission process can be reduced and the communication quality can be improved by adjusting the communication rate between the electronic equipment and the functional module.
Referring to fig. 3, fig. 3 is a flowchart illustrating steps of another communication rate control method according to an embodiment of the present application, where the method may include:
step 301, determining a third target communication protocol with the highest communication rate from a plurality of communication protocols supported by the electronic device and the functional module.
Step 302, establishing a communication connection based on the highest communication rate supported by the third target communication protocol.
In one embodiment, the electronic device and the functional module may each support multiple communication protocols, and when the communication connection is first established, the electronic device may first determine a third target communication protocol having a highest communication rate, and then establish the communication connection with the functional module based on the highest communication rate supported by the third target communication protocol.
In combination with the above example, the memory card may be a TF card, and the electronic device and the memory card may support SDR (Single Date Rate) protocol, SDR50 protocol and SD8.0 protocol, where the SD8.0 protocol has a communication rate higher than the SDR104 protocol, and the SDR104 protocol has a communication rate higher than the SDR50 protocol. The user may set the SD8.0 protocol to have a higher priority than the SDR104 protocol, and the SDR104 protocol to have a higher priority than the SDR50 protocol, according to the communication rate of each communication protocol. When the communication connection with the functional module is established for the first time, the electronic device can firstly determine that the SD8.0 protocol with the highest communication rate is the third target communication protocol according to the order of the priority from big to small, then send a request to the TF to determine whether the TF card supports the SD8.0 protocol, after receiving the response information which is sent by the TF card and supports the SD8.0 protocol, the electronic device can acquire the preset highest communication rate supported by the SD8.0 protocol, and establish the communication connection with the TF card at the highest communication rate supported by the SD8.0 protocol. If the TF card does not support the SD8.0 protocol, the electronic device can select and determine the SDR104 protocol from the SDR104 protocol and the SDR50 protocol according to the priority order, and establish communication connection with the TF card through the highest communication protocol supported by the SDR104 protocol. The specific process of establishing the communication connection may be set according to requirements, which is not limited in this embodiment.
In practical application, when the electronic device and the functional module support multiple communication protocols, the electronic device can establish communication connection with the functional module according to the highest communication rate supported by the communication protocol with the highest communication rate when the communication connection with the functional module is initially established, so that the electronic device and the functional module can communicate at the highest communication rate when the communication connection is initially established. When the communication quality between the electronic equipment and the functional module is poor and the communication rate is reduced, the communication rate can be adjusted on the basis of the highest communication rate, so that the communication between the electronic equipment and the functional module can be performed at the highest possible communication rate while the communication quality is ensured.
Step 303, obtaining communication quality information between the electronic device and the functional module.
And step 304, when the communication quality information accords with the target abnormality judgment condition in the plurality of abnormality judgment conditions, the communication rate between the electronic equipment and the functional module is adjusted according to the target abnormality judgment condition, and the step of obtaining the communication quality information between the electronic equipment and the functional module is re-entered until the maximum transmission rate is reached under the condition that the communication between the electronic equipment and the functional module meets the fault tolerance rate.
Optionally, the method may further include:
determining a first target communication protocol with a communication rate lower than the current communication protocol under the condition that the reduced communication rate is lower than the lower rate limit of the current communication protocol;
based on the first target communication protocol, a communication connection between the electronic device and the functional module is reestablished.
In one embodiment, when the reduced communication rate is below a lower rate limit corresponding to the current communication protocol, the electronic device may reestablish a communication connection with the functional module using a communication protocol having a relatively low communication rate. In combination with the above example, if the current communication protocol of the electronic device is the SD8.0 protocol, after the electronic device reduces the communication rate, if the reduced communication rate is less than the lower rate limit of the SD8.0 protocol, the electronic device may select one of the SDR104 protocol and the SDR50 protocol as the first target communication protocol, and reestablish the communication connection with the TF card based on the first target communication protocol. The lower rate limit of the communication protocol may be the lowest communication rate supported by the communication protocol, or may be a communication rate determined by the user according to actual requirements from the range of communication rates supported by the communication protocol, and the specific setting method of the lower rate limit may be set according to requirements, which is not limited in this embodiment.
In practical applications, different communication protocols correspond to different communication rate ranges, and when the communication rate of the electronic device is lower than the lower rate limit of the current communication protocol, the communication rate cannot be increased by using the current communication protocol, and the electronic device may not normally communicate.
In this embodiment, when the reduced communication rate is lower than the lower rate limit of the current communication protocol, the communication connection between the electronic device and the functional module is reestablished according to the communication protocol with the lower communication rate, so that normal communication between the electronic device and the functional module can be ensured, and when the communication quality is further reduced, the communication rate is reduced again, so that the communication rate is convenient to adjust.
In one embodiment, if the electronic device includes a plurality of communication protocols in addition to the current communication protocol, among all communication protocols supported by the electronic device and the functional module, the electronic device may select a communication protocol with a highest communication rate from the plurality of communication protocols as the first target communication protocol. In combination with the above example, when the reduced communication rate is lower than the lower rate limit of the SD8.0 protocol, the electronic device may select, according to the priority order, the SDR104 protocol with a high communication rate from the SDR104 protocol and the SDR50 protocol as the first target communication protocol, and reestablish the communication connection with the memory card according to the SDR104 protocol. In the process of selecting the first target communication protocol, the electronic equipment selects the communication protocol with high communication rate, so that the electronic equipment and the functional module can communicate with each other with the highest communication rate.
In another embodiment, when the electronic device reestablishes a communication connection with the functional module based on the first target communication protocol, the communication connection with the functional module may be established based on a highest communication rate supported by the first target communication protocol.
In summary, in this embodiment, a function module is provided on an electronic device, the electronic device and the function module establish a communication connection in a wired manner, obtain communication quality information between the electronic device and the function module, adjust a communication rate between the electronic device and the function module according to a target abnormality determination condition when the communication quality information meets the target abnormality determination condition of a plurality of abnormality determination conditions, and reenter a step of obtaining the communication quality information between the electronic device and the function module until the communication between the electronic device and the function module reaches a maximum transmission rate when the fault tolerance is satisfied. In the communication connection between the electronic equipment and the functional module, when the hardware parameters of the electronic equipment and the functional module are not matched, the error rate in the data transmission process can be reduced and the communication quality can be improved by adjusting the communication rate between the electronic equipment and the functional module.
Optionally, after acquiring the communication quality information between the electronic device and the functional module, the method may further include:
under the condition that the communication quality information accords with the communication failure condition, determining a second target communication protocol with a communication rate lower than the current communication protocol;
and reestablishing the communication connection between the electronic equipment and the functional module based on the second target communication protocol.
In one embodiment, the non-communication condition indicates that the communication quality between the electronic device and the functional module is poor, and the electronic device and the functional module cannot normally communicate. The electronic device can determine that the current communication protocol is not matched with the functional module under the condition of poor communication quality, and can directly switch the communication protocol. In combination with the above examples, the user may preset a communication failure condition, where the communication failure condition corresponds to a communication condition where communication quality is poor and normal communication is not possible. For example, the communication disabled condition may be set to 10 times, when the number of repeated requests is 10 times or more, the electronic device needs to retransmit the data request for a plurality of times to read the data from the memory card, and when the number of transmission failures is 10 times or more, the electronic device needs to perform a plurality of write operations to write the data into the memory card, and the communication rate cannot meet the normal communication requirement. At this time, the electronic device may directly select, according to the priority of the communication protocol, the SDR104 protocol with a higher communication rate from the SDR104 protocol and the SDR50 protocol as the second target communication protocol, and reestablish the communication connection between the electronic device and the functional module based on the SDR104 protocol. The specific type and parameter values of the non-communication condition may be set according to the requirements, and the present embodiment is not limited thereto.
In practical application, when the communication quality information is very poor and normal communication is impossible, the electronic device can directly switch the communication protocol and reestablish the communication connection. The method can avoid the adjustment process of the communication rate, rapidly switch the communication protocol, and communicate with the functional module by using the communication protocol with lower communication rate, thereby rapidly stabilizing the communication connection between the electronic equipment and the functional module.
It should be noted that, in the communication rate control method provided in the embodiment of the present application, the execution body may be a communication rate control device, or a control module in the communication rate control device for executing the communication rate control method. In the embodiment of the present application, a communication rate control device is described by taking a communication rate control method performed by a communication rate control device as an example.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a communication rate control apparatus according to an embodiment of the present application, where an apparatus 400 includes:
an acquisition module 401, configured to acquire communication quality information between the electronic device and the functional module;
an adjustment module 402, configured to adjust a communication rate between the electronic device and the functional module according to the target abnormality determination condition when the communication quality information meets the target abnormality determination condition of the plurality of abnormality determination conditions, and reenter a step of acquiring the communication quality information between the electronic device and the functional module until the communication between the electronic device and the functional module reaches a maximum transmission rate when the fault tolerance is satisfied; wherein, the adjustment modes corresponding to different abnormality judgment conditions are different.
Optionally, the adjustment mode includes reducing the communication rate, and the speed reduction amplitudes corresponding to different abnormal judgment conditions are different; the adjustment module 402 includes an adjustment unit configured to reduce a communication rate between the electronic device and the functional module according to a deceleration range corresponding to the target abnormality determination condition when the communication quality information meets the target abnormality determination condition.
Optionally, the apparatus 400 may further include:
a first determining module, configured to determine, when the reduced communication rate reaches a lower rate limit of the current communication protocol, that the communication rate is lower than a first target communication protocol of the current communication protocol;
and the first reestablishing module is used for reestablishing the communication connection between the electronic equipment and the functional module based on the first target communication protocol.
Optionally, the apparatus 400 may further include:
the second determining module is used for determining a second target communication protocol with a communication rate lower than the current communication protocol under the condition that the communication quality information accords with the communication failure condition;
and the second reestablishing module is used for reestablishing the communication connection between the electronic equipment and the functional module based on the second target communication protocol.
Optionally, the apparatus 400 may further include:
A third determining module, configured to determine a third target communication protocol with the highest communication rate from multiple communication protocols supported by the electronic device and the functional module;
and the establishing module is used for establishing communication connection based on the highest communication rate supported by the third target communication protocol.
Optionally, the communication quality information includes at least one of a number of repeated requests and a number of transmission failures in the data transmission process; the adjusting unit is specifically configured to reduce a communication rate between the electronic device and the functional module according to a speed reduction range corresponding to a target repeat request number threshold when the repeat request number reaches the target repeat request number threshold of the multiple repeat request number thresholds; or under the condition that the transmission failure times reach the target transmission failure times threshold value in the transmission failure times threshold values, reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target transmission failure times threshold value.
In summary, in this embodiment, a function module is provided on an electronic device, the electronic device and the function module establish a communication connection in a wired manner, obtain communication quality information between the electronic device and the function module, adjust a communication rate between the electronic device and the function module according to a target abnormality determination condition when the communication quality information meets the target abnormality determination condition of a plurality of abnormality determination conditions, and reenter a step of obtaining the communication quality information between the electronic device and the function module until the communication between the electronic device and the function module reaches a maximum transmission rate when the fault tolerance is satisfied. In the communication connection between the electronic equipment and the functional module, when the hardware parameters of the electronic equipment and the functional module are not matched, the error rate in the data transmission process can be reduced and the communication quality can be improved by adjusting the communication rate between the electronic equipment and the functional module.
A communication rate control device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
One communication rate control device in the embodiments of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The communication rate control device provided in this embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 and fig. 3, and in order to avoid repetition, a description is omitted here.
As shown in fig. 5, fig. 5 is a schematic structural diagram of an electronic device provided in the embodiment of the present application, where the electronic device 500 includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of running on the processor 501, where the program or the instruction implements each process of the foregoing embodiment of the communication rate control method when executed by the processor 501, and the process can achieve the same technical effect, and is not repeated herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
The electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 610 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 610 is configured to obtain communication quality information between the electronic device and the functional module;
under the condition that the communication quality information accords with a target abnormality judgment condition in a plurality of abnormality judgment conditions, the communication rate between the electronic equipment and the functional module is adjusted according to the target abnormality judgment condition, and the step of obtaining the communication quality information between the electronic equipment and the functional module is re-entered until the communication between the electronic equipment and the functional module reaches the maximum transmission rate under the condition that the fault tolerance rate is met; wherein, the adjustment modes corresponding to different abnormality judgment conditions are different.
In summary, in this embodiment, a function module is provided on an electronic device, the electronic device and the function module establish a communication connection in a wired manner, obtain communication quality information between the electronic device and the function module, adjust a communication rate between the electronic device and the function module according to a target abnormality determination condition when the communication quality information meets the target abnormality determination condition of a plurality of abnormality determination conditions, and reenter a step of obtaining the communication quality information between the electronic device and the function module until the communication between the electronic device and the function module reaches a maximum transmission rate when the fault tolerance is satisfied. In the communication connection between the electronic equipment and the functional module, when the hardware parameters of the electronic equipment and the functional module are not matched, the error rate in the data transmission process can be reduced and the communication quality can be improved by adjusting the communication rate between the electronic equipment and the functional module.
Optionally, the adjustment mode includes reducing the communication rate, and the speed reduction amplitudes corresponding to different abnormal judgment conditions are different; the processor 610 is specifically configured to reduce a communication rate between the electronic device and the functional module according to a speed reduction range corresponding to the target abnormality determination condition when the communication quality information meets the target abnormality determination condition.
In the embodiment of the application, when the communication quality information acquired by the electronic device meets the abnormal judgment condition, it can be determined that the current communication quality is poor, and the electronic device can reduce the communication rate between the electronic device and the storage module. At this time, since the communication rate in the communication connection is lowered, the number of errors in the data transmission process can be reduced, thereby improving the communication quality.
Optionally, the processor 610 is further configured to determine that the communication rate is lower than the first target communication protocol of the current communication protocol if the reduced communication rate reaches a lower rate limit of the current communication protocol; based on the first target communication protocol, a communication connection between the electronic device and the functional module is reestablished.
In the embodiment of the application, when the reduced communication rate is lower than the lower rate limit of the current communication protocol, the communication connection between the electronic equipment and the functional module is reestablished according to the communication protocol with the lower communication rate, so that normal communication between the electronic equipment and the functional module can be ensured, and when the communication quality is further reduced, the communication rate is reduced again, and the communication rate is convenient to adjust.
Optionally, the processor 610 is further configured to determine, if the communication quality information meets an unable communication condition, a second target communication protocol having a communication rate lower than the current communication protocol; based on the second target communication protocol, a communication connection between the electronic device and the functional module is reestablished.
In the embodiment of the application, when the communication quality information is very poor and normal communication is impossible, the electronic device can directly switch the communication protocol and reestablish the communication connection. The method can avoid the adjustment process of the communication rate, rapidly switch the communication protocol, and communicate with the functional module by using the communication protocol with lower communication rate, thereby rapidly stabilizing the communication connection between the electronic equipment and the functional module.
Optionally, the processor 610 is further configured to determine, before acquiring the communication quality information between the electronic device and the functional module, a third target communication protocol with a highest communication rate from multiple communication protocols supported by the electronic device and the functional module; a communication connection is established based on the highest communication rate supported by the third target communication protocol.
In the embodiment of the application, when the electronic device and the functional module support multiple communication protocols, the electronic device can establish the communication connection with the functional module according to the highest communication rate supported by the communication protocol with the highest communication rate when the communication connection with the functional module is initially established, so that the electronic device and the functional module can communicate at the highest communication rate when the communication connection is initially established. When the communication quality between the electronic equipment and the functional module is poor and the communication rate is reduced, the communication rate can be adjusted on the basis of the highest communication rate, so that the communication between the electronic equipment and the functional module can be performed at the highest possible communication rate while the communication quality is ensured.
Optionally, the communication quality information includes at least one of a number of repeated requests and a number of transmission failures in the data transmission process; the processor 610 is specifically configured to, when the number of repeated requests reaches a target number of repeated requests threshold of the plurality of repeated request number thresholds, reduce a communication rate between the electronic device and the functional module according to a speed reduction range corresponding to the target number of repeated requests threshold; or under the condition that the transmission failure times reach the target transmission failure times threshold value in the transmission failure times threshold values, reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target transmission failure times threshold value.
In the embodiment of the application, the communication quality is determined according to at least one parameter of the repeated request times and the transmission failure times, and the error rate in the output transmission process can be accurately described due to the repeated request times and the transmission failure times, so that the communication quality between the electronic equipment and the functional module can be accurately determined. The target parameter may also include other parameters in the communication connection, which is not limited in this embodiment.
It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes image data of still pictures or videos obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6071, and the display panel 6071 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing embodiment of the communication rate control method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is configured to run a program or an instruction, implement each process of the above embodiment of the communication rate control method, and achieve the same technical effect, so as to avoid repetition, and not be repeated here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (8)

1. The communication rate control method is characterized by being applied to electronic equipment, wherein a functional module is arranged on the electronic equipment, and the electronic equipment and the functional module are in communication connection in a wired mode, and the method comprises the following steps:
acquiring communication quality information between the electronic equipment and the functional module; the communication between the electronic device and the functional module supports a plurality of communication protocols, wherein the communication protocols comprise SDR50 protocol, SDR104 protocol and SD8.0 protocol; wherein the SD8.0 protocol has a higher priority than the SDR104 protocol, and the SDR104 protocol has a higher priority than the SDR50 protocol; the electronic equipment comprises a CPU, and the functional module is a memory card;
when the communication quality information accords with a target abnormality determination condition in a plurality of abnormality determination conditions, adjusting the communication rate between the electronic equipment and the functional module according to the target abnormality determination condition, and re-entering the step of acquiring the communication quality information between the electronic equipment and the functional module until the communication between the electronic equipment and the functional module reaches the maximum transmission rate under the condition of meeting the fault tolerance rate; wherein, the adjustment modes corresponding to different abnormality judgment conditions are different;
The adjustment mode comprises the steps of reducing the communication rate, wherein the speed reduction amplitude corresponding to different abnormal judgment conditions is different; the adjusting the communication rate between the electronic device and the functional module according to the target abnormality determination condition when the communication quality information meets the target abnormality determination condition of a plurality of abnormality determination conditions includes:
under the condition that the communication quality information accords with the target abnormality judgment condition, reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target abnormality judgment condition;
the communication quality information comprises the number of transmission failures in the data transmission process; and when the communication quality information accords with the target abnormality determination condition, reducing the communication rate between the electronic device and the functional module according to the speed reduction range corresponding to the target abnormality determination condition, including:
and under the condition that the transmission failure times reach a target transmission failure times threshold value in a plurality of transmission failure times thresholds, reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target transmission failure times threshold value.
2. The method of claim 1, further comprising, after said reducing a communication rate between said electronic device and said functional module:
determining a first target communication protocol with a communication rate lower than the current communication protocol under the condition that the reduced communication rate reaches the lower rate limit of the current communication protocol;
and reestablishing the communication connection between the electronic equipment and the functional module based on the first target communication protocol.
3. The method according to claim 1, further comprising, after the acquiring the communication quality information between the electronic device and the functional module:
determining a second target communication protocol with a communication rate lower than the current communication protocol under the condition that the communication quality information accords with the communication failure condition;
and reestablishing the communication connection between the electronic equipment and the functional module based on the second target communication protocol.
4. The method of claim 1, further comprising, prior to said obtaining communication quality information between said electronic device and said functional module:
determining a third target communication protocol with highest communication rate from a plurality of communication protocols supported by the electronic equipment and the functional module;
And establishing the communication connection based on the highest communication rate supported by the third target communication protocol.
5. The method according to claim 2, wherein the communication quality information includes a number of repeated requests during data transmission; and when the communication quality information accords with the target abnormality determination condition, reducing the communication rate between the electronic device and the functional module according to the speed reduction range corresponding to the target abnormality determination condition, including:
and under the condition that the repeated request times reach a target repeated request times threshold value in a plurality of repeated request times threshold values, reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target repeated request times threshold value.
6. A communication rate control apparatus, comprising:
the acquisition module is used for acquiring the communication quality information between the electronic equipment and the functional module; the communication between the electronic device and the functional module supports a plurality of communication protocols, wherein the communication protocols comprise SDR50 protocol, SDR104 protocol and SD8.0 protocol; wherein the SD8.0 protocol has a higher priority than the SDR104 protocol, and the SDR104 protocol has a higher priority than the SDR50 protocol;
An adjusting module, configured to adjust, when the communication quality information meets a target abnormality determination condition of a plurality of abnormality determination conditions, a communication rate between the electronic device and the functional module according to the target abnormality determination condition, and reenter a step of acquiring the communication quality information between the electronic device and the functional module until the communication between the electronic device and the functional module reaches a maximum transmission rate when a fault tolerance rate is satisfied; wherein, the adjustment modes corresponding to different abnormality judgment conditions are different;
the adjustment mode comprises the steps of reducing the communication rate, wherein the speed reduction amplitude corresponding to different abnormal judgment conditions is different; the adjusting module comprises an adjusting unit and a control unit, wherein the adjusting unit is used for reducing the communication rate between the electronic equipment and the functional module according to the speed reduction amplitude corresponding to the target abnormality judgment condition under the condition that the communication quality information accords with the target abnormality judgment condition;
the communication quality information comprises the number of transmission failures in the data transmission process; the adjusting unit is specifically configured to reduce a communication rate between the electronic device and the functional module according to a speed reduction range corresponding to a target transmission failure frequency threshold when the transmission failure frequency reaches the target transmission failure frequency threshold of the multiple transmission failure frequency thresholds.
7. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the communication rate control method of any of claims 1-5.
8. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the communication rate control method according to any of claims 1-5.
CN202110689940.6A 2021-06-21 2021-06-21 Communication rate control method, device, equipment and readable storage medium Active CN113422620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110689940.6A CN113422620B (en) 2021-06-21 2021-06-21 Communication rate control method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110689940.6A CN113422620B (en) 2021-06-21 2021-06-21 Communication rate control method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113422620A CN113422620A (en) 2021-09-21
CN113422620B true CN113422620B (en) 2023-06-27

Family

ID=77789852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110689940.6A Active CN113422620B (en) 2021-06-21 2021-06-21 Communication rate control method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113422620B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710442B (en) * 2022-04-28 2023-04-25 浙江美云数据科技有限公司 Digital rural management system based on Internet of things
CN116722917B (en) * 2023-08-04 2023-10-10 深圳易天光通信有限公司 Optical module fault detection method, system and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090051864A (en) * 2007-11-20 2009-05-25 한국정보통신대학교 산학협력단 Method for selecting an adaptational transmission rate at multi-rate wireless communication system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11136396A (en) * 1997-10-31 1999-05-21 Canon Inc Communication equipment
JP5277562B2 (en) * 2007-04-19 2013-08-28 株式会社ニコン Electronic device, electronic camera and data transfer program
CN102654857A (en) * 2011-03-04 2012-09-05 希姆通信息技术(上海)有限公司 Communication method capable of simulating SPI protocol by adopting GPIO interface
US9729269B2 (en) * 2012-10-23 2017-08-08 Samsung Electronics Co., Ltd. Wireless communication system including communication apparatus and data communication method thereof
CN107506135B (en) * 2016-06-14 2022-05-06 杭州海康威视数字技术股份有限公司 Data processing method, device and system
CN108255747A (en) * 2017-12-28 2018-07-06 深圳市泛海三江科技发展有限公司 A kind of method and system of identification memory card

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090051864A (en) * 2007-11-20 2009-05-25 한국정보통신대학교 산학협력단 Method for selecting an adaptational transmission rate at multi-rate wireless communication system

Also Published As

Publication number Publication date
CN113422620A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US10475413B2 (en) Method and apparatus for adjusting backlight brightness of screen, and mobile terminal
CN113422620B (en) Communication rate control method, device, equipment and readable storage medium
DE112013007744B3 (en) DEVICE, SYSTEM AND METHOD FOR PROVIDING WIRELESS COMMUNICATION BETWEEN DEVICES
US11845451B2 (en) Automobile diagnostic method, apparatus, device and system, and diagnostic connection device
EP3000045B1 (en) Apparatus and method of recognizing external device in a communication system
US10999085B2 (en) Power control method, device and electronic equipment in ethernet power supply system
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN107995286B (en) Automatic service starting and stopping method based on dubbo platform, server and storage medium
CN112637013B (en) CAN bus message abnormity detection method and device, equipment and storage medium
EP2725506A2 (en) Apparatus and method for displaying loading state of web browser in portable terminal
US20140215012A1 (en) Method and apparatus for executing application of mobile device
CN109309735B (en) Connection processing method, server, system and storage medium
US20230067867A1 (en) Display screen controlling method and apparatus
CN109964493B (en) Network connection detection method, device, terminal and computer storage medium
CN112615923A (en) Single-page application page display control method and device, terminal equipment and server
CN112965799B (en) Task state prompting method and device, electronic equipment and medium
CN112612745A (en) Data transmission method and device, electronic equipment and readable storage medium
US20230378767A1 (en) Charging control method and apparatus, electronic device, and charger
CN116644011B (en) Quick identification method, device and equipment of I2C equipment and storage medium
US20180262707A1 (en) Method for Processing Ordered Broadcast and Electronic Device
CN107566215A (en) Wireless network cutout detection method, device, storage medium and mobile terminal
CN114025419B (en) Method and device for adjusting radio frequency power, electronic equipment and storage medium
CN113676434A (en) Network resource fusing method and device, electronic equipment and storage medium
CN105898989A (en) Function expanding PCB device, module board and method
US11847089B2 (en) Electronic device and method for sharing data lanes of a network interface device between two or more computing devices

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
GR01 Patent grant
GR01 Patent grant