Data transmission parameter determination method and device, terminal and storage medium
By acquiring signal quality and link information and determining the target data transmission parameters, the problems of inconvenient data transmission and high power consumption under weak signal fields are solved, and data transmission efficiency and convenience are improved.
Patent Information
- Application Number
- CN202111321151.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-11-09
AI Technical Summary
In the case of weak signal fields, existing data transmission technology causes terminals to frequently rebuild data links and retransmit data packets, resulting in low data transmission convenience and large power consumption.
By obtaining signal quality information and link information, determining the target data transmission parameters, and adopting data transmission strategies corresponding to signal quality, reducing the situation of repeatedly reconstructing data links and retransmitting data packets, and reducing the frequency of establishing data links on the protocol stack.
It improves the convenience and efficiency of data transmission, reduces terminal power consumption, and reduces misjudgment of data transmission parameters caused by signal quality fluctuations.
Smart Images

Figure CN116112352B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for determining data transmission parameters, a terminal, and a storage medium. Background Art
[0002] Data transmission is the transmission of data from the data source to the data terminal through one or more data links according to certain procedures. Its main function is to realize the transmission and exchange of information between points. The data transmission part plays an important role in the entire communication system. With the development of science and technology, the development of data transmission technology is also becoming more and more rapid. Therefore, how to improve the convenience of data transmission has become the focus of people's attention. Summary of the invention
[0003] The present application provides a data transmission parameter determination method, a terminal and a storage medium, the main purpose of which is to improve the convenience of data transmission while reducing terminal power consumption.
[0004] According to one aspect of the present application, a method for determining a data transmission parameter is provided, comprising:
[0005] Acquiring first signal quality information;
[0006] If the first signal quality information does not meet the quality information condition, sending a detection data packet to the server, and determining the first link information based on the first response information of the server to the detection data packet;
[0007] If the first link information does not meet the link information condition, a target data transmission parameter is determined based on the first signal quality information and the first link information, and the target data transmission parameter is used for data transmission.
[0008] Optionally, the acquiring the first signal quality information includes:
[0009] Based on the signal quality parameter and / or the signal quality map, first signal quality information is determined.
[0010] Optionally, after acquiring the first signal quality information, the method further includes:
[0011] Acquire a first initial data transmission parameter;
[0012] If the first signal quality information satisfies the quality information condition, acquiring a first data transmission parameter corresponding to the first signal quality information;
[0013] If the first initial data transmission parameter is inconsistent with the first data transmission parameter, the first initial data transmission parameter is adjusted to the first data transmission parameter.
[0014] Optionally, after determining the first link information, the method further includes:
[0015] Acquiring a second initial data transmission parameter;
[0016] If the first link information satisfies the link information condition, acquiring a second data transmission parameter corresponding to the first link information;
[0017] If the second initial data transmission parameter is inconsistent with the second data transmission parameter, the second initial data transmission parameter is adjusted to the second data transmission parameter.
[0018] Optionally, determining a target data transmission parameter based on the first signal quality information and the first link information includes:
[0019] Acquire a quality information level corresponding to the first signal quality information and a link information level corresponding to the first link information;
[0020] Determining a target information level based on the quality information level and the link information level;
[0021] A data transmission parameter corresponding to the target information level is acquired, and the data transmission parameter is determined as a target data transmission parameter.
[0022] Optionally, if the first signal quality information does not meet the quality information condition, after sending the detection data packet to the server, the method further includes:
[0023] If no response information sent by the server to the detection data packet is obtained within the time threshold, data transmission is stopped.
[0024] Optionally, if the first link information does not meet the link information condition, after determining the target data transmission parameter based on the first signal quality information and the first link information, the method further includes:
[0025] Acquiring a third initial data transmission parameter;
[0026] If the third initial data transmission parameter is inconsistent with the target data transmission parameter, the third initial data transmission parameter is adjusted to the target data transmission parameter.
[0027] Optionally, after adjusting the third initial data transmission parameter to the target data transmission parameter, the method further includes:
[0028] Acquiring second signal quality information;
[0029] If the second signal quality information satisfies the quality information condition, sending the detection data packet to the server;
[0030] Determining second link information based on second response information sent by the server in response to the detection data packet;
[0031] If the second link information satisfies the link information condition, the target data transmission parameter is adjusted to the third initial data transmission parameter.
[0032] According to one aspect of the present application, a data transmission parameter determination device is provided, including:
[0033] An information acquisition unit, configured to acquire first signal quality information;
[0034] an information determining unit, configured to send a detection data packet to a server if the first signal quality information does not satisfy a quality information condition, and determine first link information based on first response information of the server to the detection data packet;
[0035] A parameter determination unit is used to determine a target data transmission parameter based on the first signal quality information and the first link information if the first link information does not meet the link information condition, and adopt the target data transmission parameter for data transmission.
[0036] Optionally, when the information acquisition unit is used to acquire the first signal quality information, it is specifically used to:
[0037] Based on the signal quality parameter and / or the signal quality map, first signal quality information is determined.
[0038] Optionally, the device further includes a parameter adjustment unit, wherein the parameter adjustment unit is configured to obtain a first initial data transmission parameter after obtaining the first signal quality information;
[0039] If the first signal quality information satisfies the quality information condition, acquiring a first data transmission parameter corresponding to the first signal quality information;
[0040] If the first initial data transmission parameter is inconsistent with the first data transmission parameter, the first initial data transmission parameter is adjusted to the first data transmission parameter.
[0041] Optionally, the device further includes a parameter adjustment unit, wherein the parameter adjustment unit is configured to obtain a second initial data transmission parameter after obtaining the first signal quality information;
[0042] If the first link information satisfies the link information condition, acquiring a second data transmission parameter corresponding to the first link information;
[0043] If the second initial data transmission parameter is inconsistent with the second data transmission parameter, the second initial data transmission parameter is adjusted to the second data transmission parameter.
[0044] Optionally, the parameter determination unit is used to determine the target data transmission parameter based on the first signal quality information and the first link information, specifically to:
[0045] Acquire a quality information level corresponding to the first signal quality information and a link information level corresponding to the first link information;
[0046] Determining a target information level based on the quality information level and the link information level;
[0047] A data transmission parameter corresponding to the target information level is acquired, and the data transmission parameter is determined as a target data transmission parameter.
[0048] Optionally, the device also includes a transmission stopping unit, which is used to stop data transmission if the first signal quality information does not meet the quality information condition, after sending a detection data packet to the server, if no response information sent by the server for the detection data packet is obtained within a time threshold.
[0049] Optionally, the device further includes a parameter adjustment unit, wherein the parameter adjustment unit is configured to obtain a third initial data transmission parameter based on the first signal quality information and the first link information if the first link information does not meet the link information condition;
[0050] If the third initial data transmission parameter is inconsistent with the target data transmission parameter, the third initial data transmission parameter is adjusted to the target data transmission parameter.
[0051] Optionally, the parameter adjustment unit is further used to:
[0052] Acquiring second signal quality information;
[0053] If the second signal quality information satisfies the quality information condition, sending the detection data packet to the server; determining the second link information based on the second response information sent by the server to the detection data packet;
[0054] If the second link information satisfies the link information condition, the target data transmission parameter is adjusted to the third initial data transmission parameter.
[0055] According to one aspect of the present application, a terminal is provided, including:
[0056] at least one processor; and
[0057] a memory communicatively connected to the at least one processor; wherein,
[0058] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any one of the methods described in the above aspect.
[0059] According to one aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods described in the above aspect.
[0060] According to one aspect of the present application, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the methods described in the above aspect.
[0061] In one or more embodiments of the present application, by obtaining first signal quality information; if the first signal quality information does not meet the quality information condition, a detection data packet is sent to the server, and based on the first response information of the server to the detection data packet, the first link information is determined; if the first link information does not meet the link information condition, the target data transmission parameters are determined based on the first signal quality information and the first link information, and the target data transmission parameters are used for data transmission. Therefore, a data transmission strategy corresponding to the signal quality can be used for data transmission, which reduces the situation where the terminal repeatedly rebuilds the data link and frequently retransmits the data packet in the case of weak signal due to the same data transmission strategy for different signal qualities, which can improve the convenience of data transmission. At the same time, data transmission is only based on the target data transmission parameters corresponding to the signal quality, which reduces the situation where the protocol stack establishes a data link and transmits data packets, which can reduce the terminal operation time, and thus can reduce the terminal power consumption while improving the convenience of data transmission.
[0062] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0064] Figure 1 A background schematic diagram showing a data transmission method provided by an embodiment of the present application;
[0065] Figure 2 A system architecture diagram showing a data transmission method provided by an embodiment of the present application;
[0066] Figure 3 A schematic diagram showing a flow chart of a first method for determining data transmission parameters provided in an embodiment of the present application;
[0067] Figure 4 A schematic diagram showing a flow chart of a second method for determining data transmission parameters provided in an embodiment of the present application;
[0068] Figure 5 An example schematic diagram of a terminal interface provided by an embodiment of the present application is shown;
[0069] Figure 6 A schematic diagram showing the structure of a first data transmission parameter determination device provided in an embodiment of the present application;
[0070] Figure 7 A schematic diagram showing the structure of a second device for determining data transmission parameters provided in an embodiment of the present application is shown;
[0071] Figure 8 A schematic diagram showing the structure of a third device for determining data transmission parameters provided in an embodiment of the present application is shown;
[0072] Fig. 9 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0073] Fig.10 It is a schematic diagram of the structure of the operating system and user space provided in the embodiment of the present application;
[0074] Fig.11 yes Fig.10 The architecture diagram of the Android operating system;
[0075] Fig.12 yes Fig.10 Architecture diagram of the IOS operating system. DETAILED DESCRIPTION
[0076] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 creative work are within the scope of protection of this application.
[0077] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0078] With the development of science and technology, the development of terminals is also becoming more and more rapid. Terminals need to be connected to the network deployed by operators through data transmission. However, the signal quality in different places in the network deployed by operators is different. For the convenience of users, various data transmission methods have emerged.
[0079] According to some embodiments, Figure 1 A background diagram of a data transmission method provided by an embodiment of the present application is shown. Figure 1 As shown, when the terminal is located in the network arranged by the operator, the terminal can establish a data link based on the protocol stack and transmit the data packet to the server. The protocol stack can be, for example, an OSI protocol stack, a TCP / IP protocol group, or a ZigBee protocol stack. If the data link is disconnected, the terminal can re-establish a data link with the server and retransmit the data packet. That is, after the data link is re-established between the terminal and the server, data packets can be transmitted between the terminal and the server, for example.
[0080] In some embodiments, Figure 2 A system architecture diagram of a data transmission method provided by an embodiment of the present application is shown. Figure 2As shown, when the terminal 11 is located in the network arranged by the operator, before the terminal 11 and the two nodes in the server 13 communicate, in order to determine that the terminal 11 and the server 12 have established a data link, the terminal 11 can send a detection data packet to the server 13. If the terminal 11 determines that the server's response time to the detection data packet is less than the time threshold, the terminal 11 can determine that the data link has been established. When transmitting data, the data link must be maintained in a communication state. If an error occurs, it needs to be reinitialized and the connection is reestablished. When the communication is completed, the data link is released. Based on this data link, after receiving the transmission data packet sent by the terminal 11, the server 13 can obtain all the information in the data packet and send the transmission data packet to the corresponding terminal.
[0081] According to some embodiments, when the terminal is in a weak signal field, the signal quality is poor, the network allocates fewer resources, and the interference is also large, resulting in the terminal sending and receiving fewer data packets during data transmission, and the data packets will be lost, out of order, and other problems. The protocol stack will repeatedly rebuild the data link and frequently retransmit the data packets, ultimately resulting in low data transmission convenience and high terminal power consumption.
[0082] The present application is described in detail below with reference to specific embodiments.
[0083] In the first embodiment, if Figure 3 As shown, Figure 3 A flow chart of a first method for determining data transmission parameters provided by an embodiment of the present application is shown, which can be implemented by a computer program and can be run on a device for data transmission. The computer program can be integrated into an application or run as an independent tool application.
[0084] The data transmission parameter determination device may be a terminal with an application update function, and the terminal includes but is not limited to: a wearable device, a handheld device, a personal computer, a tablet computer, a vehicle-mounted device, a smart phone, a computing device or other processing device connected to a wireless modem, etc. In different networks, the terminal may be called by different names, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), fifth generation mobile communication technology (5G) network, fourth generation mobile communication technology (4G) network, third generation mobile communication technology (3G) network or terminal in future evolution network, etc.
[0085] Specifically, the data transmission parameter determination method includes:
[0086] S101, obtaining first signal quality information;
[0087] In some embodiments, the first signal quality information refers to the signal quality information perceived by the terminal when performing data transmission. The first signal quality information does not specifically refer to a fixed signal quality information. The first signal quality information may be different, for example, based on the signal strength and the degree of interference. For example, when the signal strength and the degree of interference are both weak, the signal quality perceived by the terminal is poor. For example, when the signal strength is weak and the degree of interference is strong, the signal quality perceived by the terminal is poor. For example, when the signal strength is strong and the degree of interference is weak, the signal quality perceived by the terminal is high. For example, when the signal strength is strong and the degree of interference is strong, the signal quality perceived by the terminal is poor.
[0088] It is easy to understand that when the data transmission parameter determination method is executed, the first signal quality information can be obtained, that is, the terminal can obtain the first signal quality information when performing data transmission.
[0089] S102, if the first signal quality information does not meet the quality information condition, sending a detection data packet to the server, and determining the first link information based on the first response information of the server to the detection data packet;
[0090] In some embodiments, the quality information condition refers to a condition for determining the strength of the first signal quality information. The number of the quality information condition is at least one, and different first signal quality information corresponds to different quality information conditions. The quality information condition does not specifically refer to a fixed quality information condition. For example, when the terminal obtains a condition modification instruction for the quality information condition, the quality information condition will also change accordingly.
[0091] According to some embodiments, the detection data packet refers to a data packet used to detect the data link level. The detection data packet does not specifically refer to a fixed detection data packet. The detection data packet may be different based on the different protocols corresponding to the protocol stack. For example, the protocol stack includes but is not limited to any one of the OSI protocol stack, the TCP / IP protocol suite, and the ZigBee protocol stack.
[0092] Optionally, the first response information refers to the response information that the server feeds back in response to the detection data packet after sending the detection data packet to the server. The first response information does not specifically refer to a fixed response information, and the first response information includes but is not limited to response duration, delay duration, packet loss rate, etc. The number of the first response information is at least one, and different first response information corresponds to different first link information. For example, when the response duration in the first response information is 20 minutes, the delay duration is 30 minutes, and the packet loss rate is 80%, the first link information determined by the terminal is poor; when the response duration in the first response information is 2 minutes, the delay duration is 1 minute, and the packet loss rate is 2%, the first link information determined by the terminal is better.
[0093] Optionally, the first link information refers to the first link information obtained by the terminal for the first response information after the terminal receives the first response information sent by the server. The first link information does not specifically refer to a fixed link information, the number of the first link information is at least one, and different first link information corresponds to different link conditions.
[0094] In some embodiments, when the terminal obtains the first signal quality information, the terminal can detect whether the first signal quality information meets the quality information condition. If the terminal determines that the first signal quality information does not meet the quality information condition, the terminal can control the terminal to send a detection data packet to the server. After receiving the detection data packet, the server will send a response message to the terminal for the detection data packet, and the terminal can determine the first response information based on the response information. The terminal can determine the first link information based on the first response information.
[0095] S103: If the first link information does not meet the link information condition, determine a target data transmission parameter based on the first signal quality information and the first link information, and use the target data transmission parameter for data transmission.
[0096] In some embodiments, the link information condition refers to a condition for judging the first link information. The number of the link information condition is at least one, and different first link information corresponds to different link information conditions. The link information condition does not specifically refer to a fixed link information condition. For example, when the terminal obtains a condition modification instruction for the link information condition, the link information condition will also change accordingly.
[0097] According to some embodiments, the target data transmission parameter refers to a parameter for data transmission determined by the terminal based on the first signal quality information and the first link information. The target data transmission parameter includes, but is not limited to, the number of retransmissions, whether to disable data transmission, the setting of the timeout duration, etc. The target data transmission parameter does not specifically refer to a certain target data transmission parameter. The target data transmission parameter may, for example, be different based on the signal quality. For example, when the signal quality is poor, the target data transmission parameter may, for example, be that the number of retransmissions and the timeout duration are both zero; when the signal quality is good, data transmission is enabled, and the target data transmission parameter may, for example, be that the number of retransmissions and the timeout duration are default values.
[0098] In some embodiments, when the terminal obtains the first link information, the terminal can detect whether the first link information meets the link information condition. If it is determined that the first link information does not meet the link information condition, the terminal can determine the target data transmission parameter based on the first signal quality information and the first link information. When the terminal obtains the target data transmission parameter, the terminal can use the target data transmission parameter for data transmission.
[0099] In one or more embodiments of the present application, by obtaining the first signal quality information, if the first signal quality information does not meet the quality information condition, a detection data packet is sent to the server, and based on the first response information of the server to the detection data packet, the first link information is determined, if the first link information does not meet the link information condition, the target data transmission parameters are determined based on the first signal quality information and the first link information, and the target data transmission parameters are used for data transmission. Therefore, a data transmission strategy corresponding to the signal quality can be used for data transmission, reducing the situation where the terminal repeatedly rebuilds the data link and frequently retransmits the data packet in the case of a weak signal field due to the same data transmission strategy for different signal qualities, which can improve the convenience of data transmission. At the same time, data transmission is only based on the target data transmission parameters corresponding to the signal quality, reducing the situation where the protocol stack establishes a data link and transmits data packets, which can reduce the terminal operation time, and thus can reduce the terminal power consumption while improving the convenience of data transmission.
[0100] See also Figure 4 , Figure 4 The following is a flow chart of a second method for determining data transmission parameters provided in an embodiment of the present application. Specifically:
[0101] S201, obtaining first signal quality information;
[0102] The specific process is as above and will not be repeated here.
[0103] In some embodiments, the terminal obtains the first signal quality information by using a signal quality parameter and / or a signal quality map. The terminal may obtain the first signal quality information by using a signal quality parameter, a signal quality map, or both a signal quality parameter and a signal quality map. The terminal may also obtain the first signal quality information by using a signal quality parameter when the first signal quality information is not obtained by using a signal quality map.
[0104] According to some embodiments, the signal quality parameter is a key parameter used to represent the signal quality strength, including but not limited to reference signal receiving power (RSRP), reference signal receiving quality (RSRQ), received signal strength indicator (RSSI), signal to noise ratio (SNR), etc. The terminal obtains the first signal quality information by real-time monitoring of the signal quality parameter. At this time, an example schematic diagram of the terminal interface can be as follows Figure 5 As shown, the terminal obtains an RSRP value of -120dBm, an RSRQ value of -9, an RSSI value of -91, and an SNR value of 0.4.
[0105] It is easy to understand that the RSRP value range is -44 to -140dBm, and the larger the RSRP value, the better the signal quality; the RSRQ value range is -3 to -19.5dBm, and the larger the RSRQ value, the better the signal quality; RSSI indicates the strength of the signal, and RSSI is usually a negative value. The closer the RSSI value is to zero, the higher the signal strength; SNR refers to the ratio between the useful signal level and the electromagnetic noise level measured under specified conditions. The larger the SNR value, the better the signal quality.
[0106] According to some embodiments, the signal quality map refers to a corresponding relationship diagram between an area and the signal quality corresponding to the area. For example, the terminal can obtain the first signal quality information through a wireless signal heat map, which is a special wireless signal coverage map that can highlight signal weak points and signal blind spots in the entire area in a visual form, and different wireless signal strengths can be marked with different colors.
[0107] It is easy to understand that the terminal can know the signal quality of each area in advance according to the signal quality map. For example, the terminal can obtain the area with better signal quality and remind the user to go to the area with better signal quality, so as to restore the data transmission capacity and improve the convenience of user use.
[0108] Optionally, the priority of the signal quality map may be greater than the signal quality parameter. For example, when there is a signal quality map, the terminal directly obtains the first signal quality information based on the signal quality map, and when there is no signal quality map, the terminal obtains the first signal quality information based on the signal quality parameter, which can reduce the time required to obtain the first signal quality information and improve the convenience of obtaining the first signal quality information.
[0109] Optionally, when executing the data transmission parameter determination method, the terminal obtains the first signal quality information through the signal quality parameter and / or the signal quality map. For example, the terminal obtains the first signal quality information through the signal quality parameter; the terminal obtains the first signal quality information through the first signal quality information; the terminal obtains the first signal quality information through the signal quality parameter and the signal quality map at the same time.
[0110] S202, obtaining a first initial data transmission parameter;
[0111] According to some embodiments, the first initial data transmission parameter refers to a transmission parameter used by the terminal for data transmission when acquiring the first signal quality information. The first initial data transmission parameter does not specifically refer to a fixed data transmission parameter. If the terminal modifies the data transmission parameter before acquiring the first signal quality information, the first initial data transmission parameter will also change accordingly.
[0112] It is easy to understand that, for example, when the terminal obtains a conditional modification instruction for the first initial data transmission parameter, the first initial data transmission parameter will also change accordingly. For example, the first initial data transmission parameter can be, for example, the number of retransmissions and the timeout period are set to zero, disabling data transmission. The first initial data transmission parameter can also be, for example, the number of retransmissions is 2 times, the timeout period is 30s, and data transmission is enabled.
[0113] In some embodiments, after the terminal obtains the first signal quality information, the terminal may obtain the first initial data transmission parameter.
[0114] S203, if the first signal quality information satisfies the quality information condition, obtaining a first data transmission parameter corresponding to the first signal quality information;
[0115] In some embodiments, the first data transmission parameter refers to a data transmission parameter corresponding to the signal quality of the first signal quality information, including but not limited to the number of retransmissions, whether to disable data transmission, and the setting of the timeout period. The first data transmission parameter does not specifically refer to a fixed data transmission parameter, and the first data transmission parameter varies based on the first signal quality information, that is, different first signal quality information corresponds to different first data transmission parameters. The terminal can, for example, modify the correspondence between the first signal quality information and the first data transmission parameter based on the modification instruction. For example, when the first signal quality information is poor, the first data transmission parameter can be, for example, the number of retransmissions and the timeout period are both zero; when the first signal quality information is good, the first data transmission parameter can be, for example, the number of retransmissions is 3 times and the timeout period is 20s.
[0116] It is easy to understand that the first signal quality information satisfies the quality information condition, which means that the signal quality obtained by the terminal is higher than the quality threshold. At this time, the terminal can obtain the first data transmission parameter corresponding to the first signal quality information. For example, the first data transmission parameter obtained by the terminal can be, for example, 2 retransmission times and a timeout period of 30s; the first data transmission parameter obtained by the terminal can be, for example, 5 retransmission times and a timeout period of 1min.
[0117] In some embodiments, when the terminal obtains the first signal quality information, the terminal can detect whether the first signal quality information meets the quality information condition. If it is determined that the first signal quality information meets the quality information condition, the terminal can be controlled to obtain the first data transmission parameter corresponding to the first signal quality information.
[0118] S204, if the first initial data transmission parameter and the first data transmission parameter are inconsistent, adjusting the first initial data transmission parameter to the first data transmission parameter;
[0119] In some embodiments, after determining that the first signal quality information satisfies the quality information condition, the terminal may detect whether the first initial data transmission parameter is consistent with the first data transmission parameter. If the first initial data transmission parameter is inconsistent with the first data transmission parameter, the terminal may adjust the first initial data transmission parameter to the first data transmission parameter. The first initial data transmission parameter may, for example, be a number of retransmissions and a timeout period of zero, and the first data transmission parameter may, for example, be a number of retransmissions of 3 times and a timeout period of 20s. When the terminal determines that the first initial data transmission parameter is inconsistent with the first data transmission parameter, the terminal may adjust the first initial data transmission parameter to the first data transmission parameter when the signal quality obtained by the terminal is better.
[0120] It is easy to understand that when the terminal obtains the first signal quality information, the terminal can detect whether the first signal quality information meets the quality information condition. If it is determined that the first signal quality information meets the quality information condition, the terminal can be controlled to obtain the first data transmission parameter corresponding to the first signal quality information. The terminal can detect whether the first initial data transmission parameter and the first data transmission parameter are consistent. If it is determined that the first initial data transmission parameter and the first data transmission parameter are inconsistent, the terminal can be controlled to adjust the first initial data transmission parameter to the first data transmission parameter. Therefore, the terminal can adjust the first initial data transmission parameter adaptively, which can improve the accuracy of the data transmission parameter determination and improve the data transmission efficiency.
[0121] S205, if the first signal quality information does not meet the quality information condition, sending a detection data packet to the server, and determining the first link information based on the first response information of the server to the detection data packet;
[0122] The specific process is as above and will not be repeated here.
[0123] In some embodiments, after the terminal determines that the first signal quality information does not meet the quality information condition and sends a detection data packet to the server, if the response information sent by the server to the detection data packet is not obtained within the duration threshold, the data transmission is stopped, that is, if the terminal does not obtain the first response information fed back by the server after exceeding the duration threshold, the terminal determines that the first link information is the worst, and the terminal can directly stop data transmission, thereby reducing terminal power consumption. For example, the duration threshold can be 10 minutes. If the first response information fed back by the server is still not obtained after 10 minutes, the terminal can directly stop data transmission. The duration threshold does not specifically refer to a fixed duration threshold. For example, when the terminal obtains a conditional modification instruction for the duration threshold, the duration threshold will also change accordingly.
[0124] It is easy to understand that the first signal quality information not meeting the quality information condition means that the signal quality acquired by the terminal is poor. For example, the first signal quality information may be that the number of retransmissions and the timeout duration are set to zero, disabling data transmission.
[0125] In some embodiments, when the terminal obtains the first signal quality information, the terminal can detect whether the first signal quality information meets the quality information condition. If it is determined that the first signal quality information does not meet the quality information condition, the terminal can be controlled to send a detection data packet to the server. After receiving the detection data packet, the server will send a response message to the terminal in response to the detection data packet, and the terminal can determine the first response information based on the response information. After the terminal obtains the first response information, it can determine the first link information based on the first response information. However, if the terminal still does not obtain the response information sent by the server to the detection data packet within the duration threshold, the terminal determines that the first link information is the worst. In this case, the terminal directly stops data transmission, thereby reducing terminal power consumption.
[0126] S206, obtaining a second initial data transmission parameter;
[0127] In some embodiments, after the terminal determines the first link information, it can also obtain a second initial data transmission parameter. The second initial data transmission parameter refers to the parameter used by the terminal to currently transmit the data packet when the terminal determines the first link information. The second initial data transmission parameter does not specifically refer to a fixed parameter. For example, after the terminal modifies the data transmission parameter based on the target data transmission parameter, the second initial data transmission parameter may also change accordingly.
[0128] S207, if the first link information satisfies the link information condition, obtaining a second data transmission parameter corresponding to the first link information;
[0129] According to some embodiments, the second data transmission parameter refers to the data transmission parameter corresponding to the first link information when the first link information satisfies the link information condition. The second data transmission parameter includes, but is not limited to, the number of retransmissions, whether to disable data transmission, and the setting of the timeout period. The second data transmission parameter does not specifically refer to a fixed data transmission parameter, and the second data transmission parameter may be different based on the first link information, that is, different first link information corresponds to different second data transmission parameters. For example, when the first link information is poor, the second data transmission parameter may be, for example, the number of retransmissions and the timeout period are both zero; when the first link information is good, the second data transmission parameter may be, for example, the number of retransmissions is 3 times and the timeout period is 20s.
[0130] In some embodiments, when the terminal obtains the second initial data transmission parameter and determines that the first link information satisfies the link information condition, the terminal may obtain the second data transmission parameter corresponding to the first link information.
[0131] S208, if the second initial data transmission parameter is inconsistent with the second data transmission parameter, adjusting the second initial data transmission parameter to the second data transmission parameter;
[0132] In some embodiments, if the first link information satisfies the link information condition, the terminal may obtain a second data transmission parameter corresponding to the first link information. If the second initial data transmission parameter is inconsistent with the second data transmission parameter, the terminal may adjust the second initial data transmission parameter to the second data transmission parameter. The terminal may restore the data transmission parameter to the second data transmission parameter, which may improve the accuracy of the data transmission parameter determination and improve the data transmission efficiency.
[0133] It is easy to understand that the first link information satisfies the link information condition, which means that the data link connection is in good condition. At this time, the terminal can obtain the second data transmission parameter corresponding to the first link information. For example, the second initial data transmission parameter obtained by the terminal can be, for example, 2 retransmission times and a timeout period of 30 seconds; the second data transmission parameter obtained by the terminal can be, for example, 5 retransmission times and a timeout period of 1 minute.
[0134] In some embodiments, the terminal can obtain the second initial data transmission parameter, and when it is determined that the first link information satisfies the link information condition, if the second initial data transmission parameter is inconsistent with the second data transmission parameter corresponding to the first link information, the second initial data transmission parameter is adjusted to the second data transmission parameter. For example, if the previous second initial data transmission parameter is a reduced parameter, the second initial data transmission parameter can be, for example, the number of retransmissions and the timeout duration are both zero. The terminal can adjust the second initial data transmission parameter to the second data transmission parameter. For example, the terminal can adjust the second initial data transmission parameter from 2 retransmissions and 30s timeout to 5 retransmissions of the second data transmission parameter and 1min timeout.
[0135] It is easy to understand that, for example, when the terminal detects that the signal quality is poor, it sends a detection data packet to the server. When it is determined that the first link information meets the link information condition based on the first response information of the server to the detection data packet, it can be determined that the first signal quality information has improved, and the data transmission parameters can be improved. The misjudgment of the data transmission parameters due to signal quality fluctuations can be reduced, the accuracy of the determination of the data transmission parameters can be improved, and the data transmission efficiency can be improved.
[0136] S209: If the first link information does not meet the link information condition, determine a target data transmission parameter based on the first signal quality information and the first link information, and use the target data transmission parameter for data transmission.
[0137] The specific process is as above and will not be repeated here.
[0138] In some embodiments, when determining the target data transmission parameter based on the first signal quality information and the first link information, the terminal may obtain the quality information level corresponding to the first signal quality information and the link information level corresponding to the first link information. The terminal may determine the target information level based on the quality information level and the link information level. When the terminal determines the target information level, the terminal may obtain the data transmission parameter corresponding to the target information level, and determine the data transmission parameter as the target data transmission parameter. Since different information levels correspond to different data transmission parameters, the accuracy of determining the data transmission parameter can be improved.
[0139] It is easy to understand that, for example, when the quality information level obtained by the terminal is high and the link information level is high, the target information level determined by the terminal is high. At this time, the data transmission parameter may be, for example, a first preset number of data packets transmitted per second. When the quality information level obtained by the terminal is high and the link information level is low, the target information level determined by the terminal is low. At this time, the data transmission parameter may be, for example, a second preset number of data packets transmitted per second, wherein the second preset number is less than the first preset number. When the quality information level obtained by the terminal is low and the link information level is high, the target information level determined by the terminal is low. At this time, the data transmission parameter may be, for example, a third preset number of data packets transmitted per second, and the number of data packet retransmissions may be, for example, 3 times.
[0140] It is easy to understand that the data transmission parameter corresponding to the target information level does not specifically refer to a fixed data transmission parameter. For example, when the target information level obtained by the terminal changes, the data transmission parameter corresponding to the target information level will also change accordingly.
[0141] Optionally, different quality information levels may correspond to different quality parameter thresholds, or to different quality parameter ranges. Different link information levels may also correspond to different link information thresholds, or to different link information ranges.
[0142] In some embodiments, after determining the target data transmission parameter based on the first signal quality information and the first link information, the terminal may obtain a third initial data transmission parameter and determine whether the third initial data transmission parameter is consistent with the target data transmission parameter. The third initial data transmission parameter refers to the data transmission parameter obtained by the terminal after determining the target data transmission parameter based on the first signal quality information and the first link information. If the third initial data transmission parameter is inconsistent with the target data transmission parameter, the terminal may adjust the third initial data transmission parameter to the target data transmission parameter. For example, the third initial data transmission parameter may be, for example, 3 retransmissions and a timeout period of 20s, and the target data transmission parameter may be, for example, both the number of retransmissions and the timeout period are zero. The terminal may adjust the third initial data transmission parameter to have a retransmission number of 3 times and a timeout period of 20s so that both the number of retransmissions and the timeout period of the target data transmission parameter are zero.
[0143] It is easy to understand that after the terminal adjusts the third initial data transmission parameter to the target data transmission parameter, the terminal can obtain the second signal quality information. When the terminal obtains the second signal quality information, the terminal can detect whether the second quality information meets the quality information condition. If the second signal quality information meets the quality information condition, the terminal can send a detection data packet to the server. The terminal can determine the second link information based on the second response information sent by the server to the detection data packet. If the second link information meets the link information condition, the target data transmission parameter is adjusted to the third initial data transmission parameter.
[0144] It is easy to understand that if the second link information meets the link information condition, the terminal can also adjust the target data transmission parameter to the first initial data transmission parameter, or adjust the target data transmission parameter to the second initial data transmission parameter, or adjust the target data transmission parameter to the preset data transmission parameter.
[0145] Optionally, the terminal acquires the second signal quality information in a manner including but not limited to real-time acquisition, acquisition once at a predetermined period, and acquisition when a signal quality parameter changes.
[0146] It is easy to understand that the second signal quality information refers to the signal quality parameter obtained by the terminal after the terminal adjusts the third initial data transmission parameter to the target data transmission parameter. The second signal quality parameter does not specifically refer to a fixed quality information. If the time point at which the terminal obtains the signal quality information changes, the second signal quality information will also change accordingly.
[0147] In some embodiments, the first link information not satisfying the link information condition means that the first link information is poor. At this time, the terminal can determine the target data transmission parameters based on the first signal quality information and the first link information. For example, the target data transmission parameters acquired by the terminal can be, for example, the number of retransmissions and the timeout duration are set to zero, disabling data transmission.
[0148] It is easy to understand that when the terminal obtains the first link information, the terminal can detect whether the first link information meets the link information condition. If it is determined that the first link information does not meet the link information condition, the terminal can be controlled to determine the target data transmission parameter based on the first signal quality information and the first link information. The terminal can obtain a third initial data transmission parameter. If the third initial data transmission parameter is inconsistent with the target data transmission parameter, the third initial data transmission parameter is adjusted to the target data transmission parameter, and the target data transmission parameter is used for data transmission. When the terminal obtains the second signal quality information, if the second signal quality information meets the quality information condition, the terminal can send a detection data packet to the server. The terminal can determine the second link information based on the second response information sent by the server to the detection data packet. If the second link information meets the link information condition, the terminal can adjust the target data transmission parameter to the third initial data transmission parameter.
[0149] In one or more embodiments of the present application, when the first signal quality information is obtained, if the first signal quality information meets the quality information condition, the first data transmission parameter corresponding to the first signal quality information is obtained; therefore, the initial data transmission parameter can be adaptively adjusted to improve the accuracy of the data transmission parameter determination and improve the data transmission efficiency. Secondly, if the first signal quality information does not meet the quality information condition, a detection data packet is sent to the server, and based on the first response information of the server to the detection data packet, the first link information is determined. If the first link information meets the link information condition, the second data transmission parameter corresponding to the first link information is obtained, thereby reducing the misjudgment of the data transmission parameter determination caused by signal quality fluctuations, improving the accuracy of the data transmission parameter determination, and improving the data transmission efficiency. In addition, if the first link information does not meet the link information condition, the target data transmission parameter is determined based on the first signal quality information and the first link information, and the target data transmission parameter is used for data transmission, thereby improving the accuracy of the data transmission parameter determination and improving the data transmission efficiency. Finally, data transmission is performed using a data transmission strategy corresponding to the signal quality, which reduces the situation where the same data transmission strategy is used for different signal qualities, causing the terminal to repeatedly rebuild the data link and frequently retransmit data packets in a weak signal field. This can improve the convenience of data transmission. At the same time, data transmission is performed only based on the target data transmission parameters corresponding to the signal quality, which reduces the situation where the protocol stack establishes data links and transmits data packets, and can reduce terminal operation. Therefore, the convenience of data transmission can be improved while reducing terminal power consumption.
[0150] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0151] See also Figure 6 , which shows a schematic diagram of the structure of a first data transmission parameter determination device provided by an exemplary embodiment of the present application. The data transmission parameter determination device can be implemented as all or part of a device through software, hardware, or a combination of both. The data transmission parameter determination device 600 includes an information acquisition unit 601, an information determination unit 602, and a parameter determination unit 603, wherein:
[0152] The information acquisition unit 601 is used to acquire first signal quality information;
[0153] The information determining unit 602 is configured to send a detection data packet to the server if the first signal quality information does not meet the quality information condition, and determine the first link information based on the first response information of the server to the detection data packet;
[0154] The parameter determination unit 603 is configured to determine a target data transmission parameter based on the first signal quality information and the first link information if the first link information does not satisfy the link information condition, and adopt the target data transmission parameter for data transmission.
[0155] Optionally, the information acquisition unit 601, when used to acquire the first signal quality information, is specifically used to:
[0156] Based on the signal quality parameter and / or the signal quality map, first signal quality information is determined.
[0157] Optional, Figure 7 A schematic diagram showing the structure of a second data transmission parameter determination device provided in an embodiment of the present application is shown. Figure 7 As shown, the data transmission parameter determination device 600 further includes a parameter adjustment unit 604, and the parameter adjustment unit 604 is configured to obtain a first initial data transmission parameter after obtaining the first signal quality information;
[0158] If the first signal quality information satisfies the quality information condition, obtaining a first data transmission parameter corresponding to the first signal quality information;
[0159] If the first initial data transmission parameter and the first data transmission parameter are inconsistent, the first initial data transmission parameter is adjusted to the first data transmission parameter.
[0160] Optionally, the data transmission parameter determination device 600 further includes a parameter adjustment unit 604, and the parameter adjustment unit 604 is configured to obtain a second initial data transmission parameter after obtaining the first signal quality information;
[0161] If the first link information satisfies the link information condition, obtaining a second data transmission parameter corresponding to the first link information;
[0162] If the second initial data transmission parameter is inconsistent with the second data transmission parameter, the second initial data transmission parameter is adjusted to the second data transmission parameter.
[0163] Optionally, the parameter determination unit 603 is configured to determine the target data transmission parameter based on the first signal quality information and the first link information, specifically to:
[0164] Acquire a quality information level corresponding to the first signal quality information and a link information level corresponding to the first link information;
[0165] Determining a target information level based on the quality information level and the link information level;
[0166] A data transmission parameter corresponding to the target information level is acquired, and the data transmission parameter is determined as a target data transmission parameter.
[0167] Optional, Figure 8 A schematic diagram showing the structure of a third data transmission parameter determination device provided in an embodiment of the present application is shown. Figure 8 As shown, the data transmission parameter determination device 600 also includes a transmission stopping unit 605, which is used to stop data transmission if the first signal quality information does not meet the quality information condition, after sending a detection data packet to the server, if no response information sent by the server for the detection data packet is obtained within a time threshold.
[0168] Optionally, the apparatus 600 further includes a parameter adjustment unit 604, the parameter adjustment unit 604 being configured to obtain a third initial data transmission parameter based on the first signal quality information and the first link information if the first link information does not satisfy the link information condition;
[0169] If the third initial data transmission parameter is inconsistent with the target data parameter, the third initial data transmission parameter is adjusted to the target data transmission parameter.
[0170] Optionally, the parameter adjustment unit 604 is further configured to:
[0171] Acquiring second signal quality information;
[0172] If the second signal quality information satisfies the quality information condition, sending a detection data packet to the server; determining the second link information based on the second response information sent by the server to the detection data packet;
[0173] If the second link information satisfies the link information condition, the target data parameter is adjusted to the third initial data transmission parameter.
[0174] It should be noted that the data transmission parameter determination device provided in the above embodiment only uses the division of the above functional modules as an example when executing the data transmission parameter determination method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data transmission parameter determination device provided in the above embodiment and the data transmission parameter determination method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0175] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0176] In one or more embodiments of the present application, the first signal quality information can be obtained through the information acquisition unit. If the first signal quality information does not meet the quality information condition, the information determination unit can send a detection data packet to the server, and determine the first link information based on the first response information of the server to the detection data packet. If the first link information does not meet the link information condition, the parameter determination unit can determine the target data transmission parameters and use the target data transmission parameters for data transmission. Therefore, a data transmission strategy corresponding to the signal quality can be used for data transmission, which reduces the situation where the terminal repeatedly rebuilds the data link and frequently retransmits the data packet in the case of weak signal due to the same data transmission strategy for different signal qualities, which can improve the convenience of data transmission. At the same time, data transmission is only based on the target data transmission parameters corresponding to the signal quality, which reduces the situation where the protocol stack establishes a data link and transmits data packets, and can reduce terminal operation. Therefore, the convenience of data transmission can be improved while reducing terminal power consumption.
[0177] The present application also provides a computer storage medium that can store multiple instructions, which are suitable for being loaded and executed by a processor as described above. Figure 3-Figure 5 The data transmission parameter determination method of the embodiment shown in the figure can be found in the specific execution process. Figure 3-Figure 5 The specific description of the illustrated embodiment is not repeated here. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0178] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program product stores at least one instruction, and the at least one instruction is loaded and executed by a processor as described above. Figure 3-Figure 5 The data transmission parameter determination method of the embodiment shown in the figure can be found in the specific execution process. Figure 3-Figure 5 The specific description of the illustrated embodiment will not be repeated here.
[0179] Please refer to Fig. 9 , which shows a block diagram of the structure of a terminal provided by an exemplary embodiment of the present application. The terminal in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150. The processor loads and executes the above Figure 3-Figure 9 The network connection method of the embodiment shown in the figure can be specifically executed by referring to Figure 3-Figure 9 The specific description of the illustrated embodiment will not be repeated here.
[0180] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0181] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems. The data storage area may also store data created by the terminal during use, such as a phone book, audio and video data, chat record data, etc.
[0182] See also Fig.10 As shown, the memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, different application scenarios in the same third-party application also have different requirements for system resources. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.
[0183] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0184] Taking the Android operating system as an example, the programs and data stored in the memory 120 are as follows: Fig.10As shown, the memory 120 may store a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380, wherein the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to the operating system space, and the application layer 380 belongs to the user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the terminal, such as display drivers, audio drivers, camera drivers, Bluetooth drivers, Wi-Fi drivers, power management, etc. The system runtime library layer 340 provides the main feature support for the Android system through some C / C++ libraries. For example, the SQLite library provides database support, the OpenGL / ES library provides 3D drawing support, and the Webkit library provides browser kernel support, etc. The Android runtime library (Android runtime) is also provided in the system runtime library layer 340, which mainly provides some core libraries that allow developers to use the Java language to write Android applications. The application framework layer 360 provides various APIs that may be used when building applications. Developers can also use these APIs to build their own applications, such as activity management, window management, view management, notification management, content provider, package management, call management, resource management, and location management. At least one application runs in the application layer 380. These applications can be native applications that come with the operating system, such as contact applications, text messaging applications, clock applications, camera applications, etc.; they can also be third-party applications developed by third-party developers, such as game applications, instant messaging applications, photo beautification applications, network connection applications, etc.
[0185] Taking the operating system as an IOS system as an example, the programs and data stored in the memory 120 are as follows: Fig.11As shown, the IOS system includes: a core operating system layer 420 (Core OS layer), a core service layer 440 (Core Services layer), a media layer 460 (Media layer), and a touchable layer 480 (Cocoa Touch Layer). The core operating system layer 420 includes the operating system kernel, drivers, and underlying program frameworks, which provide functions closer to the hardware for use by the program framework located in the core service layer 440. The core service layer 440 provides system services and / or program frameworks required by the application, such as the foundation framework, account framework, advertising framework, data storage framework, network connection framework, geographic location framework, motion framework, etc. The media layer 460 provides audio-visual interfaces for the application, such as graphics and image related interfaces, audio technology related interfaces, video technology related interfaces, and wireless playback (AirPlay) interfaces for audio and video transmission technologies. The touchable layer 480 provides various commonly used interface-related frameworks for application development, and the touchable layer 480 is responsible for the user's touch interaction operations on the terminal. For example, local notification service, remote push service, advertising framework, game tool framework, message user interface (UI) framework, user interface UIKit framework, map framework, etc.
[0186] exist Fig. 9 Among the frameworks shown, the frameworks related to most applications include but are not limited to: the basic framework in the core service layer 440 and the UIKit framework in the touchable layer 480. The basic framework provides many basic object classes and data types, provides the most basic system services for all applications, and has nothing to do with UI. The classes provided by the UIKit framework are basic UI class libraries for creating touch-based user interfaces. iOS applications can provide UIs based on the UIKit framework, so it provides the basic architecture of applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, etc.
[0187] Among them, the method and principle of implementing data communication between third-party applications and the operating system in the IOS system can be referred to the Android system, and this application will not go into details here.
[0188] Among them, the input device 130 is used to receive input instructions or data, and the input device 130 includes but is not limited to a keyboard, a mouse, a camera, a microphone or a touch device. The output device 140 is used to output instructions or data, and the output device 140 includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are a touch display screen, which is used to receive touch operations on or near it by a user using any suitable object such as a finger or a touch pen, and to display the user interface of each application. The touch display screen is usually set on the front panel of the terminal. The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.
[0189] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module, and other components, which will not be described in detail here.
[0190] In the embodiment of the present application, the execution subject of each step may be the terminal described above. Optionally, the execution subject of each step is the operating system of the terminal. The operating system may be an Android system, an IOS system, or other operating systems, which is not limited in the embodiment of the present application.
[0191] The terminal of the embodiment of the present application may also be equipped with a display device, which may be any device capable of realizing a display function, such as a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink screen, a liquid crystal display (LCD), a plasma display panel (PDP), etc. The user may use the display device on the terminal 100 to view displayed text, images, videos and other information. The terminal may be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, electronic clothing and other devices.
[0192] Those skilled in the art can clearly understand that the technical solution of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0193] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0194] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0195] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units 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 through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0196] 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.
[0197] 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0198] If the integrated unit 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 memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program code.
[0199] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct the relevant hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0200] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for determining data transmission parameters, characterized in that: include: Acquiring first signal quality information; If the first signal quality information does not meet the quality information condition, sending a detection data packet to a server, and determining first link information based on first response information of the server to the detection data packet; If the first link information does not meet the link information condition, a target data transmission parameter is determined based on the first signal quality information and the first link information, and the target data transmission parameter is used for data transmission.
2. The method according to claim 1, characterized in that The obtaining of the first signal quality information includes: Based on the signal quality parameter and / or the signal quality map, first signal quality information is determined.
3. The method according to claim 1, characterized in that After obtaining the first signal quality information, the method further includes: Acquire a first initial data transmission parameter; If the first signal quality information satisfies the quality information condition, acquiring a first data transmission parameter corresponding to the first signal quality information; If the first initial data transmission parameter is inconsistent with the first data transmission parameter, the first initial data transmission parameter is adjusted to the first data transmission parameter.
4. The method according to claim 1, characterized in that After determining the first link information, the method further includes: Acquiring a second initial data transmission parameter; If the first link information satisfies the link information condition, acquiring a second data transmission parameter corresponding to the first link information; If the second initial data transmission parameter is inconsistent with the second data transmission parameter, the second initial data transmission parameter is adjusted to the second data transmission parameter.
5. The method according to claim 1, characterized in that The determining a target data transmission parameter based on the first signal quality information and the first link information includes: Acquire a quality information level corresponding to the first signal quality information and a link information level corresponding to the first link information; Determining a target information level based on the quality information level and the link information level; A data transmission parameter corresponding to the target information level is acquired, and the data transmission parameter is determined as a target data transmission parameter.
6. The method according to claim 1, characterized in that If the first signal quality information does not meet the quality information condition, after sending the detection data packet to the server, the method further includes: If no response information sent by the server to the detection data packet is obtained within the time threshold, data transmission is stopped.
7. The method according to claim 1, characterized in that If the first link information does not meet the link information condition, after determining the target data transmission parameter based on the first signal quality information and the first link information, the method further includes: Acquiring a third initial data transmission parameter; If the third initial data transmission parameter is inconsistent with the target data transmission parameter, the third initial data transmission parameter is adjusted to the target data transmission parameter.
8. The method according to claim 7, characterized in that After the third initial data transmission parameter is adjusted to the target data transmission parameter, the method further includes: Acquiring second signal quality information; If the second signal quality information satisfies the quality information condition, sending the detection data packet to the server; Determining second link information based on second response information sent by the server in response to the detection data packet; If the second link information satisfies the link information condition, the target data transmission parameter is adjusted to the third initial data transmission parameter.
9. A data transmission parameter determination device, characterized in that: include: An information acquisition unit, configured to acquire first signal quality information; an information determining unit, configured to send a detection data packet to a server if the first signal quality information does not satisfy a quality information condition, and determine first link information based on first response information of the server to the detection data packet; A parameter determination unit is used to determine a target data transmission parameter based on the first signal quality information and the first link information if the first link information does not meet the link information condition, and adopt the target data transmission parameter for data transmission.
10. The device according to claim 9, characterized in that The information acquisition unit, when used to acquire the first signal quality information, is specifically used to: Based on the signal quality parameter and / or the signal quality map, first signal quality information is determined.
11. The device according to claim 9, characterized in that The device further includes a parameter adjustment unit, wherein the parameter adjustment unit is configured to obtain a first initial data transmission parameter after obtaining the first signal quality information; If the first signal quality information satisfies the quality information condition, acquiring a first data transmission parameter corresponding to the first signal quality information; If the first initial data transmission parameter is inconsistent with the first data transmission parameter, the first initial data transmission parameter is adjusted to the first data transmission parameter.
12. The device according to claim 9, characterized in that The device further includes a parameter adjustment unit, wherein the parameter adjustment unit is configured to obtain a second initial data transmission parameter after obtaining the first signal quality information; If the first link information satisfies the link information condition, acquiring a second data transmission parameter corresponding to the first link information; If the second initial data transmission parameter is inconsistent with the second data transmission parameter, the second initial data transmission parameter is adjusted to the second data transmission parameter.
13. The device according to claim 9, characterized in that The parameter determination unit is used to determine the target data transmission parameter based on the first signal quality information and the first link information, specifically to: Acquire a quality information level corresponding to the first signal quality information and a link information level corresponding to the first link information; Determining a target information level based on the quality information level and the link information level; A data transmission parameter corresponding to the target information level is acquired, and the data transmission parameter is determined as a target data transmission parameter.
14. The device according to claim 9, characterized in that The device also includes a transmission stopping unit, which is used to stop data transmission if the first signal quality information does not meet the quality information condition, after sending a detection data packet to the server, if no response information sent by the server to the detection data packet is obtained within a time threshold.
15. The device according to claim 9, characterized in that The device further includes a parameter adjustment unit, the parameter adjustment unit being configured to obtain a third initial data transmission parameter based on the first signal quality information and the first link information if the first link information does not satisfy a link information condition; If the third initial data transmission parameter is inconsistent with the target data transmission parameter, the third initial data transmission parameter is adjusted to the target data transmission parameter.
16. The device according to claim 15, characterized in that The parameter adjustment unit is further used for: Acquiring second signal quality information; If the second signal quality information satisfies the quality information condition, sending the detection data packet to the server; Determining second link information based on second response information sent by the server in response to the detection data packet; If the second link information satisfies the link information condition, the target data transmission parameter is adjusted to the third initial data transmission parameter.
17. A terminal, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
19. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.
