CN110933706A - Network communication setting method, device, storage medium and terminal - Google Patents

Network communication setting method, device, storage medium and terminal Download PDF

Info

Publication number
CN110933706A
CN110933706A CN201911270501.0A CN201911270501A CN110933706A CN 110933706 A CN110933706 A CN 110933706A CN 201911270501 A CN201911270501 A CN 201911270501A CN 110933706 A CN110933706 A CN 110933706A
Authority
CN
China
Prior art keywords
coding mode
current
communication
network
network quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911270501.0A
Other languages
Chinese (zh)
Inventor
龚爱民
韦耀庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201911270501.0A priority Critical patent/CN110933706A/en
Publication of CN110933706A publication Critical patent/CN110933706A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • H04L1/0017Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy where the mode-switching is based on Quality of Service requirement

Abstract

The embodiment of the application discloses a network communication setting method, a network communication setting device, a storage medium and a terminal. The network communication setting method comprises the following steps: when transmitting data to the opposite terminal, obtaining the current network quality value; if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value; processing the current communication code according to the target coding mode to obtain a processed code; and performing network communication with the opposite party terminal based on the processed code. According to the embodiment of the application, the network quality during network connection is detected in real time, the network coding mode is dynamically adjusted according to the network quality, network communication is carried out based on the adjusted coding mode, and the accuracy of network communication between terminals can be improved.

Description

Network communication setting method, device, storage medium and terminal
Technical Field
The application relates to the field of mobile terminal application, in particular to a network communication setting method, a network communication setting device, a storage medium and a terminal.
Background
With the development of network technology, communication between mobile terminals based on the same communication protocol architecture is more and more frequent. In an actual application scene, the distance between the mobile terminals is dynamically changed, and the obstacles between the mobile terminals are correspondingly dynamically changed. The transmission power/reception sensitivity of the mobile terminal is limited by regulations, by element characteristics, by power consumption, and is limited to a certain range. Accordingly, the communication distance between mobile terminals is limited to a range within which the network quality is in good condition, but beyond which the network quality may deteriorate accordingly. Then the accuracy of the communication between the mobile terminals may be affected to some extent.
Disclosure of Invention
The embodiment of the application provides a network communication setting method, a network communication setting device, a storage medium and a terminal, and can improve the accuracy of network communication between terminals.
The embodiment of the application provides a network communication setting method, which comprises the following steps:
when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes;
if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value;
processing the current communication code according to the target coding mode to obtain a processed code;
and performing network communication with the opposite terminal based on the processed code.
Correspondingly, the embodiment of the present application further provides a network communication setting apparatus, including:
a first acquisition unit configured to acquire a current network quality value when transmitting data to an opposite terminal, the data including a communication code;
the first determining unit is used for determining a target coding mode from a plurality of preset coding modes according to the current network quality value if the current network quality value is smaller than a preset threshold value;
the processing unit is used for processing the current communication code according to the target coding mode to obtain a processed code;
and the operation unit is used for carrying out network communication with the opposite terminal based on the processed code.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the network communication setting method as described above.
Correspondingly, an embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the network communication setting method described above.
The embodiment of the application discloses a network communication setting method, a network communication setting device, a storage medium and a terminal. The network communication setting method comprises the following steps: when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes; if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value; processing the current communication code according to the target coding mode to obtain a processed code; and performing network communication with the opposite terminal based on the processed code. According to the embodiment of the application, the network quality during network connection is detected in real time, the network coding mode is dynamically adjusted according to the network quality, network communication is carried out based on the adjusted coding mode, and the accuracy of network communication between terminals can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first network communication setting method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a second network communication setting method according to an embodiment of the present application.
Fig. 3 is a block diagram of a first network communication setting device according to an embodiment of the present application.
Fig. 4 is a block diagram of a second network communication setting device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In view of the foregoing problems, embodiments of the present application provide a method, an apparatus, a storage medium, and a terminal for setting network communication, which can improve efficiency of setting network communication of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a first network communication setting method according to an embodiment of the present disclosure. The network communication setting method can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palmtop computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the network communication setting method may be as follows:
101. when data is transmitted to the opposite terminal, the current network quality value is acquired, and the data comprises communication codes.
In this embodiment, when it is detected that data is transmitted to the other terminal, a current network quality value may be obtained, where the current network quality value refers to a network quality value at the time of data transmission at present. The strength of the network quality can be judged by the signal strength. The signal strength may refer to the strength of the signal transmitted by the base station when the terminal is receiving the signal. For example, the signal strength may be-50 dbm (units: decibel milliwatts), and then-50 dbm may be expressed as the current network quality value. When the terminal receiving level > is-90 dBm in the city and-94 dBm in the countryside, the coverage requirement is met, that is, the wireless signal strength at the moment can meet the coverage requirement.
In some embodiments, the network quality may also be determined by the Bit Error Rate (BER), which is an index for measuring the accuracy of data transmission within a specified time. The error rate is 100% of the errors in transmission/total number of transmitted codes, and if there are errors, the error rate is obtained.
Specifically, the error code is generated because the voltage of the signal is changed by decay in the signal transmission, so that the signal is damaged in the transmission, and the error code is generated. Noise, impulses caused by alternating current or lightning, transmission equipment failure, and other factors can cause errors (e.g., a transmitted signal is a 1 and a received signal is a 0; or vice versa). For example, the bit error rate may be 30%, 50%, 70%, etc., with higher bit error rates indicating poorer current network quality values.
The error Rate may include a Packet Loss Rate (Loss Tolerance or Packet Loss Rate), which is a ratio of the number of lost data packets in the test to the number of transmitted data groups. The calculation method is that [ (input message-output message)/input message ]. 100% ". The packet loss rate is related to the packet length and the packet transmission frequency. Generally, when the flow rate of a gigabit network card is greater than 200Mbps (unit of data transmission rate: Million bits per second), the packet loss rate is less than five ten-thousandths; when the flow rate of the hundred million network cards is more than 60Mbps, the packet loss rate is less than one ten thousandth. Testing is typically done over a range of throughputs.
After the current network quality value is detected, the current network quality value may be compared to a preset threshold. The preset threshold is the preset signal strength, and the preset signal strength can be expressed as the minimum signal strength value for normally performing network communication between terminals and can be obtained through experimental data. The preset signal intensity can be set by self-definition, and when the areas are different, the preset signal intensity can be different.
For example, the current network quality value may be represented by network signal strength, when it is detected that the current network signal strength may be-100 dbm and the preset signal strength may be-90 dbm, it may be determined that the current network signal strength value is smaller than the preset signal strength value, that is, the bit error rate is higher when data transmission is performed between the current terminals, and the corresponding packet loss rate is also higher, which affects the accuracy of data transmission.
102. And if the current network quality value is smaller than the preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value.
Specifically, after the communication code is determined, the target encoding mode may be obtained, and the target encoding mode may be determined from a plurality of preset encoding modes according to the current network quality value. For example, if the current code may be 1, the current code may be decomposed into 11111, 111111, 1111111, and so on according to the coding mode. I.e. the number of repetition codes of the network coding is 5, 6, 7, respectively.
The preset coding modes can include multiple types, and a corresponding preset coding mode can be determined according to the network quality value. For example, the preset encoding mode may include a preset encoding mode a, a preset encoding mode B, a preset encoding mode C, and the like, wherein the number of repetition codes in the preset encoding mode a may be set to 4, the number of repetition codes in the preset encoding mode B may be set to 6, the number of repetition codes in the preset encoding mode C may be set to 8, and the like.
In the network communication connection process, in order to reduce the power consumption of the terminal, a proper coding mode can be selected according to the real-time network quality to process the current network coding, and when the network quality is better, a coding mode with a smaller number of repeated codes can be selected to perform network communication. In some embodiments, the step of "determining a target coding mode from a plurality of preset coding modes according to the current network quality value" may include the following processes:
acquiring a target quality grade corresponding to the current network quality value;
and determining the coding mode corresponding to the target quality level from a plurality of preset coding modes as a target coding mode.
Specifically, the current network quality level is obtained, and the network quality levels may be divided into multiple types, for example, the network quality levels may be divided into a good level, a general level, a worst level, and the like. The signal intensity range corresponding to the good grade can be-95 dbm to-90 dbm, the signal intensity range corresponding to the general grade can be-100 dbm to-96 dbm, the signal intensity range corresponding to the worst grade can be < -100dbm and the like.
For example, the current network signal strength may be-93 dbm, then the current network quality level may be determined to be a good level.
Further, an encoding mode corresponding to the target quality level is determined from a plurality of preset encoding modes, wherein the plurality of preset encodings may be stored in a network encoding information base, and the network encoding information base may include a corresponding relationship between the preset encoding modes and quality levels of network quality, for example, the quality level corresponding to the preset encoding mode a may be a good level, the quality level corresponding to the preset encoding mode B may be a general level, and the quality level corresponding to the preset encoding mode C may be a worst level.
For example, if it is determined that the quality level of the current network quality may be a good level according to the signal strength of the currently acquired network connection, the corresponding slave network information base may determine the preset coding mode a as the target coding mode according to the correspondence between the preset coding mode and the quality level.
In some embodiments, before the step of "determining the target encoding mode from a plurality of preset encoding modes according to the current network quality value", the following steps may be further included:
and if the current network quality value is larger than or equal to the preset threshold value, performing network communication with the opposite terminal based on the initial coding mode, wherein the number of the repeated codes of the initial coding mode is smaller than that of the repeated codes of the target coding mode.
Specifically, after the current network quality value is obtained, a preset encoding mode of the current network connection may be determined, and then data to be transmitted may be encoded and decoded according to the selected preset encoding mode, for example, at this time, the preset encoding mode is a preset encoding mode a, and then the terminal performs network communication connection with the other terminal according to the preset encoding mode a. Then, in the process of communication according to the preset encoding mode a, when it is detected that the current network quality value is greater than or equal to the preset threshold, the current preset encoding mode a may be closed, and the encoding mode may be switched to the initial encoding mode.
The initial coding mode may represent a first default coding mode during network communication, and in the initial coding mode, the number of the repeated codes may be set to 1, that is, it represents that the current network quality is better, and if the bit error rate is lower, the network coding may not be decomposed into multiple codes.
103. And processing the current communication code according to the target coding mode to obtain a processed code.
Specifically, after determining the target coding mode, the current communication code may be processed, and in some embodiments, the step "processing the current communication code according to the target coding mode" may include the following steps:
acquiring the number of repeated codes of communication codes in the target coding mode;
processing the current communication code based on the number of repetition codes.
First, the number of repetition codes of the communication code may be obtained based on the target coding mode, for example, the target coding mode may be a preset coding mode a, where the number of repetition codes included in the preset coding mode a is 4, and then it may be determined that the current number of repetition codes is set to 4.
For example, if the current communication code may be 1, the number of acquired repetition codes is set to 4, and the current communication code may be changed to 1111, then the code 1111 may be the processed code.
In some embodiments, before the step of "processing the current communication code according to the target coding mode", a step may be included;
acquiring current transmission data;
determining the current communication code from the currently transmitted data.
Specifically, the current communication information is acquired, and the communication information communicated with the opposite terminal can be acquired when data transmission is performed with the opposite terminal. The communication information may include information such as transmission data, communication coding mode, and communication signal strength. Further, the communication code may be determined from transmission data included in the acquired communication information, and the current communication code may be acquired.
Where encoding is the process by which information is converted from one form or format to another, also referred to as code of a computer programming language, simply called encoding. Characters, numbers or other objects are coded into numbers by a predetermined method, or information and data are converted into predetermined electric pulse signals. The encoded communication is a kind of secret communication, and its basic principle is to change the signal into digital code, and add irregular cipher signal, and then send it to the line. Specifically, the communication code may be composed of a number, for example, for the convenience of receiving or transmitting by the terminal, the communication code may be composed of a number 0 or 1.
For example, if the current communication code is 1, it means that the information to be currently transmitted is encoded, the obtained code is 1, and the communication code 1 can be transmitted.
104. And performing network communication with the opposite terminal based on the processed code.
Specifically, after determining the post-processing code, network communication may be performed with the counterpart terminal according to the post-processing code.
Specifically, the current data to be sent is obtained, the data to be sent may be information to be sent, which is converted into a data format by the processor, and the information to be sent may be characters, pictures, video, audio, and the like.
For example, the current information to be sent may be text information, and the text information is converted into a data format by the terminal processor to obtain the data string 1100, so that the data string 1100 may represent the text information.
After the current data to be transmitted is obtained, the data to be transmitted may be processed according to a processed code, that is, a target coding mode, for example, the data to be processed is 1100, and the target coding mode is a preset coding mode a, that is, the number of repetition codes is 4, then after the data to be processed is processed, the coded data (1111) (1111) (0000) (0000) may be obtained, that is, data 1, 0 in the data string are respectively decomposed into a plurality of network codes, and then the coded data (1111) (1111) (0000) (0000) is transmitted to the other terminal, so that an error rate and a packet loss rate of data transmission may be reduced.
In order to ensure the real-time communication efficiency in the communication process, the communication network quality may be detected in real time, and in some embodiments, after the step "communicate with the counterpart terminal based on the processed code", the following steps may be further included:
when the current network quality value is detected to be changed, the changed network quality value is obtained;
and switching the target coding mode according to the changed network quality value.
Specifically, when the current network quality value is detected to be changed, the changed network quality value can be obtained, the corresponding network quality level is determined according to the changed network quality value, then the coding mode corresponding to the changed network quality value is determined from the network coding information base, and the current target coding mode can be switched.
For example, the current network quality value may be-93 dbm, the current network quality value is detected to be changed, and the changed network quality value may be-100 dbm, then it may be determined according to the changed network quality value that the network quality level corresponding to the changed network quality value may be a general level, then it is determined according to the correspondence between the network quality level and the coding mode in the network coding information base that the coding mode corresponding to the changed network quality value is the preset coding mode B, and then the target coding mode may be switched to the preset coding mode B.
Specifically, the network signal strength may also be affected by other factors, for example, the geographic location is also the distance range between the terminals, then the distance value between the terminal and the other terminal may be obtained, the current geographic location may be obtained through a GPS (Global positioning system), then the location of the other terminal may be obtained through communication with the other terminal, and finally the distance value may be determined according to the obtained geographic location. For example, the acquired distance value may be 100 meters.
Comparing the obtained distance value with a preset distance value, for example, the obtained distance value may be 100 meters, the preset distance value may be 150 meters, and if it can be determined that the distance value is smaller than the preset distance value, it indicates that the current distance from the other terminal is within a distance range with good signal strength, and the communication with the other terminal may be performed according to the initial coding mode.
The embodiment of the application discloses a network communication setting method, which comprises the following steps: when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes; if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value; processing the current communication code according to the target coding mode to obtain a processed code; and performing network communication with the opposite terminal based on the processed code. According to the embodiment of the application, the network quality during network connection is detected in real time, the network coding mode is dynamically adjusted according to the network quality, network communication is carried out based on the adjusted coding mode, and the accuracy of network communication between terminals can be improved.
Referring to fig. 2, fig. 2 is a schematic flowchart of a second network communication setting method according to an embodiment of the present application. The specific scenario application of the network communication setting may be as follows:
201. and the terminal opens the network connection function according to the network opening instruction triggered by the user.
In this embodiment, the terminal may open the network connection function according to a network open instruction triggered by a user, where the network connection may include multiple modes, such as a data network connection mode or a wireless network connection mode, and the terminal may detect a touch operation of a current user and execute a corresponding function.
For example, when the current user opens the setting page and clicks the wireless network opening button, the terminal may open the wireless network connection function.
202. The terminal acquires the signal intensity of the current network connection and judges whether the signal intensity is smaller than the preset signal intensity.
Specifically, after the terminal opens the network connection, the network quality may be detected by acquiring the signal strength of the current network connection, for example, the acquired current signal strength may be-100 dbm. And comparing the current signal strength with the preset signal strength, and judging whether the current signal strength is smaller than the preset signal strength.
For example, if the acquired current signal strength may be-80 dbm and the preset signal strength may be-90 dbm, it may be determined that the current signal strength is greater than the preset signal strength, and step 203 may be performed.
For another example, if the acquired current signal strength may be-100 dbm and the preset signal strength may be-90 dbm, it may be determined that the current signal strength is less than the preset signal strength, and step 204 may be executed.
203. And the terminal finishes the operation.
When detecting that the current signal strength is greater than the preset signal strength, the terminal can continue to perform network communication with the opposite terminal according to the current network coding mode.
204. And the terminal acquires the communication code when the current network is connected.
When detecting that the current signal strength is smaller than the preset signal strength, the terminal may acquire a communication code of the current network connection, that is, a current communication code mode, where the current communication code mode may be multiple. For example, the current communication coding mode may be an initial coding mode, the initial coding mode may represent a first default coding mode when network communication is performed, and in the initial coding mode, the number of the repeated codes may be set to be 1, that is, when the network code is 1, the network code sent out is also 1.
For example, the current communication code may be a string of digits consisting of the digits 1 or 0, such as 111, 000, 101, and so on.
205. And the terminal acquires a target coding mode corresponding to the signal intensity.
Specifically, the terminal may obtain a target coding mode corresponding to the current signal strength, and may obtain the target coding mode through a network coding information base, where the network coding information base includes a corresponding relationship between the signal strength and a preset coding mode, and the signal strength may be divided into multiple levels, such as a better signal, a medium signal, and a worse signal; the preset encoding mode may include a plurality of encoding modes, such as an encoding mode a, an encoding mode b, and an encoding mode c, etc.
Specifically, the signal strength level can be customized by a user or set by the terminal according to the actual network condition. For example, a poor signal may comprise a signal strength in the range of less than-100 dbm, a medium signal may comprise a signal strength in the range of-96 dbm to-100 dbm, and a good signal may comprise a signal strength in the range of-90 dbm to-95 dbm; the current network signal strength is acquired to be-100 dbm, and then the grade of the current signal strength can be judged to be a poor grade.
Further, according to the signal level corresponding to the current signal strength, a preset encoding mode corresponding to the signal level may be acquired from a network encoding information base, and the preset encoding mode may be determined as a target encoding mode. For example, the current signal level may be a poor level, and the preset coding mode corresponding to the poor level may be a coding mode c.
206. And the terminal processes the communication code according to the target coding mode to obtain a processed code.
After the terminal determines the target coding mode, the current communication code may be processed according to the target coding mode, for example, according to the above steps, the target coding mode may be determined to be coding mode c, where the number of repetition codes included in coding mode c may be 8, the current communication code may be decomposed into 8 codes, for example, the current communication code is 1, and the current communication code may be processed according to coding mode c to obtain 11111111.
207. And the terminal acquires data to be sent, processes the data to be sent based on the processed codes and sends the data to be sent.
Specifically, after the terminal determines the target coding mode, the terminal may obtain the current data to be transmitted, for example, the current data to be transmitted may be 111, the terminal may process the current data to be transmitted 111 according to the target coding mode, that is, the coding mode c, the processed data to be transmitted may be (11111111111) (11111111111111), and then the processed data to be transmitted may be transmitted to another terminal.
The embodiment of the application discloses a network communication setting method, which comprises the following steps: when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes; if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value; processing the current communication code according to the target coding mode to obtain a processed code; and performing network communication with the opposite terminal based on the processed code. According to the embodiment of the application, the network quality during network connection is detected in real time, the network coding mode is dynamically adjusted according to the network quality, network communication is carried out based on the adjusted coding mode, and the accuracy of network communication between terminals can be improved.
In order to better implement the network communication setting method provided by the embodiment of the present application, an embodiment of the present application further provides a device based on the network communication setting method. The terms are the same as those in the above network communication setting method, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a first network communication setting device according to an embodiment of the present application, including:
a first obtaining unit 301, configured to obtain a current network quality value when data is transmitted to an opposite terminal, where the data includes a communication code;
a first determining unit 302, configured to determine, if the current network quality value is smaller than a preset threshold, a target encoding mode from a plurality of preset encoding modes according to the current network quality value;
a processing unit 303, configured to process the current communication code according to the target coding mode to obtain a processed code;
an operation unit 304, configured to perform network communication with the counterpart terminal based on the processed code.
Referring to fig. 4, fig. 4 is a block diagram of a second network communication setting device according to an embodiment of the present disclosure, in some embodiments, the processing unit 303 may include:
a first obtaining subunit 3031, configured to obtain the number of repetition codes of the communication code in the target coding mode;
a processing sub-unit 3032, configured to process the current communication code based on the number of repetition codes.
In some embodiments, the determining unit 302 may include:
the second acquisition subunit is used for acquiring a target quality level corresponding to the current network quality value;
and the determining subunit is used for determining the coding mode corresponding to the target quality level from a plurality of preset coding modes as the target coding mode.
In some embodiments, the network communication setting apparatus may further include:
the detection unit is used for acquiring the changed network quality value when the change of the current network quality value is detected;
a switching unit for switching the target coding mode according to the changed network quality value
In some embodiments, the network communication setting apparatus may further include:
a second acquisition unit configured to acquire current communication information;
and the second determining unit is used for determining the current communication code according to the current communication information.
In some embodiments, the network communication setting apparatus may further include:
and the operation unit is used for carrying out network communication with the opposite terminal based on the initial coding mode if the current network quality value is greater than or equal to the preset threshold, wherein the number of the repeated codes of the initial coding mode is less than that of the repeated codes of the target coding mode.
The embodiment of the application discloses a network communication setting device. The method comprises the following steps: when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes; if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value; processing the current communication code according to the target coding mode to obtain a processed code; and performing network communication with the opposite terminal based on the processed code. According to the embodiment of the application, the network quality during network connection is detected in real time, the network coding mode is dynamically adjusted according to the network quality, network communication is carried out based on the adjusted coding mode, and the accuracy of network communication between terminals can be improved.
The embodiment of the application also provides a terminal. As shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, a terminal, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes;
if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value;
processing the current communication code according to the target coding mode to obtain a processed code;
and performing network communication with the opposite terminal based on the processed code.
The embodiment of the application discloses a network communication setting method, a network communication setting device, a storage medium and a terminal. The network communication setting method comprises the following steps: when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes; if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value; processing the current communication code according to the target coding mode to obtain a processed code; and performing network communication with the opposite terminal based on the processed code. According to the embodiment of the application, the network quality during network connection is detected in real time, the network coding mode is dynamically adjusted according to the network quality, network communication is carried out based on the adjusted coding mode, and the accuracy of network communication between terminals can be improved.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any network communication setting method provided in the present application. For example, the instructions may perform the steps of:
when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes; if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value; processing the current communication code according to the target coding mode to obtain a processed code; and performing network communication with the opposite terminal based on the processed code.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any network communication setting method provided in the embodiments of the present application, beneficial effects that can be achieved by any network communication setting method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.
The network communication setting method, device, storage medium and terminal provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A network communication setting method is applied to a terminal, and is characterized by comprising the following steps:
when data are transmitted to an opposite terminal, the current network quality value is obtained, and the data comprise communication codes;
if the current network quality value is smaller than a preset threshold value, determining a target coding mode from a plurality of preset coding modes according to the current network quality value;
processing the current communication code according to the target coding mode to obtain a processed code;
and performing network communication with the opposite terminal based on the processed code.
2. The method of claim 1, wherein processing the current communication code according to the target coding mode comprises:
acquiring the number of repeated codes of communication codes in the target coding mode;
processing the current communication code based on the number of repetition codes.
3. The method of claim 1, wherein determining the target coding mode from a plurality of predetermined coding modes according to the current network quality value comprises:
acquiring a target quality grade corresponding to the current network quality value;
and determining the coding mode corresponding to the target quality level from a plurality of preset coding modes as a target coding mode.
4. The method according to claim 1, further comprising, after performing network communication with the counterpart terminal based on the processed code:
when the current network quality value is detected to be changed, the changed network quality value is obtained;
and switching the target coding mode according to the changed network quality value.
5. The method of claim 1, further comprising, prior to processing a current communication code in the target coding mode:
acquiring current transmission data;
determining the current communication code from the currently transmitted data.
6. The method of claim 1, further comprising, prior to determining the target coding mode from a plurality of predetermined coding modes based on the current network quality value:
and if the current network quality value is larger than or equal to a preset threshold value, performing network communication with the opposite terminal based on an initial coding mode, wherein the number of repeated codes of the initial coding mode is smaller than that of repeated codes of a target coding mode.
7. A network communication setting apparatus, comprising:
a first acquisition unit configured to acquire a current network quality value when transmitting data to an opposite terminal, the data including a communication code;
the first determining unit is used for determining a target coding mode from a plurality of preset coding modes according to the current network quality value if the current network quality value is smaller than a preset threshold value;
the processing unit is used for processing the current communication code according to the target coding mode to obtain a processed code;
and the operation unit is used for carrying out network communication with the other side based on the processed code.
8. The apparatus of claim 7, wherein the processing unit comprises:
the first acquiring subunit is used for acquiring the number of the repeated codes of the communication codes in the target coding mode;
and the processing subunit is used for processing the current communication code based on the repeated code number.
9. A storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps of the network communication setting method according to any one of claims 1 to 6.
10. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the steps in the network communication setting method of any of claims 1 to 6.
CN201911270501.0A 2019-12-12 2019-12-12 Network communication setting method, device, storage medium and terminal Pending CN110933706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911270501.0A CN110933706A (en) 2019-12-12 2019-12-12 Network communication setting method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911270501.0A CN110933706A (en) 2019-12-12 2019-12-12 Network communication setting method, device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN110933706A true CN110933706A (en) 2020-03-27

Family

ID=69860142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911270501.0A Pending CN110933706A (en) 2019-12-12 2019-12-12 Network communication setting method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110933706A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884939A (en) * 2020-08-31 2020-11-03 广州文远知行科技有限公司 Data transmission method, device, mobile carrier and storage medium
CN113852988A (en) * 2021-09-10 2021-12-28 武汉联影医疗科技有限公司 Congestion control method and device, computer equipment and storage medium
CN113873682A (en) * 2020-06-12 2021-12-31 奥图码科技股份有限公司 Automatic connection and disconnection system and automatic connection and disconnection method
CN114978427A (en) * 2022-05-19 2022-08-30 腾讯科技(深圳)有限公司 Data processing method, apparatus, program product, computer device and medium
CN115102669B (en) * 2022-06-24 2024-04-26 珠海格力电器股份有限公司 Multi-split air conditioning system network communication method and device and multi-split air conditioning system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464455A (en) * 2015-03-19 2017-02-22 华为技术有限公司 Information transmission method, terminal device, network device and device
CN106685596A (en) * 2017-02-14 2017-05-17 电子科技大学 Method for improving network coding and data transmission based on RPL protocol
WO2018196786A1 (en) * 2017-04-28 2018-11-01 华为技术有限公司 Rate matching method and apparatus for polar codes
CN108738055A (en) * 2018-05-21 2018-11-02 京信通信系统(中国)有限公司 Modulation coding scheme method of adjustment, device, base station and storage medium
WO2019062838A1 (en) * 2017-09-28 2019-04-04 华为技术有限公司 Method and device for data transmission
CN110149167A (en) * 2019-05-05 2019-08-20 Oppo广东移动通信有限公司 Method and device for dynamically adjusting codes, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464455A (en) * 2015-03-19 2017-02-22 华为技术有限公司 Information transmission method, terminal device, network device and device
CN106685596A (en) * 2017-02-14 2017-05-17 电子科技大学 Method for improving network coding and data transmission based on RPL protocol
WO2018196786A1 (en) * 2017-04-28 2018-11-01 华为技术有限公司 Rate matching method and apparatus for polar codes
WO2019062838A1 (en) * 2017-09-28 2019-04-04 华为技术有限公司 Method and device for data transmission
CN108738055A (en) * 2018-05-21 2018-11-02 京信通信系统(中国)有限公司 Modulation coding scheme method of adjustment, device, base station and storage medium
CN110149167A (en) * 2019-05-05 2019-08-20 Oppo广东移动通信有限公司 Method and device for dynamically adjusting codes, mobile terminal and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873682A (en) * 2020-06-12 2021-12-31 奥图码科技股份有限公司 Automatic connection and disconnection system and automatic connection and disconnection method
CN111884939A (en) * 2020-08-31 2020-11-03 广州文远知行科技有限公司 Data transmission method, device, mobile carrier and storage medium
CN113852988A (en) * 2021-09-10 2021-12-28 武汉联影医疗科技有限公司 Congestion control method and device, computer equipment and storage medium
CN113852988B (en) * 2021-09-10 2023-11-24 武汉联影医疗科技有限公司 Congestion control method, congestion control device, computer equipment and storage medium
CN114978427A (en) * 2022-05-19 2022-08-30 腾讯科技(深圳)有限公司 Data processing method, apparatus, program product, computer device and medium
CN115102669B (en) * 2022-06-24 2024-04-26 珠海格力电器股份有限公司 Multi-split air conditioning system network communication method and device and multi-split air conditioning system

Similar Documents

Publication Publication Date Title
CN108430101B (en) Antenna closing method and device, storage medium and electronic equipment
CN108990105B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN109819450B (en) Signal receiving method, device and terminal
CN110933706A (en) Network communication setting method, device, storage medium and terminal
CN104837042B (en) The coding method of digital multimedia data and device
CN111093259B (en) Bluetooth power adjustment method and device, storage medium and terminal
CN107172671B (en) Channel switching method, device, storage medium and terminal
CN111262672B (en) Transmission method, network equipment and terminal
CN105243638A (en) Image uploading method and apparatus
EP3641310A1 (en) Video encoding method, apparatus, device, and storage medium
CN108492837B (en) Method, device and storage medium for detecting audio burst white noise
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN110198560B (en) Power configuration method and terminal
CN112888024B (en) Data processing method, data processing device, storage medium and electronic equipment
CN111615198A (en) Resource determining method, resource indicating method, terminal and network side equipment
CN109286414B (en) Antenna determination method and terminal
CN115118636A (en) Method and device for determining network jitter state, electronic equipment and storage medium
CN107315623B (en) Method and device for reporting statistical data
CN107204882B (en) Method and equipment for filtering data packet and mobile terminal
CN108462801B (en) Method, device and system for acquiring streaming media data
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN110890950A (en) Signal processing method, access network equipment and terminal equipment
CN115883839B (en) Image verification method, device, equipment and computer readable storage medium
CN109561481B (en) Data sending method, terminal and storage medium
CN112291043B (en) Data transmission method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327

RJ01 Rejection of invention patent application after publication