CN112822669B - Mobile terminal Bluetooth communication processing method and device, intelligent terminal and medium - Google Patents

Mobile terminal Bluetooth communication processing method and device, intelligent terminal and medium Download PDF

Info

Publication number
CN112822669B
CN112822669B CN202110215622.6A CN202110215622A CN112822669B CN 112822669 B CN112822669 B CN 112822669B CN 202110215622 A CN202110215622 A CN 202110215622A CN 112822669 B CN112822669 B CN 112822669B
Authority
CN
China
Prior art keywords
bluetooth
mobile terminal
communication
controller
counter
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
CN202110215622.6A
Other languages
Chinese (zh)
Other versions
CN112822669A (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.)
Shenzhen Xinxin Zhilian Technology Co ltd
Original Assignee
Shenzhen Xinxin Zhilian 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 Shenzhen Xinxin Zhilian Technology Co ltd filed Critical Shenzhen Xinxin Zhilian Technology Co ltd
Priority to CN202110215622.6A priority Critical patent/CN112822669B/en
Publication of CN112822669A publication Critical patent/CN112822669A/en
Application granted granted Critical
Publication of CN112822669B publication Critical patent/CN112822669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Abstract

The invention discloses a mobile terminal Bluetooth communication processing method, a mobile terminal Bluetooth communication processing device, an intelligent terminal and a medium, wherein the mobile terminal detects whether to communicate with other terminals through Bluetooth; when the mobile terminal communicates with other equipment through Bluetooth, monitoring communication data and communication states; and when detecting that the Bluetooth communication state of the mobile terminal is abnormal, controlling to retransmit the data stored before. When the mobile terminal communicates with the Bluetooth device, the communication data are monitored, and when the communication is abnormal, the data which are abnormal in communication can be sent again at the first time, so that the communication efficiency is improved, further accumulation of the abnormal communication data is avoided, the performance of the mobile terminal is improved, and convenience is provided for users.

Description

Mobile terminal Bluetooth communication processing method and device, intelligent terminal and medium
Technical Field
The present invention relates to the field of intelligent terminals, and in particular, to a method and apparatus for processing bluetooth communication of a mobile terminal, an intelligent terminal, and a storage medium.
Background
Along with the development of technology and the continuous improvement of living standard of people, various intelligent terminals such as intelligent mobile phones are becoming more and more popular, and the intelligent mobile phones become an indispensable communication tool in people's life.
At present, mobile terminals are connected in a common manner through Bluetooth interconnection, but in actual use, various Bluetooth devices exist in the market, communication abnormality in the communication process of some Bluetooth devices is unavoidable after the mobile terminals are connected with the Bluetooth devices, and at the moment, the mobile terminals are required to be reconnected and regenerated to communicate according to the prior art, so that time and labor are wasted, and users are sometimes inconvenient to use.
Accordingly, there is a need for improvement and advancement in the art.
Disclosure of Invention
The invention aims to solve the technical problems of the prior art, and provides a mobile terminal Bluetooth communication processing method, a mobile terminal Bluetooth communication processing device, an intelligent terminal and a storage medium, which aim to monitor communication data and resend the data which is once abnormal in communication at the first time when the mobile terminal communicates with Bluetooth equipment, so that the communication efficiency is improved, further accumulation of communication abnormal data is avoided, the performance of the mobile terminal is improved, and convenience is provided for users.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a mobile terminal Bluetooth communication processing method comprises the following steps:
the mobile terminal detects whether to communicate with other terminals through Bluetooth;
when the mobile terminal communicates with other equipment through Bluetooth, monitoring communication data and communication states;
and when detecting that the Bluetooth communication state of the mobile terminal is abnormal, controlling to retransmit the data stored before.
The mobile terminal Bluetooth communication processing method, before the step of detecting whether the mobile terminal communicates with other terminals through Bluetooth, comprises the following steps:
the Bluetooth controller is preset to be connected with the mobile terminal main controller;
the Bluetooth controller is used for running Bluetooth communication of the mobile terminal and running counting control, and the Bluetooth controller clears the count value of the counter every other fixed time T1; the Bluetooth controller is connected with a zero clearing end CR of the counter, and the Bluetooth controller clears the counter through the zero clearing end CR of the counter;
the input end IN of the counter is connected with a Bluetooth controller clock, and the output frequency of the Bluetooth controller clock is fixed to be the waveform of FR; the counter counts the rising edges of the waveform at the input IN, and increments the counter by 1 when there is a rising edge at the input IN.
The mobile terminal Bluetooth communication processing method, wherein the step of detecting whether the mobile terminal communicates with other terminals through Bluetooth comprises the following steps:
the mobile terminal detects whether Bluetooth connection is established with other terminals;
and when the mobile terminal establishes Bluetooth connection with other terminals, detecting whether the mobile terminal communicates with the other terminals through Bluetooth.
The mobile terminal Bluetooth communication processing method, wherein when the mobile terminal communicates with other devices through Bluetooth, the step of monitoring communication data and communication state comprises the following steps:
the mobile terminal main controller obtains the value of a related register in the Bluetooth controller;
and judging whether the working state of the Bluetooth controller is abnormal or not through the acquired register value.
The mobile terminal Bluetooth communication processing method, wherein when detecting that the mobile terminal Bluetooth communication state is abnormal, the step of controlling the retransmission of the data stored before comprises the following steps:
when detecting that the Bluetooth communication state of the mobile terminal is abnormal, copying data in the Bluetooth controller into a memory, and resetting the Bluetooth controller;
when the Bluetooth controller is restarted, the Bluetooth controller firstly checks whether the output end OUT of the counter is at a high level, if so, the Bluetooth controller is triggered by the fact that the main controller detects that the communication state of the Bluetooth controller is abnormal, and after the Bluetooth controller is started, the Bluetooth controller retransmits the Bluetooth controller data stored in the memory in advance during the last communication; and the Bluetooth controller clears the counter.
The mobile terminal Bluetooth communication processing method, wherein when the mobile terminal communicates with other devices through Bluetooth, the step of monitoring communication data and communication state comprises the following steps:
when the mobile terminal communicates with other equipment through Bluetooth, monitoring whether communication data and communication states are normal or not;
and prompting the abnormal Bluetooth communication state of the mobile terminal when the communication data transmission is detected to be zero or the communication state is displayed to be unconnected.
The mobile terminal Bluetooth communication processing method, wherein the steps when the mobile terminal communicates with other equipment through Bluetooth include:
when the mobile terminal communicates with other devices through bluetooth, the data is copied into the memory while being transmitted.
A mobile terminal bluetooth communication processing apparatus, wherein the apparatus comprises:
the detection module is used for controlling the mobile terminal to detect whether to communicate with other terminals through Bluetooth;
the monitoring module is used for monitoring communication data and communication states when the mobile terminal communicates with other equipment through Bluetooth;
and the data retransmission module is used for controlling the retransmission of the data stored before when the abnormal Bluetooth communication state of the mobile terminal is detected.
The intelligent terminal comprises a memory, a processor and a mobile terminal Bluetooth communication processing program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of any mobile terminal Bluetooth communication processing method when executing the mobile terminal Bluetooth communication processing program.
A computer-readable storage medium having stored thereon a mobile terminal bluetooth communication processing program which, when executed by a processor, implements the steps of any one of the mobile terminal bluetooth communication processing methods.
The beneficial effects are that: compared with the prior art, the invention provides a mobile terminal Bluetooth communication processing method, which monitors communication data and communication states when the mobile terminal communicates with other equipment through Bluetooth; and when detecting that the Bluetooth communication state of the mobile terminal is abnormal, retransmitting the data stored before. When the mobile terminal communicates with the Bluetooth device, the communication data are monitored, and when the communication is abnormal, the data which are abnormal in communication can be sent again at the first time, so that the communication efficiency is improved, further accumulation of the abnormal communication data is avoided, the performance of the mobile terminal is improved, and convenience is provided for users.
Drawings
Fig. 1 is a flowchart of a specific implementation of a bluetooth communication processing method for a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of connection of bluetooth modules in a bluetooth communication processing method for a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a schematic block diagram of a bluetooth communication processing apparatus for a mobile terminal according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and more specific, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and rear … …) are included in the embodiments of the present invention, the directional indications are merely used to explain the relative positional relationship, movement conditions, etc. between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
Today in technology assisted life, people and various intelligent terminals such as photocopies are surrounded by mobile phones, tablets, computers and televisions in life. Intelligent terminals have been slowly penetrating into every corner of people's life. At present, a bluetooth chip is commonly adopted on a mobile terminal, so that the mobile terminal supports a bluetooth function, and is in wireless connection with other bluetooth equipment such as an automobile, a watch and the like. Bluetooth is a wireless technology standard that enables short-range data exchange (using UHV radio waves in the ISM band of 2.4 to 2.485 GHz) between stationary devices, mobile devices and the building personal area network. Bluetooth technology was originally created by ericsson in 1994, when it was the alternative to RS232 data lines. The Bluetooth can be connected with a plurality of devices, so that the difficulty of data synchronization is overcome. Bluetooth is now managed by the bluetooth Special Interest Group (SIG). The bluetooth alliance has more than two tens of thousands of member companies worldwide, which are distributed in multiple fields of telecommunications, computers, networks, and consumer electronics. IEEE has listed bluetooth technology as IEEE 802.15.1, but this standard is no longer maintained today. The bluetooth technical alliance is responsible for supervising the development of bluetooth specifications, managing certification projects, and maintaining trademark rights and interests. The manufacturer's equipment must meet the standards of the bluetooth association to enter the market in the name of "bluetooth devices".
At present, mobile terminals are connected in a common manner through Bluetooth interconnection, but in actual use, various Bluetooth devices exist in the market, communication abnormality in the communication process of some Bluetooth devices is unavoidable after the mobile terminals are connected with the Bluetooth devices, and at the moment, the mobile terminals are required to be reconnected and regenerated to communicate according to the prior art, so that time and labor are wasted, and users are sometimes inconvenient to use.
In order to solve the problems in the prior art, the present embodiment provides a method for processing bluetooth communication of a mobile terminal, by which communication data and a communication state are monitored when the mobile terminal communicates with other devices through bluetooth; and when detecting that the Bluetooth communication state of the mobile terminal is abnormal, retransmitting the data stored before. When the mobile terminal communicates with the Bluetooth device, the communication data are monitored, and when the communication is abnormal, the data which are abnormal in communication can be sent again at the first time, so that the communication efficiency is improved, further accumulation of the abnormal communication data is avoided, the performance of the mobile terminal is improved, and convenience is brought to users.
Exemplary method
The mobile terminal bluetooth communication processing method of the embodiment can be applied to an intelligent terminal, and specifically as shown in fig. 1, the mobile terminal bluetooth communication processing method includes the following steps:
step S100, the mobile terminal detects whether to communicate with other terminals through Bluetooth;
in the embodiment of the invention, the user mobile terminal such as a mobile phone detects whether to communicate with other terminals such as a smart television through Bluetooth.
In specific implementation, the mobile terminal mobile phone can detect whether to establish Bluetooth connection with other terminals such as a smart television; and when the mobile terminal establishes Bluetooth connection with other terminals, detecting whether the mobile terminal communicates with the other terminals through Bluetooth. When a Bluetooth connection is established and data is transmitted through the Bluetooth connection, the mobile terminal is indicated to communicate with other terminals through Bluetooth.
When the mobile terminal is in communication with other equipment through Bluetooth, the mobile terminal can copy the data into the memory while transmitting the data, and the mobile terminal can restart transmission when abnormal transmission occurs later.
Of course, before the implementation of the present invention, as shown in fig. 2, a bluetooth controller may be preset to connect with a main controller of the mobile terminal;
the Bluetooth controller is used for running Bluetooth communication of the mobile terminal and running counting control, and the Bluetooth controller clears the count value of the counter every other fixed time T1; the Bluetooth controller is connected with a zero clearing end CR of the counter, and the Bluetooth controller clears the counter through the zero clearing end CR of the counter;
the input end IN of the counter is connected with a Bluetooth controller clock, and the output frequency of the Bluetooth controller clock is fixed to be the waveform of FR; the counter counts the rising edges of the waveform at the input IN, and increments the counter by 1 when there is a rising edge at the input IN.
Namely, the invention, when embodied, comprises: the Bluetooth controller runs a counting control function besides the Bluetooth communication of the mobile terminal, and the counting control function of the Bluetooth controller clears the count value of the counter every other fixed time T1; the Bluetooth controller is connected with a zero clearing end CR of the counter, and the counting control function is to zero the counter through the zero clearing end CR of the counter; the input end IN of the counter is connected with a Bluetooth controller clock, and the output frequency of the Bluetooth controller clock is fixed to be the waveform of FR; the counter counts the rising edge of the waveform of the input end IN, and when the rising edge exists at the input end IN, the counter is increased by 1; the output terminal OUT will become high level when the counter value exceeds the threshold value N (the output terminal OUT is low level when the counter does not exceed the threshold value N); the zero clearing terminal CR is used to zero the counter so that the value of the counter becomes zero.
The bluetooth controller clock is used for outputting a waveform with a fixed frequency, and the fixed frequency is FR.
And the main controller of the mobile terminal acquires the values of related registers in the Bluetooth controller to judge whether the working state of the Bluetooth controller is abnormal. And the Bluetooth communication data retransmission module is used for retransmitting the data stored before when the Bluetooth communication state of the mobile terminal is abnormal.
Specifically as described in step S200;
step 200, monitoring communication data and communication states when the mobile terminal communicates with other devices through Bluetooth;
in this step, when the mobile terminal communicates with other devices via bluetooth, the communication data and the communication status are monitored. For example, the mobile terminal main controller acquires the value of a relevant register in the Bluetooth controller; and judging whether the working state of the Bluetooth controller is abnormal or not through the acquired register value.
Examples are: for example, when the mobile terminal communicates with other devices through Bluetooth, monitoring whether the communication data and the communication state are normal; and prompting the abnormal Bluetooth communication state of the mobile terminal when the communication data transmission is detected to be zero or the communication state is displayed to be unconnected.
In other embodiments, the present invention may first check whether the output OUT of the counter is at a high level by the bluetooth controller, and if so, indicate that the bluetooth start is triggered by the main controller detecting that the communication state of the bluetooth controller is abnormal.
And step S300, when detecting that the Bluetooth communication state of the mobile terminal is abnormal, controlling the retransmission of the data stored before.
In the step, when detecting that the Bluetooth communication state of the mobile terminal is abnormal, the method controls the retransmission of the data stored before.
When detecting that the Bluetooth communication state of the mobile terminal is abnormal, copying data in the Bluetooth controller into a memory, and resetting the Bluetooth controller;
when the Bluetooth controller is restarted, the Bluetooth controller firstly checks whether the output end OUT of the counter is at a high level, if so, the Bluetooth controller is triggered by the fact that the main controller detects that the communication state of the Bluetooth controller is abnormal, and after the Bluetooth controller is started, the Bluetooth controller retransmits the Bluetooth controller data stored in the memory in advance during the last communication; and the Bluetooth controller clears the counter.
In the embodiment of the invention, the mobile terminal main controller acquires the values of the related registers in the Bluetooth controller to judge whether the working state of the Bluetooth controller is abnormal. And the Bluetooth communication data retransmission module is used for retransmitting the data stored before when the Bluetooth communication state of the mobile terminal is abnormal. The method specifically comprises the following steps: the main controller copies the data in the Bluetooth controller to the memory, and then resets the Bluetooth controller; at this time, the Bluetooth controller can restart, the Bluetooth controller firstly checks whether the output end OUT of the counter is at a high level, if so, the Bluetooth controller indicates that the Bluetooth start is triggered by the fact that the main controller detects abnormal communication state of the Bluetooth controller, and after the Bluetooth start, the Bluetooth controller can retransmit the Bluetooth controller data stored in the memory in advance during the last communication; and the Bluetooth controller clears the counter.
As can be seen from the above, the method according to the embodiment of the present invention monitors communication data and communication status when the mobile terminal communicates with other devices via bluetooth; and when detecting that the Bluetooth communication state of the mobile terminal is abnormal, retransmitting the data stored before. When the mobile terminal communicates with the Bluetooth device, the communication data are monitored, and when the communication is abnormal, the data which are abnormal in communication can be sent again at the first time, so that the communication efficiency is improved, further accumulation of the abnormal communication data is avoided, and the performance of the mobile terminal is improved.
Exemplary apparatus
As shown in fig. 3, an embodiment of the present invention provides a bluetooth communication processing apparatus for a mobile terminal, including:
a detection module 10, configured to control the mobile terminal to detect whether to communicate with other terminals through bluetooth;
a monitoring module 20, configured to monitor communication data and communication status when the mobile terminal communicates with other devices via bluetooth;
the data retransmission module 30 is configured to control retransmission of data stored before when detecting that the bluetooth communication status of the mobile terminal is abnormal, as described above.
Based on the above embodiment, the present invention further provides an intelligent terminal, and a functional block diagram thereof may be shown in fig. 4. The intelligent terminal comprises a processor, a memory, a network interface, a display screen and a Bluetooth controller which are connected through a system bus. The processor of the intelligent terminal is used for providing computing and control capabilities. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the intelligent terminal is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a mobile terminal bluetooth communication processing method. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the Bluetooth controller of the intelligent terminal is arranged in the intelligent terminal in advance and is used for Bluetooth communication.
It will be appreciated by those skilled in the art that the schematic block diagram shown in fig. 4 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the smart terminal to which the present inventive arrangements are applied, and that a particular smart terminal may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, an intelligent terminal is provided, the intelligent terminal includes a memory, a processor, and a mobile terminal bluetooth communication processing program stored in the memory and capable of running on the processor, and when the processor executes the mobile terminal bluetooth communication processing program, the following operation instructions are implemented:
the mobile terminal detects whether to communicate with other terminals through Bluetooth;
when the mobile terminal communicates with other equipment through Bluetooth, monitoring communication data and communication states;
and when detecting that the Bluetooth communication state of the mobile terminal is abnormal, controlling to retransmit the data stored before.
The step of detecting whether the mobile terminal communicates with other terminals through Bluetooth comprises the following steps:
the Bluetooth controller is preset to be connected with the mobile terminal main controller;
the Bluetooth controller is used for running Bluetooth communication of the mobile terminal and running counting control, and the Bluetooth controller clears the count value of the counter every other fixed time T1; the Bluetooth controller is connected with a zero clearing end CR of the counter, and the Bluetooth controller clears the counter through the zero clearing end CR of the counter;
the input end IN of the counter is connected with a Bluetooth controller clock, and the output frequency of the Bluetooth controller clock is fixed to be the waveform of FR; the counter counts the rising edges of the waveform at the input IN, and increments the counter by 1 when there is a rising edge at the input IN.
The step of detecting whether the mobile terminal communicates with other terminals through Bluetooth comprises the following steps:
the mobile terminal detects whether Bluetooth connection is established with other terminals;
and when the mobile terminal establishes Bluetooth connection with other terminals, detecting whether the mobile terminal communicates with the other terminals through Bluetooth.
When the mobile terminal communicates with other devices through Bluetooth, the steps of monitoring communication data and communication states include:
the mobile terminal main controller obtains the value of a related register in the Bluetooth controller;
and judging whether the working state of the Bluetooth controller is abnormal or not through the acquired register value.
When detecting that the Bluetooth communication state of the mobile terminal is abnormal, the step of controlling the retransmission of the data stored before comprises the following steps:
when detecting that the Bluetooth communication state of the mobile terminal is abnormal, copying data in the Bluetooth controller into a memory, and resetting the Bluetooth controller;
when the Bluetooth controller is restarted, the Bluetooth controller firstly checks whether the output end OUT of the counter is at a high level, if so, the Bluetooth controller is triggered by the fact that the main controller detects that the communication state of the Bluetooth controller is abnormal, and after the Bluetooth controller is started, the Bluetooth controller retransmits the Bluetooth controller data stored in the memory in advance during the last communication; and the Bluetooth controller clears the counter.
When the mobile terminal communicates with other devices through Bluetooth, the steps of monitoring communication data and communication states include:
when the mobile terminal communicates with other equipment through Bluetooth, monitoring whether communication data and communication states are normal or not;
and prompting the abnormal Bluetooth communication state of the mobile terminal when the communication data transmission is detected to be zero or the communication state is displayed to be unconnected.
The steps when the mobile terminal communicates with other devices through Bluetooth include:
when the mobile terminal communicates with other devices through bluetooth, the data is copied into the memory while being transmitted.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In summary, the invention discloses a mobile terminal Bluetooth communication processing method, a mobile terminal Bluetooth communication processing device, an intelligent terminal and a storage medium, wherein the mobile terminal detects whether to communicate with other terminals through Bluetooth; when the mobile terminal communicates with other equipment through Bluetooth, monitoring communication data and communication states; and when detecting that the Bluetooth communication state of the mobile terminal is abnormal, controlling to retransmit the data stored before. When the mobile terminal communicates with the Bluetooth device, the communication data are monitored, and when the communication is abnormal, the data which are abnormal in communication can be sent again at the first time, so that the communication efficiency is improved, further accumulation of the abnormal communication data is avoided, the performance of the mobile terminal is improved, and convenience is provided for users.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A mobile terminal bluetooth communication processing method, comprising:
the mobile terminal detects whether to communicate with other terminals through Bluetooth;
when the mobile terminal communicates with other equipment through Bluetooth, monitoring communication data and communication states;
when detecting that the Bluetooth communication state of the mobile terminal is abnormal, controlling the retransmission of the data stored before;
before the step of detecting whether the mobile terminal communicates with other terminals through Bluetooth, the step of detecting whether the mobile terminal communicates with other terminals through Bluetooth comprises the following steps:
the Bluetooth controller is preset to be connected with the mobile terminal main controller;
the Bluetooth controller is used for running Bluetooth communication of the mobile terminal and running counting control, and the Bluetooth controller clears the count value of the counter every other fixed time T1; the Bluetooth controller is connected with a zero clearing end CR of the counter, and the Bluetooth controller clears the counter through the zero clearing end CR of the counter;
the input end IN of the counter is connected with a Bluetooth controller clock, and the output frequency of the Bluetooth controller clock is fixed to be the waveform of FR; the counter counts the rising edges of the waveform at the input IN, and increments the counter by 1 when there is a rising edge at the input IN.
2. The bluetooth communication processing method according to claim 1, wherein the step of the mobile terminal detecting whether to communicate with other terminals via bluetooth comprises:
the mobile terminal detects whether Bluetooth connection is established with other terminals;
and when the mobile terminal establishes Bluetooth connection with other terminals, detecting whether the mobile terminal communicates with the other terminals through Bluetooth.
3. The method for processing bluetooth communication according to claim 1, wherein the step of monitoring the communication data and the communication status when the mobile terminal communicates with other devices via bluetooth comprises:
the mobile terminal main controller obtains the value of a related register in the Bluetooth controller;
and judging whether the working state of the Bluetooth controller is abnormal or not through the acquired register value.
4. The bluetooth communication processing method according to claim 1, wherein the step of controlling retransmission of the previously stored data when the abnormality of the bluetooth communication state of the mobile terminal is detected comprises:
when detecting that the Bluetooth communication state of the mobile terminal is abnormal, copying data in the Bluetooth controller into a memory, and resetting the Bluetooth controller;
when the Bluetooth controller is restarted, the Bluetooth controller firstly checks whether the output end OUT of the counter is at a high level, if so, the Bluetooth controller is triggered by the fact that the main controller detects that the communication state of the Bluetooth controller is abnormal, and after the Bluetooth controller is started, the Bluetooth controller retransmits the Bluetooth controller data stored in the memory in advance during the last communication; and the Bluetooth controller clears the counter.
5. The method for processing bluetooth communication according to claim 1, wherein the step of monitoring the communication data and the communication status when the mobile terminal communicates with other devices via bluetooth comprises:
when the mobile terminal communicates with other equipment through Bluetooth, monitoring whether communication data and communication states are normal or not;
and prompting the abnormal Bluetooth communication state of the mobile terminal when the communication data transmission is detected to be zero or the communication state is displayed to be unconnected.
6. The method for processing bluetooth communication according to claim 1, wherein the step when the mobile terminal communicates with other devices via bluetooth comprises:
when the mobile terminal communicates with other devices through bluetooth, the data is copied into the memory while being transmitted.
7. A mobile terminal bluetooth communication processing apparatus, the apparatus comprising:
the detection module is used for controlling the mobile terminal to detect whether to communicate with other terminals through Bluetooth; before the step of detecting whether the mobile terminal communicates with other terminals through Bluetooth, the step of detecting whether the mobile terminal communicates with other terminals through Bluetooth comprises the following steps: the Bluetooth controller is preset to be connected with the mobile terminal main controller; the Bluetooth controller is used for running Bluetooth communication of the mobile terminal and running counting control, and the Bluetooth controller clears the count value of the counter every other fixed time T1; the Bluetooth controller is connected with a zero clearing end CR of the counter, and the Bluetooth controller clears the counter through the zero clearing end CR of the counter; the input end IN of the counter is connected with a Bluetooth controller clock, and the output frequency of the Bluetooth controller clock is fixed to be the waveform of FR; the counter counts the rising edge of the waveform of the input end IN, and when the rising edge exists at the input end IN, the counter is increased by 1;
the monitoring module is used for monitoring communication data and communication states when the mobile terminal communicates with other equipment through Bluetooth;
and the data retransmission module is used for controlling the retransmission of the data stored before when the abnormal Bluetooth communication state of the mobile terminal is detected.
8. An intelligent terminal, characterized in that the intelligent terminal comprises a memory, a processor and a mobile terminal bluetooth communication processing program stored on the memory and capable of running on the processor, wherein the steps of the mobile terminal bluetooth communication processing method according to any one of claims 1-6 are implemented when the processor executes the mobile terminal bluetooth communication processing program.
9. A computer-readable storage medium, on which a mobile terminal bluetooth communication processing program is stored, which, when being executed by a processor, implements the steps of the mobile terminal bluetooth communication processing method according to any one of claims 1-6.
CN202110215622.6A 2021-02-26 2021-02-26 Mobile terminal Bluetooth communication processing method and device, intelligent terminal and medium Active CN112822669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110215622.6A CN112822669B (en) 2021-02-26 2021-02-26 Mobile terminal Bluetooth communication processing method and device, intelligent terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110215622.6A CN112822669B (en) 2021-02-26 2021-02-26 Mobile terminal Bluetooth communication processing method and device, intelligent terminal and medium

Publications (2)

Publication Number Publication Date
CN112822669A CN112822669A (en) 2021-05-18
CN112822669B true CN112822669B (en) 2023-09-29

Family

ID=75863901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110215622.6A Active CN112822669B (en) 2021-02-26 2021-02-26 Mobile terminal Bluetooth communication processing method and device, intelligent terminal and medium

Country Status (1)

Country Link
CN (1) CN112822669B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205901699U (en) * 2016-07-12 2017-01-18 成都优谱德信息技术有限公司 Bluetooth data transmission counter
CN106888428A (en) * 2017-03-27 2017-06-23 北京大学 Data transmission method between intelligent terminal and medical wearable device based on bluetooth
CN107820229A (en) * 2016-09-13 2018-03-20 富士通天株式会社 Endpoint detection methods and communication equipment
CN108616818A (en) * 2018-03-23 2018-10-02 南京中感微电子有限公司 A kind of data repeating method, Bluetooth slave devices and wireless communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205901699U (en) * 2016-07-12 2017-01-18 成都优谱德信息技术有限公司 Bluetooth data transmission counter
CN107820229A (en) * 2016-09-13 2018-03-20 富士通天株式会社 Endpoint detection methods and communication equipment
CN106888428A (en) * 2017-03-27 2017-06-23 北京大学 Data transmission method between intelligent terminal and medical wearable device based on bluetooth
CN108616818A (en) * 2018-03-23 2018-10-02 南京中感微电子有限公司 A kind of data repeating method, Bluetooth slave devices and wireless communication system

Also Published As

Publication number Publication date
CN112822669A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
EP2320591A2 (en) Method and system for discontinuous reception de-synchronization detection
CN105260655B (en) Method, device and system for starting protection of application program
WO2012056696A1 (en) Wireless communication system and wireless communication method
US20190132763A1 (en) Method and device for transmitting data
CN112039896B (en) Data processing method, equipment, server and storage medium
US20220078595A1 (en) Method and apparatus for back-connecting bluetooth device, terminal and computer-readable storage medium
WO2021109154A1 (en) Communication failure processing method, communication failure processing apparatus, and storage medium
CN112702202B (en) Ammeter communication link fault recovery method and device and computer equipment
US9462535B2 (en) Method, apparatus and system for obtaining error code information
CN111436067A (en) Method for processing cell connection failure, terminal equipment and network side equipment
CN112822669B (en) Mobile terminal Bluetooth communication processing method and device, intelligent terminal and medium
CN113597009A (en) Beam failure recovery method and terminal
CN109218082B (en) Network configuration parameter processing method, device and equipment
US7970352B2 (en) Wireless communication device
CN116150054B (en) Interrupt information processing method based on PCIE
CN108990025B (en) Internet of things communication method and device
CN113747490A (en) WIFI connectivity detection method and device, terminal equipment and storage medium
CN110650259B (en) Call request response method, device, server, terminal and storage medium
US20090131013A1 (en) Communication terminal device, management server, change acknowledgment system, and change acknowledgment method
CN108923988B (en) Equipment grouping method and device
KR101647692B1 (en) Apparatus and method for preventing abnormal rom update in portable terminal
CN112311495A (en) Operation duration obtaining method and device, communication unit, electric control board and storage medium
CN111628889B (en) Heat deployment method and device, electronic device, and storage medium
CN112202622B (en) Connection processing method and device
CN115037659B (en) Method and device for controlling automobile

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

Effective date of registration: 20230901

Address after: 518101 3rd Floor, Building 4-2, Tongfu Industrial Zone, Aiqun Road, Shangwu Community, Shiyan Street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Xinxin Zhilian Technology Co.,Ltd.

Address before: 516003 No.86, hechangqi Road West, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

GR01 Patent grant
GR01 Patent grant