CN117155736A - Timing communication method between bus master station and slave station - Google Patents
Timing communication method between bus master station and slave station Download PDFInfo
- Publication number
- CN117155736A CN117155736A CN202311410774.7A CN202311410774A CN117155736A CN 117155736 A CN117155736 A CN 117155736A CN 202311410774 A CN202311410774 A CN 202311410774A CN 117155736 A CN117155736 A CN 117155736A
- Authority
- CN
- China
- Prior art keywords
- station
- data
- slave
- slave station
- time
- 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
- 230000006854 communication Effects 0.000 title claims abstract description 71
- 238000004891 communication Methods 0.000 title claims abstract description 68
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000005540 biological transmission Effects 0.000 claims abstract description 130
- 238000004364 calculation method Methods 0.000 claims abstract description 57
- 238000013500 data storage Methods 0.000 claims abstract description 35
- 238000003860 storage Methods 0.000 claims abstract description 29
- 238000010586 diagram Methods 0.000 claims description 20
- 238000007726 management method Methods 0.000 claims description 17
- 230000015654 memory Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 13
- 230000008676 import Effects 0.000 claims description 3
- 230000014759 maintenance of location Effects 0.000 claims description 3
- 239000000284 extract Substances 0.000 abstract 1
- 230000002354 daily effect Effects 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000003203 everyday effect Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000000638 solvent extraction Methods 0.000 description 2
- 230000004308 accommodation Effects 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method 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
- 239000013307 optical fiber Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40143—Bus networks involving priority mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The application discloses a timing communication method between a bus master station and a slave station, which belongs to the field of digital information transmission, and the method extracts the transmission data quantity transmitted to the master station in the historical data transmission time of the slave station and the equipment set historically connected with the slave station, brings the equipment set historically connected with the slave station into a transmission data quantity estimation strategy to estimate the data quantity of the slave station in the data transmission time, introduces the equipment set real-time connected with the slave station and the data storage allowance of a storage into an importance calculation strategy to calculate the importance of the slave station, introduces the data quantity of the slave station in the importance calculation strategy to calculate the priority of the slave station, and arranges the priority of a plurality of slave stations in descending order, carries out communication between the master station and the slave station according to the arrangement order, calculates the priority of the master station and the slave station in real time, avoids the conflict of requests between the slave stations, simultaneously improves the rationality of information transmission between the master station and the slave station, and ensures that the transmission of important slave station information is unblocked under the condition of poor network transmission signals.
Description
Technical Field
The application belongs to the field of digital information transmission, and particularly relates to a timing communication method between a bus master station and a slave station.
Background
At present, a timing communication method between a bus master station and a bus slave station can be realized by two modes of polling and interrupt, wherein the polling mode is as follows: the bus master station sequentially sends a query command to each slave station according to a preset time interval, the slave station responds after receiving the query command, and the result is returned before the master station inquires next round. The master station continuously polls all the slave stations, periodically communicates with each slave station, and interrupts the mode: the bus master station transmits an interrupt request signal to each slave station, and the slave stations immediately respond after receiving the interrupt request and transmit data to be transmitted to the master station. The master station responds to the requests of the slave stations one by one according to the priority of the interrupt requests, and the master station recovers to a polling mode after completing data transmission, wherein the two methods have advantages and disadvantages, and the polling mode can ensure that all the slave stations can be polled for communication, but a longer time period is needed for polling all the slave stations; the interrupt mode can respond to the request of the station in time, but the request conflict among the stations can be caused, and the reasonable interrupt request priority is required to be designed;
for example, in the chinese patent with the grant publication number CN107346980B, a networking communication method of a multi-slave cable anti-theft monitoring system is disclosed, which mainly relates to a networking communication protocol of a cable anti-theft monitoring system composed of a central station, a master station and a slave station; the central station establishes connection with the master station based on GPRS, and the master station establishes connection with the plurality of slave stations based on power carrier communication; the communication in the system is mainly initiated by a master station, site registration and data reporting in a central station are realized through GPRS communication, so that system global information aggregation is completed, and data interaction between the master station and the slave station is realized through power carrier communication, so that local data acquisition and cable on-off detection of the slave station are completed. The master station is provided with a periodic acquisition timer to realize periodic data acquisition of all the slave stations on the monitoring line, and the method solves the problem that normal communication cannot be carried out between two parts in effective time possibly caused by cable or slave station equipment faults in the implementation process of the communication method;
meanwhile, an optical passive network system and an operation method thereof are disclosed in, for example, chinese patent application publication No. CN101873175 a. The application provides a PON, which prevents the reduction of the transmission signal frequency band or the increase of the waiting time in each ONU when introducing RE in the PON to prolong the communication distance between an OLT and the ONU or increasing the accommodation ONU, and has the same degree of communication quality as the prior PON. In an optical communication system comprising a master station and a plurality of sub-stations connected to each other through an optical fiber network including an optical splitter, a repeater for repeating signals between the master station and the sub-stations is provided, and the optical communication system comprises a measuring unit for measuring a transmission distance or a transmission time between the master station and the sub-stations, a determining unit for determining a timing of transmitting signals to the sub-stations according to a transmission band request of the sub-stations, a signal processing unit for processing signals received from the sub-stations and transmitting the processed signals to the master station, and when burst signals are received from the respective sub-stations at the determined timing, a part of a header of the burst signals is deleted, a dummy signal is inserted into a gap between the deleted region and the received burst signals, and the burst signals are converted into a series of signals and transmitted to the master station.
The problems presented in the background art exist in the above patents: the polling scheme ensures that all secondary stations can be polled for communication, but requires a longer period of time to poll all secondary stations; the interrupt mode can respond to the requests of the stations in time, but the request collision among the stations can be caused, and reasonable interrupt request priority is required to be designed.
Disclosure of Invention
Aiming at the defects of the prior art, the application provides a timing communication method between a bus master station and a slave station, which is characterized in that a connection topological diagram of the bus master station and the slave station is extracted, the connection relation between the bus master station and each slave station is obtained from the connection topological diagram, the data transmission time and the time length are determined, the transmission data quantity transmitted to the master station in the historical data transmission time of a plurality of slave stations, the equipment set of the historical connection of the plurality of slave stations and the data storage allowance of a storage are obtained, the transmission data quantity transmitted to the master station in the historical data transmission time of the slave stations and the equipment set of the historical connection of the slave stations are extracted, the data quantity of the slave stations is estimated in a transmission data quantity estimation strategy, the equipment set of the real-time connection of the slave stations and the data storage allowance of the storage are led into an importance calculation strategy for the slave stations, the priority value of the slave stations is calculated in the priority value calculation strategy for the slave stations, the priority value of the slave stations is arranged in descending order of the priority value of the slave stations, the communication between the master station and the slave stations is carried out according to the arrangement order, the priority value between the master station and the slave stations is calculated, and the priority value between the master station and the slave stations is not required to be well transmitted, and the state of the communication between the master station and the slave station is not clear, and the important transmission information is guaranteed, and the situation is not clear at the time is guaranteed.
In order to achieve the above purpose, the present application provides the following technical solutions:
a timing communication method between a bus master station and a slave station comprises the following specific steps:
s1, extracting a connection topological diagram of a bus master station and slave stations, and acquiring connection relations between the bus master station and each slave station from the connection topological diagram;
s2, determining data transmission time and duration, and acquiring transmission data quantity transmitted to a master station in the historical data transmission time of a plurality of slave stations, and data storage allowance of a plurality of equipment sets and storages connected in a historical manner;
s3, extracting transmission data quantity transmitted to a master station in the historical data transmission time of the slave station and equipment set connected with the history of the slave station, and carrying out estimation of the data quantity of the data transmission time of the slave station in a transmission data quantity estimation strategy;
s4, importing the data storage margin of the equipment set and the storage which are connected with the secondary station in real time into an importance calculation strategy to calculate the importance of the secondary station;
s5, importing the data quantity at the data transmission time of the slave station and the importance of the slave station into a priority value calculation strategy to calculate the priority value of the slave station;
s6, arranging the priority values of the plurality of secondary stations in a descending order, and carrying out communication between the primary station and the secondary stations according to the arrangement order.
Specifically, the specific content of S1 includes the following steps:
s11, extracting a connection topological diagram of a bus master station and a slave station, observing each node in the connection topological diagram, identifying the master station and the slave station, wherein the master station is a control center of a bus and is responsible for sending commands and receiving data, and the slave station is controlled equipment;
s12, determining the physical connection relation between the master station and each slave station according to the connection line and the arrow direction, wherein the connection line can be a straight line, a curve or an arrow, the arrow pointing direction represents the flow direction of data, and in general, the bus master station and each slave station are directly and physically connected;
s13, acquiring the physical connection relation between the master station and each slave station.
Specifically, the specific steps of S2 are as follows:
s21, determining data transmission time and duration, and simultaneously acquiring transmission data quantity transmitted to a master station in a plurality of slave station historical data transmission time, wherein the data transmission time is determined in the following manner: each master station and the auxiliary stations thereof can communicate in a plurality of time periods appointed every day when communicating, wherein the data transmission time is the appointed time periods of the communication, the duration is the duration corresponding to the time period, and the transmission data quantity transmitted to the master station in the historical data transmission time of the plurality of auxiliary stations is the transmission data quantity transmitted to the master station by all the auxiliary stations in the historical time period;
s22, acquiring a device set of the slave station management connection and a data storage allowance of a storage of the slave station.
Specifically, the transmission data amount estimation policy of S3 includes the following specific steps:
s31, extracting the transmission data quantity transmitted to the master station from the historical data transmission time of the slave station, extracting the transmission data quantity corresponding to the next data transmission time of the daily calculation time from the transmission data quantity, and simultaneously extracting the equipment model number set of management connection of the slave station corresponding to the next data transmission time of the daily calculation timeAnd the running data set of the equipment, the running data set of the equipment and the acquired running data set of the equipment which are connected in a management mode corresponding to the next data transmission moment by the slave station in daily computing time are +.>The operation data set of the equipment is imported into a similarity calculation formula, and the number set of the equipment models which are connected in a management mode and are corresponding to the next data transmission moment in the daily calculation time of the secondary station is calculatedSimilarity between the operation data set of the equipment and the acquired real-time secondary station management connected equipment set and operation data set of the equipment;
s32, extracting the transmission data quantity of the corresponding time of three days with the maximum similarity, wherein the transmission data quantity is respectively as followsCalculating average value +.f of transmission data amount at corresponding time of three days with maximum similarity>As the amount of data at the time of transmission of the data from the station.
Specifically, the similarity J in S31 is calculated by the formulaWhere k () is the number of elements in parentheses, +.>For intersection of collections +.>For union of collections, ++>Managing the ith item,/-of the connected running data set for the next data transmission moment corresponding to the historical calculation time>In order to obtain the ith item of the operation data set of the device which is managed by the real-time slave station, m is the total number of items of data in the operation data set, and the operation data set of the device can be data such as current, voltage, temperature and the like of the device.
Specifically, the importance calculation policy in S4 includes the following specific contents:
s41, extracting a real-time data storage allowance of an operation data set B and a storage of equipment connected by real-time secondary station management;
S42, storing the real-time data of the memory into the memoryAnd the slave station data transmission time data quantity +.>Substituting the calculated data storage allowance after communication into a calculated formula of the data storage allowance after communication, wherein a calculated formula of the data storage allowance A after communication is as follows: />Wherein->And (3) for the total storage capacity of the storage, when the calculated data storage margin is smaller than 0, directly processing with 0.
Specifically, the step S4 further includes the following specific steps:
s43, extracting an operation data set B of equipment connected with the real-time slave station management, substituting each item of data in the operation data set B into a fault value calculation formula to calculate a fault valueThe calculation formula of the fault value is>Wherein->Managing the maximum value of the security range of the ith item of data in the running data set of the connected device for the real-time secondary station,/for>Managing the minimum value of the security range of the ith item of data in the running data set of the connected device for the real-time secondary station, +.>Is->And->Is a median value of (2);
s44, extracting the calculated fault value and importing the data storage allowance after communication into an importance calculation formula to calculate the importance of the secondary stationThe importance calculation formula is: />。
Specifically, the priority value calculation policy in S5 includes the following specific contents:
extracting the data quantity of the secondary station at the secondary station data transmission time and the secondary station importance degree to import the priority value calculation formula for carrying out the secondary station priority valueThe calculation formula of the slave station priority value is as follows: />Wherein->For the data volume duty factor, < >>Is an importance ratio coefficient->For the set standard value of data quantity, +.>,/>。
Here, it is to be noted that, here,/>The value-taking mode of (1) is to take 500 persons skilled in the art to score the priority value of the slave station, then the slave station data is put into a calculation formula of the priority value of the slave station, and put into fitting software to obtain +.>,/>Is an accurate value of (2);
specifically, the specific content of S6 is as follows: and arranging the calculated slave station priority values in a descending order, and carrying out communication connection between the master station and the slave stations according to the descending order of the slave station priority values in the communication process.
Specifically, an electronic device includes: a processor and a memory, wherein the memory stores a computer program for the processor to call;
the processor executes a method of timing communication between the master and slave bus stations as described above by invoking a computer program stored in the memory.
Specifically, a computer readable storage medium stores instructions that, when executed on a computer, cause the computer to perform a method of timing communication between a bus master and a slave as described above.
Compared with the prior art, the application has the beneficial effects that:
the method comprises the steps of extracting a connection topology diagram of a bus master station and slave stations, obtaining connection relations between the bus master station and each slave station from the connection topology diagram, determining data transmission time and time length, obtaining transmission data quantity transmitted to the master station in historical data transmission time of a plurality of slave stations, a device set of historical connection of the plurality of slave stations and data storage allowance of a storage, extracting transmission data quantity transmitted to the master station in historical data transmission time of the slave stations and the device set of historical connection of the slave stations, carrying out estimation of the data quantity of the slave stations in a transmission data quantity estimation strategy, introducing the data storage allowance of the device set of real-time connection of the slave stations and the storage into an importance calculation strategy for calculating importance of the slave stations, leading the data quantity of the data transmission time of the slave stations and the importance of the slave stations into a priority calculation strategy for calculating priority of the slave stations, arranging the priority values of the slave stations in descending order, carrying out communication between the master station and the slave stations according to the arrangement order, carrying out calculation on the priority values between the master station and the slave stations in real time, avoiding conflict between requests, simultaneously improving the reasonability of information transmission between the master station and the slave stations, and guaranteeing that information transmission is not smooth in a state of network is important.
Drawings
FIG. 1 is a schematic flow chart of a method for timing communication between a bus master station and a slave station;
FIG. 2 is a schematic diagram showing a specific flow of step S1 of a timing communication method between a master station and a slave station of a bus in the present application;
fig. 3 is a schematic diagram of a specific flow of step S4 of a timing communication method between a master station and a slave station of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments.
Example 1
Referring to fig. 1-3, an embodiment of the present application is provided: a timing communication method between a bus master station and a slave station comprises the following specific steps:
s1, extracting a connection topological diagram of a bus master station and slave stations, and acquiring connection relations between the bus master station and each slave station from the connection topological diagram;
s2, determining data transmission time and duration, and acquiring transmission data quantity transmitted to a master station in the historical data transmission time of a plurality of slave stations, and data storage allowance of a plurality of equipment sets and storages connected in a historical manner;
s3, extracting transmission data quantity transmitted to a master station in the historical data transmission time of the slave station and equipment set connected with the history of the slave station, and carrying out estimation of the data quantity of the data transmission time of the slave station in a transmission data quantity estimation strategy;
s4, importing the data storage margin of the equipment set and the storage which are connected with the secondary station in real time into an importance calculation strategy to calculate the importance of the secondary station;
s5, importing the data quantity at the data transmission time of the slave station and the importance of the slave station into a priority value calculation strategy to calculate the priority value of the slave station;
s6, arranging the priority values of the plurality of secondary stations in a descending order, and carrying out communication between the primary station and the secondary stations according to the arrangement order.
In this embodiment, the specific content of S1 includes the following steps:
s11, extracting a connection topological diagram of a bus master station and a slave station, observing each node in the connection topological diagram, identifying the master station and the slave station, wherein the master station is a control center of a bus and is responsible for sending commands and receiving data, and the slave station is controlled equipment;
s12, determining the physical connection relation between the master station and each slave station according to the connection line and the arrow direction, wherein the connection line can be a straight line, a curve or an arrow, the arrow pointing direction represents the flow direction of data, and in general, the bus master station and each slave station are directly and physically connected;
s13, acquiring the physical connection relation between the master station and each slave station.
In this embodiment, the specific steps of S2 are as follows:
s21, determining data transmission time and duration, and simultaneously acquiring transmission data quantity transmitted to a master station in a plurality of slave station historical data transmission time, wherein the data transmission time is determined in the following manner: each master station and the auxiliary stations thereof can communicate in a plurality of time periods appointed every day when communicating, wherein the data transmission time is the appointed time periods of the communication, the duration is the duration corresponding to the time period, and the transmission data quantity transmitted to the master station in the historical data transmission time of the plurality of auxiliary stations is the transmission data quantity transmitted to the master station by all the auxiliary stations in the historical time period;
s22, acquiring a device set of a slave station management connection and a data storage allowance of a storage of the slave station;
in this embodiment, the transmission data amount estimation policy of S3 includes the following specific steps:
s31, extracting the transmission data quantity transmitted to the master station from the historical data transmission time of the slave station, extracting the transmission data quantity corresponding to the next data transmission time of the daily calculation time from the transmission data quantity, and simultaneously extracting the equipment model number set of management connection of the slave station corresponding to the next data transmission time of the daily calculation timeAnd the running data set of the equipment, the running data set of the equipment and the acquired running data set of the equipment which are connected in a management mode corresponding to the next data transmission moment by the slave station in daily computing time are +.>The running data set of the equipment is imported into a similarity calculation formula, and the similarity of the running data set of the equipment, the acquired running data set of the equipment, the running data set of the equipment, and the running data set of the equipment, which are connected in a managed manner, of the real-time slave station is calculated, wherein the running data set of the equipment corresponds to the number set of the equipment which is connected in a managed manner at the next data transmission moment in a daily calculation time of the slave station;
s32, extracting the transmission data quantity of the corresponding time of three days with the maximum similarity, wherein the transmission data quantity is respectively as followsCalculating average value +.f of transmission data amount at corresponding time of three days with maximum similarity>As a slave station data transmission time data amount;
specifically, the similarity J in S31 is calculated asWhere k () is the number of elements in parentheses, +.>For intersection of collections +.>For union of collections, ++>Managing the ith item,/-of the connected running data set for the next data transmission moment corresponding to the historical calculation time>Managing the ith item of the operation data set of the connected equipment for the acquired real-time secondary station, wherein m is the total number of items of data in the operation data set, and the operation data set of the equipment can be the data of current, voltage, temperature and the like of the equipment;
in the present embodiment, the importance calculation policy in S4 includes the following specific contents:
s41, extracting a real-time data storage allowance of an operation data set B and a storage of equipment connected by real-time secondary station management;
S42, storing the real-time data of the memory into the memoryAnd the slave station data transmission time data quantity +.>Substituting the calculated data storage allowance after communication into a calculated formula of the data storage allowance after communication, wherein a calculated formula of the data storage allowance A after communication is as follows: />Wherein->When the calculated data storage margin is smaller than 0, directly processing with 0;
in this embodiment, the step S4 further includes the following specific steps:
s43, extracting an operation data set B of equipment connected with the real-time slave station management, substituting each item of data in the operation data set B into a fault value calculation formula to calculate a fault valueThe calculation formula of the fault value is>Wherein->Managing the maximum value of the security range of the ith item of data in the running data set of the connected device for the real-time secondary station,/for>Managing the minimum value of the security range of the ith item of data in the running data set of the connected device for the real-time secondary station, +.>Is->And->Is a median value of (2);
s44, extracting the calculated fault value and importing the data storage allowance after communication into an importance calculation formula to calculate the importance of the secondary stationThe importance calculation formula is: />;
In the present embodiment, the priority value calculation policy in S5 includes the following specific contents:
extracting the data quantity of the secondary station at the secondary station data transmission time and the secondary station importance degree to import the priority value calculation formula for carrying out the secondary station priority valueThe calculation formula of the slave station priority value is as follows: />Wherein->For the data volume duty factor, < >>Is an importance ratio coefficient->For the set standard value of data quantity, +.>,/>;
Here, it is to be noted that, here,/>The value-taking mode of (1) is to take 500 persons skilled in the art to score the priority value of the slave station, then the slave station data is put into a calculation formula of the priority value of the slave station, and put into fitting software to obtain +.>,/>Is an accurate value of (2);
specifically, the specific content of S6 is as follows: the calculated slave station priority values are arranged in descending order, and communication connection between the master station and the slave stations is carried out according to the order of the slave station priority values from large to small in the communication process;
the method comprises the steps of extracting a connection topological diagram of a bus master station and slave stations, acquiring a connection relation between the bus master station and each slave station from the connection topological diagram, determining data transmission time and time length, acquiring transmission data quantity transmitted to the master station in historical data transmission time of a plurality of slave stations, a device set of historical connection of the plurality of slave stations and data storage allowance of a storage, extracting transmission data quantity transmitted to the master station in historical data transmission time of the slave stations and the device set of historical connection of the slave stations, carrying out estimation of the data quantity of the slave stations in a transmission data quantity estimation strategy, introducing the data storage allowance of the device set of real-time connection of the slave stations and the storage into an importance calculation strategy for calculating importance of the slave stations, leading the data quantity of the data transmission time of the slave stations and the importance of the slave stations into a priority calculation strategy, arranging the priority values of the slave stations in descending order, carrying out communication between the master station and the slave stations according to the arrangement order, carrying out calculation on the priority values between the master station and the slave stations in real time, avoiding conflict between requests of the slave stations, and simultaneously improving the transmission information between the master station and the slave stations, and ensuring that the transmission information is not smooth in a network state is clear.
Example 2
The present embodiment provides an electronic device including: a processor and a memory, wherein the memory stores a computer program for the processor to call;
the processor performs a method of timing communication between the master and slave bus stations as described above by invoking a computer program stored in the memory.
The electronic device may vary greatly in configuration or performance and can include one or more processors (Central Processing Units, CPU) and one or more memories, wherein the memories store at least one computer program that is loaded and executed by the processors to implement a method for timing communications between a bus master and a slave provided by the above method embodiments. The electronic device can also include other components for implementing the functions of the device, for example, the electronic device can also have wired or wireless network interfaces, input-output interfaces, and the like, for inputting and outputting data. The present embodiment is not described herein.
Example 3
The present embodiment proposes a computer-readable storage medium having stored thereon an erasable computer program;
the computer program, when run on a computer device, causes the computer device to perform a method of timing communications between a bus master and a slave as described above.
For example, the computer readable storage medium can be Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), compact disk Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM), magnetic tape, floppy disk, optical data storage device, etc.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It should be understood that determining B from a does not mean determining B from a alone, but can also determine B from a and/or other information.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by way of wired or/and wireless networks from one website site, computer, server, or data center to another. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc. that contain one or more collections of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the partitioning of units is merely one, and there may be additional partitioning in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
In the description of the present specification, the descriptions of the terms "one embodiment," "example," "specific example," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The preferred embodiments of the application disclosed above are intended only to assist in the explanation of the application. The preferred embodiments are not intended to be exhaustive or to limit the application to the precise form disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and the full scope and equivalents thereof.
Claims (11)
1. A method of timing communication between a master station and a slave station of a bus, comprising the steps of:
s1, extracting a connection topological diagram of a bus master station and slave stations, and acquiring connection relations between the bus master station and each slave station from the connection topological diagram;
s2, determining data transmission time and duration, and acquiring transmission data quantity transmitted to a master station in the historical data transmission time of a plurality of slave stations, and data storage allowance of a plurality of equipment sets and storages connected in a historical manner;
s3, extracting transmission data quantity transmitted to a master station in the historical data transmission time of the slave station and equipment set connected with the history of the slave station, and carrying out estimation of the data quantity of the data transmission time of the slave station in a transmission data quantity estimation strategy;
s4, importing the data storage margin of the equipment set and the storage which are connected with the secondary station in real time into an importance calculation strategy to calculate the importance of the secondary station;
s5, importing the data quantity at the data transmission time of the slave station and the importance of the slave station into a priority value calculation strategy to calculate the priority value of the slave station;
s6, arranging the priority values of the plurality of secondary stations in a descending order, and carrying out communication between the primary station and the secondary stations according to the arrangement order.
2. A method of timing communication between a bus master and a slave as set forth in claim 1, wherein the specific contents of S1 include the steps of:
s11, extracting a connection topological diagram of a bus master station and a bus slave station, observing each node in the connection topological diagram, and identifying the master station and the slave station;
s12, determining the physical connection relation between the master station and each slave station according to the connection line and the arrow direction;
s13, acquiring the physical connection relation between the master station and each slave station.
3. A method for timed communication between a master and a slave of a bus according to claim 2, characterized in that said step S2 consists in:
s21, determining data transmission time and duration, and simultaneously acquiring transmission data quantity transmitted to a master station in a plurality of slave station historical data transmission time;
s22, acquiring a device set of the slave station management connection and a data storage allowance of a storage of the slave station.
4. A method for timing communication between a bus master and a slave as set forth in claim 3, wherein said S3 transmission data amount estimation strategy comprises the steps of:
s31, extracting the transmission data quantity transmitted to the master station from the historical data transmission time of the slave station, extracting the transmission data quantity corresponding to the next data transmission time of the daily calculation time from the transmission data quantity, and simultaneously extracting the equipment model number set of management connection of the slave station corresponding to the next data transmission time of the daily calculation timeAnd the running data set of the equipment, the running data set of the equipment and the acquired running data set of the equipment which are connected in a management mode corresponding to the next data transmission moment by the slave station in daily computing time are +.>The running data set of the equipment is imported into a similarity calculation formula, and the similarity of the running data set of the equipment, the acquired running data set of the equipment, the running data set of the equipment, and the running data set of the equipment, which are connected in a managed manner, of the real-time slave station is calculated, wherein the running data set of the equipment corresponds to the number set of the equipment which is connected in a managed manner at the next data transmission moment in a daily calculation time of the slave station;
s32, extracting the transmission data quantity of the corresponding time of three days with the maximum similarity, wherein the transmission data quantity is respectively as followsCalculating average value +.f of transmission data amount at corresponding time of three days with maximum similarity>As the amount of data at the time of transmission of the data from the station.
5. The method for timing communication between a master station and a slave station according to claim 4, wherein the similarity J in S31 is calculated by the formula ofWhere k () is the number of elements in parentheses, +.>For intersection of collections +.>For union of collections, ++>Managing the ith item,/-of the connected running data set for the next data transmission moment corresponding to the historical calculation time>And managing the ith item of the operation data set of the connected equipment for the acquired real-time secondary station, wherein m is the total number of data items in the operation data set.
6. The method for timing communication between a bus master and a slave according to claim 5, wherein the importance calculation strategy in S4 comprises the following specific contents:
s41, extracting a real-time data storage allowance of an operation data set B and a storage of equipment connected by real-time secondary station management;
S42, storing the real-time data of the memory into the memoryAnd the slave station data transmission time data quantity +.>Substituting the calculated data storage allowance after communication into a calculated formula of the data storage allowance after communication, wherein a calculated formula of the data storage allowance A after communication is as follows: />Wherein->Is the total storage capacity of the storage.
7. The method for timing communication between a master station and a slave station according to claim 6, wherein said step S4 further comprises the steps of:
s43, extracting an operation data set B of equipment connected with the real-time slave station management, substituting each item of data in the operation data set B into a fault value calculation formula to calculate a fault valueThe calculation formula of the fault value is>Wherein->Managing the maximum value of the security range of the ith item of data in the running data set of the connected device for the real-time secondary station,/for>Managing the minimum value of the security range of the ith item of data in the running data set of the connected device for the real-time secondary station, +.>Is->And->Is a median value of (2);
s44, extracting the calculated fault value and importing the data storage allowance after communication into an importance calculation formula to calculate the importance of the secondary stationThe importance calculation formula is: />。
8. The method for timing communication between a bus master and a slave according to claim 7, wherein the priority value calculation policy in S5 comprises the following specific contents:
extracting the data quantity of the secondary station at the secondary station data transmission time and the secondary station importance degree to import the priority value calculation formula for carrying out the secondary station priority valueThe calculation formula of the slave station priority value is as follows: />Wherein->For the data volume duty factor, < >>Is an importance ratio coefficient->For the set standard value of data quantity, +.>,/>。
9. The method for timing communication between a bus master and a slave according to claim 8, wherein the specific contents of S6 are as follows: and arranging the calculated slave station priority values in a descending order, and carrying out communication connection between the master station and the slave stations according to the descending order of the slave station priority values in the communication process.
10. An electronic device, comprising: a processor and a memory, wherein the memory stores a computer program for the processor to call;
the processor performs a method of timing communication between a bus master and a slave as claimed in any one of claims 1 to 9 by invoking a computer program stored in the memory.
11. A computer-readable storage medium, characterized by: instructions stored thereon which, when executed on a computer, cause the computer to perform a method of timed communication between a bus master and a slave as claimed in any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311410774.7A CN117155736B (en) | 2023-10-28 | 2023-10-28 | Timing communication method between bus master station and slave station |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311410774.7A CN117155736B (en) | 2023-10-28 | 2023-10-28 | Timing communication method between bus master station and slave station |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117155736A true CN117155736A (en) | 2023-12-01 |
CN117155736B CN117155736B (en) | 2024-01-02 |
Family
ID=88884671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311410774.7A Active CN117155736B (en) | 2023-10-28 | 2023-10-28 | Timing communication method between bus master station and slave station |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117155736B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002101989A1 (en) * | 2001-06-11 | 2002-12-19 | Fujitsu Limited | Data distributing system, data distributing method, data distributing program |
CN101873175A (en) * | 2009-04-27 | 2010-10-27 | 株式会社日立制作所 | Passive optical network system and its operation method |
JP2012010092A (en) * | 2010-06-24 | 2012-01-12 | Nec Corp | Node device, network system, failure notification method, and computer program |
JP2012095043A (en) * | 2010-10-26 | 2012-05-17 | Of Networks:Kk | Network system, slave station communication device, master station communication device, and band control method |
CN102710480A (en) * | 2008-12-25 | 2012-10-03 | 三菱电机株式会社 | Communication management device, communication device and communication method |
CN102882724A (en) * | 2012-09-29 | 2013-01-16 | 西安热工研究院有限公司 | Field bus equipment monitoring and management method |
CN105450489A (en) * | 2015-12-02 | 2016-03-30 | 大连理工计算机控制工程有限公司 | HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method |
CN107346980A (en) * | 2017-06-20 | 2017-11-14 | 重庆渝丰鑫新线缆科技有限公司 | A kind of group-net communication method of more slave station cable anti-theft monitoring systems |
CN109788488A (en) * | 2019-02-18 | 2019-05-21 | 中国联合网络通信集团有限公司 | A kind of planning method and device of website |
CN111787058A (en) * | 2020-05-26 | 2020-10-16 | 北京航空航天大学 | Lightweight information subscription and push method in cross-domain virtual data space |
CN113766477A (en) * | 2021-09-23 | 2021-12-07 | Oppo广东移动通信有限公司 | Device connection method, device, electronic device and computer readable medium |
CN114389357A (en) * | 2021-12-13 | 2022-04-22 | 江苏智臻能源科技有限公司 | Topological collaborative computing method for low-voltage area edge equipment and main station |
CN114884029A (en) * | 2022-04-14 | 2022-08-09 | 国网浙江省电力有限公司武义县供电公司 | Distribution network automation improvement method based on 5G communication |
CN115907147A (en) * | 2022-11-21 | 2023-04-04 | 浙江万里扬能源科技有限公司 | Energy storage optimization scheduling operation control method based on cloud platform |
-
2023
- 2023-10-28 CN CN202311410774.7A patent/CN117155736B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002101989A1 (en) * | 2001-06-11 | 2002-12-19 | Fujitsu Limited | Data distributing system, data distributing method, data distributing program |
CN102710480A (en) * | 2008-12-25 | 2012-10-03 | 三菱电机株式会社 | Communication management device, communication device and communication method |
CN101873175A (en) * | 2009-04-27 | 2010-10-27 | 株式会社日立制作所 | Passive optical network system and its operation method |
JP2012010092A (en) * | 2010-06-24 | 2012-01-12 | Nec Corp | Node device, network system, failure notification method, and computer program |
JP2012095043A (en) * | 2010-10-26 | 2012-05-17 | Of Networks:Kk | Network system, slave station communication device, master station communication device, and band control method |
CN102882724A (en) * | 2012-09-29 | 2013-01-16 | 西安热工研究院有限公司 | Field bus equipment monitoring and management method |
CN105450489A (en) * | 2015-12-02 | 2016-03-30 | 大连理工计算机控制工程有限公司 | HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method |
CN107346980A (en) * | 2017-06-20 | 2017-11-14 | 重庆渝丰鑫新线缆科技有限公司 | A kind of group-net communication method of more slave station cable anti-theft monitoring systems |
CN109788488A (en) * | 2019-02-18 | 2019-05-21 | 中国联合网络通信集团有限公司 | A kind of planning method and device of website |
CN111787058A (en) * | 2020-05-26 | 2020-10-16 | 北京航空航天大学 | Lightweight information subscription and push method in cross-domain virtual data space |
CN113766477A (en) * | 2021-09-23 | 2021-12-07 | Oppo广东移动通信有限公司 | Device connection method, device, electronic device and computer readable medium |
CN114389357A (en) * | 2021-12-13 | 2022-04-22 | 江苏智臻能源科技有限公司 | Topological collaborative computing method for low-voltage area edge equipment and main station |
CN114884029A (en) * | 2022-04-14 | 2022-08-09 | 国网浙江省电力有限公司武义县供电公司 | Distribution network automation improvement method based on 5G communication |
CN115907147A (en) * | 2022-11-21 | 2023-04-04 | 浙江万里扬能源科技有限公司 | Energy storage optimization scheduling operation control method based on cloud platform |
Non-Patent Citations (2)
Title |
---|
GUANGHUI WEN ET AL: ""Master–Slave Synchronization of Heterogeneous Systems Under Scheduling Communication"", 《IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS: SYSTEMS》 * |
刘飞飞;蔺婧娜;刘潇潇;: "基于动态贝叶斯网络的复杂网络攻击方法研究", 计算机工程与应用, no. 11 * |
Also Published As
Publication number | Publication date |
---|---|
CN117155736B (en) | 2024-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108924221B (en) | Method and device for allocating resources | |
CN107888456B (en) | Method and device for monitoring port data volume | |
EP2563062A1 (en) | Long connection management apparatus and link resource management method for long connection communication | |
CN101680775A (en) | Method and system of reading of utility meter data over a network | |
CN103701694A (en) | Gateway device and data processing method | |
CN109753401A (en) | Monitoring method, collection terminal, control end, monitoring system and device | |
CN113282462A (en) | Information processing method applied to block chain and big data platform | |
CN113645656A (en) | Network operation environment monitoring system based on internet | |
CN117155736B (en) | Timing communication method between bus master station and slave station | |
CN109787981A (en) | Protocol conversion system, method, apparatus, equipment and storage medium | |
CN108833218B (en) | Network system of multi-connected air conditioning unit and establishing method thereof | |
CN109213742A (en) | Log collection method and device | |
CN103000047A (en) | Monitoring system for parking places in parking lot | |
CN104601424A (en) | Apparatus and method for active and passive data gathering using stochastic model in control network | |
CN110996289A (en) | Intelligent gateway, method and system for machine state monitoring diagnostic instrument | |
CN205827222U (en) | Hydroelectric power plant's field device network | |
CN110298178A (en) | Credible policy learning method and device, credible and secure management platform | |
CN101945181B (en) | Data acquisition method, device and system | |
CN111506921B (en) | Data processing method, system, device, terminal and storage medium | |
CN115348199A (en) | Vehicle-mounted network debugging system and method based on MVB bus | |
CN116074331A (en) | Block data synchronization method and related product | |
CN114580824B (en) | Method for collecting information from a group of electric meters | |
CN114398299B (en) | Data processing method of four-core cooperative measurement and control processor and processor | |
CN113722256B (en) | Functional control system and method for communication manager based on plug-in | |
CN116980284B (en) | Optical cable fiber distribution box operation and maintenance information transmission method and system based on Internet of things |
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 |