CN110958641B - WIFI data receiving and transmitting control method and device for mobile terminal - Google Patents

WIFI data receiving and transmitting control method and device for mobile terminal Download PDF

Info

Publication number
CN110958641B
CN110958641B CN201911202972.8A CN201911202972A CN110958641B CN 110958641 B CN110958641 B CN 110958641B CN 201911202972 A CN201911202972 A CN 201911202972A CN 110958641 B CN110958641 B CN 110958641B
Authority
CN
China
Prior art keywords
mobile terminal
data
wifi
data frame
size threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911202972.8A
Other languages
Chinese (zh)
Other versions
CN110958641A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Chaojie Technology Co ltd
Original Assignee
Hunan Chaojie Technology 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 Hunan Chaojie Technology Co ltd filed Critical Hunan Chaojie Technology Co ltd
Priority to CN201911202972.8A priority Critical patent/CN110958641B/en
Publication of CN110958641A publication Critical patent/CN110958641A/en
Application granted granted Critical
Publication of CN110958641B publication Critical patent/CN110958641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • 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/0278Traffic management, e.g. flow control or congestion control using buffer status reports

Abstract

The embodiment of the invention discloses a WIFI data receiving and transmitting control method of a mobile terminal, which can send a data frame to a wireless network and start a timer to monitor whether a response representing the congestion state of the wireless network is transmitted on time or not; if the response is transmitted on time, enabling the wireless network to send and receive data normally; if the response is not transmitted on time, making data receiving and transmitting control feedback to the wireless network; and simultaneously, the wireless network sends a response representing the congestion state of the wireless network to the mobile terminal according to the size relation between the internal cache space and the cache region size threshold field contained in the data frame. According to the scheme, the conditions of data packet loss, untimely response and the like in the communication process can be mastered in time, and interruption of data transmission or restarting of WIFI are avoided.

Description

WIFI data receiving and transmitting control method and device for mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a WIFI data transceiving control method and device for a mobile terminal.
Background
With the development of wireless network technology, almost all mobile terminals support WIFI wireless surfing, WIFI signals are provided by wired networks, such as asymmetric digital subscriber lines in a home, cell broadband and the like, the wired signals can be converted into WIFI signals only by connecting with a wireless router, when the WIFI signals exist, the mobile terminals can surf the internet without the network of an operator, so that traffic cost is saved, the mobile terminals can surf the internet without the limitation of wiring conditions, and the mobile terminals can surf the internet anywhere in a WIFI signal coverage area, but in the research and practice process of the prior art, the inventor of the invention discovers that data transmission can be performed through the WIFI when the mobile terminals surf the internet by utilizing the WIFI, but the situations of data packet loss, untimely response and the like cannot be mastered in time, so that the data transmission is interrupted, and even the WIFI is restarted.
Disclosure of Invention
The embodiment of the invention provides a WIFI data transceiving control method and device for a mobile terminal, which can timely grasp the conditions of data packet loss, untimely response and the like in the communication process when the mobile terminal is connected to WIFI, and avoid interruption of data transmission or restarting the WIFI.
The WIFI data transceiving control method for the mobile terminal provided by the embodiment of the invention comprises the following steps:
inserting a data segment to be responded, which comprises two identical identification characters and a buffer size threshold field, into a data frame;
transmitting the data frame to a wireless local area network device, and starting a timer for monitoring whether response information representing the congestion state of the wireless local area network device is transmitted within a time range set by the timer;
if the response information is transmitted in the time range set by the timer, enabling the wireless local area network equipment to normally transmit and receive data;
and if the response information is not transmitted in the time range set by the timer, making data receiving and transmitting control feedback to the wireless local area network equipment.
Optionally, in some embodiments of the present invention, before inserting the data segment to be responded to including two identical identification characters and buffer size threshold fields into the data frame, the method includes:
receiving the size of a buffer area sent by the wireless local area network equipment;
and representing the size of the buffer area by using the buffer area size threshold field.
Optionally, in some embodiments of the present invention, if the response information is not conveyed within a time range set by a timer, making data transceiver control feedback to the wireless lan device includes:
if the timer times out for the first time and the response information is not received yet, reducing the number of the data frames sent to the wireless local area network equipment;
if the timer times out for the second time and the response information is not received yet, judging that the state of the wireless local area network equipment is abnormal, and sending a buffer clearing request to the wireless local area network equipment.
Optionally, in some embodiments of the present invention, a method for controlling WIFI data transceiving of a mobile terminal includes:
receiving a data frame sent by a mobile terminal;
judging the size relation between the current internal cache space and a cache region size threshold field contained in the data frame;
transmitting response information representing the congestion state of the wireless local area network equipment to the mobile terminal according to the size relation;
and executing data receiving and transmitting control feedback made by the mobile terminal.
Optionally, in some embodiments of the present invention, before determining a size relationship between a current internal buffer space and a buffer size threshold field included in the data frame, the method includes:
detecting the buffer size threshold field contained in the data segment to be responded in the data frame;
and detecting the size of the current internal cache space.
Optionally, in some embodiments of the present invention, the sending, to the mobile terminal, response information indicating congestion status of the wireless lan device according to the size relationship includes:
if the current internal cache space is smaller than the cache region size threshold field, sending response information indicating the congestion state of the wireless local area network equipment to the mobile terminal, wherein the response information indicates that the wireless local area network equipment can normally transmit and receive data;
if the current internal cache space is larger than or equal to the cache region size threshold field, recording the cache region size threshold field, and monitoring the change condition of the current internal cache space until the current internal cache space is smaller than the cache region size threshold field, and sending response information representing the congestion state of the wireless local area network equipment to the mobile terminal, wherein the response information represents that the wireless local area network equipment receives and transmits data normally.
Optionally, in some embodiments of the present invention, the response information indicating the congestion status of the wireless lan device includes:
the response information may be in various forms of data, pulses, etc.
Correspondingly, the embodiment of the invention also provides a WIFI data transceiving control device of the mobile terminal, which comprises the following steps:
the inserting unit is used for inserting the data segment to be responded, which contains two identical identification characters and buffer area size threshold fields, into the data frame;
a data frame transmitting unit, configured to transmit a data frame to a wireless lan device by using a mobile terminal;
a starting unit for starting a timer to monitor whether response information indicating a congestion state of the wireless lan device is communicated within a time range set by the timer;
the receiving unit is used for receiving the response information transmitted in the time range set by the timer, so that the wireless local area network equipment can normally receive and transmit data;
and the feedback unit is used for determining the response information which is not transmitted in the time range set by the timer and making data receiving and transmitting control feedback to the wireless local area network equipment.
Correspondingly, the embodiment of the invention also provides a WIFI data transceiving control device of the mobile terminal, which comprises the following steps:
a data frame receiving unit, configured to receive a data frame sent by a mobile terminal;
the judging unit is used for judging the size relation between the current internal cache space and a cache area size threshold field contained in the data frame;
a sending unit, configured to send response information indicating a congestion state of the wireless local area network device to the mobile terminal according to the size relationship;
and the execution unit is used for executing data receiving and transmitting control feedback made by the mobile terminal.
Correspondingly, the embodiment of the invention also provides terminal equipment, which comprises a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory, so as to execute the operations in the WIFI data transceiving control method of the mobile terminal according to any one of the embodiments of the present invention.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the WIFI data transceiving control method of the mobile terminal.
The mobile terminal inserts two data segments to be responded with the same identification characters and buffer size threshold fields into a data frame, sends the data frame to the wireless local area network equipment, receives the data frame, compares the buffer size threshold contained in the data frame with the size of the current internal buffer space, if the current internal buffer space is smaller than the buffer size threshold, the wireless local area network equipment responds to the mobile terminal to indicate that WIFI receives and transmits data normally, if the mobile terminal does not receive response information, the buffer size threshold fields are recorded, and the change condition of the current internal buffer space is monitored until the current internal buffer space is smaller than the buffer size threshold fields, sends response information representing the congestion state of the wireless local area network equipment to the mobile terminal, and carries out data receiving and transmitting control feedback on WIFI. Therefore, when the mobile terminal is connected to the WIFI, the conditions of data packet loss, untimely response and the like in the communication process can be mastered in time, and interruption of data transmission or restarting of the WIFI can be avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a WIFI data transceiving control method of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for controlling WIFI data transceiving of a mobile terminal according to an embodiment of the present invention;
fig. 3 is another flowchart of a WIFI data transceiving control method of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device of a WIFI data transceiving control method of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another device of a WIFI data transceiving control method of a mobile terminal according to an embodiment of the present invention
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides a method and a device for receiving and transmitting WIFI data of a mobile terminal. The application device is integrated in a terminal, and the terminal can be a mobile phone, a tablet personal computer, a notebook personal computer and other devices.
For example, as shown in fig. 1, a mobile terminal inserts a data segment to be responded, which includes two identical identification characters and a buffer size threshold, into a data frame, and sends the data frame to a wireless lan device, and starts a timer at the same time, the wireless lan device receives the data frame, and by comparing the buffer size threshold included in the data frame with the size of a current internal buffer space, if the current internal buffer space is smaller than the buffer size threshold, the wireless lan device makes a response message to the mobile terminal, indicating that WIFI receives and transmits data normally, if the current internal buffer space is greater than or equal to the buffer size threshold, the buffer size threshold field is recorded, and the change condition of the current internal buffer space is monitored until the current internal buffer space is smaller than the buffer size threshold field, and sends a response indicating the congestion state of the wireless lan device to the mobile terminal, if the timer is not timed out for the first time, the number of data frames sent to the wireless lan device is reduced, if the timer is not timed out for the second time, and if the timer is not timed out for the second time, the wireless lan device is determined that the state is abnormal, and the wireless lan device is sent to clear the buffer size.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The embodiment will be described from the perspective of a WIFI data transmission/reception control device of a mobile terminal, which may be integrated in a terminal, and the terminal may include a mobile phone, a wearable intelligent device, a tablet computer, a notebook computer, a personal computer (PC, personal Computer), and the like.
A WIFI data transceiving control method of a mobile terminal comprises the following steps: inserting a data segment to be responded, which comprises two identical identification characters and a buffer size threshold field, into a data frame; transmitting the data frame to a wireless local area network device, and starting a timer for monitoring whether response information representing the congestion state of the wireless local area network device is transmitted within a time range set by the timer; if the response information is transmitted in the time range set by the timer, enabling the wireless local area network equipment to normally transmit and receive data; and if the response information is not transmitted in the time range set by the timer, making data receiving and transmitting control feedback to the wireless local area network equipment.
As shown in fig. 2, the specific flow of the WIFI data transceiving control method of the mobile terminal is as follows:
201. and inserting the data segment to be responded, which comprises two identical identification characters and a buffer size threshold field, into the data frame.
For example, a buffer size threshold field is obtained, the data segment to be responded comprises two identical identification characters and the buffer size threshold field, and the data segment to be responded is inserted into a data frame.
The buffer size threshold field is obtained by receiving the buffer size sent by the wireless local area network device, and then the buffer size is represented by the buffer size threshold field.
The data frame consists of a frame head, a frame tail, a payload and a data segment to be responded. The data frame starts with a frame header that is used to separate from the previous frame data or to identify the starting location of the present frame data. The data frame is terminated by a frame end that is used to separate from the next frame data or to identify the end position of the present frame data. The payload is valid data to be processed by the wireless network and exists between the frame head and the frame tail of the data frame. The data segment to be responded to also exists between the frame head and the frame tail of the data frame, wherein the data segment to be responded to comprises two identical identification characters and a buffer size threshold, for example, the identification characters are 0 xdeladbeef, and the data segment to be responded to is 0 xdeladbeexXXXXXXDeadbeef, wherein XXXX is the buffer size threshold. The mobile terminal can unidirectionally control whether the data segment to be responded contains the buffer size threshold.
202. And sending the data frame to the wireless local area network equipment, and starting a timer for monitoring whether response information representing the congestion state of the wireless local area network equipment is transmitted within the time range set by the timer.
For example, the data segment to be responded containing the buffer size threshold is sent to the wireless local area network device, and then a timer is started, wherein the primary timing time of the timer can be 1-3 seconds, and the primary timing time interval of the timer is used for monitoring whether the response information representing the congestion state of the wireless local area network device is conveyed within the time set by the timer.
203. And if the response information is transmitted in the time range set by the timer, enabling the wireless local area network equipment to normally transmit and receive data.
For example, when the mobile terminal receives the response information sent by the wireless local area network device within the time set by the timer, the mobile terminal indicates that the wireless local area network device is processing data normally, and the mobile terminal can continue to send data frames to the wireless local area network device.
204. And if the response information is not transmitted in the time range set by the timer, making data receiving and transmitting control feedback to the wireless local area network equipment.
For example, if the mobile terminal does not receive the response sent by the wireless lan device within the time set by the timer, it indicates that the wireless lan device encounters an abnormal situation when processing data, and then the mobile terminal needs to make data transceiving control feedback to the wireless lan device.
Optionally, if the timer times out for the first time, and the response sent by the wireless local area network device is not received yet, the mobile terminal reduces the number of data frames sent to the wireless local area network device, so that the data to be processed by the wireless local area network device is reduced, and the data congestion condition of the wireless local area network device is relieved to a certain extent.
Optionally, if the timer times out for the second time, the state of the wireless local area network device is abnormal if the response sent by the wireless local area network device is not received, and the situation that the data congestion cannot be relieved even if the sending of the data frame is reduced, so that the mobile terminal needs to send a buffer clearing request to the wireless local area network device, so that the wireless local area network device clears the data to be processed in the buffer, and the congestion of the WIFI data receiving and sending is solved.
A WIFI data transceiving control method of a mobile terminal comprises the following steps: receiving a data frame sent by a mobile terminal; judging the size relation between the current internal cache space and a cache region size threshold field contained in the data frame; transmitting response information representing the congestion state of the wireless local area network equipment to the mobile terminal according to the size relation; and executing data receiving and transmitting control feedback made by the mobile terminal.
As shown in fig. 3, the specific flow of the WIFI data transceiving control method of the mobile terminal is as follows:
301. and receiving the data frame sent by the mobile terminal.
For example, after the mobile terminal transmits a data frame to the wireless lan device, the wireless lan device needs to receive in time and further process the data frame next.
302. And judging the size relation between the current internal cache space and a cache region size threshold field contained in the data frame.
For example, before determining the size relationship between the current internal buffer space and the buffer size threshold field included in the data frame, it is necessary to detect the buffer size threshold field included in the data segment to be responded in the data frame, and detect the size of the current internal buffer space, and then further compare the size relationship between the two.
303. And sending response information representing the congestion state of the wireless local area network equipment to the mobile terminal according to the size relation.
For example, after the wireless network concludes that the size relation between the current internal buffer space and the buffer size threshold field contained in the data frame is obtained, the wireless network sends response information indicating the congestion state of the wireless local area network device to the mobile terminal according to the size relation.
Optionally, if the current internal buffer space is smaller than the buffer size threshold field, the response information indicating the congestion state of the wireless local area network device is sent to the mobile terminal, which indicates that the wireless local area network device can send and receive data normally;
optionally, if the current internal buffer space is greater than or equal to the buffer size threshold field, recording the buffer size threshold field, and monitoring the change condition of the current internal buffer space until the current internal buffer space is smaller than the buffer size threshold field, and sending the response indicating the congestion state of the wireless local area network device to the mobile terminal, wherein the response indicates that the wireless local area network device receives and transmits data normally.
Optionally, the WIFI is connected to the mobile terminal through an MIPI (mobile industry processor interface) bus, when the mobile terminal sends a data frame to the WIFI, and after the WIFI obtains a payload in the data frame, the WIFI detects a buffer size threshold field in the data segment to be responded, and detects the size of a current internal buffer space of the WIFI, and if the current internal buffer space size is smaller than the buffer size threshold field contained in the data segment to be responded, sends a specific data, for example, 0xE124324221111133434F, to the mobile terminal through the MIPI bus, where the data is response information indicating a congestion state of the wireless local area network device.
Optionally, a GPIO1 (general purpose input/output port) is set on WIFI, where the GPIO1 is connected to a GPIO100 of the mobile terminal, the WIFI defaults to set the GPIO1 to a low level, after the mobile terminal sends a data frame to WIFI and the WIFI obtains a payload, detects a buffer size threshold field in the data segment to be responded, and detects the size of a current internal buffer space of the WIFI, if the size of the current internal buffer space is smaller than the buffer size threshold field contained in the data segment to be responded, a positive pulse is output on the GPIO1, and if the mobile terminal detects that the GPIO100 has a positive pulse, it indicates that a response message is received.
The response information indicating the congestion status of the wlan device may include various forms, such as a specific data or a positive pulse. .
304. And executing data receiving and transmitting control feedback made by the mobile terminal.
For example, if the mobile terminal does not receive the response information indicating the congestion condition of the wireless local area network device within the time interval set by the timer, the mobile terminal will make corresponding data receiving and transmitting control feedback to the wireless local area network device according to the time of the timeout of the timer, and after the wireless local area network device receives the feedback, specific feedback is executed, so as to timely grasp the situations of data packet loss, untimely response and the like in the communication process of the mobile terminal and the wireless local area network device, relieve the data congestion condition of the wireless local area network device, and avoid interruption of data transmission or restart of WIFI.
In order to better implement the method, the embodiment of the invention also provides a mobile terminal WIFI data receiving and transmitting control device, which can be integrated in network equipment, wherein the network equipment can be equipment such as a terminal.
For example, as shown in fig. 4, the WIFI data transceiver control device of the mobile terminal may include an inserting unit 401, a data frame transmitting unit 402, a starting unit 403, a receiving unit 404, and a feedback unit 405, as follows:
(1) Insertion unit 401
The inserting unit 401 is configured to insert the data segment to be responded to, which includes two identical identification characters and buffer size threshold fields, into the data frame.
For example, the mobile terminal obtains the size of the buffer of the wireless local area network device, and uses the buffer size threshold field to represent the size of the buffer, the data segment to be responded comprises two identical identification characters and the buffer size threshold field, and the inserting unit 401 inserts the field to be responded into the data frame.
(2) Data frame transmitting unit 402
A data frame transmitting unit 402, configured to transmit a data frame to the wireless lan device by using the mobile terminal.
For example, after the data segment to be responded to including the buffer size threshold field is inserted into the data frame, the data frame transmitting unit 402 transmits the data frame to the wireless lan device.
(2) Starting unit 403
A starting unit 403, configured to start a timer to monitor whether response information indicating a congestion status of the wireless lan device is conveyed within a time range set by the timer.
For example, a time is set in advance for the timer, and after the mobile terminal transmits a data frame to the wireless lan device, the start unit 403 starts the timer, and if response information transmitted by the wireless lan device is received within this time interval, response information indicating that the congestion state of the wireless lan device is transmitted within the time set by the timer. If no response information sent by the wireless local area network device is received within the time interval, the response information indicating the congestion state of the wireless local area network device is not transmitted within the time set by the timer.
(3) Receiving unit 404
And the receiving unit 404 is configured to receive the response information conveyed in the time range set by the timer, so that the wireless lan device normally receives and transmits data.
For example, if the wireless lan device transmits response information indicating the congestion state of the wireless lan device within the time set by the timer, the receiving unit 404 is responsible for receiving the response information.
(4) Feedback unit 405
And a feedback unit 405, configured to determine the response information that is not conveyed in the time range set by the timer, and make data transceiving control feedback to the wireless local area network device.
For example, if the mobile terminal does not receive the response information sent by the wlan device within the time set by the timer, it indicates that the data processing situation of the wlan device is abnormal, and the feedback unit 405 may enable the mobile terminal to perform corresponding WIFI data transceiving feedback control.
In order to better implement the above method, the embodiment of the present invention may further provide another mobile terminal WIFI data transceiver control device, where the mobile terminal WIFI data transceiver control device may be specifically integrated in a network device, and the network device may be a device such as a terminal.
For example, as shown in fig. 5, the WIFI data transceiver control device of the mobile terminal may include a data frame receiving unit 501, a judging unit 502, a transmitting unit 503, and an executing unit 504, as follows:
(1) Data frame receiving unit 501
A data frame receiving unit 501, configured to receive a data frame sent by a mobile terminal.
After inserting the data segment to be responded to containing the buffer size threshold into the data frame, the mobile terminal transmits the data frame, and the data frame receiving unit 501 receives the data frame.
(2) Determination unit 502
And the judging unit 502 is configured to judge a size relationship between the current internal buffer space and a buffer size threshold field included in the data frame.
For example, after the wlan device detects the size of the buffer size threshold field and the size of the current internal buffer space, the determining unit 502 compares the size relationship of the two, and concludes.
(3) Transmitting unit 503
A sending unit 503, configured to send response information indicating a congestion state of the wireless lan device to the mobile terminal according to the size relationship.
For example, after the wlan device obtains the size relation between the buffer size threshold field and the current internal buffer space, the sending unit 503 may send response information indicating the congestion status of the wlan device at different time based on the specific size relation according to the difference between the size relation.
(4) Execution unit 504
And the execution unit 504 is configured to execute data transceiving control feedback made by the mobile terminal.
For example, if the mobile terminal does not receive the response information indicating the congestion state of the wlan device within the time set by the timer, the data transceiver control feedback is sent to the wlan device according to the number of times that the timer expires, and the execution unit 504 specifically executes the data transceiver control feedback, so as to avoid interruption of data transmission or restart WIFI.
Accordingly, embodiments of the present invention also provide a terminal, as shown in fig. 6, which may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more computer readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi, wireless Fidelity) module 607, a processor 608 including one or more processing cores, and a power supply 609. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 6 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 601 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 602 may be used to store software programs and modules that are stored in the memory 602 for execution by the processor 608 to perform various functional applications and data processing. 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal, etc. In addition, 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 access to the memory 602 by the processor 608 and the input unit 603.
The input unit 603 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the 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 thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 608, and can receive commands from the processor 608 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may comprise other input devices in addition to a 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, mouse, joystick, etc.
The display unit 604 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video and any combination thereof. The display unit 604 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed 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 based on the type of touch event. Although in fig. 6 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the terminal moves to the ear. The gravity acceleration sensor can detect the acceleration in all directions (generally three axes), can detect the gravity and the direction when the mobile phone is stationary, can be used for identifying the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and knocking), and other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like which are also configured by the terminal are not repeated herein.
Audio circuitry 606, speakers, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 606 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 606 and converted into audio data, which are processed by the audio data output processor 608 for transmission to, for example, another terminal via the RF circuit 601, or which are output to the memory 602 for further processing. The audio circuit 606 may also include an ear bud jack to provide communication of the peripheral ear bud with the terminal.
The WiFi belongs to a short-distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 607, so that wireless broadband internet access is provided for the user. Although fig. 6 shows a WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 608 is a control center of the terminal, and connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 602, and calling data stored in the memory 602, thereby performing overall monitoring of the mobile phone. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may be logically connected to the processor 608 via a power management system so as to provide for managing charging, discharging, and power consumption by the power management system. The power supply 609 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the processor 608 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 608 executes the application programs stored in the memory 602, so as to implement various functions: timely mastering the conditions of data packet loss, untimely response and the like in the communication process, and avoiding interruption of data transmission or restarting WIFI.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium can execute steps in any one of the mobile terminal WIFI data transceiving control methods provided by the embodiments of the present invention, so that the beneficial effects that any one of the mobile terminal WIFI data transceiving control methods provided by the embodiments of the present invention can be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing describes in detail a method and apparatus for controlling WIFI data transceiving of a mobile terminal according to the embodiments of the present invention, and specific examples are applied to describe the principles and embodiments of the present invention, where the description of the foregoing examples is only for helping to understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (6)

1. The WIFI data transceiving control method for the mobile terminal is characterized by comprising the following steps of:
receiving a data frame sent by a mobile terminal;
judging the size relation between the current internal cache space and a cache region size threshold field contained in the data frame;
transmitting response information representing the congestion state of the wireless local area network equipment to the mobile terminal according to the size relation;
executing data receiving and transmitting control feedback made by the mobile terminal;
and setting a GPIO1 on the WIFI gateway equipment, wherein the GPIO1 is connected with the GPIO100 of the mobile terminal, the WIFI gateway equipment defaults to set the GPIO1 to be low level, after the mobile terminal sends a data frame to the WIFI gateway equipment and the WIFI gateway equipment obtains a payload, detecting a buffer size threshold field in a data section to be responded of the data frame, detecting the size of the current internal buffer space of the WIFI gateway equipment, outputting a positive pulse on the GPIO1 if the size of the current internal buffer space is smaller than the buffer size threshold field contained in the data section to be responded, and the mobile terminal indicates that a response message is received if the mobile terminal detects the positive pulse on the GPIO 100.
2. The method according to claim 1, wherein before determining the size relation between the current internal buffer space and the buffer size threshold field included in the data frame, the method comprises:
detecting the buffer size threshold field contained in the data segment to be responded in the data frame;
and detecting the size of the current internal cache space.
3. The method according to claim 2, wherein said transmitting response information indicating a congestion state of the wireless lan device to the mobile terminal according to the size relation comprises:
if the current internal cache space is smaller than the cache region size threshold field, sending response information indicating the congestion state of the wireless local area network equipment to the mobile terminal, wherein the response information indicates that the wireless local area network equipment can normally transmit and receive data;
if the current internal cache space is larger than or equal to the cache region size threshold field, recording the cache region size threshold field, and monitoring the change condition of the current internal cache space until the current internal cache space is smaller than the cache region size threshold field, and sending response information representing the congestion state of the wireless local area network equipment to the mobile terminal, wherein the response information represents that the wireless local area network equipment receives and transmits data normally.
4. The WIFI data transceiver control device of the mobile terminal is characterized by comprising:
a data frame receiving unit, configured to receive a data frame sent by a mobile terminal;
the judging unit is used for judging the size relation between the current internal cache space and a cache area size threshold field contained in the data frame;
a sending unit, configured to send response information indicating a congestion state of the wireless local area network device to the mobile terminal according to the size relationship;
the execution unit is used for executing data receiving and transmitting control feedback made by the mobile terminal;
and setting a GPIO1 on the WIFI gateway equipment, wherein the GPIO1 is connected with the GPIO100 of the mobile terminal, the WIFI gateway equipment defaults to set the GPIO1 to be low level, after the mobile terminal sends a data frame to the WIFI gateway equipment and the WIFI gateway equipment obtains a payload, detecting a buffer size threshold field in a data section to be responded of the data frame, detecting the size of the current internal buffer space of the WIFI gateway equipment, outputting a positive pulse on the GPIO1 if the size of the current internal buffer space is smaller than the buffer size threshold field contained in the data section to be responded, and the mobile terminal indicates that a response message is received if the mobile terminal detects the positive pulse on the GPIO 100.
5. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory, so as to perform the operations in the WIFI data transceiving control method of a mobile terminal according to any one of claims 1 to 3.
6. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the mobile terminal WIFI data transmission and reception control method according to any one of claims 1 to 3.
CN201911202972.8A 2019-11-29 2019-11-29 WIFI data receiving and transmitting control method and device for mobile terminal Active CN110958641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911202972.8A CN110958641B (en) 2019-11-29 2019-11-29 WIFI data receiving and transmitting control method and device for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911202972.8A CN110958641B (en) 2019-11-29 2019-11-29 WIFI data receiving and transmitting control method and device for mobile terminal

Publications (2)

Publication Number Publication Date
CN110958641A CN110958641A (en) 2020-04-03
CN110958641B true CN110958641B (en) 2024-03-22

Family

ID=69979054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911202972.8A Active CN110958641B (en) 2019-11-29 2019-11-29 WIFI data receiving and transmitting control method and device for mobile terminal

Country Status (1)

Country Link
CN (1) CN110958641B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842043A (en) * 2005-03-30 2006-10-04 Lg电子株式会社 Mobile communications terminal for transmitting data frames in wireless lan and method thereof
CN101282265A (en) * 2008-04-18 2008-10-08 西安交通大学 Method for driving vision sensor based on wireless sensor network node
CN102186207A (en) * 2011-04-06 2011-09-14 重庆大学 Cross-layer method for reducing TCP repeated response under wireless local area network
CN104020733A (en) * 2014-05-13 2014-09-03 生迪光电科技股份有限公司 LED illuminating device, intelligent household control system and control method
WO2015062418A1 (en) * 2013-11-04 2015-05-07 腾讯科技(深圳)有限公司 Method, apparatus and equipment for sending data packet
CN106358225A (en) * 2016-09-20 2017-01-25 广东欧珀移动通信有限公司 Network data processing method, network data processing device and mobile terminal
CN107255961A (en) * 2017-06-14 2017-10-17 电子科技大学 A kind of intelligent wireless oscillograph of efficient data interaction
CN107439038A (en) * 2016-06-30 2017-12-05 北京小米移动软件有限公司 Data transmission method, device, user equipment and base station
US9858989B1 (en) * 2016-11-29 2018-01-02 Taiwan Semiconductor Manufacturing Co., Ltd. Serialized SRAM access to reduce congestion
CN108614792A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 1394 transaction layer data packet memory management methods and circuit
CN109062145A (en) * 2018-08-13 2018-12-21 大古智能科技(上海)有限公司 Numerically-controlled machine tool motion control card based on WIFI communication
CN109618354A (en) * 2018-10-25 2019-04-12 惠州Tcl移动通信有限公司 A kind of Wi-Fi receiving and sending control method and device
WO2019217077A1 (en) * 2018-05-10 2019-11-14 Qualcomm Incorporated Latency optimized i3c virtual gpio with configurable operating mode and device skip

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9578676B2 (en) * 2013-08-27 2017-02-21 Marvell World Trade Ltd. Systems and methods for reducing in-device coexistence (IDC) interference
CN106712904B (en) * 2016-12-27 2020-06-30 深圳市道通合创软件开发有限公司 Data transmission control method and device and terminal
US20190327188A1 (en) * 2018-04-23 2019-10-24 Ciena Corporation Modular network element architecture

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842043A (en) * 2005-03-30 2006-10-04 Lg电子株式会社 Mobile communications terminal for transmitting data frames in wireless lan and method thereof
CN101282265A (en) * 2008-04-18 2008-10-08 西安交通大学 Method for driving vision sensor based on wireless sensor network node
CN102186207A (en) * 2011-04-06 2011-09-14 重庆大学 Cross-layer method for reducing TCP repeated response under wireless local area network
WO2015062418A1 (en) * 2013-11-04 2015-05-07 腾讯科技(深圳)有限公司 Method, apparatus and equipment for sending data packet
CN104020733A (en) * 2014-05-13 2014-09-03 生迪光电科技股份有限公司 LED illuminating device, intelligent household control system and control method
CN107439038A (en) * 2016-06-30 2017-12-05 北京小米移动软件有限公司 Data transmission method, device, user equipment and base station
CN106358225A (en) * 2016-09-20 2017-01-25 广东欧珀移动通信有限公司 Network data processing method, network data processing device and mobile terminal
US9858989B1 (en) * 2016-11-29 2018-01-02 Taiwan Semiconductor Manufacturing Co., Ltd. Serialized SRAM access to reduce congestion
CN108614792A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 1394 transaction layer data packet memory management methods and circuit
CN107255961A (en) * 2017-06-14 2017-10-17 电子科技大学 A kind of intelligent wireless oscillograph of efficient data interaction
WO2019217077A1 (en) * 2018-05-10 2019-11-14 Qualcomm Incorporated Latency optimized i3c virtual gpio with configurable operating mode and device skip
CN109062145A (en) * 2018-08-13 2018-12-21 大古智能科技(上海)有限公司 Numerically-controlled machine tool motion control card based on WIFI communication
CN109618354A (en) * 2018-10-25 2019-04-12 惠州Tcl移动通信有限公司 A kind of Wi-Fi receiving and sending control method and device

Also Published As

Publication number Publication date
CN110958641A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN109803278B (en) Non-connection state measuring method, terminal and base station
US10225356B2 (en) Method and terminal for receiving push information, storage medium
CN110730504B (en) Paging indication method, device and system
CN112533232B (en) Method for determining energy-saving signal monitoring time, configuration method and related equipment
CN110505638B (en) Measurement control method, terminal and network side equipment
US20220217810A1 (en) Data receiving method, data sending method, terminal, and network side device
CN107786424B (en) Audio and video communication method, terminal and server
CN112134758B (en) Method and device for monitoring weak network environment and reconnecting communication session
CN111600692A (en) Channel monitoring method, information transmission method, terminal and network equipment
CN110740470A (en) measurement indication method, device and system
CN108476441B (en) Cell switching method and terminal equipment
CN110958710B (en) Channel access method, configuration method, terminal and network side equipment
CN113099521A (en) Dormancy awakening method and device of station, storage medium and electronic equipment
CN111601334B (en) Measuring method, device and system
CN110011752B (en) CQI reporting method, terminal equipment and network equipment
CN110351743B (en) Measurement method, terminal, network side equipment and computer readable storage medium
CN107659996B (en) Channel access method and equipment
CN106817370B (en) Method and device for transmitting network data
CN110958641B (en) WIFI data receiving and transmitting control method and device for mobile terminal
CN105635379B (en) Noise suppression method and device
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN110022189B (en) Data transmission method, device, terminal and storage medium
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium
CN109151154B (en) Power consumption control method and mobile terminal

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
TA01 Transfer of patent application right

Effective date of registration: 20240207

Address after: Room 1901, Building 1, Sunshine Jincheng, No. 35 Xinjian East Road, Yuhua District, Changsha City, Hunan Province, 410000

Applicant after: Hunan Chaojie Technology Co.,Ltd.

Guo jiahuodiqu after: Zhong Guo

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Applicant before: TCL mobile communication technology (Ningbo) Co.,Ltd.

Guo jiahuodiqu before: Zhong Guo

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant