CN112261635B - Bluetooth testing method and device, electronic equipment and computer readable storage medium - Google Patents

Bluetooth testing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112261635B
CN112261635B CN202011133733.4A CN202011133733A CN112261635B CN 112261635 B CN112261635 B CN 112261635B CN 202011133733 A CN202011133733 A CN 202011133733A CN 112261635 B CN112261635 B CN 112261635B
Authority
CN
China
Prior art keywords
equipment
bluetooth
information
pairing
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011133733.4A
Other languages
Chinese (zh)
Other versions
CN112261635A (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.)
Shanghai Wingtech Information Technology Co Ltd
Original Assignee
Shanghai Wingtech Information Technology 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 Shanghai Wingtech Information Technology Co Ltd filed Critical Shanghai Wingtech Information Technology Co Ltd
Priority to CN202011133733.4A priority Critical patent/CN112261635B/en
Publication of CN112261635A publication Critical patent/CN112261635A/en
Application granted granted Critical
Publication of CN112261635B publication Critical patent/CN112261635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to the field of Bluetooth testing, and provides a Bluetooth testing method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: after the Bluetooth module is started, broadcasting an equipment detection packet, receiving a response packet returned by the remote Bluetooth equipment based on the equipment detection packet, analyzing the response packet to obtain an MAC address of the remote Bluetooth equipment, acquiring equipment information of the Bluetooth equipment matched with the MAC address from a Bluetooth database to obtain equipment information of the remote Bluetooth equipment, determining equipment information of target paired equipment according to the detected equipment information of all the remote Bluetooth equipment, and establishing pairing connection with the target paired equipment according to the equipment information of the target paired equipment. Therefore, in the whole Bluetooth test process, the method does not need testers to manually select corresponding Bluetooth equipment for pairing connection, realizes the Bluetooth automatic test of the electronic equipment, and improves the test efficiency.

Description

Bluetooth testing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of bluetooth testing, and in particular, to a bluetooth testing method, apparatus, electronic device, and computer-readable storage medium.
Background
With the rapid development of terminal technology, bluetooth is more and more valued by the market as a solution for near field communication, and many electronic products have a bluetooth function.
For an electronic device supporting a bluetooth function, a bluetooth test is required during a manufacturing process to ensure normal use of the bluetooth function. The existing Bluetooth test method is generally manual test, the whole test process is time-consuming and labor-consuming, and the test efficiency is low.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a bluetooth testing method, apparatus, electronic device and computer-readable storage medium capable of improving testing efficiency.
In order to achieve the above object, the embodiments of the present application adopt the following technical solutions:
in a first aspect, an embodiment of the present invention provides a bluetooth testing method, which is applied to an electronic device, where the electronic device includes a bluetooth module, a bluetooth database is pre-stored in the electronic device, the bluetooth database records device information of multiple bluetooth devices, and the device information includes an MAC address, and the method includes:
after the Bluetooth module is started, broadcasting a device detection packet;
receiving a response packet returned by the remote Bluetooth device based on the device detection packet;
analyzing the response packet to obtain the MAC address of the remote Bluetooth equipment;
acquiring the equipment information of the Bluetooth equipment matched with the MAC address from the Bluetooth database to obtain the equipment information of the remote Bluetooth equipment;
determining the device information of the target paired device according to the detected device information of all remote Bluetooth devices;
and establishing pairing connection with the target pairing equipment according to the equipment information of the target pairing equipment.
In an optional embodiment, a bluetooth communication port is created in the electronic device in advance, and after the bluetooth module is turned on, broadcasting a device probe packet includes:
after the Bluetooth module is started, opening the Bluetooth communication port, and broadcasting an equipment detection packet through the Bluetooth communication port;
the receiving of the response packet returned by the remote bluetooth device based on the device detection packet includes:
and receiving a response packet returned by the remote Bluetooth device based on the device detection packet through the communication port.
In an optional embodiment, the binding of a port service to the bluetooth communication port, and the parsing of the response packet to obtain the MAC address of the remote bluetooth device includes:
inquiring the port service bound by the Bluetooth communication port;
and analyzing the response packet through the port service to obtain the MAC address of the remote Bluetooth equipment.
In an optional embodiment, the electronic device maintains a device list, where the device list is used to store device information of the detected remote bluetooth device, the device information further includes a device unique identifier, and the electronic device is preconfigured with the device unique identifier of the target paired device;
after the device information of the bluetooth device matched with the MAC address is obtained from the bluetooth database and the device information of the remote bluetooth device is obtained, the method further includes:
if the equipment information of the remote Bluetooth equipment is not stored in the equipment list, storing the equipment information of the remote Bluetooth equipment into the equipment list;
the determining the device information of the target paired device according to the detected device information of all remote bluetooth devices includes:
and acquiring the equipment information matched with the equipment unique identifier of the target paired equipment from the equipment list to obtain the equipment information of the target paired equipment.
In an optional implementation manner, the device information further includes a pairing identifier, and the establishing of pairing connection with the target pairing device according to the device information of the target pairing device includes:
if the pairing identification in the device information of the target pairing device represents that the target pairing device is unpaired, registering a callback function associated with the target pairing device with an operating system of the electronic device;
initiating a pairing connection request to the target pairing equipment according to the equipment information of the target pairing equipment;
and receiving and processing a handshake verification packet returned by the target pairing equipment based on the pairing connection request through the callback function, and sending a handshake confirmation packet to the target pairing equipment according to the handshake verification packet, thereby establishing pairing connection with the target pairing equipment.
In an optional embodiment, after the pairing connection is established with the target pairing device according to the device information of the target pairing device, the method further includes:
and updating the equipment information of the target pairing equipment in the Bluetooth database.
In an optional embodiment, before broadcasting the device probe packet after turning on the bluetooth module, the method further includes:
detecting whether the Bluetooth module is started or not;
and if the Bluetooth module is not started, starting the Bluetooth module.
In a second aspect, an embodiment of the present invention provides a bluetooth testing apparatus, which is applied to an electronic device, where the electronic device includes a bluetooth module, a bluetooth database is stored in the electronic device in advance, the bluetooth database records device information of a plurality of bluetooth devices, and the device information includes an MAC address, and the apparatus includes:
the broadcasting module is used for broadcasting the equipment detection packet after the Bluetooth module is started;
the receiving module is used for receiving a response packet returned by the remote Bluetooth equipment based on the equipment detection packet;
the analysis module is used for analyzing the response packet to obtain the MAC address of the remote Bluetooth equipment;
the database query module is used for acquiring the equipment information of the Bluetooth equipment matched with the MAC address from the Bluetooth database to obtain the equipment information of the remote Bluetooth equipment;
the device information determining module is used for determining the device information of the target paired device according to the detected device information of all the remote Bluetooth devices;
and the pairing module is used for establishing pairing connection with the target pairing equipment according to the equipment information of the target pairing equipment.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a computer program, and the processor implements the method described in any one of the foregoing embodiments when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method described in any one of the foregoing embodiments.
According to the Bluetooth test method, the Bluetooth test device, the electronic equipment and the computer readable storage medium, a Bluetooth database is stored in the electronic equipment in advance, equipment information of a plurality of Bluetooth equipment is recorded in the Bluetooth database and comprises MAC addresses, after the electronic equipment starts a Bluetooth module, an equipment detection packet is broadcasted, a response packet returned by the remote Bluetooth equipment based on the equipment detection packet is received, the MAC addresses of the remote Bluetooth equipment are obtained by analyzing the response packet, the equipment information of the Bluetooth equipment matched with the MAC addresses is obtained from the Bluetooth database, the equipment information of the remote Bluetooth equipment is obtained, the equipment information of target matched equipment is determined according to the detected equipment information of all the remote Bluetooth equipment, and matched connection is established with the target matched equipment according to the equipment information of the target matched equipment. Therefore, in the whole Bluetooth test process, the test personnel does not need to manually select the corresponding Bluetooth equipment for pairing connection, the Bluetooth automatic test of the electronic equipment is realized, and the test efficiency is improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a diagram of an exemplary embodiment of a Bluetooth test application;
FIG. 2 is a flowchart illustrating a Bluetooth test method according to an embodiment;
FIG. 3 is a flowchart illustrating a Bluetooth test method according to another embodiment;
FIG. 4 is a flowchart illustrating a Bluetooth test method according to another embodiment;
FIG. 5 is a flowchart illustrating a Bluetooth test method according to another embodiment;
FIG. 6 is a flowchart illustrating a Bluetooth test method according to another embodiment;
FIG. 7 is a block diagram of a Bluetooth test apparatus according to an embodiment;
FIG. 8 is a block diagram showing the structure of a Bluetooth test apparatus according to another embodiment;
FIG. 9 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Icon: 10-a bluetooth test system; 100-an electronic device; 200-a remote bluetooth device; 700-a bluetooth test apparatus; 110-a processor; 120-a communication interface; 130-display screen; 140-an input device; 151-non-volatile storage medium; 152-an internal memory; 710-a broadcast module; 720-a receiving module; 730-a parsing module; 740-a database query module; 750-a device information determination module; 760-pairing module; 701-a Bluetooth detection module; 702-a storage module; 703-an update module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The Bluetooth test method provided by the application can be applied to the application environment shown in FIG. 1. The bluetooth test method is applied to a bluetooth test system 10, and the bluetooth test system 10 includes an electronic device 100 and at least one remote bluetooth device 200. The electronic device 100 is a device with bluetooth function, and may be but not limited to a personal computer, a notebook computer, a smart phone, a tablet computer, and the like, and the remote bluetooth device 200 may be a device with bluetooth function, such as a bluetooth headset, a bluetooth speaker, a smart phone, and the like. After the bluetooth function is turned on, the electronic device 100 may search for a peripheral remote bluetooth device 200 and perform pairing connection with the remote bluetooth device 200 to implement data communication or interaction.
In one embodiment, as shown in FIG. 2, a Bluetooth test method is provided. The embodiment is mainly illustrated by applying the method to the electronic device 100 in fig. 1. The method comprises the following steps:
step 201, after the bluetooth module is turned on, broadcasting an equipment detection packet.
In this embodiment, the electronic device 100 includes a bluetooth module, and data can be transmitted and received by turning on the bluetooth module. The device probe packet is used to probe remote bluetooth devices 200 located in the periphery of the electronic device 100, and the electronic device 100 searches for a remote bluetooth device 200 capable of pairing connection by broadcasting the device probe packet. The device detection packet carries device information of the electronic device 100, such as information of the MAC address and the device name of the electronic device 100.
And 202, receiving a response packet returned by the remote Bluetooth device based on the device detection packet.
In this embodiment, after receiving the device probe packet broadcast by the electronic device 100, the remote bluetooth device 200 returns a response packet to the electronic device 100 according to the device information carried in the device probe packet. The number of the remote bluetooth devices 200 that send the reply packet may be one or more, that is, the electronic device 100 may receive the reply packet returned from one or more remote bluetooth devices 200.
And step 203, analyzing the response packet to obtain the MAC address of the remote Bluetooth equipment.
In this embodiment, the reply packet returned by the remote bluetooth device 200 carries the device information of the remote bluetooth device 200, and the device information carried in the reply packet is data encapsulated by a multi-layer protocol and cannot be directly read. The electronic apparatus 100 can obtain the MAC address of the remote bluetooth apparatus 200 that transmitted each response packet by parsing the received response packet.
And step 204, acquiring the equipment information of the Bluetooth equipment matched with the MAC address from the Bluetooth database to obtain the equipment information of the remote Bluetooth equipment.
In this embodiment, the electronic device 100 stores a bluetooth database in advance, and the bluetooth database records device information of a plurality of bluetooth devices. The device information of the bluetooth device stored in the bluetooth database includes information such as a MAC address, a device name, a device type number, a connection identifier, a pairing identifier, and the like of the bluetooth device, where different bluetooth devices have different MAC addresses and device names, so that both the MAC address and the device name can be used as a device unique identifier of the bluetooth device, the connection identifier is used to represent whether the bluetooth device is connected, the pairing identifier is used to represent whether the bluetooth device is paired, and the device type number is used to represent what type of device the bluetooth device is (defined in the bluetooth specification spec according to the standard).
After obtaining the MAC address of the remote bluetooth device 200, the electronic device 100 may obtain the device information of the bluetooth device matching the MAC address by querying the bluetooth database, so as to obtain the device information of the remote bluetooth device 200.
In one example, when the MAC address of the remote bluetooth device 200 is consistent with the MAC address of a bluetooth device in the bluetooth database, the MAC address of the remote bluetooth device 200 is considered to match the device information of the bluetooth device, which is the device information of the remote bluetooth device 200.
It should be noted that, since the reply packet carries the device information of the remote bluetooth device 200 when the remote bluetooth device 200 returns the reply packet, in principle, all the device information of the remote bluetooth device 200 may also be obtained by directly parsing the reply packet. However, considering that the device information carried in the response packet is data encapsulated by a multi-layer protocol, if it may take a long time to analyze all the device information of the remote bluetooth device 200, and there may also be a case that the analysis is wrong, in this embodiment, the MAC address of the remote bluetooth device 200 is analyzed first, and then the bluetooth database is queried by using the MAC address of the remote bluetooth device 200 to find the device information corresponding to the remote bluetooth device 200, so that the obtained device information is more stable and follows the spectrum.
And step 205, determining the device information of the target paired device according to the detected device information of all the remote Bluetooth devices.
In this embodiment, the target paired device is the remote bluetooth device 200 that needs to be paired and connected, the target paired device may be configured or specified in advance by a tester, or may be selected randomly or according to a set rule from all detected remote bluetooth devices 200 by the electronic device 100, and after the target paired device is determined, the device information of the target paired device may be obtained according to the device information of all detected remote bluetooth devices 200.
And step 206, establishing pairing connection with the target pairing equipment according to the equipment information of the target pairing equipment.
In this embodiment, after obtaining the device information of the target pairing device, the electronic device 100 may perform pairing connection with the target pairing device, and after completing the pairing connection, the electronic device 100 may perform bidirectional data communication with the target pairing device.
In the bluetooth testing method provided in the embodiment of the present application, after the electronic device 100 starts the bluetooth module, the electronic device receives, through the broadcast device probe packet, a response packet returned by the remote bluetooth device 200 based on the device probe packet, obtains the MAC address of the remote bluetooth device 200 by parsing the response packet, obtains the device information of the bluetooth device matched with the MAC address from the bluetooth database, obtains the device information of the remote bluetooth device 200, determines the device information of the target paired device according to the detected device information of all the remote bluetooth devices 200, and establishes pairing connection with the target paired device according to the device information of the target paired device. Therefore, in the whole Bluetooth test process, the corresponding Bluetooth equipment does not need to be manually selected by a tester for pairing connection, the Bluetooth automatic test of the electronic equipment 100 is realized, and the test efficiency is improved.
Optionally, considering that when the bluetooth module of the electronic device 100 may be in a closed state, in this case, performing a bluetooth test requires a tester to manually turn on bluetooth in the electronic device 100, which is cumbersome to operate and may also affect the test efficiency to some extent. Based on this, referring to fig. 3, before the step 201, the bluetooth testing method provided in the embodiment of the present application further includes:
step 301, detecting whether the bluetooth module is started.
In this embodiment, an Application Program Interface (API) for detecting a state of the bluetooth module may be configured in the electronic device 100 in advance, and the API Interface is invoked to detect whether the bluetooth module is turned on and acquire a handle associated with the bluetooth module. If the bluetooth module is turned on, step 201 is executed; if the bluetooth module is not turned on, step 302 is performed.
In this embodiment, a handle associated with the bluetooth module may be used to operate the bluetooth database, which corresponds to a key to open the bluetooth database, and the device information of the remote bluetooth device 200 may be obtained by querying the bluetooth database through the handle.
Step 302, if the bluetooth module is not started, the bluetooth module is started.
In this embodiment, when it is determined that the bluetooth module is not turned on, the bluetooth module is automatically turned on so as to perform subsequent device detection and pairing connection.
In the bluetooth testing method provided by the embodiment of the application, by detecting whether the bluetooth module is started or not, the bluetooth module is started under the condition that the bluetooth module is not started, and automatic detection of the remote bluetooth device 200 and pairing connection with the target pairing device are performed. Therefore, under the condition that a tester does not need to manually start the Bluetooth and manually select the corresponding Bluetooth equipment to pair and connect, the automatic detection of the remote Bluetooth equipment 200 and the automatic pairing and connection of the target pairing equipment can be carried out, the Bluetooth automatic test of the electronic equipment 100 is realized, and the test efficiency is improved.
Alternatively, the electronic device 100 is pre-established with a bluetooth communication port, and when the bluetooth communication port is opened, the bluetooth communication port can automatically transmit a broadcast packet and receive a response packet from a peripheral bluetooth device. Based on this, the step 201 includes: after the Bluetooth module is started, the Bluetooth communication port is opened, and the equipment detection packet is broadcasted through the Bluetooth communication port. The above step 202 includes: and receiving a response packet returned by the remote Bluetooth device 200 based on the device detection packet through the communication port.
In this embodiment, after the bluetooth module is opened, the network communication library (runtime library) is opened first, so as to use a socket (socket), and then open the bluetooth communication port through the socket api, and after opening, the bluetooth communication port will perform network communication with the peripheral remote bluetooth device 200, and the data packet is received and transmitted in a stream form, and the data communication protocol is rfcomm (serial port emulation protocol or called bluetooth analog serial port).
That is, when the bluetooth communication port is opened, the device probe packet can be automatically broadcasted through the bluetooth communication port, and the response packet returned from the peripheral remote bluetooth device 200 based on the device probe packet is received.
Optionally, in this embodiment, after the bluetooth communication port is created in the electronic device 100, the operating system of the electronic device 100 may bind (associate) some port services (services) to the bluetooth communication port, so that the bluetooth communication port is bound with the port services, and the port services may be used to process the received response packet. Based on this, the step 203 includes: and inquiring the port service bound to the Bluetooth communication port, and analyzing the response packet through the port service to obtain the MAC address of the remote Bluetooth device 200.
That is, after receiving the response packet returned by the remote bluetooth device 200 through the bluetooth communication port, the electronic device 100 firstly queries the port service bound to the bluetooth communication port, and then obtains the MAC address of the remote bluetooth device 200 that sent the response packet through the port service.
Optionally, in this embodiment, the electronic device 100 maintains a device list for storing device information of the detected remote bluetooth device 200. Based on this, referring to fig. 4, after step 204, the bluetooth testing method provided in the embodiment of the present application further includes:
step 401, if the device list does not store the device information of the remote bluetooth device, store the device information of the remote bluetooth device in the device list.
In this embodiment, after the electronic device 100 obtains the device information of the remote bluetooth device 200 by querying the bluetooth database, it may first determine whether the device information of the remote bluetooth device 200 is already stored in the currently maintained device list, if the device list does not store the device information of the remote bluetooth device 200, the device information of the remote bluetooth device 200 is stored, and if the device list already stores the device information of the remote bluetooth device 200, the device information does not need to be stored. In this embodiment, the device list may adopt a data structure of a hash table, similar to a cache, which can speed up the data lookup. The electronic device 100 stores the searched device information of the remote bluetooth device 200 by using the maintained device list, so as to facilitate the subsequent direct search of the device information of the remote bluetooth device 200 to be paired, thereby further improving the testing efficiency and reducing the resource consumption.
The electronic device 100 may be configured with the device unique identifier of the target paired device in advance, and when the electronic device 100 completes the detection of the remote bluetooth device 200 and stores the detected remote bluetooth information in the device list, the step 205 includes a sub-step 2051: and acquiring the equipment information matched with the equipment unique identifier of the target paired equipment from the equipment list to obtain the equipment information of the target paired equipment.
Taking the device unique identifier as an example of the device name, the electronic device 100 may query the device list according to the device name of the target paired device configured in advance by the tester, and when the remote bluetooth device 200 that is consistent with the device name of the target paired device exists in the device list, it indicates that the device information of the remote bluetooth device 200 is matched with the device name of the target paired device, and the device information of the remote bluetooth device 200 is the device information of the target paired device. Certainly, in other embodiments, the MAC address may also be used as the device unique identifier, the electronic device 100 queries the device list according to the MAC address of the target paired device, and when the remote bluetooth device 200 that is consistent with the MAC address of the target paired device exists in the device list, it indicates that the device information of the remote bluetooth device 200 is matched with the MAC address of the target paired device, and the device information of the remote bluetooth device 200 is the device information of the target paired device.
Optionally, after finding the device information of the target paired device in the device list, the electronic device 100 may determine whether the target paired device is paired according to the pairing identifier in the device information of the target paired device, if the target paired device is paired, the process is ended, and if the target paired device is not paired, the pairing connection is established with the target paired device. Referring to fig. 5, the step 206 includes the following sub-steps:
sub-step 2061, determine whether the target paired device is paired.
If the target pairing equipment is paired, ending the process; if the target paired device is not paired, sub-step 2062 is performed.
In sub-step 2062, if the pairing id in the device information of the target pairing device indicates that the target pairing device is unpaired, a callback function associated with the target pairing device is registered in the operating system of the electronic device.
In this embodiment, when the pairing identifier in the device information of the target paired device indicates that the target paired device is unpaired, a callback function associated with the target paired device is registered in an operating system of the electronic device 100, where the callback function is used to process a handshake verification packet sent back by the target paired device.
Substep 2063, initiating a pairing connection request to the target pairing device according to the device information of the target pairing device.
In this embodiment, when the pairing identifier in the device information of the target paired device indicates that the target paired device is unpaired, the electronic device 100 may initiate a pairing connection request to the target paired device, where the pairing connection request may carry information such as a bluetooth pairing password (default 1234, which may be set according to an actual situation), and a MAC address of the target paired device.
And a substep 2064 of receiving and processing a handshake verification packet returned by the target paired device based on the pairing connection request through the callback function, and sending a handshake confirmation packet to the target paired device according to the handshake verification packet, thereby establishing pairing connection with the target paired device.
In this embodiment, after receiving the pairing connection request sent by the electronic device 100, the target pairing device returns a handshake verification packet to the electronic device 100 according to the pairing connection request, and the electronic device 100 receives the handshake verification packet through the registered callback function, resets the check bit and the bluetooth pairing password again, and then returns a handshake confirmation packet to the target pairing device to complete the pairing connection with the target pairing device.
Optionally, after the electronic device 100 establishes the pairing connection with the target pairing device, the device information of the target pairing device may change, so that the device information of the target pairing device needs to be updated in the bluetooth database. Based on this, referring to fig. 6, after step 206, the bluetooth testing method provided in the embodiment of the present application further includes:
step 601, updating the device information of the target paired device in the bluetooth database.
In this embodiment, the pairing identifier in the device information stored in the bluetooth database is not paired by default, and the connection identifier is not connected by default, when the electronic device 100 establishes a pairing connection with the target paired device, the pairing identifier in the device information of the target paired device should be changed from unpaired before establishing the pairing connection to paired, and the connection identifier should be changed from unconnected before establishing the pairing connection to connected, so as to update the device information in the bluetooth database, and further inform the operating system that the target paired device is paired and connected. It should be understood that, after the electronic device 100 establishes the paired connection with the target paired device, in addition to updating the device information of the target paired device in the bluetooth database, the device information of the target paired device in the device list maintained by the electronic device 100 also needs to be updated synchronously, that is, the pairing identifier of the target paired device is changed from unpaired before the paired connection is established to paired in the device list, and the connection identifier is changed from unconnected before the paired connection is established to connected.
It should be understood that, although the steps in the flowcharts of fig. 2 to 6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a bluetooth test apparatus 700 comprising: a broadcast module 710, a receiving module 720, a parsing module 730, a database query module 740, a device information determination module 750, and a pairing module 760, wherein:
and the broadcasting module 710 is configured to broadcast the device probe packet after the bluetooth module is turned on.
A receiving module 720, configured to receive a response packet returned by the remote bluetooth device 200 based on the device probe packet.
And an analyzing module 730, configured to analyze the response packet to obtain the MAC address of the remote bluetooth device 200.
The database query module 740 is configured to obtain the device information of the bluetooth device matched with the MAC address from the bluetooth database, so as to obtain the device information of the remote bluetooth device 200.
And a device information determining module 750, configured to determine device information of the target paired device according to the detected device information of all remote bluetooth devices 200.
The pairing module 760 is configured to establish a pairing connection with the target pairing device according to the device information of the target pairing device.
Optionally, a bluetooth communication port is created in the electronic device 100 in advance, and the broadcasting module 710 is specifically configured to open the bluetooth communication port after the bluetooth module is opened, and broadcast the device detection packet through the bluetooth communication port. The receiving module 720 is specifically configured to receive, through the communication port, a response packet returned by the remote bluetooth device 200 based on the device probe packet.
Optionally, the bluetooth communication port is bound with a port service, and the parsing module 730 is specifically configured to query the port service bound to the bluetooth communication port, and parse the response packet through the port service to obtain the MAC address of the remote bluetooth device 200.
Optionally, the electronic device 100 maintains a device list, the device list is used for storing the device information of the detected remote bluetooth device 200, the device information further includes a device unique identifier, and the device unique identifier of the target paired device is preconfigured in the electronic device 100. Referring to fig. 8, the bluetooth test apparatus 700 may further include; bluetooth detection module 701, storage module 702 and update module 703, wherein:
and the Bluetooth detection module 701 is used for detecting whether the Bluetooth module is started or not, and if the Bluetooth module is not started, the Bluetooth module is started.
The storage module 702 is configured to, after the database querying module 740 obtains the device information of the bluetooth device matched with the MAC address from the bluetooth database to obtain the device information of the remote bluetooth device 200, store the device information of the remote bluetooth device 200 in the device list if the device list does not store the device information of the remote bluetooth device 200.
The device information determining module 750 is specifically configured to obtain the device information matched with the device unique identifier of the target paired device from the device list, so as to obtain the device information of the target paired device.
The device information further includes a pairing identifier, and the pairing module 760 is specifically configured to register a callback function associated with the target paired device with an operating system of the electronic device 100, initiate a pairing connection request to the target paired device according to the device information of the target paired device, receive and process a handshake verification packet returned by the target paired device based on the pairing connection request through the callback function, and send a handshake confirmation packet to the target paired device according to the handshake verification packet, so as to establish pairing connection with the target paired device, if the pairing identifier in the device information of the target paired device indicates that the target paired device is unpaired.
An updating module 703, configured to update the device information of the target paired device in the bluetooth database after the pairing module 760 establishes a pairing connection with the target paired device according to the device information of the target paired device; and updating the device information of the target paired device in the device list.
The bluetooth testing apparatus 700 according to an embodiment of the present application includes a broadcasting module 710, a receiving module 720, an analyzing module 730, a database querying module 740, a device information determining module 750, and a pairing module 760, wherein after the broadcasting module 710 turns on the bluetooth module, the method includes the steps of broadcasting an equipment detection packet, receiving a response packet returned by a remote Bluetooth equipment 200 based on the equipment detection packet through a receiving module 720, analyzing the response packet through an analyzing module 730 to obtain an MAC address of the remote Bluetooth equipment 200, obtaining equipment information of the Bluetooth equipment matched with the MAC address from a Bluetooth database through a database inquiring module 740 to obtain the equipment information of the remote Bluetooth equipment 200, determining equipment information of a target paired equipment through an equipment information determining module 750 according to detected equipment information of all remote Bluetooth equipment 200, and establishing pairing connection between the target paired equipment and the target paired equipment through a pairing module 760 according to the equipment information of the target paired equipment. Therefore, in the whole Bluetooth test process, the corresponding Bluetooth equipment does not need to be manually selected by a tester for pairing connection, the Bluetooth automatic test of the electronic equipment 100 is realized, and the test efficiency is improved.
For the specific definition of the bluetooth testing apparatus 700, reference may be made to the definition of the bluetooth testing method mentioned above, and details are not described herein again. The various modules in the bluetooth test apparatus 700 may be implemented in whole or in part by software, hardware, and a combination thereof. The modules may be embedded in a hardware form or may be independent of a processor in the electronic device 100, or may be stored in a memory in the electronic device 100 in a software form, so that the processor calls to execute operations corresponding to the modules.
In one embodiment, an electronic device 100 is provided, where the electronic device 100 may be a terminal, and the internal structure of the electronic device may be as shown in fig. 9. The electronic device 100 includes a processor 110, a memory, a communication interface 120, a display 130, and an input device 140 connected by a system bus. Wherein the processor 110 of the electronic device 100 is configured to provide computing and control capabilities. The memory of the electronic apparatus 100 includes a nonvolatile storage medium 151 and an internal memory 152. The nonvolatile storage medium 151 stores an operating system and a computer program. The internal memory 152 provides an environment for the operating system and the computer program in the nonvolatile storage medium 151 to run. The communication interface 120 of the electronic device 100 is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner may be implemented by bluetooth, WIFI, operator network, Near Field Communication (NFC), or other technologies. The computer program is executed by the processor 110 to implement the steps of a bluetooth test method. The display 130 of the electronic device 100 may be a liquid crystal display or an electronic ink display, and the input device 140 of the electronic device 100 may be a touch layer covered on the display 130, a key, a trackball or a touch pad arranged on a housing of the electronic device 100, or an external keyboard, a touch pad or a mouse.
Those skilled in the art will appreciate that the structure shown in fig. 9 is a block diagram of only a portion of the structure relevant to the present application, and does not constitute a limitation on the electronic device 100 to which the present application is applied, and that a particular electronic device 100 may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
In one embodiment, the bluetooth test apparatus 700 provided by the present application may be implemented in the form of a computer program, and the computer program may be run on the electronic device 100 as shown in fig. 9. The memory of the electronic device 100 may store various program modules constituting the bluetooth testing apparatus 700, such as the broadcasting module 710, the receiving module 720, the parsing module 730, the database querying module 740, the device information determining module 750, and the pairing module 760 shown in fig. 7. The respective program modules constitute computer programs that cause the processor 110 to execute the steps in the bluetooth test method of the various embodiments of the present application described in the present specification.
For example, the electronic device 100 shown in fig. 9 may broadcast the device probe packet after turning on the bluetooth module by the broadcast module 710 in the bluetooth test apparatus 700 shown in fig. 7. The electronic device 100 may perform receiving of the reply packet returned by the remote bluetooth device 200 based on the device probe packet through the receiving module 720. The electronic device 100 may perform parsing of the response packet by the parsing module 730 to obtain the MAC address of the remote bluetooth device 200. The electronic device 100 may perform the device information of the bluetooth device matching the MAC address from the bluetooth database through the database query module 740 to obtain the device information of the remote bluetooth device 200. The electronic device 100 may perform the determination of the device information of the target pairing device according to the detected device information of all the remote bluetooth devices 200 through the device information determination module 750. The electronic device 100 may perform the pairing connection with the target pairing device according to the device information of the target pairing device through the pairing module 760.
In one embodiment, an electronic device 100 is provided, comprising a memory storing a computer program and a processor 110, the processor 110 implementing the following steps when executing the computer program: after the Bluetooth module is started, broadcasting a device detection packet; receiving a response packet returned by the remote Bluetooth device 200 based on the device detection packet; analyzing the response packet to obtain the MAC address of the remote Bluetooth device 200; acquiring the equipment information of the Bluetooth equipment matched with the MAC address from the Bluetooth database to obtain the equipment information of the remote Bluetooth equipment 200; determining the device information of the target paired device according to the detected device information of all the remote Bluetooth devices 200; and establishing pairing connection with the target pairing equipment according to the equipment information of the target pairing equipment.
In one embodiment, the processor 110, when executing the computer program, further performs the steps of: after the Bluetooth module is started, opening a Bluetooth communication port, and broadcasting an equipment detection packet through the Bluetooth communication port; and receiving a response packet returned by the remote Bluetooth device 200 based on the device detection packet through the communication port.
In one embodiment, the processor 110 when executing the computer program further performs the steps of: inquiring port service bound by a Bluetooth communication port; the response packet is parsed by the port service to obtain the MAC address of the remote bluetooth device 200.
In one embodiment, the processor 110, when executing the computer program, further performs the steps of: if the device information of the remote bluetooth device 200 is not stored in the device list, the device information of the remote bluetooth device 200 is stored in the device list, and the device information matched with the device unique identifier of the target paired device is acquired from the device list to obtain the device information of the target paired device.
In one embodiment, the processor 110, when executing the computer program, further performs the steps of: if the pairing identifier in the device information of the target pairing device represents that the target pairing device is unpaired, registering a callback function associated with the target pairing device with an operating system of the electronic device 100; initiating a pairing connection request to the target pairing equipment according to the equipment information of the target pairing equipment; and receiving and processing a handshake verification packet returned by the target pairing equipment based on the pairing connection request through the callback function, and sending a handshake confirmation packet to the target pairing equipment according to the handshake verification packet, thereby establishing pairing connection with the target pairing equipment.
In one embodiment, the processor 110, when executing the computer program, further performs the steps of: and updating the device information of the target paired device in a Bluetooth database.
In one embodiment, the processor 110 when executing the computer program further performs the steps of: detecting whether the Bluetooth module is started; and if the Bluetooth module is not started, starting the Bluetooth module.
After the bluetooth module is turned on, the electronic device 100 receives a response packet returned by the remote bluetooth device 200 based on the device detection packet through the broadcasting device detection packet, obtains an MAC address of the remote bluetooth device 200 by parsing the response packet, obtains device information of the bluetooth device matched with the MAC address from the bluetooth database, obtains device information of the remote bluetooth device 200, determines device information of a target paired device according to all detected device information of the remote bluetooth device 200, and establishes pairing connection with the target paired device according to the device information of the target paired device. Therefore, in the whole Bluetooth test process, the corresponding Bluetooth equipment does not need to be manually selected by a tester to be connected in a pairing mode, the Bluetooth automatic test of the electronic equipment 100 is achieved, and the test efficiency is improved.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when executed by a processor 110, performs the steps of: after the Bluetooth module is started, broadcasting a device detection packet; receiving a response packet returned by the remote Bluetooth device 200 based on the device detection packet; analyzing the response packet to obtain the MAC address of the remote Bluetooth device 200; acquiring the equipment information of the Bluetooth equipment matched with the MAC address from the Bluetooth database to obtain the equipment information of the remote Bluetooth equipment 200; determining the device information of the target paired device according to the detected device information of all the remote Bluetooth devices 200; and establishing pairing connection with the target pairing equipment according to the equipment information of the target pairing equipment.
In one embodiment, the computer program when executed by the processor 110 further performs the steps of: after the Bluetooth module is started, opening a Bluetooth communication port, and broadcasting an equipment detection packet through the Bluetooth communication port; and receiving a response packet returned by the remote Bluetooth device 200 based on the device detection packet through the communication port.
In one embodiment, the computer program when executed by the processor 110 further performs the steps of: inquiring port service bound by a Bluetooth communication port; the response packet is parsed by the port service to obtain the MAC address of the remote bluetooth device 200.
In one embodiment, the computer program when executed by the processor 110 further performs the steps of: if the device information of the remote bluetooth device 200 is not stored in the device list, the device information of the remote bluetooth device 200 is stored in the device list, and the device information matched with the device unique identifier of the target paired device is acquired from the device list to obtain the device information of the target paired device.
In one embodiment, the computer program when executed by the processor 110 further performs the steps of: if the pairing identifier in the device information of the target pairing device represents that the target pairing device is unpaired, registering a callback function associated with the target pairing device with an operating system of the electronic device 100; initiating a pairing connection request to the target pairing equipment according to the equipment information of the target pairing equipment; and receiving and processing a handshake verification packet returned by the target pairing equipment based on the pairing connection request through a callback function, and sending a handshake confirmation packet to the target pairing equipment according to the handshake verification packet, thereby establishing pairing connection with the target pairing equipment.
In one embodiment, the computer program when executed by the processor 110 further performs the steps of: and updating the equipment information of the target paired equipment in a Bluetooth database.
In one embodiment, the computer program when executed by the processor 110 further performs the steps of: detecting whether the Bluetooth module is started; and if the Bluetooth module is not started, starting the Bluetooth module.
The computer-readable storage medium provided in this embodiment receives, through a broadcast device probe packet, a response packet returned by a remote bluetooth device 200 based on the device probe packet after a bluetooth module is turned on, obtains an MAC address of the remote bluetooth device 200 by parsing the response packet, obtains device information of a bluetooth device matching the MAC address from a bluetooth database, obtains device information of the remote bluetooth device 200, determines device information of a target paired device according to all detected device information of the remote bluetooth device 200, and establishes paired connection with the target paired device according to the device information of the target paired device. Therefore, in the whole Bluetooth test process, the corresponding Bluetooth equipment does not need to be manually selected by a tester for pairing connection, the Bluetooth automatic test of the electronic equipment 100 is realized, and the test efficiency is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware that is instructed by a computer program, and the computer program may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not to be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A Bluetooth test method is applied to an electronic device, the electronic device includes a Bluetooth module, a Bluetooth database is prestored in the electronic device, the Bluetooth database records device information of a plurality of Bluetooth devices, the device information includes MAC addresses, the electronic device maintains a device list, the device list is used for storing detected device information of remote Bluetooth devices, the device information further includes a device unique identifier, and a device unique identifier of a target paired device is preconfigured in the electronic device, the method includes:
after the Bluetooth module is started, broadcasting a device detection packet;
receiving a response packet returned by the remote Bluetooth device based on the device detection packet;
analyzing the response packet to obtain the MAC address of the remote Bluetooth equipment;
acquiring the equipment information of the Bluetooth equipment matched with the MAC address from the Bluetooth database to obtain the equipment information of the remote Bluetooth equipment;
if the equipment information of the remote Bluetooth equipment is not stored in the equipment list, storing the equipment information of the remote Bluetooth equipment into the equipment list;
determining the device information of the target paired device according to the detected device information of all remote Bluetooth devices;
the determining the device information of the target paired device according to the detected device information of all remote bluetooth devices includes:
acquiring equipment information matched with the equipment unique identifier of the target paired equipment from the equipment list to obtain the equipment information of the target paired equipment;
and establishing pairing connection with the target pairing equipment according to the equipment information of the target pairing equipment.
2. The method of claim 1, wherein a bluetooth communication port is pre-created in the electronic device, and wherein broadcasting a device probe packet after turning on the bluetooth module comprises:
after the Bluetooth module is started, opening the Bluetooth communication port, and broadcasting an equipment detection packet through the Bluetooth communication port;
the receiving of the response packet returned by the remote bluetooth device based on the device detection packet includes:
and receiving a response packet returned by the remote Bluetooth equipment based on the equipment detection packet through the communication port.
3. The method of claim 2, wherein the bluetooth communication port is bound with a port service, and the parsing the response packet to obtain the MAC address of the remote bluetooth device comprises:
inquiring the port service bound by the Bluetooth communication port;
and analyzing the response packet through the port service to obtain the MAC address of the remote Bluetooth equipment.
4. The method according to claim 1, wherein the device information further includes a pairing identifier, and the establishing a pairing connection with the target pairing device according to the device information of the target pairing device includes:
if the pairing identification in the device information of the target pairing device represents that the target pairing device is unpaired, registering a callback function associated with the target pairing device with an operating system of the electronic device;
initiating a pairing connection request to the target pairing equipment according to the equipment information of the target pairing equipment;
and receiving and processing a handshake verification packet returned by the target pairing equipment based on the pairing connection request through the callback function, and sending a handshake confirmation packet to the target pairing equipment according to the handshake verification packet, thereby establishing pairing connection with the target pairing equipment.
5. The method according to claim 1, wherein after the pairing connection is established with the target pairing device according to the device information of the target pairing device, the method further comprises:
and updating the equipment information of the target pairing equipment in the Bluetooth database.
6. The method of any of claims 1-5, wherein after the Bluetooth module is turned on, before broadcasting the device probe packet, the method further comprises:
detecting whether the Bluetooth module is started;
and if the Bluetooth module is not started, starting the Bluetooth module.
7. The utility model provides a bluetooth testing arrangement, characterized in that is applied to electronic equipment, electronic equipment includes bluetooth module, the prestore has bluetooth database in the electronic equipment, bluetooth database record has the device information of a plurality of bluetooth devices, the device information includes the MAC address, electronic equipment maintains the device list, the device list is used for storing the device information of the long-range bluetooth device that detects, the device information still includes the unique sign of equipment, the device unique sign of target pairing device has been preconfigured in the electronic equipment, the device includes:
the broadcasting module is used for broadcasting the equipment detection packet after the Bluetooth module is started;
the receiving module is used for receiving a response packet returned by the remote Bluetooth equipment based on the equipment detection packet;
the analysis module is used for analyzing the response packet to obtain the MAC address of the remote Bluetooth equipment;
the database query module is used for acquiring the equipment information of the Bluetooth equipment matched with the MAC address from the Bluetooth database to obtain the equipment information of the remote Bluetooth equipment;
the storage module is used for acquiring the equipment information of the Bluetooth equipment matched with the MAC address from the Bluetooth database by the database inquiry module, and storing the equipment information of the remote Bluetooth equipment into the equipment list if the equipment information of the remote Bluetooth equipment is not stored in the equipment list after the equipment information of the remote Bluetooth equipment is acquired;
the device information determining module is used for determining the device information of the target paired device according to the detected device information of all the remote Bluetooth devices;
the determining the device information of the target paired device according to the detected device information of all remote bluetooth devices includes:
acquiring equipment information matched with the equipment unique identifier of the target paired equipment from the equipment list to obtain the equipment information of the target paired equipment;
and the pairing module is used for establishing pairing connection with the target pairing equipment according to the equipment information of the target pairing equipment.
8. An electronic device, comprising a processor and a memory, the memory storing a computer program, the processor implementing the steps of the method according to any one of claims 1-6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202011133733.4A 2020-10-21 2020-10-21 Bluetooth testing method and device, electronic equipment and computer readable storage medium Active CN112261635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011133733.4A CN112261635B (en) 2020-10-21 2020-10-21 Bluetooth testing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011133733.4A CN112261635B (en) 2020-10-21 2020-10-21 Bluetooth testing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112261635A CN112261635A (en) 2021-01-22
CN112261635B true CN112261635B (en) 2022-09-23

Family

ID=74264420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011133733.4A Active CN112261635B (en) 2020-10-21 2020-10-21 Bluetooth testing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112261635B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660649B (en) * 2021-08-13 2024-10-01 Oppo广东移动通信有限公司 Bluetooth device discovery method, device, terminal and storage medium
CN113473435B (en) * 2021-08-19 2024-06-21 Oppo广东移动通信有限公司 Bluetooth-based device connection method and device, electronic device and storage medium
CN113726891B (en) * 2021-08-31 2024-07-26 中联重科建筑起重机械有限责任公司 Method and device for establishing communication connection and engineering machinery
CN114339591B (en) * 2021-12-09 2024-03-08 青岛海信移动通信技术有限公司 Method and related device for positioning based on ultra-wideband chip
CN113886056B (en) * 2021-12-09 2022-03-18 飞天诚信科技股份有限公司 Method and system for accessing Bluetooth equipment under MAC OS system
CN114205798A (en) * 2021-12-13 2022-03-18 南京汉隆科技有限公司 Bluetooth function test method
CN114189842A (en) * 2022-01-06 2022-03-15 深圳市杰科数码有限公司 Bluetooth connection method and system
CN114553328B (en) * 2022-02-22 2023-10-20 深圳市冠旭电子股份有限公司 Bluetooth device testing method and device, electronic device and storage medium
CN114827967B (en) * 2022-03-10 2023-08-01 上海富芮坤微电子有限公司 Software updating method, bluetooth device and storage medium
CN115102634B (en) * 2022-05-12 2023-09-26 深圳市科陆电子科技股份有限公司 Method and device for testing Bluetooth function of electric energy meter, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018161370A1 (en) * 2017-03-06 2018-09-13 深圳大趋智能科技有限公司 Automatic testing method, device, and system for bluetooth pos terminal
CN110071744A (en) * 2019-04-23 2019-07-30 深圳创维数字技术有限公司 Bluetooth equipment test method, device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010082334A1 (en) * 2009-01-15 2010-07-22 三菱電機株式会社 Communication device, communication system, and method for connecting devices
CN102801484B (en) * 2012-06-08 2015-06-17 广东欧珀移动通信有限公司 Automatic Bluetooth rate test method based on Android
CN106656358A (en) * 2016-11-21 2017-05-10 芯海科技(深圳)股份有限公司 Low-power-consumption Bluetooth testing method
CN106850091A (en) * 2017-02-03 2017-06-13 珠海市杰理科技股份有限公司 Bluetooth equipment method of testing and system
CN108990035B (en) * 2018-09-07 2021-10-22 上海华测导航技术股份有限公司 Bluetooth function detection method, device, equipment and storage medium
CN111194097A (en) * 2018-11-14 2020-05-22 奇酷互联网络科技(深圳)有限公司 Mobile terminal, Bluetooth connection method and storage device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018161370A1 (en) * 2017-03-06 2018-09-13 深圳大趋智能科技有限公司 Automatic testing method, device, and system for bluetooth pos terminal
CN110071744A (en) * 2019-04-23 2019-07-30 深圳创维数字技术有限公司 Bluetooth equipment test method, device and storage medium

Also Published As

Publication number Publication date
CN112261635A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN112261635B (en) Bluetooth testing method and device, electronic equipment and computer readable storage medium
WO2017020654A1 (en) Wireless network access method and device
US8055762B2 (en) Method and system for location identification
CN110869907B (en) Method and terminal for browsing application page
RU2609134C2 (en) Method, device and network equipment to obtain attribute information
CN105808399B (en) Remote debugging method and device
TWI698133B (en) Wireless network type detection method, device and electronic equipment
WO2018103402A1 (en) Wireless fidelity (wifi) scan method and related product
US20140200030A1 (en) Identification-assisted wireless network connections
US20190340150A1 (en) System for sharing content between electronic devices, and content sharing method for electronic device
CN113672441B (en) Method and device for testing intelligent equipment
CN112866348B (en) Database access method and device, computer equipment and storage medium
CN105323748B (en) Test error uploading method and device
US20140282057A1 (en) System for applying applications of different operating systems in one electronic device and method thereof
CN105873180B (en) Method and apparatus for setting up wireless connection
CN107205238B (en) Method and terminal for realizing WIFI probe in android system
US10554760B2 (en) Method and networking equipment for acquiring feature information
CN112788545A (en) Binding method, computer device and storage medium
WO2018076613A1 (en) Traffic control method and apparatus for wireless network connection, and readable storage medium
CN113961427B (en) System memory analysis method and electronic equipment
WO2022073196A1 (en) Information processing method and apparatus, and storage medium
CN114585055A (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN109639757B (en) File downloading method, terminal and server
CN107018005A (en) event triggering method, event management system and system
CN106844188A (en) A kind of test agent method, device and test system

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