CN115776648A - Bluetooth broadcasting method and device and computer equipment - Google Patents

Bluetooth broadcasting method and device and computer equipment Download PDF

Info

Publication number
CN115776648A
CN115776648A CN202211453028.1A CN202211453028A CN115776648A CN 115776648 A CN115776648 A CN 115776648A CN 202211453028 A CN202211453028 A CN 202211453028A CN 115776648 A CN115776648 A CN 115776648A
Authority
CN
China
Prior art keywords
identification information
bluetooth
broadcast
broadcast name
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211453028.1A
Other languages
Chinese (zh)
Inventor
杨永元
李佳雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kaihui Electronic Technology Co ltd
Original Assignee
Shenzhen Kaihui Electronic 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 Shenzhen Kaihui Electronic Technology Co ltd filed Critical Shenzhen Kaihui Electronic Technology Co ltd
Priority to CN202211453028.1A priority Critical patent/CN115776648A/en
Publication of CN115776648A publication Critical patent/CN115776648A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a Bluetooth broadcasting method, a device and computer equipment, wherein the Bluetooth broadcasting method comprises the following steps: s101, obtaining identification information of the electronic equipment. S102, judging whether the identification information is matched with the set identification information. And S103, if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information. And S104, otherwise, generating a default broadcast name. And S105, generating a broadcast name and broadcasting the broadcast name to the outside in a Bluetooth mode. Therefore, each keyboard can generate different Bluetooth broadcast names through the Mac address of the burning tool burning equipment, each keyboard is provided with the corresponding broadcast name, and when multiple Bluetooth devices broadcast simultaneously, other Bluetooth devices can accurately find the devices to be connected through different Bluetooth broadcast names.

Description

Bluetooth broadcasting method and device and computer equipment
Technical Field
The invention relates to the technical field of electronics, in particular to a Bluetooth broadcasting method, a Bluetooth broadcasting device and computer equipment.
Background
The Bluetooth device is convenient for other Bluetooth devices to be connected with the Bluetooth device by broadcasting the Bluetooth broadcast name, and when the other Bluetooth devices are connected with the Bluetooth device, the Bluetooth device is mainly connected with the other Bluetooth devices by the corresponding Bluetooth broadcast name. When there are several bluetooth devices around, the bluetooth devices broadcast default broadcast names, which are usually the same broadcast name. Therefore, in the test stage of the Bluetooth equipment or in a scene that a plurality of pieces of Bluetooth equipment are simultaneously applied, when other Bluetooth equipment search the Bluetooth equipment, a plurality of Bluetooth broadcast names with the same name can be searched, so that the Bluetooth equipment to be connected cannot be accurately found, and the problems of connection errors of the Bluetooth equipment and the like are caused.
Disclosure of Invention
The present invention is directed to solving, at least in part, one of the technical problems in the related art. Therefore, one objective of the present invention is to provide a bluetooth broadcasting method, apparatus and computer device.
On one hand, to achieve the above object, according to a bluetooth broadcasting method of an embodiment of the present invention, the bluetooth broadcasting method includes the steps of:
acquiring identification information of the electronic equipment;
judging whether the identification information is matched with set identification information or not;
if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information;
otherwise, generating a default broadcast name;
and generating a broadcast name to be broadcast externally in a Bluetooth mode.
Further, according to an embodiment of the present invention, the identification information is a MAC address or a sequence number.
Further, according to an embodiment of the present invention, the method for determining whether the identification information matches the set identification information includes:
comparing the MAC address or the serial number of the electronic equipment with data in a set range;
judging whether the MAC address or the serial number of the electronic equipment falls into a set range of data, if so, judging that the identification information is matched with set identification information;
otherwise, judging that the identification information is not matched with the set identification information.
Further, according to an embodiment of the present invention, the method for generating a broadcast name corresponding to the setting identification information includes:
calculating the sequencing position of the MAC address or the serial number in the data in the set range;
and generating a broadcast name corresponding to the sorting position.
Further, according to an embodiment of the present invention, the bluetooth broadcasting method further includes:
and judging whether a set broadcast name is stored in the electronic equipment, and if the set broadcast name is stored, broadcasting the set broadcast name to the outside in a Bluetooth mode.
In another aspect, the present invention further provides a bluetooth broadcasting apparatus, including:
the identification information acquisition module is used for acquiring identification information of the electronic equipment;
the information matching judgment module is used for judging whether the identification information is matched with the set identification information;
a broadcast name generation module for generating a broadcast name corresponding to the set identification information if the identification information matches with the set identification information;
the default broadcast name generating module is used for generating a default broadcast name when the identification information is not matched with the set identification information;
and the Bluetooth broadcasting module is used for broadcasting the generated broadcast name to the outside in a Bluetooth mode.
Further, according to an embodiment of the present invention, the information matching determining module includes:
the data comparison module is used for comparing the MAC address or the serial number of the electronic equipment with data in a set range;
the data judgment module is used for judging that the MAC address or the serial number of the electronic equipment falls into a set range of data, and if the MAC address or the serial number of the electronic equipment falls into the set range of the data, judging that the identification information is matched with set identification information; otherwise, judging that the identification information is not matched with the set identification information.
Further, according to an embodiment of the present invention, the broadcast name generating module includes:
a sorting position calculation module, configured to calculate a sorting position in data in which the MAC address or the serial number is located within the set range;
a sorted broadcast name generation module for generating a broadcast name corresponding to the sorted position.
Further, according to an embodiment of the present invention, the bluetooth broadcasting apparatus further includes:
and the broadcast name setting broadcast module is used for judging whether the set broadcast name is stored in the electronic equipment or not, and if the set broadcast name is stored, the set broadcast name is broadcasted outwards in a Bluetooth mode.
In still another aspect, an embodiment of the present invention further provides a computer device, where the computer device includes a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, where the first processor implements the bluetooth broadcast method when executing the computer program.
In the Bluetooth broadcasting method, the Bluetooth broadcasting device and the computer equipment, identification information of the electronic equipment is acquired through S101. S102, judging whether the identification information is matched with the set identification information. And S103, if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information. And S104, if not, generating a default broadcast name. And S105, generating a broadcast name and broadcasting the broadcast name to the outside in a Bluetooth mode. Therefore, each keyboard can generate different Bluetooth broadcast names through the Mac address of the burning tool burning equipment, each keyboard is provided with the corresponding broadcast name, and when multiple Bluetooth devices broadcast simultaneously, other Bluetooth devices can accurately find the devices to be connected through different Bluetooth broadcast names.
Drawings
Fig. 1 is a flowchart of a bluetooth broadcasting method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining whether the identification information matches set identification information according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for generating a broadcast name corresponding to the set identifier according to an embodiment of the present invention;
fig. 4 is a flowchart of another bluetooth broadcasting method according to an embodiment of the present invention;
fig. 5 is a flowchart of another bluetooth broadcasting method according to an embodiment of the present invention;
fig. 6 is a block diagram of a bluetooth broadcasting apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of a structure of an information matching determination module according to an embodiment of the present invention;
fig. 8 is a block diagram of a broadcast name generation module according to an embodiment of the present invention;
fig. 9 is a block diagram of another bluetooth broadcasting apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of a computer device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein may be combined with other embodiments.
The Bluetooth device is convenient for other Bluetooth devices to be connected with the Bluetooth device through broadcasting the Bluetooth broadcast name, and when the other Bluetooth devices are connected with the Bluetooth device, the Bluetooth device is mainly connected with the Bluetooth device through corresponding Bluetooth broadcast names. When a plurality of bluetooth devices are around, the plurality of bluetooth devices broadcast a default broadcast name, which is usually the same broadcast name. Therefore, in the test stage of the Bluetooth equipment or in the scene that a plurality of Bluetooth equipment are simultaneously applied, when other Bluetooth equipment search the Bluetooth equipment, a plurality of Bluetooth broadcast names with the same name can be searched, so that the Bluetooth equipment to be connected cannot be accurately found, and the problems of connection errors and the like of the Bluetooth equipment are caused.
In order to solve the above problem, in one aspect, referring to fig. 1, an embodiment of the present invention provides a bluetooth broadcasting method, including:
s101, obtaining identification information of the electronic equipment.
S102, judging whether the identification information is matched with the set identification information.
And S103, if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information.
And S104, if not, generating a default broadcast name.
And S105, generating a broadcast name and broadcasting the broadcast name to the outside in a Bluetooth mode.
Specifically, as shown in fig. 1, in step S101, the electronic device obtains its own unique identification information. Wherein, the electronic equipment is a Bluetooth equipment. For example, it may be a bluetooth keyboard. In one embodiment of the present invention, the unique identification information is a MAC address or a serial number. Due to the uniqueness of the MAC address or the serial number, the electronic equipment can be uniquely identified. Therefore, the MAC address or the serial number can be conveniently associated with the Bluetooth broadcast name in the subsequent steps, and the dissimilarity setting of the broadcast names of different electronic equipment can be realized.
After the unique identification information of the electronic device is obtained, in step S102, it is determined whether the unique identification information matches the set identification information; as the range of unique identification information for electronic devices can be quite large. Only when the unique identification information of the electronic device falls within the set range and is matched with the set identification information, the generation processing of the bluetooth broadcast name is performed through the step S103, so that the complicated and time-consuming operation process is reduced. For example, the unique identification information is a MAC address or a serial number. The range of the MAC address is very large, and if the unique identification information of the electronic device is obtained and compared with all MAC addresses one by one, the calculation amount is very large, and the purpose of quickly generating the broadcast name cannot be achieved. In addition, in bluetooth device production or application of an enterprise, the number of bluetooth device production, testing or application is often limited. For example, when an enterprise produces a batch of bluetooth keyboards, usually thousands or tens of thousands of bluetooth keyboards, the number of the bluetooth keyboards is limited when testing a batch of bluetooth keyboards, and therefore only the broadcast names of the limited number of bluetooth keyboards need to be distinguished.
In step S103, if the identification information matches with the set identification information, a broadcast name corresponding to the set identification information is generated; that is, when the acquired unique identification information of the electronic device matches or is the same as some identification information in the set identification information, a broadcast name corresponding to the set identification information is generated; thus, the broadcast name is not only unique, but also easily identified. When broadcasting the generated broadcast name, the method is more convenient for other Bluetooth equipment to connect and avoids errors.
In step S104, if the bluetooth device Mac address is not within the set range, the software default broadcast name is used. Therefore, errors caused by the fact that no broadcast name is generated are avoided, and normal use of the Bluetooth device is guaranteed. And the generated broadcast name is broadcasted to the outside through a bluetooth mode through step S105.
In the embodiment of the invention, the unique identification information of the electronic equipment is acquired through S101. S102, judging whether the identification information is matched with the set identification information. And S103, if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information. And S104, if not, generating a default broadcast name. And S105, generating a broadcast name and broadcasting the broadcast name to the outside in a Bluetooth mode. Therefore, each keyboard can generate different serial numbers and Bluetooth broadcast names through the Mac address of the burning tool burning equipment, each keyboard is provided with the corresponding serial number and the corresponding broadcast name, and when multiple Bluetooth devices broadcast simultaneously, other Bluetooth devices can accurately find the devices to be connected through the different Bluetooth broadcast names.
Referring to fig. 2, in an embodiment of the present invention, the method for determining whether the identification information matches the set identification information includes:
s1021, comparing the MAC address or the serial number of the electronic equipment with data in a set range;
s1022, judging that the MAC address or the serial number of the electronic equipment falls into the set range of the data;
s1023, if yes, judging that the identification information is matched with the set identification information;
and S1024, if not, judging that the identification information is not matched with the set identification information.
Specifically, as shown in fig. 2, in step S101, by acquiring unique identification information of the electronic device; the unique identification information may be a bluetooth Mac address of the electronic device (keyboard), and the Mac address or serial number of the electronic device is compared with data in a set range through step S1021; for example: a keyboard has a Mac address of 301F9A80EDCF, and software sets the address field to 301F9A80EDCF-F015 by comparing the Mac address of 301F9A80EDCF with the data set to 301F9A80 EDCF-301F 9A80F 015. It is judged by step S1022 that the Mac address 301F9a80EDCF falls within the data range of the set address segment 301F9a80 EDCF-F015. Thus, it can be judged through step S1023 that the identification information matches the set identification information. For another example, when the Mac address of the electronic device is 301F9a80EDCE or 301F9a80F016, the Mac address of the electronic device does not fall within the data range of the set address segment 301F9a80 EDCF-301F 9a80F 015. Thus, it can be determined through step S1024 that the identification information is not matched with the set identification information. In other embodiments, the method for matching the serial number and the SN number by determining is similar to the steps S1021 to S1024, and the description is not repeated again.
Referring to fig. 3, in another embodiment of the present invention, the method for generating the broadcast name corresponding to the setting identification information includes the steps of:
s1031, calculating the sorting position of the MAC address or the serial number in the data in the set range;
s1032, generating a broadcast name corresponding to the sorting position.
Specifically, after the MAC address or the serial number of the electronic device is determined to fall within the set address field range of the data, since the MAC address of the electronic device (for example, a bluetooth keyboard) is within the set range, the software calculates which MAC address or serial number the keyboard MAC address is in the software set range, searches for the sorting position where the serial number is located, and then generates a broadcast name according to the serial number. For example, if the Mac address 301F9a80EDCF of the Keyboard is located at the first position in the sequence of Mac addresses 301F9a80EDCF 301F9a80F015, the serial number of the Keyboard is 0001, and the Keyboard has a broadcast name "Keyboard 0001". For another example: the Mac address 301F9a80EDD0 of the Keyboard is located at the second position in the Mac address 301F9a80EDCF 301F9a80F015, the serial number of the Keyboard is 0002, and the Keyboard has a broadcast name "Keyboard 0002". And so on. By such generation of the broadcast name, the broadcast name is made simpler and easier to recognize.
It should be noted that, in other embodiments, the broadcast name may be produced in other forms, which is not the form of the alphanumeric "Keyboard 0002" exemplified by the embodiments of the present invention. Other similar equivalent alternative embodiments are also intended to be within the scope of the present invention.
Referring to fig. 3, in an embodiment of the present invention, the bluetooth broadcasting method further includes: s201, judging whether a set broadcast name is stored in the electronic equipment; if the set broadcast name is stored, the set broadcast name is broadcasted to the outside in a Bluetooth mode. As shown in fig. 3, in one embodiment of the present invention, it may also be detected through S201 whether a set broadcast name has been stored in the electronic device. The set broadcast name may be manually set by the user, or manually set by the tester when testing the electronic device, or may be stored after the broadcast names generated after steps S101 to S103 in fig. 1 are stored. In step S201, if it is detected that the set broadcast name is already stored in the electronic device, the set broadcast name may be directly broadcasted to the outside, and there is no need to regenerate the broadcast name through steps S101 to S103 in fig. 1 (or steps S202 to S204 in fig. 4).
Referring to fig. 5, fig. 5 is a flowchart of another bluetooth broadcasting method according to an embodiment of the present invention, and the present invention is further described with reference to fig. 6, as shown in fig. 5, when the bluetooth device is powered on, the adv _ name variable of the flash memory is read, and it is determined whether a broadcast name is already stored, and if the broadcast name is stored, the broadcast name may be directly stored for broadcasting. Otherwise, the unique identification information of the electronic equipment is obtained by reading the mac address of the flash memory. And judging whether the mac address is in the range of the mac address field set by the software, if not, directly using a default broadcast name to carry out Bluetooth broadcast. If the address is in the set range of the mac address field, a broadcast name is generated according to the read mac address, and the generated broadcast name is broadcasted, because the mac address has uniqueness. The broadcast names generated in this way can be different from one another, and the occurrence of the same broadcast name is avoided. During the test of bluetooth equipment, can connect the bluetooth broadcast name of sequencing in proper order one by one, test one by one to a plurality of bluetooth keyboards, avoid connecting mistake or retest.
In another aspect, referring to fig. 6, the present invention further provides a bluetooth broadcasting apparatus, including: the system comprises an identification information acquisition module, an information matching judgment module, a broadcast name generation module, a default broadcast name generation module and a Bluetooth broadcast module, wherein the identification information acquisition module is used for acquiring unique identification information of the electronic equipment.
The information matching judgment module is used for judging whether the unique identification information is matched with the set identification information.
The broadcast name generation module is used for generating a broadcast name corresponding to the set identification information if the identification information is matched with the set identification information.
And the default broadcast name generating module is used for generating a default broadcast name when the identification information is not matched with the set identification information.
The Bluetooth broadcast module is used for broadcasting the generated broadcast name to the outside in a Bluetooth mode.
Referring to fig. 7, in an embodiment of the present invention, the information matching determining module includes: the device comprises a data comparison module and a data judgment module, wherein the data comparison module is used for comparing the MAC address or the serial number of the electronic equipment with data in a set range.
The data judgment module is used for judging whether the MAC address or the serial number of the electronic equipment falls into a set range of data, and if so, judging that the identification information is matched with set identification information; otherwise, judging that the identification information is not matched with the set identification information.
Referring to fig. 8, in one embodiment of the present invention, the broadcast name generating module includes: the device comprises a sequencing position calculation module and a sequencing broadcast name generation module, wherein the sequencing position calculation module is used for calculating the sequencing position of the MAC address or the serial number in the data in the set range.
The sequencing broadcast name generating module is used for generating broadcast names corresponding to the sequencing positions.
Referring to fig. 9, in an embodiment of the present invention, the bluetooth broadcasting apparatus further includes: and the broadcast name setting broadcast module is used for judging whether a set broadcast name is stored in the electronic equipment or not, and if the set broadcast name is stored, the set broadcast name is broadcasted externally in a Bluetooth mode.
Referring to fig. 10, in yet another aspect, an embodiment of the present invention further provides a computer device, where the computer device includes a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, where the first processor implements the bluetooth broadcast method in the above steps when executing the computer program. Alternatively, the computer program, when executed by a processor, implements the functionality of the modules/units in the apparatus described in the above embodiments, such as the functionality of the modules shown in fig. 10.
Referring to fig. 10, the computer device may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that the illustrations are merely examples of computer devices and are not meant to be limiting, and that the computer devices may include more or less components than those illustrated, or some components may be combined, or different components, e.g., the computer devices may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete default hardware components, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The memory may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device. Further, the memory may also include both an internal storage unit and an external storage device of the computer device. The memory is used for storing the computer program and other programs and data required by the computer device. The memory may also be used to temporarily store data that has been output or is to be output.
The computer program may be stored in a computer readable storage medium, which when executed by a processor, may implement the steps of the various method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing detailed description, or equivalent arrangements may be substituted for some of the features of the embodiments described above. All equivalent structures made by using the contents of the specification and the attached drawings of the invention can be directly or indirectly applied to other related technical fields, and are also within the protection scope of the patent of the invention.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention.

Claims (10)

1. A bluetooth broadcasting method, comprising the steps of:
acquiring identification information of the electronic equipment;
judging whether the identification information is matched with set identification information or not;
if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information;
otherwise, generating a default broadcast name;
and generating a broadcast name to be broadcast externally in a Bluetooth mode.
2. The bluetooth broadcasting method according to claim 1, wherein the identification information is a MAC address or a serial number.
3. The bluetooth broadcasting method according to claim 2, wherein the determining whether the identification information matches the set identification information comprises:
comparing the MAC address or the serial number of the electronic equipment with data in a set range;
judging whether the MAC address or the serial number of the electronic equipment falls into a set range of data, if so, judging that the identification information is matched with set identification information;
otherwise, judging that the identification information is not matched with the set identification information.
4. The bluetooth broadcasting method according to claim 3, wherein the method of generating the broadcast name corresponding to the setting identification information comprises the steps of:
calculating the sorting position of the MAC address or the serial number in the data in the set range;
and generating a broadcast name corresponding to the sorting position.
5. The bluetooth broadcasting method according to claim 1, further comprising:
and judging whether the set broadcast name is stored in the electronic equipment or not, and if the set broadcast name is stored, broadcasting outwards in a Bluetooth mode by using the set broadcast name.
6. A bluetooth broadcasting apparatus, comprising:
the identification information acquisition module is used for acquiring identification information of the electronic equipment;
the information matching judgment module is used for judging whether the identification information is matched with the set identification information;
the broadcast name generation module is used for generating a broadcast name corresponding to the set identification information if the identification information is matched with the set identification information;
the default broadcast name generating module is used for generating a default broadcast name when the identification information is not matched with the set identification information;
and the Bluetooth broadcasting module is used for broadcasting the generated broadcast name to the outside in a Bluetooth mode.
7. The bluetooth broadcasting device according to claim 6, wherein the information matching determining module comprises:
the data comparison module is used for comparing the MAC address or the serial number of the electronic equipment with data in a set range;
the data judgment module is used for judging that the MAC address or the serial number of the electronic equipment falls into a set range of data, and if so, judging that the identification information is matched with the set identification information; otherwise, judging that the identification information is not matched with the set identification information.
8. The bluetooth broadcasting device according to claim 7, wherein the broadcast name generating module comprises:
a sorting position calculation module, configured to calculate a sorting position in data in which the MAC address or the serial number is located within the set range;
and the sequencing broadcast name generating module is used for generating a broadcast name corresponding to the sequencing position.
9. The bluetooth broadcasting device according to claim 1, further comprising:
and the broadcast name setting broadcast module is used for judging whether a set broadcast name is stored in the electronic equipment or not, and if the set broadcast name is stored, the set broadcast name is broadcasted externally in a Bluetooth mode.
10. A computer device comprising a first memory, a first processor and a computer program stored on the first memory and executable on the first processor, characterized in that the first processor implements the bluetooth broadcast method according to any one of claims 1 to 5 when executing the computer program.
CN202211453028.1A 2022-11-21 2022-11-21 Bluetooth broadcasting method and device and computer equipment Pending CN115776648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211453028.1A CN115776648A (en) 2022-11-21 2022-11-21 Bluetooth broadcasting method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211453028.1A CN115776648A (en) 2022-11-21 2022-11-21 Bluetooth broadcasting method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN115776648A true CN115776648A (en) 2023-03-10

Family

ID=85389509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211453028.1A Pending CN115776648A (en) 2022-11-21 2022-11-21 Bluetooth broadcasting method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN115776648A (en)

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
CN117250482A (en) * 2023-11-16 2023-12-19 巨翊医疗科技(苏州)有限公司 PCBA testing method, system and device based on Bluetooth interaction

Cited By (4)

* 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
CN117250482A (en) * 2023-11-16 2023-12-19 巨翊医疗科技(苏州)有限公司 PCBA testing method, system and device based on Bluetooth interaction
CN117250482B (en) * 2023-11-16 2024-03-15 巨翊医疗科技(苏州)有限公司 PCBA testing method, system and device based on Bluetooth interaction

Similar Documents

Publication Publication Date Title
CN115776648A (en) Bluetooth broadcasting method and device and computer equipment
US9361307B2 (en) Rejecting rows when scanning a collision chain that is associated with a page filter
CN108536739B (en) Metadata sensitive information field identification method, device, equipment and storage medium
CN112597978B (en) Fingerprint matching method and device, electronic equipment and storage medium
US20200218760A1 (en) Music search method and device, server and computer-readable storage medium
CN115809203B (en) Dynamic nesting method and device for software test cases and application of dynamic nesting method and device
CN111460232A (en) Functional module searching method, device, terminal and computer readable storage medium
CN101989221B (en) Printed circuit board test document generating system and method
CN116340367B (en) Data query method, device, equipment and storage medium
CN113268439A (en) Memory address searching method and device, electronic equipment and storage medium
CN108733674B (en) A2L file merging method and device
CN108920601B (en) Data matching method and device
CN110888965A (en) Document data extraction method and device
CN108255950B (en) Data storage method and terminal equipment
CN110263417B (en) Time sequence characteristic acquisition method and device and electronic equipment
US9201982B2 (en) Priority search trees
CN111162792A (en) Compression method and device for power load data
CN116562227A (en) Chip signal connectivity verification method and device
CN112818007B (en) Data processing method and device and readable storage medium
CN110661913A (en) User sorting method and device and electronic equipment
CN113535722A (en) DAG (demand directed Access control) source tracing sampling method, system, equipment and storage medium based on mapping
CN110347683B (en) Data table merging processing method and device
CN109460255B (en) Memory address query method and device
CN110234059B (en) Audio device testing method, system, testing frame and storage medium
CN107436788B (en) Application program unloading method and device and terminal equipment

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