CN113784455A - Bluetooth matrix networking method, system, terminal and storage medium - Google Patents
Bluetooth matrix networking method, system, terminal and storage medium Download PDFInfo
- Publication number
- CN113784455A CN113784455A CN202111101659.2A CN202111101659A CN113784455A CN 113784455 A CN113784455 A CN 113784455A CN 202111101659 A CN202111101659 A CN 202111101659A CN 113784455 A CN113784455 A CN 113784455A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- gateway
- devices
- matrix
- equipment
- 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.)
- Granted
Links
- 239000011159 matrix material Substances 0.000 title claims abstract description 77
- 230000006855 networking Effects 0.000 title claims abstract description 57
- 238000000034 method Methods 0.000 title claims description 39
- 238000003860 storage Methods 0.000 title claims description 4
- 230000006870 function Effects 0.000 claims abstract description 17
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 14
- 238000012545 processing Methods 0.000 claims description 16
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000001914 filtration Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000012544 monitoring process Methods 0.000 abstract description 4
- 238000007405 data analysis Methods 0.000 abstract description 3
- 238000007726 management method Methods 0.000 description 9
- 238000004519 manufacturing process Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000012360 testing method Methods 0.000 description 6
- 238000004806 packaging method and process Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 239000013078 crystal Substances 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- 238000013480 data collection Methods 0.000 description 1
- 238000007418 data mining Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000011056 performance test Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W60/00—Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a Bluetooth matrix networking system, which comprises an algorithm, a first network unit and a second network unit, wherein the algorithm firstly scans broadcast information and signal intensity of adjacent equipment to obtain information and distance of gateway equipment or node equipment in a nearby range, automatically registers and generates connection table information according to an intelligent algorithm strategy, and plans a shortest path line capable of connecting all Bluetooth equipment according to the distance between every two Bluetooth equipment; and performing ad hoc network connection on all the Bluetooth devices according to the shortest path line through a plurality of gateway devices. The invention reduces the occupation of the connecting channel, ensures the control stability of the Bluetooth equipment and avoids the problem of regional disconnection; the cloud service and the mobile APP technology are combined, the remote monitoring management and data analysis display functions of the matrix network are achieved, networking operation is simple and convenient, automatic deployment and configuration can be achieved, and flexibility, stability and durability of networking are improved.
Description
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of bluetooth technology, and in particular, to a bluetooth matrix networking method, system, terminal, and storage medium.
[ background of the invention ]
At present, scientific technology is changed day by day, automatic production technology is also used very commonly in industrial production, and a plurality of automatic production lines of various types are researched and produced in the fields of electronics, mechanical manufacturing and the like.
In the production management process of the Bluetooth equipment, operations such as function testing, parameter configuration, upgrading, test report recording and the like are frequently required to be performed on the Bluetooth product, and the operations are performed in a manual mode, so that the efficiency is low, mistakes are easily made, the production test process of the product cannot be well controlled, and the quality of the product is controlled. When the existing Bluetooth system is networked, the operation is complex, the local disconnection is easily caused due to the unreasonable path distribution of Bluetooth connection, the function is basically not customized, the flexibility is low, and the practical production application scene cannot be met. Therefore, it is necessary to provide a bluetooth networking method and system based on bluetooth devices to implement the bluetooth product devices to create ad hoc networks based on bluetooth, and perform data transmission based on ad hoc networks, and simultaneously satisfy the functions of automatic detection and instruction control, test data recording, and the like
[ summary of the invention ]
The invention discloses a Bluetooth matrix networking system, which is a system for sensing information of a plurality of Bluetooth devices and carrying out authentication matching networking among the Bluetooth devices through a Bluetooth gateway device, and carrying out related configuration, upgrading and data analysis management through a cloud server and a mobile APP.
In order to achieve the above object, a first aspect of the present invention provides a bluetooth matrix networking method, which is a management system that is used to establish networking connections between a plurality of gateway devices and a plurality of bluetooth devices and to implement an automated test by combining a PC upper computer, a cloud server and a mobile APP technology. The method comprises the following steps:
monitoring broadcast information of all Bluetooth devices in the matrix;
acquiring mutual received signal strength information between any two Bluetooth devices, and calculating the distance between the two Bluetooth devices according to the signal strength;
generating a weighted adjacent matrix graph according to the distance between every two of the plurality of Bluetooth devices, wherein the distance value is weight, and planning a shortest path line capable of connecting all the Bluetooth devices by combining a shortest path algorithm;
performing ad hoc network connection on all Bluetooth equipment according to the shortest path line through a plurality of gateway devices; the control service of the upper computer to the gateway can be received;
the control of the gateway equipment and the receiving of the node information collected by the gateway equipment are realized through the PC upper computer, and the node information is reported to the cloud server for management;
the analysis, processing and display of data are realized through a cloud server, and information data of related nodes are stored;
through APP, management personnel can remotely or on site consult the matrix network information, control and manage the matrix network information.
In the networking implementation, the step of performing ad hoc network connection on all bluetooth devices according to the shortest path line through a plurality of gateway apparatuses includes:
(1) dividing a plurality of Bluetooth devices into different blocks according to the shortest path line, wherein each block corresponds to one gateway device;
(2) the block dividing unit is used for dividing the Bluetooth devices into different blocks according to the shortest path line, and each block corresponds to one gateway device;
(3) the gateway device automatically registers the MAC address of the device meeting the conditions into a configuration table according to the broadcast information of the node and the shortest path algorithm, or an APP is connected with the gateway device or a PC terminal issues the configuration table comprising the information of all Bluetooth devices of the local block, thereby completing the ad hoc network.
In a perceptual broadcast embodiment, the method comprises the following steps:
(1) a gateway and node equipment in the matrix network externally send a broadcast packet; the gateway broadcast packet comprises the equipment state of the gateway device and whether a configuration table is updated, and the node broadcast packet comprises the node equipment state, whether data is reported and the like;
(2) when other gateway devices scan the broadcast packet and judge that the configuration table of the gateway device is updated, informing a PC (personal computer) end to coordinate and synchronize the registry, and avoiding repeated registration in gateway nodes in the matrix network;
(3) the gateway device scans node broadcast packets in the matrix network, collects state information of the nodes, and judges whether to initiate connection to the designated nodes for data interaction or not according to the content of the broadcast data packets or instruction data of the PC terminal.
In the implementation of registry management, the following steps are included:
(1) the gateway device caches the sensed node MAC information locally, matches the node MAC information with a local registry at the moment, if the node MAC information is registered, the node MAC information is not output to the PC end, otherwise, the node MAC information is output to the PC end at the same time, and the PC end coordinates and synchronizes other gateway devices to perform synchronous registries;
(2) the PC end collects registry information of all gateway devices, judges whether the configuration tables of the other gateway devices and the gateway device have the serial numbers of the same Bluetooth device or not, if so, compares the signal values of the Bluetooth device respectively connected with the other gateway devices and the gateway device, and deletes the serial numbers of the Bluetooth devices in the configuration table with smaller signal values;
(3) in the actual production process, the scanning registration mode can be recorded at the PC terminal and assigned to the gateway equipment.
The second aspect of the present invention provides a bluetooth matrix networking system (as shown in fig. 4), which includes a plurality of gateway devices and a plurality of bluetooth devices, a PC upper computer, a cloud server, and an APP, and relates to the following modules:
(1) the device distance calculation module is used for acquiring the mutual received signal strength information between any two Bluetooth devices and calculating the distance between the two Bluetooth devices according to the signal strength;
(2) the shortest path planning module is used for planning a shortest path line capable of connecting all the Bluetooth devices according to the distance between every two Bluetooth devices;
(3) and the networking connection module is used for performing ad hoc network connection on all the Bluetooth devices according to the shortest path circuit through a plurality of gateway devices.
In an embodiment, the bluetooth matrix networking system further comprises a module:
PC upper computer module: realize the control of the gateway equipment and the receiving of the node information collected by the gateway equipment, and report the node information to the cloud server for management,
the cloud server module analyzes, processes and displays the data of the matrix network equipment reported by the PC terminal, stores the information data of the related nodes,
and the mobile APP module can remotely or on-site realize the inquiry, control and management of the matrix network information by a manager through accessing the cloud server.
The Bluetooth matrix networking method provided by the invention plans the shortest path line of the Bluetooth equipment ad hoc network connection according to the minimum distance among the plurality of Bluetooth equipment, and then performs the Bluetooth equipment ad hoc network connection according to the shortest path line, so that the occupation of a connection channel is reduced, the stability of Bluetooth equipment control is ensured, and the problem of regional disconnection is avoided; meanwhile, networking is easy and convenient to operate, and flexibility, stability and durability of networking are improved.
The invention also designs and provides a terminal, which comprises a memory, a processor and a bluetooth matrix networking program which is stored in the memory and can run on the processor, wherein the bluetooth matrix networking program is executed by the processor to realize each step of the bluetooth matrix networking method in any one of the above embodiments.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a bluetooth matrix networking method provided by the present invention;
fig. 2 is a flowchart of an embodiment of a sensing device in the bluetooth matrix networking method shown in fig. 1;
fig. 3 is a flowchart of an embodiment of a connection node in the bluetooth matrix networking method shown in fig. 1;
fig. 4 is a framework diagram of a bluetooth matrix networking system provided by the present invention;
FIG. 5 is a diagram of an implementation framework of a PC upper computer in the Bluetooth matrix networking system shown in FIG. 4;
fig. 6 is a frame diagram of an implementation of a cloud server in the bluetooth matrix networking system shown in fig. 4;
FIG. 7 is a diagram of a mobile APP implementation framework in the Bluetooth matrix networking system shown in FIG. 4;
fig. 8 is a schematic diagram of step S104 of the bluetooth matrix networking method provided by the present invention;
fig. 9 is a schematic diagram of a bluetooth broadcast packet according to the bluetooth matrix networking method of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantageous effects of the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and the detailed description. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In an embodiment of the present invention, a first aspect provides a bluetooth matrix networking method, which is used for establishing networking connections between a plurality of gateway devices and a plurality of bluetooth devices, constructing a matrix-collaborative-application-oriented wireless bluetooth star network, and providing free connections between a plurality of devices with bluetooth functions. The device comprises but is not limited to an intelligent household appliance, an intelligent audio and video device, a computer and other Internet of things devices with Bluetooth adapters. It should be noted that each bluetooth device and gateway device has its own unique MAC address for identification.
As shown in fig. 1, the bluetooth matrix networking method includes the following steps S101 to S103.
And S101, the equipment realizes the sensing function by scanning the broadcast packet of the node or the gateway and collects the state data information of the node.
Step S102, registering table rules, if the gateway device senses the broadcast data of the node device and obtains the MAC address of the node, matching locally at the gateway, if the gateway device registers, judging whether the relevant service needs parameter configuration, reading node data, upgrading the node and the like, otherwise, packaging and packaging according to the protocol and sending the service to a PC upper computer for coordination processing
Step S103, acquiring the mutual receiving signal strength information between any two Bluetooth devices, and calculating the distance between the two Bluetooth devices according to the signal strength.
In this step, each bluetooth device and gateway apparatus in the bluetooth matrix can sense the surrounding bluetooth devices, and automatically identify the state information of the relevant devices in the matrix, including Signal value (Received Signal Strength Indicator, RSSI), which is an indication of the Received Signal Strength, and is implemented after the back channel baseband receiving filter. The distance between the two bluetooth devices can then be calculated from the signal values. Further, Kalman filtering processing is firstly carried out on the received Bluetooth signals to obtain stable signal values.
Specifically, the calculation formula is as follows: d is 10 [ | RSSI | -a/(10 × n) ], where d is the calculated distance, RSSI is the received signal strength (usually a negative value, thus taking the absolute value), a is the signal strength when two bluetooth devices are 1 meter apart, and n is the environmental attenuation factor; the specific values of A and n are slightly different according to different equipment and terrains, and can be obtained through testing. Therefore, the distances between a plurality of bluetooth devices (including all gateway devices) are calculated, and a network connected with each other as nodes is obtained.
And step S104, planning a shortest path line capable of connecting all the Bluetooth devices according to the distance between every two Bluetooth devices.
In the step, a shortest path line connected with the Bluetooth equipment ad hoc network is planned according to the minimum distance between the Bluetooth equipment, the distance value is used as weight, nodes in the matrix network are combined into a directed graph, a Dijkstra algorithm is mainly adopted, a label method is adopted, and the directed graph has two labels, namely a T label and a P label. The T label is called a tentative label (tentative label), the P label is a permanent label (permanent label), and a P label is given to the node vi to indicate the length of the shortest path from the starting point vs to the node vi; giving node vi a T label indicating the upper bound of the estimated shortest path length from start vs to vi; in each step of the algorithm, the T label of a certain point is changed into a P label, and when the P label is obtained at the end point vt, the calculation is finished.
The algorithm step, marking vs with P, P (vs) 0, marking the rest nodes with T, T (vi) + ∞
If vi is the node which just obtains the P label, considering all nodes vj which can be reached by vi, and vj is the T label, modifying T (vj): t (vj) min [ T (vj), P (vi) + Lij ]
And comparing all nodes with T labels, wherein the minimum node is changed into a P label: p (vk) ═ min [ t (vi) ], step 2 is shown in fig. 8.
Using C language to realize algorithm, using an array dist for storing the current distance of each vertex, once the shortest path from the source point v to the vertex k is obtained, the disk [ k ] is the length of the shortest path from the source point to the vertex k. The vertex preceding j in the shortest path from the source point to vertex j is stored using the array pre, pre [ j ]. We can easily find the paths from the source point v to other vertices from the pre array.
The code is as follows:
and step S105, performing ad hoc network connection on all the Bluetooth devices according to the shortest path line through a plurality of gateway devices.
Specifically, the gateway device is used for sequentially connecting the node devices to be connected by calculating an optimal path according to the node information in the registry, each gateway node can be simultaneously connected with 8 nodes at most, the devices which are not connected need to be queued in a waiting queue, and the gateway devices take out the node information to be connected from the head to the head of the waiting queue after a channel is idle to initiate connection.
As shown in fig. 2, the network aware implementation steps:
and S101, the gateway equipment scans the broadcast packet of the equipment in the matrix, and defines the Bluetooth broadcast packet formats of the equipment node and the gateway in order to filter other Bluetooth equipment.
Broadcast format rules:
bluetooth low energy devices discover other devices through a broadcast channel, one device broadcasts and the other device scans.
As shown in fig. 9, the bluetooth broadcast packet is constructed as follows:
effective data part containing several broadcasting data units called AD Structure
Composition of AD Structure:
length indicating the Length of this AD Structure (excluding Length itself 1)
Type AD Type, mark what the piece of broadcast data represents, such as device name, uuid, etc.
Data AD data
Invalid data part, the length of the broadcast packet must be 31 bytes, if the valid data part is less than 31, the rest is complemented with 0, and the data of the part is invalid.
In order to realize the perception function of the Bluetooth matrix, a broadcast data format needs to be customized, and the system adds information such as node MAC, state and the like in a factory-defined field of a broadcast packet so as to facilitate a gateway to realize node matching and filtering, perceive the members of the matrix nodes and perform related service processing.
The used ID field is a Bluetooth name field (0x09), and a manufacturer information field (0xFF) realizes custom data
Different nodes and different divisions are provided for the MAC of the gateway equipment, and after the gateway equipment senses the broadcast information of the nodes or adjacent gateways in the matrix, the gateway equipment can distinguish different nodes and gateway types according to the MAC and execute related service processing.
And step S102, the acquired RSSI is taken as a weight and is attached to the node equipment list information.
And S103, the gateway equipment compares the acquired node MAC with the local MAC, if the local MAC is registered, the related service function is executed, otherwise, the MAC and RSSI are packaged and forwarded to a PC (personal computer) end for processing, the PC end counts the registry information of all the gateway equipment, and the PC end judges whether other equipment is registered or not.
And step S104, the PC terminal compares the received information in the total registry, if the received information is registered, the RSSI is compared, if the RSSI is lower, the original registration information is deleted, and the original registration information is synchronously sent to the corresponding gateway for updating the registry.
The system also supports the issue of a configuration table including information of all Bluetooth devices in the block to each gateway device, thereby completing the ad hoc network. Specifically, the configuration table of each gateway device can be configured by a user or automatically searched and identified by the gateway center according to the relevant algorithm and registered in the configuration table.
In summary, the bluetooth matrix networking method provided by the present invention plans the shortest path line for the bluetooth device ad hoc network connection according to the minimum distance between the bluetooth devices, and then performs the bluetooth device ad hoc network connection according to the shortest path line, thereby reducing the occupation of the connection channel, ensuring the stability of the bluetooth device control, and avoiding the problem of generating regional disconnection; meanwhile, networking is easy and convenient to operate, and flexibility, stability and durability of networking are improved.
As shown in fig. 3, the bluetooth matrix networking connection implementation step:
step S101, connecting node rule
(1) Unified bluetooth service and UUID
Bluetooth services, which include services, features, and attributes, are required in bluetooth devices. The service and the characteristics have a unique corresponding UUID, and each characteristic has attributes of read, write, notification and the like. A service may contain several properties (characteristics), each of which in turn contains several attributes (attributes) in which the data is stored. A service is established in the software for data transmission, which service contains three properties for transmitting status data packets, command data packets, message data packets, respectively. The three characteristics can be regarded as three different data channels, and different types of data packets are transmitted by channels, so that the data processing flow is simplified. The nodes and gateway data in the matrix network use unified user-defined service UUIDs for receiving and transmitting, and data interaction of the whole network is realized.
(2) Each Bluetooth device in the matrix has a unique MAC address, when a certain Bluetooth device has data to be sent, whether a data self-defined flag bit is located in a broadcast packet or not is determined, the gateway center scans surrounding broadcast packets in sequence and only processes the data flag bit in the broadcast packet of the bound MAC address, if the data flag bit is located, it is indicated that the slave Bluetooth product has data to be reported, at the moment, the gateway center can initiate connection through the MAC address of the node, and the data of the device is read after the connection. If the gateway center needs to actively connect with the designated slave node for control or configuration, the gateway center can initiate connection through the MAC address of the node and perform configuration and the like.
And step S102, the gateway receives the control instruction service output to the node equipment by the PC end, and actively connects the node equipment when the node needs to be operated.
And step S103, reading data reported by the Bluetooth equipment.
The gateway device needs to actively connect with a designated slave node for control or configuration, and may initiate connection through the MAC address of the node for configuration, and the like. Therefore, the communication method has the following advantages: the slave nodes are not limited by time slices and are more free; when the slave node and the central node are frequently handed over each other, theoretically, the length and time of data transmission are not required; the network stability is high, the requirement on the consistency of the crystal oscillators of all nodes in a time slice mode is high, and the communication of all nodes cannot be influenced by the tiny deviation of the crystal oscillators in an active monitoring polling mode; compared with a passive time slice mode, the program structure is simpler and clearer and is easy to understand.
In other embodiments, the gateway apparatus may be added to all bluetooth devices to calculate the shortest path line, and in this case, each gateway apparatus corresponds to a preset number of bluetooth devices closest to the gateway apparatus, where each bluetooth device is paired with only one gateway apparatus. Certainly, the method can also be based on an intelligent scheduling strategy algorithm, the Bluetooth devices in the matrix are efficiently matched and parameter configuration or upgrading is carried out, and data acquisition, data transmission and network data collection of the nodes are realized based on the intelligent master-slave nodes and the network collector of the Bluetooth communication, so that the wireless Bluetooth star network facing the matrix cooperative application is constructed.
The invention provides a Bluetooth matrix networking system, which is used for constructing a wireless Bluetooth star network facing to matrix cooperative application for a plurality of Bluetooth devices and providing free connection among a plurality of devices with Bluetooth functions, wherein the modules mainly covered by the system are a PC upper computer, a cloud server and a mobile APP.
FIG. 5 shows a PC upper computer end service module
The method mainly comprises the following steps:
(1) the gateway data is processed, and the PC upper computer software realizes the functions of processing and displaying the data collected by the gateway center, reports to the cloud server, and displays the structure of the matrix network and the data analysis result and other information by the server.
(2) When the Bluetooth matrix networking gateway is connected with a PC upper computer through a serial port and needs to send information, the equipment needing to send the information directly sends the information to be sent (the information contains an information receiver equipment identification code) to a terminal device connected with the PC upper computer through the serial port. After receiving the information from the serial port, the PC upper computer end processes the information by packaging (including the information unique number, the identification code of the sender equipment and the identification code of the receiver equipment) and then sends the information to other Bluetooth ad hoc network devices in the communication range of the PC upper computer end.
(3) After receiving the information after the packet processing, the Bluetooth matrix gateway device extracts the identification code in the data packet, and if the identification code of the receiver is the same as the identification code of the equipment connected with the Bluetooth ad hoc network device through the serial port, the Bluetooth matrix gateway device passes through and executes the related service function
(4) The gateway device transmits the data packet to the node device through the Bluetooth connection. If the identification codes are different, the node equipment does not process the data, and if the identification codes are different, the relevant data is processed.
(5) And processing platform data, when the matrix network needs to be controlled, the platform issues related instructions or data to an upper computer end of a PC (personal computer), the upper computer executes the instructions or the data and outputs the instructions or the data to related gateway equipment, and then the gateway equipment initiates connection of a designated node to realize service interaction of the data, such as node parameter configuration, upgrading and the like.
FIG. 6 shows a cloud server service module
The method mainly comprises the following steps:
(1) in the networking mode of the PC to the Bluetooth access point, the PC end is connected with broadband access equipment such as MODEM and the like to access the Internet network. And packaging the node data sent by the Bluetooth gateway, and transmitting the node data to a cloud platform for processing through an Internet network to realize the shared Internet surfing of all terminal equipment. The terminal equipment can be a PC, a notebook computer, a PDA and the like, and has great convenience and practicability.
(2) The cloud server carries out performance test on the received data, divides the coverage area of the matrix network, establishes connection time, data transmission rate and transmission stability, collects data of the star network and states of the node equipment. And simultaneously, related data recorded at the same time are output to a local database and a report, the data are visually displayed at a webpage end, and the generation of the information report of each node device in the matrix network is supported. Meanwhile, managers can remotely control the gateways and the node equipment of the whole matrix network through the cloud server.
The following three aspects are embodied and applied
The basic application is as follows: monitoring
After the equipment data is collected through the matrix network, if the equipment data state exceeds the preset state, the alarm is automatically given out at the first time, and the administrator carries out processing at the first time and can issue commands through remote operation. The problem is solved in the sprouting state.
Advanced application: report statistics
And carrying out statistical analysis on the historical operating data of the equipment by a statistical method. Different reports can be analyzed in different dimensions. And then presented to the administrator in a chart or large screen format. The administrator can quickly and intuitively know the running state of the whole Internet of things equipment.
High-level applications: data mining/machine learning
This part requires that valuable items be mined from the data. For example, through continuous tracking analysis of equipment data for a period of time and combination of human past equipment operation and maintenance experience, the probability of equipment failure and possible causes after failure are predicted in a machine learning mode, and a maintenance scheme is given.
(3) Access request processing of the APP is received and responded to.
FIG. 7 shows a mobile APP service module
(1) The user authority management function mainly aims to control the authority of different people for accessing resources, and avoids the risk problems caused by the lack of authority control or improper operation, such as operation errors, privacy data leakage and the like.
(2) And the data lookup function is used for realizing the real-time understanding of the states of the matrix network node equipment and the gateway equipment information.
(3) And the equipment control function is used for realizing parameter configuration and control operation on the nodes and the gateway equipment in the matrix network.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system or apparatus/terminal device and method can be implemented in other ways. For example, the above-described system or apparatus/terminal device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The invention is not limited solely to that described in the specification and embodiments, and additional advantages and modifications will readily occur to those skilled in the art, so that the invention is not limited to the specific details, representative apparatus, and illustrative examples shown and described herein, without departing from the spirit and scope of the general concept as defined by the appended claims and their equivalents.
Claims (10)
1. A Bluetooth matrix networking method is used for establishing a networking connection system of a plurality of gateway devices and a plurality of Bluetooth devices, and is characterized by comprising the following steps:
self-defining the broadcast data content, and dynamically updating the equipment state information to a broadcast packet;
acquiring mutual received signal strength information between Bluetooth devices in the matrix and broadcast information of the devices, and calculating the distance between the two Bluetooth devices according to the signal strength;
generating an adjacent matrix graph with the right according to the distance between every two of the plurality of Bluetooth devices, wherein the weight between the nodes is a Bluetooth distance value, and the gateway intelligent path algorithm can self-plan and generate a node registry, can connect shortest path lines of all the Bluetooth devices and simultaneously monitor the broadcast information of the node devices;
performing ad hoc network connection on all Bluetooth equipment according to the shortest path line through a plurality of gateway devices;
coordinating gateway equipment of the whole matrix network through a PC (personal computer) end to realize processing and synchronization of gateway data;
and the remote control and report look-up functions of the whole matrix network are realized through the cloud server.
2. The method of claim 1, wherein the step of ad-hoc networking all bluetooth devices according to the shortest path line via a plurality of gateway apparatuses comprises:
the gateway equipment divides a plurality of Bluetooth equipment into different blocks according to the shortest path line according to the node equipment broadcast information and the signal intensity obtained by scanning, and each block corresponds to one gateway device;
the gateway device automatically registers the MAC meeting the conditions in the configuration table through the node distance and the broadcast information, and can also issue the configuration table containing all the Bluetooth device information of the local block to each gateway device, thereby completing the ad hoc network.
3. The bluetooth matrix networking method according to claim 2, further comprising the steps of:
the node equipment device sends a broadcast packet to the outside; the broadcast packet comprises the node equipment state information and a gateway node;
when other gateway devices scan the broadcast packet and judge that the configuration table of the gateway device is updated, establishing Bluetooth connection with the gateway device;
the other gateway devices acquire the configuration table information of the gateway device and carry out retrieval comparison with the configuration table of the other gateway devices;
and judging whether the configuration tables of the other gateway devices and the gateway device have the serial numbers of the same Bluetooth equipment, if so, comparing the signal values of the Bluetooth equipment respectively connected with the other gateway devices and the gateway device, and deleting the serial numbers of the Bluetooth equipment in the configuration table with a smaller signal value.
4. The method of claim 1, wherein when the bluetooth device has data to transmit, further comprising the steps of:
the Bluetooth equipment sends a self-defined broadcast packet with a data flag bit;
scanning and filtering the broadcast packet, and establishing connection between the Bluetooth equipment and a corresponding gateway device;
and reading the data reported by the Bluetooth equipment.
5. A Bluetooth matrix networking system comprises a plurality of gateway devices and a plurality of Bluetooth devices, and is characterized by further comprising the following components:
the device distance calculation module is used for acquiring the mutual received signal strength information between any two Bluetooth devices and calculating the distance between the two Bluetooth devices according to the signal strength;
the shortest path planning module generates an adjacent matrix map with weight according to the distance value between the devices, and realizes the shortest path line connection decision of the Bluetooth device through a shortest path algorithm;
and the networking connection module monitors the online states of the nodes and the gateways of the whole matrix by combining a distance and shortest path algorithm, and performs ad hoc networking connection according to the broadcast information.
6. The bluetooth matrix networking system according to claim 5, wherein the networking connection module comprises:
the block dividing unit is used for dividing the Bluetooth devices into different blocks according to the shortest path line, and each block corresponds to one gateway device;
and the gateway configuration unit is used for issuing a configuration table comprising information of all the Bluetooth devices of the block to each gateway device so as to complete the ad hoc network.
7. The bluetooth matrix networking system according to claim 6, wherein the bluetooth matrix networking system further comprises:
the gateway broadcasting module is used for controlling the gateway device to externally send a broadcasting packet; wherein, the broadcast packet includes whether the device state and the configuration table of the gateway device are updated;
the gateway connection module is used for controlling other gateway devices to scan the broadcast packet and establishing Bluetooth connection with the gateway device when judging that the configuration table of the gateway device is updated;
the configuration table retrieval module is used for controlling the other gateway devices to acquire the configuration table information of the gateway device and carrying out retrieval comparison with the configuration table of the other gateway devices;
and the device number judging module is used for judging whether the configuration tables of the other gateway devices and the gateway device have the number of the same Bluetooth device, if so, comparing the signal values of the Bluetooth device respectively connected with the other gateway devices and the gateway device, and deleting the number of the Bluetooth device in the configuration table with a smaller signal value.
8. The bluetooth matrix networking system according to claim 5, further comprising:
the Bluetooth broadcasting module is used for controlling the Bluetooth equipment to send a self-defined broadcasting packet with a data flag bit;
the Bluetooth connection module is used for scanning and filtering the broadcast packet and establishing the connection between the Bluetooth equipment and the corresponding gateway device;
and the data reading module is used for reading the data reported by the Bluetooth equipment.
9. A terminal, characterized in that the terminal comprises a memory, a processor and a Bluetooth matrix networking program stored in the memory and executable on the processor, the Bluetooth matrix networking program, when executed by the processor, implementing the steps of the Bluetooth matrix networking method according to any one of claims 1-4.
10. A computer-readable storage medium, storing a bluetooth matrix networking program, which when executed by a processor performs the steps of the bluetooth matrix networking method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111101659.2A CN113784455B (en) | 2021-09-18 | 2021-09-18 | Bluetooth matrix networking method, system, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111101659.2A CN113784455B (en) | 2021-09-18 | 2021-09-18 | Bluetooth matrix networking method, system, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113784455A true CN113784455A (en) | 2021-12-10 |
CN113784455B CN113784455B (en) | 2024-07-02 |
Family
ID=78852360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111101659.2A Active CN113784455B (en) | 2021-09-18 | 2021-09-18 | Bluetooth matrix networking method, system, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113784455B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114363939A (en) * | 2021-12-29 | 2022-04-15 | 上海庆科信息技术有限公司 | Node simulation test method, device, storage medium, processor and equipment |
CN114500290A (en) * | 2021-12-21 | 2022-05-13 | 天翼云科技有限公司 | Method, device, equipment and medium for generating cloud platform gateway node detection topology |
CN115942376A (en) * | 2023-03-09 | 2023-04-07 | 中法渤海地质服务有限公司 | Well site information remote transmission method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107393069A (en) * | 2017-07-17 | 2017-11-24 | 曹迪 | Access control management method and system based on bluetooth MESH networking core technologies |
CN108834121A (en) * | 2018-07-02 | 2018-11-16 | 中国联合网络通信集团有限公司 | A kind of bluetooth equipment ad hoc network method and system |
WO2019218921A1 (en) * | 2018-05-14 | 2019-11-21 | 北京蓝涟科技有限责任公司 | Distance weighting based routing method and node-routing functional module |
CN110730440A (en) * | 2019-09-03 | 2020-01-24 | 深圳市昇润科技有限公司 | Bluetooth networking system |
CN112822643A (en) * | 2021-01-14 | 2021-05-18 | 深圳市芯中芯科技有限公司 | Bluetooth device multi-connection networking method and system based on BLE broadcasting |
CN113068162A (en) * | 2020-01-02 | 2021-07-02 | 广东博智林机器人有限公司 | Bluetooth networking method and system |
-
2021
- 2021-09-18 CN CN202111101659.2A patent/CN113784455B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107393069A (en) * | 2017-07-17 | 2017-11-24 | 曹迪 | Access control management method and system based on bluetooth MESH networking core technologies |
WO2019218921A1 (en) * | 2018-05-14 | 2019-11-21 | 北京蓝涟科技有限责任公司 | Distance weighting based routing method and node-routing functional module |
CN108834121A (en) * | 2018-07-02 | 2018-11-16 | 中国联合网络通信集团有限公司 | A kind of bluetooth equipment ad hoc network method and system |
CN110730440A (en) * | 2019-09-03 | 2020-01-24 | 深圳市昇润科技有限公司 | Bluetooth networking system |
CN113068162A (en) * | 2020-01-02 | 2021-07-02 | 广东博智林机器人有限公司 | Bluetooth networking method and system |
CN112822643A (en) * | 2021-01-14 | 2021-05-18 | 深圳市芯中芯科技有限公司 | Bluetooth device multi-connection networking method and system based on BLE broadcasting |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114500290A (en) * | 2021-12-21 | 2022-05-13 | 天翼云科技有限公司 | Method, device, equipment and medium for generating cloud platform gateway node detection topology |
CN114500290B (en) * | 2021-12-21 | 2024-06-07 | 天翼云科技有限公司 | Method, device, equipment and medium for generating cloud platform gateway node detection topology |
CN114363939A (en) * | 2021-12-29 | 2022-04-15 | 上海庆科信息技术有限公司 | Node simulation test method, device, storage medium, processor and equipment |
CN114363939B (en) * | 2021-12-29 | 2024-01-19 | 上海庆科信息技术有限公司 | Node simulation test method, device, storage medium, processor and equipment |
CN115942376A (en) * | 2023-03-09 | 2023-04-07 | 中法渤海地质服务有限公司 | Well site information remote transmission method and system |
Also Published As
Publication number | Publication date |
---|---|
CN113784455B (en) | 2024-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113784455A (en) | Bluetooth matrix networking method, system, terminal and storage medium | |
US8259615B2 (en) | Method, apparatus and system for displaying topology information of wireless sensor network | |
Kang et al. | Internet of everything: A large-scale autonomic IoT gateway | |
US8502640B2 (en) | System and method for transmitting and receiving information on a neighborhood area network | |
CN102821414B (en) | System and method for managing CWSN (cloud wireless sensor network) communication data based on GUI (graphical user interface) | |
US20100161630A1 (en) | Sensor Net System, Sensor Net System Data Managing Method, and Sensor Net System Data Managing Program | |
US7457262B1 (en) | Graphical display of status information in a wireless network management system | |
CN112995153B (en) | Multi-source heterogeneous IoT (Internet of things) equipment data unified access and storage system and method | |
US7590418B1 (en) | Method and apparatus of a location server for hierarchical WLAN systems | |
KR101992303B1 (en) | Data collection, analysis and monitoring system of smart sensor network | |
Fernandes et al. | A framework for wireless sensor networks management for precision viticulture and agriculture based on IEEE 1451 standard | |
CN110278568B (en) | Method and network system for constructing networking based on network equipment | |
EP2181528B1 (en) | Communication system | |
CN111541576A (en) | Zigbee network-based equipment visualization method and system | |
CN104412243A (en) | Equipment management system and program | |
KR20150049420A (en) | Two-way monitoring system of production resources for manufacturing series | |
CN109995579A (en) | A kind of positioning system and method for Asset Allocation | |
JP2008507200A (en) | Integrated management of wireless networks | |
JP3308837B2 (en) | PHS terminal device and data collection system using the same | |
JP2003016347A (en) | Method and system for distributing area advertisement information, and portable terminal installed with the system | |
JP2013207705A (en) | Control device | |
CN117395625A (en) | Remote data acquisition system for wireless network | |
KR101170141B1 (en) | Mobile terminal, the system and method to trace network charcteristic from mobile terminals | |
Tandur et al. | An IoT infrastructure solution for factories | |
CN109257238B (en) | Network equipment management system |
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 |