CN114553328B - 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
CN114553328B
CN114553328B CN202210160971.7A CN202210160971A CN114553328B CN 114553328 B CN114553328 B CN 114553328B CN 202210160971 A CN202210160971 A CN 202210160971A CN 114553328 B CN114553328 B CN 114553328B
Authority
CN
China
Prior art keywords
bluetooth
test mode
address information
memory
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210160971.7A
Other languages
Chinese (zh)
Other versions
CN114553328A (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

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B5/70
    • 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

Abstract

The embodiment of the disclosure provides a Bluetooth device testing method and device, electronic equipment and storage medium, and relates to the technical field of product testing. The Bluetooth equipment 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 a 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; according to the technical scheme provided by the embodiment of the disclosure, the Bluetooth equipment is tested according to the test mode information, and the test efficiency of the Bluetooth equipment can be improved.

Description

Bluetooth device testing method and device, electronic device and storage medium
Technical Field
The present application relates to the field of product testing technologies, and in particular, to a method and apparatus for testing bluetooth devices, an electronic device, and a storage medium.
Background
In the production process of electronic products such as Bluetooth equipment, in order to ensure the high quality and consistency of the products, various functions and indexes of the products need to be tested, before the production test is performed, a test mode of the electronic products needs to be set so as to start the test process, and the current test mode activation and exit modes comprise: (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 through the USB or UART instruction, and the test mode is exited through the USB or UART instruction in the test mode.
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 lower.
Disclosure of Invention
The main purpose of the disclosed embodiments is to provide a bluetooth device testing method and device, an electronic device, and a storage medium, which can improve the testing efficiency of bluetooth devices.
To achieve the above object, a first aspect of an embodiment 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 acquiring 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;
and 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 bluetooth addresses are different, and the obtaining test mode information according to the comparing result includes:
if the comparison result is 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 comprises the following steps:
the Bluetooth device enters the production test mode to conduct production tests.
In some embodiments, after the bluetooth device enters the production test mode to conduct a 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 identical to the second Bluetooth address information.
In some embodiments, the comparing result includes that bluetooth addresses are the same, and the obtaining 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 comprises the following steps:
and the Bluetooth equipment enters the user function test mode to perform user function test.
In some embodiments, before 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 all the items to be tested are completed or not so as to obtain a detection result;
and according to the detection result, the test is exited.
To achieve the above object, a second aspect of the present disclosure proposes 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 mode generation module is used for obtaining test mode 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 proposes an electronic device including:
at least one memory;
at least one processor;
at least one program;
the program is stored in a memory and the processor executes the at least one program to implement the method of the present disclosure as described in the first aspect above.
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 execute:
the method as described in the first aspect above.
According to the Bluetooth equipment testing method and device, the electronic equipment and the storage medium, the first Bluetooth address information stored in the address backup area of the memory is firstly obtained, the second Bluetooth address information stored in the address storage area of the memory is obtained, then the first Bluetooth address information and the second Bluetooth address information are compared and processed to obtain a comparison result, and further the testing mode information is obtained according to the comparison result.
Drawings
Fig. 1 is a flowchart of a bluetooth device testing method provided in 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 yet 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 provided in an embodiment of the present disclosure.
Fig. 9 is a schematic hardware structure of an electronic device according to an embodiment of the disclosure.
Reference numerals: the first bluetooth address acquisition module 810, the second bluetooth address acquisition module 820, the address comparison module 830, the test pattern generation module 840, the test module 850, the processor 901, the memory 902, the input/output interface 903, the communication interface 904, the bus 905.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that although functional block division is performed in a device diagram and a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, 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 application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
In the production process of electronic products such as Bluetooth equipment, in order to ensure the high quality and consistency of the products, various functions and indexes of the products need to be tested, before the production test is performed, a test mode of the electronic products needs to be set so as to start the test process, and the current test mode activation and exit modes comprise: (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 through the USB or UART instruction, and the test mode is exited through the USB or UART instruction in the test mode.
The current test mode activation and exit mode has higher cost for entering the test mode, and one station is needed for operation, namely the problems of high cost and long working time exist, so that the test efficiency of the Bluetooth equipment is lower; the mode also has the risk of misoperation of a user to enter a test mode; in addition, since there is no need to perform production test again after the general production is completed, the current manner is generally set as: cannot be entered again after exiting the test mode, and therefore, current methods would not be applicable when a maintenance machine needs to re-conduct production tests.
For high efficiency of production and product safety, it is now necessary to implement a test mode entry way that meets the following requirements: the method for entering the production test mode is simple and quick; (2) the user does not enter the test mode by misoperation; (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, by first acquiring first bluetooth address information stored in an address backup area of a memory, and acquiring second bluetooth address information stored in an address storage area of the memory, then comparing the first bluetooth address information and the second bluetooth address information to obtain a comparison result, further obtaining test mode information according to the comparison result, and finally testing the bluetooth device according to the test mode information, the cost of testing can be reduced, the man-hour of testing can be reduced, the efficiency of testing can be improved, the risk of entering a test mode due to misoperation of a user can be avoided, the requirement of re-performing production test on a maintenance machine can be met, and the bluetooth device can enter and exit the production test mode conveniently, efficiently, safely and stably.
The embodiment of the disclosure provides a bluetooth device testing method, which skillfully uses the characteristic that each bluetooth audio product needs to write in a unique bluetooth address when the bluetooth audio product burns firmware, and performs backup storage on the bluetooth address, and in the production process, if the bluetooth address is modified after a mirror image file is burned, the bluetooth is started and then is checked that the address is different from the backup address, then a production testing mode is automatically activated, and the current bluetooth address is used for covering the backup bluetooth address.
The embodiment of the disclosure provides a Bluetooth device testing method and device, an electronic device and a storage medium, and specifically, the following embodiment is used for explaining, and first describes the Bluetooth device testing method in the embodiment of the disclosure.
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 and software running in the terminal or the server. In some embodiments, the terminal may be a smart phone, tablet, notebook, desktop, or smart watch, etc.; the server can be an independent server, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDNs), basic cloud computing services such as big data and artificial intelligent platforms, and the like; the software may be an application or the like that implements the bluetooth device testing method, but is not limited to the above form.
The application is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet 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 Bluetooth device testing method, which 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 a 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 according to an embodiment of the present disclosure, where the method in fig. 1 may include, but is not limited to, steps S110 to S150, specifically including:
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 a 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 a 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 storage 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 for storing the backed up bluetooth address; the address storage area is used for storing the written Bluetooth address; the program memory area is used for storing firmware programs.
In step S110, the first bluetooth address information is a backed-up bluetooth address, and in the production process of the bluetooth device, a bluetooth address needs to be allocated to each bluetooth device and written in to cover the bluetooth address existing in the bluetooth device, so before the writing operation, the bluetooth address existing in the bluetooth device needs to be backed up as the first bluetooth address information in the address backup area of the memory, and when the test is required to be performed by using the backed-up bluetooth address, the bluetooth address 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 to the bluetooth device by the system in the production process, and the second bluetooth address information is stored in an address storage area of the memory, and is directly taken out from the address storage area for use when the written bluetooth address is required to be used for testing.
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 identical 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 identical.
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, and the corresponding test mode is activated according to different comparison results, and the test process is implemented according to different test modes.
According to the Bluetooth equipment testing method and device, the electronic equipment and the storage medium, the first Bluetooth address information stored in the address backup area of the memory is firstly obtained, the second Bluetooth address information stored in the address storage area of the memory is obtained, then the first Bluetooth address information and the second Bluetooth address information are compared and processed to obtain a comparison result, and further the testing mode information is obtained according to the comparison result.
In some embodiments, obtaining the first bluetooth address information stored in the address backup area of the memory includes: reading initial Bluetooth address information stored in an address storage area of a memory; the initial bluetooth address information is stored as first bluetooth address information in an address backup area of the memory.
Fig. 2 is a flowchart of step S110 in some embodiments, step S110 illustrated in fig. 2 including, but 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 the memory.
In step S210, during the production process of the bluetooth device, a bluetooth address needs to be allocated and written into 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 out, 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 the test is required to be performed by 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 comparing results include bluetooth address differences, and obtaining the test mode information according to the comparing results includes: if the comparison result is 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, which comprises the following steps: the bluetooth device enters a production test mode to conduct production tests. In some embodiments, after the bluetooth device enters the production test mode to conduct 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 identical to the second Bluetooth address information.
Fig. 3 is a flowchart of step S140 in some embodiments, step S140 illustrated in fig. 3 including, but not limited to, steps S310-S320:
s310, if the comparison result is that the Bluetooth addresses are different, the test mode information is a production test mode;
s320, the Bluetooth device enters a production test mode to perform production test;
s330, updating the first Bluetooth address information according to the second Bluetooth address information so that the first Bluetooth address information is identical to the second Bluetooth address information.
In step S310, when the first bluetooth address information is different from the second bluetooth address information, it is indicated that the bluetooth address of the bluetooth device has not been written yet, and it is further indicated that the bluetooth device has not been subjected to the production test, and therefore, the activation test mode is the production test mode.
Correspondingly, in step S410, when the first bluetooth address information is the same as the second bluetooth address information, it is indicated that the bluetooth address of the bluetooth device has been written, and further it is indicated that the bluetooth device has been subjected to the production test, and thus the activation test mode is the user function test mode.
In step S320, the production test is a test of the production process, and the test of the basic function of the product is ensured; 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, and the first bluetooth address information originally stored therein is overwritten, which indicates that the bluetooth device has completed the production test.
In some embodiments, the comparing result includes that the bluetooth addresses are the same, and 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 Bluetooth device is tested according to the test mode information, which comprises the following steps: 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, steps S410 to S420:
s410, if the comparison result is that the Bluetooth addresses are the same, obtaining test mode information as a user function test mode;
s420, the Bluetooth device enters a user function test mode to conduct user function tests.
In step S410, when the first bluetooth address information is the same as the second bluetooth address information, it is indicated that the bluetooth address of the bluetooth device has been written, and further it is indicated that the bluetooth device has been subjected to the production test, and thus the activation test mode is the user function test mode.
Correspondingly, in step S310, when the first bluetooth address information is different from the second bluetooth address information, it is indicated that the bluetooth address of the bluetooth device has not been written yet, and it is further indicated that the bluetooth device has not been subjected to the production test, and therefore, the activation 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, so as to ensure the basic functions of the product.
In some embodiments, before 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; the firmware program is burned 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 a program storage area of the memory.
In step S510, the firmware program is written in EPROM (erasable programmable read only memory) or EEPROM (electrically erasable programmable read only memory), and is the software functioning as the bottommost layer of the system.
In step S520, before the first bluetooth address information and the second bluetooth address information are acquired, the firmware program needs to be burned into the bluetooth device, which is also a step necessary for the production process, so as to facilitate the subsequent production test process.
In some embodiments, the method further comprises: detecting whether all the items to be tested are completed or not so as to obtain a detection result; and (5) 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 the items to be tested are completed or not to obtain a detection result;
s620, exiting the test according to the detection result.
In steps S610 to S620, no matter the production test or the user function test, at least one test item is set respectively, and when the detection result is that all the tests of the test items are completed, the system exits the corresponding test process, thereby realizing the exit of the test mode. For example, after activating the test mode, the system will remain in the test mode for a steady, long period of time until a particular operation is exited.
Specifically, withdraw
The bluetooth device testing method is described in detail below in one specific embodiment with reference to fig. 7. It is to be understood that the following description is exemplary only and is not intended to limit the application to the details of construction and the arrangements of the components set forth herein.
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 and backing up and storing the current Bluetooth address in a backup area of FLASH;
s720, producing burning firmware, modifying a Bluetooth address, and starting up;
and S730, after the power-on is successful, the Bluetooth address is immediately read and compared with the backup address, if the Bluetooth address is the same, the user function mode is entered, and if the Bluetooth address is not the same, the production test mode is entered.
In a specific embodiment, since 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, and the bluetooth equipment test provided by the embodiment can save production time when the bluetooth audio product is produced to enter the test mode, and can mechanically ensure that the user has no possibility of entering the test mode by misoperation.
The embodiment of the disclosure provides a Bluetooth device testing device, which comprises: 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 mode generation module is used for obtaining test mode 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 acquisition module 810 is configured to acquire first bluetooth address information stored in an address backup area of the memory; the second bluetooth address acquisition module 820 is configured to acquire second bluetooth address information stored in an address storage area of the memory; the address comparing 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 configured to obtain test pattern information according to the comparison result; the test module 850 is configured to test the bluetooth device according to the test mode information.
The specific implementation manner of the bluetooth device testing apparatus in this embodiment is basically identical to the specific implementation manner of the bluetooth device testing method described above, and belongs to the same inventive concept, and will not be described herein again. The embodiment of the disclosure also provides an electronic device, including:
at least one memory;
at least one processor;
at least one program;
the program is stored in the memory, and the processor executes the at least one program to implement the bluetooth device testing method described above. The electronic equipment can be any intelligent terminal including a mobile phone, a tablet personal computer, a personal digital assistant (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, 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 (ApplicationSpecificIntegratedCircuit, ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical solutions provided by the embodiments of the present disclosure;
the memory 902 may be implemented in the 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 solutions provided in the embodiments of the present disclosure are implemented by software or firmware, relevant program codes are stored in the memory 902, and the processor 901 invokes a bluetooth device testing method for executing the embodiments of the present disclosure;
an input/output interface 903 for inputting and outputting information;
the communication interface 904 is configured to implement communication interaction between the device and other devices, and may implement communication in a wired manner (e.g. USB, network cable, etc.), or may implement communication in a wireless manner (e.g. mobile network, WIFI, bluetooth, etc.); and
a bus 905 that transfers information between the 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 are communicatively coupled to each other within the device via a bus 905.
The disclosed embodiments also provide a storage medium that is a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the above-described bluetooth device testing method.
According to the Bluetooth equipment testing method and device, the electronic equipment and the storage medium, the first Bluetooth address information stored in the address backup area of the memory is firstly obtained, the second Bluetooth address information stored in the address storage area of the memory is obtained, then the first Bluetooth address information and the second Bluetooth address information are compared to obtain a comparison result, and further the testing mode information is obtained according to the comparison result, finally the Bluetooth equipment is tested according to the testing mode information, so that the testing cost can be reduced, the testing man-hour is reduced, the testing efficiency is improved, the risk of entering the testing mode due to misoperation of a user is avoided, the requirement of re-carrying out production testing on a maintenance machine can be met, and the production testing mode can be conveniently, efficiently, safely and stably entered and exited.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable 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 describing the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure, and as those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are equally applicable to similar technical problems.
It will be appreciated by those skilled in the art that the solutions shown in fig. 1-6 are not limiting to the embodiments of the present disclosure, and may include more or fewer steps than shown, or certain steps may be combined, or different steps.
The above described apparatus embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those 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 in the above figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise 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 (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). 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 by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) 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: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing a program.
Preferred embodiments of the disclosed embodiments are described above with reference to the accompanying drawings, and thus do not limit the scope of the claims of the disclosed embodiments. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and spirit of the embodiments of the present disclosure shall fall within the scope of the claims of the embodiments of the present disclosure.

Claims (10)

1. A method for testing a bluetooth device, 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; when the comparison results are that the Bluetooth addresses are different, the test mode information is a production test mode, and when the comparison results are that the Bluetooth addresses are the same, the test mode information is a user function test mode;
and testing the Bluetooth equipment according to the test mode information.
2. The method of claim 1, further comprising, prior to the retrieving the first bluetooth address information stored in the address backup area of the memory:
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 according to claim 1, wherein when the comparison result is that the bluetooth addresses are different, the test mode information is a production test mode, and the bluetooth device is tested according to the test mode information, including:
the Bluetooth device enters the production test mode to conduct production tests.
4. The method of claim 3, wherein after the bluetooth device enters the production test mode to conduct a 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 identical to the second Bluetooth address information.
5. The method according to claim 1, wherein when the comparison result is that the bluetooth addresses are the same, the test mode information is a user function test mode, and the testing of 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 according to any one of claims 1 to 5, wherein 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.
7. The method according to any one of claims 1 to 5, further comprising:
detecting whether all the items to be tested are completed or not so as to obtain a detection result;
and according to the detection result, the test is exited.
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 mode generation module is used for obtaining test mode information according to the comparison result; when the comparison results are that the Bluetooth addresses are different, the test mode information is a production test mode, and when the comparison results are that the Bluetooth addresses are the same, the test mode information is a user function test mode;
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 program is stored in the memory, and the 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, wherein the computer-readable storage medium stores 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 CN114553328A (en) 2022-05-27
CN114553328B true 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 (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101500333B1 (en) * 2008-09-08 2015-03-09 삼성전자주식회사 Method and Apparatus for searching a Bluetooth communication device
US10203893B2 (en) * 2015-10-22 2019-02-12 American Megatrends, Inc. Memory channel storage device detection
US10768232B2 (en) * 2017-07-14 2020-09-08 International Business Machines Corporation ATE compatible high-efficient functional test

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
CN114553328A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN103309709A (en) Firmware upgrading method, device and communication equipment
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN102043645B (en) Plug-in loading method and device
CN111930695B (en) Method and device for storing running logs of microprocessor of vehicle-mounted terminal
CN111274512A (en) Page loading method, device and medium
CN112286723A (en) Computer room disaster recovery control method, terminal and storage medium
CN114553328B (en) Bluetooth device testing method and device, electronic device and storage medium
CN111158947A (en) Method for making pre-copy file, server and readable storage medium
CN116610336A (en) Firmware upgrading method, system, device and readable storage medium
CN114756261B (en) Container cluster upgrading method and system, electronic equipment and medium
CN115168840A (en) Fault injection method and device and computer readable storage medium
CN105512544B (en) A kind of method and device obtaining mobile terminal superuser right
CN111950679A (en) Electronic tag display method and device and computer readable storage medium
CN110543459A (en) Method, system, terminal and storage medium for acquiring file lock state under NFS
CN115102634B (en) Method and device for testing Bluetooth function of electric energy meter, equipment and storage medium
CN113220353B (en) Hard disk startup item sorting method, system, terminal and storage medium
CN114924703B (en) Resolution and refresh rate switching method, device and medium
CN112799883A (en) System restoration point management method and device and electronic equipment
CN107133552B (en) Fingerprint information backup method and device
CN104598258B (en) Application software starting method and device
CN115421783A (en) Log-based timing sequence diagram construction method and device and storage medium
CN115080314A (en) Server configuration information recovery method, system, device and storage medium
CN114117446A (en) BIOS (basic input output System) image file refreshing and checking method, device, terminal and storage medium
CN115061828A (en) Interaction method, interaction 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