CN115086855A - Test system, method and related device - Google Patents

Test system, method and related device Download PDF

Info

Publication number
CN115086855A
CN115086855A CN202210849994.9A CN202210849994A CN115086855A CN 115086855 A CN115086855 A CN 115086855A CN 202210849994 A CN202210849994 A CN 202210849994A CN 115086855 A CN115086855 A CN 115086855A
Authority
CN
China
Prior art keywords
bluetooth
tested
instruction
testing
bluetooth device
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
CN202210849994.9A
Other languages
Chinese (zh)
Other versions
CN115086855B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210849994.9A priority Critical patent/CN115086855B/en
Publication of CN115086855A publication Critical patent/CN115086855A/en
Application granted granted Critical
Publication of CN115086855B publication Critical patent/CN115086855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W68/00User notification, e.g. alerting and paging, for incoming communication, change of service or the like
    • H04W68/005Transmission of information for alerting of incoming communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A test system, method and relevant apparatus, relate to the technical field of communication, the system includes first test equipment and first bluetooth apparatus to be tested; the first test equipment is used for being in communication connection with the first Bluetooth equipment to be tested in a closed state in a paging scanning mode; the first test equipment is also used for sending a first instruction and a second instruction to the first Bluetooth equipment to be tested based on the communication connection, and the second instruction is used for indicating the first Bluetooth equipment to be tested to respond to the connection request of the first test equipment and not respond to the connection request of the equipment except the first test equipment; the first Bluetooth device to be tested is used for establishing Bluetooth connection with the first testing device based on the instruction; the first testing device is also used for sending a first testing instruction to the first Bluetooth device to be tested based on Bluetooth connection, and sending a third instruction to the first Bluetooth device to be tested after sending the preset duration of the first testing instruction. The power consumption of the bluetooth device can be reduced.

Description

Test system, method and related device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a test system, a test method and a related device.
Background
Bluetooth headsets are increasingly being used in people's lives, which may be, for example, True Wireless Stereo (TWS) headsets. In order to strictly control the quality of the Bluetooth headset, a production line test can be performed before the Bluetooth headset leaves a factory, and the production line test can comprise test stations such as an aging test, a function test, a current sound test and a temperature test.
Under the general condition, the test equipment can be connected with the Bluetooth headset through an adapter (dongle) in the production line test process, so that the Bluetooth headset is tested.
However, after the test is completed, the problem that the factory power of the bluetooth headset does not reach the standard easily occurs.
Disclosure of Invention
The embodiment of the application provides a test system, a test method and a related device, relates to the technical field of communication, and is beneficial to reducing the power consumption of Bluetooth equipment.
In a first aspect, an embodiment of the present application provides a test system, where the system includes a first test device and a first bluetooth device to be tested; the first test equipment is used for being in communication connection with the first Bluetooth equipment to be tested in the closed state of the paging scanning mode; the first testing equipment is also used for sending a first instruction and a second instruction to the first Bluetooth equipment to be tested based on the communication connection, wherein the first instruction is used for indicating the first Bluetooth equipment to be tested to start a paging scanning mode; the second instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the first testing device and not responding to the connection request of the devices except the first testing device; the first Bluetooth device to be tested is also used for establishing Bluetooth connection with the first testing device based on the first instruction and the second instruction; the first testing device is further used for sending a first testing instruction to the first Bluetooth device to be tested based on Bluetooth connection, and sending a third instruction to the first Bluetooth device to be tested after the preset duration of the first testing instruction is sent, wherein the third instruction is used for indicating the first Bluetooth device to be tested to close the paging scanning mode. Therefore, the first Bluetooth device to be tested starts the paging scanning mode when needing to be in Bluetooth connection with the first testing device, issues an instruction in a wired mode to enable the first Bluetooth device to be tested to be only in Bluetooth connection with the first testing device when the first testing device is tested, and closes the paging scanning mode after the first testing device is connected, so that the first Bluetooth device to be tested does not need to respond to Bluetooth connection requests of other testing devices except the first testing device, and power consumption of the Bluetooth device is effectively reduced.
In one possible implementation, the second instruction includes a physical address of the first test device.
In one possible implementation, the first instruction, the second instruction, and the third instruction are AT instructions.
In one possible implementation, the test system further includes a target device; the target equipment is used for setting the paging scanning mode of the first Bluetooth equipment to be tested to be in a closed state; wherein the steps performed by the target device are earlier than the steps performed by the first test device. Therefore, before the first Bluetooth device to be tested is in communication connection with the first testing device, the target device sets the paging scanning mode of the first Bluetooth device to be tested to be in a closed state, so that the first Bluetooth device to be tested does not respond to a connection request of any Bluetooth device before testing, and power consumption of the first Bluetooth device to be tested is effectively reduced.
In a possible implementation manner, the target device is specifically configured to send a fourth instruction to the first bluetooth device to be tested, where the fourth instruction is used to instruct the first bluetooth device to be tested to close the paging scanning mode; and the first Bluetooth device to be tested is also used for closing the paging scanning mode based on the fourth instruction. In this embodiment of the application, the target device sends the fourth instruction to the first bluetooth device to be tested to enable the first bluetooth device to be tested to close the paging scanning mode, so that the first bluetooth device to be tested does not respond to the connection request of any bluetooth device, thereby effectively reducing the power consumption of the first bluetooth device to be tested.
In a possible implementation manner, the test system further includes a second test device; the second testing device is used for being in communication connection with the first Bluetooth device to be tested in the closed state in the paging scanning mode; the second testing device is also used for sending a fifth instruction and a sixth instruction to the first Bluetooth device to be tested based on the communication connection, wherein the fifth instruction is used for indicating the first Bluetooth device to be tested to start a paging scanning mode; the sixth instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the second testing device and not respond to the connection request of the devices except the second testing device; the first Bluetooth device to be tested is also used for establishing Bluetooth connection with the second testing device based on the fifth instruction and the sixth instruction; the second testing device is also used for sending a second testing instruction to the first Bluetooth device to be tested based on the Bluetooth connection and sending a seventh instruction to the first Bluetooth device to be tested after the preset duration of the second testing instruction is sent, wherein the seventh instruction is used for indicating the first Bluetooth device to be tested to close the paging scanning mode; the second testing equipment is also used for restoring the first Bluetooth equipment to be tested to a preset mode when the testing of the first Bluetooth equipment to be tested is finished; in the preset mode, the paging scanning mode of the first to-be-tested Bluetooth device is in an open state, and the first to-be-tested Bluetooth device can respond to a connection request of any device. In the embodiment of the application, the second testing device restores the first to-be-tested bluetooth device to the preset mode when the second testing device completes the test of the first to-be-tested bluetooth device, so that the first to-be-tested bluetooth device can be normally used after the test is completed.
In a possible implementation manner, the test system further comprises a second bluetooth device to be tested, and the first bluetooth device to be tested is matched with the second bluetooth device to be tested for use; the first test equipment is also used for testing the second Bluetooth equipment to be tested with the paging scanning mode in the closed state; and the second testing equipment is also used for restoring the second Bluetooth equipment to be tested to a preset mode when the testing of the second Bluetooth equipment to be tested is finished. In the embodiment of the application, the second to-be-tested Bluetooth device is tested, so that subsequent matching test is performed when the second to-be-tested Bluetooth device is tested to be abnormal.
In one possible implementation manner, the first bluetooth device to be tested includes a first side bluetooth headset, and the second bluetooth device to be tested includes a second side bluetooth headset.
In a second aspect, an embodiment of the present application provides a testing method, which is applicable to the testing system in the first aspect or any possible implementation manner of the first aspect, and the method includes: the first test equipment is in communication connection with the first Bluetooth equipment to be tested in a closed state in a paging scanning mode; the first test equipment sends a first instruction and a second instruction to first Bluetooth equipment to be tested based on communication connection, wherein the first instruction is used for indicating the first Bluetooth equipment to be tested to start a paging scanning mode; the second instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the first testing device and not responding to the connection request of the devices except the first testing device; the first Bluetooth device to be tested establishes Bluetooth connection with the first test device based on the first instruction and the second instruction; the first testing device sends a first testing instruction to the first Bluetooth device to be tested based on Bluetooth connection, and sends a third instruction to the first Bluetooth device to be tested after sending a preset duration of the first testing instruction, wherein the third instruction is used for indicating the first Bluetooth device to be tested to close a paging scanning mode.
In one possible implementation, the second instruction includes a physical address of the first test device.
In one possible implementation, the first instruction, the second instruction, and the third instruction are AT instructions.
In one possible implementation manner, the method further includes: the target equipment sets a paging scanning mode of the first Bluetooth equipment to be tested to be in a closed state; wherein the steps performed by the target device are earlier than the steps performed by the first test device.
In one possible implementation, the target device setting the page scanning mode of the first bluetooth device to be tested to the off state includes: the target equipment sends a fourth instruction to the first Bluetooth equipment to be tested, and the fourth instruction is used for indicating the first Bluetooth equipment to be tested to close the paging scanning mode; the first Bluetooth device to be tested is also used for closing the paging scanning mode based on the fourth instruction.
In one possible implementation manner, the method further includes: the second testing equipment is in communication connection with the first Bluetooth equipment to be tested in the closed state in the paging scanning mode; the second testing equipment sends a fifth instruction and a sixth instruction to the first Bluetooth equipment to be tested based on the communication connection, wherein the fifth instruction is used for indicating the first Bluetooth equipment to be tested to start a paging scanning mode; the sixth instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the second testing device and not respond to the connection request of the devices except the second testing device; the first Bluetooth device to be tested establishes Bluetooth connection with the second testing device based on the fifth instruction and the sixth instruction; the second testing equipment sends a second testing instruction to the first Bluetooth equipment to be tested based on Bluetooth connection, and sends a seventh instruction to the first Bluetooth equipment to be tested after sending a preset duration of the second testing instruction, wherein the seventh instruction is used for indicating the first Bluetooth equipment to be tested to close a paging scanning mode; when the second testing device finishes testing the first Bluetooth device to be tested, the first Bluetooth device to be tested is recovered to a preset mode; in the preset mode, the paging scanning mode of the first to-be-tested Bluetooth device is in an open state, and the first to-be-tested Bluetooth device can respond to a connection request of any device.
In one possible implementation manner, the method further includes: the first Bluetooth device to be tested is matched with the second Bluetooth device to be tested for use; the first test equipment tests a second Bluetooth device to be tested with the paging scanning mode in a closed state; and the second test equipment restores the second Bluetooth equipment to be tested to a preset mode when the second test equipment completes the test of the second Bluetooth equipment to be tested.
In one possible implementation manner, the first bluetooth device to be tested includes a first side bluetooth headset, and the second bluetooth device to be tested includes a second side bluetooth headset.
In a third aspect, an embodiment of the present application provides a first test device, which includes a processor, and a communication module and a memory coupled to the processor; wherein the content of the first and second substances,
the processor is configured to: indicating the communication module to be in communication connection with the first Bluetooth device to be tested in the closed state in the paging scanning mode;
the processor is further configured to: the method comprises the steps that a communication module is instructed to send a first instruction and a second instruction to a first Bluetooth device to be tested based on communication connection, wherein the first instruction is used for instructing the first Bluetooth device to be tested to start a paging scanning mode; the second instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the first testing device and not responding to the connection request of the devices except the first testing device;
the processor is further configured to: the instruction communication module sends a first test instruction to the first Bluetooth device to be tested based on Bluetooth connection, and sends a third instruction to the first Bluetooth device to be tested after sending a preset duration of the first test instruction, wherein the third instruction is used for instructing the first Bluetooth device to be tested to close a paging scanning mode.
In one possible implementation, the processor is further configured to: and testing the second Bluetooth device to be tested with the page scanning mode in the off state.
In a fourth aspect, an embodiment of the present application provides a target device, where the target device includes a processor, and a communication module and a memory coupled to the processor; wherein the processor is configured to: and setting the paging scanning mode of the first Bluetooth device to be tested to be in an off state.
In one possible implementation, the processor is further configured to: and indicating the communication module to send a fourth instruction to the first Bluetooth device to be tested, wherein the fourth instruction is used for indicating the first Bluetooth device to be tested to close the paging scanning mode.
In a fifth aspect, an embodiment of the present application provides a second testing device, which includes a processor, and a communication module and a memory coupled to the processor; wherein the content of the first and second substances,
the processor is configured to: indicating the communication module to be in communication connection with the first Bluetooth device to be tested in the closed state in the paging scanning mode;
the processor is further configured to: the communication module is instructed to send a fifth instruction and a sixth instruction to the first Bluetooth device to be tested based on communication connection, and the fifth instruction is used for instructing the first Bluetooth device to be tested to start a paging scanning mode; the sixth instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the second testing device and not respond to the connection request of the devices except the second testing device;
the processor is further configured to: the communication module is instructed to send a second test instruction to the first Bluetooth device to be tested based on Bluetooth connection, and a seventh instruction is sent to the first Bluetooth device to be tested after the preset duration of the second test instruction is sent, wherein the seventh instruction is used for instructing the first Bluetooth device to be tested to close a paging scanning mode;
the processor is further configured to: when the test of the first Bluetooth device to be tested is finished, the first Bluetooth device to be tested is recovered to a preset mode; in the preset mode, the paging scanning mode of the first to-be-tested Bluetooth device is in an open state, and the first to-be-tested Bluetooth device can respond to a connection request of any device.
In one possible implementation, the processor is further configured to: and when the test of the second Bluetooth device to be tested is finished, the second Bluetooth device to be tested is recovered to a preset mode.
In a sixth aspect, an embodiment of the present application provides a first bluetooth device under test, where the first bluetooth device under test includes a processor, and a communication module and a memory coupled to the processor; wherein the content of the first and second substances,
the processor is configured to: instructing the communication module to establish Bluetooth connection with the first test equipment based on the first instruction and the second instruction;
the processor is further configured to: closing the page scanning mode based on the fourth instruction;
the processor is further configured to: and instructing the communication module to establish a Bluetooth connection with the second test equipment based on the fifth instruction and the sixth instruction.
In a seventh aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory is used to store code instructions; the processor is configured to execute the code instructions to cause the electronic device to perform a method as performed by the first test device in any one of the possible implementations of the second aspect or the second aspect, or to cause the electronic device to perform a method as performed by the first bluetooth device to be tested in any one of the possible implementations of the second aspect or the second aspect, or to cause the electronic device to perform a method as performed by the second test device in any one of the possible implementations of the second aspect or the second aspect, or to cause the electronic device to perform a method as performed by the target device in any one of the possible implementations of the second aspect or the second aspect.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium storing instructions that, when executed, cause a computer to perform a method as performed by a first testing device in any possible implementation of the second aspect or the second aspect, or cause a computer to perform a method as performed by a first bluetooth device to be tested in any possible implementation of the second aspect or the second aspect, or cause a computer to perform a method as performed by a second testing device in any possible implementation of the second aspect or the second aspect, or cause a computer to perform a method as performed by a target device in any possible implementation of the second aspect or the second aspect.
A ninth aspect is a computer program product comprising a computer program that, when executed, causes a computer to perform a method as performed by a first test device in any one of the possible implementations of the second aspect or the second aspect, or causes a computer to perform a method as performed by a first bluetooth device to be tested in any one of the possible implementations of the second aspect or the second aspect, or causes a computer to perform a method as performed by a second test device in any one of the possible implementations of the second aspect or the second aspect, or causes a computer to perform a method as performed by a target device in any one of the possible implementations of the second aspect or the second aspect.
In a tenth aspect, the present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and a communication interface, where the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform a method performed by a first testing device in any possible implementation manner of the second aspect or the second aspect, or to perform a method performed by a first bluetooth device to be tested in any possible implementation manner of the second aspect or the second aspect, or to perform a method performed by a second testing device in any possible implementation manner of the second aspect or the second aspect, or to perform a method performed by a target device in any possible implementation manner of the second aspect or the second aspect. The communication interface in the chip may be an input/output interface, a pin, a circuit, or the like.
It should be understood that the first aspect of the present application corresponds to the technical solutions of the second aspect to the tenth aspect of the present application, and the beneficial effects achieved by the aspects and the corresponding possible implementations are similar, and are not described again.
Drawings
Fig. 1 is a schematic view of a station test scene of a bluetooth device production line according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a bluetooth device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a bluetooth protocol stack according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a testing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of a testing method according to an embodiment of the present application;
FIG. 6 is a block diagram of a test system according to an embodiment of the present disclosure;
FIG. 7 is a schematic flow chart illustrating another testing method provided in the embodiments of the present application;
fig. 8 is a schematic structural diagram of a testing apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
In order to facilitate clear description of the technical solutions of the embodiments of the present application, some terms and techniques referred to in the embodiments of the present application are briefly described below:
1) page scan (page scan) mode: the Bluetooth device can respond to the connection request of other Bluetooth devices only by starting the page scan mode. For example, the bluetooth headset is in a page scan mode to allow other bluetooth devices to connect.
2) Attention (AT) command: the AT instruction may be an instruction for connection and communication between the terminal device and a Personal Computer (PC), for example, an instruction for connection and communication between a bluetooth headset and a PC. Whether the AT command is successfully executed or not can be correspondingly returned, for example, the PC sends the AT command to the bluetooth headset to read the voltage, temperature and other information of the bluetooth headset, and if the reading fails, the bluetooth headset can return a null value or a character "ERROR" indicating an ERROR to the PC.
3) Other terms
In the embodiments of the present application, the words "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. For example, the first chip and the second chip are only used for distinguishing different chips, and the sequence order thereof is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can 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 the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c can be single or multiple.
With the development of terminal technology, bluetooth headsets are increasingly used in people's lives, and the bluetooth headsets may be TWS headsets, for example. In order to strictly control the quality of the bluetooth headset, a production line test can be performed before the bluetooth headset leaves a factory, and the production line test can comprise station tests such as an aging test, a function test, a current sound test, a temperature test, a radio frequency test and the like.
In general, in a production line test process, because the bluetooth headset needs to establish bluetooth connection with the test equipment, a page scan mode is initially turned on by default, and in the whole test process, the page scan mode is in an on state, so that in the whole test process, the bluetooth headset can respond to connection requests of other test equipment or an opposite-end headset on the production line.
For example, fig. 1 shows a schematic diagram of a station testing scenario of a bluetooth device production line provided in an embodiment of the present application, and as shown in fig. 1, the production line may include a plurality of testing devices such as a first testing device and a second testing device, and a plurality of bluetooth devices such as a first side earphone and a second side earphone. Each test device may correspond to a test station, and the test device may be a terminal device with bluetooth function, such as a PC. The bluetooth devices may be, for example, a first side headset and a second side headset of a TWS headset. The test device and the bluetooth device may perform wired communication or wireless communication, the wired communication may be, for example, a bluetooth adapter (dongle) plugged in the test device, the dongle may perform universal asynchronous receiver/transmitter (UART) communication with the bluetooth device, and the wireless communication may be, for example, bluetooth communication. Each testing device can test a plurality of bluetooth devices simultaneously, for example, a plurality of dongles are connected to the testing device, each dongle is connected to one bluetooth headset, and the testing device can test the bluetooth headsets connected to the dongles, for example, the first testing device in fig. 1 can test the first side headset and the second side headset simultaneously.
The embodiment of the present application takes a bluetooth device as an example for explanation, and this example does not constitute a limitation to the embodiment of the present application.
For example, before a station test of a production line starts, a bluetooth headset may wait for a test at a station where a first test device is located, and since the bluetooth headset starts a page scan mode by default, both the first test device and a second test device on the production line may initiate a connection request to the bluetooth headset, and when the bluetooth headset does not have a pairing record with the first test device and a pairing record with the second test device, a response authentication of the bluetooth headset fails, the first test device and the second test device may continue to send the connection request to the bluetooth headset, and a process of the response authentication failure of the bluetooth headset is repeated, so that the bluetooth headset continuously consumes power.
For another example, in the process that the first test device tests the bluetooth headset, because the page scan mode of the bluetooth headset is in the on state, the second test device may initiate a connection request to the bluetooth headset, when the bluetooth headset does not have a matching record with the second test device, the response authentication of the bluetooth headset fails, the second test device may continue to send the connection request to the bluetooth headset, and the process of the response authentication failure of the bluetooth headset is repeated, resulting in continuous power consumption of the bluetooth headset; or the bluetooth headset has a pairing record of the second test device, the bluetooth headset and the second test device are successfully connected, that is, the bluetooth headset and the second test device are connected when the first test device tests the bluetooth headset, that is, an unexpected connection topology relationship occurs in the test process, which results in a failure of a normal test process, for example, the first test device fails to operate when reading information of the bluetooth headset.
For another example, the number of bluetooth headsets that can be tested by the testing device at each station on the production line is limited, so that a large number of bluetooth headsets may wait for testing, and since the bluetooth headsets have defaulted to open the page scan mode, interconnection may also occur between the bluetooth headsets, consuming the electric quantity of the bluetooth headsets. Exemplarily, the bluetooth connection also can take place between bluetooth headset's first side earphone and the second side earphone, when first side earphone and second side earphone are put into the shielded cell or put into the earphone box, the bluetooth between first side earphone and the second side earphone is connected the disconnection, resume the connection again after first side earphone and second side earphone take out again, frequent emergence is connected and disconnected like this, also can consume bluetooth headset's electric quantity, make bluetooth headset's electric quantity obviously reduce, thereby make bluetooth headset's electric quantity probably can not reach the standard of leaving the factory after producing the line station test completion.
In view of this, an embodiment of the present application provides a testing method, where an AT instruction is sent to a bluetooth device to control a page scan mode of the bluetooth device to be turned off and on and a bluetooth connection between the bluetooth device and a specified testing device, so that the bluetooth device turns on the page scan mode when needing a bluetooth connection with the testing device, and only performs a bluetooth connection with the testing device AT a station where the bluetooth device is located during testing, and turns off the page scan mode after connecting the testing device, so that the bluetooth device does not have to respond to a bluetooth connection request of another testing device, thereby effectively reducing power consumption of the bluetooth device.
Fig. 2 is a schematic structural diagram of a bluetooth device according to an embodiment of the present disclosure.
As shown in fig. 2, the bluetooth device may include; a first processor 110, a first memory 120, a bluetooth module 130, an audio module 140, a power module 150, an input/output interface 160, a sensor module 170, and buttons 180.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the bluetooth device. In other embodiments of the present application, the bluetooth device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The first processor 110 may include one or more processing units, such as: the first processor 110 may include an Application Processor (AP), a modem processor, a controller, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the first processor 110 for storing instructions and data. In some embodiments, the memory in the second processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the first processor 110. If the first processor 110 needs to use the instruction or data again, it may be called from memory. Avoiding repeated accesses reduces the latency of the first processor 110, thereby increasing the efficiency of the system.
The first memory 120 may be a Read Only Memory (ROM), a static memory device, a dynamic memory device, or a Random Access Memory (RAM). The first memory 120 may be used to store computer-executable program code, which includes instructions.
The first memory 120 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function) required by at least one function, and the like. The data storage area can store data (such as audio data and the like) created during the use of the Bluetooth device and the like. In addition, the first memory 120 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The first processor 110 performs various functional applications of the bluetooth device and data processing by executing instructions stored in the first memory 120 and/or instructions stored in a memory provided in the processor.
The bluetooth module 130 may also be referred to as a bluetooth chip, and the bluetooth device may pair with bluetooth modules of other devices through the bluetooth module 130 and establish a bluetooth connection, so as to implement wireless communication and service processing between the bluetooth device and the other devices through the bluetooth connection. In general, the bluetooth module 130 may support a classic bluetooth broadcast (BR/EDR) and a Bluetooth Low Energy (BLE), such as receiving/transmitting paging (page) information, receiving/transmitting BLE broadcast messages, and the like.
The bluetooth module 130 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the first processor 110. The bluetooth module 130 may also receive a signal to be transmitted from the first processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna to radiate the electromagnetic waves.
The audio module 140 is used to convert digital audio information into an analog audio signal output and also used to convert an analog audio input into a digital audio signal. The audio module 140 may also be used to encode and decode audio signals. In some embodiments, the audio module 140 may be disposed in the first processor 110, or some functional modules of the audio module 140 may be disposed in the second processor 110.
The audio module 140 may be used to manage audio data and enable the bluetooth device to input and output audio signals. For example, the audio module 140 may obtain an audio signal from the bluetooth module 130 or transmit the audio signal to the bluetooth module 130, so as to implement functions of answering and making a call, playing audio, starting/closing a voice assistant of a terminal connected to a headset, receiving/sending voice data of a user, and the like through the bluetooth device.
The audio module 140 may include a speaker assembly for outputting audio signals, a microphone receiving circuit coupled to the microphone, and the like. The speaker may be used to convert the electrical audio signal into an acoustic signal and play it. The microphone may be used to convert the sound signal into an electrical audio signal.
The power module 150 can be used for providing a system power supply for the bluetooth device and supplying power to each module of the bluetooth device; the supporting bluetooth device receives a charging input, etc. The power module 150 may include a Power Management Unit (PMU) and a battery. The power management unit can receive external charging input; the electric signal input by the charging circuit is provided to the battery for charging, and the electric signal provided by the battery can also be provided to other modules such as the audio module 140 and the bluetooth module 130, so as to prevent the battery from being overcharged, overdischarged, short-circuited or overcurrent. In some embodiments, the power module 150 may further include a wireless charging coil for wirelessly charging the bluetooth device. In addition, the power management unit can also be used for monitoring parameters such as battery capacity, battery cycle number, battery health state (electric leakage and impedance) and the like. In other embodiments, the power management unit may also be disposed in the first processor 110.
The input/output interface 160 may be used to provide a wired connection for charging or communication between the bluetooth device and the headset case. In some embodiments, the input/output interface may be a Universal Serial Bus (USB) interface. In other embodiments, the input/output interface 160 may be a headphone electrical connector, and when the bluetooth device is placed in a headphone case, the bluetooth device may be electrically connected to the inside of the headphone case through a headphone electrical connector, thereby charging a battery in the bluetooth device. In some embodiments, after the electrical connection is established, the bluetooth device may further perform data communication with the earphone box, for example, may receive information such as a pairing instruction, a power-on instruction, a power-off instruction, and the like from the earphone box.
In addition, the bluetooth device may further include a sensor module 170.
The sensor module 170 may include: a distance sensor or proximity light sensor that may be used to determine whether the bluetooth device is worn by a user; the bone conduction sensor is used for acquiring a vibration signal of a vibration bone block of a human body vocal part, analyzing a voice signal, realizing a voice function and receiving a voice instruction of a user; a touch sensor for detecting a touch operation of a user; the fingerprint sensor is used for detecting the fingerprint of the user, identifying the identity of the user and the like; the ambient light sensor can adaptively adjust some parameters (such as volume) according to the perceived brightness of the ambient light; and other sensors.
In some embodiments, the touch sensor may detect a single click, a double click, a multiple click, a long press, a heavy press, and other touch operations of the user, and may also perform user fingerprint recognition to authenticate the user identity in a service scenario such as a payment transaction.
The external surface of the bluetooth device may further include a key 180, an indicator light (which may indicate the status of power, incoming/outgoing call, pairing mode, etc.), a display screen (which may prompt the user for relevant information), and the like. The key 180 may be a physical key or a touch key (used in cooperation with a touch sensor), and is used to trigger operations such as power on, power off, pause, play, record, start pairing, and reset.
Further, the bluetooth communication may be specifically completed by a bluetooth protocol framework in the bluetooth device. In the embodiment of the present application, the bluetooth protocol framework of the bluetooth device is simplified to be represented as a 3-layer structure shown in fig. 3 for ease of understanding.
Fig. 3 is a schematic diagram of a framework of a bluetooth protocol stack according to an embodiment of the present disclosure, which includes, but is not limited to, a host (host), a Host Controller Interface (HCI), and a bluetooth module (controller).
The host can be understood as a bluetooth application layer (user application), which can also be called as headset software of the bluetooth headset, and can be used for controlling the bluetooth headset to play sound and the like. The Host protocol stack defines a plurality of applications (profiles) and core protocols (protocols) in the bluetooth framework, each profile defines a respective corresponding message format and application rule, and the profile is a bluetooth service (application). In order to achieve interconnection and interworking of different devices under different platforms, the bluetooth protocol is a specification formulated for various possible and generally meaningful application scenarios, such as an advanced audio distribution profile (A2 DP), a hands-free protocol (HFP), and the like. The core protocol includes, but is not limited to, a bluetooth basic Service Discovery Protocol (SDP), a logical link control and adaptation protocol (L2 CAP), and the like. The core protocol is essential in the bluetooth protocol stack.
The HCI provides a uniform interface for the upper layer protocol to enter the link manager and a uniform manner for the upper layer protocol to enter the baseband, there are several transport layers between the host core protocol stack and the controller, these transport layers are transparent and perform the task of transmitting data, and the bluetooth Special Interest Group (SIG) specifies four physical bus manners connected to hardware, for example, four HCI transport layers: USB, RS232 (asynchronous transfer standard interface), universal asynchronous receiver/transmitter (UART), and PC card.
The bluetooth module defines the bottom hardware components, including Radio Frequency (RF), baseband (BB), Link Manager (LM), and the like. The RF layer realizes the filtration and transmission of data bit streams through microwaves of ISM frequency bands which do not need authorization at 2.4GHz, and mainly defines the conditions which need to be met by the Bluetooth transceiver when the Bluetooth transceiver works normally in the frequency bands. The baseband is responsible for frequency hopping and transmission of bluetooth data and information frames. The link management is responsible for connecting, establishing and removing links and performing security control. The LM layer is a link management layer protocol of the bluetooth protocol stack, and is responsible for translating an upper layer HCI command into an operation that can be accepted by a baseband, establishing an asynchronous link (ACL) and a synchronous link (SCO), and entering an operating mode of an electronic device into an energy-saving state.
In some embodiments, the host may issue a corresponding operation command (command) to the bluetooth module through the HCI, and the bluetooth module returns an execution result after executing the operation command, for example, the bluetooth module sends an event (event) to the HCI, and the HCI notifies the host, and the HCI plays a role of an intermediate layer, for example, in this embodiment, the host sends a received AT command to the controller through the HCI, and the controller feeds back the execution result to the host after executing the AT command. The command and event for transmission between the host and the bluetooth module are defined by the HCI protocol in the bluetooth protocol specification. Therefore, in the embodiment of the present application, the command and the event transmitted between the host and the bluetooth module may be collectively referred to as HCI command.
For example, fig. 4 shows a schematic structural diagram of a testing device provided in an embodiment of the present application. As shown in fig. 4, the test apparatus may include: a second processor 410, a second memory 420, a wireless communication module 430, a display screen 440, a peripheral device 450, and the like.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the test equipment. In other embodiments of the present application, the test equipment may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Among other things, the second processor 410 may include one or more processing units, such as: the second processor 410 may include an application processor, a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a digital signal processor, a baseband processor, and/or a neural network processor, etc. The different processing units may be separate devices or may be integrated into one or more processors.
In some embodiments, processor 410 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, and the like.
The UART interface is a universal serial data bus for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 410 and the wireless communication module 430. For example: the processor 410 communicates with the bluetooth module in the wireless communication module 430 through the UART interface to implement the bluetooth function.
The second memory 420 may be used to store computer executable program code, which includes instructions.
The wireless communication module 430 may provide solutions for wireless communication applied to the testing device, including Wireless Local Area Networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite Systems (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 430 may be one or more devices integrating at least one communication processing module. The wireless communication module 430 receives electromagnetic waves via an antenna, performs frequency modulation and filtering on the electromagnetic wave signal, and transmits the processed signal to the processor 410. The wireless communication module 430 may also receive a signal to be transmitted from the processor 410, frequency modulate it, amplify it, and convert it into electromagnetic waves via the antenna for radiation.
The display screen 440 is used to display images, display videos, receive slide operations, and the like. The display panel 440 includes a display panel, which may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-OLED, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the test equipment may include 1 or more display screens 440.
Optionally, the testing device may further include a peripheral device 450, such as a mouse, a keyboard, and other peripheral devices.
Optionally, the test device may further include a bluetooth module, where the bluetooth module may also be referred to as a bluetooth chip, and when the test device does not have the bluetooth module, the test device may establish a bluetooth connection with the bluetooth device through the bluetooth adapter.
Fig. 5 shows a schematic flowchart of a testing method provided in an embodiment of the present application, where the method includes:
s501: the first test equipment is in communication connection with the first Bluetooth equipment to be tested with the page scanning mode in the closed state.
The communication connection may be a wired connection through a cable, for example, a dongle is plugged into the first testing device, and the dongle performs UART communication with the bluetooth device.
In the embodiment of the application, before the first to-be-tested bluetooth device is in communication connection with the first test device, the paging scanning mode of the first to-be-tested bluetooth device is in the off state, so that the first to-be-tested bluetooth device does not respond to a connection request of any bluetooth device, and power consumption of the first to-be-tested bluetooth device is reduced. The specific manner of turning off the paging scanning mode will be described in detail in the following steps, which is not described herein again.
S502: the first test equipment sends a first instruction and a second instruction to first Bluetooth equipment to be tested based on communication connection, wherein the first instruction is used for indicating the first Bluetooth equipment to be tested to start a paging scanning mode; the second instruction is used for instructing the first Bluetooth device to be tested to respond to the connection request of the first testing device and not respond to the connection request of the devices except the first testing device.
In this embodiment of the application, the first instruction may be an instruction in any form for instructing the first bluetooth device to be tested to start the page scanning mode, and the first instruction may be in any form such as a field, a character, or a numerical value.
The second instruction may be any form of instruction for instructing the first bluetooth device under test to respond to the connection request of the first test device and not to respond to the connection request of the devices other than the first test device, and the second instruction may be any form of field, character, or numerical value. The second instruction may include an identifier of the first test device, where the identifier of the first test device may include a device name of the first test device, a number of the first test device, an IP address of the first test device, or a physical address of the first test device, so that the identifier of the first test device may identify the first test device.
For example, the first instruction and the second instruction may be AT instructions, and the second instruction may include a bluetooth Media Access Control (MAC) address (also referred to as a physical address or a local area network address) of the first test device.
In a possible implementation, the first testing device sends the first instruction and the second instruction to the first bluetooth device to be tested in a wired communication manner, and the first instruction and the second instruction may be sent synchronously or asynchronously, which is not limited in this embodiment of the present application.
Generally, when a plurality of test devices and a plurality of bluetooth headsets are tested or a plurality of dongles and a plurality of bluetooth headsets are tested, unexpected connection topology relationship is easy to occur in the test process, so that a normal test flow cannot be performed. In this embodiment of the present application, the first test device sends the second instruction to the first to-be-tested bluetooth device in a wired communication manner, so that the first to-be-tested bluetooth device can respond to the connection request of the first test device and does not respond to the connection request of devices other than the first test device, and thus, when a plurality of test devices and a plurality of bluetooth headsets are tested or a plurality of dongle and a plurality of bluetooth headsets of one test device are tested, failures of operations such as reading bluetooth headset information and time synchronization, which may occur due to unexpected connection topology relationships in a test process, are not caused.
S503: the first Bluetooth device to be tested establishes Bluetooth connection with the first testing device based on the first instruction and the second instruction.
The bluetooth connection may be, for example, a Serial Port Profile (SPP) channel technology, and is used to transmit private data, for example, to transmit private information such as a noise reduction switch of a bluetooth headset.
For example, the bluetooth headset receives a first instruction and a second instruction sent by a first test device, and the bluetooth headset may open a page scan mode in response to the first instruction, respond to a connection request of the first test device in response to the second instruction, and reject connection requests of other bluetooth devices except the first test device, thereby establishing a bluetooth connection with the first test device.
S504: the first testing device sends a first testing instruction to the first Bluetooth device to be tested based on Bluetooth connection, and sends a third instruction to the first Bluetooth device to be tested after sending a preset duration of the first testing instruction, wherein the third instruction is used for indicating the first Bluetooth device to be tested to close a paging scanning mode.
The first test instruction may be any form of instruction for testing the first bluetooth device to be tested, and for example, the first test instruction may be an AT instruction for reading bluetooth headset information or another AT instruction for testing a bluetooth headset.
The third instruction may be any instruction for instructing the first bluetooth device to be tested to turn off the page scanning mode, and the third instruction may be any instruction in the form of a field, a character, a numerical value, or the like. Illustratively, the third instruction may be an AT instruction.
It can be understood that, in the embodiment of the present application, in order to enable the page scan mode of the first bluetooth device to be tested to be in the off state most of the time, the page scan mode is turned on when the first bluetooth device to be tested needs to be tested, and the first bluetooth device to be tested only responds to the connection request of the first bluetooth device to send the first instruction to the first bluetooth device to be tested, and the page scan mode of the first bluetooth device to be tested is turned off after the first bluetooth device to be tested starts to be tested, for example, after the first bluetooth device to be tested sends the first test instruction for the preset duration, so the preset duration may be very small, and even the first test instruction and the third instruction may be considered to be sent synchronously.
It can be understood that, when there are a plurality of test instructions, for each test instruction, the first test device and the first bluetooth device to be tested may repeatedly perform the above steps S502 to S504, so that the power of the first bluetooth device to be tested may be better saved. Of course, the first testing device may also send the third instruction to the first bluetooth device to be tested after the plurality of test instructions are sent, which is not limited in this embodiment of the application.
In the embodiment of the application, a first test device is in communication connection with a first to-be-tested Bluetooth device in a closed state in a paging scanning mode, the first test device sends a first instruction and a second instruction to the first to-be-tested Bluetooth device, and the first instruction is used for indicating the first to-be-tested Bluetooth device to start the paging scanning mode; the first Bluetooth device to be tested is used for establishing Bluetooth connection with the first Bluetooth device to be tested based on the first instruction and the second instruction, the first Bluetooth device to be tested sends the first test instruction to the first Bluetooth device to be tested based on the Bluetooth connection, and sends a third instruction to the first Bluetooth device to be tested after the preset duration of the first test instruction is sent, and the third instruction is used for indicating the first Bluetooth device to be tested to close the paging scanning mode. Therefore, the first Bluetooth device to be tested starts the page scan mode when needing to be in Bluetooth connection with the first test device, issues an instruction in a wired mode to enable the first Bluetooth device to be tested to be in Bluetooth connection with the first test device only when the first test device is tested, and closes the page scan mode after the first test device is connected, so that the first Bluetooth device to be tested does not need to respond to Bluetooth connection requests of other test devices except the first test device, and power consumption of the Bluetooth device is effectively reduced.
On the basis of the foregoing embodiments, in order to more clearly describe the technical solution provided by the embodiments of the present application, please refer to fig. 6 exemplarily, and fig. 6 shows an architecture diagram of a test system provided by the embodiments of the present application. As shown in fig. 6, the test system 60 may include: a target device 601, a first test device 602, a second test device 603 and a first bluetooth device to be tested 604.
The target device 601, the first testing device 602, and the second testing device 603 may be terminal devices with bluetooth functions, such as a PC, a tablet, and the like. The target device 601, the first test device 602 and the second test device 603 may be in wired or wireless communication with the first bluetooth device to be tested 604, respectively. The target device 601 may be configured to set the page scan mode of the first bluetooth device under test to an off state, and both the first testing device 602 and the second testing device 603 may be configured to test the first bluetooth device under test. In a possible implementation, the target device 601 may also be used to test the first bluetooth device to be tested.
On the basis of the foregoing embodiment, in order to more clearly describe the technical solution provided by the embodiment of the present application, please refer to fig. 7 exemplarily, and fig. 7 shows a schematic flow chart of another testing method provided by the embodiment of the present application. As shown in fig. 7, includes:
s701: the target device sets the paging scanning mode of the first Bluetooth device to be tested to be in an off state.
The target device is configured to set the page scan mode of the first bluetooth device to be tested to an off state before the first testing device performs step S501.
In a possible implementation, the target device may send, in a wired or wireless manner, an instruction to the first device to be tested to instruct the first device to be tested to turn off the page scan mode, and the first bluetooth device to be tested may turn off the page scan mode in response to the instruction.
It is to be understood that the target device may be a device other than the test device, or may be any one of the test devices.
In the embodiment of the application, the number of the Bluetooth devices which can be simultaneously tested by the test equipment of the production line station is limited, so that a large number of Bluetooth headsets are waiting for testing at the station, therefore, before the first Bluetooth device to be tested is in communication connection with the first test equipment, the target equipment sets the page scan mode of the first Bluetooth device to be tested to be in a closed state, so that the first Bluetooth device to be tested does not respond to the connection request of any Bluetooth device before testing, and the power consumption of the first Bluetooth device to be tested is effectively reduced.
Optionally, the target device sends a fourth instruction to the first bluetooth device to be tested, where the fourth instruction is used to instruct the first bluetooth device to be tested to close the paging scanning mode; and the first Bluetooth device to be tested closes the paging scanning mode based on the fourth instruction.
The fourth instruction may be any form of instruction for instructing the first bluetooth device to be tested to turn off the page scan mode, and the fourth instruction may be any form of field, character, or numerical value. Illustratively, the fourth instruction may be an AT instruction.
In this embodiment of the application, the target device sends the fourth instruction to the first bluetooth device to be tested to enable the first bluetooth device to be tested to close the paging scanning mode, so that the first bluetooth device to be tested does not respond to the connection request of any bluetooth device, thereby effectively reducing the power consumption of the first bluetooth device to be tested.
S702: the first test equipment is in communication connection with the first Bluetooth equipment to be tested with the page scanning mode in the closed state.
S703: the method comprises the steps that a first test device sends a first instruction and a second instruction to a first Bluetooth device to be tested based on communication connection, wherein the first instruction is used for indicating the first Bluetooth device to be tested to start a paging scanning mode; the second instruction is used for instructing the first Bluetooth device to be tested to respond to the connection request of the first testing device and not respond to the connection request of the devices except the first testing device.
S704: the first Bluetooth device to be tested is also used for establishing Bluetooth connection with the first testing device based on the first instruction and the second instruction.
S705: the first testing device sends a first testing instruction to the first Bluetooth device to be tested based on Bluetooth connection, and sends a third instruction to the first Bluetooth device to be tested after sending a preset duration of the first testing instruction, wherein the third instruction is used for indicating the first Bluetooth device to be tested to close a paging scanning mode.
The steps S702 to S705 are similar or identical to the steps S501 to S504, and are not repeated herein.
S706: the second testing device is in communication connection with the first Bluetooth device to be tested with the page scanning mode in the closed state.
S707: the second testing equipment sends a fifth instruction and a sixth instruction to the first Bluetooth equipment to be tested based on the communication connection, wherein the fifth instruction is used for indicating the first Bluetooth equipment to be tested to start a paging scanning mode; the sixth instruction is for instructing the first bluetooth device under test to respond to the connection request of the second test device and not to respond to the connection request of the devices other than the second test device.
In this embodiment of the application, the fifth instruction may be an instruction in any form for instructing the first bluetooth device to be tested to start the page scanning mode, and the fifth instruction may be in any form such as a field, a character, or a numerical value.
The sixth instruction may be any form of instruction for instructing the first bluetooth device under test to respond to the connection request of the second test device and not to respond to the connection request of the devices other than the second test device, and the sixth instruction may be any form of field, character, or numerical value. The sixth instruction may include an identifier of the second testing device, where the identifier of the second testing device may include a device name of the second testing device, a number of the second testing device, an IP address of the second testing device, or a physical address of the second testing device, so that the identifier of the second testing device may identify the second testing device.
For example, the fifth instruction and the sixth instruction may be AT instructions, and the physical address of the second testing device may be included in the sixth instruction.
In a possible implementation, the second testing device sends the fifth instruction and the sixth instruction to the first bluetooth device to be tested in a wired communication manner, and the fifth instruction and the sixth instruction may be sent synchronously or asynchronously, which is not limited in this embodiment of the present application.
S708: and the first Bluetooth device to be tested establishes Bluetooth connection with the second testing device based on the fifth instruction and the sixth instruction.
S709: the second testing device sends a second testing instruction to the first Bluetooth device to be tested based on Bluetooth connection, and sends a seventh instruction to the first Bluetooth device to be tested after sending a preset duration of the second testing instruction, wherein the seventh instruction is used for indicating the first Bluetooth device to be tested to close the paging scanning mode.
The second test instruction may be any form of instruction for testing the first bluetooth device to be tested, for example, an AT instruction for reading bluetooth headset information or another AT instruction for testing a bluetooth headset.
The seventh instruction may be any form of instruction for instructing the first bluetooth device to be tested to turn off the page scan mode, and the seventh instruction may be any form of field, character, or value. Illustratively, the seventh instruction may be an AT instruction.
S710: when the second testing device finishes testing the first Bluetooth device to be tested, the first Bluetooth device to be tested is recovered to a preset mode; in the preset mode, the paging scanning mode of the first Bluetooth device to be tested is in an open state, and the first Bluetooth device to be tested can respond to a connection request of any device.
In a possible implementation, when the second testing device completes testing the first to-be-tested bluetooth device, the second testing device may send an instruction to the first to-be-tested bluetooth device, where the instruction is used to instruct the first to-be-tested bluetooth device to recover to the preset mode, and the first to-be-tested bluetooth device recovers to the preset mode in response to the instruction.
In possible implementation, if the second testing device is not required to test the first to-be-tested bluetooth device, the first testing device may also restore the first to-be-tested bluetooth device to the preset mode when the first testing device completes the test of the first to-be-tested bluetooth device, so that the page scan mode of the first to-be-tested bluetooth device is in an on state, and the first to-be-tested bluetooth device can respond to a connection request of any device.
In the embodiment of the application, the second testing device restores the first to-be-tested bluetooth device to the preset mode when the second testing device completes the test of the first to-be-tested bluetooth device, so that the first to-be-tested bluetooth device can be normally used after the test is completed.
Optionally, the test system may further include a second bluetooth device to be tested, and the first bluetooth device to be tested is used in cooperation with the second bluetooth device to be tested; the first test equipment tests a second Bluetooth device to be tested in a closed state in a paging scanning mode; and the second test equipment restores the second Bluetooth equipment to be tested to a preset mode when the second test equipment completes the test of the second Bluetooth equipment to be tested.
The first bluetooth device to be tested and the second bluetooth device to be tested may be, for example, a first side bluetooth headset (left headset) of the TWS headset and a second side bluetooth headset (right headset) of the TWS headset, respectively.
In possible implementations, the first testing device and the second testing device test the second bluetooth device to be tested, and the specific testing steps may refer to the steps in the above embodiments, which are not described herein again.
In the embodiment of the application, the second to-be-tested Bluetooth device is tested, so that subsequent matching test is performed when the second to-be-tested Bluetooth device is tested to be abnormal.
The method provided by the embodiment of the present application is explained above with reference to fig. 5 to fig. 7, and the apparatus provided by the embodiment of the present application for performing the method is described below. As shown in fig. 8, fig. 8 is a schematic structural diagram of a testing apparatus provided in this embodiment of the present application, where the testing apparatus may be a first testing device in this embodiment of the present application, or a chip system in the first testing device; or the test apparatus may be the first bluetooth device to be tested in this embodiment of the application, or a chip system in the first bluetooth device to be tested; or the test device may be a second test apparatus in the embodiment of the present application, or a chip system in the second test apparatus; or the test apparatus may be a target device in the embodiment of the present application, or a chip system in the target device.
As shown in fig. 8, a test apparatus 800 may be used in a communication device, circuit, hardware component, or chip, the test apparatus comprising: a processing unit 801. The processing unit 801 is used to support the testing apparatus 800 to perform the testing steps. The processing unit 801 may be a unit in the first testing device, a unit in the first bluetooth device to be tested, a unit in the second testing device, or a unit in the target device.
When the testing apparatus 800 is a first testing device, the embodiment of the present application provides a testing apparatus 800, where a processing unit 801 of the first testing device is configured to be in communication connection with a first bluetooth device to be tested in a page scan mode in an off state; the processing unit 801 of the first testing device is further configured to send a first instruction and a second instruction to the first bluetooth device to be tested based on the communication connection, where the first instruction is used to instruct the first bluetooth device to be tested to start a paging scanning mode; the second instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the first testing device and not responding to the connection request of the devices except the first testing device; the processing unit 801 of the first testing device is further configured to send a first testing instruction to the first bluetooth device to be tested based on the bluetooth connection, and send a third instruction to the first bluetooth device to be tested after sending a preset duration of the first testing instruction, where the third instruction is used to instruct the first bluetooth device to be tested to close the paging scanning mode.
Optionally, the processing unit 801 of the first testing device is further configured to test a second bluetooth device to be tested whose paging scanning mode is in an off state.
When the testing apparatus 800 is a target device, the embodiment of the present application provides a testing apparatus 800, and a processing unit 801 of the target device is configured to set a page scan mode of a first bluetooth device to be tested to an off state.
Optionally, the processing unit 801 of the target device is further configured to send a fourth instruction to the first bluetooth device to be tested, where the fourth instruction is used to instruct the first bluetooth device to be tested to turn off the page scanning mode.
When the testing apparatus 800 is a second testing device, the embodiment of the present application provides a testing apparatus 800, where a processing unit 801 of the second testing device is configured to be in communication connection with a first bluetooth device to be tested in a closed state in a page scan mode; the processing unit 801 of the second testing device is further configured to send a fifth instruction and a sixth instruction to the first bluetooth device to be tested based on the communication connection, where the fifth instruction is used to instruct the first bluetooth device to be tested to start a paging scanning mode; the sixth instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the second testing device and not respond to the connection request of the devices except the second testing device; the processing unit 801 of the second testing device is further configured to send a second testing instruction to the first to-be-tested bluetooth device based on the bluetooth connection, and send a seventh instruction to the first to-be-tested bluetooth device after sending a preset duration of the second testing instruction, where the seventh instruction is used to instruct the first to-be-tested bluetooth device to close the paging scanning mode; the processing unit 801 of the second testing device is further configured to restore the first bluetooth device to be tested to a preset mode when the testing of the first bluetooth device to be tested is completed; in the preset mode, the paging scanning mode of the first to-be-tested Bluetooth device is in an open state, and the first to-be-tested Bluetooth device can respond to a connection request of any device.
Optionally, the processing unit 801 of the second testing device is further configured to restore the second bluetooth device to be tested to the preset mode when the testing of the second bluetooth device to be tested is completed.
When the testing apparatus 800 is a first bluetooth device to be tested, the embodiment of the present application provides a testing apparatus 800, where a processing unit 801 of the first bluetooth device to be tested is configured to establish a bluetooth connection with a first testing device based on a first instruction and a second instruction; the processing unit 801 of the first bluetooth device to be tested is further configured to turn off the page scanning mode based on the fourth instruction; the processing unit 801 of the first bluetooth device to be tested is further configured to establish a bluetooth connection with the second test device based on the fifth instruction and the sixth instruction.
Optionally, when the testing apparatus 800 is a first testing device, a target device, or a second testing device, the testing apparatus 800 may further include: a display unit 802. Wherein the display unit may be adapted to display the test related steps.
The processing unit 801 may be integrated with the display unit 802, and the processing unit 801 and the display unit 802 may communicate.
In a possible implementation manner, the testing apparatus 800 may further include: a memory cell 804. The storage unit 804 may include one or more memories, which may be devices in one or more devices or circuits for storing programs or data.
The storage unit 804 may be separate and coupled to the processing unit 802 via a communication bus. The memory unit 804 may also be integrated with the processing unit 802.
Taking the test apparatus 800 as an example of a chip or a chip system of a terminal device in the embodiment of the present application, the storage unit 804 may store computer-executable instructions of a method of the terminal device, so that the processing unit 801 executes the method of the terminal device in the embodiment described above. The storage unit 804 may be a register, a cache, a Random Access Memory (RAM), or the like, and the storage unit 804 may be integrated with the processing unit 801. The storage unit 804 may be a read-only memory (ROM) or other type of static storage device that may store static information and instructions, and the storage unit 804 may be separate from the processing unit 801.
In one possible implementation, the testing apparatus 800 may further include: a communication unit 803. The communication unit 803 is used to support the test apparatus 800 to interact with other devices. Illustratively, when the test apparatus 800 is a terminal device, the communication unit 803 may be a communication interface or an interface circuit. When the testing apparatus 800 is a chip or a chip system in a terminal device, the communication unit 803 may be a communication interface. For example, the communication interface may be an input/output interface, a pin or a circuit, etc.
The apparatus of this embodiment may be correspondingly used to perform the steps performed in the method embodiments, and the implementation principle and technical effects are similar, which are not described herein again.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure, and as shown in fig. 9, the electronic device includes a processor 901, a communication line 904, and at least one communication interface (an exemplary communication interface 903 is illustrated in fig. 9).
The processor 901 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more ics for controlling the execution of programs in accordance with the present disclosure.
The communication link 904 may include circuitry to transfer information between the above-described components.
Communication interface 903, using any transceiver or like device for communicating with other devices or communication networks, such as ethernet, Wireless Local Area Networks (WLANs), etc.
Possibly, the electronic device may further comprise a memory 902.
The memory 902 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disk read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be separate and coupled to the processor via a communication line 904. The memory may also be integral to the processor.
The memory 902 is used for storing computer-executable instructions for executing the present application, and is controlled by the processor 901 to execute. The processor 901 is configured to execute computer-executable instructions stored in the memory 902, thereby implementing the methods provided by the embodiments of the present application.
Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
In particular implementations, process 901 may include one or more CPUs such as CPU0 and CPU1 in fig. 9 as one embodiment.
In particular implementations, an electronic device may include multiple processors, such as processor 901 and processor 905 in fig. 9, for example, as an embodiment. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
Exemplarily, fig. 10 is a schematic structural diagram of a chip provided in an embodiment of the present application. Chip 1000 includes one or more (including two) processors 1002 and a communication interface 1003.
In some implementations, the memory 1004 stores the following elements: an executable module or a data structure, or a subset thereof, or an expanded set thereof.
In an embodiment of the present application, the memory 1004 may include both read-only memory and random access memory, and provides instructions and data to the processor 1002. A portion of memory 1004 may also include non-volatile random access memory (NVRAM).
In the present embodiment, the memory 1004, the communication interface 1003, and the processor 1002 are coupled together by a bus system 1001. The bus system 1001 may include a power bus, a control bus, a status signal bus, and the like, in addition to the data bus. For ease of description, the various buses are labeled as bus system 1001 in FIG. 10.
The method described in the embodiments of the present application may be applied to the processor 1002 or implemented by the processor 1002. The processor 1002 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1002. The processor 1002 may be a general-purpose processor (e.g., a microprocessor or a conventional processor), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate, transistor logic device or discrete hardware component, and the processor 1002 may implement or execute the methods, steps and logic blocks disclosed in the embodiments of the present application.
The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the field, such as a random access memory, a read only memory, a programmable read only memory, or a charged erasable programmable memory (EEPROM). The storage medium is located in the memory 1004, and the processor 1002 reads the information in the memory 1004 and performs the steps of the above method in combination with the hardware thereof.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. Computer instructions may be stored in, or transmitted from, a computer-readable storage medium to another computer-readable storage medium, e.g., from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optics, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.), the computer-readable storage medium may be any available medium that a computer can store or a data storage device including one or more available media integrated servers, data centers, etc., the available media may include, for example, magnetic media (e.g., floppy disks, hard disks, or magnetic tape), optical media (e.g., digital versatile disks, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), and the like.
The embodiment of the application also provides a computer readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include both computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another. A storage medium may be any target medium that can be accessed by a computer.
As one possible design, the computer-readable medium may include a compact disk read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disk storage; the computer readable medium may include a disk memory or other disk storage device. Also, any connecting line may also be properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Combinations of the above should also be included within the scope of computer-readable media. The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (15)

1. A test system is characterized in that the test system comprises a first test device and a first Bluetooth device to be tested;
the first test equipment is used for being in communication connection with the first Bluetooth equipment to be tested in a closed state in a paging scanning mode;
the first testing device is further configured to send a first instruction and a second instruction to the first bluetooth device to be tested based on the communication connection, where the first instruction is used to instruct the first bluetooth device to be tested to start the page scanning mode; the second instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the first testing device and not responding to the connection request of devices except the first testing device;
the first Bluetooth device to be tested is also used for establishing Bluetooth connection with the first testing device based on the first instruction and the second instruction;
the first testing device is further configured to send a first testing instruction to the first to-be-tested bluetooth device based on the bluetooth connection, and send a third instruction to the first to-be-tested bluetooth device after sending a preset duration of the first testing instruction, where the third instruction is used to instruct the first to-be-tested bluetooth device to close the paging scanning mode.
2. The test system of claim 1, wherein the second instructions comprise a physical address of the first test device.
3. The test system of claim 2, wherein the first, second, and third instructions are AT instructions.
4. The test system of any one of claims 1-3, wherein the test system further comprises a target device;
the target device is used for setting the paging scanning mode of the first Bluetooth device to be tested to be in a closed state; wherein the steps performed by the target device are earlier than the steps performed by the first test device.
5. The test system according to claim 4, wherein the target device is specifically configured to send a fourth instruction to the first bluetooth device under test, the fourth instruction being configured to instruct the first bluetooth device under test to turn off the page scan mode;
the first bluetooth device to be tested is further configured to close the page scanning mode based on the fourth instruction.
6. The test system of claim 5, further comprising, a second test device;
the second testing device is used for being in communication connection with the first Bluetooth device to be tested in the closed state of the paging scanning mode;
the second testing device is further configured to send a fifth instruction and a sixth instruction to the first bluetooth device to be tested based on the communication connection, where the fifth instruction is used to instruct the first bluetooth device to be tested to start the page scanning mode; the sixth instruction is used for instructing the first Bluetooth device to be tested to respond to the connection request of the second testing device and not respond to the connection request of devices except the second testing device;
the first Bluetooth device to be tested is further configured to establish Bluetooth connection with the second testing device based on the fifth instruction and the sixth instruction;
the second testing device is further configured to send a second testing instruction to the first bluetooth device to be tested based on the bluetooth connection, and send a seventh instruction to the first bluetooth device to be tested after sending a preset duration of the second testing instruction, where the seventh instruction is used to instruct the first bluetooth device to be tested to close the paging scanning mode;
the second testing device is also used for restoring the first Bluetooth device to be tested to a preset mode when the testing of the first Bluetooth device to be tested is finished; in the preset mode, the paging scanning mode of the first Bluetooth device to be tested is in an open state, and the first Bluetooth device to be tested can respond to a connection request of any device.
7. The test system of claim 6, further comprising a second Bluetooth device under test, wherein the first Bluetooth device under test is used with the second Bluetooth device under test;
the first testing device is also used for testing the second Bluetooth device to be tested with the page scanning mode in the closed state;
the second testing device is further configured to restore the second bluetooth device to be tested to the preset mode when the testing of the second bluetooth device to be tested is completed.
8. The test system of claim 7, wherein the first Bluetooth device under test comprises a first side Bluetooth headset and the second Bluetooth device under test comprises a second side Bluetooth headset.
9. A test method applied to the test system according to any one of claims 1 to 8, the method comprising:
the first test equipment is in communication connection with the first Bluetooth equipment to be tested in a closed state in a paging scanning mode;
the first testing device sends a first instruction and a second instruction to the first Bluetooth device to be tested based on the communication connection, wherein the first instruction is used for indicating the first Bluetooth device to be tested to start the paging scanning mode; the second instruction is used for indicating the first Bluetooth device to be tested to respond to the connection request of the first testing device and not responding to the connection request of devices except the first testing device;
the first Bluetooth device to be tested establishes Bluetooth connection with the first testing device based on the first instruction and the second instruction;
the first testing device sends a first testing instruction to the first Bluetooth device to be tested based on the Bluetooth connection, and sends a third instruction to the first Bluetooth device to be tested after sending a preset duration of the first testing instruction, wherein the third instruction is used for indicating the first Bluetooth device to be tested to close the paging scanning mode.
10. The method of claim 9, further comprising:
the target equipment sets the paging scanning mode of the first Bluetooth equipment to be tested to be in a closed state; wherein the steps performed by the target device are earlier than the steps performed by the first test device.
11. The method of claim 10, wherein the target device setting the page scan mode of the first Bluetooth device under test to an off state comprises:
the target device sends a fourth instruction to the first Bluetooth device to be tested, wherein the fourth instruction is used for instructing the first Bluetooth device to be tested to close the paging scanning mode;
the first bluetooth device to be tested is further configured to close the page scanning mode based on the fourth instruction.
12. The method according to any one of claims 9-11, further comprising:
the second testing equipment is in communication connection with the first Bluetooth equipment to be tested in the closed state in the paging scanning mode;
the second testing device sends a fifth instruction and a sixth instruction to the first Bluetooth device to be tested based on the communication connection, wherein the fifth instruction is used for instructing the first Bluetooth device to be tested to start the paging scanning mode; the sixth instruction is used for instructing the first Bluetooth device to be tested to respond to the connection request of the second testing device and not respond to the connection request of devices except the second testing device;
the first Bluetooth device to be tested establishes Bluetooth connection with the second testing device based on the fifth instruction and the sixth instruction;
the second testing device sends a second testing instruction to the first Bluetooth device to be tested based on the Bluetooth connection, and sends a seventh instruction to the first Bluetooth device to be tested after sending a preset duration of the second testing instruction, wherein the seventh instruction is used for indicating the first Bluetooth device to be tested to close the paging scanning mode;
when the second testing equipment completes the testing of the first Bluetooth equipment to be tested, the first Bluetooth equipment to be tested is recovered to a preset mode; in the preset mode, the paging scanning mode of the first to-be-tested Bluetooth device is in an open state, and the first to-be-tested Bluetooth device can respond to a connection request of any device.
13. The method of claim 12, further comprising:
the first Bluetooth device to be tested is matched with the second Bluetooth device to be tested for use;
the first testing equipment tests the second Bluetooth equipment to be tested with the paging scanning mode in the closed state;
and when the second test equipment completes the test of the second Bluetooth equipment to be tested, the second Bluetooth equipment to be tested is recovered to the preset mode.
14. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, causes the electronic device to perform the method as performed by a first test device according to any one of claims 9-13, or causes the electronic device to perform the method as performed by a first bluetooth device to be tested according to any one of claims 9-13, or causes the electronic device to perform the method as performed by a second test device according to any one of claims 9-13, or causes the electronic device to perform the method as performed by a target device according to any one of claims 9-13.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes a computer to carry out the method as performed by a first test apparatus as claimed in any one of claims 9 to 13, or causes the computer to carry out the method as performed by the first bluetooth device under test as claimed in any one of claims 9 to 13, or causes the computer to carry out the method as performed by a second test apparatus as claimed in any one of claims 9 to 13, or causes the computer to carry out the method as performed by a target apparatus as claimed in any one of claims 9 to 13.
CN202210849994.9A 2022-07-20 2022-07-20 Test system, method and related device Active CN115086855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210849994.9A CN115086855B (en) 2022-07-20 2022-07-20 Test system, method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210849994.9A CN115086855B (en) 2022-07-20 2022-07-20 Test system, method and related device

Publications (2)

Publication Number Publication Date
CN115086855A true CN115086855A (en) 2022-09-20
CN115086855B CN115086855B (en) 2022-12-27

Family

ID=83259647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210849994.9A Active CN115086855B (en) 2022-07-20 2022-07-20 Test system, method and related device

Country Status (1)

Country Link
CN (1) CN115086855B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117098106A (en) * 2023-10-18 2023-11-21 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2384944A (en) * 2002-01-30 2003-08-06 Zarlink Semiconductor Ltd Reducing the power consumption of a Bluetooth device
CN104579506A (en) * 2014-12-31 2015-04-29 福建联迪商用设备有限公司 Bluetooth equipment testing method and device
CN105703805A (en) * 2016-03-22 2016-06-22 广东欧珀移动通信有限公司 Bluetooth module control method and apparatus of playing equipment, and audio-video playing system
US20160366538A1 (en) * 2015-06-12 2016-12-15 Qualcomm Incorporated Systems and methods for disabling page scans
US20180213478A1 (en) * 2017-01-20 2018-07-26 Microsoft Technology Licensing, Llc Method for connecting a network receiver with one or more devices while minimizing power usage
CN109348431A (en) * 2018-11-14 2019-02-15 Oppo广东移动通信有限公司 Bluetooth scan method, device, equipment and storage medium
CN111010317A (en) * 2019-12-18 2020-04-14 杭州涂鸦信息技术有限公司 Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol
CN210431439U (en) * 2019-08-23 2020-04-28 北京华大智宝电子系统有限公司 Bluetooth test equipment
CN111106883A (en) * 2019-12-09 2020-05-05 惠州拓邦电气技术有限公司 Test method and Bluetooth equipment, control method and test device, and test system
CN111107528A (en) * 2019-10-09 2020-05-05 珠海市杰理科技股份有限公司 Bluetooth test method and test machine
US10659099B1 (en) * 2018-12-12 2020-05-19 Samsung Electronics Co., Ltd. Page scanning devices, computer-readable media, and methods for bluetooth page scanning using a wideband receiver
CN114501286A (en) * 2021-12-24 2022-05-13 深圳市冠旭电子股份有限公司 Bluetooth connection testing method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2384944A (en) * 2002-01-30 2003-08-06 Zarlink Semiconductor Ltd Reducing the power consumption of a Bluetooth device
CN104579506A (en) * 2014-12-31 2015-04-29 福建联迪商用设备有限公司 Bluetooth equipment testing method and device
US20160366538A1 (en) * 2015-06-12 2016-12-15 Qualcomm Incorporated Systems and methods for disabling page scans
CN105703805A (en) * 2016-03-22 2016-06-22 广东欧珀移动通信有限公司 Bluetooth module control method and apparatus of playing equipment, and audio-video playing system
US20180213478A1 (en) * 2017-01-20 2018-07-26 Microsoft Technology Licensing, Llc Method for connecting a network receiver with one or more devices while minimizing power usage
CN109348431A (en) * 2018-11-14 2019-02-15 Oppo广东移动通信有限公司 Bluetooth scan method, device, equipment and storage medium
US10659099B1 (en) * 2018-12-12 2020-05-19 Samsung Electronics Co., Ltd. Page scanning devices, computer-readable media, and methods for bluetooth page scanning using a wideband receiver
CN210431439U (en) * 2019-08-23 2020-04-28 北京华大智宝电子系统有限公司 Bluetooth test equipment
CN111107528A (en) * 2019-10-09 2020-05-05 珠海市杰理科技股份有限公司 Bluetooth test method and test machine
CN111106883A (en) * 2019-12-09 2020-05-05 惠州拓邦电气技术有限公司 Test method and Bluetooth equipment, control method and test device, and test system
CN111010317A (en) * 2019-12-18 2020-04-14 杭州涂鸦信息技术有限公司 Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol
CN114501286A (en) * 2021-12-24 2022-05-13 深圳市冠旭电子股份有限公司 Bluetooth connection testing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHIMING CHEN: "Non-connection Bluetooth scanning and location technology for energy-saving control system", 《2017 CCDC》 *
李振荣: "基于平台和层次化功耗管理的蓝牙SoC研究与设计", 《电路与系统学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117098106A (en) * 2023-10-18 2023-11-21 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium
CN117098106B (en) * 2023-10-18 2023-12-29 合肥联宝信息技术有限公司 Bluetooth testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115086855B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN112559098B (en) Card rendering method and electronic equipment
CN113498124B (en) SIM card and eSIM card switching method and electronic equipment
CN112469015A (en) Bluetooth connection method and electronic equipment
US10735054B2 (en) Wireless communication device and method for transferring communication rights between electronic devices
WO2015034253A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
CN114598401B (en) Radio frequency test method, Bluetooth device, electronic device and radio frequency test system
WO2022030893A1 (en) Electronic device for supporting audio sharing
WO2022001343A1 (en) Output signal control method for nfc apparatus, and terminal device, medium and electronic device
CN110557740A (en) Electronic equipment control method and electronic equipment
US20190339920A1 (en) Method for displaying content and electronic device therefor
CN115086855B (en) Test system, method and related device
CN114430543A (en) Communication control method and device of mobile terminal, storage medium and electronic equipment
KR20200144759A (en) Method for establishing bluetooth communication connection and electronic device thereof
AU2014315883A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
US20200404477A1 (en) Device and method for transmitting signals in plurality of frequency bands
CN114596853A (en) Control device and audio processing method
US20230217169A1 (en) Electronic device and multichannel audio output method using same
CN110806994B (en) Signal transmission method and device
WO2023197709A1 (en) Device identification method and related apparatus
EP4287763A2 (en) Electronic device for reducing power consumption in network on basis of wi-fi direct protocol, and method related thereto
KR20210101553A (en) Electronic device and method for recognizing audio output device connected to usb type-c connector using the same
CN113849194B (en) Burning method and terminal equipment
CN115002940B (en) Bluetooth communication method, device and storage medium
WO2024063251A1 (en) Electronic device and method for controlling heat generation of electronic device
US20220346167A1 (en) Electronic device for operating link and operatiion method thereof

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