CN113873482A - Method, system, equipment and medium for testing compatibility of Android system to Bluetooth module - Google Patents

Method, system, equipment and medium for testing compatibility of Android system to Bluetooth module Download PDF

Info

Publication number
CN113873482A
CN113873482A CN202110996075.XA CN202110996075A CN113873482A CN 113873482 A CN113873482 A CN 113873482A CN 202110996075 A CN202110996075 A CN 202110996075A CN 113873482 A CN113873482 A CN 113873482A
Authority
CN
China
Prior art keywords
test
bluetooth module
bluetooth
target
android
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110996075.XA
Other languages
Chinese (zh)
Inventor
孙坤
王洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Wintec System Co ltd
Original Assignee
Qingdao Wintec System 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 Qingdao Wintec System Co ltd filed Critical Qingdao Wintec System Co ltd
Priority to CN202110996075.XA priority Critical patent/CN113873482A/en
Publication of CN113873482A publication Critical patent/CN113873482A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/137Hash-based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

The invention discloses a method, a system, equipment and a medium for testing the compatibility of an Android system to a Bluetooth module. The method comprises the following steps: selecting a target Bluetooth module through android terminal software to perform pairing operation, and acquiring a test target; after a test target is searched through the Bluetooth of the android terminal, sending a test file to a target Bluetooth module; the method comprises the steps that a target Bluetooth module is controlled by windows software to receive a test file, the hash value of the test file is calculated, the hash value is returned to Bluetooth of an android terminal and then verified, and a verification result is recorded in an appointed directory; after the verification is finished, judging whether the specified test times are reached; if not, carrying out the next test until reaching the specified test times; if yes, reading the check result in the appointed directory, and counting the power of the Bluetooth connection. The invention can reduce the manual operation time, ensure that the connection success rate statistical result is not influenced by the outside and has higher working efficiency.

Description

Method, system, equipment and medium for testing compatibility of Android system to Bluetooth module
Technical Field
The invention relates to the technical field of wireless communication networks, in particular to a method, a system, equipment and a medium for testing the compatibility of an Android system to a Bluetooth module.
Background
The compatibility of the Bluetooth module under the Android system needs to be tested by manually opening the Bluetooth, searching, pairing, then transmitting a file, closing the Bluetooth, manually recording a result, and disconnecting the Bluetooth by using a manual testing means, so that the efficiency is low, the consumed time is long, and problems are difficult to find.
Disclosure of Invention
Aiming at the technical problems of low efficiency, long time consumption and difficulty in finding problems in manual testing, the invention provides a method, a system, equipment and a medium for testing the compatibility of an Android system to a Bluetooth module.
In a first aspect, an embodiment of the present application provides a method for testing compatibility of an Android system with a bluetooth module, including:
a target selection step: selecting a target Bluetooth module to carry out pairing operation, and recording the MAC address of the target Bluetooth module as a test target;
a test file sending step: searching through Bluetooth of an android terminal, and sending a test file to the target Bluetooth module after the test target is searched;
a checking step: receiving the test file through the target Bluetooth module, calculating a hash value of the test file, returning the hash value to the Bluetooth of the android terminal, checking, and recording a checking result to an appointed directory;
a success rate statistics step: after the verification is finished, judging whether the specified test times are reached; if not, the Bluetooth of the android terminal is turned on again, and the next test is carried out until the specified test times are reached; and if so, reading the verification result in the appointed directory, and counting the power of the Bluetooth connection.
According to the method for testing the compatibility of the Android system to the Bluetooth module, the Android-end Bluetooth is controlled and operated through Android-end software, and the target Bluetooth module is controlled and operated through windows software.
The method for testing the compatibility of the Android system to the Bluetooth module comprises the following steps of:
file length sending step: sending the length of the test file to the target Bluetooth module through the android-terminal Bluetooth for confirmation;
a file data sending step: and after the confirmation, sending test file data to the target Bluetooth module through the android terminal Bluetooth.
The method for testing the compatibility of the Android system to the Bluetooth module comprises the following steps of: and if the test target is not searched, recording the search failure and the failure reason in the specified directory, and reopening the Bluetooth of the android terminal to search the test target for the next test.
The method for testing the compatibility of the Android system to the Bluetooth module comprises the following verification steps: if the verification is correct, the test is recorded in the appointed directory successfully, and if the verification is wrong, the test is recorded in the appointed directory unsuccessfully.
The method for testing the compatibility of the Android system to the bluetooth module includes the following steps: and after the test is finished, recording a timestamp, a total number of tests, success times, failure times, success rate, failure rate and failure reasons to the specified directory.
In a second aspect, an embodiment of the present application provides a system for testing compatibility of an Android system with a bluetooth module, including:
a target selection unit: selecting a target Bluetooth module to carry out pairing operation, and recording the MAC address of the target Bluetooth module as a test target;
a test file transmitting unit: searching through Bluetooth of an android terminal, and sending a test file to the target Bluetooth module after the test target is searched;
a checking unit: receiving the test file through the target Bluetooth module, calculating a hash value of the test file, returning the hash value to the Bluetooth of the android terminal, checking, and recording a checking result to an appointed directory;
a success rate statistic unit: after the verification is finished, judging whether the specified test times are reached; if not, the Bluetooth of the android terminal is turned on again, and the next test is carried out until the specified test times are reached; and if so, reading the verification result in the appointed directory, and counting the power of the Bluetooth connection.
The system for testing the compatibility of the Android system to the bluetooth module comprises a test file sending unit and a test file sending unit, wherein the test file sending unit comprises:
the file length sending module: sending the length of the test file to the target Bluetooth module through the android-terminal Bluetooth for confirmation;
the file data sending module: and after the confirmation, sending test file data to the target Bluetooth module through the android terminal Bluetooth.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program that is stored on the memory and is executable on the processor, where the processor executes the computer program to implement the method for testing compatibility of an Android system with a bluetooth module according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for testing compatibility of an Android system with a bluetooth module as described in the first aspect.
Compared with the prior art, the invention has the advantages and positive effects that:
according to the invention, the automatic test of the compatibility of the Bluetooth module is carried out through software, so that the connection power statistical result between the software and the Bluetooth hardware is not influenced by the outside while the manual operation time is reduced, the success rate of Bluetooth connection can be obtained by checking the result recording file after the automatic execution for a specified number of times, the speed is higher than that of manual operation and recording, and the working efficiency is higher.
Drawings
Fig. 1 is a schematic step diagram of a method for testing compatibility of an Android system with a bluetooth module according to the present invention;
fig. 2 is a schematic flowchart of an embodiment of a method for testing compatibility of an Android system with a bluetooth module according to the present invention;
FIG. 3 is a block diagram of a system for testing compatibility of an Android system with a Bluetooth module according to the present invention;
fig. 4 is a block diagram of a computer device according to an embodiment of the present application.
Wherein the reference numerals are:
1. a target selection unit; 2. a test file transmitting unit; 21. a file length sending module; 22. a file data sending module; 3. a verification unit; 4. a success rate statistic unit; 81. a processor; 82. a memory; 83. a communication interface; 80. a bus.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The present invention is described in detail with reference to the embodiments shown in the drawings, but it should be understood that these embodiments are not intended to limit the present invention, and those skilled in the art should understand that functional, methodological, or structural equivalents or substitutions made by these embodiments are within the scope of the present invention.
Before describing in detail the various embodiments of the present invention, the core inventive concepts of the present invention are summarized and described in detail by the following several embodiments.
According to the invention, the disconnection and connection of the Bluetooth of the android terminal are automatically controlled through software, the accuracy of data is ensured through calculation verification and test for many times until the specified cycle number is reached, the success rate of Bluetooth connection is obtained through checking the result recording file, and the accuracy of the test result is also ensured while the test efficiency is improved.
The first embodiment is as follows:
fig. 1 is a schematic step diagram of a method for testing compatibility of an Android system with a bluetooth module provided by the invention. As shown in fig. 1, this embodiment discloses a specific implementation of a method (hereinafter referred to as "method") for testing compatibility of an Android system with a bluetooth module.
Specifically, the method disclosed in this embodiment mainly includes the following steps:
step S1: selecting a target Bluetooth module to carry out pairing operation, and recording the MAC address of the target Bluetooth module as a test target;
step S2: searching through Bluetooth of an android terminal, and sending a test file to the target Bluetooth module after the test target is searched;
the android-terminal Bluetooth module performs control operation through android-terminal software, and the target Bluetooth module performs control operation through windows software. Step S2 specifically includes the following:
after a test target is searched, the length of the test file is sent to the target Bluetooth module through the android-terminal Bluetooth for confirmation; and after the confirmation, sending test file data to the target Bluetooth module through the android terminal Bluetooth. And if the test target is not searched, recording the search failure and the failure reason in the specified directory, and reopening the Bluetooth of the android terminal to search the test target for the next test.
Step S3: receiving the test file through the target Bluetooth module, calculating a hash value of the test file, returning the hash value to the Bluetooth of the android terminal, checking, and recording a checking result to an appointed directory;
if the verification is correct, the test is recorded in the specified directory successfully, and if the verification is wrong, the test is recorded in the specified directory unsuccessfully.
Step S4: after the verification is finished, judging whether the specified test times are reached; if not, the Bluetooth of the android terminal is turned on again, and the next test is carried out until the specified test times are reached; and if so, reading the verification result in the appointed directory, and counting the power of the Bluetooth connection.
Specifically, after the test is completed, a timestamp, a total number of tests, success times, failure times, a success rate, a failure rate, and a failure reason are recorded in the specified directory.
According to the scheme, the Bluetooth module is connected with the Bluetooth of the android end to trigger and initiate Bluetooth connection, after connection is successful, the android end sends a test file to the Bluetooth module through Bluetooth, the Bluetooth module receives the test file and calculates a check sum, after calculation, a check result is sent to the Bluetooth of the android end, whether the calculation is correct after the verification sum is received by the android end, correct communication is recorded to an appointed directory once if the calculation is correct, an error is recorded to the appointed directory once if the calculation is wrong, then the Bluetooth connection is disconnected, the Bluetooth module is searched again, and next communication is started. And the android-terminal Bluetooth connection Bluetooth module continuously sends a test file, is disconnected and repeatedly connected after verification returns, reads a connection result in an appointed directory until reaching an appointed cycle number, and counts the Bluetooth connection power. The invention improves the software testing efficiency, reduces the manual operation time, ensures that the power statistical result of the connection between the software and the Bluetooth hardware is not influenced by the outside, and can know the Bluetooth connection success rate by checking the result recording file after automatically executing specified times; the speed is faster than manual operation and record, and work efficiency is higher.
Please refer to fig. 2. Fig. 2 is a schematic flowchart of an embodiment of a method for testing compatibility of an Android system with a bluetooth module, which is provided by the present invention, and with reference to fig. 2, an application flow of the method is specifically described as follows:
the android software is constructed and used for controlling android Bluetooth and performing operations such as opening, searching, connecting and sending files, the windows software is constructed and used for controlling a Bluetooth module, and operations such as waiting for connection, receiving files and calculating hash values of the files are performed after the Bluetooth module is opened.
And opening android software. First a bluetooth search is performed. The target bluetooth module needs to be manually selected for pairing operation, and at this time, the MAC address is recorded as a test target. And inputting the testing times after the pairing is completed. The test is then started.
The software will automatically turn on bluetooth. Then the search is started. If the target of the specified MAC is not searched, the search failure is recorded. The bluetooth is then turned back on for the next test. Any failed operation will record the timestamp and the reason for the failure to the SD card root directory and the number of failures +1, and will automatically proceed to the next step if successful. After the target of the specified MAC is searched, the software automatically connects the Bluetooth module. And (4) the connection is successful. A file will be sent to the target module. The file length is sent first. And after receiving the file data, the target Bluetooth returns OK and then starts to send the file data. And after the target Bluetooth receives the content of the file length. The hash value of the file is calculated. The hash value is then returned. And the android terminal starts checking after receiving the hash value. And after the Bluetooth module is determined to be correct, the Bluetooth connection is disconnected, and the Bluetooth module is closed. And after the operation is successful, recording the timestamp and the test success, recording the success times plus 1, and judging whether the test is completed. And if not, the Bluetooth is turned on to start the next test. If the test is complete. Recording the time stamp, the total number of tests, the success times, the failure times, the success rate and the failure rate to the local. And prompts the test to be completed.
The automatic testing method provided by the invention can simultaneously test a plurality of devices by controlling the disconnection and data verification of the Bluetooth through software, can know the success rate of the connection and communication of the Bluetooth by checking the result recording file after automatically executing specified times, and has higher speed and higher working efficiency than manual operation and recording.
Example two:
in combination with the method for testing the compatibility of the Android system with the bluetooth module disclosed in the first embodiment, a specific implementation example of a system (hereinafter referred to as "system") for testing the compatibility of the Android system with the bluetooth module is disclosed in the first embodiment.
Referring to fig. 3, the system includes:
target selection unit 1: selecting a target Bluetooth module to carry out pairing operation, and recording the MAC address of the target Bluetooth module as a test target;
test file transmitting unit 2: searching through Bluetooth of an android terminal, and sending a test file to the target Bluetooth module after the test target is searched;
specifically, the test file transmission unit 2 includes:
the file length transmitting module 21: sending the length of the test file to the target Bluetooth module through the android-terminal Bluetooth for confirmation;
the file data transmission module 22: and after the confirmation, sending test file data to the target Bluetooth module through the android terminal Bluetooth.
The verification unit 3: receiving the test file through the target Bluetooth module, calculating a hash value of the test file, returning the hash value to the Bluetooth of the android terminal, checking, and recording a checking result to an appointed directory;
success rate statistics unit 4: after the verification is finished, judging whether the specified test times are reached; if not, the Bluetooth of the android terminal is turned on again, and the next test is carried out until the specified test times are reached; and if so, reading the verification result in the appointed directory, and counting the power of the Bluetooth connection.
For the system for testing compatibility of an Android system with a bluetooth module disclosed in this embodiment and the technical solution of the remaining same parts in the method for testing compatibility of an Android system with a bluetooth module disclosed in the first embodiment, please refer to the description of the first embodiment, which is not repeated herein.
Example three:
referring to FIG. 4, the embodiment discloses an embodiment of a computer device. The computer device may comprise a processor 81 and a memory 82 in which computer program instructions are stored.
Specifically, the processor 81 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 82 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 82 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 82 may include removable or non-removable (or fixed) media, where appropriate. The memory 82 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 82 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 82 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 82 may be used to store or cache various data files for processing and/or communication use, as well as possible computer program instructions executed by the processor 81.
The processor 81 reads and executes the computer program instructions stored in the memory 82 to implement any one of the above-mentioned methods for testing the compatibility of the Android system with the bluetooth module.
In some of these embodiments, the computer device may also include a communication interface 83 and a bus 80. As shown in fig. 4, the processor 81, the memory 82, and the communication interface 83 are connected via the bus 80 to complete communication therebetween.
The communication interface 83 is used for implementing communication between modules, devices, units and/or equipment in the embodiment of the present application. The communication port 83 may also be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
Bus 80 includes hardware, software, or both to couple the components of the computer device to each other. Bus 80 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 80 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Electronics Association), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 80 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
In addition, by combining the method for testing the compatibility of the Android system with the bluetooth module in the above embodiment, an embodiment of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; when executed by the processor, the computer program instructions implement any one of the above-described embodiments of the method for testing compatibility of an Android system with a bluetooth module.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for testing the compatibility of an Android system to a Bluetooth module is characterized by comprising the following steps:
a target selection step: selecting a target Bluetooth module to carry out pairing operation, and recording the MAC address of the target Bluetooth module as a test target;
a test file sending step: searching through Bluetooth of an android terminal, and sending a test file to the target Bluetooth module after the test target is searched;
a checking step: receiving the test file through the target Bluetooth module, calculating a hash value of the test file, returning the hash value to the Bluetooth of the android terminal, checking, and recording a checking result to an appointed directory;
a success rate statistics step: after the verification is finished, judging whether the specified test times are reached; if not, the Bluetooth of the android terminal is turned on again, and the next test is carried out until the specified test times are reached; and if so, reading the verification result in the appointed directory, and counting the power of the Bluetooth connection.
2. The method for testing the compatibility of the Android system with the Bluetooth module according to claim 1, wherein the Android-side Bluetooth module is controlled and operated through Android-side software, and the target Bluetooth module is controlled and operated through windows software.
3. The method for testing the compatibility of the Android system with the Bluetooth module according to claim 2, wherein the step of sending the test file comprises:
file length sending step: sending the length of the test file to the target Bluetooth module through the android-terminal Bluetooth for confirmation;
a file data sending step: and after the confirmation, sending test file data to the target Bluetooth module through the android terminal Bluetooth.
4. The method for testing the compatibility of the Android system with the Bluetooth module according to claim 3, wherein the step of sending the test file further comprises: and if the test target is not searched, recording the search failure and the failure reason in the specified directory, and reopening the Bluetooth of the android terminal to search the test target for the next test.
5. The method for testing the compatibility of the Android system with the Bluetooth module according to claim 2, wherein the verifying step comprises: if the verification is correct, the test is recorded in the appointed directory successfully, and if the verification is wrong, the test is recorded in the appointed directory unsuccessfully.
6. The method for testing the compatibility of the Android system with the Bluetooth module according to claim 5, wherein the success rate counting step further comprises: and after the test is finished, recording a timestamp, a total number of tests, success times, failure times, success rate, failure rate and failure reasons to the specified directory.
7. The utility model provides a system for test Android system is compatible to bluetooth module which characterized in that includes:
a target selection unit: selecting a target Bluetooth module to carry out pairing operation, and recording the MAC address of the target Bluetooth module as a test target;
a test file transmitting unit: searching through Bluetooth of an android terminal, and sending a test file to the target Bluetooth module after the test target is searched;
a checking unit: receiving the test file through the target Bluetooth module, calculating a hash value of the test file, returning the hash value to the Bluetooth of the android terminal, checking, and recording a checking result to an appointed directory;
a success rate statistic unit: after the verification is finished, judging whether the specified test times are reached; if not, the Bluetooth of the android terminal is turned on again, and the next test is carried out until the specified test times are reached; and if so, reading the verification result in the appointed directory, and counting the power of the Bluetooth connection.
8. The system for testing compatibility of an Android system and a Bluetooth module according to claim 7, wherein the test file sending unit includes:
the file length sending module: sending the length of the test file to the target Bluetooth module through the android-terminal Bluetooth for confirmation;
the file data sending module: and after the confirmation, sending test file data to the target Bluetooth module through the android terminal Bluetooth.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for testing compatibility of an Android system with a bluetooth module as claimed in any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for testing the compatibility of an Android system with a bluetooth module as claimed in any one of claims 1 to 6.
CN202110996075.XA 2021-08-27 2021-08-27 Method, system, equipment and medium for testing compatibility of Android system to Bluetooth module Pending CN113873482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110996075.XA CN113873482A (en) 2021-08-27 2021-08-27 Method, system, equipment and medium for testing compatibility of Android system to Bluetooth module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110996075.XA CN113873482A (en) 2021-08-27 2021-08-27 Method, system, equipment and medium for testing compatibility of Android system to Bluetooth module

Publications (1)

Publication Number Publication Date
CN113873482A true CN113873482A (en) 2021-12-31

Family

ID=78988660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110996075.XA Pending CN113873482A (en) 2021-08-27 2021-08-27 Method, system, equipment and medium for testing compatibility of Android system to Bluetooth module

Country Status (1)

Country Link
CN (1) CN113873482A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888172A (en) * 2012-12-20 2014-06-25 中山大学深圳研究院 Data transmission method and apparatus based on bluetooth
KR101498820B1 (en) * 2013-11-06 2015-03-05 순천향대학교 산학협력단 Method for Detecting Application Repackaging in Android
KR101624264B1 (en) * 2014-11-17 2016-05-25 주식회사 안랩 Apparatus and method for detecting malicious shared library file
CN107786504A (en) * 2016-08-26 2018-03-09 腾讯科技(深圳)有限公司 ELF file publishing methods, ELF file verifications method, server and terminal
CN110503434A (en) * 2019-07-15 2019-11-26 平安普惠企业管理有限公司 Data verification method, device, equipment and storage medium based on hash algorithm
CN111741491A (en) * 2020-08-12 2020-10-02 绿漫科技有限公司 Automatic statistical method for Bluetooth connection success rate
CN112054822A (en) * 2020-08-01 2020-12-08 上海闻泰信息技术有限公司 Bluetooth test method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888172A (en) * 2012-12-20 2014-06-25 中山大学深圳研究院 Data transmission method and apparatus based on bluetooth
KR101498820B1 (en) * 2013-11-06 2015-03-05 순천향대학교 산학협력단 Method for Detecting Application Repackaging in Android
KR101624264B1 (en) * 2014-11-17 2016-05-25 주식회사 안랩 Apparatus and method for detecting malicious shared library file
CN107786504A (en) * 2016-08-26 2018-03-09 腾讯科技(深圳)有限公司 ELF file publishing methods, ELF file verifications method, server and terminal
CN110503434A (en) * 2019-07-15 2019-11-26 平安普惠企业管理有限公司 Data verification method, device, equipment and storage medium based on hash algorithm
CN112054822A (en) * 2020-08-01 2020-12-08 上海闻泰信息技术有限公司 Bluetooth test method and device, electronic equipment and storage medium
CN111741491A (en) * 2020-08-12 2020-10-02 绿漫科技有限公司 Automatic statistical method for Bluetooth connection success rate

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴晗;李永珍;: "基于单分组散列函数的安卓应用程序保护方案的设计", 延边大学学报(自然科学版), no. 01 *

Similar Documents

Publication Publication Date Title
US7743292B2 (en) Apparatus and method for memory card testing
JP6103837B2 (en) System and method for deterministic testing of packet error rates in electronic devices
CN108563532B (en) Data processing method and related device
CN111711546A (en) Device throughput testing method, device, system and computer readable storage medium
CN108279910B (en) Program code programming method and device, computer equipment and storage medium
CN108123775A (en) The method and apparatus of transmission packet
CN111585841B (en) Automatic test method and related device
CN111506335A (en) DSP + FPGA-based program online upgrading method and system
CN115407116A (en) Method and device for determining charging current
CN113873482A (en) Method, system, equipment and medium for testing compatibility of Android system to Bluetooth module
CN116663490A (en) Verification method, platform, device and medium of asynchronous memory chip
CN115686984B (en) Board card function testing method and device, computer and readable storage medium
CN111861858A (en) Method and device for starting image compression function verification and related equipment
CN112527335B (en) Method, system and computer device for automated processing npm dependent package installation
CN116247755A (en) Protocol information testing method, tester, storage medium and program product
CN111694588B (en) Engine upgrade detection method and device, computer equipment and readable storage medium
CN113220362A (en) Log record obtaining method and device, computer equipment and storage medium
CN114296991B (en) CRC data checking method and checking circuit applied to Expander
CN113407408B (en) Data transmission rule verification method, device, equipment and storage medium
CN113722165B (en) Method and device for determining serial port hard disk parameters and electronic equipment
CN111310172B (en) Method and control unit for verifying processor execution traces by disassembling
CN111929615A (en) Performance detection device and method of magnetic suspension control line and electronic equipment
CN116743890A (en) Clock frequency determining method, device, acquisition card and system
CN117955206A (en) Protocol information testing method, tester, storage medium and program product
CN116521457A (en) Hard disk testing method and device

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