Bluetooth three-protocol compatible embedded Internet of Things system and communication method

By designing an embedded IoT system that is compatible with the three protocols of Bluetooth, using barcode information analysis and configuration of Bluetooth protocols, the connection and data transmission of different system terminals is realized, and the problems of device application limitations and protocol switching difficulties in the existing technology are solved. Improves data transmission efficiency and flexibility.

CN114338842BActive Publication Date: 2024-11-12XIAN FULIYE MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111520044.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2024-11-12
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

The single use of Bluetooth protocol in existing embedded devices leads to high application limitations, high labor investment costs, long project cycles in different scenarios, and the protocol rate and power consumption conflict with each other, making it difficult to achieve fast protocol switching and functional settings.

Method used

Design an embedded IoT system that is compatible with Bluetooth three protocols, including a collection unit, a control unit and a communication unit. It analyzes Bluetooth protocol setting information and functional requirements information through barcode information, configures Bluetooth protocol interface, and realizes connection with different system terminals. , adopts public and differentiated interfaces, including SPP, BLE and HID protocols, uses PUD modification interface to improve data transmission rate, timeout monitoring and disconnection, and instructs the interactive unit to prompt the protocol through indicator lights.

Benefits of technology

It realizes multi-protocol configuration in a single scan situation, simplifies device connection and function settings, reduces labor investment costs, improves data transmission efficiency and protocol switching flexibility, and solves the conflicting problems of rate and power consumption between protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114338842B_ABST
    Figure CN114338842B_ABST
Patent Text Reader

Abstract

The present invention provides an embedded Internet of Things system and communication method compatible with three Bluetooth protocols. The system includes: a collection unit, a control unit, a communication unit and a storage unit. The control unit includes a parsing subunit and a configuration subunit. The configuration subunit is used to configure the interface of the Bluetooth protocol according to Bluetooth protocol setting information, and is also used to configure system functions according to functional requirement information. The present invention integrates three Bluetooth protocols into an embedded system, which can meet the data interaction with different devices of Andriod, IOS, and Windows, and can also realize the switching of different protocols, thereby realizing the normal communication of different protocols and different rate data, and solving the problem of data garbled and transmission channel blockage caused by different transmission rates under different protocols.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to an embedded Internet of Things system and a communication method compatible with three Bluetooth protocols. Background Art

[0002] The Bluetooth protocol in embedded devices all uses a single protocol, usually one of the SPP (Serial Port Profile) protocol, BLE (Bluetooth low energy) protocol or HID (The Human Interface Device) protocol. The three protocols are used in different scenarios, and the application technologies also have their own characteristics. At present, in many application scenarios on the market, users use embedded devices with a single protocol, which has great limitations. If new adaptation solutions are developed, the manpower investment cost is high and the project cycle time is long. The speed and power consumption of the three protocols are mutually exclusive, and it is impossible to make a reasonable trade-off between the three. At the same time, in the absence of external input conditions, it is very difficult and cumbersome for embedded devices to quickly implement protocol switching and function settings. Summary of the invention

[0003] The present invention provides an embedded Internet of Things system and a communication method compatible with three Bluetooth protocols, which are used to solve the defect of the prior art that there is a lack of embedded devices that can be compatible with three Bluetooth protocols at the same time, establish connections with Bluetooth in different system terminals, and realize data transmission.

[0004] The present invention provides an embedded Internet of Things system compatible with three Bluetooth protocols, including:

[0005] A collection unit, used for collecting barcode information or label information;

[0006] A control unit, the control unit comprising a parsing subunit and a configuration subunit;

[0007] The parsing subunit is used to parse out Bluetooth protocol setting information according to the barcode information, and is also used to parse out functional requirement information according to the barcode information or tag information;

[0008] Barcode information

[0009] The configuration subunit is used to configure the interface of the Bluetooth protocol according to the Bluetooth protocol setting information, and is also used to configure the system function according to the function requirement information;

[0010] A communication unit, used to broadcast the Bluetooth protocol included in the Bluetooth protocol setting information and establish a connection with a terminal including the same Bluetooth protocol;

[0011] The storage unit is used to store the Bluetooth protocol setting information, the functional requirement information and the collection method of the collection unit.

[0012] According to a Bluetooth three-protocol compatible embedded Internet of Things system provided by the present invention, the interface of the Bluetooth protocol includes a public interface and a differentiated interface of the SPP protocol, the BLE protocol and the HID protocol.

[0013] According to a Bluetooth three-protocol compatible embedded Internet of Things system provided by the present invention, the differentiated interface includes a PUD modification interface.

[0014] According to a Bluetooth three-protocol compatible embedded Internet of Things system provided by the present invention, the Bluetooth protocol setting information includes setting the communication mode to any one of the SPP protocol, the BLE protocol or the HID protocol.

[0015] According to a Bluetooth three-protocol compatible embedded Internet of Things system provided by the present invention, the system also includes a timeout monitoring unit for disconnecting after detecting Bluetooth communication abnormality.

[0016] According to a Bluetooth three-protocol compatible embedded Internet of Things system provided by the present invention, the system also includes an indication interaction unit, which is used to prompt the loaded Bluetooth protocol through the flashing frequency of the indicator light.

[0017] According to a Bluetooth III protocol compatible embedded Internet of Things system provided by the present invention, the barcode information includes a setting code and a function code.

[0018] The present invention also provides a communication method for realizing communication between a system and terminals of different communication protocols, comprising:

[0019] The system collects barcode information or label information, parses Bluetooth protocol setting information according to the barcode information, parses function requirement information according to the barcode information or label information, and stores the Bluetooth protocol setting information, the function requirement information and the collection method;

[0020] The system configures the interface of the Bluetooth protocol according to the Bluetooth protocol setting information, and configures the system function according to the function requirement information;

[0021] The system broadcasts the Bluetooth protocol included in the Bluetooth protocol setting information, and establishes a connection with a terminal including the same Bluetooth protocol to communicate.

[0022] According to a communication method provided by the present invention, the interface of the Bluetooth protocol includes a common interface and a differentiated interface of the SPP protocol, the BLE protocol and the HID protocol.

[0023] According to a communication method provided by the present invention, the differentiated interface includes a PUD modification interface.

[0024] According to a communication method provided by the present invention, the system disconnects from the terminal after detecting abnormality in Bluetooth communication.

[0025] According to a communication method provided by the present invention, the barcode information includes a setting code and a function code.

[0026] The present invention provides an embedded Internet of Things system and communication method compatible with three Bluetooth protocols, which integrate the three protocols into one system. Users can select different protocols according to the connection devices of different systems, establish connections with Bluetooth in devices of different systems (Android, iOS, Windows), and realize data transmission. By collecting barcode information and parsing Bluetooth protocol setting information and function requirement information, dozens of functions and setting items can be selectively configured, realizing multi-configuration human-computer interaction under a single scanning situation. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 It is a schematic diagram of the structure of an embedded Internet of Things system compatible with Bluetooth three protocols provided by an embodiment of the present invention;

[0029] Figure 2 It is a hardware schematic diagram of an embedded Internet of Things system compatible with Bluetooth III protocols provided by an embodiment of the present invention;

[0030] Figure 3 It is a schematic diagram of the embedded Internet of Things system software compatible with Bluetooth III protocols provided by an embodiment of the present invention;

[0031] Figure 4 It is a flow chart of a communication method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] Combine the following Figure 1The present invention is described as follows: a Bluetooth 3 protocol compatible embedded Internet of Things system, comprising:

[0034] The collection unit 101 is used to collect barcode information or label information;

[0035] A control unit 102, the control unit comprising a parsing subunit 103 and a configuration subunit 104;

[0036] The parsing subunit 103 is used to parse the Bluetooth protocol setting information according to the barcode information, and is also used to parse the function requirement information according to the barcode information or the tag information;

[0037] The configuration subunit 104 is used to configure the interface of the Bluetooth protocol according to the Bluetooth protocol setting information, and is also used to configure the system function according to the function requirement information;

[0038] The communication unit 105 is used to broadcast the Bluetooth protocol included in the Bluetooth protocol setting information and establish a connection with a terminal including the same Bluetooth protocol;

[0039] The storage unit 106 is used to store the Bluetooth protocol setting information, the functional requirement information and the collection method of the collection unit.

[0040] It should be noted that the embedded Internet of Things system compatible with the three Bluetooth protocols can be a handheld terminal, and the terminal connected to the system is an application end. The electronic devices applicable to the application end include computers and tablets with Windows systems, mobile phones and tablets with Android systems, and tablets, computers and mobile phones with IOS systems. The handheld terminal has two major Internet of Things functions: scanning and UHF. When the handheld terminal is turned on, the acquisition mode of the handheld terminal can be switched between scanning and UHF through the mode key. In UHF mode, the handheld terminal can obtain the content of the electronic tag through UHF with specific radio waves, and parse its content into digital signals through the air interface protocol, and send it to the connected terminal through Bluetooth in a specific format after being processed by the control unit. In scanning mode, the handheld terminal can identify the information in the QR code through the scanning module, convert it into a digital signal, and send it to the control unit through the serial port. After being processed by the control unit, it is sent to the connected terminal through Bluetooth in a specific format. After the acquisition mode is selected, the storage unit will store the acquisition mode of the acquisition unit for easy application in the subsequent communication process.

[0041] The Bluetooth III protocol-compatible embedded Internet of Things system of the embodiment of the present invention can send the collected data to the terminal wirelessly, and the user can set different protocols through the device system to be connected. At this time, the user only needs to scan different Bluetooth protocol setting information and function requirement information through the scanning head in the handheld terminal to realize the configuration of different protocols. After the configuration is completed, the corresponding data transmission channel is established through the Bluetooth of the two devices, and then the trigger key on the handheld terminal is used to read the label and barcode. At this time, the read data can be transmitted to the application end of the device through the established data channel, thereby realizing data collection and interaction.

[0042] In at least one embodiment of the present invention, the Bluetooth protocol setting information includes the communication mode being set to any one of the SPP protocol, the BLE protocol or the HID protocol.

[0043] It should be noted that the SPP protocol is the most basic Bluetooth protocol for Android. It is highly integrated in IoT devices. Although it has high power consumption, its high speed is more advantageous in data collection. It can send a large amount of data between handheld terminals in a short time, thereby improving transmission efficiency and not affecting the communication speed of handheld terminals. The BLE protocol has the advantages of low power consumption, low latency, and long distance, and is widely used in embedded devices. However, the low speed and protocol interactive communication reduce the data transmission rate. The HID protocol is a protocol in the human-machine device interface, mainly used for data interaction between keyboards or mice and computers. In order to facilitate the transmission of collected data to computers, developing a Bluetooth HID keyboard on handheld terminals is the best choice. The three protocols have their own advantages and disadvantages. There are difficulties in compatibility and inconsistent interfaces in data transmission and protocol settings.

[0044] In at least one embodiment of the present invention, the interface of the Bluetooth protocol includes a common interface and a differentiated interface of the SPP protocol, the BLE protocol, and the HID protocol.

[0045] It should be noted that the common interface is stored in one folder and the differentiated interface is stored in another folder. After the configuration subunit obtains the Bluetooth protocol setting information, it will select a suitable interface combination from the two folders according to the interfaces contained in the selected Bluetooth protocol, thereby realizing the interface configuration of the selected Bluetooth protocol.

[0046] In at least one embodiment of the present invention, the differentiated interface includes a PUD modification interface.

[0047] It should be noted that the BLE protocol has the disadvantage of low speed, which results in a data transmission rate of only 50 Byte / s. In the common BLE protocol, the PUD size of the data channel is 27 bytes, of which the L2CAP frame header occupies 4 bytes and the handle notification occupies 3 bytes. The size of the data actually transmitted is only 20 bytes. When the terminal device reads the UHF tag, the data of each tag is at least 31 bytes. In this case, to transmit the data of a tag, it needs to be divided into two packets of data for transmission in the BLE protocol. If the commands and data of the terminal device become larger, this transmission method greatly reduces the transmission rate.

[0048] In order to solve this problem, the Bluetooth III protocol-compatible embedded Internet of Things system provided in the embodiment of the present invention changes the data channel PUD in the BLE protocol to 96 bytes through the PUD modification interface according to the rules of the transmitted commands and data, of which the L2CAP frame header occupies 4 bytes and the handle notification occupies 3 bytes, and the size of each packet of transmitted data is 89 bytes. In this way, when transmitting large barcode data and UHF tag commands and data, the number of packet sub-packets is reduced, thereby improving the data transmission rate.

[0049] In at least one embodiment of the present invention, the system further comprises a timeout monitoring unit, which is used to disconnect after detecting an abnormality in the Bluetooth communication.

[0050] It should be noted that the default connection timeout period in the Bluetooth protocol is 20s. If the connection between the handheld terminal and the device is abnormally disconnected or communication is abnormal at a long distance, the handheld terminal still maintains the Bluetooth connection and cannot reconnect or communicate normally.

[0051] The Bluetooth III protocol-compatible embedded Internet of Things system provided in the embodiment of the present invention sets the monitoring time to 2S. When the Bluetooth communication is abnormal, the handheld terminal will detect that the Bluetooth is disconnected within 2S, thereby disconnecting the Bluetooth. The user can ensure normal communication by reconnecting.

[0052] In at least one embodiment of the present invention, the system further comprises an indication interaction unit for indicating the loaded Bluetooth protocol by means of a flashing frequency of an indicator light.

[0053] It should be noted that the user can determine the loaded protocol through the indicator light on the handheld terminal. When the Bluetooth indicator light flashes at a high frequency, it means that the handheld terminal is in SPP mode; when it flashes at a medium frequency, it means that the handheld terminal is in BLE mode; when it flashes at a low frequency, it means that the handheld terminal is in HID mode without paired device information; when it flashes at a low and medium frequency, it means that the handheld terminal has paired device information and is trying to connect to the device in HID mode.

[0054] In at least one embodiment of the present invention, the barcode information includes a setting code and a function code. The setting code includes starting setting, exiting and saving, exiting without saving, restoring factory settings, enabling SPP protocol, enabling HID protocol, and enabling BLE protocol. The function code includes language keyboard switching, setting buzzer, obtaining software version number, setting transmission interval, setting GBK encoding, setting UTF-8 encoding, setting word mode, setting Excel&txt mode, setting suffix, UHF power setting, reading UHF firmware version, reading output power, reading frequency range, reading operating temperature, setting real-time inventory, and setting custom inventory.

[0055] It should be noted that the function code and setting code specifically set in this system are composed of 10 digits. The 10 digits are used to generate the corresponding two-dimensional barcode through a professional barcode generation tool, and the corresponding two-dimensional barcodes represented by different functions are formed according to the different data represented by different functions. The numbers represented by different functions and settings are unique in the software. The setting code and function code are used to switch between different protocols. After the external conditions are switched, the results are saved in the memory of the handheld terminal. The system implements the interface call and data transmission of different protocols in the software according to the functions in the memory, thereby realizing the normal communication of different protocols and different data rates, so as to solve the problem of data garbled and transmission channel blockage caused by different transmission rates under different protocols.

[0056] In at least one embodiment of the present invention, after receiving the data and comparing them, the control unit can execute the corresponding settings if both the setting code and the function code belong to the executable list stored in the system.

[0057] like Figure 2 As shown, it is a hardware schematic diagram of the Bluetooth III protocol compatible embedded Internet of Things system provided in an embodiment of the present invention. In this embodiment, the system is a handheld terminal, including a scanning head module, a UHF module and a main board. The main board includes an MCU control unit, a Bluetooth communication unit, a Flash storage unit, a power supply unit, a button and indication interaction unit and a USB unit.

[0058] The scanning head module is used to identify the information in the QR code and convert it into digital signals, which are sent to the MCU control unit through the serial port. After receiving the data and comparing it, the MCU performs different function settings and data transmission.

[0059] In addition, when setting functions and barcodes, you need to first perform "Start Setting". Only in the Start Setting state can you make the corresponding settings. After all settings are completed, finally perform "Exit Save" or "Exit without Save". "Exit Save" can save the corresponding setting information in the Flash storage unit, and "Exit without Save" will invalidate the data set this time.

[0060] The UHF module is used to read the tag. It mainly transmits radio waves of a specific frequency through the module to form an electromagnetic field. If the tag is within the range of the magnetic field, it will receive the special radio frequency signal sent by the reader and can send out the product information stored in the chip with the energy obtained by the induced current. After reading the tag information, the UHF module decodes it into a digital signal through the interface protocol and sends the digital signal to the MCU control unit through the serial port.

[0061] The MCU control unit is the core of the entire system, in which the software for scanning and UHF control, Bluetooth protocol, data acquisition and processing, human-computer interaction, power control and USB data transmission all run in the MCU kernel.

[0062] It should be noted that the MCU in the embodiment of the present invention adopts a 32-bit microcontroller of the STM32F4 series. -M4's STM32F4 MCU uses STMicroelectronics' NVM process and ART Accelerator TM At 168MHz, when executing from Flash memory, STM32F4 can provide 210DMIPS / 566CoreMark performance, and achieves zero wait state of FLASH by using STMicroelectronics' ART accelerator. DSP instructions and floating-point units expand the application range of the product. It also supports rich connection functions and 1M Flash storage, providing strong support for the development of multi-function, multi-configuration and multi-mode.

[0063] The Bluetooth communication unit uses TI's seventh-generation Bluetooth core chip CC2564, which complies with the Bluetooth 4.1 compatibility scheme and is a complete Bluetooth BR / EDR / LE HCI solution.

[0064] It should be noted that after the Bluetooth communication unit is coupled with the STM32F4 single-chip computer system, 10 profiles can be implemented (Advanced Audio Distribution Profile (A2DP): A3DP implementation, Audio / Video Transport Protocol (AVDTP), Audio / Video Remote Control Profile (AVRCP), Generic Access Profile (GAP), Headset Profile (HSP), Hands-Free Profile (HFP), Human-Computer Interaction Device Profile (HID), Message Access Profile (MAP), Phone Book Access Profile (PBAP), Serial Port Profile (SPP)) and 15 modes of Bluetooth low energy consumption (Alarm Notification Service (ANS), Battery Service (BAS), Cycle Speed ​​and Cadence Service (CSCS), Device Information Service (DIS), Find Me mode (FMP), generic access mode service (GAPS), generic attribute mode (GATT), medical thermometer service (HTS), heart rate service (HRS), human interface device service (HIDS), timely alert service (IAS), link disconnection service (LLS), phone alert status service (PASS), proximity sensing mode (PXP), transmit power service (TPS)). It can be realized by loading the configuration of the three modes on the basis, and can be flexibly adjusted and set through software.

[0065] The Flash storage unit uses Winbond's large-capacity SPI Flash product, model W2564Q. This storage unit far exceeds ordinary serial flash memory devices in terms of flexibility and performance.

[0066] It should be noted that W25Q64 divides the 8M-byte capacity into 128 blocks, each block is 64K bytes, each block is divided into 16 sectors, each sector is 4K bytes. The minimum erase unit of W25Q64 is one sector, which means that 4K bytes must be erased each time. Therefore, it is necessary to open up a cache area of ​​at least 4K for W25Q64, so the chip must have more than 4K SRAM to operate well.

[0067] The power supply unit uses a 3.8V / 5700mAH polymer lithium battery to power the entire system after stepping down the voltage. At the same time, the battery is charged through the highly integrated power path management chip BQ24295 with switch mode battery charging management and system power path management.

[0068] The button and indicator interaction unit is the intermediary of human-computer interaction. Through this unit, the operating user can know the device's power on and off status, working mode, Bluetooth mode, data collection status and other information. The buttons integrated in this device include the power button, mode button, Bluetooth button and trigger button. The integrated indicator lights include the Bluetooth blue light, the power on red light, the data collected green light, the data not collected red light, the charging red light, the fully charged green light, the UHF mode green light and the scanning mode red light.

[0069] The USB unit is used to upgrade the firmware of the MCU control unit and to connect to the power path management chip through this interface to realize external charging of the battery.

[0070] It should be noted that the specific operation process of establishing a connection in the embodiment of the present invention is as follows:

[0071] Scan the QR code of "Start Setting" through the scanning module. After the corresponding data is obtained, after comparison and analysis by the MCU control unit, it is determined that it is the data of the setting code. The handheld terminal will enter the setting mode. In the setting mode, as long as the scanned QR code is a setting code or a function code, the buzzer in the handheld terminal will sound three short high, medium and low frequency sounds. If it is not a setting code or a function code, the buzzer in the handheld terminal will sound a long low frequency sound. Then the scanning module scans the QR code of "BLE mode or HID mode". Only when the handheld terminal is in the setting mode will the obtained data be compared and analyzed. After completion, the corresponding function will be saved in Fl In the ash unit, you can finally scan the "Exit Save" QR code through the scanning module. After the corresponding data is obtained, after comparison and analysis by the MCU control unit, after confirming the corresponding function, the MCU control unit will run the protocol software of the corresponding mode, and the flashing frequency of the Bluetooth blue light will be adjusted accordingly, thereby reflecting the protocol currently running on the handheld terminal. When the Bluetooth blue light flashes at a high frequency, it means that the handheld terminal is in SPP mode; when it flashes at a medium frequency, it means that the handheld terminal is in BLE mode; when it flashes at a low frequency, it means that the handheld terminal is in HID mode without paired device information; when it flashes at a low and medium frequency, it means that the handheld terminal has paired device information and is trying to connect to the device in HID mode.

[0072] like Figure 3 , is a schematic diagram of the software of an embedded Internet of Things system compatible with Bluetooth III protocols provided in an embodiment of the present invention. In this embodiment, the system corresponds to the hardware of the embedded Internet of Things handheld terminal compatible with Bluetooth III protocols in the above-mentioned embodiment.

[0073] The system includes the protocol layer, control and communication layer, and output processing layer of the Internet of Things;

[0074] The protocol layer includes HID Bluetooth protocol, SPP Bluetooth protocol, and BLE Bluetooth protocol;

[0075] The control and communication layer includes scanning data processing and UHF data processing;

[0076] The output processing layer includes button and indicator light control and MCU control and communication.

[0077] The communication method provided by the present invention is described below. The communication method described below is used to implement communication between the above system and terminals of different communication protocols, such as Figure 4 The communication method shown comprises the following steps:

[0078] Step 401: The system collects barcode information or tag information, parses Bluetooth protocol setting information according to the barcode information, and is further used to parse function requirement information according to the barcode information or tag information, and stores the Bluetooth protocol setting information, the function requirement information and the collection method of the collection unit;

[0079] Step 402: the system configures the Bluetooth protocol interface according to the Bluetooth protocol setting information, and configures the system function according to the function requirement information;

[0080] Step 403: The system broadcasts the Bluetooth protocol included in the Bluetooth protocol setting information, and establishes a connection with a terminal including the same Bluetooth protocol to communicate.

[0081] In at least one embodiment of the present invention, the interface of the Bluetooth protocol includes a common interface and a differentiated interface of the SPP protocol, the BLE protocol, and the HID protocol.

[0082] In at least one embodiment of the present invention, the differentiated interface includes a PUD modification interface.

[0083] In at least one embodiment of the present invention, the system disconnects from the terminal after detecting an abnormality in the Bluetooth communication.

[0084] In at least one embodiment of the present invention, the barcode information includes a setting code and a function code.

[0085] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An embedded IoT system compatible with Bluetooth 3 protocols. It is characterized in that include: A collection unit, used for collecting barcode information or label information; A control unit, the control unit comprising a parsing subunit and a configuration subunit; The parsing subunit is used to parse out Bluetooth protocol setting information according to the barcode information, and is also used to parse out functional requirement information according to the barcode information or tag information; The configuration subunit is used to configure the interface of the Bluetooth protocol according to the Bluetooth protocol setting information, and is also used to configure the system function according to the function requirement information; A communication unit, used to broadcast the Bluetooth protocol included in the Bluetooth protocol setting information and establish a connection with a terminal including the same Bluetooth protocol; A storage unit, used to store the Bluetooth protocol setting information, the functional requirement information and the collection method of the collection unit; The interface of the Bluetooth protocol includes the common interface and the differentiated interface of the SPP protocol, the BLE protocol and the HID protocol; the Bluetooth protocol setting information includes that the communication mode is set to any one of the SPP protocol, the BLE protocol or the HID protocol.

2. The Bluetooth 3 protocol compatible embedded Internet of Things system according to claim 1, It is characterized in that The differentiated interface includes a PUD modification interface.

3. The Bluetooth III protocol compatible embedded Internet of Things system according to claim 1 or 2, It is characterized in that The system also includes a timeout monitoring unit, which is used to disconnect after detecting abnormal Bluetooth communication.

4. The Bluetooth III protocol compatible embedded Internet of Things system according to claim 1 or 2, It is characterized in that The system also includes an indication interaction unit, which is used to indicate the loaded Bluetooth protocol through the flashing frequency of the indicator light.

5. The Bluetooth III protocol compatible embedded Internet of Things system according to claim 1 or 2, It is characterized in that The barcode information includes a setting code and a function code.

6. A communication method, It is characterized in that Used to implement communication between the system and terminals of different communication protocols, including: The system collects barcode information or tag information, parses Bluetooth protocol setting information according to the barcode information, and is also used to parse function requirement information according to the barcode information or tag information, and stores the Bluetooth protocol setting information, the function requirement information and the collection method; The system configures the interface of the Bluetooth protocol according to the Bluetooth protocol setting information, and configures the system function according to the function requirement information; The system broadcasts the Bluetooth protocol included in the Bluetooth protocol setting information, and establishes a connection with a terminal including the same Bluetooth protocol to communicate; The interface of the Bluetooth protocol includes the common interface and the differentiated interface of the SPP protocol, the BLE protocol and the HID protocol; the Bluetooth protocol setting information includes that the communication mode is set to any one of the SPP protocol, the BLE protocol or the HID protocol.

7. The communication method according to claim 6, It is characterized in that The differentiated interface includes a PUD modification interface.

8. The communication method according to claim 6 or 7, It is characterized in that The system disconnects from the terminal after detecting Bluetooth communication anomalies.

9. The communication method according to claim 6 or 7, It is characterized in that The barcode information includes a setting code and a function code.