CN114245352A - Device ID writing method of Bluetooth device - Google Patents
Device ID writing method of Bluetooth device Download PDFInfo
- Publication number
- CN114245352A CN114245352A CN202111429941.3A CN202111429941A CN114245352A CN 114245352 A CN114245352 A CN 114245352A CN 202111429941 A CN202111429941 A CN 202111429941A CN 114245352 A CN114245352 A CN 114245352A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- equipment
- scanning
- written
- dimensional code
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a device ID writing method with Bluetooth equipment in the technical field of chip production, which comprises the steps that production line personnel electrify the Bluetooth equipment to be written with ID; preparing a two-dimensional code with ID information of the Bluetooth equipment to be written with the ID; scanning the two-dimensional code through a scanning device which is provided with a preset program and can be connected with the Bluetooth, and writing ID information in the two-dimensional code into the Bluetooth device to be written with the ID to obtain the Bluetooth device which is successfully configured; the scanning equipment interface displays that the configuration is successful, and the ID information writing of one Bluetooth equipment to be written with the ID is completed; the invention simplifies the materials needed by the production environment, improves the production efficiency, and has the function of checking whether the Bluetooth function of the Bluetooth equipment works normally.
Description
Technical Field
The invention relates to the technical field of chip production, in particular to a method for writing in an equipment ID with Bluetooth equipment.
Background
The Bluetooth device roles are divided into a broadcaster (broadcaster), a Scanner (Scanner), a Slave device (Slave), a Master device (Master) and an Initiator (Initiator), wherein the Master device is converted from the Initiator and the Scanner, and the Slave device is converted from the broadcaster; the bluetooth module communication means that two bluetooth modules or bluetooth devices communicate with each other, one of the two parties performing data communication is a master and the other is a slave. When the scanner scans the broadcaster and connects to it, the scanner becomes the master. When a broadcaster being broadcast is scanned by a scanner and connected, the broadcaster becomes a slave.
The hardware device of the internet of things generally has a device ID of its own as a unique identifier of its own. The equipment ID configuration of the main control chip of the equipment is required in the process of producing the hardware equipment of the Internet of things. In the production process of the traditional hardware equipment, the main equipment ID configuration method is generally configured by communicating with a main control chip in a wired manner, such as serial communication, and generally requires a customized production fixture. The method is also suitable for equipment ID configuration of the Bluetooth chip, after the equipment ID is configured, a production line needs to check the Bluetooth function of the equipment to reach the shipment standard, the production efficiency is low, and steps and time in the production process are complicated.
Based on the above, the invention designs a device ID writing method with Bluetooth device to solve the above problems.
Disclosure of Invention
The invention aims to provide a device ID writing method with Bluetooth equipment, which aims to solve the problems of low production efficiency and complicated steps and time in the production process in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme:
a device ID writing method of a Bluetooth device comprises the following steps:
s1: a production line worker powers on the Bluetooth equipment to be written with the ID;
s2: preparing a two-dimensional code with ID information of the Bluetooth equipment to be written with the ID;
s3: scanning the two-dimensional code by scanning equipment which is provided with a preset program and can be connected with Bluetooth, starting a code scanning function by the preset program after the scanning equipment is successfully connected with the Bluetooth, entering a two-dimensional code scanning process, sending equipment ID information in the two-dimensional code to Bluetooth equipment to be written with ID in a Bluetooth instruction mode after the code scanning is successfully performed, storing the equipment to be written with ID after the Bluetooth equipment receives the information, and modifying the default Bluetooth name configuration to obtain the successfully configured Bluetooth equipment;
s4: and the scanning equipment interface displays that the configuration is successful, and the ID information writing of the Bluetooth equipment with the ID to be written is completed.
Preferably, the default bluetooth name of the bluetooth device to be written with the ID is "LYY _ BLE _ BAS", and the bluetooth device to be written with the ID is any hardware device with a wireless bluetooth radio frequency function chip.
Preferably, the wireless bluetooth radio frequency function chip is an SOC chip with a model number of shanghai blosson BK 3431Q.
Preferably, the preset program integrates scanning, bluetooth connection and device ID configuration instruction sending functions, the preset program is an APP or an applet, and the scanning device is a mobile phone.
Preferably, the two-dimensional code is a two-dimensional code with device ID information content, which is formally used by the bluetooth device to be written with the ID and used for connecting the device.
Preferably, the scanning device needs to open the bluetooth for bluetooth connection before scanning, otherwise, the scanning device prompts to open the bluetooth first.
Compared with the prior art, the invention has the beneficial effects that:
in the production process, when production line personnel need to configure the corresponding equipment ID on the mainboard or equipment, the chip or the equipment with the Bluetooth chip is firstly electrified, the mobile phone uses corresponding production software to scan the equipment two-dimensional code which corresponds to the equipment and contains equipment ID information, and the production software can automatically configure the corresponding equipment ID on the corresponding Bluetooth chip in a Bluetooth communication mode. The invention has the main advantages that the traditional wiring and manual input processes for configuring the ID of the chip equipment are omitted, the materials required by the production environment are simplified, the production efficiency is improved, and the function of checking whether the Bluetooth function of the Bluetooth equipment works normally is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic topological diagram of a Bluetooth device ID writing method according to the present invention;
FIG. 2 is a flowchart illustrating a method for writing an ID into a Bluetooth device according to the present invention;
FIG. 3 is a circuit diagram of a Bluetooth SOC chip according to the present invention;
FIG. 4 is a schematic diagram of the small program code of the present invention
FIG. 5 is a schematic view of a search interface of a scanning device according to the present invention;
FIG. 6 is a schematic view of a two-dimensional code according to the present invention;
fig. 7 is a schematic diagram of a successful configuration interface of the scanning device according to the present invention.
Detailed Description
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, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-7, the present invention provides a technical solution:
a device ID writing method of a Bluetooth device comprises the following steps:
s1: a production line worker powers on the Bluetooth equipment to be written with the ID;
s2: preparing a two-dimensional code with ID information of the Bluetooth equipment to be written with the ID;
s3: scanning the two-dimensional code through a scanning device which is provided with a preset program and can be connected with the Bluetooth, and writing ID information in the two-dimensional code into the Bluetooth device to be written with the ID to obtain the Bluetooth device which is successfully configured;
s4: and the scanning equipment interface displays that the configuration is successful, and the ID information writing of the Bluetooth equipment with the ID to be written is completed.
As shown in fig. 1, the bluetooth device to be written with the ID is any hardware device with a wireless bluetooth radio frequency function chip, the mobile phone is installed with a corresponding APP application program for production that integrates functions of scanning, bluetooth connection, and sending a device ID configuration instruction, and the two-dimensional code is a two-dimensional code with device ID information content that is formally used by the device and is used for connecting the device.
As shown in fig. 2, for a process of an ID writing method for a bluetooth device to which an ID is to be written, a production line staff needs to perform a power-on operation on the bluetooth device to which the ID is to be written, and prepares a two-dimensional code with ID information of the device, which is used for scanning a code connection device when the device is used formally. And opening the APP for production in the mobile phone for production, and scanning the two-dimensional code by using the function of scanning the two-dimensional code of the APP for production. At the moment, the APP for mobile phone production can automatically identify the content of the two-dimensional code, the equipment ID information is read, and the equipment ID information configuration instruction is sent to the Bluetooth equipment through the mobile phone Bluetooth, if the response can be normally received, the interface display configuration is successful, and the process is finished.
As shown in fig. 3, the SOC chip of bluetooth is BK3431Q of shanghai blosson, and the BK3431Q chip is a highly integrated bluetooth 5.0 low power consumption single chip mode device with a 2Mbps data rate option. The radio frequency transceiver integrates a high-performance radio frequency transceiver, a baseband, an MCU kernel, a peripheral unit with rich functions, a programmable protocol and a configuration file to support BLE application, and a flash memory program memory makes the radio frequency transceiver suitable for customized application. The BK3431Q adopts an advanced process flow design, integrates a switching DCDC voltage regulator, and has ultra-low power consumption and ultra-low leakage power. The embedded high order interference rejection filter and fast automatic gain control logic allow good operation also in high interference environments. The BK3431Q chip of the circuit obtains a high-quality and stable system clock through an external crystal oscillator circuit, so that the working stability of the BK3431Q chip is further improved; the design of using PCB board to carry the antenna, when providing high connectivity, the cost that external antenna brought has significantly reduced.
In the scheme of the invention, a mobile phone with a production APP is installed to serve as a scanner, and a Bluetooth device to be written with a device ID serves as a broadcaster. After the bluetooth device to which the device ID is written is powered on, the bluetooth device broadcasts the bluetooth device with the default bluetooth name "LYY _ BLE _ BAS". The wireless bluetooth is used to scan whether there is a device with a device ID to be written in the space range, that is, the device with the broadcast name "LYY _ BLE _ BAS", if any, is connected.
In one of the developed and implemented examples, the bluetooth device using the device ID to be written is a bluetooth internet of things payment box. The usage scenario is unattended code scanning-payment-initiated arbitrary device.
As shown in fig. 4, in the solution of the present invention, one of the developed and implemented examples uses a production APP as an applet under the WeChat framework. After the program code of the small program is scanned, the small program can enter the corresponding small program, the Bluetooth needs to be opened before the small program is opened, otherwise, the Bluetooth is prompted to be opened first.
After the mobile WeChat applet is successfully connected with a device with the broadcast name of "LYY _ BLE _ BAS", the process of scanning the two-dimensional code can be entered by clicking the button of "scanning code to start the device" of the applet. The two-dimensional code is also called as a two-dimensional bar code, and common two-dimensional codes are QR codes, which is a super-popular encoding mode on mobile equipment in recent years. Taking the device number "64006307" as an example, the two-dimensional code in fig. 6 needs to be scanned, the specific content of the two-dimensional code includes a specific device ID "64006307", and the two-dimensional code is applied to an actual scene to connect with the device, and the two-dimensional code will leave the factory together with the device. After the applet scans the code, the device ID is sent to the hardware end in a bluetooth instruction mode, after the hardware segment is received, the device ID is stored locally in the hardware, and the broadcast name of the device is modified to "LYY 64006307", so far, the ID of the device has been successfully configured, as shown in fig. 7, the successfully configured mobile phone interface is shown.
In order to improve the production efficiency and reduce the steps and time in the production process, the invention uses the Bluetooth function of the Bluetooth device for configuration in the process of configuring the device ID of the Bluetooth device, and simultaneously realizes the function check of the Bluetooth function of the device in the process of configuring the device ID.
In the production process, when production line personnel need to configure the corresponding equipment ID on the mainboard or equipment, the chip or the equipment with the Bluetooth chip is firstly electrified, the mobile phone uses corresponding production software to scan the equipment two-dimensional code which corresponds to the equipment and contains equipment ID information, and the production software can automatically configure the corresponding equipment ID on the corresponding Bluetooth chip in a Bluetooth communication mode. The invention has the main advantages that the traditional wiring and manual input processes for configuring the ID of the chip equipment are omitted, the materials required by the production environment are simplified, the production efficiency is improved, and the function of checking whether the Bluetooth function of the Bluetooth equipment works normally is realized.
In the description herein, references to the description of "one embodiment," "an example," "a specific example" or the like are intended to 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.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims (6)
1. A device ID writing method of a Bluetooth device is characterized in that: the method comprises the following steps:
s1: a production line worker powers on the Bluetooth equipment to be written with the ID;
s2: preparing a two-dimensional code with ID information of the Bluetooth equipment to be written with the ID;
s3: scanning the two-dimensional code by scanning equipment which is provided with a preset program and can be connected with Bluetooth, starting a code scanning function by the preset program after the scanning equipment is successfully connected with the Bluetooth, entering a two-dimensional code scanning process, sending equipment ID information in the two-dimensional code to Bluetooth equipment to be written with ID in a Bluetooth instruction mode after the code scanning is successfully performed, storing the equipment to be written with ID after the Bluetooth equipment receives the information, and modifying the default Bluetooth name configuration to obtain the successfully configured Bluetooth equipment;
s4: and the scanning equipment interface displays that the configuration is successful, and the ID information writing of the Bluetooth equipment with the ID to be written is completed.
2. The device ID writing method for a bluetooth device according to claim 1, wherein: the default Bluetooth name of the Bluetooth device to be written with the ID is "LYY _ BLE _ BAS", and the Bluetooth device to be written with the ID is any hardware device with a wireless Bluetooth radio frequency function chip.
3. The device ID writing method for a bluetooth device according to claim 2, wherein: the wireless Bluetooth radio frequency function chip is an SOC chip, and the model is Shanghai Botong BK 3431Q.
4. The device ID writing method for a bluetooth device according to claim 1, wherein: the method comprises the steps that the preset program integrates scanning, Bluetooth connection and an equipment ID configuration instruction sending function, the preset program is an APP or an applet, and the scanning equipment is a mobile phone.
5. The device ID writing method for a bluetooth device according to claim 1, wherein: the two-dimension code is a two-dimension code which is formally used by the Bluetooth equipment to be written with the ID and is used for connecting the equipment and has equipment ID information content.
6. The device ID writing method for a bluetooth device according to claim 1, wherein: in S3, the scanning device needs to open the bluetooth first for bluetooth connection before scanning, otherwise, the scanning device prompts to open the bluetooth first.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111429941.3A CN114245352A (en) | 2021-11-29 | 2021-11-29 | Device ID writing method of Bluetooth device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111429941.3A CN114245352A (en) | 2021-11-29 | 2021-11-29 | Device ID writing method of Bluetooth device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114245352A true CN114245352A (en) | 2022-03-25 |
Family
ID=80751806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111429941.3A Pending CN114245352A (en) | 2021-11-29 | 2021-11-29 | Device ID writing method of Bluetooth device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114245352A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150921A (en) * | 2022-07-01 | 2022-10-04 | 合肥美菱物联科技有限公司 | Production test method of wireless communication module with Bluetooth |
-
2021
- 2021-11-29 CN CN202111429941.3A patent/CN114245352A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150921A (en) * | 2022-07-01 | 2022-10-04 | 合肥美菱物联科技有限公司 | Production test method of wireless communication module with Bluetooth |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108494414B (en) | Ultra-low power consumption multimode wireless module of internet of things | |
CN103982982A (en) | Control method of air conditioner, and air conditioner | |
CN108259512B (en) | Communication protocol identification method, electronic device and computer storage medium | |
CN104020694A (en) | Energy-saving wearable device capable of being triggered through one key, mobile terminal, and triggering method and device | |
CN103546213A (en) | Optical communication transmission method and system | |
CN104144471A (en) | Wi-Fi networking method and system based on LED devices | |
CN103293466A (en) | Method and system for testing communication module on embedded printed circuit board assembly (PCBA) | |
CN114245352A (en) | Device ID writing method of Bluetooth device | |
KR100771256B1 (en) | A mobile communication terminal and it's radio communication module | |
CN110119282A (en) | A kind of internet-of-things terminal and system based on general-purpose built-in type computer | |
CN110417871A (en) | A kind of smart machine upgrade method | |
CN109448181A (en) | A kind of antitheft access control system | |
CN104703009A (en) | Smart pairing radio frequency remote control system and smart pairing method thereof | |
CN201571108U (en) | Embedded type mobile terminal operation platform | |
CN101917779A (en) | Method and device for automatically adapting to wireless modules with different network standards | |
CN103428346A (en) | Mobile fixed telephone self-adaptive to LCD and LCD self-adaptation device | |
CN112350895B (en) | Keep-alive method and device for application program, equipment and computer readable storage medium | |
CN211352191U (en) | Socket system with wireless networking module | |
CN212061190U (en) | Debugging device and debugging system | |
CN204681378U (en) | There is the circuit of near field communication (NFC) function and comprise the human interface device of this circuit | |
CN113747543A (en) | Network distribution method and device | |
CN110113730A (en) | Method for network access, device, Internet of Things module and storage medium | |
CN114339591A (en) | Method for positioning based on ultra-wideband chip and related device | |
CN113824612A (en) | Network equipment compatibility testing method, terminal equipment and storage medium | |
CN112348633A (en) | Clothing matching recommending method and device, intelligent wardrobe and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |