Communication method of mine linear BLE network based on multi-core base station

By adopting a multi-core base station structure in the BLE network, the communication between the BLE base station and the upstream and downstream base stations and terminals is separately handled, and the existing BLE network cannot meet the high network load needs is solved, achieving more efficient and stable data transmission.

CN115175151BActive Publication Date: 2025-04-04TIANDI CHANGZHOU AUTOMATION +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210684693.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2025-04-04
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

Existing BLE networks cannot meet higher network load and transmission needs, with low bandwidth, complex connection methods, and poor transmission anti-interference.

Method used

A mine linear BLE network communication method based on multi-core base stations is adopted. Each BLE base station includes BLE core A, BLE core B and BLE core C. It builds a backbone network through wired connections, and connects adjacent base stations through Bluetooth to process communication between upstream and downstream base stations and terminals separately.

Benefits of technology

It improves data transmission efficiency and stability, reduces random packet loss, improves the bandwidth of data transmission in multi-hop state, and enhances the reliability and anti-interference ability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115175151B_ABST
    Figure CN115175151B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication method of a mine linear BLE network based on a multi-core base station, including setting the BLE core A of each BLE base station as a slave, the BLE core B as a host, and the BLE core C as one or more of the host, the slave, the broadcaster, and the observer; the BLE core A of the BLE base station establishes a connection with the BLE core B of the downlink base station of the BLE base station by sending a broadcast; the BLE core B of the BLE base station establishes a connection with the BLE core A of the uplink base station of the BLE base station by scanning the broadcast; the BLE core C of the BLE base station establishes a connection with a BLE terminal, and the BLE terminal communicates with other BLE terminals in the BLE network through the BLE base station. The present invention can construct a BLE backbone network through BLE cores A and B, and communicate with the BLE terminal through the BLE core C, so that the communication between the BLE base station and the uplink and downlink base stations and the communication with the terminal node are separated, which can not only improve the data transmission efficiency, but also reduce the random packet loss phenomenon and improve the stability of BLE network transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Bluetooth communication, and in particular to a communication method of a mine linear BLE network based on a multi-core base station. Background Art

[0002] Intelligent coal mines are the core technical support for promoting high-quality development of the coal industry and promoting the transformation and upgrading of the coal industry. In the specific environment of mines, the in-depth application of Internet of Things technology will comprehensively improve the perception and connection capabilities, so that people, people and things, and things can interact in the intelligent environment constructed by data. This will be an important foundation for improving the digitalization capabilities of coal mines and building a smart coal mine system. Real-time and accurate perception of the "man-machine-environment" status information of mines is the basis for the application of the Internet of Things in mines, and it is necessary to support transmission technology that supports efficient interaction between people, things, and things.

[0003] The mine communication architecture with high-speed industrial Ethernet as the backbone and fieldbus and wireless sensor network as the terminal communication extension has basically matured. Wireless transmission technologies such as Wi-Fi, LoRa, ZigBee, Wave Mesh, etc. have been widely used in mine environments. However, these technologies will have problems such as low bandwidth, complex connection methods, and poor transmission anti-interference when used for terminal network coverage. To solve these problems, the industry has proposed a linear networking solution based on BLE in the mine tunnel space. However, with the in-depth application of mine Internet of Things technology, there will be more and more sensors and connections, more and more abundant information, and more and more frequent data interactions, which will lead to higher and higher requirements for the capacity and transmission cost of network nodes. The existing BLE linear connection method can no longer meet the needs of carrying higher network loads and transmission. Summary of the invention

[0004] The technical problem to be solved by the present invention is: in order to solve the technical problem that the BLE network in the prior art cannot meet the requirements of higher network load and transmission, the present invention provides a communication method of a mine linear BLE network based on a multi-core base station, which can carry a larger transmission capacity and improve transmission efficiency and stability.

[0005] The technical solution adopted by the present invention to solve its technical problems is: a communication method of a mine linear BLE network based on a multi-core base station, the BLE network comprising: multiple BLE base stations, each of the BLE base stations comprising a BLE core A, a BLE core B and a BLE core C, the BLE core A and the BLE core B are wired connected, the BLE core A and the BLE core C are wired connected, the BLE core B and the BLE core C are wired connected, each of the BLE base stations has a unique base station address, and two adjacent BLE base stations are connected via Bluetooth; multiple BLE terminals, the BLE terminal is communicatively connected to the BLE base station closest to it.

[0006] A communication method for a mine linear BLE network based on a multi-core base station includes the following steps:

[0007] S1. Set the BLE core A of each BLE base station as a slave, the BLE core B as a host, and the BLE core C as one or more of the host, slave, broadcaster, and observer;

[0008] S2, the BLE core A of the BLE base station establishes a connection with the BLE core B of the downlink base station of the BLE base station by sending a broadcast; the BLE core B of the BLE base station establishes a connection with the BLE core A of the uplink base station of the BLE base station by scanning the broadcast;

[0009] S3. The BLE core C of the BLE base station establishes a connection with the BLE terminal, and the BLE terminal communicates with other BLE terminals in the BLE network through the BLE base station.

[0010] Therefore, a BLE backbone network can be built through BLE core A and BLE core B, and communication with the BLE terminal can be achieved through BLE core C. In this way, the communication between the BLE base station and the uplink and downlink base stations and the communication with the terminal nodes are separated, which can not only improve the data transmission efficiency, but also reduce the random packet loss phenomenon and improve the stability of BLE network transmission.

[0011] Furthermore, the uplink base station and the downlink base station of the current BLE base station are determined according to the logical relationship of the base station addresses.

[0012] Furthermore, in step S2, the specific process of establishing a connection with a downlink base station includes:

[0013] The BLE core A of the current BLE base station periodically sends broadcasts, and the BLE core B of the downlink base station performs periodic scanning;

[0014] When the BLE core B scans the broadcast sent by the BLE core A, the BLE core B obtains the base station address of the BLE core A, and the BLE core B determines whether the scanned BLE core A is the correct connection object according to the base station address; if it is the correct connection object, the BLE core A of the current BLE base station establishes a connection with the BLE core B of the downlink base station;

[0015] After the connection is established, the BLE core A of the current BLE base station stops broadcasting, and the BLE core B of the downlink base station stops scanning.

[0016] Furthermore, in step S2, the specific process of establishing a connection with the uplink base station includes:

[0017] The BLE core B of the current BLE base station performs periodic scanning, and the BLE core A of the uplink base station periodically sends broadcasts;

[0018] When the BLE core B scans the broadcast sent by the BLE core A, the BLE core B obtains the base station address of the BLE core A, and the BLE core B determines whether the scanned BLE core A is the correct connection object according to the base station address; if it is the correct connection object, the BLE core B of the current BLE base station establishes a connection with the BLE core A of the uplink base station;

[0019] After the connection is established, the BLE core B of the current BLE base station stops scanning, and the BLE core A of the uplink base station stops broadcasting.

[0020] Further, in step S3, the BLE core C establishes a connection with the BLE terminal specifically including:

[0021] When the BLE terminal acts as a slave, the BLE terminal periodically sends a broadcast, and the BLE core C performs periodic scanning. When the BLE core C scans the broadcast of the BLE terminal, the BLE core C establishes a connection with the BLE terminal. At this time, the BLE core C acts as a host;

[0022] When the BLE terminal acts as a host, the BLE core C periodically sends a broadcast, and the BLE terminal performs periodic scanning. When the BLE terminal scans the broadcast of the BLE core C, the BLE terminal establishes a connection with the BLE core C. At this time, the BLE core C acts as a slave.

[0023] Furthermore, the method further comprises:

[0024] When the BLE terminal acts as a broadcaster, the BLE terminal sends broadcast information, the BLE core C scans, and the BLE core C communicates with the BLE terminal by receiving the broadcast information. At this time, the BLE core C acts as an observer;

[0025] When the BLE terminal acts as an observer, the BLE core C sends a broadcast message, the BLE terminal performs scanning, and the BLE terminal communicates with the BLE core C by receiving the broadcast message. At this time, the BLE core C acts as a broadcaster.

[0026] Furthermore, the BLE core C stores non-directional data packets uploaded by the BLE terminal.

[0027] Further, in step S4, the BLE terminal communicates with other BLE terminals in the BLE network through the BLE base station, including:

[0028] The BLE terminal sends device information, addressing status and service subscription request of the BLE terminal to the BLE core C;

[0029] The BLE core C determines whether the address information of the BLE terminal is legal, and if it is illegal, the BLE core C closes the connection with the BLE terminal;

[0030] If the address information of the BLE terminal is legal, it is determined whether the address information of the BLE terminal can be discovered; if it is not discoverable, the BLE core C directly determines whether the service subscription request is legal; if it is discoverable, the BLE core C records the address information of the BLE terminal in the local routing table, and the BLE core C sends the updated local routing table to the BLE core A and the BLE core B; the BLE core C determines whether the service subscription request is legal;

[0031] If the service subscription request is legal, the BLE core C records the service subscription request in the subscription table and replies to the BLE terminal that the subscription is successful; if the service subscription request is illegal, the BLE terminal is replied with a subscription error.

[0032] Furthermore, the method also includes: the BLE core A and the BLE core B of the same BLE base station periodically send ACK signals to each other to confirm whether both parties are working normally.

[0033] Further, when the BLE core A does not receive the ACK signal of the BLE core B within the specified time, the BLE core A enters the compensation connection state, executes the master-slave integrated connection mode, and the BLE core A starts the scanning function to replace the BLE core B to connect with the uplink base station;

[0034] When the BLE core B does not receive the ACK signal from the BLE core A within the specified time, the BLE core B enters the compensation connection state and executes the master-slave integrated mode. The BLE core B starts the broadcast function to replace the BLE core A to connect to the downlink base station.

[0035] Compared with the prior art, the present invention has the following advantages:

[0036] (1) Each core of the present invention assumes different functions, and the communication with the uplink and downlink base stations and the communication with the terminal are isolated from each other, which can reduce the random packet loss phenomenon and improve the stability and reliability of BLE network data transmission;

[0037] (2) Compared with a single core base station, the present invention can increase the bandwidth of data transmission in a multi-hop state by more than 200%. After testing, when using the 1Mbps bandwidth modulation of the BLE5.0 standard or above, when the signal strength received by the BLE base station in the present invention is -80db, the actual measured data bandwidth of the air interface is about 60kbps, while when using a single core base station network under the same circumstances, the actual measured data bandwidth of the air interface is less than 20kbps;

[0038] (3) The BLE core C of the present invention can realize the management function of the local star-shaped terminal node, physically isolate the terminal node from the backbone network, and ensure the stability of the backbone network transmission;

[0039] (4) When BLE core A or B is accidentally damaged, the other core in A / B can enter the compensation connection state and temporarily replace the damaged core to connect to the uplink and downlink base stations to maintain the networking function, thereby improving the reliability and stability of the BLE network;

[0040] (5) BLE core C can record the non-directional data in the BLE network in real time. When a terminal is connected, the latest non-directional data information required can be quickly obtained from BLE core C without affecting the transmission data of BLE cores A and B as the backbone network. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0042] Figure 1 It is a schematic diagram of the structure of the BLE network of the present invention.

[0043] Figure 2The invention discloses a communication method for a mine linear BLE network based on a multi-core base station.

[0044] Figure 3 It is a schematic diagram of establishing a connection between the BLE core A and the BLE core B of the present invention.

[0045] Figure 4 It is a schematic diagram of establishing a connection between the BLE core C of the present invention and the BLE terminal.

[0046] Figure 5 It is a flow chart of the communication between the BLE core C and the BLE terminal of the present invention.

[0047] Figure 6 It is a flow chart of the service subscription request of the present invention.

[0048] Figure 7 It is a compensation connection flow chart when a failure occurs in the BLE core B of the present invention.

[0049] Figure 8 It is a compensation connection flow chart when a failure occurs in the BLE core A of the present invention.

[0050] In the figure: 101, BLE base station; 102, BLE terminal. DETAILED DESCRIPTION

[0051] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0052] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0053] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0054] like Figure 1 As shown, the BLE network of the present invention includes: multiple BLE base stations 101 and multiple BLE terminals 102, multiple BLE base stations 101 can be wirelessly cascaded through Bluetooth, and each BLE base station 101 can cover its surrounding with Bluetooth signals. Each BLE base station 101 includes BLE core A, BLE core B and BLE core C, BLE core A and BLE core B are wired connected, BLE core A and BLE core C are wired connected, BLE core B and BLE core C are wired connected, each BLE base station 101 has a unique base station address, and two adjacent BLE base stations 101 are connected through Bluetooth. The BLE terminal is connected to the BLE base station 101 closest to it. In the present invention, BLE core A, BLE core B and BLE core C can independently run a Bluetooth protocol stack, and BLE core A, BLE core B and BLE core C can communicate with each other through a high-speed serial interface (such as UART, IIC, SPI, etc.) to achieve data interaction.

[0055] like Figure 2 As shown, the communication method of the mine linear BLE network based on the multi-core base station includes the following steps:

[0056] S1. Set the BLE core A of each BLE base station 101 as a slave, the BLE core B as a master, and the BLE core C as one or more of the master, slave, broadcaster, and observer.

[0057] S2. The BLE core A of the BLE base station 101 establishes a connection with the BLE core B of the downlink base station of the BLE base station 101 by sending a broadcast; the BLE core B of the BLE base station 101 establishes a connection with the BLE core A of the uplink base station of the BLE base station 101 by scanning the broadcast.

[0058] S3. The BLE core C of the BLE base station 101 establishes a connection with the BLE terminal, and the BLE terminal communicates with other BLE terminals in the BLE network through the BLE base station 101.

[0059] It should be noted that the BLE core A and the BLE core B are mainly used to establish a connection with the adjacent BLE base station 101. In the present invention, the connection direction of the BLE core A is defined as the downlink base station, and the connection direction of the BLE core B is defined as the uplink base station. The BLE core C can establish a connection with the nearby BLE terminal 102 for data exchange, and the BLE cores C of different BLE base stations 101 will not communicate with each other. In other words, the BLE base station 101 of the present invention includes three cores. The BLE backbone network can be constructed through the BLE core A and the BLE core B, and the BLE terminal 102 can be communicated with through the BLE core C. In this way, the communication between the BLE base station 101 and the uplink and downlink base stations and the communication with the terminal nodes are separated, which can not only improve the data transmission efficiency, but also reduce the random packet loss phenomenon and improve the stability of the BLE network transmission.

[0060] Specifically, the uplink base station and downlink base station of the current BLE base station can be determined according to the logical relationship of the base station address. For example, if the address of base station No. 1 is 0x01, the address of base station No. 2 is 0x02, and the address of base station No. 3 is 0x03, then the BLE base station 101 with a base station address of 0x01 is the uplink base station of the BLE base station 101 with a base station address of 0x02, and the BLE base station 101 with a base station address of 0x03 is the downlink base station of the BLE base station 101 with a base station address of 0x02. When multiple BLE base stations 101 are cascaded, they are connected in the logical order of the base station addresses, which facilitates the rapid establishment of a BLE network and reduces connection errors. The BLE core A and BLE core B of the same BLE base station 101 have the same base station address. When adjacent BLE base stations 101 establish a connection, the base station address can be used to determine whether they are the correct connection object.

[0061] Specifically, in step S2, the specific process of establishing a connection between the BLE base station and the downlink base station includes: the BLE core A of the current BLE base station 101 periodically sends a broadcast, and the BLE core B of the downlink base station performs periodic scanning. When BLE core B scans the broadcast sent by BLE core A, BLE core B obtains the base station address of BLE core A, and BLE core B determines whether the scanned BLE core A is the correct connection object based on the base station address; if it is the correct connection object, the BLE core A of the current BLE base station 101 establishes a connection with the BLE core B of the downlink base station. After the connection is established, the BLE core A of the current BLE base station 101 stops broadcasting, and the BLE core B of the downlink base station stops scanning.

[0062] In step S2, the specific process of establishing a connection between the BLE base station and the uplink base station includes: the BLE core B of the current BLE base station 101 performs periodic scanning, and the BLE core A of the uplink base station periodically sends broadcasts. When BLE core B scans the broadcast sent by BLE core A, BLE core B obtains the base station address of BLE core A, and BLE core B determines whether the scanned BLE core A is the correct connection object based on the base station address; if it is the correct connection object, the BLE core B of the current BLE base station 101 establishes a connection with the BLE core A of the uplink base station. After the connection is established, the BLE core B of the current BLE base station 101 stops scanning, and the BLE core A of the uplink base station stops broadcasting.

[0063] like Figure 3 As shown in the figure, three BLE base stations are taken as an example to illustrate the specific process of step S2. The BLE core B of base station No. 1 (i.e., the base station address is 0x01) is referred to as B1, the BLE core A and BLE core B of base station No. 2 (i.e., the base station address is 0x02) are referred to as A2 and B2, and the BLE core A of base station No. 3 (i.e., the base station address is 0x03) is referred to as A3. The broadcast and scan in the figure respectively indicate that Bluetooth broadcasts and scans on channels 37, 38, and 39 (these three channels are the main broadcast channels defined in the Bluetooth standard). The specific process is as follows:

[0064] At t1, base station 1 is powered on, B1 reads the base station address (0x01) from the local Flash, and then periodically scans channels 37, 38, and 39. At t2, base station 3 is powered on, A3 reads the base station address (0x03) from the local Flash, and then periodically broadcasts channels 37, 38, and 39. At t3, B1 scans the broadcast information sent by A3 on channel 37. After B1 obtains A3's base station address, B1 determines that A3 is not the correct connection object based on the base station address, and B1 terminates the current connection. At t4, base station 2 is powered on, A2 and B2 read the base station address (0x02) from the local Flash, and then broadcast and scan on channels 37, 38, and 39, respectively. At time t5, B2 scans the broadcast information sent by A3 on channel 38, and B2 obtains the base station address of A3. B2 determines that A3 is the correct connection object based on the base station address. At this time, B2 establishes a connection with A3, and then B2 stops scanning, and A3 stops broadcasting. The two parties can periodically connect and exchange data. At time t6, B1 scans the broadcast information sent by A2 on channel 39, and B1 obtains the base station address of A2. B1 determines that A2 is the correct connection object based on the base station address. Therefore, B1 establishes a connection with A2, and then B1 stops scanning, and A2 stops broadcasting. The two parties can periodically connect and exchange data. Multiple BLE base stations 101 are cascaded according to the logical relationship of the base station address, which not only facilitates the establishment of connections, but also facilitates the inspection of problems.

[0065] It should be noted that the device names broadcast by all BLE cores A in the BLE network are the same, and the device names broadcast by all BLE cores C in the BLE network are the same, but the device names broadcast by BLE cores A and BLE cores C are different. For example, when broadcasting, the device name of BLE core A is Device A, and the device name of BLE core C is Device C. In this way, on the one hand, it is convenient for the connection between the base station and the uplink and downlink base stations, and for the connection between BLE core C and BLE terminal 102; on the other hand, it can prevent the BLE core A and BLE core C from being connected by mistake.

[0066] In step S3, the BLE core C establishes a connection with the BLE terminal 102 specifically including: when the BLE terminal 102 acts as a slave, the BLE terminal 102 periodically sends a broadcast, and the BLE core C performs periodic scanning. When the BLE core C scans the broadcast of the BLE terminal 102, the BLE core C establishes a connection with the BLE terminal 102. At this time, the BLE core C acts as a host. When the BLE terminal 102 acts as a host, the BLE core C periodically sends a broadcast, and the BLE terminal 102 performs periodic scanning. When the BLE terminal 102 scans the broadcast of the BLE core C, the BLE terminal 102 establishes a connection with the BLE core C. At this time, the BLE core C acts as a slave.

[0067] The method further includes: when the BLE terminal 102 acts as a broadcaster, the BLE terminal 102 sends a broadcast message, the BLE core C performs scanning, and the BLE core C communicates with the BLE terminal 102 by receiving the broadcast message. At this time, the BLE core C acts as an observer. When the BLE terminal 102 acts as an observer, the BLE core C sends a broadcast message, the BLE terminal 102 performs scanning, and the BLE terminal 102 communicates with the BLE core C by receiving the broadcast message. At this time, the BLE core C acts as a broadcaster.

[0068] In practical applications, the role of the BLE terminal 102 can be set according to actual needs, and the BLE core C can switch functions according to the role of the BLE terminal 102. For example, Figure 4 As shown, taking four BLE terminals near the BLE core C as an example, the four BLE terminals are respectively recorded as terminal 1 (slave), terminal 2 (host), terminal 3 (observer) and terminal 4 (broadcaster). At time t1, the BLE core C scans the broadcast information sent by terminal 1 and establishes a connection with terminal 1. At this time, the BLE core C is the host and terminal 1 is the slave, and data can be exchanged periodically. At time t2 and time t4, the BLE core C scans the broadcast information sent by terminal 4, but the two parties do not establish a connection, and communicate by receiving the broadcast information of terminal 4 through the BLE core C. At time t3, terminal 2 scans the broadcast information sent by BLE core C and establishes a connection with BLE core C. At this time, terminal 2 is the host and core C is the slave, and data can be exchanged periodically. At time t3, terminal 3 scans the broadcast information sent by BLE core C, but the two parties do not establish a connection, and communicate by receiving the broadcast message of BLE core C through terminal 3. In addition, the BLE terminal 102 can also act as a broadcaster and an observer at the same time, broadcasting and scanning alternately to achieve data transmission and reception.

[0069] In other words, the BLE core C of the present invention can manage the terminal nodes, and isolate the terminal nodes from the backbone network at the physical layer, thereby ensuring the stability of data transmission on the backbone network.

[0070] In the present embodiment, the BLE core C stores the non-directional data packets uploaded by the BLE terminal 102. A non-directional data packet refers to a data packet that is not sent to a fixed target address. The data packet may contain underground sensor data, personnel positioning data, etc. The BLE terminal 102 near the BLE core C can store the non-directional data packet in the BLE core C. After the BLE core C receives the non-directional data packet, it can be updated and recorded locally according to the transmission source and parameter type of the non-directional data packet. Only after receiving a new data packet with the same transmission source and the same parameter type again, the data will be updated. When the nearby BLE terminal 102 establishes a connection with the BLE core C, a service subscription request (i.e., a request to view the non-directional data packet) can be sent to the BLE core C. In other words, the BLE core C of the present invention can record the non-directional data packets in the BLE network in real time. When a BLE terminal 102 is connected or communicated with the BLE core C, the BLE terminal 102 can quickly obtain the required data from the BLE core C, and will not affect the transmission efficiency of the backbone network.

[0071] like Figure 5 As shown, in step S4, the BLE terminal 102 communicates with other BLE terminals 102 in the BLE network through the BLE base station, including: the BLE terminal 102 sends the device information (including device address, device type, etc.), addressing status (whether it can be discovered) and service subscription request of the BLE terminal 102 to the BLE core C. The BLE core C determines whether the address information of the BLE terminal 102 is in a legal state. If it is illegal, the BLE core C terminal closes the connection with the BLE terminal 102. If the address information of the BLE terminal 102 is legal, it is determined whether the address information of the BLE terminal 102 can be discovered; if it is not discoverable, the BLE core C directly determines whether the service subscription request is legal; if it is discoverable, the BLE core C records the address information of the BLE terminal 102 in the local routing table, and the BLE core C sends the updated local routing table to the BLE core A and the BLE core B; the BLE core C determines whether the service subscription request is legal. If the service subscription request is legal, the BLE core C records the service subscription request in the subscription table and replies to the BLE terminal 102 that the subscription is successful; if the service subscription request is illegal, the BLE terminal 102 is replied with a subscription error. After the subscription is successful, the BLE core C can send the data packet subscribed by the BLE terminal 102 to the BLE terminal 102.

[0072] It should be noted that a blacklist and whitelist of terminals are set in the BLE network, and terminals on the blacklist are not allowed to obtain non-directional data. Therefore, whether the address information of the BLE terminal 102 is legal can be determined based on the blacklist and whitelist, or based on the address rules set by the user to determine whether the terminal is legal. By determining whether the terminal address is legal, data can be prevented from being stolen, or some retransmission or mistransmission requests can be avoided.

[0073] For example, Figure 6 As shown, the first BLE terminal 102 is referred to as T1, the second BLE terminal 102 is referred to as T2, the three cores of the first base station are referred to as A1, B1, and C1, and the three cores of the second base station are referred to as A2, B2, and C2. When T2 uploads non-directional data packets of type X and type Y to C2, C2 updates the locally stored non-directional data packets of type X and type Y of T2, and sends the updated two data packets to A2 and B2. A2 and B2 send the two data packets to the downlink base station and the uplink base station respectively. After receiving the non-directional data packets of type X and type Y, B1 passes the two data packets to A1 and C1. A1 can continue to pass the two data packets to other BLE base stations. After receiving the two data packets, C1 updates the local non-directional data packets of type X and type Y of T2. Then C1 can send the data packets of the relevant type to T1 according to T1's service subscription request. For example, if T1 requests to subscribe to the data packet of type X, then C1 can send the data packet of type X to T1.

[0074] In other words, the BLE terminal 102 can upload a non-directional data packet to the BLE base station 101 closest to it, and the BLE base station 101 can pass the non-directional data packet upward and downward to other BLE base stations 101 in the BLE network. When other BLE terminals 102 want to obtain the non-directional data packet, they can send a service subscription request to the nearby BLE base station 101. After the subscription is successful, the content of the data packet can be obtained. In this way, any BLE terminal 102 can obtain a data packet from a BLE base station 101 closest to it, which can not only save data transmission time and improve transmission efficiency, but also will not affect the transmission efficiency of BLE core A and BLE core B.

[0075] The method further includes: the BLE core A and the BLE core B of the same BLE base station 101 periodically send ACK signals to each other to confirm whether both parties are working normally. After the BLE base station 101 starts working, the BLE core A and the BLE core B will periodically send ACK signals to each other. If both parties can send and receive ACK signals normally, it indicates that the BLE core A and the BLE core B are normal. If one party does not receive the ACK signal of the other party, it indicates that the BLE core A or the BLE core B has a fault.

[0076] When BLE core A does not receive the ACK signal from BLE core B within the specified time (for example, 5 to 10 seconds), BLE core A enters the compensation connection state and executes the master-slave connection mode. BLE core A starts the scanning function to replace BLE core B to connect to the uplink base station. Figure 7 As shown in the figure, when BLE core B fails, BLE core A enters the compensation connection state. At this time, BLE core A continues to maintain the connection with the downlink base station and executes the master-slave connection mode (that is, BLE core A acts as both the host and the slave). BLE core A starts the scanning function, and the device name scanned by BLE core A is the same as the device name scanned when BLE core B works normally. At this time, BLE core A establishes a connection with the BLE core A of the uplink base station through scanning. If the BLE core A of the uplink base station also fails, the BLE core A of this base station connects to the BLE core B of the uplink base station that enters the compensation connection state. If the BLE core B of the downlink base station of this base station also fails, the BLE core A of this base station starts the broadcast and scanning functions at the same time. At this time, BLE core A establishes a connection with the BLE core A of the uplink base station through scanning. If the BLE core A of the uplink base station also fails, the BLE core A of this base station establishes a connection with the BLE core B of the uplink base station that enters the compensation connection state; at the same time, the BLE core A of this base station establishes a connection with the BLE core A of the downlink base station that enters the compensation connection state by sending a broadcast.

[0077] Similarly, when BLE core B does not receive the ACK signal from BLE core A within the specified time, BLE core B enters the compensation connection state and executes the master-slave mode. BLE core B starts the broadcast function to replace BLE core A to connect to the downlink base station. Figure 8As shown in the figure, when BLE core A fails, BLE core B enters the compensation connection state. At this time, BLE core B still maintains a connection state with the uplink base station and executes the master-slave connection mode (that is, BLE core B acts as both the host and the slave). BLE core B starts the broadcast function, and the device name broadcast by BLE core B is the same as the device name broadcast when BLE core A works normally. At this time, BLE core B can establish a connection with the BLE core B of the downlink base station through broadcasting. If the BLE core B of the downlink base station also fails, the BLE core B of this base station will establish a connection with the BLE core A of the downlink base station that has entered the compensation connection state. If the BLE core A of the uplink base station fails at this time, the BLE core B of this base station will enable the broadcast and scanning functions at the same time, and the BLE core B of this base station will establish a connection with the BLE core B of the uplink base station that has entered the compensation connection state through scanning; at the same time, the BLE core B of this base station can connect to the BLE core B of the downlink base station by sending broadcasts. If the BLE core B of the downlink base station also fails at this time, the BLE core B of this base station will establish a connection with the BLE core A of the downlink base station that has entered the compensation connection state.

[0078] In other words, in this embodiment, when the BLE core A or BLE core B of the BLE base station 101 fails, the other core of A or B can temporarily replace the damaged core to maintain connection with the uplink and downlink base stations and maintain networking functions. This can improve the stability of the BLE network and prevent sudden disconnection or unavailability.

[0079] In the prior art, BLE base stations are all single-core base stations. A single core must not only be connected to the uplink and downlink base stations, but also to the terminal. The workload is heavy, and there may be conflicts in the transmission and reception of data between the uplink and downlink base stations and the terminal, resulting in random packet loss, which is particularly obvious in the multi-hop state. The BLE base station 101 of the present application contains three cores, each of which has different functions, and the communication with the uplink and downlink base stations and the communication with the terminal are isolated from each other. Compared with the prior art, the present invention has at least the following advantages:

[0080] (1) The present invention can reduce the phenomenon of random packet loss and improve the stability and reliability of BLE network data transmission.

[0081] (2) Compared with a single core base station, the present invention can increase the bandwidth of data transmission in a multi-hop state by more than 200%. The larger the bandwidth, the greater the efficiency and transmission capacity of signal transmission. After testing, when using the standard 1Mbps bandwidth modulation of BLE5.0 or above, when the signal strength received by the BLE base station in the present invention is -80db, the actual measured data bandwidth of the air interface is about 60kbps, while when a single-core base station is used to form a network under the same circumstances, the actual measured data bandwidth of the air interface is less than 20kbps.

[0082] (3) The BLE core C of the present invention can realize the management function of the local star-shaped terminal nodes, physically isolate the terminal nodes from the backbone network, and ensure the stability of the backbone network transmission.

[0083] (4) When BLE core A or B is accidentally damaged, the other core in A / B can enter the compensation connection state and temporarily replace the damaged core to connect to the uplink and downlink base stations to maintain the networking function, thereby improving the reliability and stability of the BLE network.

[0084] (5) BLE core C can record the non-directional data in the BLE network in real time. When a terminal is connected, the latest non-directional data information required can be quickly obtained from BLE core C without affecting the transmission data of BLE cores A and B as the backbone network.

[0085] In summary, the communication method of the mine linear BLE network based on multi-core base stations of the present invention can meet the demand for carrying higher network loads and ensure transmission efficiency and stability.

[0086] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.

Claims

1. A communication method for a mine linear BLE network based on a multi-core base station, characterized in that: BLE networks include: A plurality of BLE base stations, each of which comprises a BLE core A, a BLE core B and a BLE core C, wherein the BLE core A is connected to the BLE core B by a wire, the BLE core A is connected to the BLE core C by a wire, and the BLE core B is connected to the BLE core C by a wire, each of which has a unique base station address, and two adjacent BLE base stations are connected via Bluetooth; A plurality of BLE terminals, each of which is communicatively connected to a BLE base station that is closest to the terminal; A communication method for a mine linear BLE network based on a multi-core base station includes the following steps: S1. Set the BLE core A of each BLE base station as a slave, the BLE core B as a host, and the BLE core C as one or more of the host, slave, broadcaster, and observer; S2, the BLE core A of the BLE base station establishes a connection with the BLE core B of the downlink base station of the BLE base station by sending a broadcast; the BLE core B of the BLE base station establishes a connection with the BLE core A of the uplink base station of the BLE base station by scanning the broadcast; S3, the BLE core C of the BLE base station establishes a connection with the BLE terminal, and the BLE terminal communicates with other BLE terminals in the BLE network through the BLE base station; Determine the uplink base station and the downlink base station of the current BLE base station according to the logical relationship of the base station address; The specific process of establishing a connection with a downlink base station includes: The BLE core A of the current BLE base station periodically sends broadcasts, and the BLE core B of the downstream base station performs periodic scanning; when the BLE core B scans the broadcast sent by the BLE core A, the BLE core B obtains the base station address of the BLE core A, and the BLE core B determines whether the scanned BLE core A is the correct connection object according to the base station address; if it is the correct connection object, the BLE core A of the current BLE base station establishes a connection with the BLE core B of the downstream base station; after the connection is established, the BLE core A of the current BLE base station stops broadcasting, and the BLE core B of the downstream base station stops scanning; The specific process of establishing a connection with an uplink base station includes: The BLE core B of the current BLE base station performs periodic scanning, and the BLE core A of the uplink base station periodically sends broadcasts; when the BLE core B scans the broadcast sent by the BLE core A, the BLE core B obtains the base station address of the BLE core A, and the BLE core B determines whether the scanned BLE core A is the correct connection object based on the base station address; if it is the correct connection object, the BLE core B of the current BLE base station establishes a connection with the BLE core A of the uplink base station; after the connection is established, the BLE core B of the current BLE base station stops scanning, and the BLE core A of the uplink base station stops broadcasting.

2. The communication method of a mine linear BLE network based on a multi-core base station according to claim 1, characterized in that: In step S3, the BLE core C establishes a connection with the BLE terminal, specifically including: When the BLE terminal acts as a slave, the BLE terminal periodically sends a broadcast, and the BLE core C performs periodic scanning. When the BLE core C scans the broadcast of the BLE terminal, the BLE core C establishes a connection with the BLE terminal. At this time, the BLE core C acts as a host; When the BLE terminal acts as a host, the BLE core C periodically sends a broadcast, and the BLE terminal performs periodic scanning. When the BLE terminal scans the broadcast of the BLE core C, the BLE terminal establishes a connection with the BLE core C. At this time, the BLE core C acts as a slave.

3. The communication method of the mine linear BLE network based on multi-core base stations as claimed in claim 2, characterized in that: The method further comprises: When the BLE terminal acts as a broadcaster, the BLE terminal sends broadcast information, the BLE core C scans, and the BLE core C communicates with the BLE terminal by receiving the broadcast information. At this time, the BLE core C acts as an observer; When the BLE terminal acts as an observer, the BLE core C sends a broadcast message, the BLE terminal performs scanning, and the BLE terminal communicates with the BLE core C by receiving the broadcast message. At this time, the BLE core C acts as a broadcaster.

4. The communication method of a mine linear BLE network based on a multi-core base station according to claim 1, characterized in that: The BLE core C stores the non-directional data packets uploaded by the BLE terminal.

5. The communication method of the mine linear BLE network based on multi-core base stations according to claim 4, characterized in that: In step S4, the BLE terminal communicates with other BLE terminals in the BLE network through the BLE base station, including: The BLE terminal sends the device information, addressing status and service subscription request of the BLE terminal to the BLE core C; the BLE core C determines whether the address information of the BLE terminal is in a legal state. If it is illegal, the BLE core C terminal closes the connection with the BLE terminal; if the address information of the BLE terminal is legal, it determines whether the address information of the BLE terminal is discoverable; if it is not discoverable, the BLE core C directly determines whether the service subscription request is legal; if it is discoverable, the BLE core C records the address information of the BLE terminal in the local routing table, and the BLE core C sends the updated local routing table to the BLE core A and the BLE core B; the BLE core C determines whether the service subscription request is legal; if the service subscription request is legal, the BLE core C records the service subscription request in the subscription table and replies to the BLE terminal that the subscription is successful; if the service subscription request is illegal, the BLE terminal is replied with a subscription error.

6. The communication method of a mine linear BLE network based on a multi-core base station according to claim 1, characterized in that: The method further includes: the BLE core A and the BLE core B of the same BLE base station periodically send ACK signals to each other to confirm whether both parties are working normally.

7. The communication method of a mine linear BLE network based on a multi-core base station as claimed in claim 6, characterized in that: When the BLE core A does not receive the ACK signal of the BLE core B within the specified time, the BLE core A enters the compensation connection state, executes the master-slave integrated connection mode, and the BLE core A starts the scanning function to replace the BLE core B to connect with the uplink base station; when the BLE core B does not receive the ACK signal of the BLE core A within the specified time, the BLE core B enters the compensation connection state, executes the master-slave integrated mode, and the BLE core B starts the broadcast function to replace the BLE core A to connect with the downlink base station.

Citation Information

Patent Citations

  • Method for subscripting, amending, canceling subscription authority and desubscripting CBCS service

    CN101115023A

  • Game management method, device and system

    CN101847175A

  • Wireless isolation base station suitable for power cross-region integrated service access

    CN107734499A

  • NAS cluster node, system and data access method

    CN109274761A

  • BLE network suitable for mine space and roaming communication method

    CN112188409A