CN117062180A - Communication path selection method and device based on multiple Bluetooth networks - Google Patents

Communication path selection method and device based on multiple Bluetooth networks Download PDF

Info

Publication number
CN117062180A
CN117062180A CN202311028610.8A CN202311028610A CN117062180A CN 117062180 A CN117062180 A CN 117062180A CN 202311028610 A CN202311028610 A CN 202311028610A CN 117062180 A CN117062180 A CN 117062180A
Authority
CN
China
Prior art keywords
bluetooth
communication
candidate
network
communication path
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
Application number
CN202311028610.8A
Other languages
Chinese (zh)
Other versions
CN117062180B (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.)
Guangzhou Video Star Intelligent Co ltd
Original Assignee
Guangzhou Video Star Intelligent Co ltd
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 Guangzhou Video Star Intelligent Co ltd filed Critical Guangzhou Video Star Intelligent Co ltd
Priority to CN202311028610.8A priority Critical patent/CN117062180B/en
Publication of CN117062180A publication Critical patent/CN117062180A/en
Application granted granted Critical
Publication of CN117062180B publication Critical patent/CN117062180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • 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)

Abstract

The invention discloses a communication path selection method and a device based on a multi-Bluetooth network, wherein the method comprises the following steps: acquiring target transmission data and corresponding transmission terminal equipment and destination terminal equipment; determining all candidate Bluetooth communication paths between the transmission end equipment and the destination end equipment; according to the network information of the passing Bluetooth ad hoc network corresponding to each candidate Bluetooth communication path, calculating the communication quality parameter corresponding to each candidate Bluetooth communication path; and determining an optimal Bluetooth path according to the communication quality parameters corresponding to each candidate Bluetooth communication path, and transmitting the target transmission data to the destination terminal equipment through the Bluetooth path. Therefore, the invention can determine the optimal Bluetooth transmission path based on the information of the Bluetooth ad hoc network through which the candidate Bluetooth communication path passes, thereby determining a more reasonable communication path by means of the data of the Bluetooth ad hoc network and improving the efficiency of Bluetooth transmission.

Description

Communication path selection method and device based on multiple Bluetooth networks
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method and an apparatus for selecting a communication path based on a multiple bluetooth network.
Background
With the widespread use of bluetooth technology, it has been an important point of research how to realize more efficient bluetooth data transmission in a communication scenario of many devices, wherein implementing data transfer transmission by using bluetooth devices in an area is one of research directions.
However, in the prior art, when implementing transfer transmission of bluetooth data, the existing information of the bluetooth ad hoc network in the area is not considered to determine the communication path, so that the selection of the communication path is not reasonable enough, and the transmission efficiency cannot be effectively improved. It can be seen that the prior art has defects and needs to be solved.
Disclosure of Invention
The invention aims to solve the technical problem of providing a communication path selection method and a communication path selection device based on a multi-Bluetooth network, which can determine a more reasonable communication path by means of data of a Bluetooth ad hoc network and improve the efficiency of Bluetooth transmission.
To solve the above technical problem, the first aspect of the present invention discloses a communication path selection method based on a multiple bluetooth network, the method comprising:
acquiring target transmission data and corresponding transmission terminal equipment and destination terminal equipment;
determining all candidate Bluetooth communication paths between the transmission end equipment and the destination end equipment;
According to the network information of the passing Bluetooth ad hoc network corresponding to each candidate Bluetooth communication path, calculating the communication quality parameter corresponding to each candidate Bluetooth communication path;
and determining an optimal Bluetooth path according to the communication quality parameters corresponding to each candidate Bluetooth communication path, and transmitting the target transmission data to the destination terminal equipment through the Bluetooth path.
As an optional implementation manner, in the first aspect of the present invention, the network information includes at least one of a number of the bluetooth ad hoc networks and a historical operating energy consumption, a data transmission efficiency, a data transmission success rate, and a device health of bluetooth devices in the bluetooth ad hoc networks.
As an optional implementation manner, in the first aspect of the present invention, the determining all candidate bluetooth communication paths between the transmitting end device and the destination end device includes:
acquiring all first candidate Bluetooth devices which establish direct communication connection or indirect communication connection with the transmission end device and the destination end device;
screening a plurality of second candidate Bluetooth devices with liveness higher than a preset liveness threshold value from all the first candidate Bluetooth devices according to a pre-stored device communication record list;
Traversing all paths for communication between the transmitting end device and the destination end device through any at least one device of the second candidate Bluetooth devices to obtain all candidate Bluetooth communication paths between the transmitting end device and the destination end device.
In an optional implementation manner, in a first aspect of the present invention, the screening, according to a pre-stored device communication record table, a plurality of second candidate bluetooth devices with liveness higher than a preset liveness threshold from all the first candidate bluetooth devices includes:
screening all Bluetooth ad hoc network center devices possibly corresponding to all the first candidate Bluetooth devices through a cluster analysis algorithm and a pre-stored Bluetooth ad hoc network rule;
transmitting a device communication record request to each Bluetooth Ad hoc network center device, and receiving feedback information of the Bluetooth Ad hoc network center devices;
judging whether equipment communication records corresponding to all the first candidate Bluetooth equipment are found according to all the received feedback information;
if not, returning to the step of executing the Bluetooth Ad hoc network center equipment which is possibly corresponding to all the first candidate Bluetooth equipment through a cluster analysis algorithm and a prestored Bluetooth Ad hoc network rule;
If yes, calculating the device communication activity of each first candidate Bluetooth device according to the device communication records corresponding to all the first candidate Bluetooth devices;
and screening a plurality of second candidate Bluetooth devices with the communication activity level of the device higher than a preset activity level threshold value from all the first candidate Bluetooth devices.
In a first aspect of the present invention, as an optional implementation manner, the calculating, according to device communication records corresponding to all the first candidate bluetooth devices, device communication activity of each first candidate bluetooth device includes:
calculating the data activity corresponding to any candidate Bluetooth device according to the total amount of data transmitted and received by any candidate Bluetooth device in the device communication record in a preset historical time period; the data activity is the ratio of the total data amount to the time length of the historical time period;
calculating the average value of the data liveness corresponding to all the candidate Bluetooth devices;
and calculating the ratio of the data activity level of each first candidate Bluetooth device to the average value to obtain the device communication activity level of each first candidate Bluetooth device.
As an optional implementation manner, in the first aspect of the present invention, the calculating, according to network information of the bluetooth ad hoc network through which each candidate bluetooth communication path corresponds, a communication quality parameter corresponding to each candidate bluetooth communication path includes:
for any one of the candidate Bluetooth communication paths, inputting network information of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication path into at least one first neural network model to obtain at least one predicted communication quality parameter corresponding to each output Bluetooth ad hoc network; the first neural network model is obtained through training a training data set comprising at least one network information of a plurality of training Bluetooth ad hoc networks and corresponding communication quality labels;
calculating the parameter average value of all the predicted communication quality parameters corresponding to each Bluetooth ad hoc network;
inputting the quantity of Bluetooth ad hoc networks in the network information corresponding to the candidate Bluetooth communication path into a pre-trained second neural network model to obtain an output predicted communication quality weight; the first neural network model is obtained through training a training data set comprising a plurality of training Bluetooth ad hoc network numbers and corresponding communication quality labels;
And calculating the average value of the products of the parameter average value and the predicted communication quality weight of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication path to obtain the communication quality parameter corresponding to the candidate Bluetooth communication path.
As an alternative embodiment, in the first aspect of the present invention, the method further includes:
in the process of transmitting the target transmission data to the destination terminal equipment through the Bluetooth path, acquiring real-time equipment communication information of network center equipment of the next Bluetooth ad hoc network in advance;
judging whether a network change event exists in the next Bluetooth ad hoc network according to the real-time equipment communication information and a prestored historical equipment communication record of the network center equipment;
if yes, the current Bluetooth device of the target transmission data is taken as a transmission end device, and the step of acquiring the target transmission data and the corresponding transmission end device and destination end device is carried out again, so that the Bluetooth path is redetermined.
The second aspect of the present invention discloses a communication path selecting device based on a multiple bluetooth network, the device comprising:
the acquisition module is used for acquiring target transmission data and corresponding transmission terminal equipment and destination terminal equipment;
A determining module, configured to determine all candidate bluetooth communication paths between the transmitting end device and the destination end device;
the calculation module is used for calculating the communication quality parameter corresponding to each candidate Bluetooth communication path according to the network information of the passing Bluetooth ad hoc network corresponding to each candidate Bluetooth communication path;
and the transmission module is used for determining an optimal Bluetooth path according to the communication quality parameters corresponding to each candidate Bluetooth communication path and transmitting the target transmission data to the destination terminal equipment through the Bluetooth path.
As an optional implementation manner, in the second aspect of the present invention, the network information includes at least one of a number of the bluetooth ad hoc networks and a historical operating energy consumption, a data transmission efficiency, a data transmission success rate, and a device health of bluetooth devices in the bluetooth ad hoc networks.
As an optional implementation manner, in the second aspect of the present invention, the determining module determines a specific manner of all candidate bluetooth communication paths between the transmitting end device and the destination end device, including:
acquiring all first candidate Bluetooth devices which establish direct communication connection or indirect communication connection with the transmission end device and the destination end device;
Screening a plurality of second candidate Bluetooth devices with liveness higher than a preset liveness threshold value from all the first candidate Bluetooth devices according to a pre-stored device communication record list;
traversing all paths for communication between the transmitting end device and the destination end device through any at least one device of the second candidate Bluetooth devices to obtain all candidate Bluetooth communication paths between the transmitting end device and the destination end device.
In a second aspect of the present invention, the specific manner of the determining module selecting, according to a pre-stored device communication record table, a plurality of second candidate bluetooth devices with liveness higher than a preset liveness threshold from all the first candidate bluetooth devices includes:
screening all Bluetooth ad hoc network center devices possibly corresponding to all the first candidate Bluetooth devices through a cluster analysis algorithm and a pre-stored Bluetooth ad hoc network rule;
transmitting a device communication record request to each Bluetooth Ad hoc network center device, and receiving feedback information of the Bluetooth Ad hoc network center devices;
judging whether equipment communication records corresponding to all the first candidate Bluetooth equipment are found according to all the received feedback information;
If not, returning to the step of executing the Bluetooth Ad hoc network center equipment which is possibly corresponding to all the first candidate Bluetooth equipment through a cluster analysis algorithm and a prestored Bluetooth Ad hoc network rule;
if yes, calculating the device communication activity of each first candidate Bluetooth device according to the device communication records corresponding to all the first candidate Bluetooth devices;
and screening a plurality of second candidate Bluetooth devices with the communication activity level of the device higher than a preset activity level threshold value from all the first candidate Bluetooth devices.
In a second aspect of the present invention, as an optional implementation manner, the determining module calculates, according to device communication records corresponding to all the first candidate bluetooth devices, a specific manner of device communication activity of each first candidate bluetooth device, including:
calculating the data activity corresponding to any candidate Bluetooth device according to the total amount of data transmitted and received by any candidate Bluetooth device in the device communication record in a preset historical time period; the data activity is the ratio of the total data amount to the time length of the historical time period;
Calculating the average value of the data liveness corresponding to all the candidate Bluetooth devices;
and calculating the ratio of the data activity level of each first candidate Bluetooth device to the average value to obtain the device communication activity level of each first candidate Bluetooth device.
In a second aspect of the present invention, the calculating module calculates, according to network information of the bluetooth ad hoc network through which each candidate bluetooth communication path corresponds, a specific manner of the communication quality parameter corresponding to each candidate bluetooth communication path, including:
for any one of the candidate Bluetooth communication paths, inputting network information of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication path into at least one first neural network model to obtain at least one predicted communication quality parameter corresponding to each output Bluetooth ad hoc network; the first neural network model is obtained through training a training data set comprising at least one network information of a plurality of training Bluetooth ad hoc networks and corresponding communication quality labels;
calculating the parameter average value of all the predicted communication quality parameters corresponding to each Bluetooth ad hoc network;
Inputting the quantity of Bluetooth ad hoc networks in the network information corresponding to the candidate Bluetooth communication path into a pre-trained second neural network model to obtain an output predicted communication quality weight; the first neural network model is obtained through training a training data set comprising a plurality of training Bluetooth ad hoc network numbers and corresponding communication quality labels;
and calculating the average value of the products of the parameter average value and the predicted communication quality weight of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication path to obtain the communication quality parameter corresponding to the candidate Bluetooth communication path.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises an adjustment module for performing the following steps:
in the process that the transmission module transmits the target transmission data to the destination terminal equipment through the Bluetooth path, acquiring real-time equipment communication information of network center equipment of the next Bluetooth ad hoc network in advance;
judging whether a network change event exists in the next Bluetooth ad hoc network according to the real-time equipment communication information and a prestored historical equipment communication record of the network center equipment;
If yes, the current Bluetooth device of the target transmission data is taken as a transmission end device, and the device is triggered to return to the step of executing the acquisition of the target transmission data and the corresponding transmission end device and destination end device so as to redetermine the Bluetooth path.
The third aspect of the present invention discloses another communication path selecting device based on multiple bluetooth networks, the device comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform some or all of the steps in the multiple bluetooth network based communication path selection method disclosed in the first aspect of the present invention.
A fourth aspect of the present invention discloses a computer storage medium storing computer instructions which, when invoked, are adapted to perform part or all of the steps of the multiple bluetooth network based communication path selection method disclosed in the first aspect of the present invention.
Compared with the prior art, the invention has the following beneficial effects:
the invention can determine the optimal Bluetooth transmission path based on the information of the Bluetooth ad hoc network through which the candidate Bluetooth communication path passes, thereby determining a more reasonable communication path by means of the data of the Bluetooth ad hoc network and improving the efficiency of Bluetooth transmission.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a communication path selection method based on a multiple bluetooth network according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a communication path selecting device based on a multiple bluetooth network according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another communication path selecting device based on a multiple bluetooth network according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses a communication path selection method and a device based on a multi-Bluetooth network, which can determine an optimal Bluetooth transmission path based on the information of a Bluetooth ad hoc network through which a candidate Bluetooth communication path passes, so that a more reasonable communication path can be determined by means of the data of the Bluetooth ad hoc network, and the efficiency of Bluetooth transmission is improved. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a communication path selection method based on a multiple bluetooth network according to an embodiment of the present invention. The method described in fig. 1 may be applied to a corresponding data processing device, a data processing terminal, and a data processing server, where the server may be a local server or a cloud server, and the embodiment of the present invention is not limited to the method shown in fig. 1, and the method for selecting a communication path based on a multiple bluetooth network may include the following operations:
101. and acquiring target transmission data and corresponding transmission end equipment and destination end equipment.
102. All candidate bluetooth communication paths between the transmitting end device and the destination end device are determined.
103. And calculating the communication quality parameters corresponding to each candidate Bluetooth communication path according to the network information of the passing Bluetooth ad hoc network corresponding to each candidate Bluetooth communication path.
Optionally, the network information includes at least one of the number of bluetooth ad hoc networks and historical working energy consumption, data transmission efficiency, data transmission success rate and device health of bluetooth devices in the bluetooth ad hoc networks.
104. And determining an optimal Bluetooth path according to the communication quality parameters corresponding to each candidate Bluetooth communication path, and transmitting the target transmission data to the destination terminal equipment through the Bluetooth path.
Alternatively, the candidate bluetooth communication path with the highest communication quality reference may be directly determined as the optimal bluetooth path.
Therefore, the method described by implementing the embodiment of the invention can determine the optimal Bluetooth transmission path based on the information of the Bluetooth ad hoc network through which the candidate Bluetooth communication path passes, thereby determining a more reasonable communication path by means of the data of the Bluetooth ad hoc network and improving the efficiency of Bluetooth transmission.
As an alternative embodiment, in the step, determining all candidate bluetooth communication paths between the transmitting end device and the destination end device includes:
acquiring all first candidate Bluetooth devices which establish direct communication connection or indirect communication connection with the transmission end device and the destination end device;
screening a plurality of second candidate Bluetooth devices with liveness higher than a preset liveness threshold value from all the first candidate Bluetooth devices according to a pre-stored device communication record list;
and traversing all paths for realizing communication between the transmission end device and the destination end device through any at least one device in the plurality of second candidate Bluetooth devices to obtain all candidate Bluetooth communication paths between the transmission end device and the destination end device.
Optionally, the direct communication connection is direct port communication between two devices, and the indirect communication connection is data communication between two devices through a port of at least one transit device.
Through the embodiment, a plurality of second candidate Bluetooth devices with the activity degree higher than the preset activity degree threshold can be screened out, and the candidate Bluetooth communication paths are determined according to the second candidate Bluetooth devices, so that the activity degree of the devices in the Bluetooth communication paths is higher, and the efficiency and the success rate of Bluetooth transmission are improved.
As an optional embodiment, in the step, according to a pre-stored device communication record table, a plurality of second candidate bluetooth devices with liveness higher than a preset liveness threshold are screened from all first candidate bluetooth devices, including:
screening all Bluetooth ad hoc network center devices possibly corresponding to all first candidate Bluetooth devices through a cluster analysis algorithm and a pre-stored Bluetooth ad hoc network rule;
transmitting a device communication record request to each Bluetooth Ad hoc network center device and receiving feedback information of the Bluetooth Ad hoc network center device;
judging whether device communication records corresponding to all first candidate Bluetooth devices are found or not according to all received feedback information;
If not, returning to the step of executing the Bluetooth Ad hoc network center equipment which is possibly corresponding to all the first candidate Bluetooth equipment through the cluster analysis algorithm and the prestored Bluetooth Ad hoc network rule;
if yes, calculating the device communication activity of each first candidate Bluetooth device according to the device communication records corresponding to all the first candidate Bluetooth devices;
and screening a plurality of second candidate Bluetooth devices with the device communication activity higher than a preset activity threshold from all the first candidate Bluetooth devices.
Optionally, the pre-stored bluetooth ad hoc network rule is a device selection rule established by the bluetooth device in the target area where the bluetooth ad hoc network is located, and the device selection rule is used for limiting rules to be followed by the bluetooth ad hoc network selected device, for example, a device with a distance smaller than a preset threshold value or a device with a data transmission frequency larger than the preset threshold value, and determining bluetooth ad hoc network center devices possibly existing in all the first candidate bluetooth devices through a cluster analysis algorithm and the rule.
Specifically, the central device of the bluetooth ad hoc network generally serves as an originating point and a transit control node of the network, so that a device communication record request sent to the central device receives a record corresponding to the network.
Through the embodiment, all Bluetooth ad hoc network center devices can be screened out through a cluster analysis algorithm and a pre-stored Bluetooth ad hoc network rule to acquire device communication records, so that the device communication records and the liveness of the computing device can be acquired more efficiently, and the device with high liveness is screened out to serve as a subsequent communication path.
As an optional embodiment, in the step, calculating the device communication activity of each first candidate bluetooth device according to the device communication records corresponding to all the first candidate bluetooth devices includes:
according to the total data amount sent and received by any candidate Bluetooth device in the device communication record in a preset historical time period, calculating the data activity corresponding to any candidate Bluetooth device; the data liveness is the ratio of the total data amount to the time length of the historical time period;
calculating the average value of the data liveness corresponding to all candidate Bluetooth devices;
and calculating the ratio of the data activity level of each first candidate Bluetooth device to the average value to obtain the device communication activity level of each first candidate Bluetooth device.
Through the embodiment, the device communication activity level of each first candidate Bluetooth device can be obtained by calculating the ratio of the data activity level of each first candidate Bluetooth device to the average value, so that the activity level of different devices can be measured more accurately.
As an optional embodiment, in the step, calculating, according to network information of the bluetooth ad hoc network through which each candidate bluetooth communication path corresponds, a communication quality parameter corresponding to each candidate bluetooth communication path includes:
for any candidate Bluetooth communication path, inputting network information of all Bluetooth ad hoc networks passing through the candidate Bluetooth communication path into at least one first neural network model to obtain at least one predicted communication quality parameter corresponding to each output Bluetooth ad hoc network; the first neural network model is obtained through training a training data set comprising at least one network information of a plurality of training Bluetooth ad hoc networks and corresponding communication quality labels;
calculating the parameter average value of all the predicted communication quality parameters corresponding to each Bluetooth ad hoc network;
inputting the quantity of Bluetooth ad hoc networks in the network information corresponding to the candidate Bluetooth communication path into a pre-trained second neural network model to obtain an output predicted communication quality weight; the first neural network model is obtained through training a training data set comprising a plurality of training Bluetooth ad hoc network numbers and corresponding communication quality labels;
And calculating the average value of the product of the parameter average value of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication paths and the predicted communication quality weight to obtain the communication quality parameters corresponding to the candidate Bluetooth communication paths.
Through the embodiment, the communication quality parameters corresponding to the candidate Bluetooth communication paths can be obtained by calculating the average value of the product of the parameter average value of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication paths and the predicted communication quality weight, so that the communication quality of different Bluetooth communication paths can be measured more accurately.
As an alternative embodiment, the method further comprises:
in the process of transmitting target transmission data to a destination device through a Bluetooth path, acquiring real-time device communication information of network center devices of the next Bluetooth ad hoc network in advance;
judging whether a network change event exists in the next Bluetooth ad hoc network according to the real-time equipment communication information and a prestored historical equipment communication record of the network center equipment;
if yes, the current Bluetooth device of the target transmission data is taken as the transmission end device, and the step of acquiring the target transmission data and the corresponding transmission end device and destination end device is carried out again, so that the Bluetooth path is redetermined.
Specifically, the similarity, for example, the vector distance, between the real-time device communication information and the historical device communication record can be calculated, and whether the similarity is smaller than a preset similarity threshold value or not is calculated and judged, and whether a network change event exists in the next bluetooth ad hoc network or not is calculated and judged.
By the embodiment, whether the next Bluetooth ad hoc network has network abnormality can be judged in advance, and under the condition of yes, the Bluetooth path is redetermined by taking the current equipment as an initiating point, so that the efficiency and the success rate of Bluetooth transmission are improved.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of a communication path selecting device based on a multiple bluetooth network according to an embodiment of the present invention. The apparatus described in fig. 2 may be applied to a corresponding data processing device, a data processing terminal, and a data processing server, where the server may be a local server or a cloud server, and embodiments of the present invention are not limited. As shown in fig. 2, the apparatus may include:
the acquiring module 201 is configured to acquire target transmission data and corresponding transmission end device and destination end device.
A determining module 202 is configured to determine all candidate bluetooth communication paths between the transmitting end device and the destination end device.
The calculating module 203 is configured to calculate a communication quality parameter corresponding to each candidate bluetooth communication path according to network information of the bluetooth ad hoc network through which each candidate bluetooth communication path corresponds.
Optionally, the network information includes at least one of the number of bluetooth ad hoc networks and historical working energy consumption, data transmission efficiency, data transmission success rate and device health of bluetooth devices in the bluetooth ad hoc networks.
And the transmission module 204 is configured to determine an optimal bluetooth path according to the communication quality parameters corresponding to each candidate bluetooth communication path, and transmit the target transmission data to the destination device through the bluetooth path.
Alternatively, the candidate bluetooth communication path with the highest communication quality reference may be directly determined as the optimal bluetooth path.
Therefore, the device described by implementing the embodiment of the invention can determine the optimal Bluetooth transmission path based on the information of the Bluetooth ad hoc network through which the candidate Bluetooth communication path passes, thereby determining a more reasonable communication path by means of the data of the Bluetooth ad hoc network and improving the efficiency of Bluetooth transmission.
As an alternative embodiment, the determining module 202 determines a specific manner of all candidate bluetooth communication paths between the transmitting end device and the destination end device, including:
Acquiring all first candidate Bluetooth devices which establish direct communication connection or indirect communication connection with the transmission end device and the destination end device;
screening a plurality of second candidate Bluetooth devices with liveness higher than a preset liveness threshold value from all the first candidate Bluetooth devices according to a pre-stored device communication record list;
and traversing all paths for realizing communication between the transmission end device and the destination end device through any at least one device in the plurality of second candidate Bluetooth devices to obtain all candidate Bluetooth communication paths between the transmission end device and the destination end device.
Optionally, the direct communication connection is direct port communication between two devices, and the indirect communication connection is data communication between two devices through a port of at least one transit device.
Through the embodiment, a plurality of second candidate Bluetooth devices with the activity degree higher than the preset activity degree threshold can be screened out, and the candidate Bluetooth communication paths are determined according to the second candidate Bluetooth devices, so that the activity degree of the devices in the Bluetooth communication paths is higher, and the efficiency and the success rate of Bluetooth transmission are improved.
As an alternative embodiment, the determining module 202 screens, according to a pre-stored device communication record table, a specific manner of selecting, from all the first candidate bluetooth devices, a plurality of second candidate bluetooth devices having liveness higher than a preset liveness threshold, including:
Screening all Bluetooth ad hoc network center devices possibly corresponding to all first candidate Bluetooth devices through a cluster analysis algorithm and a pre-stored Bluetooth ad hoc network rule;
transmitting a device communication record request to each Bluetooth Ad hoc network center device and receiving feedback information of the Bluetooth Ad hoc network center device;
judging whether device communication records corresponding to all first candidate Bluetooth devices are found or not according to all received feedback information;
if not, returning to the step of executing the Bluetooth Ad hoc network center equipment which is possibly corresponding to all the first candidate Bluetooth equipment through the cluster analysis algorithm and the prestored Bluetooth Ad hoc network rule;
if yes, calculating the device communication activity of each first candidate Bluetooth device according to the device communication records corresponding to all the first candidate Bluetooth devices;
and screening a plurality of second candidate Bluetooth devices with the device communication activity higher than a preset activity threshold from all the first candidate Bluetooth devices.
Optionally, the pre-stored bluetooth ad hoc network rule is a device selection rule established by the bluetooth device in the target area where the bluetooth ad hoc network is located, and the device selection rule is used for limiting rules to be followed by the bluetooth ad hoc network selected device, for example, a device with a distance smaller than a preset threshold value or a device with a data transmission frequency larger than the preset threshold value, and determining bluetooth ad hoc network center devices possibly existing in all the first candidate bluetooth devices through a cluster analysis algorithm and the rule.
Specifically, the central device of the bluetooth ad hoc network generally serves as an originating point and a transit control node of the network, so that a device communication record request sent to the central device receives a record corresponding to the network.
Through the embodiment, all Bluetooth ad hoc network center devices can be screened out through a cluster analysis algorithm and a pre-stored Bluetooth ad hoc network rule to acquire device communication records, so that the device communication records and the liveness of the computing device can be acquired more efficiently, and the device with high liveness is screened out to serve as a subsequent communication path.
As an optional embodiment, the determining module 202 calculates, according to the device communication records corresponding to all the first candidate bluetooth devices, a specific manner of device communication activity of each first candidate bluetooth device, including:
according to the total data amount sent and received by any candidate Bluetooth device in the device communication record in a preset historical time period, calculating the data activity corresponding to any candidate Bluetooth device; the data liveness is the ratio of the total data amount to the time length of the historical time period;
calculating the average value of the data liveness corresponding to all candidate Bluetooth devices;
and calculating the ratio of the data activity level of each first candidate Bluetooth device to the average value to obtain the device communication activity level of each first candidate Bluetooth device.
Through the embodiment, the device communication activity level of each first candidate Bluetooth device can be obtained by calculating the ratio of the data activity level of each first candidate Bluetooth device to the average value, so that the activity level of different devices can be measured more accurately.
As an alternative embodiment, the calculating module 203 calculates, according to network information of the bluetooth ad hoc network through which each candidate bluetooth communication path corresponds, a specific manner of the communication quality parameter corresponding to each candidate bluetooth communication path, including:
for any candidate Bluetooth communication path, inputting network information of all Bluetooth ad hoc networks passing through the candidate Bluetooth communication path into at least one first neural network model to obtain at least one predicted communication quality parameter corresponding to each output Bluetooth ad hoc network; the first neural network model is obtained through training a training data set comprising at least one network information of a plurality of training Bluetooth ad hoc networks and corresponding communication quality labels;
calculating the parameter average value of all the predicted communication quality parameters corresponding to each Bluetooth ad hoc network;
inputting the quantity of Bluetooth ad hoc networks in the network information corresponding to the candidate Bluetooth communication path into a pre-trained second neural network model to obtain an output predicted communication quality weight; the first neural network model is obtained through training a training data set comprising a plurality of training Bluetooth ad hoc network numbers and corresponding communication quality labels;
And calculating the average value of the product of the parameter average value of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication paths and the predicted communication quality weight to obtain the communication quality parameters corresponding to the candidate Bluetooth communication paths.
Through the embodiment, the communication quality parameters corresponding to the candidate Bluetooth communication paths can be obtained by calculating the average value of the product of the parameter average value of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication paths and the predicted communication quality weight, so that the communication quality of different Bluetooth communication paths can be measured more accurately.
As an alternative embodiment, the apparatus further comprises an adjustment module for performing the steps of:
in the process that the transmission module 204 transmits the target transmission data to the destination device through the Bluetooth path, acquiring real-time device communication information of the network center device of the next Bluetooth ad hoc network in advance;
judging whether a network change event exists in the next Bluetooth ad hoc network according to the real-time equipment communication information and a prestored historical equipment communication record of the network center equipment;
if yes, the current Bluetooth device of the target transmission data is taken as the transmission end device, and the device is triggered to return to the step of acquiring the target transmission data and the corresponding transmission end device and destination end device so as to redetermine the Bluetooth path.
Specifically, the similarity, for example, the vector distance, between the real-time device communication information and the historical device communication record can be calculated, and whether the similarity is smaller than a preset similarity threshold value or not is calculated and judged, and whether a network change event exists in the next bluetooth ad hoc network or not is calculated and judged.
By the embodiment, whether the next Bluetooth ad hoc network has network abnormality can be judged in advance, and under the condition of yes, the Bluetooth path is redetermined by taking the current equipment as an initiating point, so that the efficiency and the success rate of Bluetooth transmission are improved.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of another communication path selecting device based on a multiple bluetooth network according to an embodiment of the invention. As shown in fig. 3, the apparatus may include:
a memory 301 storing executable program code;
a processor 302 coupled with the memory 301;
the processor 302 invokes the executable program code stored in the memory 301 to perform some or all of the steps in the communication path selection method based on the multiple bluetooth network disclosed in the embodiment of the present invention.
Example IV
The embodiment of the invention discloses a computer storage medium which stores computer instructions for executing part or all of the steps in the communication path selection method based on the multi-Bluetooth network disclosed in the embodiment of the invention when the computer instructions are called.
The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses a communication path selection method and a communication path selection device based on a multi-Bluetooth network, which are disclosed by the embodiment of the invention only for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A method for selecting a communication path based on a multiple bluetooth network, the method comprising:
acquiring target transmission data and corresponding transmission terminal equipment and destination terminal equipment;
determining all candidate Bluetooth communication paths between the transmission end equipment and the destination end equipment;
according to the network information of the passing Bluetooth ad hoc network corresponding to each candidate Bluetooth communication path, calculating the communication quality parameter corresponding to each candidate Bluetooth communication path;
and determining an optimal Bluetooth path according to the communication quality parameters corresponding to each candidate Bluetooth communication path, and transmitting the target transmission data to the destination terminal equipment through the Bluetooth path.
2. The multi-bluetooth network-based communication path selection method according to claim 1, wherein the network information includes at least one of the number of bluetooth ad hoc networks and historical operating power consumption, data transmission efficiency, data transmission success rate, and device health of bluetooth devices in the bluetooth ad hoc networks.
3. The multiple bluetooth network based communication path selection method according to claim 2, wherein said determining all candidate bluetooth communication paths between the transmitting end device and the destination end device comprises:
acquiring all first candidate Bluetooth devices which establish direct communication connection or indirect communication connection with the transmission end device and the destination end device;
screening a plurality of second candidate Bluetooth devices with liveness higher than a preset liveness threshold value from all the first candidate Bluetooth devices according to a pre-stored device communication record list;
traversing all paths for communication between the transmitting end device and the destination end device through any at least one device of the second candidate Bluetooth devices to obtain all candidate Bluetooth communication paths between the transmitting end device and the destination end device.
4. The method for selecting a communication path based on a multiple bluetooth network according to claim 3, wherein the screening a plurality of second candidate bluetooth devices having liveness higher than a preset liveness threshold value from all the first candidate bluetooth devices according to a pre-stored device communication record table, comprises:
screening all Bluetooth ad hoc network center devices possibly corresponding to all the first candidate Bluetooth devices through a cluster analysis algorithm and a pre-stored Bluetooth ad hoc network rule;
transmitting a device communication record request to each Bluetooth Ad hoc network center device, and receiving feedback information of the Bluetooth Ad hoc network center devices;
judging whether equipment communication records corresponding to all the first candidate Bluetooth equipment are found according to all the received feedback information;
if not, returning to the step of executing the Bluetooth Ad hoc network center equipment which is possibly corresponding to all the first candidate Bluetooth equipment through a cluster analysis algorithm and a prestored Bluetooth Ad hoc network rule;
if yes, calculating the device communication activity of each first candidate Bluetooth device according to the device communication records corresponding to all the first candidate Bluetooth devices;
And screening a plurality of second candidate Bluetooth devices with the communication activity level of the device higher than a preset activity level threshold value from all the first candidate Bluetooth devices.
5. The method for selecting a communication path based on a multiple bluetooth network according to claim 4, wherein calculating the device communication activity of each of the first candidate bluetooth devices according to the device communication records corresponding to all the first candidate bluetooth devices comprises:
calculating the data activity corresponding to any candidate Bluetooth device according to the total amount of data transmitted and received by any candidate Bluetooth device in the device communication record in a preset historical time period; the data activity is the ratio of the total data amount to the time length of the historical time period;
calculating the average value of the data liveness corresponding to all the candidate Bluetooth devices;
and calculating the ratio of the data activity level of each first candidate Bluetooth device to the average value to obtain the device communication activity level of each first candidate Bluetooth device.
6. The method for selecting a communication path based on multiple bluetooth networks according to claim 1, wherein the calculating the communication quality parameter corresponding to each candidate bluetooth communication path according to the network information of the bluetooth ad hoc network through which each candidate bluetooth communication path corresponds comprises:
For any one of the candidate Bluetooth communication paths, inputting network information of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication path into at least one first neural network model to obtain at least one predicted communication quality parameter corresponding to each output Bluetooth ad hoc network; the first neural network model is obtained through training a training data set comprising at least one network information of a plurality of training Bluetooth ad hoc networks and corresponding communication quality labels;
calculating the parameter average value of all the predicted communication quality parameters corresponding to each Bluetooth ad hoc network;
inputting the quantity of Bluetooth ad hoc networks in the network information corresponding to the candidate Bluetooth communication path into a pre-trained second neural network model to obtain an output predicted communication quality weight; the first neural network model is obtained through training a training data set comprising a plurality of training Bluetooth ad hoc network numbers and corresponding communication quality labels;
and calculating the average value of the products of the parameter average value and the predicted communication quality weight of all the Bluetooth ad hoc networks passing through the candidate Bluetooth communication path to obtain the communication quality parameter corresponding to the candidate Bluetooth communication path.
7. The multiple bluetooth network based communication path selection method according to claim 1, wherein the method further comprises:
in the process of transmitting the target transmission data to the destination terminal equipment through the Bluetooth path, acquiring real-time equipment communication information of network center equipment of the next Bluetooth ad hoc network in advance;
judging whether a network change event exists in the next Bluetooth ad hoc network according to the real-time equipment communication information and a prestored historical equipment communication record of the network center equipment;
if yes, the current Bluetooth device of the target transmission data is taken as a transmission end device, and the step of acquiring the target transmission data and the corresponding transmission end device and destination end device is carried out again, so that the Bluetooth path is redetermined.
8. A multi-bluetooth network-based communication path selection apparatus, the apparatus comprising:
the acquisition module is used for acquiring target transmission data and corresponding transmission terminal equipment and destination terminal equipment;
a determining module, configured to determine all candidate bluetooth communication paths between the transmitting end device and the destination end device;
the calculation module is used for calculating the communication quality parameter corresponding to each candidate Bluetooth communication path according to the network information of the passing Bluetooth ad hoc network corresponding to each candidate Bluetooth communication path;
And the transmission module is used for determining an optimal Bluetooth path according to the communication quality parameters corresponding to each candidate Bluetooth communication path and transmitting the target transmission data to the destination terminal equipment through the Bluetooth path.
9. A multi-bluetooth network-based communication path selection apparatus, the apparatus comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the multi-bluetooth network based communication path selection method according to any of claims 1-7.
10. A computer storage medium storing computer instructions which, when invoked, are operable to perform the multiple bluetooth network based communication path selection method according to any one of claims 1-7.
CN202311028610.8A 2023-08-15 2023-08-15 Communication path selection method and device based on multiple Bluetooth networks Active CN117062180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311028610.8A CN117062180B (en) 2023-08-15 2023-08-15 Communication path selection method and device based on multiple Bluetooth networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311028610.8A CN117062180B (en) 2023-08-15 2023-08-15 Communication path selection method and device based on multiple Bluetooth networks

Publications (2)

Publication Number Publication Date
CN117062180A true CN117062180A (en) 2023-11-14
CN117062180B CN117062180B (en) 2024-02-02

Family

ID=88653063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311028610.8A Active CN117062180B (en) 2023-08-15 2023-08-15 Communication path selection method and device based on multiple Bluetooth networks

Country Status (1)

Country Link
CN (1) CN117062180B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117615359A (en) * 2023-11-28 2024-02-27 广州视声智能股份有限公司 Bluetooth data transmission method and system based on multiple rule engines

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus
US20190320478A1 (en) * 2018-04-13 2019-10-17 Realtek Semiconductor Corp. Multi-member bluetooth network capable of maintaining bluetooth signal quality with remote bluetooth device and related main bluetooth circuit and auxiliary bluetooth circuit
CN112040467A (en) * 2020-09-10 2020-12-04 上海物骐微电子有限公司 Low-radiation power-saving Bluetooth system and method
CN112822643A (en) * 2021-01-14 2021-05-18 深圳市芯中芯科技有限公司 Bluetooth device multi-connection networking method and system based on BLE broadcasting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190320478A1 (en) * 2018-04-13 2019-10-17 Realtek Semiconductor Corp. Multi-member bluetooth network capable of maintaining bluetooth signal quality with remote bluetooth device and related main bluetooth circuit and auxiliary bluetooth circuit
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus
CN112040467A (en) * 2020-09-10 2020-12-04 上海物骐微电子有限公司 Low-radiation power-saving Bluetooth system and method
CN112822643A (en) * 2021-01-14 2021-05-18 深圳市芯中芯科技有限公司 Bluetooth device multi-connection networking method and system based on BLE broadcasting

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117615359A (en) * 2023-11-28 2024-02-27 广州视声智能股份有限公司 Bluetooth data transmission method and system based on multiple rule engines

Also Published As

Publication number Publication date
CN117062180B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN117062180B (en) Communication path selection method and device based on multiple Bluetooth networks
CN111340277B (en) Popularity prediction model and prediction method based on federal learning in fog wireless access network
CN109063920A (en) A kind of transaction risk recognition methods, device and computer equipment
US20200184393A1 (en) Method and apparatus for determining risk management decision-making critical values
CN110365600A (en) A kind of jamming control method based on BBR, device, equipment and storage medium
US11888703B1 (en) Machine learning algorithms for quality of service assurance in network traffic
CN112732738B (en) Adaptive network data acquisition method based on multi-objective optimization and related equipment
CN110996365B (en) Heterogeneous network vertical switching algorithm and system based on multi-objective optimization model
CN117154844A (en) Energy supply control method and device for energy storage system
US10033612B2 (en) Adaptive signaling for network performance measurement, access, and control
CN107889195A (en) A kind of self study heterogeneous wireless network access selection method of differentiated service
CN117170873A (en) Resource pool management method and system based on artificial intelligence
CN116521344B (en) AI algorithm scheduling method and system based on resource bus
US11882194B2 (en) Adaptive signaling for network performance measurement, access, and control
CN107257292A (en) A kind of cross-domain distributed big data communication system design planning method
KR20190114126A (en) Software-defined network controller for controlling message transmission to switch based on processing completion delay time of message and method thereof
US20210329436A1 (en) Bluetooth device networking system and method based on ble
CN117527399B (en) Information security encryption method and system for intelligent home
CN112003900A (en) Method and system for realizing high service availability under high-load scene in distributed system
CN103944955B (en) Mobile phone spatial Information Service method based on wireless network
CN117216505B (en) User habit prediction method and system based on smart home use record
CN117729013A (en) Data transmission method and device for intelligent fire control
CN115002871B (en) Signal connection system, signal connection method, computer device, and storage medium
CN117235873B (en) Smart home layout method and system based on historical work record
CN117857239A (en) Home data transmission method and system based on multi-protocol fusion

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