A method, device, equipment and medium for processing Bluetooth connection failure

By acquiring and analyzing log data, identifying descriptions that reflect technical issues, and paying attention to the output language flow, this technology addresses the problems of Bluetooth connection failures and low memory utilization in existing technologies for smart devices. By acquiring log data during the Bluetooth connection process, identifying storage pages associated with the Bluetooth connection function, and categorizing them according to their usage attributes, the target storage area is determined. The Bluetooth device's driver data is then loaded into this area to re-establish the connection. This solves the problem of Bluetooth connection failures when memory is limited, improving the Bluetooth connection success rate and memory resource utilization.

CN116193636BActive Publication Date: 2025-12-16SHENZHEN COOCAA NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310210912.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2025-12-16
Estimated Expiration
2043-03-07

AI Technical Summary

Technical Problem

In smart devices, insufficient memory can lead to Bluetooth connection failures and low memory utilization, especially memory fragmentation that occurs after the system has been running for a long time, causing Bluetooth connection tasks to fail to start.

Method used

By acquiring log data during the Bluetooth connection process, the storage pages associated with the Bluetooth connection function are identified, and they are categorized and organized according to their occupancy attributes to determine the target storage area. The driver data of the Bluetooth device is then loaded into this area to re-establish the connection.

Benefits of technology

It improves the success rate of Bluetooth connections and the utilization rate of memory resources, and solves the problem of Bluetooth connection failures when memory is limited.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116193636B_ABST
    Figure CN116193636B_ABST
Patent Text Reader

Abstract

The application discloses a Bluetooth connection failure processing method and device, equipment and medium. When it is detected that a Bluetooth device to be connected and a target device fail to successfully establish a communication connection within a preset time length, log data corresponding to a connection process is acquired; when log content associated with a target field in the log data is consistent with preset content, at least one storage page associated with a Bluetooth connection function is determined; the at least one storage page is classified and arranged according to an occupancy attribute to determine a target storage area; and driving data corresponding to the Bluetooth device to be connected is loaded into the target storage area to reestablish a communication connection, thereby solving the technical problems that Bluetooth connection is prone to failure and memory utilization is low in the case of small memory, effectively improving Bluetooth connection success rate and improving memory resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and in particular to a Bluetooth connection failure processing method and device, equipment and medium. BACKGROUND

[0002] With the rapid development of the Internet of Things in recent years, Bluetooth technology has benefited from its intelligence, low power consumption, high connection speed and other characteristics. At present, a large number of devices have added Bluetooth modules, mainly used for short-distance communication, including transmitting sound, transmitting mouse and keyboard data, etc. However, in the actual process of adding Bluetooth modules, the system often fails to load the Bluetooth driver due to insufficient memory when starting up.

[0003] At present, the commonly used solution is to increase the memory space of the Bluetooth module. However, this approach has the problem that the smart device will have memory fragmentation after a long time of system running, that is, there will be some scattered page frames in use in a section of free page frames, causing the section of page frames to be divided into multiple small sections of continuous page frames. At this time, even if the memory space applied by the Bluetooth connection task is less than the reserved memory of the Bluetooth module, the Bluetooth connection still cannot be successfully started, and there is the technical problem of low Bluetooth connection success rate and low memory utilization. SUMMARY

[0004] The present application provides a Bluetooth connection failure processing method, device, equipment and medium, which effectively improves the Bluetooth connection success rate and improves the utilization rate of memory resources.

[0005] In a first aspect, the present application provides a Bluetooth connection failure processing method, which comprises:

[0006] When it is detected that the to-be-connected Bluetooth device and the target device have not successfully established a communication connection within a preset time period, log data corresponding to the connection process is obtained;

[0007] When the log content associated with the target field in the log data is consistent with the preset content, at least one storage page associated with the Bluetooth connection function is determined;

[0008] The at least one storage page is classified and sorted according to the occupation attribute to determine a target storage area;

[0009] The drive data corresponding to the to-be-connected Bluetooth device is loaded into the target storage area to reestablish the communication connection.

[0010] In a second aspect, the present application provides a Bluetooth connection failure processing device, which comprises:

[0011] The log data determining module is configured to acquire log data corresponding to the connection process when it is detected that the to-be-connected Bluetooth device and the target device fail to successfully establish a communication connection within a preset time length.

[0012] The storage page determining module is configured to determine at least one storage page associated with the Bluetooth connection function when log content associated with a target field in the log data is consistent with preset content.

[0013] The storage area determining module is configured to classify and arrange the at least one storage page according to an occupancy attribute to determine a target storage area.

[0014] The connection task restarting module is configured to load drive data corresponding to the to-be-connected Bluetooth device to the target storage space to reestablish a communication connection.

[0015] In a third aspect, the present application provides a data processing electronic device, comprising:

[0016] at least one processor; and

[0017] a memory in communication with the at least one processor; wherein

[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the Bluetooth connection failure processing method of any one of the embodiments of the present application.

[0019] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to execute the Bluetooth connection failure processing method of any one of the embodiments of the present application when executed by the processor.

[0020] In a fifth aspect, the present application provides a computer program product, which comprises a computer program, and the computer program is used to enable a processor to execute the Bluetooth connection failure processing method of any one of the embodiments of the present application when executed by the processor.

[0021] The technical scheme provided by the embodiment of the application comprises the following steps: when it is detected that a Bluetooth device to be connected and a target device fail to successfully establish a communication connection within a preset time length, log data corresponding to a connection process is acquired; when log content associated with a target field in the log data is consistent with preset content, at least one storage page associated with a Bluetooth connection function is determined; the at least one storage page is classified and arranged according to an occupation attribute, so as to determine a target storage area; and then, driving data corresponding to the Bluetooth device to be connected is loaded into the target storage area, so as to reestablish a communication connection. The technical scheme provided by the application solves the technical problems of Bluetooth connection failure and low memory utilization in the case of small memory, effectively improves the Bluetooth connection success rate, and improves the utilization rate of memory resources.

[0022] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the application, nor is it used to limit the scope of the application. Other features of the application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.

[0024] Figure 1 The flow chart of the Bluetooth connection failure processing method provided by the first embodiment of the application;

[0025] Figure 2 The memory area schematic diagram related to the embodiments of the application;

[0026] Figure 3 The at least one memory page schematic diagram after classification processing related to the embodiments of the application;

[0027] Figure 4 The flow chart of the Bluetooth connection failure processing method provided by the second embodiment of the application;

[0028] Figure 5 The process schematic diagram of classifying and arranging the at least one storage page related to the embodiments of the application;

[0029] Figure 6 The Bluetooth connection failure processing device structure schematic diagram provided by the third embodiment of the application;

[0030] Figure 7 The electronic device structure schematic diagram provided by the fourth embodiment of the application. DETAILED DESCRIPTION

[0031] In order to better understand the technical scheme of the present application, the technical scheme in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work should fall within the scope of protection of the present application.

[0032] It should be noted that the terms "first preset condition", "second preset condition" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0033] Before introducing the technical scheme, the application scenario can be exemplarily described. At present, a large number of intelligent devices have added Bluetooth modules, but in the process of actually adding the Bluetooth module, when the intelligent device loads the Bluetooth driver at startup, loading failure often occurs due to insufficient memory. After the intelligent device runs for a long time, the storage area corresponding to the Bluetooth connection function may have memory fragmentation, that is, in a segment of free page frames, there will be some scattered page frames in use, which will cause the segment of page frames to be divided into multiple small segments of continuous page frames. At this time, even if the memory space applied by the Bluetooth connection task is smaller than the reserved memory used by the Bluetooth module, the Bluetooth connection cannot be successfully established. In view of this problem, the present application can classify and arrange the storage pages corresponding to the Bluetooth module according to the occupation attribute when the Bluetooth connection fails, without increasing the memory of the Bluetooth module, to determine the target storage area, load the driving data corresponding to the Bluetooth device to the target storage area, and re-establish the communication connection, thereby improving the utilization rate of the memory space.

[0034] Embodiment one

[0035] Figure 1A flowchart of a Bluetooth connection failure processing method provided for Embodiment One of the present application, the embodiment can be applicable to processing Bluetooth connection failure situations. The method can be executed by a Bluetooth connection failure processing device, which can be realized in the form of hardware and / or software, and can be configured on a computer device, which can be a notebook, a desktop computer, a smart tablet, etc. As shown in Figure 1 the method includes:

[0036] S110, when detecting that the to-be-connected Bluetooth device and the target device have not successfully established a communication connection within a preset time length, obtaining log data corresponding to the connection process.

[0037] The to-be-connected Bluetooth device is a hardware device with Bluetooth connection function, for example, the to-be-connected Bluetooth device can be a Bluetooth headset, a Bluetooth mouse, a Bluetooth keyboard, etc. The target device is a device that can establish a connection with the to-be-connected Bluetooth device, for example, the target device can be a computer, a mobile phone, a television, etc. The log data is the recorded information of the to-be-connected Bluetooth device and the target device when establishing a communication connection, for example, the log data can be presented in the form of a log file.

[0038] Specifically, when the to-be-connected Bluetooth device and the target device establish a communication connection, the driving data corresponding to the to-be-connected Bluetooth device needs to be loaded into the pre-set memory associated with the Bluetooth module. If the connection is not successful within the preset time length, it means that there is a problem in the Bluetooth connection process at this time, and the recorded information generated in this connection process can be obtained, that is, the log data is obtained.

[0039] On the basis of the above embodiment, obtaining log data corresponding to the connection process includes: when detecting that the control for triggering the log data is obtained, generating a log reading instruction; based on the log reading instruction, calling the log data corresponding to the connection process of the to-be-connected Bluetooth device from the system log.

[0040] The log instruction is an operation instruction for obtaining log data. The system log is used to record system operation data.

[0041] Specifically, when the user triggers the control corresponding to the log data, the log reading instruction can be generated, and the log reading instruction can be input into the operating system window, and the log data corresponding to the connection process of the to-be-connected Bluetooth device can be called from the system log.

[0042] For example, if the Bluetooth device to be connected is a Bluetooth headset and the target device is a television, and the Bluetooth headset and the television fail to establish a Bluetooth connection for more than 10 seconds, the television can be connected to a computer device through a serial line, and a control for obtaining log data is preset in a display page of the computer device. When the user triggers the control, a log reading instruction is generated, and the log reading instruction is input into an operating system window. The log data corresponding to the connection process of the Bluetooth device to be connected can be obtained from the system log of the television, for example, a log file corresponding to the Bluetooth connection process can be obtained.

[0043] In S120, when the log content associated with the target field in the log data is consistent with the preset content, at least one storage page associated with the Bluetooth connection function is determined.

[0044] The target field is a specific character in the log data. The target field has corresponding log content. The preset content is a specific character that is preset, for example, the preset content is “page allocation failure”.

[0045] In this embodiment, the memory allocation of the Bluetooth connection between the Bluetooth device to be connected and the target device adopts the memory allocation manner of Linux. The memory corresponding to the Bluetooth connection function is in units of memory zones (zones), and the memory zones are in units of storage pages (page blocks). The storage page is the smallest unit of memory management.

[0046] Specifically, in the process of reading the log data, it is determined whether the log content associated with the target field is consistent with the preset content. For example, the target field is “kworker / u9:0:”, and the log content at the associated position of the target field is “page allocation failure”. This content is consistent with the preset content. At this time, the memory zone associated with the Bluetooth connection function can be determined through a memory searching instruction, and the memory zone includes at least one storage page. For example, the memory zone is shown in Figure 2 As shown in Figure 2 Each small rectangle is a storage page, and the memory zone includes 15 memory pages.

[0047] In S130, at least one storage page is classified and arranged according to the occupation attribute, so as to determine a target storage area.

[0048] The occupancy attribute includes an occupied attribute and an unoccupied attribute. The sorting and classifying can be understood as aggregating the storage pages corresponding to the occupied attribute and aggregating the storage pages corresponding to the unoccupied attribute, so that the storage pages corresponding to the occupied attribute and the storage pages corresponding to the unoccupied attribute are separated. The target storage area is a memory space composed of the storage pages corresponding to the unoccupied attribute.

[0049] Specifically, for each of the at least one storage page, the occupancy attribute corresponding to the storage page is known. The occupancy attribute corresponding to each storage page can be determined first, and then the storage pages corresponding to the occupied attribute are aggregated, and the storage pages corresponding to the unoccupied attribute are aggregated, so that the at least one storage page is sorted and classified, and the target storage space is determined.

[0050] Specifically, for each of the at least one storage page, the occupancy attribute corresponding to the storage page is known. The occupancy attribute corresponding to each storage page can be determined first, and then the storage pages corresponding to the occupied attribute are aggregated, and the storage pages corresponding to the unoccupied attribute are aggregated, so that the at least one storage page is sorted and classified, and the target storage space is determined.

[0051] As shown in Figure 2 , the white small rectangles in the memory area represent the storage pages corresponding to the unoccupied attribute, and the gray small rectangles represent the storage pages corresponding to the occupied attribute. The white small rectangles and the gray small rectangles can be aggregated respectively to obtain the at least one memory page after sorting and classifying, as shown in Figure 3 . As shown in Figure 3 , the memory area composed of the white small rectangles on the left is the target storage area, and the unoccupied attribute storage pages in the target storage area are arranged continuously.

[0052] S140, loading the driving data corresponding to the Bluetooth device to be connected to the target storage area to re-establish the communication connection.

[0053] In this embodiment, after the target storage area is determined, the connection between the Bluetooth device to be connected and the target device is re-established. At this time, the driving data corresponding to the Bluetooth device to be connected is directly loaded to the target storage area. Since all the storage pages in the target storage area are unoccupied, as long as the memory applied by the Bluetooth device to be connected is less than the memory corresponding to the target storage area, the Bluetooth device to be connected and the target device can be successfully connected, thereby improving the success rate of Bluetooth connection.

[0054] The technical scheme provided by the embodiment of the application comprises the following steps: when it is detected that a Bluetooth device to be connected and a target device fail to successfully establish a communication connection within a preset time length, log data corresponding to a connection process is acquired; when log content associated with a target field in the log data is consistent with preset content, at least one storage page associated with a Bluetooth connection function is determined; subsequently, the at least one storage page is classified and arranged according to an occupation attribute, so as to determine a target storage area; and further, driving data corresponding to the Bluetooth device to be connected is loaded into the target storage area, so as to reestablish a communication connection. The technical scheme provided by the application solves the technical problems of Bluetooth connection failure and low memory utilization rate in the case of small memory, effectively improves the Bluetooth connection success rate, and improves the utilization rate of memory resources.

[0055] On the basis of the above embodiment, if the communication connection is not reestablished based on the target storage area, and the number of repetitions reaches a preset repetition threshold, a failed connection notification is fed back to the target terminal.

[0056] The target terminal device can be a mobile phone, a smart watch, a tablet computer or a computer.

[0057] In the embodiment, the repetition threshold can be preset, for example, the repetition threshold is 5 times. If the number of repeated connections reaches 5 times in the process of reestablishing the communication connection based on the target storage area, but the connection is not successfully established, a failed connection notification can be fed back to the target terminal, so that the target user who pays attention to the Bluetooth connection state can timely know the Bluetooth connection failure message and take corresponding solving measures.

[0058] Embodiment two

[0059] Figure 4 A flowchart of a Bluetooth connection failure processing method provided by the embodiment two of the application is shown in the figure. The embodiment two of the application is further refined on the basis of the above embodiment, and can be combined with each optional scheme in one or more of the above embodiments. As shown in the figure, the method comprises the following steps. Figure 4

[0060] S210, when it is detected that a Bluetooth device to be connected and a target device fail to successfully establish a communication connection within a preset time length, log data corresponding to a connection process is acquired.

[0061] S220, when log content associated with a target field in the log data is consistent with preset content, at least one storage page associated with a Bluetooth connection function is determined.

[0062] S230, memory information of the at least one storage page is read, and an occupation attribute of the at least one storage page is determined according to the memory information.​

[0063] The memory information refers to the available memory data corresponding to each storage page. The occupancy attributes include whether the memory is occupied or not.

[0064] In this embodiment, the memory information of at least one storage page can be directly read. If the memory information indicates that there is no available memory data, the corresponding occupancy attribute is the occupied attribute. If the memory information indicates that there is available memory data, the corresponding occupancy attribute is the unoccupied attribute.

[0065] S240. Based on the occupied and unoccupied attributes, classify and organize at least one storage page to determine the target storage area.

[0066] In this embodiment, after determining the occupancy attribute of at least one storage page, the storage pages corresponding to the occupied attribute are aggregated, and the storage pages corresponding to the unoccupied attribute are aggregated, thereby realizing the classification and organization of at least one storage page.

[0067] Based on the above embodiments, the method for determining the target storage area may specifically include: scanning at least one storage page according to a preset scanning rule to obtain used and unused storage areas that are categorized and organized according to occupied and unoccupied attributes; and determining the target storage area based on the used and unused storage areas.

[0068] The preset scanning rules are pre-defined rules. The used storage area is the storage area determined by categorizing storage pages corresponding to used attributes. The unused storage area is the storage area determined by categorizing storage pages corresponding to unused attributes. The target storage area is the unused storage area, which includes at least one storage page.

[0069] Specifically, the preset scanning rule is a rule that scans sequentially in a forward direction starting from the starting page of at least one storage page to aggregate at least one storage page with the occupied attribute being occupied; or, the preset scanning rule is a rule that scans in reverse direction starting from the last storage page of at least one storage page to aggregate at least one storage page with the occupied attribute being unoccupied.

[0070] For example, see the schematic diagram of the process of classifying and organizing at least one storage page. Figure 5 ,like Figure 5 As shown, Figure 5 The second row shows the original arrangement of at least one storage page. In the diagram, the white rectangles represent storage pages corresponding to unoccupied attributes, and the gray rectangles represent storage pages corresponding to occupied attributes. Figure 5The first behavior starts from the start page of the at least one storage page and scans forward in sequence, and the at least one storage page with the occupied attribute is aggregated, and the storage page with the unoccupied attribute is also aggregated; for another preset rule, Figure 5 The third behavior starts from the last storage page of the at least one storage page and scans backward, and the at least one storage page with the unoccupied attribute is aggregated, and the storage page with the occupied attribute is also aggregated. Either of the two scanning rules can obtain the result corresponding to the fourth row, and the memory area composed of the white rectangle on the left side of the fourth row is an unused storage area, which is also a target storage area.

[0071] Optionally, the above processing process can be realized by the command "#echo 1> / proc / sys / vm / compact_memory".

[0072] S250, loading the driving data corresponding to the Bluetooth device to be connected into the target storage area to reestablish the communication connection.

[0073] The technical scheme provided by the embodiment of the application comprises the following steps: when it is detected that the Bluetooth device to be connected and the target device fail to successfully establish a communication connection within a preset time length, log data corresponding to the connection process is acquired; when log content associated with a target field in the log data is consistent with preset content, at least one storage page associated with a Bluetooth connection function is determined; memory information of the at least one storage page is read; an occupied attribute of the at least one storage page is determined according to the memory information; the at least one storage page is classified and arranged according to the occupied attribute and an unoccupied attribute; a target storage area is determined; driving data corresponding to the Bluetooth device to be connected is loaded into the target storage area to reestablish the communication connection. The technical scheme provided by the application solves the technical problems of Bluetooth connection failure and low memory utilization rate in the case of small memory, effectively improves the Bluetooth connection success rate, and further improves the utilization rate of memory resources.

[0074] Embodiment three

[0075] Figure 6 A structural schematic diagram of a Bluetooth connection failure processing device provided by the third embodiment of the application, which can execute the Bluetooth connection failure processing method provided by the embodiment of the application. The device comprises a log data determination module 310, a storage page determination module 320, a storage area determination module 330, and a connection task restart module 340.

[0076] The log data determination module 310 is configured to acquire log data corresponding to the connection process when it is detected that the to-be-connected Bluetooth device and the target device fail to successfully establish a communication connection within a preset time length.

[0077] The storage page determination module 320 is configured to determine at least one storage page associated with the Bluetooth connection function when log content associated with the target field in the log data is consistent with preset content.

[0078] The storage area determination module 330 is configured to classify and arrange the at least one storage page according to an occupancy attribute to determine a target storage area.

[0079] The connection task restart module 340 is configured to load drive data corresponding to the to-be-connected Bluetooth device to the target storage space to reestablish a communication connection.

[0080] On the basis of the above technical solutions, the log data determination module 310 comprises:

[0081] The read instruction determination unit is configured to generate a log reading instruction when it is detected that a control triggering acquisition of log data is triggered.

[0082] The log data retrieval unit is configured to retrieve log data corresponding to the connection process of the to-be-connected Bluetooth device from system logs based on the log reading instruction, wherein the system logs are used to record system operation data.

[0083] On the basis of the above technical solutions, the storage area determination module 330 comprises:

[0084] The occupancy attribute determination unit is configured to read memory information of the at least one storage page and determine an occupancy attribute of the at least one storage page according to the memory information, wherein the occupancy attribute comprises an occupied attribute or an unoccupied attribute.

[0085] The target area determination unit is configured to classify and arrange the at least one storage page according to the occupied attribute and the unoccupied attribute to determine the target storage area.

[0086] On the basis of the above technical solutions, the target area determination module comprises:

[0087] The storage page scanning subunit is configured to scan and process the at least one storage page according to a preset scanning rule to obtain used storage areas and unused storage areas classified and arranged according to the occupied attribute and the unoccupied attribute.

[0088] The target area determination subunit is configured to determine the target storage area based on the used storage areas and the unused storage areas.

[0089] On the basis of each of the above technical solutions, the preset scanning rule is a rule of starting from a starting page of the at least one storage page and scanning forward in sequence to aggregate the at least one storage page with the occupied attribute of the occupied attribute; or, the preset scanning rule is a rule of starting from a last storage page of the at least one storage page and scanning backward to aggregate the at least one storage page with the occupied attribute of the unoccupied attribute.

[0090] On the basis of each of the above technical solutions, the target storage area is an unused storage area, and the unused storage area includes the at least one storage page.

[0091] On the basis of each of the above technical solutions, the device further includes:

[0092] The unsuccessful feedback module is configured to, if the communication connection is not re-established based on the target storage area, and the number of repetitions reaches the preset repetition threshold, feed back an unsuccessful connection notification to the target terminal.

[0093] The technical solution provided by the embodiment of the application comprises the following steps: when it is detected that a Bluetooth device to be connected and a target device do not successfully establish a communication connection within a preset time length, log data corresponding to a connection process is acquired; when log content associated with a target field in the log data is consistent with preset content, at least one storage page associated with a Bluetooth connection function is determined; the at least one storage page is classified and arranged according to an occupied attribute, so as to determine a target storage area; and drive data corresponding to the Bluetooth device to be connected is loaded into the target storage area, so as to re-establish a communication connection. The technical solution provided by the application solves the technical problems of Bluetooth connection failure and low memory utilization rate in the case of small memory, effectively improves the Bluetooth connection success rate, and improves the utilization rate of memory resources.

[0094] The Bluetooth connection failure processing device provided by the embodiment of the disclosure can execute the Bluetooth connection failure processing method provided by any embodiment of the disclosure, has the function modules and beneficial effects corresponding to the execution method.

[0095] It should be noted that each unit and module included in the above device is only divided according to the function logic, and is not limited to the above division, as long as the corresponding function can be realized; in addition, the specific name of each functional unit is only for convenient mutual distinction, and does not limit the protection scope of the embodiment of the disclosure.

[0096] Embodiment four

[0097] Figure 7A block diagram of an electronic device for Embodiment Four is provided. Electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the applications described and / or claimed in this document.

[0098] As shown in Figure 7 Electronic device 10 includes at least one processor 11, and memory, such as read-only memory (ROM) 12, random access memory (RAM) 13, etc., communicatively connected to the at least one processor 11, where the memory stores computer programs executable by the at least one processor 11, and the processor 11 can perform various appropriate actions and processes according to the computer programs stored in the read-only memory (ROM) 12 or loaded into the random access memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0099] Various components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, speakers, etc., a storage unit 18, such as a magnetic disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.

[0100] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs various methods and processes described above, such as the processing method for Bluetooth connection failure.

[0101] In some embodiments, the method of handling Bluetooth connection failure can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 18. In some embodiments, parts or all of the computer program can be loaded and / or installed onto electronic device 10 via, e.g., ROM 12 and / or communication unit 19. When the computer program is loaded onto RAM 13 and executed by processor 11, one or more steps of the method of handling Bluetooth connection failure as described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method of handling Bluetooth connection failure by other means, e.g., with the aid of firmware.

[0102] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, specially designed application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0103] Computer programs used to implement the methods of the application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the computer or other programmable data processing apparatus, enables the systems and methods as claimed in the claims to be implemented. The computer program can be executed entirely on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.

[0104] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0105] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0106] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0107] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service. It should be understood that the various forms of flow shown above can be reordered, added, or deleted steps. For example, each step described in the present application can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which is not limited herein. The above specific embodiments do not constitute a limitation on the scope of protection of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for handling a Bluetooth connection failure, characterized in that, The method comprises the steps of: when it is detected that the target device and the Bluetooth device to be connected fail to establish a communication connection within a preset time length, obtaining log data corresponding to a connection process; when log content associated with a target field in the log data is consistent with preset content, determining at least one storage page associated with a Bluetooth connection function; wherein the preset content is a page allocation failure field; classifying and arranging the at least one storage page according to an occupancy attribute to determine a target storage area; loading driving data corresponding to the Bluetooth device to be connected into the target storage area to reestablish a communication connection.

2. The method of claim 1, wherein, The method comprises the steps of: when a control for triggering log data acquisition is detected, generating a log reading instruction; based on the log reading instruction, calling log data corresponding to a connection process of the Bluetooth device to be connected from a system log; wherein the system log is used to record system operation data.

3. The method of claim 1, wherein, The method comprises the steps of: reading memory information of the at least one storage page, and determining an occupancy attribute of the at least one storage page according to the memory information; wherein the occupancy attribute comprises an occupied attribute or an unoccupied attribute; based on the occupied attribute and the unoccupied attribute, classifying and arranging the at least one storage page to determine a target storage area.

4. The method of claim 3, wherein, The method comprises the steps of: according to a preset scanning rule, scanning and processing the at least one storage page to obtain used storage areas and unused storage areas classified and arranged according to the occupied attribute and the unoccupied attribute; based on the used storage areas and the unused storage areas, determining the target storage area.

5. The method of claim 4, wherein, The preset scanning rule is a rule of sequentially scanning forward from a starting page of the at least one storage page to aggregate at least one storage page with the occupied attribute; or The preset scanning rule is a rule of reversely scanning at least one storage page with the unoccupied attribute from a last storage page of the at least one storage page.

6. The method of any one of claim 4, wherein, The target storage area is an unused storage area, and the unused storage area comprises at least one storage page.

7. The method of claim 1, wherein, The method further comprises the steps of: if a communication connection is not reestablished based on the target storage area, when a number of repetitions reaches a preset repetition threshold, feeding back a failed connection notification to a target terminal.

8. A processing device for Bluetooth connection failure, characterized in that, The method comprises the steps of: a log data determination module configured to, when it is detected that the target device and the Bluetooth device to be connected fail to establish a communication connection within a preset time length, obtain log data corresponding to a connection process; a storage page determination module configured to, when log content associated with a target field in the log data is consistent with preset content, determine at least one storage page associated with a Bluetooth connection function; wherein the preset content is a page allocation failure field; The storage area determination module is configured to classify the at least one storage page according to an occupation attribute to determine a target storage area. The connection task restart module is configured to load drive data corresponding to the Bluetooth device to be connected to the target storage space to reestablish a communication connection.

9. An electronic device, comprising: The electronic device includes: at least one processor; and a memory connected with the at least one processor; wherein The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the Bluetooth connection failure processing method in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling a processor to execute the Bluetooth connection failure processing method in any one of claims 1-7 when executed.

Citation Information

Patent Citations

  • Bluetooth control method and device, terminal equipment and computer readable storage medium

    CN112612593A

  • Bluetooth scanning method and electronic device

    US20220217518A1