A communication base station determination method, module, terminal and readable storage medium

By sending test data in the terminal and determining the cumulative timeout number to select a communication base station, the problem of data transmission instability caused by the randomness of the base station signal is solved, and more stable data transmission is achieved.

CN114845333BActive Publication Date: 2025-02-18GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210288982.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2025-02-18
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

In the prior art, the randomness and variation of frequency point intensity of base station signals lead to unstable data transmission, and simple instantaneous signal intensity detection cannot effectively solve this problem.

Method used

By sending test data to the first base station randomly selected among at least two available base stations, and determining the cumulative timeout number of its feedback data, when the cumulative number of transmissions and cumulative timeout number meets the preset conditions, the first base station is used as the communication base station; Otherwise, select the second base station to retest.

Benefits of technology

By sending test data multiple times and receiving feedback data, a base station that meets the preset conditions is determined, which avoids the randomness of instantaneous signal strength detection, and selects a base station with stable and reliable communication signals, improving the stability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114845333B_ABST
    Figure CN114845333B_ABST
Patent Text Reader

Abstract

The present application provides a method, module, terminal and readable storage medium for determining a communication base station, and belongs to the technical field of data transmission. The method includes: sending test data to a first base station, wherein the first base station is randomly selected from at least two available base stations; determining the cumulative timeout number of feedback data sent by the first base station, wherein each feedback data corresponds to one test data; if the cumulative number of times the test data is sent and the cumulative number of timeouts meet the preset conditions, the first base station is used as a communication base station; if the cumulative number of times the test data is sent and the cumulative number of timeouts do not meet the preset conditions, a second base station is selected to resend the test data. The present application can improve the stability of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a method for determining a communication base station, a module, a terminal and a readable storage medium. Background Art

[0002] The data transmission of communication equipment is carried out through base stations. The base station has a wide network coverage and a large number of terminals that can be connected, which greatly saves equipment costs. If the terminal wants to select the base station with the best communication quality, it generally detects the instantaneous strength based on the strength of base stations at the same level, and then selects the base station with the largest signal strength as the communication base station.

[0003] However, since the frequency strength of base station signals is random and variable, if only the instantaneous strength is detected, signal fluctuations may occur during subsequent communications, resulting in unstable data transmission. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, module, terminal and readable storage medium for determining a communication base station to solve the problem of unstable data transmission. The specific technical solution is as follows:

[0005] In a first aspect, a method for determining a communication base station is provided, the method comprising:

[0006] Sending test data to a first base station, wherein the first base station is randomly selected from at least two available base stations;

[0007] Determine a cumulative number of timeouts of feedback data sent by the first base station, wherein each feedback data corresponds to one test data;

[0008] If the cumulative number of times the test data is sent and the cumulative number of timeouts meet preset conditions, the first base station is used as a communication base station;

[0009] If the cumulative number of times the test data is sent and the cumulative number of timeouts do not meet the preset condition, a second base station is selected to resend the test data.

[0010] Optionally, determining that the cumulative number of sending times and the cumulative number of timeout times do not satisfy a preset condition includes:

[0011] If the accumulated timeout times are greater than or equal to the first feedback times threshold, it is determined that the preset condition is not met; or,

[0012] If the cumulative number of timeouts is less than the first feedback number threshold, the cumulative number of sending is determined; if the cumulative number of sending is greater than or equal to the preset sending number threshold, and the cumulative number of timeouts is greater than the second feedback number threshold, it is determined that the preset condition is not met, wherein the first feedback number threshold is greater than the second feedback number threshold.

[0013] Optionally, determining whether the cumulative number of sending times and the cumulative number of timeout times meet a preset condition includes:

[0014] If the cumulative number of timeouts is less than the first feedback number threshold, determining the cumulative number of transmissions;

[0015] If the accumulated number of sending times is greater than or equal to a preset sending times threshold, and the accumulated number of timeouts is less than or equal to a second feedback times threshold, it is determined that the preset condition is met.

[0016] Optionally, the method further includes: determining that the cumulative number of timeouts is less than the first feedback number threshold, and after determining the cumulative number of sending times, the method further includes:

[0017] If the accumulated number of transmissions is less than the preset transmission threshold, test data is reselected and sent to the first base station.

[0018] Optionally, determining whether the cumulative number of timeouts is less than a first feedback number threshold includes:

[0019] Starting a timer each time test data is sent, wherein the timer is used to record the feedback duration of the feedback data;

[0020] receiving feedback data sent by the first base station;

[0021] If the feedback data is valid and exceeds the preset time range, resend the test data to the first base station, and add one to the existing feedback timeout number to obtain the cumulative timeout number; determine whether the cumulative timeout number is less than the first feedback number threshold;

[0022] If the feedback data does not exceed the preset time range, it is determined whether the current accumulated timeout times are less than the first feedback times threshold.

[0023] Optionally, the determining a cumulative number of timeouts of feedback data sent by the first base station further includes:

[0024] If the feedback data is not received within the preset time range, the accumulated timeout number is obtained by adding one to the existing feedback timeout number; or,

[0025] If the feedback data is received within a preset time period, the feedback data is discarded according to the feedback data identifier and the feedback data content of the feedback data, and one is added to the existing feedback timeout number to obtain the cumulative timeout number.

[0026] Optionally, sending the test data to the first base station includes:

[0027] randomly extracting test data from a test data queue each time, wherein the test data queue contains different types of test data, and the transmission efficiency of different types of test data is different;

[0028] The test data is sent to the first base station.

[0029] In a second aspect, a communication base station determination module is provided, the module comprising:

[0030] A sending module, configured to send test data to a first base station, wherein the first base station is randomly selected from at least two available base stations;

[0031] A determination module, configured to determine a cumulative number of timeouts of feedback data sent by the first base station, wherein each feedback data corresponds to one test data;

[0032] The first module is used to use the first base station as a communication base station if the cumulative number of times the test data is sent and the cumulative number of timeouts meet preset conditions;

[0033] The second module is used to select a second base station to resend the test data if the cumulative number of times the test data is sent and the cumulative number of timeouts do not meet the preset condition.

[0034] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0035] Memory, used to store computer programs;

[0036] The processor is used to implement any of the steps of the method for determining a communication base station when executing a program stored in the memory.

[0037] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any of the steps of the method for determining a communication base station.

[0038] Beneficial effects of the embodiments of the present application:

[0039] The embodiment of the present application provides a method for determining a communication base station. The terminal does not simply detect the instantaneous signal strength of the base station, but sends test data and receives feedback data multiple times during the test process. When the cumulative number of test data transmissions and the cumulative number of feedback data timeouts do not meet the preset conditions, the next base station is selected for retesting, and the base station that meets the preset conditions is used as the communication base station. The present application spends time testing at the initial stage of networking, avoiding the randomness of instantaneous signal strength detection, thereby selecting a base station with a stable and reliable communication signal for subsequent communication, which can improve the stability of data transmission.

[0040] Of course, implementing any product or method of the present application does not necessarily require achieving all of the above advantages at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 A schematic diagram of the hardware environment of a method for determining a communication base station provided in an embodiment of the present application;

[0043] Figure 2 A flow chart of a method for determining a communication base station provided in an embodiment of the present application;

[0044] Figure 3 A processing flow chart of a communication base station determination method provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of the structure of a determination module of a communication base station provided in an embodiment of the present application;

[0046] Figure 5 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0048] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.

[0049] In order to solve the problem mentioned in the background technology, according to one aspect of an embodiment of the present application, an embodiment of a method for determining a communication base station is provided.

[0050] Optionally, in the embodiment of the present application, the above communication base station determination method can be applied to: Figure 1 In the hardware environment composed of the terminal 101 and the base station 103 shown in FIG. Figure 1 As shown, the base station 103 is connected to the terminal 101 via a network and can be used to provide services for the terminal. A database 105 can be set on a server or independently of the server to provide data storage services for the terminal 101. The above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 includes but is not limited to a PC, a mobile phone, a tablet computer, a smart door lock, etc.

[0051] An embodiment of the present application provides a method for determining a communication base station, which can be applied to a terminal to select a communication base station from at least two base stations.

[0052] The following will describe in detail a method for determining a communication base station provided in an embodiment of the present application in conjunction with a specific implementation manner. Figure 2 As shown, the specific steps are as follows:

[0053] Step 201: Send test data to a first base station.

[0054] The first base station is randomly selected from at least two available base stations.

[0055] In an embodiment of the present application, an available base station is a base station whose signal strength with the terminal meets the basic communication requirements. The terminal randomly selects a first base station from at least two available base stations, and then sends random test data to the first base station. Among them, the first base station can be an NB-IOT (Narrow Band Internet of Things) base station, a CDMA (Code Division Multiple Access) base station, or a GSM (Wideband Code Division Multiple Access) base station. This application does not specifically limit the type of base station.

[0056] Step 202: Determine the cumulative number of timeouts of feedback data sent by the first base station.

[0057] Among them, each feedback data corresponds to one test data.

[0058] In an embodiment of the present application, when the terminal sends test data to the first base station, it will receive feedback data sent by the first base station, so that each feedback data corresponds to a test data. Every time the terminal sends test data to the first base station, the timer is turned on, and the timer records the feedback duration of the feedback data. The terminal can determine the cumulative number of timeouts of the feedback data based on the feedback data content and feedback duration of the feedback data. Specifically, if the feedback data is invalid, one is added to the existing timeout number; if the feedback data is valid and the feedback duration exceeds the preset duration range, one is added to the existing timeout number.

[0059] Step 203: Determine whether the cumulative number of test data transmissions and the cumulative number of timeouts meet preset conditions.

[0060] In the embodiment of the present application, after sending the test data, the terminal determines the cumulative number of times the test data is sent, and then determines whether the cumulative number of times and the cumulative number of timeouts meet the preset conditions. If so, step 204 is executed, and if not, step 205 is executed.

[0061] Step 204: Use the first base station as a communication base station.

[0062] If the terminal determines that the cumulative number of transmissions and the cumulative number of timeouts meet the preset conditions, indicating that the communication signal of the first base station is stable and the data transmission is stable, the first base station is used as the communication base station.

[0063] Step 205: Select a second base station to resend the test data.

[0064] If the terminal determines that the cumulative number of transmissions and the cumulative number of timeouts do not meet the preset conditions, it indicates that the communication signal of the first base station is unstable and the data transmission is unstable. Then the terminal disconnects the communication connection with the first base station, randomly selects a second base station from the available base stations to resend the test data, and then receives the feedback data sent by the second base station. If the cumulative number of transmissions and the cumulative number of timeouts of the second base station meet the preset conditions, indicating that the communication signal of the second base station is stable and the data transmission is stable, the second base station is used as the communication base station for subsequent data transmission. Among them, when selecting the second base station, the terminal will automatically block the first base station that does not meet the unstable communication signal to avoid wasting detection time by selecting the first base station again.

[0065] In this application, the terminal does not simply detect the instantaneous signal strength of the base station, but sends test data and receives feedback data multiple times during the test process. When the cumulative number of test data transmissions and the cumulative number of feedback data timeouts do not meet the preset conditions, the next base station is selected for retesting, and the base station that meets the preset conditions is used as the communication base station. This application spends time testing in the early stage, avoiding the randomness of instantaneous signal strength detection, thereby selecting a base station with a stable and reliable communication signal for subsequent communication, which can improve the stability of data transmission.

[0066] As an optional implementation, determining whether the cumulative number of timeouts is less than a first feedback number threshold includes: starting a timer each time test data is sent, wherein the timer is used to record the feedback duration of the feedback data; receiving feedback data sent by the first base station; if the feedback data is valid and exceeds a preset duration range, resending the test data to the first base station, and adding one to the existing feedback timeout number to obtain the cumulative number of timeouts; determining whether the cumulative number of timeouts is less than a first feedback number threshold; if the feedback data does not exceed the preset duration range, determining whether the current cumulative number of timeouts is less than the first feedback number threshold.

[0067] In the embodiment of the present application, the database pre-stores the first feedback number threshold and the preset duration range of the feedback duration. The terminal starts the timer each time it sends test data, and when the terminal receives the feedback data sent by the first base station, the timer stops timing, so that the timer can be used to record the feedback duration of the feedback data.

[0068] After the terminal sends the test data to the first base station, it determines whether the feedback data is valid based on the feedback from the first base station. If the terminal determines that the feedback data is valid and the feedback duration of the feedback data does not exceed the preset duration range, indicating that the feedback data of the first base station has not timed out, the timer will be automatically reset to prepare for the next start. If the terminal determines that the feedback data is valid and the feedback duration of the feedback data exceeds the preset duration range, indicating that the feedback data of the first base station has timed out, then add one to the existing feedback timeout count to obtain the cumulative timeout count, continue to randomly obtain test data, and then send the test data to the first base station. After obtaining the cumulative timeout count, the terminal needs to determine whether the current cumulative timeout count is less than the first feedback count threshold.

[0069] If the terminal determines that the feedback data is valid and the feedback data does not exceed the preset time range, it indicates that the feedback data of the first base station has not timed out. At this time, it should also determine whether the current cumulative timeout times are less than the first feedback times threshold.

[0070] If the terminal determines that the cumulative number of timeouts is greater than or equal to the first feedback threshold, it means that the cumulative number of timeouts since the test data was sent to the first base station is very large. In this case, it is determined that the preset conditions are not met and the communication stability of the first base station is poor. Then the test data is reselected and sent to the second base station to determine the communication stability of the second base station.

[0071] If the terminal determines that the cumulative number of timeouts is less than the first feedback number threshold, indicating that the cumulative number of timeouts is not too many, it continues to determine whether the cumulative number of transmissions is greater than or equal to the preset transmission number threshold.

[0072] If the terminal determines that the cumulative number of transmissions is less than the preset transmission number threshold, it indicates that the current cumulative number of timeouts is not too many and the cumulative number of transmissions is small, and the communication stability of the first base station needs to be further determined, then the test data continues to be selected to be sent to the first base station; if the terminal determines that the cumulative number of transmissions is greater than or equal to the preset transmission number threshold, it indicates that although the current cumulative number of timeouts is not too many, the cumulative number of transmissions is sufficient. At this time, it is necessary to set a second feedback number threshold that is smaller than the first feedback number threshold, and judge whether the cumulative timeouts are greater than or equal to the second feedback number threshold.

[0073] If the terminal determines that the cumulative timeout number is less than the second feedback number threshold, it indicates that the cumulative timeout number is small enough, and the stability of the first base station is determined to be strong, and the first base station is used as the communication base station. If the terminal determines that the cumulative timeout number is greater than or equal to the second feedback number threshold, it indicates that the cumulative number of transmissions is large enough and the cumulative timeout number is also large, then the second base station is selected from the available base stations, and the stability of the second base station is continuously tested in the above manner.

[0074] According to the above, there are two situations in which the cumulative number of sending times and the cumulative number of timeouts do not meet the preset conditions: one is that the cumulative number of timeouts is greater than or equal to the first feedback number threshold, then it is determined that the preset conditions are not met; the other is that the cumulative number of timeouts is less than the first feedback number threshold, then the cumulative number of sending times is determined, if the cumulative number of sending times is greater than or equal to the preset sending number threshold, and the cumulative number of timeouts is greater than the second feedback number threshold, then it is determined that the preset conditions are not met, wherein the first feedback number threshold is greater than the second feedback number threshold.

[0075] The cumulative number of sending times and the cumulative number of timeouts satisfying the preset conditions include one situation: that is, the cumulative number of timeouts is less than the first feedback number threshold, then the cumulative number of sending times is determined; if the cumulative number of sending times is greater than or equal to the preset sending number threshold, and the cumulative number of timeouts is less than or equal to the second feedback number threshold, then it is determined that the preset conditions are met.

[0076] Optionally, the embodiment of the present application also provides a processing flow chart of a method for determining a communication base station, such as Figure 3 As shown, the specific steps are as follows.

[0077] Step 301: The terminal randomly selects a base station from at least two available base stations that meet communication requirements according to signal strength.

[0078] Step 302: The terminal randomly sends test data to the base station.

[0079] Step 303: Determine whether the feedback duration has timed out based on the timer. If so, execute step 304 and step 302 simultaneously; if not, execute step 305.

[0080] Step 304: Add one to the existing number of feedback timeouts to obtain the cumulative number of timeouts.

[0081] Step 305: Determine whether the cumulative number of timeouts is ≥ If the first feedback times threshold x is greater than or equal to, the process returns to step 301 ; if it is less than, the process executes step 306 .

[0082] Step 306: Determine whether the cumulative number of transmissions is ≥ If the preset sending times threshold y is greater than or equal to y, then execute step 307 ; if it is less than y, then return to step 302 .

[0083] Step 307: Determine whether the cumulative number of timeouts is ≥ If the first feedback times threshold kx is less than, then execute step 308; if it is greater than or equal to, then return to step 301. <k<1。

[0084] Step 308: Use the base station as a communication base station.

[0085] Exemplarily, the preset sending times threshold y is 100, the first feedback times threshold x is 50, and the second feedback times threshold x is 25. If the terminal determines the cumulative timeout times ≥ 50, then reselect the base station, if it is determined that the cumulative timeout times are <50, then determine whether the cumulative number of transmissions ≥ 100. If the cumulative number of transmissions is less than 100, continue to send test data to the base station. ≥ 100, then determine whether the number of timeouts has accumulated ≥ 25. If the cumulative number of timeouts ≥ 25, then reselect the base station. If the cumulative timeout times are <25, then the base station will be used as the communication base station.

[0086] As an optional implementation manner, determining the cumulative number of timeouts of feedback data sent by the first base station further includes: if the feedback data is invalid, adding one to the existing number of feedback timeouts to obtain the cumulative number of timeouts.

[0087] In an embodiment of the present application, after the terminal sends the test data to the first base station, it determines whether the feedback data is valid based on the feedback from the first base station within a preset time range. If the terminal determines that the feedback data is invalid, it is considered that the feedback data has timed out, and one is added to the existing feedback timeout count to obtain the cumulative timeout count. In the present application, the terminal determines the cumulative timeout count based on whether the feedback data is valid.

[0088] As an optional implementation, determining that the feedback data is invalid includes: not receiving the feedback data within a preset time period, or receiving the feedback data within a preset time period; and discarding the feedback data based on the feedback data identifier and the feedback data content.

[0089] In the embodiment of the present application, the terminal determines that the feedback data is invalid in two cases. In one case, the first base station does not receive the test data, or does not send the feedback data, or the feedback data is lost during the sending process. In this case, the terminal does not receive the feedback data within the preset time range, and the feedback data is considered invalid. In another case, the terminal receives the feedback data sent by the first base station and identifies the feedback data identifier and the feedback data content of the feedback data. If the feedback data content is determined to be wrong according to the feedback data identifier, indicating that the feedback data is lost or wrong, the feedback data is discarded.

[0090] In this application, the server determines the cumulative number of timeouts in three cases: one is that no feedback data is received within a preset time range, another is that feedback data is received within a preset time range but the feedback data is discarded, and the third is that the feedback data is valid and the feedback time exceeds a preset time threshold. This application takes into account multiple cases and improves the accuracy of determining the cumulative number of timeouts.

[0091] As an optional implementation, discarding feedback data according to the feedback data identifier and feedback data content of the feedback data includes: determining the feedback data identifier and feedback data content of the feedback data; obtaining preset data content of the feedback data from a database according to the feedback data identifier, wherein the database stores a correspondence between the data identifier and the data content; and discarding the feedback data when the feedback data content is different from the preset data content.

[0092] In the embodiment of the present application, after the terminal obtains the feedback data sent by the first base station, it identifies the feedback data identifier and the feedback data content of the feedback data, wherein each feedback data has a corresponding feedback data identifier, and the server stores the corresponding relationship between the data identifier and the data content. The terminal obtains the preset data content of the feedback data from the database according to the feedback data identifier.

[0093] The terminal determines whether the feedback data content is the same as the preset data content. If they are the same, it indicates that the first base station did not lose data or have data errors when sending the feedback data, and this is normal data. If they are not the same, it indicates that the first base station lost data or had data errors when sending the feedback data, and the terminal discards the erroneous data and adds one to the existing feedback timeout times to obtain the cumulative timeout times.

[0094] As an optional implementation, sending test data to the first base station includes: randomly extracting test data from a test data queue each time, wherein the test data queue contains different types of test data, and different types of test data have different transmission efficiencies; and sending the test data to the first base station.

[0095] In an embodiment of the present application, the test data queue contains different types of test data, and the transmission efficiency of different types of test data is different. The terminal randomly extracts test data from the test data queue, so that different types of test data can be extracted, which increases the integrity of the test data type, ensures that the type of data that needs to be transmitted can be tested, and further improves the stability of data transmission.

[0096] The terminal may randomly extract test data after receiving valid feedback data, extract test data within a preset time period without receiving feedback data, or extract test data at regular intervals.

[0097] Based on the same technical concept, the embodiment of the present application also provides a determination module of a communication base station, such as Figure 4 As shown, the module includes:

[0098] A sending module 401 is configured to send test data to a first base station, wherein the first base station is randomly selected from at least two available base stations;

[0099] The determination module 402 is used to determine the cumulative timeout number of feedback data sent by the first base station, wherein each feedback data corresponds to one test data;

[0100] The first module 403 is used to use the first base station as a communication base station if the cumulative number of test data transmissions and the cumulative number of timeouts meet preset conditions;

[0101] The second module 404 is configured to select a second base station to resend the test data if the cumulative number of times the test data is sent and the cumulative number of times the test data is overwritten do not meet a preset condition.

[0102] Optionally, the second module 404 is used to:

[0103] If the accumulated timeout times are greater than or equal to the first feedback times threshold, it is determined that the preset condition is not met; or,

[0104] If the cumulative number of timeouts is less than the first feedback number threshold, the cumulative number of sending is determined; if the cumulative number of sending is greater than or equal to the preset sending number threshold, and the cumulative number of timeouts is greater than the second feedback number threshold, it is determined that the preset condition is not met, wherein the first feedback number threshold is greater than the second feedback number threshold.

[0105] Optionally, the first module 403 is used to:

[0106] If the cumulative number of timeouts is less than the first feedback number threshold, the cumulative number of sending is determined; if the cumulative number of sending is greater than or equal to the preset sending number threshold and the cumulative number of timeouts is less than or equal to the second feedback number threshold, it is determined that the preset condition is met.

[0107] Optionally, the device is also used for:

[0108] If the accumulated number of transmissions is less than the preset transmission number threshold, the test data is reselected and sent to the first base station.

[0109] Optionally, the device is also used for:

[0110] A timer is started each time test data is sent, wherein the timer is used to record the feedback duration of the feedback data;

[0111] receiving feedback data sent by the first base station;

[0112] If the feedback data is valid and exceeds the preset time range, resend the test data to the first base station, and add one to the existing feedback timeout number to obtain the cumulative timeout number; determine whether the cumulative timeout number is less than the first feedback number threshold;

[0113] If the feedback data does not exceed the preset time range, it is determined whether the current cumulative timeout times are less than the first feedback times threshold.

[0114] Optionally, the device is also used for:

[0115] If no feedback data is received within the preset time range, the current number of feedback timeouts is added by one to obtain the cumulative number of timeouts; or,

[0116] If feedback data is received within the preset time period, the feedback data is discarded according to the feedback data identifier and the feedback data content of the feedback data, and one is added to the existing feedback timeout number to obtain the cumulative timeout number.

[0117] Optionally, the sending module 401 is used for:

[0118] Each time, test data is randomly selected from the test data queue, wherein the test data queue contains different types of test data, and the transmission efficiency of different types of test data is different;

[0119] The test data is sent to the first base station.

[0120] According to another aspect of the embodiment of the present application, the present application provides a terminal, such as Figure 5 As shown, it includes a memory 503, a processor 501, a communication interface 502 and a communication bus 504. The memory 503 stores a computer program that can be run on the processor 501. The memory 503 and the processor 501 communicate through the communication interface 502 and the communication bus 504. When the processor 501 executes the computer program, the steps of the above method are implemented.

[0121] The memory and processor in the above terminal communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.

[0122] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0123] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0124] According to another aspect of the embodiments of the present application, a computer-readable medium having a non-volatile program code executable by a processor is provided.

[0125] Optionally, in an embodiment of the present application, a computer-readable medium is configured to store program code for the processor to execute the above method.

[0126] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0127] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.

[0128] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0129] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0130] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0132] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0135] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0136] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for determining a communication base station, characterized in that: The method comprises: Sending test data to a first base station, wherein the first base station is randomly selected from at least two available base stations; Determine a cumulative number of timeouts of feedback data sent by the first base station, wherein each feedback data corresponds to one test data; If the cumulative number of times the test data is sent and the cumulative number of timeouts meet preset conditions, the first base station is used as a communication base station; If the cumulative number of times the test data is sent and the cumulative number of timeouts do not meet the preset condition, a second base station different from the first base station is selected as a new first base station, and based on the new first base station, the steps of sending the test data to the first base station and subsequent steps are re-executed until the cumulative number of times the test data is sent and the cumulative number of timeouts meet the preset condition, and the first base station that meets the preset condition is used as the communication base station; The cumulative number of transmissions and the cumulative number of timeouts satisfying the preset conditions are determined by the following steps: Determine whether the cumulative number of timeouts is less than a first feedback number threshold, and if the cumulative number of timeouts is less than the first feedback number threshold, determine the cumulative number of sending times; If the accumulated number of sending times is greater than or equal to a preset sending times threshold, and the accumulated number of timeouts is less than or equal to a second feedback times threshold, it is determined that the preset condition is met.

2. The method according to claim 1, characterized in that If the cumulative number of transmissions and the cumulative number of timeouts do not meet the preset condition, the following steps are performed to determine: If the accumulated timeout times are greater than or equal to the first feedback times threshold, it is determined that the preset condition is not met; or, Determine whether the cumulative number of timeouts is less than a first feedback number threshold, and if the cumulative number of timeouts is less than the first feedback number threshold, determine the cumulative number of sending times; If the cumulative number of sending times is greater than or equal to the preset sending times threshold, and the cumulative number of timeouts is greater than the second feedback times threshold, it is determined that the preset condition is not met, wherein the first feedback times threshold is greater than the second feedback times threshold.

3. The method according to claim 1 or 2, characterized in that: If the accumulated timeout times are less than the first feedback times threshold, after determining the accumulated sending times, the method further includes: If the accumulated number of transmissions is less than the preset transmission threshold, test data is reselected and sent to the first base station.

4. The method according to claim 1 or 2, characterized in that: The determining whether the cumulative number of timeouts is less than the first feedback number threshold comprises: Starting a timer each time test data is sent, wherein the timer is used to record the feedback duration of the feedback data; receiving feedback data sent by the first base station; If the feedback data is valid and exceeds the preset time range, resend the test data to the first base station, and add one to the existing feedback timeout number to obtain the cumulative timeout number; determine whether the cumulative timeout number is less than the first feedback number threshold; If the feedback data does not exceed the preset time range, it is determined whether the current accumulated timeout times are less than the first feedback times threshold.

5. The method according to claim 1, characterized in that The determining the accumulated timeout number of feedback data sent by the first base station includes: If the feedback data is not received within the preset time range, the accumulated timeout number is obtained by adding one to the existing feedback timeout number; or, If the feedback data is received within the preset time period, the feedback data is discarded according to the feedback data identifier and the feedback data content of the feedback data, and one is added to the existing feedback timeout number to obtain the cumulative timeout number; or, If the feedback data received within the preset time period is invalid, the existing timeout number is added by one to obtain the cumulative timeout number.

6. The method according to claim 5, characterized in that According to the feedback data identifier and the feedback data content of the feedback data, discarding the feedback data includes: Determine the feedback data identifier and feedback data content of the feedback data; According to the feedback data identifier, obtaining preset data content of the feedback data from a database, wherein the database stores a corresponding relationship between the data identifier and the data content; When the content of the feedback data is different from the content of the preset data, the feedback data is discarded.

7. The method according to claim 1, characterized in that The sending of test data to the first base station comprises: randomly extracting test data from a test data queue each time, wherein the test data queue contains different types of test data, and the transmission efficiency of different types of test data is different; The test data is sent to the first base station.

8. A communication base station determination module, characterized in that: The module includes: A sending module, configured to send test data to a first base station, wherein the first base station is randomly selected from at least two available base stations; A determination module, configured to determine a cumulative number of timeouts of feedback data sent by the first base station, wherein each feedback data corresponds to one test data; The first module is used to use the first base station as a communication base station if the cumulative number of times the test data is sent and the cumulative number of timeouts meet preset conditions; The second is a module, which is used to select a second base station different from the first base station as a new first base station if the cumulative number of times the test data is sent and the cumulative number of timeouts do not meet the preset condition, and re-execute the sending module and subsequent modules based on the new first base station until the cumulative number of times the test data is sent and the cumulative number of timeouts meet the preset condition, and then use the first base station that meets the preset condition as a communication base station; Among them, the first one is used as a module for: Determine whether the cumulative number of timeouts is less than a first feedback number threshold, and if the cumulative number of timeouts is less than the first feedback number threshold, determine the cumulative number of sending times; If the accumulated number of sending times is greater than or equal to a preset sending times threshold, and the accumulated number of timeouts is less than or equal to a second feedback times threshold, it is determined that the preset condition is met.

9. A terminal, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Distributed terminal communication quality monitoring method, storage medium and computing device

    CN112134645A

  • Base station switching method and device and storage medium

    WO2020113576A1