CN114553328A - Bluetooth device testing method and device, electronic device and storage medium - Google Patents

Bluetooth device testing method and device, electronic device and storage medium Download PDF

Info

Publication number
CN114553328A
CN114553328A CN202210160971.7A CN202210160971A CN114553328A CN 114553328 A CN114553328 A CN 114553328A CN 202210160971 A CN202210160971 A CN 202210160971A CN 114553328 A CN114553328 A CN 114553328A
Authority
CN
China
Prior art keywords
bluetooth
address information
test mode
memory
test
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.)
Granted
Application number
CN202210160971.7A
Other languages
Chinese (zh)
Other versions
CN114553328B (en
Inventor
郭世文
吴海全
李曙光
杨卉
谢光河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Guanping Electronics Co ltd
Shenzhen Grandsun Electronics Co Ltd
Original Assignee
Shenzhen Guanping Electronics Co ltd
Shenzhen Grandsun Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Guanping Electronics Co ltd, Shenzhen Grandsun Electronics Co Ltd filed Critical Shenzhen Guanping Electronics Co ltd
Priority to CN202210160971.7A priority Critical patent/CN114553328B/en
Publication of CN114553328A publication Critical patent/CN114553328A/en
Application granted granted Critical
Publication of CN114553328B publication Critical patent/CN114553328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the disclosure provides a Bluetooth device testing method and device, electronic equipment and a storage medium, and relates to the technical field of product testing. The Bluetooth device testing method comprises the following steps: acquiring first Bluetooth address information stored in an address backup area of a memory; acquiring second Bluetooth address information stored in an address storage area of the memory; comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result; obtaining test mode information according to the comparison result; the Bluetooth equipment is tested according to the test mode information, and the test efficiency of the Bluetooth equipment can be improved through the technical scheme provided by the embodiment of the disclosure.

Description

Bluetooth device testing method and device, electronic device and storage medium
Technical Field
The invention relates to the technical field of product testing, in particular to a Bluetooth device testing method and device, electronic equipment and a storage medium.
Background
In the production process of electronic products such as bluetooth equipment, in order to ensure the high quality and the consistency of products, the test of each function and index needs to be carried out on the products, before the production test, the test mode of the electronic products needs to be set to start the test process, and the current test mode activation and exit mode comprises the following steps: (1) activating a test mode through a preset key combination or an operation combination, and exiting the test mode through the preset key combination or the operation combination under the test mode; (2) the test mode is activated by a USB or UART command and exits in the test mode by a USB or UART command.
The current test mode activation and exit mode has the problems of high cost and long working hours, and further the test efficiency of the Bluetooth equipment is low.
Disclosure of Invention
The disclosed embodiments of the present disclosure provide a method and an apparatus for testing a bluetooth device, an electronic device, and a storage medium, which can improve the testing efficiency of the bluetooth device.
In order to achieve the above object, a first aspect of the embodiments of the present disclosure provides a bluetooth device testing method, including:
acquiring first Bluetooth address information stored in an address backup area of a memory;
acquiring second Bluetooth address information stored in an address storage area of the memory;
comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result;
obtaining test mode information according to the comparison result;
and testing the Bluetooth equipment according to the test mode information.
In some embodiments, the obtaining the first bluetooth address information stored in the address backup area of the memory includes:
reading initial Bluetooth address information stored in the address storage area of the memory;
storing the initial Bluetooth address information as the first Bluetooth address information in the address backup area of the memory.
In some embodiments, the comparing result includes that the bluetooth addresses are different, and the obtaining the test mode information according to the comparing result includes:
if the comparison result shows that the Bluetooth addresses are different, the test mode information is a production test mode;
correspondingly, the testing the bluetooth device according to the test mode information includes:
and the Bluetooth device enters the production test mode to perform production test.
In some embodiments, after the bluetooth device enters the production test mode for production testing, the method further comprises:
and updating the first Bluetooth address information according to the second Bluetooth address information so that the first Bluetooth address information is the same as the second Bluetooth address information.
In some embodiments, the comparing result includes that the bluetooth addresses are the same, and the obtaining the test mode information according to the comparing result includes:
if the comparison result is that the Bluetooth addresses are the same, obtaining test mode information as a user function test mode;
correspondingly, the testing the bluetooth device according to the test mode information includes:
and the Bluetooth equipment enters the user function test mode to perform user function test.
In some embodiments, prior to retrieving the first bluetooth address information stored in the address backup area of the memory, the method further comprises:
acquiring a firmware program of the Bluetooth equipment;
and burning the firmware program into a program storage area of the memory.
In some embodiments, the method further comprises:
detecting whether the items to be tested are completely finished or not to obtain a detection result;
and exiting the test according to the detection result.
In order to achieve the above object, a second aspect of the present disclosure provides a bluetooth device testing apparatus, including:
the first Bluetooth address acquisition module is used for acquiring first Bluetooth address information stored in an address backup area of the memory;
the second Bluetooth address acquisition module is used for acquiring second Bluetooth address information stored in an address storage area of the memory;
the address comparison module is used for comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result;
the test pattern generation module is used for obtaining test pattern information according to the comparison result;
and the test module is used for testing the Bluetooth equipment according to the test mode information.
To achieve the above object, a third aspect of the present disclosure provides an electronic device, including:
at least one memory;
at least one processor;
at least one program;
the program is stored in a memory and a processor executes the at least one program to implement the method of the present disclosure as described in the above first aspect.
To achieve the above object, a fourth aspect of the present disclosure proposes a storage medium that is a computer-readable storage medium storing computer-executable instructions for causing a computer to perform:
a method as described in the first aspect above.
The method and apparatus for testing Bluetooth device, electronic device, and storage medium provided by the embodiments of the present disclosure first obtain first Bluetooth address information stored in an address backup area of a memory, and obtain second Bluetooth address information stored in an address storage area of the memory, then comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result, further obtaining the test mode information according to the comparison result, finally testing the Bluetooth device according to the test mode information, the technical scheme provided by the embodiment of the disclosure can reduce the cost of the test and the man-hour of the test, the efficiency of the test is improved, has avoidd the risk that gets into the test mode because of user's maloperation, can also satisfy the demand of carrying out the production test again to the maintenance machine, can be convenient, high-efficient, safe and stable get into and withdraw from the production test mode.
Drawings
Fig. 1 is a flowchart of a bluetooth device testing method according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of step S110 in fig. 1.
Fig. 3 is a flowchart of step S140 in fig. 1.
Fig. 4 is a flowchart of step S140 provided in another embodiment in fig. 1.
Fig. 5 is a partial flowchart of a bluetooth device testing method according to another embodiment of the present disclosure.
Fig. 6 is a partial flowchart of a bluetooth device testing method according to another embodiment of the present disclosure.
Fig. 7 is a partial flowchart of a bluetooth device testing method according to another embodiment of the present disclosure.
Fig. 8 is a block diagram of a bluetooth device testing apparatus according to an embodiment of the present disclosure.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present disclosure.
Reference numerals: the device comprises a first Bluetooth address acquisition module 810, a second Bluetooth address acquisition module 820, an address comparison module 830, a test pattern generation module 840, a test module 850, a processor 901, a memory 902, an input/output interface 903, a communication interface 904 and a bus 905.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail 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.
It should be noted that although functional blocks are partitioned in a schematic diagram of an apparatus and a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the partitioning of blocks in the apparatus or the order in the flowchart. The terms first, second and the like in the description and in the claims, and the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
In the production process of electronic products such as bluetooth equipment, in order to ensure the high quality and the uniformity of products, the test of each item function and index needs to be carried out to the products, before carrying out the production test, the test mode of electronic products needs to be set up to open test process, and the current test mode activation and exit mode includes: (1) activating a test mode through a preset key combination or an operation combination, and exiting the test mode through the preset key combination or the operation combination under the test mode; (2) the test mode is activated by a USB or UART command and exits in the test mode by a USB or UART command.
The cost of entering the test mode by the current test mode activation and exit mode is high, and the operation is performed by one station, namely the problems of high cost and long working hour exist, so that the test efficiency of the Bluetooth equipment is low; the mode also has the risk that the user mistakenly operates to enter the test mode; in addition, because production testing does not need to be performed again after production is generally completed, the current approach is generally set up as: it cannot be re-entered after exiting the test mode, and therefore, when a maintenance machine needs to re-perform the production test, the current method will not be applicable.
In order to achieve high production efficiency and product safety, it is now necessary to implement a test mode entry scheme that satisfies the following requirements: (1) the method for entering the production test mode is simple and quick; (2) the user can not mistakenly operate to enter the test mode; (3) the maintenance machine after exiting the test mode may enter the test mode again.
Based on this, the embodiment of the disclosure provides a bluetooth device testing method and apparatus, an electronic device, and a storage medium, where a first bluetooth address information stored in an address backup area of a memory is first obtained, a second bluetooth address information stored in an address storage area of the memory is obtained, the first bluetooth address information and the second bluetooth address information are then compared to obtain a comparison result, and further a test pattern information is obtained according to the comparison result, and finally the bluetooth device is tested according to the test pattern information, so that the testing cost can be reduced, the testing time can be reduced, the testing efficiency can be improved, the risk of entering a test pattern due to misoperation of a user can be avoided, the requirement of performing a production test on a maintenance machine again can be met, and the production test pattern can be conveniently, efficiently, safely, and stably entered and exited.
The embodiment of the disclosure provides a bluetooth device testing method, which skillfully utilizes the characteristic that each bluetooth audio product needs to be written with a unique bluetooth address when firmware is burned into the bluetooth audio product, and performs backup storage on the bluetooth address.
The embodiments of the present disclosure provide a method and an apparatus for testing a bluetooth device, an electronic device, and a storage medium, which are specifically described with reference to the following embodiments, first, a method for testing a bluetooth device in an embodiment of the present disclosure is described.
The embodiment of the disclosure provides a Bluetooth device testing method, relates to the technical field of product testing, and particularly relates to the technical field of data mining. The Bluetooth equipment testing method provided by the embodiment of the disclosure can be applied to a terminal, a server side and software running in the terminal or the server side. In some embodiments, the terminal may be a smartphone, tablet, laptop, desktop computer, smart watch, or the like; the server can be an independent server, and can also be a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, Content Delivery Network (CDN), big data and artificial intelligence platform and the like; the software may be an application or the like implementing the bluetooth device test method, but is not limited to the above form.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiment of the disclosure provides a method for testing a bluetooth device, which includes: acquiring first Bluetooth address information stored in an address backup area of a memory; acquiring second Bluetooth address information stored in an address storage area of the memory; comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result; obtaining test mode information according to the comparison result; and testing the Bluetooth equipment according to the test mode information.
Fig. 1 is an optional flowchart of a bluetooth device testing method provided in an embodiment of the present disclosure, where the method in fig. 1 may include, but is not limited to, step S110 to step S150, and specifically includes:
s110, acquiring first Bluetooth address information stored in an address backup area of a memory;
s120, acquiring second Bluetooth address information stored in an address storage area of the memory;
s130, comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result;
s140, obtaining test mode information according to the comparison result;
and S150, testing the Bluetooth equipment according to the test mode information.
It should be noted that the memory is a storage device carried by or connected to the bluetooth device to be tested, including but not limited to a FLASH memory, etc., and the memory space partition of the memory includes but not limited to an address backup area, an address storage area, a program storage area, etc., where the address backup area is used to store a backup bluetooth address; the address storage area is used for storing the written Bluetooth address; the program storage area is used for storing a firmware program.
In step S110, the first bluetooth address information is a backup bluetooth address, and in a production process of the bluetooth devices, a bluetooth address needs to be allocated and written to each bluetooth device to cover an existing bluetooth address in the bluetooth device, so that before the writing operation, the existing bluetooth address in the bluetooth device needs to be backed up as the first bluetooth address information in an address backup area of the memory, and when a test needs to be performed by using the backed-up bluetooth address, the first bluetooth address information is directly taken out from the address backup area for use.
In step S120, the second bluetooth address information is a written bluetooth address, that is, a bluetooth address allocated and written by the system for the bluetooth device in the production process, and the second bluetooth address information is stored in the address storage area of the memory, and when a test needs to be performed by using the written bluetooth address, the second bluetooth address information is directly taken out from the address storage area for use.
In step S130, after the first bluetooth address information and the second bluetooth address information are read, the two addresses are compared, and whether the two addresses are the same is determined, so as to obtain a comparison result, where the comparison result includes that the bluetooth addresses are different and the bluetooth addresses are the same.
In steps S140 to S150, the test mode information includes, but is not limited to, a production test mode and a user function test mode, the corresponding test mode is activated according to different comparison results, and the test process is implemented according to different test modes.
The method and apparatus for testing Bluetooth device, electronic device, and storage medium provided by the embodiments of the present disclosure first obtain first Bluetooth address information stored in an address backup area of a memory, and obtain second Bluetooth address information stored in an address storage area of the memory, then comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result, further obtaining the test mode information according to the comparison result, finally testing the Bluetooth device according to the test mode information, the technical scheme provided by the embodiment of the disclosure can reduce the cost of the test and the man-hour of the test, the efficiency of the test is improved, has avoidd the risk that gets into the test mode because of user's maloperation, can also satisfy the demand of carrying out the production test again to the maintenance machine, can be convenient, high-efficient, safe and stable get into and withdraw from the production test mode.
In some embodiments, obtaining first bluetooth address information stored in an address backup area of a memory comprises: reading initial Bluetooth address information stored in an address storage area of a memory; and storing the initial Bluetooth address information as first Bluetooth address information in an address backup area of the memory.
Fig. 2 is a flow chart of step S110 in some embodiments, and step S110 illustrated in fig. 2 includes, but is not limited to, steps S210 to S220:
s210, reading initial Bluetooth address information stored in an address storage area of a memory;
and S220, storing the initial Bluetooth address information as first Bluetooth address information in an address backup area of a memory.
In step S210, in the production process of the bluetooth device, a bluetooth address needs to be allocated and written to each bluetooth device to cover the existing bluetooth address in the bluetooth device, so before the write operation, the existing bluetooth address in the bluetooth device needs to be read first, and the existing bluetooth address in the bluetooth device is the initial bluetooth address information.
In step S220, after the initial bluetooth address information is read, the initial bluetooth address information is backed up as the first bluetooth address information in the address backup area of the memory, and when a test needs to be performed using the backed-up bluetooth address, the initial bluetooth address information is directly taken out from the address backup area for use.
In some embodiments, the comparison result includes that the bluetooth addresses are different, and the test pattern information is obtained according to the comparison result, including: if the comparison result shows that the Bluetooth addresses are different, the test mode information is a production test mode; correspondingly, the bluetooth device is tested according to the test mode information, including: the bluetooth device enters a production test mode to perform a production test. In some embodiments, after the bluetooth device enters the production test mode for the production test, the method further comprises: and updating the first Bluetooth address information according to the second Bluetooth address information so that the first Bluetooth address information is the same as the second Bluetooth address information.
Fig. 3 is a flowchart of step S140 in some embodiments, and step S140 illustrated in fig. 3 includes, but is not limited to, step S310 to step S320:
s310, if the comparison result shows that the Bluetooth addresses are different, the test mode information is a production test mode;
s320, the Bluetooth equipment enters a production test mode to carry out production test;
s330, updating the first Bluetooth address information according to the second Bluetooth address information so that the first Bluetooth address information is the same as the second Bluetooth address information.
In step S310, when the first bluetooth address information is different from the second bluetooth address information, it indicates that the bluetooth address of the bluetooth device has not been written, and further indicates that the bluetooth device has not performed the production test, so that the test mode is activated as the production test mode.
Correspondingly, in step S410, when the first bluetooth address information is the same as the second bluetooth address information, it indicates that the bluetooth address of the bluetooth device has been written, and further indicates that the bluetooth device has performed the production test, and therefore, the test mode is activated as the user function test mode.
In step S320, the production test is a test of the production process to ensure a test of the basic function of the product; correspondingly, the user function test in step S420 is a test of other functions of the product after the production is completed.
In step S330, after the production test is completed, the second bluetooth address information is written into the address storage area of the memory to overwrite the first bluetooth address information originally stored therein, indicating that the bluetooth device has completed the production test.
In some embodiments, the comparison result includes that the bluetooth addresses are the same, and the test pattern information is obtained according to the comparison result, including: if the comparison result is that the Bluetooth addresses are the same, the obtained test mode information is a user function test mode; correspondingly, the bluetooth device is tested according to the test mode information, including: the bluetooth device enters a user function test mode to perform a user function test.
Fig. 4 is a flowchart of step S140 in other embodiments, and step S140 illustrated in fig. 4 includes, but is not limited to, step S410 to step S420:
s410, if the comparison result is that the Bluetooth addresses are the same, the obtained test mode information is a user function test mode;
and S420, the Bluetooth device enters a user function test mode to perform user function test.
In step S410, when the first bluetooth address information is the same as the second bluetooth address information, it indicates that the bluetooth address of the bluetooth device has been written, and further indicates that the bluetooth device has performed the production test, and therefore, the test mode is activated as the user function test mode.
Correspondingly, in step S310, when the first bluetooth address information is different from the second bluetooth address information, it indicates that the bluetooth address of the bluetooth device has not been written, and further indicates that the bluetooth device has not performed the production test, so that the active test mode is the production test mode.
In step S420, the user function test is a test of other functions of the product after the production is completed, and correspondingly, the production test in step S320 is a test of the production process, which ensures a test of basic functions of the product.
In some embodiments, prior to obtaining the first bluetooth address information stored in the address backup area of the memory, the method further comprises: acquiring a firmware program of the Bluetooth device; and burning the firmware program into a program storage area of the memory.
As shown in fig. 5, fig. 5 is a flowchart of a bluetooth device testing method according to another embodiment, where the bluetooth device testing method further includes:
s510, acquiring a firmware program of the Bluetooth device;
s520, burning the firmware program into the program storage area of the memory.
In step S510, the firmware program is a program written in an EPROM (erasable programmable read only memory) or an EEPROM (electrically erasable programmable read only memory), and is software that serves as the most basic bottom layer of the system.
In step S520, before the first bluetooth address information and the second bluetooth address information are obtained, the firmware program needs to be burned into the bluetooth device, which is also a necessary step in the production process, so as to perform the subsequent production test process.
In some embodiments, the method further comprises: detecting whether the items to be tested are completely finished or not to obtain a detection result; and exiting the test according to the detection result.
As shown in fig. 6, fig. 6 is a flowchart of a bluetooth device testing method according to still other embodiments, where the bluetooth device testing method further includes:
s610, detecting whether all items to be tested are finished so as to obtain a detection result;
and S620, exiting the test according to the detection result.
In steps S610 to S620, no matter the production test or the user function test is performed, at least one test item is set, and when the detection result is that all the tests of the test items are completed, the system exits from the corresponding test process, thereby implementing exit from the test mode. For example, after the test mode is activated, the system will stay in the test mode for a steady and long time until a particular operation is performed.
Specifically, back
Referring to fig. 7, the bluetooth device test method is described in detail in a specific embodiment. It is to be understood that the following description is illustrative only and is not intended to be in any way limiting.
As shown in fig. 7, fig. 7 is a flowchart of a bluetooth device testing method according to another embodiment, where the bluetooth device testing method further includes:
s710, reading out the current Bluetooth address, backing up and storing the current Bluetooth address in a backup area of the FLASH;
s720, producing burning firmware, modifying a Bluetooth address and starting up the computer;
and S730, after the starting is successful, immediately reading the Bluetooth address and the backup address for comparison, if the Bluetooth address and the backup address are the same, entering a user function mode, and if the Bluetooth address and the backup address are different, entering a production test mode.
In a specific embodiment, because the finished product machine has no possibility of modifying the Bluetooth address at the user end, the user is ensured not to enter the test mode by misoperation, the Bluetooth equipment test provided by the embodiment can save production man-hour when the Bluetooth audio product is produced and enters the test mode, and the possibility that the user enters the test mode by misoperation can be ensured in a mechanism.
The embodiment of the present disclosure provides a bluetooth device testing apparatus, including: the first Bluetooth address acquisition module is used for acquiring first Bluetooth address information stored in an address backup area of the memory; the second Bluetooth address acquisition module is used for acquiring second Bluetooth address information stored in an address storage area of the memory; the address comparison module is used for comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result; the test pattern generation module is used for obtaining test pattern information according to the comparison result; and the test module is used for testing the Bluetooth equipment according to the test mode information.
Referring to fig. 8, fig. 8 illustrates a bluetooth device testing apparatus according to an embodiment, where the bluetooth device testing apparatus includes: the device comprises a first Bluetooth address acquisition module 810, a second Bluetooth address acquisition module 820, an address comparison module 830, a test pattern generation module 840 and a test module 850, wherein the first Bluetooth address acquisition module 810 is connected with the second Bluetooth address acquisition module 820, the second Bluetooth address acquisition module 820 is connected with the address comparison module 830, the address comparison module 830 is connected with the test pattern generation module 840, and the test pattern generation module 840 is connected with the test module 850.
Specifically, the first bluetooth address obtaining module 810 is configured to obtain first bluetooth address information stored in an address backup area of the memory; the second bluetooth address obtaining module 820 is configured to obtain second bluetooth address information stored in the address storage area of the memory; the address comparison module 830 is configured to compare the first bluetooth address information with the second bluetooth address information to obtain a comparison result; the test pattern generation module 840 is used for obtaining test pattern information according to the comparison result; the test module 850 is used for testing the bluetooth device according to the test mode information.
The specific implementation of the testing apparatus for bluetooth devices of this embodiment is substantially the same as the specific implementation of the testing method for bluetooth devices described above, and belongs to the same inventive concept, and is not described herein again. An embodiment of the present disclosure further provides an electronic device, including:
at least one memory;
at least one processor;
at least one program;
the programs are stored in a memory and a processor executes the at least one program to implement the present disclosure to implement the bluetooth device testing methods described above. The electronic device can be any intelligent terminal including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA for short), a vehicle-mounted computer and the like.
Referring to fig. 9, fig. 9 illustrates a hardware structure of an electronic device according to another embodiment, where the electronic device includes:
the processor 901 may be implemented by a general-purpose CPU (central processing unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute a relevant program to implement the technical solution provided by the embodiment of the present disclosure;
the memory 902 may be implemented in a form of a ROM (read only memory), a static storage device, a dynamic storage device, or a RAM (random access memory). The memory 902 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 902 and called by the processor 901 to execute the bluetooth device testing method according to the embodiments of the present disclosure;
an input/output interface 903 for implementing information input and output;
a communication interface 904, configured to implement communication interaction between the device and another device, where communication may be implemented in a wired manner (e.g., USB, network cable, etc.), or in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.); and
a bus 905 that transfers information between various components of the device (e.g., the processor 901, the memory 902, the input/output interface 903, and the communication interface 904);
wherein the processor 901, the memory 902, the input/output interface 903 and the communication interface 904 enable a communication connection within the device with each other through a bus 905.
The embodiment of the disclosure also provides a storage medium, which is a computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used for causing a computer to execute the bluetooth device testing method.
The Bluetooth device testing method and device, the electronic device and the storage medium provided by the embodiment of the disclosure are characterized in that first Bluetooth address information stored in an address backup area of a memory is obtained, second Bluetooth address information stored in an address storage area of the memory is obtained, the first Bluetooth address information and the second Bluetooth address information are compared to obtain a comparison result, test mode information is obtained according to the comparison result, and finally the Bluetooth device is tested according to the test mode information.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiments described in the embodiments of the present disclosure are for more clearly illustrating the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation to the technical solutions provided in the embodiments of the present disclosure, and it is obvious to those skilled in the art that the technical solutions provided in the embodiments of the present disclosure are also applicable to similar technical problems with the evolution of technology and the emergence of new application scenarios.
It will be appreciated by those skilled in the art that the solutions shown in fig. 1-6 are not limiting of the embodiments of the present disclosure, and may include more or fewer steps than those shown, or some of the steps may be combined, or different steps.
The above described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The preferred embodiments of the present disclosure have been described above with reference to the accompanying drawings, and therefore do not limit the scope of the claims of the embodiments of the present disclosure. Any modifications, equivalents and improvements within the scope and spirit of the embodiments of the present disclosure should be considered within the scope of the claims of the embodiments of the present disclosure by those skilled in the art.

Claims (10)

1. A Bluetooth device testing method, comprising:
acquiring first Bluetooth address information stored in an address backup area of a memory;
acquiring second Bluetooth address information stored in an address storage area of the memory;
comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result;
obtaining test mode information according to the comparison result;
and testing the Bluetooth equipment according to the test mode information.
2. The method of claim 1, wherein the obtaining the first bluetooth address information stored in the address backup area of the memory comprises:
reading initial Bluetooth address information stored in the address storage area of the memory;
and storing the initial Bluetooth address information as the first Bluetooth address information in the address backup area of the memory.
3. The method of claim 1, wherein the comparison result comprises a difference in bluetooth addresses, and wherein obtaining test pattern information according to the comparison result comprises:
if the comparison result shows that the Bluetooth addresses are different, the test mode information is a production test mode;
correspondingly, the testing the bluetooth device according to the test mode information includes:
and the Bluetooth device enters the production test mode to perform production test.
4. The method of claim 3, wherein after the Bluetooth device enters the production test mode for production testing, the method further comprises:
and updating the first Bluetooth address information according to the second Bluetooth address information so that the first Bluetooth address information is the same as the second Bluetooth address information.
5. The method of claim 1, wherein the comparison result comprises that the bluetooth addresses are the same, and the obtaining the test pattern information according to the comparison result comprises:
if the comparison result is that the Bluetooth addresses are the same, obtaining test mode information as a user function test mode;
correspondingly, the testing the bluetooth device according to the test mode information includes:
and the Bluetooth equipment enters the user function test mode to perform user function test.
6. The method of any of claims 1 to 5, wherein prior to obtaining the first Bluetooth address information stored in the address backup area of the memory, the method further comprises:
acquiring a firmware program of the Bluetooth equipment;
and burning the firmware program into a program storage area of the memory.
7. The method according to any one of claims 1 to 5, further comprising:
detecting whether the items to be tested are completely finished or not to obtain a detection result;
and exiting the test according to the detection result.
8. A Bluetooth device testing apparatus, comprising:
the first Bluetooth address acquisition module is used for acquiring first Bluetooth address information stored in an address backup area of the memory;
the second Bluetooth address acquisition module is used for acquiring second Bluetooth address information stored in an address storage area of the memory;
the address comparison module is used for comparing the first Bluetooth address information with the second Bluetooth address information to obtain a comparison result;
the test pattern generation module is used for obtaining test pattern information according to the comparison result;
and the test module is used for testing the Bluetooth equipment according to the test mode information.
9. An electronic device, comprising:
at least one memory;
at least one processor;
at least one program;
the programs are stored in a memory, and a processor executes the at least one program to implement:
the method of any one of claims 1 to 7.
10. A storage medium that is a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform:
the method of any one of claims 1 to 7.
CN202210160971.7A 2022-02-22 2022-02-22 Bluetooth device testing method and device, electronic device and storage medium Active CN114553328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210160971.7A CN114553328B (en) 2022-02-22 2022-02-22 Bluetooth device testing method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210160971.7A CN114553328B (en) 2022-02-22 2022-02-22 Bluetooth device testing method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN114553328A true CN114553328A (en) 2022-05-27
CN114553328B CN114553328B (en) 2023-10-20

Family

ID=81677944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210160971.7A Active CN114553328B (en) 2022-02-22 2022-02-22 Bluetooth device testing method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114553328B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100062711A1 (en) * 2008-09-08 2010-03-11 Sang Wook Park Bluetooth device and method of searching for peripheral bluetooth device
CN104579506A (en) * 2014-12-31 2015-04-29 福建联迪商用设备有限公司 Bluetooth equipment testing method and device
CN105577293A (en) * 2014-10-13 2016-05-11 炬芯(珠海)科技有限公司 Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system
US20170115919A1 (en) * 2015-10-22 2017-04-27 American Megatrends, Inc. Memory channel storage device detection
CN107665169A (en) * 2016-07-29 2018-02-06 龙芯中科技术有限公司 The method of testing and device of processor program
CN107980233A (en) * 2017-03-06 2018-05-01 深圳大趋智能科技有限公司 Automatic test approach, the apparatus and system of Bluetooth POS terminal
CN108898691A (en) * 2018-07-06 2018-11-27 曾云辉 System and method of registering based on bluetooth and NB-IOT
US20190018061A1 (en) * 2017-07-14 2019-01-17 International Business Machines Corporation Ate compatible high-efficient functional test
CN110418358A (en) * 2019-07-10 2019-11-05 珠海荣邦智能科技有限公司 The bluetooth test method and device of circuit board
CN111083802A (en) * 2018-10-22 2020-04-28 三星电子株式会社 Electronic device using bluetooth communication and method of operating the same
WO2020124920A1 (en) * 2018-12-20 2020-06-25 深圳市冠旭电子股份有限公司 Voice interaction method and bluetooth device
CN111752579A (en) * 2019-10-17 2020-10-09 北京沃东天骏信息技术有限公司 Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN112261635A (en) * 2020-10-21 2021-01-22 上海闻泰信息技术有限公司 Bluetooth test method, device, electronic equipment and computer readable storage medium
CN112312434A (en) * 2020-10-26 2021-02-02 上海闻泰信息技术有限公司 Bluetooth function testing method and device, electronic equipment and storage medium
CN113490192A (en) * 2021-07-26 2021-10-08 深圳市元征未来汽车技术有限公司 Bluetooth connection method, device, terminal equipment and readable storage medium
CN113886164A (en) * 2021-11-08 2022-01-04 广东乐心医疗电子股份有限公司 Bluetooth product testing method and device and electronic equipment

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100062711A1 (en) * 2008-09-08 2010-03-11 Sang Wook Park Bluetooth device and method of searching for peripheral bluetooth device
CN105577293A (en) * 2014-10-13 2016-05-11 炬芯(珠海)科技有限公司 Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system
CN104579506A (en) * 2014-12-31 2015-04-29 福建联迪商用设备有限公司 Bluetooth equipment testing method and device
US20170115919A1 (en) * 2015-10-22 2017-04-27 American Megatrends, Inc. Memory channel storage device detection
CN107665169A (en) * 2016-07-29 2018-02-06 龙芯中科技术有限公司 The method of testing and device of processor program
CN107980233A (en) * 2017-03-06 2018-05-01 深圳大趋智能科技有限公司 Automatic test approach, the apparatus and system of Bluetooth POS terminal
US20190018061A1 (en) * 2017-07-14 2019-01-17 International Business Machines Corporation Ate compatible high-efficient functional test
CN108898691A (en) * 2018-07-06 2018-11-27 曾云辉 System and method of registering based on bluetooth and NB-IOT
CN111083802A (en) * 2018-10-22 2020-04-28 三星电子株式会社 Electronic device using bluetooth communication and method of operating the same
WO2020124920A1 (en) * 2018-12-20 2020-06-25 深圳市冠旭电子股份有限公司 Voice interaction method and bluetooth device
CN110418358A (en) * 2019-07-10 2019-11-05 珠海荣邦智能科技有限公司 The bluetooth test method and device of circuit board
CN111752579A (en) * 2019-10-17 2020-10-09 北京沃东天骏信息技术有限公司 Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN112261635A (en) * 2020-10-21 2021-01-22 上海闻泰信息技术有限公司 Bluetooth test method, device, electronic equipment and computer readable storage medium
CN112312434A (en) * 2020-10-26 2021-02-02 上海闻泰信息技术有限公司 Bluetooth function testing method and device, electronic equipment and storage medium
CN113490192A (en) * 2021-07-26 2021-10-08 深圳市元征未来汽车技术有限公司 Bluetooth connection method, device, terminal equipment and readable storage medium
CN113886164A (en) * 2021-11-08 2022-01-04 广东乐心医疗电子股份有限公司 Bluetooth product testing method and device and electronic equipment

Also Published As

Publication number Publication date
CN114553328B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN106648994B (en) Method, equipment and system for backing up operation log
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN105205174A (en) File processing method and device for distributed system
CN102043645B (en) Plug-in loading method and device
CN104021218A (en) Information display method and device
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN111930695B (en) Method and device for storing running logs of microprocessor of vehicle-mounted terminal
CN112612853A (en) Data processing method and device based on database cluster and electronic equipment
CN110652728A (en) Game resource management method and device, electronic equipment and storage medium
CN114553328A (en) Bluetooth device testing method and device, electronic device and storage medium
CN114756261B (en) Container cluster upgrading method and system, electronic equipment and medium
CN115437847A (en) Data backup method and device, electronic equipment and storage medium
CN113961857A (en) Shuttle frame data loading method and device and electronic equipment
CN111950679A (en) Electronic tag display method and device and computer readable storage medium
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN115220803A (en) Data processing method and equipment
CN113031748A (en) Display method and device based on dynamic word stock, storage medium and electronic equipment
CN111050311A (en) Data management method, device, storage medium and terminal
CN110572310A (en) Address book-based driving test route sharing method, terminal and storage medium
CN110647331A (en) Development tool acquisition method and device, storage medium and electronic equipment
CN111930391A (en) Application data processing method and device, server and user terminal
CN112995066B (en) Frame data processing method and device, electronic equipment and storage medium
CN114422991A (en) Bluetooth headset information display method and device, electronic equipment and storage medium
CN104598258B (en) Application software starting method and device
CN115048398A (en) Data backspacing settlement method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant