CN106792461B - BLE-based relay concentrator and low-power-consumption topological networking method - Google Patents

BLE-based relay concentrator and low-power-consumption topological networking method Download PDF

Info

Publication number
CN106792461B
CN106792461B CN201611198996.7A CN201611198996A CN106792461B CN 106792461 B CN106792461 B CN 106792461B CN 201611198996 A CN201611198996 A CN 201611198996A CN 106792461 B CN106792461 B CN 106792461B
Authority
CN
China
Prior art keywords
capacitor
data
upper computer
concentrator
ble
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.)
Expired - Fee Related
Application number
CN201611198996.7A
Other languages
Chinese (zh)
Other versions
CN106792461A (en
Inventor
王小利
王诗林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University
Original Assignee
Shandong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University filed Critical Shandong University
Priority to CN201611198996.7A priority Critical patent/CN106792461B/en
Publication of CN106792461A publication Critical patent/CN106792461A/en
Application granted granted Critical
Publication of CN106792461B publication Critical patent/CN106792461B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a BLE-based relay concentrator, which is characterized by being provided with a host BLE terminal node circuit module and a slave BLE terminal node circuit module, wherein the host BLE terminal node circuit module is connected with the slave terminal node circuit module through an I2C bus so as to be favorable for directly connecting with a BLE node through one relay concentrator to read and write star-shaped topological data, and then forming tree-shaped topological data reading and writing with an upper computer through a plurality of relay concentrators so as to form large-scale data transmission, break through the upper limit of 8 slaves in the original networking, achieve the effects of low power consumption and long wireless transmission distance, and have the advantages of quick connection, high self-networking capability, electromagnetic interference resistance, accurate data transmission and the like.

Description

BLE-based relay concentrator and low-power-consumption topological networking method
Technical Field
The invention relates to the technical field of data acquisition systems, in particular to a BLE 4.0-based relay concentrator and a low-power-consumption topological networking method.
Background
The traditional BLE4.0 Central-Peripheral communication mode can only carry out single point-to-point transmission and simple star topology connection, and needs to carry out the complicated processes of scanning, connection, pairing, binding, transmission and disconnection in the connection process, and the problems of scanning loss, overlong connection pairing reaction time and the like easily exist in the process. In the connection process of the star topology, the host can only be connected with 8 slave machines at most, and large-scale networking cannot be realized. And the other traditional BLE4.0 Observer-Broadcaster connection mode does not need to be connected, but cannot perform large-scale data transmission and collection.
Disclosure of Invention
The invention aims to solve the defects of the prior art and provides a BLE-based relay concentrator with quick connection, high ad hoc network capacity, electromagnetic interference resistance and accurate data transmission and a low-power-consumption topological networking method.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a relay concentrator based on BLE is characterized by being provided with a host BLE terminal node circuit module, a slave BLE terminal node circuit module and a power supply module, wherein the power supply module respectively supplies power to the host BLE terminal node circuit module and the slave BLE terminal node circuit module, the host BLE terminal node circuit module is connected with the slave BLE terminal node circuit module through two ports of a USB _ P and a USB _ M and communicates in an IIC mode, the host BLE terminal node circuit module comprises a CC2540 processor U5, capacitors C29, C31, C33, C27, C25, C21, C22, C19, C17, C13, a resistor R9, an inductor L5, L7, L9, L11, a crystal oscillator Y11, a Y11 and a PCB antenna E11, wherein the U11, the R11, the C11, a crystal oscillator Y3632, a crystal oscillator Y768, a crystal oscillator system and a single chip microcomputer system are formed by the crystal oscillator Y11 and the crystal oscillator Y11, the crystal oscillator system is a minimum working capacitance system 11 and a single chip microcomputer system 3632, the circuit system required by the normal work of the singlechip CC2540 is a balun matching circuit formed by capacitors C13, C17, C21 and C22 and inductors L5, L7, L9 and L11, is used for modulating impedance matching of transmitted and received signals, and is responsible for receiving and transmitting the signals by an antenna E2;
the slave BLE terminal node circuit module comprises a CC2540 processor U, capacitors C, C, C, C, C, C, C, C, C, C, resistor R, R, R, R, inductance L, L, L, crystal oscillator Y, Y, a PCB antenna E, LED indicator lamps D, D, D and D, wherein the U, R, C, a 32.768k crystal oscillator system formed by the crystal oscillator Y and the capacitors C and C, and a 32M crystal oscillator system formed by the crystal oscillator Y, the capacitors C and C together form a minimum working system of the singlechip, namely a circuit system required by the normal working of the singlechip CC2540, a balun matching circuit formed by the capacitors C, C, C and the inductors L, L, L and L is used for modulating impedance matching of transmitting and receiving signals, and an antenna E is used for receiving and transmitting signals, and the resistors R, R, R, R, R, R and LED indicator lamps D, D, D, D and D form an indicator lamp system, the method is used for displaying the working state of the repeater, so that tree-shaped topological data reading and writing are formed between the repeater concentrators and an upper computer, large-scale data transmission is formed, star-shaped topological data reading and writing are formed between the repeater concentrators and the BLE node devices, the upper limit of 8 slave computers in the original networking is broken through, unnecessary complicated scanning-connecting-pairing-binding processes are omitted, the connecting duration is shortened to 3ms, the power consumption is greatly reduced, and the wireless transmission distance is longer.
The relay concentrator provided by the invention adopts a half-duplex working mode, so that the electromagnetic interference between BLE nodes is avoided, and the accurate data transmission effect is achieved.
The data packet information in the relay concentrator is provided with the ID number of the node and the head and tail encapsulation, so that the information source can be conveniently judged.
The power supply module comprises a direct-current voltage stabilization chip AMS-1117U 4, tantalum capacitors C15 and C16 and a power supply external interface P1, wherein the U4 is responsible for reducing the voltage of an external power supply to 3.3V, and C15 and C16 have the voltage stabilization effect.
A low-power consumption topological networking method of a relay concentrator based on BLE4.0 is characterized in that the networking method comprises the steps of judging a networking topological structure and collecting system data by adopting RSSI (received signal strength indicator) strength, wherein the step of judging the networking topological structure by adopting the RSSI strength is specifically;
1) the upper computer sends searching networking commands to all the data relay concentrators one by one in a protocol stack calling and blind connection mode so as to save unnecessary complicated waiting time in the traditional BLE connection process;
2) after receiving the searching networking command, the data relay concentrator starts to scan the slave machines and stores the read IEEE addresses and signal RSSI values of the slave machines;
3) the upper computer reads the IEEE addresses and the signal RSSI values thereof stored in the data relay concentrator one by one;
the upper computer compares the read IEEE address of the BLE node with a comparison table of the upper computer, and maps the read IEEE address with the ID number in the database of the upper computer to determine a unique relationship;
4) the upper computer judges whether the IEEE address of the same BLE node appears in the data returned by different relay concentrators, and if yes, the upper computer judges which data relay concentrator has a stronger RSSI value returned, so that the uniqueness is ensured;
5) the upper computer determines the subordination relation between the BLE nodes and the data concentrator, maps ID numbers of the BLE nodes and the data concentrator, and establishes a table to complete the ad hoc network;
the system data acquisition steps are specifically as follows:
1) the upper computer determines the acquired subordination relation between the BLE terminal nodes and the data relay concentrators and initiates busy connection to one of the data relay concentrators;
2) the upper computer issues an acquisition command to a data relay concentrator, wherein the command comprises the type of information acquisition, the number of nodes of an acquired BLE terminal and the IEEE address of the acquired BLE terminal;
3) the data relay concentrator returns confirmation information to the upper computer;
4) the upper computer is disconnected with the data relay centralized collector;
5) the upper computer repeats the processes (1) to (4) in the steps until the upper computer completes acquisition command issuing communication with the data relay concentrators to which all the communication nodes belong;
6) the data relay concentrator initiates blind connection to one BLE terminal node;
7) the data relay concentrator issues a data acquisition command to the BLE terminal node;
8) the BLE terminal node replies data, wherein the data comprises the ID number of the BLE node;
9) the data relay concentrator adds header and trailer encapsulation to the replied data, and adds the ID number of the self data concentrator collector in the data;
10) the data relay concentrator is disconnected with the BLE terminal node;
11) the data relay concentrator repeats the processes from (6) to (10) in the step until the information acquisition of all BLE terminal nodes is completed;
12) the upper computer initiates blind connection to the data relay concentrator again;
13) the upper computer issues a data return command to the data relay concentrator;
14) the data relay concentrator sends the acquired data to the upper computer one by one;
15) the data relay concentrator sends data transmission completion information to the upper computer;
16) the upper computer is disconnected with the data relay concentrator;
17) and the upper computer repeats the processes (12) - (16) in the steps until all data are acquired.
The networking method of the invention also comprises a busy judgment mechanism of the data relay concentrator, and the steps are as follows:
1) the upper computer is connected with the data relay concentrator and connected with a BLE slave part of the data relay concentrator;
2) after the connection is established, the BLE slave part of the data relay concentrator automatically communicates with the BLE host part of the data relay concentrator through an I2C bus to inquire the working state of the host;
3) the BLE host part of the data relay concentrator returns to busy if busy. If the working state is normal, the operation is returned to normal;
4) the BLE slave part of the data relay concentrator restores the working state of the host to the upper computer after receiving the working state of the host;
5) after receiving the working state of the data relay concentrator, the upper computer normally reads data if the data relay concentrator is in a normal state;
6) if the upper computer receives that the working state of the data relay concentrator is busy, the connection is immediately disconnected, and a remarking event is added;
7) after the upper computer finishes communication with other data relay concentrators, checking the remark event, and repeating the processes from (1) to (6) with the data relay concentrator which is not finished in communication in the remark event;
8) if the upper computer judges that a certain data relay concentrator is always in a busy state, an alarm is sent out so as to be beneficial to timely judging the normal use state of the relay concentrator.
By adopting the structure and the method, the invention has the advantages of quick connection, large ad hoc network capacity, electromagnetic interference resistance, accurate data transmission and the like.
Drawings
Fig. 1 is an electrical schematic of the relay concentrator of the present invention.
Figure 2 is an enlarged view of the host BLE end node circuit block of figure 1.
Figure 3 is an enlarged view of the slave BLE termination node circuit block of figure 1.
Fig. 4 is a flow chart of RSSI strength determination networking topology.
Fig. 5 is a flow chart of system data acquisition.
Fig. 6 is a flow chart of the busy determination mechanism of the data relay concentrator.
Detailed Description
The present invention will be described with reference to the accompanying drawings.
As shown in the accompanying drawings, a relay concentrator based on BLE is characterized in that a master BLE terminal node circuit module 1, a slave BLE terminal node circuit module 2 and a power supply module 3 are provided, the power supply module 3 respectively supplies power to the master BLE terminal node circuit module 1 and the slave BLE terminal node circuit module 2, the master BLE terminal node circuit module 1 is connected with the slave BLE terminal node circuit module 2 through two ports of USB _ P and USB _ M and communicates in an IIC manner, the master BLE terminal node circuit module includes a CC2540 processor U5, a capacitor C29, C31, C33, C27, C25, C21, C24, C19, C17, C9, a resistor R9, an inductor L5, L7, L9, L11, a crystal Y7, Y5, a PCB antenna E2, a system composed of U2, R2, C2, a crystal Y11, a crystal Y768, a crystal Y2, a capacitor C2, a C36768, a C2, a capacitor C2, a C768, a C2, a C36, the 32M crystal oscillator system formed by the C25 forms a minimum working system of the singlechip together, namely a circuit system required by the normal work of the singlechip CC2540, a balun branch matching circuit is formed by a capacitor C13, a capacitor C17, a capacitor C21 and a capacitor C22 and inductors L5, L7, L9 and L11, is used for modulating impedance matching of transmitting and receiving signals, and is responsible for receiving and transmitting the signals by an antenna E2;
the slave BLE terminal node circuit module comprises a CC2540 processor U, capacitors C, C, C, C, C, C, C, C, C, C, resistor R, R, R, R, inductance L, L, L, crystal oscillator Y, Y, a PCB antenna E, LED indicator lamps D, D, D and D, wherein the U, R, C, a 32.768k crystal oscillator system formed by the crystal oscillator Y and the capacitors C and C, and a 32M crystal oscillator system formed by the crystal oscillator Y, the capacitors C and C together form a minimum working system of the singlechip, namely a circuit system required by the normal working of the singlechip CC2540, a balun matching circuit formed by the capacitors C, C, C and the inductors L, L, L and L is used for modulating impedance matching of transmitting and receiving signals, and an antenna E is used for receiving and transmitting signals, and the resistors R, R, R, R, R, R and LED indicator lamps D, D, D, D and D form an indicator lamp system, the method is used for displaying the working state of the repeater, so that tree-shaped topological data reading and writing are formed between the repeater concentrators and an upper computer, large-scale data transmission is formed, star-shaped topological data reading and writing are formed between the repeater concentrators and the BLE node devices, the upper limit of 8 slave computers in the original networking is broken through, unnecessary complicated scanning-connecting-pairing-binding processes are omitted, the connecting duration is shortened to 3ms, the power consumption is greatly reduced, and the wireless transmission distance is longer.
The relay concentrator provided by the invention adopts a half-duplex working mode, so that the electromagnetic interference between BLE nodes is avoided, and the accurate data transmission effect is achieved.
The data packet information in the relay concentrator is provided with the ID number of the node and the head and tail encapsulation, so that the information source can be conveniently judged.
The power supply module comprises a direct-current voltage stabilization chip AMS-1117U 4, tantalum capacitors C15 and C16 and a power supply external interface P1, wherein the U4 is responsible for reducing the voltage of an external power supply to 3.3V, and C15 and C16 have the voltage stabilization effect.
A low-power consumption topological networking method of a relay concentrator based on BLE4.0 is characterized in that the networking method comprises the steps of judging a networking topological structure and collecting system data by adopting RSSI (received signal strength indicator) strength, wherein the step of judging the networking topological structure by adopting the RSSI strength is specifically;
1) the upper computer sends searching networking commands to all the data relay concentrators one by one in a protocol stack calling and blind connection mode so as to save unnecessary complicated waiting time in the traditional BLE connection process;
2) after receiving the searching networking command, the data relay concentrator starts to scan the slave machines and stores the read IEEE addresses and signal RSSI values of the slave machines;
3) the upper computer reads the IEEE addresses and the signal RSSI values thereof stored in the data relay concentrator one by one;
the upper computer compares the read IEEE address of the BLE node with a comparison table of the upper computer, and maps the read IEEE address with the ID number in the database of the upper computer to determine a unique relationship;
4) the upper computer judges whether the IEEE address of the same BLE node appears in the data returned by different relay concentrators, and if yes, the upper computer judges which data relay concentrator has a stronger RSSI value returned, so that the uniqueness is ensured;
5) the upper computer determines the subordination relation between the BLE nodes and the data concentrator, maps ID numbers of the BLE nodes and the data concentrator, and establishes a table to complete the ad hoc network;
the system data acquisition steps are specifically as follows:
1) the upper computer determines the acquired subordination relation between the BLE terminal nodes and the data relay concentrators and initiates blind connection to one of the data relay concentrators;
2) the upper computer issues an acquisition command to a data relay concentrator, wherein the command comprises the type of information acquisition, the number of nodes of an acquired BLE terminal and the IEEE address of the acquired BLE terminal;
3) the data relay concentrator returns confirmation information to the upper computer;
4) the upper computer is disconnected with the data relay centralized collector;
5) the upper computer repeats the processes (1) to (4) in the steps until the upper computer completes acquisition command issuing communication with the data relay concentrators to which all the communication nodes belong;
6) the data relay concentrator initiates blind connection to one BLE terminal node;
7) the data relay concentrator issues a data acquisition command to the BLE terminal node;
8) the BLE terminal node replies data, wherein the data comprises the ID number of the BLE node;
9) the data relay concentrator adds header and trailer encapsulation to the replied data, and adds the ID number of the self data concentrator collector in the data;
10) the data relay concentrator is disconnected with the BLE terminal node;
11) the data relay concentrator repeats the processes from (6) to (10) in the step until the information acquisition of all BLE terminal nodes is completed;
12) the upper computer initiates blind connection to the data relay concentrator again;
13) the upper computer issues a data return command to the data relay concentrator;
14) the data relay concentrator sends the acquired data to the upper computer one by one;
15) the data relay concentrator sends data transmission completion information to the upper computer;
16) the upper computer is disconnected with the data relay concentrator;
17) and the upper computer repeats the processes (12) - (16) in the steps until all data are acquired.
The networking method of the invention also comprises a busy judgment mechanism of the data relay concentrator, and the steps are as follows:
1) the upper computer is connected with the data relay concentrator and connected with a BLE slave part of the data relay concentrator;
2) after the connection is established, the BLE slave part of the data relay concentrator automatically communicates with the BLE host part of the data relay concentrator through an I2C bus to inquire the working state of the host;
3) the BLE host part of the data relay concentrator returns to busy if busy. If the working state is normal, the operation is returned to normal;
4) the BLE slave part of the data relay concentrator restores the working state of the host to the upper computer after receiving the working state of the host;
5) after receiving the working state of the data relay concentrator, the upper computer normally reads data if the data relay concentrator is in a normal state;
6) if the upper computer receives that the working state of the data relay concentrator is busy, the connection is immediately disconnected, and a remarking event is added;
7) after the upper computer finishes communication with other data relay concentrators, checking the remark event, and repeating the processes from (1) to (6) with the data relay concentrator which is not finished in communication in the remark event;
8) if the upper computer judges that a certain data relay concentrator is always in a busy state, an alarm is sent out so as to be beneficial to timely judging the normal use state of the relay concentrator.
By adopting the structure and the method, the invention has the advantages of quick connection, large ad hoc network capacity, electromagnetic interference resistance, accurate data transmission and the like.

Claims (1)

1. The BLE-based relay concentrator is characterized by comprising a host BLE terminal node circuit module, a slave BLE terminal node circuit module and a power supply module, wherein the power supply module is used for supplying power for the host BLE terminal node circuit module and the slave BLE terminal node circuit module respectively; the host BLE terminal node circuit module comprises a CC2540 processor U5, a capacitor C29, a capacitor C31, a capacitor C33, a capacitor C27, a capacitor C25, a capacitor C21, a capacitor C22, a capacitor C19, a capacitor C17, a capacitor C13, a resistor R9, an inductor L5, an inductor L7, an inductor L9, an inductor L11, a crystal oscillator Y3, a crystal oscillator Y5 and a PCB antenna E2; a 32 th pin of the CC2540 processor U5 is grounded through a capacitor C29, a 33 th pin is grounded through a capacitor C31, a 40 th pin is grounded through a capacitor C33, a 22 th pin is grounded through a capacitor C27, a 23 th pin is grounded through a capacitor C25, and a 30 th pin is grounded through a resistor R9; a crystal oscillator Y3 is connected between a 22 th pin and a 23 rd pin of a CC2540 processor U5, a crystal oscillator Y5 is connected between a 32 th pin and a 33 th pin of a CC2540 processor U5, a capacitor C17 and a capacitor C21 are connected in series, an inductor L9 and a capacitor C22 are connected in series, a 26 th pin of a CC2540 processor U5 is connected with a capacitor C21, a 25 th pin of a CC2540 processor U5 is connected with a capacitor C22, a node between the capacitor C17 and the capacitor C21 is grounded through an inductor L11, a node before the inductor L9 and the capacitor C22 is grounded through the capacitor C19, one end of the inductor L7 is simultaneously connected with the capacitor C17 and the inductor L9, the other end of the inductor L7 is connected with a PCB antenna E2 through an inductor L5, and a node between the inductor L7 and the inductor L5 is grounded through a capacitor C13; the slave BLE terminal node circuit module comprises a CC2540 processor U6, a capacitor C30, a capacitor C32, a capacitor C34, a capacitor C28, a capacitor C26, a capacitor C24, a capacitor C23, a capacitor C20, a capacitor C18, a capacitor C14, a resistor R10, an inductor L6, an inductor L8, an inductor L9, an inductor L12, a crystal oscillator Y4, a crystal oscillator Y6 and a PCB antenna E3, wherein a 32 th pin of a CC2540 processor U6 is grounded through a capacitor C30, a 33 th pin is grounded through a capacitor C32, a 40 th pin is grounded through a capacitor C34, a 22 th pin is grounded through a capacitor C28, a 23 th pin is grounded through a capacitor C26, and a 30 th pin is grounded through a resistor R10; a crystal oscillator Y4 is connected between a 22 th pin and a 23 rd pin of a CC2540 processor U6, a crystal oscillator Y6 is connected between a 32 th pin and a 33 th pin of a CC2540 processor U6, a capacitor C18 and a capacitor C23 are connected in series, an inductor L10 and a capacitor C24 are connected in series, a 26 th pin of a CC2540 processor U6 is connected with a capacitor C23, a 25 th pin of a CC2540 processor U6 is connected with a capacitor C24, a node between the capacitor C18 and the capacitor C23 is grounded through an inductor L12, a node before the inductor L10 and the capacitor C24 is grounded through the capacitor C20, one end of the inductor L8 is simultaneously connected with the capacitor C18 and the inductor L10, the other end of the inductor L8 is connected with a PCB antenna E3 through an inductor L6, and a node between the inductor L6 and the inductor L8 is grounded through a capacitor C14; the slave BLE terminal node circuit module comprises a CC2540 processor U, capacitors C, C, C, C, C, C, C, C, C, C, resistor R, R, R, R, inductance L, L, L, crystal oscillator Y, Y, a PCB antenna E, LED indicator lamps D, D, D and D, wherein the U, R, C, a 32.768k crystal oscillator system formed by the crystal oscillator Y and the capacitors C and C, and a 32M crystal oscillator system formed by the crystal oscillator Y, the capacitors C and C together form a minimum working system of the singlechip, namely a circuit system required by the normal working of the singlechip CC2540, a balun matching circuit formed by the capacitors C, C, C and the inductors L, L, L and L is used for modulating impedance matching of transmitting and receiving signals, and an antenna E is used for receiving and transmitting signals, and the resistors R, R, R, R, R, R and LED indicator lamps D, D, D, D and D form an indicator lamp system, the relay is used for displaying the working state of the relay; the networking method comprises the steps of judging a networking topological structure and system data acquisition by adopting RSSI (received signal strength indicator) strength, wherein the step of judging the networking topological structure by adopting the RSSI strength is specifically;
1) the upper computer sends a searching networking command to all the data relay concentrators one by one in a mode of calling a protocol stack and blind connection;
2) after receiving the searching networking command, the data relay concentrator starts to scan the slave machines and stores the read IEEE addresses and signal RSSI values of the slave machines;
3) the upper computer reads the IEEE addresses and the signal RSSI values thereof stored in the data relay concentrator one by one;
the upper computer compares the read IEEE address of the BLE node with a comparison table of the upper computer, and maps the read IEEE address with the ID number in the database of the upper computer to determine a unique relationship;
4) the upper computer judges whether the IEEE address of the same BLE node appears in the data returned by different relay concentrators, and if yes, the upper computer judges which data relay concentrator has a stronger RSSI value returned, so that the uniqueness is ensured;
5) the upper computer determines the subordination relation between the BLE nodes and the data concentrator, maps ID numbers of the BLE nodes and the data concentrator, and establishes a table to complete the ad hoc network;
the system data acquisition steps are specifically as follows:
1) the upper computer determines the acquired subordination relation between the BLE terminal nodes and the data relay concentrators and initiates busy connection to one of the data relay concentrators;
2) the upper computer issues an acquisition command to a data relay concentrator, wherein the command comprises the type of information acquisition, the number of nodes of an acquired BLE terminal and the IEEE address of the acquired BLE terminal;
3) the data relay concentrator returns confirmation information to the upper computer;
4) the upper computer is disconnected with the data relay centralized collector;
5) the upper computer repeats the processes (1) to (4) in the steps until the upper computer completes acquisition command issuing communication with the data relay concentrators to which all the communication nodes belong;
6) the data relay concentrator initiates blind connection to one BLE terminal node;
7) the data relay concentrator issues a data acquisition command to the BLE terminal node;
8) the BLE terminal node replies data, wherein the data comprises the ID number of the BLE node;
9) the data relay concentrator adds header and trailer encapsulation to the replied data, and adds the ID number of the self data concentrator collector in the data;
10) the data relay concentrator is disconnected with the BLE terminal node;
11) the data relay concentrator repeats the processes from (6) to (10) in the step until the information acquisition of all BLE terminal nodes is completed;
12) the upper computer initiates blind connection to the data relay concentrator again;
13) the upper computer issues a data return command to the data relay concentrator;
14) the data relay concentrator sends the acquired data to the upper computer one by one;
15) the data relay concentrator sends data transmission completion information to the upper computer;
16) the upper computer is disconnected with the data relay concentrator;
17) the upper computer repeats the processes (12) - (16) in the step until all data are acquired;
the networking method also comprises a busy judgment mechanism of the data relay concentrator, and the steps are as follows:
1) the upper computer is connected with the data relay concentrator and connected with a BLE slave part of the data relay concentrator;
2) after the connection is established, the BLE slave part of the data relay concentrator automatically communicates with the BLE host part of the data relay concentrator through an I2C bus to inquire the working state of the host;
3) if the BLE host part of the data relay concentrator is busy, returning to busy;
4) the BLE slave part of the data relay concentrator restores the working state of the host to the upper computer after receiving the working state of the host;
5) after receiving the working state of the data relay concentrator, the upper computer normally reads data if the data relay concentrator is in a normal state;
6) if the upper computer receives that the working state of the data relay concentrator is busy, the connection is immediately disconnected, and a remarking event is added;
7) after the upper computer finishes communication with other data relay concentrators, checking the remark event, and repeating the processes from (1) to (6) with the data relay concentrator which is not finished in communication in the remark event;
8) if the upper computer judges that a certain data relay concentrator is always in a busy state, an alarm is sent out so as to be beneficial to judging the normal use state of the relay concentrator in time;
the relay concentrator adopts a half-duplex working mode;
and the data packet information in the relay concentrator is encapsulated by the ID number and the header and the tail of the node.
CN201611198996.7A 2016-12-22 2016-12-22 BLE-based relay concentrator and low-power-consumption topological networking method Expired - Fee Related CN106792461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611198996.7A CN106792461B (en) 2016-12-22 2016-12-22 BLE-based relay concentrator and low-power-consumption topological networking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611198996.7A CN106792461B (en) 2016-12-22 2016-12-22 BLE-based relay concentrator and low-power-consumption topological networking method

Publications (2)

Publication Number Publication Date
CN106792461A CN106792461A (en) 2017-05-31
CN106792461B true CN106792461B (en) 2020-10-16

Family

ID=58897184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611198996.7A Expired - Fee Related CN106792461B (en) 2016-12-22 2016-12-22 BLE-based relay concentrator and low-power-consumption topological networking method

Country Status (1)

Country Link
CN (1) CN106792461B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350637A (en) * 2008-09-05 2009-01-21 清华大学 Networking method for two-channel wireless sensing terminal based on Zigbee
CN102035667A (en) * 2009-09-27 2011-04-27 华为技术有限公司 Method, device and system for evaluating network reliability
CN105451290A (en) * 2014-08-20 2016-03-30 北京南瑞智芯微电子科技有限公司 Micropower wireless network self-organizing method and micropower wireless network
CN105511429A (en) * 2015-12-01 2016-04-20 上海斐讯数据通信技术有限公司 Household IOT (Internet of Things) control system, application method, and building method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6401459B2 (en) * 2014-02-14 2018-10-10 キヤノン株式会社 Image processing apparatus and image processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350637A (en) * 2008-09-05 2009-01-21 清华大学 Networking method for two-channel wireless sensing terminal based on Zigbee
CN102035667A (en) * 2009-09-27 2011-04-27 华为技术有限公司 Method, device and system for evaluating network reliability
CN105451290A (en) * 2014-08-20 2016-03-30 北京南瑞智芯微电子科技有限公司 Micropower wireless network self-organizing method and micropower wireless network
CN105511429A (en) * 2015-12-01 2016-04-20 上海斐讯数据通信技术有限公司 Household IOT (Internet of Things) control system, application method, and building method

Also Published As

Publication number Publication date
CN106792461A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN108733604B (en) 485 bus intelligent expansion method and device based on modbus communication protocol
CN106533876B (en) A kind of collecting method based on automobile CAN-bus data collection system
CN101087235A (en) A FPGA-based multi-functional communication interface conversion device and method
CN203219503U (en) Wireless sensor network system
CN114039808B (en) CAN/LIN/SENT forwarding protocol of CAN-based multichannel
CN105162671A (en) Welding table control system of arbitrary host and control method thereof
CN106792461B (en) BLE-based relay concentrator and low-power-consumption topological networking method
CN112822174A (en) Intelligent data acquisition module, data acquisition box and data acquisition method
CN216013989U (en) Expansion module number identification circuit
CN204256738U (en) Data line of S7-200PLC and I/A Series
CN206440977U (en) 4G data acquisition transmission control unit (TCU)s with GPS location function
CN211183988U (en) Novel P L C wireless gateway device
CN210377473U (en) Reader system
CN210380893U (en) Topology board card and topology system
CN203445909U (en) Intercom terminal parameter configuration system
CN201957042U (en) CNG filling system based on CAN communication
CN218159296U (en) Ad-hoc network type communication optimization circuit capable of rapidly identifying addresses by RS485
CN110913374A (en) Internet of things cross-network communication module and communication mode
CN206583538U (en) A kind of multi-channel data acquisition storage system
CN108494889A (en) Communication circuit based on I2C bus and debugging method
CN212411050U (en) Smart card management device and smart card system
WO2018086002A1 (en) Card reader system
CN212749840U (en) Device for NFC field configuration dynamic parameter testing equipment
CN217307689U (en) Communication module based on PLC technique
CN210348777U (en) Wireless acquisition system for vehicle oil consumption

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201016

Termination date: 20211222

CF01 Termination of patent right due to non-payment of annual fee