CN115190515A - Communication data processing method and system suitable for text-travel internet of things control - Google Patents
Communication data processing method and system suitable for text-travel internet of things control Download PDFInfo
- Publication number
- CN115190515A CN115190515A CN202211117457.1A CN202211117457A CN115190515A CN 115190515 A CN115190515 A CN 115190515A CN 202211117457 A CN202211117457 A CN 202211117457A CN 115190515 A CN115190515 A CN 115190515A
- Authority
- CN
- China
- Prior art keywords
- transmission
- information
- modules
- display
- sub
- 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
- 238000004891 communication Methods 0.000 title claims abstract description 154
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 230000005540 biological transmission Effects 0.000 claims abstract description 449
- 238000000034 method Methods 0.000 claims description 34
- 238000000926 separation method Methods 0.000 claims description 13
- 238000000354 decomposition reaction Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 6
- 230000001174 ascending effect Effects 0.000 claims description 4
- 238000012163 sequencing technique Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 20
- 230000008569 process Effects 0.000 description 10
- 230000008901 benefit Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000010606 normalization Methods 0.000 description 4
- 230000008054 signal transmission Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 230000001747 exhibiting effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000002131 composite material Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/20—Communication route or path selection, e.g. power-based or shortest path routing based on geographic position or location
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a communication data processing method and a system suitable for text travel internet of things control, comprising the following steps: decomposing a text travel data drawing to obtain a plurality of text travel sub-modules, acquiring first position information corresponding to each text travel sub-module, and controlling second position information of a main control module of the text travel sub-modules; generating a first close-range transmission link according to the first display submodule; extracting the identity label of the second display submodule meeting the skip transmission requirement to generate a first skip transmission link; decomposing the transmission set based on the third display submodule to generate a second skip transmission link; and counting the first short-distance transmission link, the first short-distance transmission link and the second skip transmission link after the communication unit is configured to obtain a transmission link list. According to the technical scheme provided by the invention, the stable and rapid Internet of things control can be carried out on the corresponding display equipment during the display of the text travel, and the display effect during the display of the text travel is ensured.
Description
Technical Field
The invention relates to the technical field of Internet of things and wireless communication, in particular to a communication data processing method and system suitable for control of a text-travel Internet of things.
Background
The culture is the soul of travel, and the travel is an important way for the culture development. The cultural industry, as the national economy support industry, has more and more fusion development with the tourism industry which is also used as the strategic support industry, wherein the cultural tourism industry is an important development direction for digging local culture, perfecting the tourism industry, promoting the adjustment of economic structure and prying local economy to fly.
In the display process of the travel industry, splendid lamplight and flexible equipment are often needed to participate in artistic display, and at the moment, a lot of equipment is needed to perform the cooperation of internet of things.
When the device is controlled, a communication module is often needed, the short-distance communication module has the advantages of fast and stable signal transmission, but is controlled by the influence of a transmission range, and the long-distance communication module has the effect of a long transmission range, but the transmission speed and the stability are reduced. Therefore, in a large-scale travel project, various devices need to be controlled in a combined communication mode, the main control device can control all the display devices, and meanwhile, the signal transmission speed and stability are improved to the maximum extent, and the effect cannot be achieved in the prior art.
Disclosure of Invention
The embodiment of the invention provides a communication data processing method, a system and a storage medium suitable for Internet of things control of a text. The combined communication mode is adopted to carry out combined control on various devices, and the signal transmission speed and the stability are improved to the maximum extent while the master control device is ensured to be capable of controlling all the display devices.
In a first aspect of the embodiments of the present invention, a communication data processing method suitable for internet of things control for a text trip is provided, including:
decomposing a text travel data drawing to obtain a plurality of text travel sub-modules, acquiring first position information corresponding to each text travel sub-module, and second position information of a main control module for controlling all the text travel sub-modules;
calculating first transmission distance information between each text travel submodule and the main control module according to the first position information and the second position information, adding a first near field communication tag to all text travel submodules of which the first transmission distance information is smaller than first preset distance information, taking the text travel submodules added with the first near field communication tags as first display submodules, and generating a first near field transmission link according to the first display submodules;
adding second short-distance communication tags to all the travel sub-modules with the first transmission distance information being larger than the first preset distance information, taking the travel sub-modules with the second short-distance communication tags as second display sub-modules, and determining the position directions of all the second display sub-modules relative to the main control module;
counting all second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-modules meeting the skip transmission requirement in the transmission set, and extracting the identity tags of the second display sub-modules meeting the skip transmission requirement to generate a first skip transmission link;
adding a third remote communication label to a second display submodule which does not meet the requirement of skip transmission in a transmission set, taking the second display submodule added with the third near communication label as a third display submodule, decomposing the transmission set based on the third display submodule, and generating a second skip transmission link;
configuring a near-field communication unit for the first display sub-module, configuring a near-field communication unit with a skip transmission function for the second display sub-module, configuring a far-field communication unit with a remote transmission function for the third display sub-module, and counting a first near-field transmission link, a first near-field transmission link and a second skip transmission link after configuring the communication units to obtain a transmission link list.
Optionally, in a possible implementation manner of the first aspect, the decomposing the travel data drawing to obtain a plurality of travel sub-modules obtains first location information corresponding to each travel sub-module, and second location information of the main control module that controls all the travel sub-modules includes:
acquiring all split text travel output modules in a text travel data drawing, taking the acquired text travel output modules as text travel sub-modules, and determining first position information corresponding to each text travel sub-module, wherein the first position information comprises first abscissa information and first ordinate information;
and acquiring second position information of the main control module for controlling all the text travel sub-modules, wherein the second position information comprises second abscissa information and second ordinate information.
Optionally, in a possible implementation manner of the first aspect, the calculating, according to the first position information and the second position information, first transmission distance information between each of the travel sub-modules and the main control module, adding a first short-distance communication tag to all the travel sub-modules of which the first transmission distance information is smaller than first preset distance information, taking the travel sub-module to which the first short-distance communication tag is added as a first display sub-module, and generating a first short-distance transmission link according to the first display sub-module includes:
calculating first transmission distance information of each text travel sub-module and the main control module by the following formula,
wherein,is a firstThe first transmission distance information of the individual text travel sub-module and the main control module,is as followsFirst abscissa information of the individual text travel sub-module,second abscissa information which is second position information,second ordinate information that is the second position information,is as followsFirst ordinate information of the individual travel sub-module,is as followsWeight information of the individual travel sub-module;
adding a first close-range communication tag to all the text travel sub-modules of which the first transmission distance information is smaller than the first preset distance information;
and taking the text travel submodule added with the first short-distance communication tag as a first display submodule, extracting first ID information of the first display submodule, and generating a first short-distance transmission link according to the first ID information and the main control ID information of the main control module.
Optionally, in a possible implementation manner of the first aspect, the adding a second short-distance communication tag to all the travel sub-modules whose first transmission distance information is greater than the first preset distance information, taking the travel sub-module to which the second short-distance communication tag is added as a second display sub-module, and determining the position and direction of all the second display sub-modules relative to the main control module includes:
establishing a boundary line by using the second ordinate information, and comparing the first ordinate information and the second ordinate information of the second display sub-module;
if the first ordinate information is judged to be larger than or equal to the second ordinate information, the corresponding second display sub-module is judged to have a first position direction;
and if the first vertical coordinate information is smaller than the second vertical coordinate information, judging that the corresponding second display submodule has a second position direction.
Optionally, in a possible implementation manner of the first aspect, the counting all the second display submodules having corresponding position directions to obtain a transmission set, selecting a second display submodule meeting a skip transmission requirement in the transmission set, and extracting an identity tag of the second display submodule meeting the skip transmission requirement to generate a first skip transmission link includes:
counting all second display sub-modules with corresponding position directions to obtain a transmission set, sequencing all the second display sub-modules in the transmission set in a descending order according to the first transmission distance information, and calculating second transmission distance information of two adjacent second display sub-modules in the transmission set;
if all the second transmission distance information is respectively less than or equal to second preset distance information, judging that all the second display sub-modules meet the skip transmission requirement, and extracting second ID information of the second display sub-modules meeting the skip transmission requirement;
and generating a first skip transmission link according to the second ID information and the main control ID information of the main control module.
Optionally, in a possible implementation manner of the first aspect, the adding a third long-distance communication tag to a second display sub-module that does not meet the requirement of the skip transmission in the transmission set, taking the second display sub-module to which the third short-distance communication tag is added as a third display sub-module, and decomposing the transmission set based on the third display sub-module to generate a second skip transmission link includes:
if second transmission distance information larger than second preset distance information exists, judging that the corresponding second display sub-module does not meet the skip transmission requirement, and determining a corresponding third display sub-module;
if the next display sub-module of the third display sub-module in the transmission set is the second display sub-module, taking out the third display sub-module and the corresponding second display sub-module from the first set to generate a second set;
and generating a corresponding second skip transmission path according to the third ID information of the third display submodule in the second set, the second ID information of the second display submodule and the main control ID information of the main control module.
Optionally, in a possible implementation manner of the first aspect, the adding a second short-distance communication tag to all the travel sub-modules whose first transmission distance information is greater than the first preset distance information, taking the travel sub-module to which the second short-distance communication tag is added as a second display sub-module, and determining the position and direction of all the second display sub-modules relative to the main control module includes:
establishing a first virtual coordinate system for the virtual coordinate origin based on the second position information, and determining a virtual coordinate point corresponding to the first position information in the first virtual coordinate system according to the position relation between the first position information and the second position information;
and taking the virtual abscissa information and the virtual ordinate information of the virtual coordinate points as corresponding vector inputs, and calculating the angle position direction of the virtual coordinate points relative to the virtual coordinate origin based on the fastAtan2 function to obtain the angle information corresponding to each second display sub-module.
Optionally, in a possible implementation manner of the first aspect, the counting all the second display sub-modules having corresponding position directions to obtain a transmission set, selecting a second display sub-module in the transmission set that meets the requirement of the skip transmission, and extracting an identity tag of the second display sub-module that meets the requirement of the skip transmission to generate a first skip transmission link includes:
acquiring the display attribute of each second display submodule, determining the data volume transmission value corresponding to the corresponding second display submodule according to the display attribute, acquiring the number of all second display submodules to obtain a first total number, and acquiring the first transmission number corresponding to each transmission set according to the first total number and the data volume transmission value corresponding to each second display submodule;
according to the angle information, performing ascending ordering on all second display sub-modules to obtain a to-be-classified set, sequentially selecting the second display sub-modules in the to-be-classified set, and when judging that the selected second display sub-modules reach the first transmission quantity, generating a transmission set according to the selected second display sub-modules;
selecting the second display sub-modules again to generate a new transmission set, and stopping selecting the second display sub-modules until all the second display sub-modules in the to-be-classified set are selected;
counting the maximum angle information and the minimum angle information in each transmission set, and obtaining the angle information range of the corresponding transmission set according to the maximum angle information and the minimum angle information;
if the angle information range is larger than the preset angle range, splitting the corresponding transmission set to obtain separation angle information, and respectively counting a second display submodule located between the separation angle information and the maximum angle information and a second display submodule located between the separation angle information and the minimum angle information to generate a new transmission set.
Optionally, in a possible implementation manner of the first aspect, the obtaining the display attribute of each second display sub-module, determining the data volume transmission value corresponding to the corresponding second display sub-module according to the display attribute, obtaining the number of all the second display sub-modules to obtain a first total number, and obtaining the first transmission number corresponding to each transmission set according to the first total number and the data volume transmission value corresponding to each second display sub-module includes:
calculating according to the data volume transmission values corresponding to all the second display sub-modules to obtain an average transmission data volume, and comparing the average transmission data volume with a preset transmission data volume to obtain a data volume transmission coefficient;
comparing the first total number with a preset number to obtain a module number transmission coefficient;
calculating according to the data transmission coefficient, the module number transmission coefficient and the preset transmission number to obtain a first transmission number corresponding to each transmission set, calculating the first transmission number by the following formula,
wherein,for the purpose of the first number of transmissions,is as followsThe data transmission value corresponding to the second display sub-module,for the upper limit value of the second exhibiting sub-module,the quantitative value of the sub-modules is shown for the second,in order to preset the amount of data to be transmitted,the value is normalized for the amount of data,in order to transmit a weight value for the data volume,is the first number of the total number,the number of the air bags is a preset number,the value is normalized for the number of bits,is a weight value for the number of modules,is a preset number of transmissions.
In a second aspect of the embodiments of the present invention, a communication data processing apparatus for internet of things control for a travel is provided, including:
the decomposition module is used for decomposing the text travel data drawing to obtain a plurality of text travel sub-modules, acquiring first position information corresponding to each text travel sub-module and second position information of the main control module for controlling all the text travel sub-modules;
the calculation module is used for calculating first transmission distance information between each text travel sub-module and the main control module according to the first position information and the second position information, adding a first near-distance communication tag to all text travel sub-modules of which the first transmission distance information is smaller than first preset distance information, taking the text travel sub-modules added with the first near-distance communication tags as first display sub-modules, and generating a first near-distance transmission link according to the first display sub-modules;
the determining module is used for adding second short-distance communication tags to all the text travel sub-modules with the first transmission distance information being larger than the first preset distance information, taking the text travel sub-modules with the second short-distance communication tags as second display sub-modules, and determining the position directions of all the second display sub-modules relative to the main control module;
the statistical module is used for counting all the second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-modules meeting the skip transmission requirement in the transmission set, and extracting the identity tags of the second display sub-modules meeting the skip transmission requirement to generate a first skip transmission link;
the decomposition module is used for adding a third long-distance communication tag to a second display submodule which does not meet the requirement of skip transmission in the transmission set, taking the second display submodule added with the third short-distance communication tag as a third display submodule, decomposing the transmission set based on the third display submodule and generating a second skip transmission link;
and the configuration module is used for configuring a short-distance communication unit for the first display submodule, configuring a short-distance communication unit with a skip transmission function for the second display submodule, configuring a long-distance communication unit with a long-distance transmission function for the third display submodule, and counting a first short-distance transmission link, a first short-distance transmission link and a second skip transmission link after the communication units are configured to obtain a transmission link list.
In a third aspect of the embodiments of the present invention, a storage medium is provided, in which a computer program is stored, which, when being executed by a processor, is adapted to implement the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention.
The communication data processing method and the system suitable for the internet of things control of the text travel can decompose the text travel data drawing, configure different transmission modules for the corresponding text travel sub-modules according to the position difference of the text travel sub-modules and the main control module to form corresponding transmission links, enable the transmission units of the different transmission links to have more dimensions and types, and select the most suitable transmission mode under the corresponding transmission distance to ensure the stability of data transmission during the text travel display. Compared with a wired line for data transmission, the wireless data transmission device has the advantages of attractiveness, safety, convenience in installation and the like.
According to the technical scheme provided by the invention, when the communication link for carrying out the skip transmission is generated, the distance between the modules and the angle between the modules can be considered, and the angle between the modules can also be considered comprehensively, so that the second display sub-modules with similar angles can be classified to obtain the corresponding transmission set, and the corresponding skip transmission link is generated according to the transmission set. According to the invention, a third long-distance communication label is added to the second display submodule which does not meet the requirement, and the transmission set is decomposed according to the third display submodule to generate a second skip transmission chain path. The invention can still form a second skip transmission link based on the remote transmission module under a special transmission scene, carry out composite transmission of the remote communication module and the near communication module, and maximally ensure the stability of data transmission on the premise of data transmission.
When the position direction of the second display sub-module relative to the main control module is determined, different determination modes can be adopted according to different densities of the Chinese travel sub-modules in an application scene, so that when the density (the number of the second display sub-modules) is low, all the second display sub-modules can be divided into two directions by the method. When the density (the number of the second display sub-modules) is high, the invention can divide the second display sub-modules into a plurality of directions. And when the second display sub-modules are divided into a plurality of directions, the angle is divided reversely according to the number density of the second display sub-modules in each angle direction, the larger the number density is, the smaller the angle range in the angle direction is, and the smaller the number density is, the larger the angle range in the angle direction is. And when the angle range is large, the invention can carry out secondary splitting and decomposition on the corresponding set, thereby ensuring the stability and efficiency of data transmission.
Drawings
FIG. 1 is a flow chart of a first embodiment of a communication data processing method for Internet of things control;
FIG. 2 is a flowchart of a second embodiment of a communication data processing method for Internet of things control;
fig. 3 is a schematic diagram of a data transmission link formed by a first display sub-module, a second display sub-module, and a third display sub-module;
fig. 4 is a block diagram of a first embodiment of a communication data processing device suitable for internet of things control.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprising a, B and C", "comprising a, B, C" means that all three of a, B, C are comprised, "comprising a, B or C" means comprising one of a, B, C, "comprising a, B and/or C" means comprising any 1 or any 2 or 3 of a, B, C.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, the term "if" may be interpreted as "at \8230; …" or "in response to a determination" or "in response to a detection" depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The invention provides a communication data processing method suitable for text-travel internet of things control, as shown in figure 1, comprising the following steps:
step S110, decomposing the travel data drawing to obtain a plurality of travel sub-modules, obtaining first position information corresponding to each travel sub-module, and obtaining second position information of a main control module controlling all the travel sub-modules. In an actual application scenario, a worker may first make a drawing of a travel display scenario, generally speaking, a corresponding travel data drawing may be a CAD drawing, and the CAD drawing may have a contour diagram and position information of each travel internet of things device. In the actual display process of the text travel, multiple types of equipment are needed to be controlled in an integrated manner, the equipment may be a display screen, a spotlight, a sound box and the like, all the equipment of the internet of things can be controlled by at least one main control module, and the main control module can be equipment with a control function, such as a computer and the like.
The invention can collect the first position information corresponding to each text travel sub-module and the second position information of the main control module. The first position information and the second position information at this time may be geographical information actually labeled by the staff, including abscissa information and ordinate information, or may be abscissa information and ordinate information of a coordinate system constructed by CAD, and the specific acquisition mode of the first position information and the second position information is not limited in any way in the present invention, and the position relationship of each travel module compared with the master control module can be obtained through the first position information and the second position information.
In a possible implementation manner of the technical solution provided by the present invention, as shown in fig. 2, step S110 includes:
step S1101, obtaining all the document travel output modules of the components in the document travel data drawing, using the obtained document travel output modules as document travel sub-modules, and determining first position information corresponding to each document travel sub-module, where the first position information includes first abscissa information and first ordinate information.
In a text travel display scene, a plurality of internet of things devices can be separated and arranged at different positions, so that text travel output modules of all the separated parts in text travel data drawings can be extracted, the integrated text travel output modules can perform data transmission through the same data transmission module, and first position information corresponding to the text travel sub-modules can be determined.
Step S1102, obtaining second position information of the main control module controlling all the travel sub-modules, where the second position information includes second abscissa information and second ordinate information. When the position information of the text and travel sub-module is determined, the position information of the main control module can be synchronously determined by the method and the device, and the method and the device are used for carrying out calculation of examples subsequently. As described above, the first abscissa information, the first ordinate information, the second abscissa information, and the second ordinate information may be pre-configured by the staff according to the travel display scene.
Step S120, calculating first transmission distance information between each text travel submodule and the main control module according to the first position information and the second position information, adding a first short-distance communication tag to all text travel submodules of which the first transmission distance information is smaller than first preset distance information, taking the text travel submodules added with the first short-distance communication tags as first display submodules, and generating a first short-distance transmission link according to the first display submodules.
The invention can obtain the first transmission distance information of each text travel submodule and the main control module, in the actual application scene, the main control module can be possibly arranged at the middle position of all text travel internet-of-things equipment, and the distance between each text travel submodule and the main control module can be reflected through the first transmission distance information. In an actual application scenario, different communication modules may have different transmission distances, for example, communication modules such as bluetooth and Wi-Fi have the advantage of high transmission efficiency, but the transmission distance is short. At this time, the text travel sub-module with the first transmission distance information smaller than the first preset distance information can be regarded as a text travel sub-module closer to the main control module, and the text travel sub-module with the first transmission distance information smaller than the first preset distance information is added with a first short-distance communication tag, and the text travel sub-module is added with the first short-distance communication tag, so that the text travel sub-module can be understood to be added with a corresponding short-distance communication unit, such as Wi-Fi. In the travel data drawing, the first short-range communication tag may be a mark with different colors, such as blue, added to the corresponding travel sub-module.
In one possible implementation manner, the technical solution provided by the present invention, in step S120 includes:
calculating first transmission distance information of each text travel sub-module and the main control module by the following formula,
wherein,is a firstThe first transmission distance information of the individual text travel sub-module and the main control module,is a firstFirst abscissa information of the individual text travel sub-module,second abscissa information which is second position information,second ordinate information that is the second position information,is as followsFirst ordinate information of the individual travel sub-module,is as followsWeight information of the individual travel sub-module. In an actual reference scene, first transmission distance information of the text travel sub-module and the main control module can be obtained through coordinates,i.e. can be understood asThe difference in the coordinates of the axes is,can be understood asAxis coordinate difference. Weight information for travel sub-moduleThe first transmission distance information may be set according to specifications, volume and height of the corresponding travel sub-module, and the weight information of the relatively larger and higher travel sub-module is relatively larger, because the distance of the relatively larger and higher travel sub-module in the elevation is relatively higher, after the corresponding elevation information is considered, the elevation difference between the travel sub-module and the transmission unit of the main control module may be larger, and then the first transmission distance information is relatively larger.
And adding a first short-distance communication tag to all the text travel sub-modules of which the first transmission distance information is smaller than the first preset distance information, wherein the first short-distance communication module is any one of a Wi-Fi communication module and a Bluetooth communication module. The invention adds the first short-distance communication label to the text travel sub-module which is smaller than the first preset distance information, and the corresponding text travel sub-module is relatively close at the moment.
And taking the text travel submodule added with the first short-distance communication tag as a first display submodule, extracting first ID information of the first display submodule, and generating a first short-distance transmission link according to the first ID information and the main control ID information of the main control module. The first short-distance transmission link is obtained according to the first ID information and the master control ID information, and the first short-distance transmission link is input into the corresponding transmission link list.
Step S130, adding second short-distance communication tags to all the text travel sub-modules with the first transmission distance information being larger than the first preset distance information, taking the text travel sub-modules with the second short-distance communication tags as second display sub-modules, and determining the position directions of all the second display sub-modules relative to the main control module. The invention adds the second short-distance communication label to the text travel sub-module which is larger than the first preset distance information, so that the invention adds the second short-distance communication label to the corresponding text travel sub-module at the moment, and the second short-distance communication label can be red mark added to the corresponding text travel sub-module. Since all the second display sub-modules may be arranged in a distributed manner, the present invention first obtains the corresponding directions of the corresponding second display sub-modules. And determining the position relation and the position condition of the plurality of different second display sub-modules according to the direction.
According to the density of the second display sub-modules, the determining mode for determining the position direction relative to the main control module is selected, for example, when the number of the second display sub-modules is less than or equal to 10 and the density is smaller, the first implementation mode is selected to determine the position direction of the second display sub-modules relative to the main control module. For example, when the number of the second display sub-modules is greater than 10, and the density is greater at this time, the second implementation is selected to determine the position direction of the second display sub-modules relative to the main control module.
According to the technical scheme provided by the invention, when the position direction of the second display submodule relative to the main control module is determined, a plurality of different determination modes are provided, wherein the step S130 in the first implementation mode comprises the following steps:
and establishing a boundary line by using the second vertical coordinate information, and comparing the first vertical coordinate information and the second vertical coordinate information of the second display sub-module. The invention constructs a boundary according to the second ordinate information, where the boundary may be a perpendicular line corresponding to the second ordinate information, for example, if the second ordinate information is 0, the boundary is the boundary. The invention compares the first vertical coordinate information and the second vertical coordinate information of the second display sub-module to judge the position direction of the different second display sub-modules relative to the main control module.
And if the first vertical coordinate information is judged to be larger than or equal to the second vertical coordinate information, judging that the corresponding second display submodule has a first position direction. Through the method, all the second display sub-modules with the information of the second vertical coordinate or more can be classified, and the direction corresponding to the corresponding second display sub-module is the first position direction.
And if the first vertical coordinate information is smaller than the second vertical coordinate information, judging that the corresponding second display submodule has a second position direction. By the method, all the second display sub-modules smaller than the second ordinate information can be classified, and the direction corresponding to the corresponding second display sub-module is the second position direction. In the implementation scenario, the method is suitable for a small-scale travel display scenario, and at this time, the second display sub-modules in the small-scale travel display scenario are relatively dispersed, so that the number of directions at this time is relatively small, that is, only two directions exist. By the method, the direction of the second display submodule in the small-scale travel display scene can be determined.
According to the technical scheme provided by the invention, when the position direction of the second display submodule relative to the main control module is determined, a plurality of different determination modes are provided, wherein the step S130 in the second implementation mode comprises the following steps:
and establishing a first virtual coordinate system for the virtual coordinate origin based on the second position information, and determining a virtual coordinate point corresponding to the first position information in the first virtual coordinate system according to the position relation between the first position information and the second position information. The first virtual coordinate system is established by taking the second position information as the virtual coordinate origin, and can be regarded as the newly established first virtual coordinate system at the moment, all points in the first virtual coordinate system have an association relation with equipment corresponding to the text travel display scene at the moment, and the virtual coordinate points corresponding to the first position information are determined by the method.
And taking the virtual abscissa information and the virtual ordinate information of the virtual coordinate points as corresponding vector inputs, and calculating the angle position direction of the virtual coordinate points relative to the virtual coordinate origin based on the fastAtan2 function to obtain the angle information corresponding to each second display sub-module. For example, the virtual coordinate is (1, 1), and the vector input of the x coordinate and the y coordinate is 1, the present invention calculates the angular position direction of the virtual coordinate point relative to the virtual coordinate origin according to the fastAtan2 function. The invention will use 1 as the x coordinate of the vector and 1 as the y coordinate of the vector, and then the input one of the fastAtan2 function is a 2-dimensional vector, and the direction of the vector is calculated in degrees (the range is 0 degree-360 degrees), and the precision is 0.3 degrees. The function declares a path: /opencv-2.4.5/modules/core/include/opencv 2/core. The function defines a path: /opencv-2.4.5/modules/core/src/mathfuncs. Cpp.
In a possible embodiment, the technical solution provided by the present invention is that, the counting all the second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-module in the transmission set that meets the requirement of skip transmission, and extracting the identity tag of the second display sub-module that meets the requirement of skip transmission to generate the first skip transmission link, including:
the display attribute of each second display submodule is obtained, the data volume transmission value corresponding to the corresponding second display submodule is determined according to the display attribute, the number of all the second display submodules is obtained to obtain a first total number, and the first transmission number corresponding to each transmission set is obtained according to the first total number and the data volume transmission value corresponding to each second display submodule. The display attributes of all the second display sub-modules can be obtained, and it can be understood that sound equipment, display equipment, LED lighting equipment and the like can exist in different Internet of things equipment, different equipment can need different control data, the display equipment can need video data to display corresponding video data, but the LED lighting equipment can receive a signal to display corresponding colors. Therefore, when the presentation attributes of different second presentation sub-modules are different, the required data volume and the transmitted data volume are relatively different, and the data volume transmission value corresponding to the corresponding second presentation sub-module, for example, 10MB, 50MB, etc., is determined for each different presentation attribute. Relatively speaking, the data volume transmission value corresponding to the display device is greater than the data transmission value corresponding to the sound device, and the data volume transmission value corresponding to the data transmission value of the sound device is greater than the data transmission value corresponding to the LED lighting device. The invention can count the number of all the second display sub-modules to obtain the first total number, and if the number of the second display sub-modules is more, the corresponding first total number is more.
In an actual application scenario, since there are many second display sub-modules, in order to increase data transmission efficiency, the present invention sets a plurality of data transmission links, and performs data transmission through the plurality of data transmission links. Therefore, the present invention needs to perform comprehensive calculation by combining the first total number and the data amount transmission value corresponding to each second display sub-module to obtain the first transmission number, which is the number of the second display sub-modules corresponding to one data transmission link.
And performing ascending sequencing on all the second display sub-modules according to the angle information to obtain a to-be-classified set, sequentially selecting the second display sub-modules in the to-be-classified set, and generating a transmission set according to the selected second display sub-modules when judging that the selected second display sub-modules reach the first transmission quantity. According to the invention, all the second display sub-modules are sorted in an ascending order according to the angle information, and the second display sub-modules with similar angles in the to-be-classified set are closer to each other in the mode. Through the method, the second display sub-modules can be preliminarily classified according to the corresponding angles and the first transmission quantity, and a plurality of second display sub-modules which can be in one data transmission link are obtained. The second display sub-module at this time is a data transmission unit with a skip transmission function, such as a zigbee module, and the skip transmission function can be regarded as mutual data transmission between a plurality of zigbee modules.
And selecting the second display sub-modules again to generate a new transmission set, and stopping selecting the second display sub-modules until all the second display sub-modules in the to-be-classified set are selected. The invention can continuously select the second display sub-modules, a plurality of transmission sets can be generated at the moment, after all the second display sub-modules in the set to be classified are selected, the second display sub-modules can be regarded as all the second display sub-modules in the document display scene to be added with corresponding data transmission links respectively, and the path division of all the second display sub-modules is completed at the moment.
And counting the maximum angle information and the minimum angle information in each transmission set, and obtaining the angle information range of the corresponding transmission set according to the maximum angle information and the minimum angle information. In an actual application scenario, the number and the density of the second display sub-modules arranged in different angle directions are different because the second display sub-modules are not arranged dispersedly, so that the maximum angle information and the minimum angle information in each transmission set can be counted, in the actual application scenario, the difference value between the maximum angle information and the minimum angle information in one transmission set may be greater than 180 degrees, at this time, in one data transmission link, the transmission angle of a plurality of second display sub-modules is larger, at this time, the transmission distance of the second display sub-modules may be relatively longer, and even the transmission range of the zigbee module may be exceeded, so that the angle information range of the corresponding transmission set can be obtained according to the maximum angle information and the minimum angle information. If the plurality of second exhibiting sub-modules are relatively dense, the difference between the maximum angle information and the minimum angle information in the transmission set may be small.
If the angle information range is larger than the preset angle range, splitting the corresponding transmission set to obtain separation angle information, and respectively counting a second display submodule located between the separation angle information and the maximum angle information and a second display submodule located between the separation angle information and the minimum angle information to generate a new transmission set. At this time, it is proved that the range of the corresponding angle information is large, the corresponding transmission set needs to be split to obtain the separation angle information, and the separation angle information may be a median value of the maximum angle information and the minimum angle information, for example, the maximum angle information is 200 degrees, the minimum angle information is 0 degree, and the median value is 100 degrees. The invention counts the second display submodule between the separation angle information and the maximum angle information, and generates a new transmission set by the second display submodule between the separation angle information and the minimum angle information. And obtaining a corresponding data transmission link according to the new transmission set.
In a possible embodiment, the obtaining of the display attribute of each second display sub-module, determining the data volume transmission value corresponding to the corresponding second display sub-module according to the display attribute, obtaining the number of all second display sub-modules to obtain a first total number, and obtaining the first transmission number corresponding to each transmission set according to the first total number and the data volume transmission value corresponding to each second display sub-module includes:
and calculating according to the data volume transmission values corresponding to all the second display sub-modules to obtain an average transmission data volume, and comparing the average transmission data volume with a preset transmission data volume to obtain a data volume transmission coefficient. The average transmission data volume of all the second display sub-modules can reflect that under the corresponding travel display scene, the larger the total amount of data required to be displayed when all the display sub-modules perform normal display is, the larger the average transmission data volume is. According to the method, the average transmission data volume is compared with the preset transmission data volume, the data volume transmission volume in the corresponding text travel display scene is reflected through the data volume transmission coefficient, and if the data volume transmitted by the second display submodule is larger, the corresponding data volume transmission coefficient is larger, and the data transmission load of the whole text travel display scene is larger.
And comparing the first total quantity with a preset quantity to obtain a module quantity transmission coefficient. The number of the second display sub-modules in the current travel display scene can be reflected through the number transmission coefficient, and if the number of the second display sub-modules is more, the larger the corresponding module number transmission coefficient is, the larger the data transmission load of the whole travel display scene is.
Calculating according to the data transmission coefficient, the module number transmission coefficient and the preset transmission number to obtain a first transmission number corresponding to each transmission set, calculating the first transmission number by the following formula,
wherein,for the purpose of the first number of transmissions,is as followsThe data volume transmission value corresponding to the second display sub-module,for the upper limit value of the second demonstration sub-module,the quantitative value of the sub-modules is shown for the second,in order to preset the amount of data to be transmitted,the values are normalized for the amount of data,in order to transmit the weight value of the data volume,is the first number of the total number,in order to be a predetermined number of the components,the value is normalized for the number of bits,is a weight value for the number of modules,is a preset number of transmissions. By passingThe average transmission data amount can be calculated byThe data transmission coefficient can be calculated byThe module number transmission coefficient can be calculated. Wherein the transmission data volume is presetAnd a preset numberCan be preset by the working personnel and preset the transmission data volumeA predetermined number ofAnd presetting the transmission quantityCan be correspondingly set, i.e. at corresponding preset transmission data volumeA predetermined number ofIn the scenario of (2), the corresponding preset transmission numberThe distribution is relatively optimum, in such a scenario, the transmission load of each formed transmission link is relatively appropriate, and is not too high or too low, and the number of data transmission links is maximally reduced while the load of each data transmission link is relatively moderate. Data volume normalization valueCan be aligned withNormalization process, quantity normalization valueCan be aligned withPerforming normalization processing by weight value of transmission data volumeAnd module quantity weight valueAre respectively pairedAndand performing weighting processing.
Step S140, counting all the second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-modules meeting the skip transmission requirement in the transmission set, and extracting the identity tags of the second display sub-modules meeting the skip transmission requirement to generate a first skip transmission link. According to the invention, after a corresponding transmission set is obtained, second display sub-modules meeting the skip transmission requirement are determined, in an actual application scene, the distance between two adjacent second display sub-modules in one transmission set is quite large, if the distance between the two adjacent second display sub-modules is smaller than the maximum transmission distance of a zigbee module, the second display sub-modules meet the skip transmission requirement, and if the distance between the two adjacent second display sub-modules is larger than the maximum transmission distance of the zigbee module, the second display sub-modules do not meet the skip transmission requirement.
In one possible implementation manner, the technical solution provided by the present invention, in step S140, includes:
and counting all the second display sub-modules with corresponding position directions to obtain a transmission set, sequencing all the second display sub-modules in the transmission set in a descending order according to the first transmission distance information, and calculating second transmission distance information of two adjacent second display sub-modules in the transmission set. The invention counts all the second display sub-modules in the corresponding position directions to obtain a transmission set, and performs descending order on the second display sub-modules in the transmission set, so that the second display sub-modules with similar distances are adjacent in the transmission set.
If all the second transmission distance information is respectively smaller than or equal to second preset distance information, all the second display sub-modules are judged to meet the skip transmission requirement, and second ID information of the second display sub-modules meeting the skip transmission requirement is extracted. At this time, it is proved that all the adjacent second display sub-modules meet the transmission distance requirement of the zigbee, so that the invention extracts the second ID information of the second display sub-module meeting the skip transmission requirement at this time.
And generating a first skip transmission link according to the second ID information and the main control ID information of the main control module. According to the invention, the first skip transmission link is generated for all the second ID information and the main control ID information of the main control module, and through the method, when the worker needs to perform skip transmission through zigbee, the second ID information and the main control ID information of one path can be counted to obtain the corresponding first skip transmission link.
And S150, adding a third long-distance communication tag to a second display submodule which does not meet the requirement of skip transmission in the transmission set, taking the second display submodule added with the third short-distance communication tag as a third display submodule, decomposing the transmission set based on the third display submodule, and generating a second skip transmission link. When the distance between the adjacent second display sub-modules is greater than the zigbee transmission distance, the skip transmission cannot be performed in the plurality of second display sub-modules based on the zigbee transmission unit, so that the third remote communication tag is added to the second display sub-module which does not meet the skip transmission requirement, that is, the second display sub-module to which the third remote communication tag is added is used as the third display sub-module, and the third display sub-module cannot receive signals and data in a skip transmission manner through the zigbee module. Therefore, the transmission set needs to be decomposed according to the third display submodule to generate the second skip transmission link.
For example, there is one transmission set [、、、、、】,To is thatAre different internet of things devices respectively, at the momentAndandandthe second transmission distance information is respectively less than or equal to the second preset distance information, namely the moment、、Belonging to a second display submodule meeting the requirement of skip transmission,andis greater than a second predetermined distance information, i.e.The display sub-module belongs to a second display sub-module which does not meet the requirement of skip transmission, and can be understood as a second display sub-module which does not meet the requirement of skip transmission when second preset distance information between two adjacent Internet of things devices is larger than the second preset distance information. Therefore, the transmission set is decomposed according to the third display submodule to generate a second skip transmission link, and the second skip transmission link can be [ at present ]、、】。
In one possible implementation manner of the technical solution provided by the present invention, step S150 includes:
and if second transmission distance information larger than the second preset distance information exists, judging that the corresponding second display sub-module does not meet the skip transmission requirement, and determining a corresponding third display sub-module. As mentioned above, at this time, the corresponding second display sub-module cannot perform skip transmission through the zigbee, so that at this time, the corresponding second display sub-module needs to be used as the third display sub-module.
And if the next display submodule of the third display submodule in the transmission set is the second display submodule, taking out the third display submodule and the corresponding second display submodule from the first set to generate a second set. In an actual application scenario, if a subsequent display sub-module of the third display sub-module is the second display sub-module, then the invention will take out the subsequent second display sub-module from the first set to generate a second set (i.e., [ the first set of the second display sub-modules ] and generate a third set of the second display sub-modules、、】。
And generating a corresponding second skip transmission path according to the third ID information of the third display submodule in the second set, the second ID information of the second display submodule and the main control ID information of the main control module. At this time, the present invention generates a second hopping transmission path. In an actual application scenario, at this time, the third display sub-module configures a remote communication module, such as a 4G network communication module, a 5G network communication module, and a zigbee communication module. When the second jump transmission path is used for data transmission, the main control module firstly transmits the corresponding data to the remote transmission module、、Corresponding data, information, signal transmission to,Then the corresponding data, information and signals are transmitted to the corresponding zigbee transmission module、。
Step S160, configuring a short-distance communication unit for the first display sub-module, configuring a short-distance communication unit with a skip transmission function for the second display sub-module, configuring a long-distance communication unit with a long-distance transmission function for the third display sub-module, and counting the first short-distance transmission link, the first short-distance transmission link and the second skip transmission link after configuring the communication units to obtain a transmission link list.
The near-field communication unit configured for the first display sub-module is preferably a Wi-Fi communication module, the near-field communication unit configured for the second display sub-module and having a skip transmission function is preferably a zigbee module, and the far-field communication unit configured for the third display sub-module and having a long-range transmission function is preferably a 4G network communication module.
The main control module can send corresponding information, data and signals to all the first display sub-modules through the Wi-Fi communication module, and the plurality of first display sub-modules can be located under the coverage range of the same Wi-Fi communication module. The main control module can send corresponding information, data and signals to the second display sub-modules through the zigbee communication module, and the plurality of second display sub-modules can perform information, data and signal interaction through the zigbee communication module. The main control module may send corresponding information, data, and signals to the third display sub-module through the zigbee communication module, and the third display sub-module may interact with the corresponding second display sub-module through the corresponding zigbee communication module. As shown in fig. 3, a schematic diagram of a data transmission link formed by the first display sub-module, the second display sub-module, and the third display sub-module is shown.
The technical solution provided by the present invention further provides a communication data processing apparatus suitable for internet of things control, as shown in fig. 4, including:
the decomposition module is used for decomposing the text travel data drawing to obtain a plurality of text travel sub-modules, acquiring first position information corresponding to each text travel sub-module, and acquiring second position information of the main control module for controlling all the text travel sub-modules;
the calculation module is used for calculating first transmission distance information between each text travel sub-module and the main control module according to the first position information and the second position information, adding a first short-distance communication tag to all text travel sub-modules of which the first transmission distance information is smaller than first preset distance information, taking the text travel sub-modules added with the first short-distance communication tags as first display sub-modules, and generating a first short-distance transmission link according to the first display sub-modules;
the determining module is used for adding second short-distance communication tags to all the text travel sub-modules of which the first transmission distance information is greater than the first preset distance information, taking the text travel sub-modules added with the second short-distance communication tags as second display sub-modules and determining the position directions of all the second display sub-modules relative to the main control module;
the statistical module is used for counting all the second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-modules meeting the skip transmission requirement in the transmission set, and extracting the identity tags of the second display sub-modules meeting the skip transmission requirement to generate a first skip transmission link;
the decomposition module is used for adding a third remote communication tag to a second display submodule which does not meet the requirement of skip transmission in the transmission set, taking the second display submodule added with the third near-field communication tag as a third display submodule, decomposing the transmission set based on the third display submodule and generating a second skip transmission link;
and the configuration module is used for configuring a near-field communication unit for the first display submodule, configuring a near-field communication unit with a skip transmission function for the second display submodule, configuring a far-field communication unit with a remote transmission function for the third display submodule, and counting the first near-field transmission link, the first near-field transmission link and the second skip transmission link after the communication units are configured to obtain a transmission link list.
Further, the decomposition module is further configured to perform the following steps, including:
acquiring all split text travel output modules in a text travel data drawing, taking the acquired text travel output modules as text travel sub-modules, and determining first position information corresponding to each text travel sub-module, wherein the first position information comprises first abscissa information and first ordinate information;
and acquiring second position information of the main control module for controlling all the travel sub-modules, wherein the second position information comprises second abscissa information and second ordinate information.
Further, the calculation module is further configured to perform the following steps, including:
calculating first transmission distance information of each text travel sub-module and the main control module by the following formula,
wherein,is a firstThe first transmission distance information of the individual text travel sub-module and the main control module,is as followsFirst abscissa information of the individual text travel sub-module,second abscissa information which is second position information,second ordinate information that is the second position information,is a firstFirst ordinate information of the individual travel sub-module,is as followsWeight information of the individual travel sub-modules;
adding a first near field communication tag to all the travel sub-modules of which the first transmission distance information is smaller than first preset distance information, wherein the first near field communication module is any one of a Wi-Fi communication module and a Bluetooth communication module;
and taking the text travel submodule added with the first short-distance communication tag as a first display submodule, extracting first ID information of the first display submodule, and generating a first short-distance transmission link according to the first ID information and the main control ID information of the main control module.
The present invention also provides a storage medium, in which a computer program is stored, and the computer program is used for realizing the methods provided by the various embodiments described above when being executed by a processor.
The storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the storage medium may reside as discrete components in a communication device. The storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and the like.
The present invention also provides a program product comprising execution instructions stored in a storage medium. The at least one processor of the device may read the execution instructions from the storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the embodiment of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of hardware and software modules.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. The communication data processing method suitable for the control of the text-to-travel internet of things is characterized by comprising the following steps:
decomposing a text travel data drawing to obtain a plurality of text travel sub-modules, acquiring first position information corresponding to each text travel sub-module, and second position information of a main control module controlling all the text travel sub-modules;
calculating first transmission distance information between each text travel sub-module and the main control module according to the first position information and the second position information, adding a first short-distance communication tag to all text travel sub-modules of which the first transmission distance information is smaller than first preset distance information, taking the text travel sub-modules added with the first short-distance communication tags as first display sub-modules, and generating a first short-distance transmission link according to the first display sub-modules;
adding second short-distance communication tags to all the travel sub-modules with the first transmission distance information being larger than the first preset distance information, taking the travel sub-modules with the second short-distance communication tags as second display sub-modules, and determining the position directions of all the second display sub-modules relative to the main control module;
counting all second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-modules meeting the skip transmission requirement in the transmission set, and extracting the identity tags of the second display sub-modules meeting the skip transmission requirement to generate a first skip transmission link;
adding a third remote communication label to a second display submodule which does not meet the requirement of skip transmission in a transmission set, taking the second display submodule added with the third near communication label as a third display submodule, decomposing the transmission set based on the third display submodule, and generating a second skip transmission link;
configuring a near-field communication unit for the first display sub-module, configuring a near-field communication unit with a skip transmission function for the second display sub-module, configuring a far-field communication unit with a remote transmission function for the third display sub-module, and counting a first near-field transmission link, a first near-field transmission link and a second skip transmission link after configuring the communication units to obtain a transmission link list.
2. The communication data processing method for Internet of things control for the text according to claim 1,
decompose the data drawing of essay and obtain a plurality of essay travel submodule pieces, acquire the first positional information that every essay travel submodule piece corresponds to and carry out the second positional information of the host system who controls to all essay travel submodule pieces, include:
acquiring all split text travel output modules in a text travel data drawing, taking the acquired text travel output modules as text travel sub-modules, and determining first position information corresponding to each text travel sub-module, wherein the first position information comprises first abscissa information and first ordinate information;
and acquiring second position information of the main control module for controlling all the text travel sub-modules, wherein the second position information comprises second abscissa information and second ordinate information.
3. The communication data processing method for Internet of things control of text and travel according to claim 2,
the method includes the steps that first transmission distance information between each text travel submodule and the main control module is calculated according to the first position information and the second position information, a first close-range communication label is added to all text travel submodules of which the first transmission distance information is smaller than first preset distance information, the text travel submodules added with the first close-range communication labels are used as first display submodules, and a first close-range transmission link is generated according to the first display submodules, and the method includes the following steps:
calculating first transmission distance information of each text travel sub-module and the main control module by the following formula,
wherein,is a firstFirst transmission distance information of the text travel sub-module and the main control module,is a firstFirst abscissa information of the individual text travel sub-module,second abscissa information which is second position information,second ordinate information that is second position information,is as followsFirst ordinate information of the individual travel sub-module,is as followsWeight information of the individual travel sub-modules;
adding a first close-range communication tag to all the text travel sub-modules of which the first transmission distance information is smaller than the first preset distance information;
and taking the text travel submodule added with the first short-distance communication tag as a first display submodule, extracting first ID information of the first display submodule, and generating a first short-distance transmission link according to the first ID information and main control ID information of a main control module.
4. The communication data processing method for Internet of things control of text and travel according to claim 3,
adding a second short-distance communication tag to all the travel sub-modules of which the first transmission distance information is greater than the first preset distance information, taking the travel sub-modules added with the second short-distance communication tags as second display sub-modules, and determining the position directions of all the second display sub-modules relative to the main control module, wherein the method comprises the following steps:
establishing a boundary line by using the second vertical coordinate information, and comparing the first vertical coordinate information and the second vertical coordinate information of the second display sub-module;
if the first longitudinal coordinate information is judged to be larger than or equal to the second longitudinal coordinate information, the corresponding second display sub-module is judged to have a first position direction;
and if the first ordinate information is smaller than the second ordinate information, judging that the corresponding second display sub-module has a second position direction.
5. The communication data processing method for Internet of things control of the text according to claim 4,
counting all second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-modules meeting the skip transmission requirement in the transmission set, extracting the identity tags of the second display sub-modules meeting the skip transmission requirement to generate a first skip transmission link, and the method comprises the following steps:
counting all second display sub-modules with corresponding position directions to obtain a transmission set, sorting all the second display sub-modules in the transmission set in a descending order according to the first transmission distance information, and calculating second transmission distance information of two adjacent second display sub-modules in the transmission set;
if all the second transmission distance information is respectively smaller than or equal to second preset distance information, judging that all the second display sub-modules meet the skip transmission requirement, and extracting second ID information of the second display sub-modules meeting the skip transmission requirement;
and generating a first skip transmission link according to the second ID information and the main control ID information of the main control module.
6. The communication data processing method for Internet of things control of text and travel according to claim 5,
adding a third long-distance communication tag to a second display submodule which does not meet the requirement of skip transmission in the transmission set, taking the second display submodule added with the third short-distance communication tag as a third display submodule, decomposing the transmission set based on the third display submodule, and generating a second skip transmission link, wherein the method comprises the following steps:
if second transmission distance information larger than second preset distance information exists, judging that the corresponding second display sub-module does not meet the skip transmission requirement, and determining a corresponding third display sub-module;
if the next display sub-module of the third display sub-module in the transmission set is the second display sub-module, taking out the third display sub-module and the corresponding second display sub-module from the first set to generate a second set;
and generating a corresponding second skip transmission path according to the third ID information of the third display submodule in the second set, the second ID information of the second display submodule and the main control ID information of the main control module.
7. The communication data processing method for Internet of things control of text and travel according to claim 4,
adding a second short-distance communication tag to all the travel sub-modules of which the first transmission distance information is greater than the first preset distance information, taking the travel sub-modules added with the second short-distance communication tags as second display sub-modules, and determining the position directions of all the second display sub-modules relative to the main control module, wherein the method comprises the following steps:
establishing a first virtual coordinate system for the virtual coordinate origin based on the second position information, and determining a virtual coordinate point corresponding to the first position information in the first virtual coordinate system according to the position relation between the first position information and the second position information;
and taking the virtual abscissa information and the virtual ordinate information of the virtual coordinate points as corresponding vector inputs, and calculating the angle position direction of the virtual coordinate points relative to the virtual coordinate origin based on the fastAtan2 function to obtain the angle information corresponding to each second display sub-module.
8. The communication data processing method for Internet of things control of text and travel according to claim 7,
counting all second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-modules meeting the skip transmission requirement in the transmission set, extracting the identity tags of the second display sub-modules meeting the skip transmission requirement to generate a first skip transmission link, and the method comprises the following steps:
acquiring the display attribute of each second display submodule, determining the data volume transmission value corresponding to the corresponding second display submodule according to the display attribute, acquiring the number of all second display submodules to obtain a first total number, and acquiring the first transmission number corresponding to each transmission set according to the first total number and the data volume transmission value corresponding to each second display submodule;
according to the angle information, performing ascending sequencing on all second display sub-modules to obtain a to-be-classified set, sequentially selecting the second display sub-modules in the to-be-classified set, and when judging that the selected second display sub-modules reach the first transmission quantity, generating a transmission set according to the selected second display sub-modules;
selecting the second display sub-modules again to generate a new transmission set, and stopping selecting the second display sub-modules until all the second display sub-modules in the to-be-classified set are selected;
counting the maximum angle information and the minimum angle information in each transmission set, and obtaining the angle information range of the corresponding transmission set according to the maximum angle information and the minimum angle information;
if the angle information range is larger than the preset angle range, splitting the corresponding transmission set to obtain separation angle information, and respectively counting a second display submodule located between the separation angle information and the maximum angle information and a second display submodule located between the separation angle information and the minimum angle information to generate a new transmission set.
9. The communication data processing method for Internet of things control of the text according to claim 8,
the obtaining of the display attribute of each second display submodule, determining the data volume transmission value corresponding to the corresponding second display submodule according to the display attribute, obtaining the number of all second display submodules to obtain a first total number, and obtaining the first transmission number corresponding to each transmission set according to the first total number and the data volume transmission value corresponding to each second display submodule, includes:
calculating according to the data volume transmission values corresponding to all the second display sub-modules to obtain an average transmission data volume, and comparing the average transmission data volume with a preset transmission data volume to obtain a data volume transmission coefficient;
comparing the first total quantity with a preset quantity to obtain a module quantity transmission coefficient;
calculating according to the data volume transmission coefficient, the module number transmission coefficient and the preset transmission number to obtain a first transmission number corresponding to each transmission set, calculating the first transmission number by the following formula,
wherein,for the purpose of the first number of transmissions,is as followsThe data transmission value corresponding to the second display sub-module,for the upper limit value of the second demonstration sub-module,the magnitude values of the sub-modules are shown for the second,in order to preset the amount of data to be transmitted,the values are normalized for the amount of data,in order to transmit a weight value for the data volume,is the first number of the total number,the number of the air bags is a preset number,the value is normalized for the number of bits,is a weight value for the number of modules,is a preset number of transmissions.
10. Communication data processing apparatus suitable for control of literary tour thing allies oneself with, its characterized in that includes:
the decomposition module is used for decomposing the text travel data drawing to obtain a plurality of text travel sub-modules, acquiring first position information corresponding to each text travel sub-module, and acquiring second position information of the main control module for controlling all the text travel sub-modules;
the calculation module is used for calculating first transmission distance information between each text travel sub-module and the main control module according to the first position information and the second position information, adding a first short-distance communication tag to all text travel sub-modules of which the first transmission distance information is smaller than first preset distance information, taking the text travel sub-modules added with the first short-distance communication tags as first display sub-modules, and generating a first short-distance transmission link according to the first display sub-modules;
the determining module is used for adding second short-distance communication tags to all the text travel sub-modules with the first transmission distance information being larger than the first preset distance information, taking the text travel sub-modules with the second short-distance communication tags as second display sub-modules, and determining the position directions of all the second display sub-modules relative to the main control module;
the statistical module is used for counting all the second display sub-modules with corresponding position directions to obtain a transmission set, selecting the second display sub-modules meeting the skip transmission requirement in the transmission set, and extracting the identity tags of the second display sub-modules meeting the skip transmission requirement to generate a first skip transmission link;
the decomposition module is used for adding a third long-distance communication tag to a second display submodule which does not meet the requirement of skip transmission in the transmission set, taking the second display submodule added with the third short-distance communication tag as a third display submodule, decomposing the transmission set based on the third display submodule and generating a second skip transmission link;
and the configuration module is used for configuring a short-distance communication unit for the first display submodule, configuring a short-distance communication unit with a skip transmission function for the second display submodule, configuring a long-distance communication unit with a long-distance transmission function for the third display submodule, and counting a first short-distance transmission link, a first short-distance transmission link and a second skip transmission link after the communication units are configured to obtain a transmission link list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211117457.1A CN115190515B (en) | 2022-09-14 | 2022-09-14 | Communication data processing method and system suitable for Chinese travel internet of things control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211117457.1A CN115190515B (en) | 2022-09-14 | 2022-09-14 | Communication data processing method and system suitable for Chinese travel internet of things control |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115190515A true CN115190515A (en) | 2022-10-14 |
CN115190515B CN115190515B (en) | 2022-12-23 |
Family
ID=83524174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211117457.1A Active CN115190515B (en) | 2022-09-14 | 2022-09-14 | Communication data processing method and system suitable for Chinese travel internet of things control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115190515B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103947285A (en) * | 2011-12-01 | 2014-07-23 | 皇家飞利浦有限公司 | Method, wireless device and wireless communications system to guide a user of a wireless device to establish an optimal wireless direct link to another wireless device |
US20140365118A1 (en) * | 2013-06-09 | 2014-12-11 | Apple Inc. | Direction List |
CN105323818A (en) * | 2015-11-04 | 2016-02-10 | 天津理工大学 | Energy-saving clustering routing method based on network regional division and distances |
EP3444731A1 (en) * | 2016-04-11 | 2019-02-20 | Sony Corporation | Information processing device and information processing method |
CN111385208A (en) * | 2018-12-29 | 2020-07-07 | 广州市百果园信息技术有限公司 | Routing method, routing device, computer equipment and storage medium |
US20200260262A1 (en) * | 2017-11-23 | 2020-08-13 | Beijing Xiaomi Mobile Software Co., Ltd. | Transmission configuration method and apparatus |
-
2022
- 2022-09-14 CN CN202211117457.1A patent/CN115190515B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103947285A (en) * | 2011-12-01 | 2014-07-23 | 皇家飞利浦有限公司 | Method, wireless device and wireless communications system to guide a user of a wireless device to establish an optimal wireless direct link to another wireless device |
US20140365118A1 (en) * | 2013-06-09 | 2014-12-11 | Apple Inc. | Direction List |
CN105323818A (en) * | 2015-11-04 | 2016-02-10 | 天津理工大学 | Energy-saving clustering routing method based on network regional division and distances |
EP3444731A1 (en) * | 2016-04-11 | 2019-02-20 | Sony Corporation | Information processing device and information processing method |
US20200260262A1 (en) * | 2017-11-23 | 2020-08-13 | Beijing Xiaomi Mobile Software Co., Ltd. | Transmission configuration method and apparatus |
CN111385208A (en) * | 2018-12-29 | 2020-07-07 | 广州市百果园信息技术有限公司 | Routing method, routing device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115190515B (en) | 2022-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104239465B (en) | A kind of method and device scanned for based on scene information | |
CN110379020A (en) | A kind of laser point cloud painting methods and device based on generation confrontation network | |
CN104123305B (en) | Geoprocessing method and its system | |
CN113901911B (en) | Image recognition method, image recognition device, model training method, model training device, electronic equipment and storage medium | |
CN107092623A (en) | A kind of point of interest querying method and device | |
US20190318028A1 (en) | Identifying functional zones within a geographic region | |
CN116518979B (en) | Unmanned plane path planning method, unmanned plane path planning system, electronic equipment and medium | |
CN107102833A (en) | Line information interactive approach and electronic equipment | |
CN107791251A (en) | robot movement control method and robot | |
US20220172310A1 (en) | House-renting recommendation method, electronic device and storage medium | |
CN111782980A (en) | Map interest point mining method, device, equipment and storage medium | |
CN112053440A (en) | Method for determining individualized model and communication device | |
CN115190515B (en) | Communication data processing method and system suitable for Chinese travel internet of things control | |
CN110288465A (en) | Object determines method and device, storage medium, electronic device | |
CN111274348A (en) | Service feature data extraction method and device and electronic equipment | |
CN110309244A (en) | A kind of method and apparatus of object location | |
CN116304844B (en) | Personnel entry and exit counting and counting system and method | |
CN116627637A (en) | Multi-terminal task cooperation method and device of robot exhibition hall scene based on cloud side end architecture | |
JP2022166169A (en) | Signal processing method, device, apparatus and storage medium | |
CN115310692A (en) | Wisdom rural area tourism service platform | |
CN114925663A (en) | Intelligent ticket forming method and system based on overhaul ticket | |
CN112785083B (en) | Arrival time estimation method and device, electronic equipment and storage medium | |
CN110363847A (en) | A kind of cartographic model construction method and device based on point cloud data | |
CN104376031A (en) | Pattern-enabled data entry and search | |
CN111581318B (en) | Shared bicycle riding purpose inference method and device and storage medium |
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 |