CN115001618A - Synchronous serial time-sharing multiplexing bus method applied to high-voltage cascade equipment - Google Patents
Synchronous serial time-sharing multiplexing bus method applied to high-voltage cascade equipment Download PDFInfo
- Publication number
- CN115001618A CN115001618A CN202210579172.3A CN202210579172A CN115001618A CN 115001618 A CN115001618 A CN 115001618A CN 202210579172 A CN202210579172 A CN 202210579172A CN 115001618 A CN115001618 A CN 115001618A
- Authority
- CN
- China
- Prior art keywords
- module
- slave
- bus
- equipment
- data
- 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
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000001360 synchronised effect Effects 0.000 title claims abstract description 24
- 238000004891 communication Methods 0.000 claims abstract description 17
- 230000005540 biological transmission Effects 0.000 claims description 25
- 230000000903 blocking effect Effects 0.000 claims description 3
- 238000002360 preparation method Methods 0.000 claims description 2
- 238000012423 maintenance Methods 0.000 abstract description 2
- 238000006243 chemical reaction Methods 0.000 abstract 1
- 238000004146 energy storage Methods 0.000 abstract 1
- 239000013307 optical fiber Substances 0.000 description 17
- 238000013461 design Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000012795 verification Methods 0.000 description 3
- 239000000835 fiber Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
- H04J3/1694—Allocation of channels in TDM/TDMA networks, e.g. distributed multiplexers
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
A synchronous serial time-sharing multiplexing bus method applied to high-voltage cascade equipment can be applied to chain type compensation equipment such as chain type energy storage, dynamic reactive compensation and high-voltage frequency conversion. The communication method is concretely realized by the following steps: the master module and the plurality of slave modules are arranged, communication is established through a serial bus, and each slave module has an independent slave module station number so as to complete position identification. The method can complete synchronous issuing and synchronous response of the module instructions, reduce communication interfaces of the controller, reduce hardware and software design difficulty of the chain industrial controller, simplify equipment structure and reduce equipment maintenance difficulty.
Description
Technical Field
The invention relates to the technical field of industrial automation control, in particular to a synchronous serial time-sharing multiplexing bus applied to high-voltage cascade equipment.
Background
In recent years, new energy construction is greatly supported by the country, and high-voltage power electronic compensation equipment is rapidly developed along with rapid rise of each new energy plant station. Since power electronic semiconductor devices are limited by voltage class, many high voltage power electronic devices still need to adopt a chain-cascaded topology. The traditional chain type high-voltage compensation equipment mainly comprises a main controller, a power valve group, a primary side transformer, a radiator and parallel connection optical fibers. The main controller is connected with each valve group module through a plurality of pairs of parallel optical fibers.
The connection mode between the controller and the module is divided into a parallel mode and a serial mode:
the parallel bus mode and the parallel connection mode have the main advantages that the parallel connection mode has excellent triggering consistency and protection timeliness, and reliable stability is achieved through long-time verification and development. However, the parallel bus has disadvantages of complex structure, waste of interface resources, complex controller design, and the like.
The serial bus mode has the main advantages of simple structure, low cost, high communication speed and the like. However, in the conventional serial connection mode, it is difficult to achieve a certain time delay when the trigger consistency data of the modules reaches each module, and along with the continuous increase of the serial modules, the difference is increased in a mode of geometric multiple. The asynchronous triggering among the modules can increase harmonic waves and abnormal sound of a main transformer if the asynchronous triggering is not synchronous, and can damage equipment safety and cause accident danger if the asynchronous triggering is not synchronous.
At present, according to different voltage grades and different wiring modes, the cascade power electronic equipment has 8-72 power modules per phase, A, B, C three-phase power modules can reach 216, and the controller end also needs 216 pairs of optical fiber transceivers according to the calculation of each module 1 to the optical fiber transceivers. Such a number not only increases the cost, but also increases the design difficulty of the controller, increases the wiring complexity, and increases the maintenance difficulty.
Disclosure of Invention
In order to solve the problems, the invention provides the synchronous serial time-sharing multiplexing bus applied to the high-voltage cascading equipment, which can make up for the defects of the prior art, has the advantages of simple structure, strong flexibility, low cost and the like, reduces the number of parallel interfaces, and can solve the problems of synchronous triggering, real-time protection and the like of the serial bus.
The technical scheme of the invention is as follows:
a synchronous serial time-sharing multiplexing bus method applied to high-voltage cascade equipment comprises the following steps:
the method comprises the following steps: initializing a link, wherein the link at least comprises 1 host module and a plurality of slave modules, the host module sends data to the plurality of slave modules and establishes communication, the data comprises handshake signals and module identification codes, the slave modules latch the received module identification codes respectively to establish slave module station numbers, and the slave modules can respond to bus requests sent by the host module according to the slave module station numbers and enter the next step;
step two: the link initialization is completed, the slave module obtains the station number of the slave module, each slave module replies the initialization completion of the host module through bus response, each slave module starts to release the bus, all the slave modules are hung on a serial bus, the host module receives a completion signal and synchronously detects whether the bus is in an idle state, if the bus is not in the idle state, the bus is continuously detected until the bus is detected to be in the idle state, if the bus is detected to be in the idle state, the preparation completion of all the slave modules is indicated, and the next step is entered;
step three: the method comprises the steps that a master module detects that a bus is in an idle state, the master module starts a counter with a period of T and synchronously sends a master data frame, the master data frame comprises trigger pulses of slave modules and slave module station numbers, each slave module synchronously analyzes trigger pulse instructions and slave module station number information sent by a master, the slave modules enter a response state according to the slave module station numbers to become response equipment, the response equipment synchronously triggers according to the trigger pulse instructions, initiates bus occupation application and enters the next step;
step four: the plurality of slave modules detect self fault information, if the plurality of slave modules detect no self fault information, the plurality of slave modules simultaneously respond to a trigger pulse, the next step is carried out, if the plurality of slave modules detect faults, a master data frame sent by the master module is not judged any more, a 200us low level preemption bus is immediately and continuously sent, the continuous low level is immediately transmitted back to the master control module, pulse blocking is finished, and the step returns to the step two until the faults of the slave modules are eliminated;
step five: after detecting no fault information per se in the fourth step, the response equipment bus occupation application is passed, a time counter with the period of T is started, a transmission state is entered, one-to-one data transmission is carried out, the analog quantity and the state information of the current module are uploaded in real time until the data transmission is finished, and the next step is carried out;
step six: if the host module receives the data information of the response equipment, the data are processed in real time, meanwhile, trigger instructions are updated, and the second step is repeated.
Through the steps, the closed-loop control of the serial time-division multiplexing bus is completed, and summarized as that in each continuous 2T period, in the first period T, the real-time control of all the slave modules and the data updating of one slave module can be completed at one time. Meanwhile, each slave module can perform priority preemption of bus interruption according to the respective real-time fault state, the fault mode is a first-level response priority, the host response is a second-level priority, and the slave response is a third-level priority. Under the fault-free state, the module responds to the bus request in sequence in the second period of the 2T period of the host according to the station number of the slave module issued by the host, and completes the data string number and handshake verification. The real-time control on all the slave modules and the state acquisition of the n slave modules are finished within the time of 2nT in a reciprocating mode. The host judges whether to respond to the module data or adopt system protection according to whether system faults exist, and finally the data participates in system modulation to complete one-time closed-loop control.
Specifically, in the first step, the data at least includes 4 bytes, and the information of the 4 bytes includes a module identification code, a handshake signal, and a check signal.
Specifically, in the third step, the host data frame sent by the host module at least includes a frame header, a station number of the slave module, the number of nodes, a node 1 trigger instruction, a node 2 trigger instruction. The number of the nodes is determined by the direct current working voltage, and a user needs to confirm the number according to actual conditions.
Specifically, in the fifth step, the data sent by the slave module includes a slave data frame, and the slave data frame at least includes a frame header, a slave module station number, a data length, a handshake signal, analog quantity information, state information, a check segment, and a frame tail. So that at least 8 bytes are required for a slave data frame.
Specifically, in the third step and the fifth step, the data length of the master data frame is the same as that of the slave data frame, so that the periods T of the data transmission cadence can be guaranteed to be the same, and further, the synchronization of the device is guaranteed. In addition, since the number of nodes is different, it is necessary to set slave data frames having the same data length with reference to the master data frame.
Specifically, in the sixth step, when the continuous 200us internal communication can be recovered, the fault is a light fault, and when the continuous 200us internal communication cannot be recovered, the fault is a heavy fault. A fault exceeding 200 microseconds is likely to cause damage to components, and therefore 200 microseconds is required as a critical point.
Specifically, the slave modules are connected in sequence and connected to the same serial bus, and the host module calls the slave module according to whether the bus is in an idle state, so that all the slave modules can be controlled to be triggered at the same time in each period T, one-to-one connection between the response device and the host module is completed, and communication is completed.
Specifically, the slave module can occupy serial bus resources according to the calling of the host module, and can also actively occupy bus resources according to an interrupt mechanism. And under the fault state, the slave module can directly occupy bus resources to complete the whole machine locking function.
The host module equipment has only one, and the slave module equipment at least comprises a dynamic allocation module which can be dynamically configured according to the requirements of users.
The host module sends data down and calls the slave module according to the bus idle state, and the slave module realizes data transmission between the host module and the slave module according to the host module call and the bus idle state.
Specifically, the device applying for occupying the bus may be a master module and may also be a slave module, when there is no fault interrupt to preempt the bus, the master module is used as a request device, the slave module is used as a response device, and when there is a fault interrupt, the slave module with the current fault directly occupies the bus. That is, the master module applies for bus occupation in the normal state, and the slave module preempts the bus only in the fault state.
Specifically, the bus state is divided into an idle state, a request state, a response state and a data transmission state;
in the idle state, all modules are connected in series, data are not sent and are not analyzed, and bus resources are in the idle state;
the request state is that the host module enters the request state as request equipment, can request the slave module and obtain a response signal, and the slave module currently obtaining the response signal is used as response equipment;
the response state is that the response equipment prepares to send data, the data is in a state to be sent, and meanwhile, the request equipment is in a receiving state and prepares to analyze the response data;
and the data transmission state is that the response equipment occupies the bus, and performs one-to-one pairing with the request equipment to send the prepared data.
The invention has the beneficial effects that:
1. the invention replaces the traditional parallel connection mode with the serial bus mode, can greatly reduce the number of the optical fiber connectors, can reduce the number of the optical fiber connectors by one time by controlling the number of the optical fiber connectors, reduces the size and the design difficulty of the controller and effectively reduces the design cost;
2. according to the invention, the modules are connected in sequence through the serial bus, so that the connection length of the optical fibers can be effectively reduced, the total length of the used optical fibers can be reduced to one tenth of the original length, and the low material cost rate can further reduce the equipment cost;
3. the invention reduces the number of the optical fibers and the optical fiber connectors, and simultaneously reduces the fault points, especially under the condition of medium and high voltage, if the number of the optical fibers is large and the optical fibers are fixed at one position, the creepage phenomenon is easily caused, thereby burning the optical fibers. In a serial bus mode, the pressure difference between modules is fixed, so that the possibility of optical fiber damage caused by high-voltage creepage is reduced;
4. the method for writing the synchronous serial time-sharing multiplexing bus has a reliable error correction and protection mechanism, can not only perform high-speed data transmission, but also has extremely stable safety, and meets the requirement of the stability of a power system;
5. the synchronous serial time-sharing multiplexing bus method overcomes the problem of asynchronous triggering caused by the traditional serial bus, the time for the triggering instruction to reach each module is consistent, the control time is not prolonged due to the increase of the number of the strings, and the real triggering synchronization and real-time control are realized.
Drawings
The aspects and advantages of the present application will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention.
In the drawings:
FIG. 1 is a schematic diagram of a serial topology of the present invention;
FIG. 2 is a diagram illustrating a host data frame format according to the present invention;
FIG. 3 is a diagram illustrating a slave data frame format according to the present invention;
FIG. 4 is a schematic flow chart of the present invention;
FIG. 5 is a bus time division multiplexing representation of the present invention;
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. It should be noted that these embodiments are provided so that this disclosure can be more completely understood and fully conveyed to those skilled in the art, and the present disclosure may be implemented in various forms without being limited to the embodiments set forth herein.
Examples
Fig. 1 is a schematic diagram of a serial topology structure according to the present invention, and the present invention is a synchronous serial time-division multiplexing bus method applied to a high-voltage cascade device, in which a serial control structure is obtained by a parallel transmission structure, and a traditional parallel connection mode is replaced by a serial bus mode, so that the number of fiber connectors can be greatly reduced, the number of fiber connectors can be reduced by one time, the size and design difficulty of a controller can be reduced, and the design cost can be effectively reduced.
The modules of the serial structure are connected by a hand-in-hand connection mode, the high-voltage complete compensation device is generally divided into three phases ABC, each phase is independently controlled, an AT (automatic transmission) head of the control device is connected to an Ra1 receiving head of a module A1, a Ta1 transmitting head of a module 1 is connected to an Ra2 receiving head of a module 2, a Ta2 transmitting head of the module 2 is connected to an Ra3 receiving head of a module 3, and by analogy, a receiving head of a module n is connected to a Tan-1 transmitting head of a module n-1, and a transmitting head of the module n is connected back to an AR (auto ranging) receiving head of the controller, so that an A-phase link topology is completed, and similarly, BC two phases are also completed through the same link topology.
From the topological diagram, it can be clearly seen that, compared with a one-to-one topological structure, the serial structure can greatly reduce the number of optical fiber transceivers, and effectively reduce the number of optical fibers.
As shown in fig. 2, the host data frame includes, from high byte to low byte, a frame header, a slave module station number, a node 1 trigger instruction, a node 2 trigger instruction. When no fault exists, each submodule responds to the trigger instruction in sequence, and when a fault exists, the submodule immediately occupies the bus and sends out 200us of low level for timely protection. The number of nodes is determined by the dc operating voltage, for example, 12 phase voltages are required in the conventional 9000 v dc operating voltage, a single phase voltage requires a left bridge, a right bridge and an enable and occupies 1 bit respectively, and one byte has only 8 bits, so that a single byte can only control two slave modules, and thus 6 bytes are required in the 9000 v dc operating voltage to trigger an instruction, and 11 bytes are required in the 9000 v dc operating voltage. By analogy, according to the numerical value of the specific direct-current working voltage, the number of bytes of the host data frame can be obtained, and the number of bytes is determined.
As shown in fig. 3, the slave data frame includes, in order from high byte to low byte, a frame header, a slave module station number, a data length, a handshake signal, analog quantity information, state information, a check segment, and a frame tail. When no fault exists, each submodule sequentially occupies the bus and sends data frames, and when a fault exists, the submodule immediately occupies the bus and sends out 200us low level for timely protection. And the number of bytes of the slave data frame is the same as that of the master data frame, so that with the data reference of 9000 volts of direct current working voltage, the slave data frame needs 11 bytes, wherein only 8 bytes are needed to complete the work, and redundant bytes are idle bits.
As shown in fig. 5, the master module sends trigger commands of all the slave modules at T1 at the first time T, the module 1 occupies the bus and sends the analog quantity and state information of the current module at the second time T, the three times T send trigger commands of all the slave modules at T2, the module 2 occupies the bus and sends the analog quantity and state information of the current module at the fourth time T, until the 2n-1 time T sends trigger commands of all the slave modules at tn, and the 2n time T occupies the bus and sends the analog quantity and state information of the current slave modules at the 2n time T, so as to complete a data closed loop.
As shown in fig. 4, a synchronous serial time-division multiplexing bus method applied to a high-voltage cascade device includes the following steps:
the method comprises the following steps:
(1) initializing a link, wherein the link at least comprises 1 host module and a plurality of slave modules; the slave modules are power modules of conventional high-voltage cascading equipment, and because the conventional high-voltage cascading equipment comprises a plurality of power modules, a plurality of corresponding slave modules need to be arranged;
(2) the master module sends data to the plurality of slave modules and establishes communication, the data at least comprises 4 bytes, the 4-byte information comprises a module identification code, a handshake signal and a check signal, the handshake signal is used for establishing connection, the module identification code needs to be sent to different slave modules, the corresponding slave modules latch the respectively received module identification codes to establish slave module station numbers, and the slave modules can respond to bus requests sent by the master module according to the slave module station numbers and enter the next step;
step two:
(1) the link initialization is completed (communication establishment initialization is completed), the slave modules obtain the station numbers of the slave modules, each slave module replies the initialization completion of the host module through bus response, each slave module starts to release the bus, all the slave modules are hung on a serial bus, the host module receives a completion signal and synchronously detects whether the bus is in an idle state, if the bus is not in the idle state, the bus is continuously detected until the bus is detected to be in the idle state, if the bus is detected to be in the idle state, all the slave modules are ready to complete, the next step is entered, and if the link initialization process is not completed, the first step needs to be repeated until the link initialization can be completed;
step three:
(1) when the host module detects that the bus is in an idle state, the host module starts a counter with a period of T;
(2) synchronously sending a host data frame, wherein the host data frame comprises key instructions such as trigger pulse of a slave module, the station number of the slave module and the like, each slave module synchronously analyzes the trigger pulse instruction and the station number information of the slave module sent by the host, the slave module entering a response state according to the station number of the slave module becomes response equipment, and the response equipment synchronously triggers according to the trigger pulse instruction, initiates a bus occupation application and enters the next step;
further, the host data frame sent by the host module at least includes a frame header, a station number of the slave module, the number of nodes, a node 1 trigger instruction, a node 2 trigger instruction. The number of the nodes is determined by the direct-current working voltage, and a user needs to confirm the nodes according to actual conditions.
Step four: detecting self fault information by a plurality of slave modules
(1) If the slave modules detect no fault information, simultaneously responding to a trigger pulse and carrying out the next step;
(2) if the plurality of slave modules are detected to have faults, the master data frame sent by the master module is not judged any more, the low level of 200us is sent immediately and continuously to seize the bus, the low level is transmitted back to the master control module immediately, pulse blocking is completed, and the whole machine is locked until the faults of the slave modules are eliminated and the step II is returned;
step five:
(1) after detecting no fault information per se in the fourth step, the response equipment bus applies for passing and starts a time counter with the period of T;
(2) entering a transmission state, sending a slave data frame, performing one-to-one data transmission, uploading the analog quantity and state information of the current module in real time until the data transmission is finished, and performing the next step;
furthermore, the slave data frame sequentially comprises a frame header, a slave module station number, a data length, a handshake signal, analog quantity information, state information, a check segment and a frame tail from a high byte to a low byte, the number of bytes of the slave data frame is the same as that of bytes of the master data frame, and redundant bytes exceeding 8 bytes do not need to arrange a new function. Accordingly, the slave data frame needs at least 8 bytes, and therefore, the number of bytes of the master data frame cannot be less than 8, otherwise, the slave data frame cannot be operated.
The reason why the data length of the master data frame is required to be the same as that of the slave data frame is that the period T of the data transmission pace can be ensured to be the same, otherwise, the operation cannot be performed.
Step six: host data processing
(1) If the host module receives the response equipment data and has transmission or check errors, fault level judgment is carried out, if the response equipment data have transmission or check errors, the host data frame is abandoned, the last host data frame is used for continuing operation, if the response equipment data have heavy faults, all module pulses are blocked, the whole machine is locked, and the step II is returned after the faults are eliminated;
(2) and if the data information of the response equipment received by the host module is faultless, processing the data in real time, updating the trigger instruction at the same time, and repeating the step two.
Further, the basis for judging the light fault and the heavy fault is as follows: when the continuous 200us internal communication can be recovered, the fault is light, and when the continuous 200us internal communication can not be recovered, the fault is heavy. A failure exceeding 200us (microseconds) easily causes damage to the components, and therefore 200us is required as a critical point. That is to say, the normal use of components and parts needs to be ensured, and the problem of damage is avoided.
Through the steps, the closed-loop control of the serial time-division multiplexing bus is completed, and summarized as that in each continuous 2T period, in the first period T, the real-time control of all modules and the data updating of one module can be completed at a time. Meanwhile, each module can perform priority preemption of bus interruption according to respective real-time fault states, the fault mode is first-level response priority, the host response is second-level priority, and the slave response is third-level priority. And in a fault-free state, the module sequentially responds to the bus request in the second period of the 2T period of the host according to the station number of the slave module issued by the host, and completes the data string number and handshake verification. The real-time control on all the modules and the state acquisition of the n modules are finished within the time of 2nT in a reciprocating mode. The host judges whether to respond to the module data or adopt system protection according to whether a system fault exists, and finally the data participates in system modulation to complete one-time closed-loop control.
Furthermore, the slave modules are connected in sequence and connected to the same serial bus, the host module calls the slave module according to whether the bus is in an idle state, the slave modules complete data analysis, and judge whether the slave module station number sent by the host is matched with the station number of the slave module of the host, if so, the current node module can occupy bus resources, and if not, the current node module cannot occupy bus resources, so that the slave modules can be controlled to trigger simultaneously in each period T, and the one-to-one connection of the response device and the host module is completed, thereby completing communication.
Furthermore, the slave module can occupy serial bus resources according to the calling of the host module and also can actively occupy bus resources according to an interrupt mechanism. And under the fault state, the slave module can directly occupy bus resources to complete the whole machine locking function. That is, the first-level response priority is that, since a long-time fault may cause damage to components, it is necessary to preferentially process fault information in the event of a fault, and therefore, the slave module seizes bus resources in this case and actively seizes without matching a host data frame of the host module, which aims to perform shutdown in the first time to protect the device from damage. And in the locking complete machine mode, even if all faults are judged to disappear, the complete machine is started and operated in a delayed mode, the time is generally about 20 seconds, and the purpose is to prevent the complete machine from being started and stopped continuously.
Furthermore, the host module equipment has only one host module, and the slave module equipment at least comprises a dynamic allocation module which can be dynamically configured according to the requirements of users.
The host module sends data and calls the slave module according to the bus idle state, and the slave module realizes data transmission between the host module and the slave module according to the host module and the bus idle state.
As mentioned above, the device applying for bus occupation may be a master module, or may also be a slave module,
in a normal state, when the bus is preempted without fault interruption, the master module serves as a request device, and the slave module serves as a response device, and one-to-one connection can be performed.
In the process, the slave module can occupy the bus in the process of one-to-one connection with the master module as the response device, and the slave module has the lowest priority and can directly occupy the bus in the corresponding state of the fault mode and the master module.
When fault interruption exists, the slave module with the current fault directly occupies the bus, no response equipment exists at the moment, the slave module does not need to set a request state as request equipment, the host module is used as response equipment, and the request state is directly transmitted to the host module to execute a shutdown command so as to protect equipment from being damaged.
In summary, the bus states are divided into an idle state, a request state, a response state and a data transmission state
In the idle state, all modules (a host module and a plurality of slave modules) are connected in series, data are not sent and are not analyzed, and bus resources are in the idle state;
the request state is that the host module enters the request state as request equipment, can request the slave module and obtain a response signal, and at the moment, the slave module which analyzes the station number pairing of the slave module and obtains the response signal at present is used as response equipment;
the response state is that after the request state occurs, the response device prepares to send data, the data is in a state to be sent, and meanwhile, the request device is in a receiving state and prepares to analyze the response data;
and the data transmission state is that the response equipment occupies a bus, and is paired with the request equipment in a one-to-one manner, and the prepared data is sent.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or additions or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are also included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. A synchronous serial time-sharing multiplexing bus method applied to high-voltage cascade equipment is characterized by comprising the following steps:
the method comprises the following steps: initializing a link, wherein the link at least comprises 1 host module and a plurality of slave modules, the host module sends data to the plurality of slave modules and establishes communication, the data comprises handshake signals and module identification codes, the slave modules latch the received module identification codes respectively to establish slave module station numbers, and the slave modules can respond to bus requests sent by the host module according to the slave module station numbers and enter the next step;
step two: the link initialization is completed, the slave module obtains the station number of the slave module, each slave module replies the initialization completion of the host module through bus response, each slave module starts to release the bus, all the slave modules are hung on a serial bus, the host module receives a completion signal and synchronously detects whether the bus is in an idle state, if the bus is not in the idle state, the bus is continuously detected until the bus is detected to be in the idle state, if the bus is detected to be in the idle state, the preparation completion of all the slave modules is indicated, and the next step is entered;
step three: the method comprises the steps that a master module detects that a bus is in an idle state, the master module starts a counter with a period of T and synchronously sends a master data frame, the master data frame comprises trigger pulses of slave modules and slave module station numbers, each slave module synchronously analyzes trigger pulse instructions and slave module station number information sent by a master, the slave modules enter a response state according to the slave module station numbers to become response equipment, the response equipment synchronously triggers according to the trigger pulse instructions, initiates bus occupation application and enters the next step;
step four: the plurality of slave modules detect self fault information, if the plurality of slave modules detect no self fault information, the plurality of slave modules simultaneously respond to a trigger pulse, the next step is carried out, if the plurality of slave modules detect faults, a master data frame sent by the master module is not judged any more, a 200us low level preemption bus is immediately and continuously sent, the continuous low level is immediately transmitted back to the master control module, pulse blocking is finished, and the step returns to the step two until the faults of the slave modules are eliminated;
step five: after detecting no fault information per se in the fourth step, the response equipment bus occupation application is passed, a time counter with the period of T is started, a transmission state is entered, one-to-one data transmission is carried out, the analog quantity and the state information of the current module are uploaded in real time until the data transmission is finished, and the next step is carried out;
step six: if the host module receives the data information of the answering equipment and has no fault, the data is processed in real time, meanwhile, a trigger instruction is updated, and the step two is repeated.
2. The synchronous serial time division multiplexing bus method applied to the high voltage cascading equipment as claimed in claim 1, wherein in the step one, the data at least comprises 4 bytes, and the information of the 4 bytes comprises a module identification code, a handshake signal and a check signal.
3. The synchronous serial time-division multiplexing bus method applied to the high-voltage cascading equipment as recited in claim 1, wherein in step three, the host data frame sent by the host module at least comprises a frame header, a slave module station number, a node 1 trigger instruction, a node 2 trigger instruction.
4. The synchronous serial time-division multiplexing bus method applied to the high-voltage cascading equipment as claimed in claim 3, wherein in the fifth step, the data sent by the slave module includes a slave data frame, and the slave data frame at least includes a frame header, a slave module station number, a data length, a handshake signal, analog quantity information, status information, a check segment and a frame tail.
5. The synchronous serial time-division multiplexing bus method applied to the high-voltage cascading equipment as claimed in claim 4, wherein in the third step and the fifth step, the data length of the master data frame and the slave data frame is the same, so that the period T of the data transmission pace is the same, and further, the equipment synchronism is ensured.
6. The synchronous serial time-division multiplexing bus method applied to the high-voltage cascading equipment as claimed in claim 1, wherein in step six, when the continuous 200us internal communication can be recovered, the fault is light, and when the continuous 200us internal communication cannot be recovered, the fault is heavy.
7. The synchronous serial time-sharing multiplexing bus method applied to the high-voltage cascading equipment as claimed in claim 1, wherein the slave modules are connected in sequence and connected to the same serial bus, and the master module calls the slave module according to whether the bus is in an idle state, so as to ensure that all the slave modules can be controlled to trigger simultaneously in each period T, and complete one-to-one connection between the answering equipment and the master module, thereby completing communication.
8. The synchronous serial time-division multiplexing bus method applied to the high-voltage cascading equipment as claimed in claim 1, characterized in that the slave module can occupy serial bus resources according to the calling of the master module and can also actively occupy bus resources according to an interrupt mechanism.
The host module equipment has only one, and the slave module equipment at least comprises a dynamic allocation module which can be dynamically configured according to the requirements of users.
The host module sends data down and calls the slave module according to the bus idle state, and the slave module realizes data transmission between the host module and the slave module according to the host module call and the bus idle state.
9. The method according to claim 1, wherein the device requesting for bus occupation is a master module or a slave module, the master module is used as a requesting device and the slave module is used as a responding device when no fault interrupt preempts the bus, and the slave module currently having a fault directly occupies the bus when a fault interrupt exists.
10. The synchronous serial time division multiplexing bus method applied to the high voltage cascading equipment as claimed in claim 9, wherein the bus state is divided into an idle state, a request state, a response state and a data transmission state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210579172.3A CN115001618B (en) | 2022-05-25 | 2022-05-25 | Synchronous serial time-sharing multiplexing bus method applied to high-voltage cascading equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210579172.3A CN115001618B (en) | 2022-05-25 | 2022-05-25 | Synchronous serial time-sharing multiplexing bus method applied to high-voltage cascading equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115001618A true CN115001618A (en) | 2022-09-02 |
CN115001618B CN115001618B (en) | 2024-09-06 |
Family
ID=83028843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210579172.3A Active CN115001618B (en) | 2022-05-25 | 2022-05-25 | Synchronous serial time-sharing multiplexing bus method applied to high-voltage cascading equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115001618B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115834282A (en) * | 2022-11-07 | 2023-03-21 | 交控科技股份有限公司 | CAN bus communication method, device, equipment and readable storage medium |
CN116644012A (en) * | 2023-07-26 | 2023-08-25 | 深圳市逸云天电子有限公司 | Bus communication method, electronic equipment and computer readable storage medium |
CN117370258A (en) * | 2023-11-02 | 2024-01-09 | 珠海电科星拓科技有限公司 | Multipath low-speed I2C expansion method and device for high-speed I2C bus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1891776A1 (en) * | 2005-06-03 | 2008-02-27 | Robert Bosch Gmbh | Method for operating a bus system, bus system and bus user |
CN102868584A (en) * | 2012-10-11 | 2013-01-09 | 江苏西电南自智能电力设备有限公司 | Synchronization time-division multiplexing bus communication method adopting serial communication interface |
CN107154675A (en) * | 2017-05-17 | 2017-09-12 | 山东泰开电力电子有限公司 | A kind of monobus communication system and its method applied to mesohigh SVG |
-
2022
- 2022-05-25 CN CN202210579172.3A patent/CN115001618B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1891776A1 (en) * | 2005-06-03 | 2008-02-27 | Robert Bosch Gmbh | Method for operating a bus system, bus system and bus user |
CN101189835A (en) * | 2005-06-03 | 2008-05-28 | 罗伯特·博世有限公司 | Method for operating a bus system, bus system and bus user |
CN102868584A (en) * | 2012-10-11 | 2013-01-09 | 江苏西电南自智能电力设备有限公司 | Synchronization time-division multiplexing bus communication method adopting serial communication interface |
CN107154675A (en) * | 2017-05-17 | 2017-09-12 | 山东泰开电力电子有限公司 | A kind of monobus communication system and its method applied to mesohigh SVG |
Non-Patent Citations (2)
Title |
---|
BITTY JOSE; J. SAMSON IMMANUEL: "Design of BIST(Built-In-Self-Test)Embedded Master-Slave communication using SPI Protocol", 《2021 3RD INTERNATIONAL CONFERENCE ON SIGNAL PROCESSING AND COMMUNICATION (ICPSC)》, 15 June 2021 (2021-06-15) * |
谢宾: "采用串行通信接口的同步时分多路复用总线通信方法", 《自动化与仪器仪表 》, 25 May 2019 (2019-05-25) * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115834282A (en) * | 2022-11-07 | 2023-03-21 | 交控科技股份有限公司 | CAN bus communication method, device, equipment and readable storage medium |
CN116644012A (en) * | 2023-07-26 | 2023-08-25 | 深圳市逸云天电子有限公司 | Bus communication method, electronic equipment and computer readable storage medium |
CN116644012B (en) * | 2023-07-26 | 2023-12-22 | 深圳市逸云天电子有限公司 | Bus communication method, electronic equipment and computer readable storage medium |
CN117370258A (en) * | 2023-11-02 | 2024-01-09 | 珠海电科星拓科技有限公司 | Multipath low-speed I2C expansion method and device for high-speed I2C bus |
CN117370258B (en) * | 2023-11-02 | 2024-03-29 | 珠海电科星拓科技有限公司 | Multipath low-speed I2C expansion method and device for high-speed I2C bus |
Also Published As
Publication number | Publication date |
---|---|
CN115001618B (en) | 2024-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115001618A (en) | Synchronous serial time-sharing multiplexing bus method applied to high-voltage cascade equipment | |
US4939752A (en) | Distributed timing recovery for a distributed communication system | |
CN102386970B (en) | Optical network unit (ONU) device of EPON (Ethernet Passive Optical Network) system and protection switching method for same | |
CA2096716C (en) | Distributed control methodology and mechanism for implementing automatic protection switching | |
JP2697519B2 (en) | Intelligent interconnect and data transmission method for broadband optical networks | |
CN108462601B (en) | Multi-protection-group switching method and device applied to optical transmission network and network element equipment | |
EP2464040B1 (en) | Protection device and protection method for optical network | |
CN104516306B (en) | The automated system of redundancy | |
CN101197634B (en) | Method, system and single board device for implementing automatic protection rearrangement of main and standby plate | |
CN104393914B (en) | A multiplex route recovering method for an optical fiber differential protection device | |
EP0859484B1 (en) | Fault restoration control method and it's apparatus in a communication network | |
US11431407B2 (en) | Hardware-based protection group switching method and optical communication equipment | |
CN106209541B (en) | A kind of means of communication of parallel drive system | |
KR20100015508A (en) | Protecting system and method for passive optical network | |
CN2824439Y (en) | Optical line terminal | |
CN110392009A (en) | Multi-inverter parallel carrier synchronization device and its synchronous method with redundancy feature | |
CN103313148A (en) | Method and device for modifying overhead and preventing subnetworks from being simultaneously switched as well as network elements and network | |
CN110768291B (en) | Redundancy control method for wind power converter and wind power converter using same | |
KR101156097B1 (en) | Master redundancy method in Ethernet powerlink | |
CN114979036A (en) | Dual-computer hot standby system of network gate based on heartbeat and isolation switching matrix | |
Anelli et al. | Evaluation of the APS protocol for SDH rings reconfiguration | |
CN110244631A (en) | A kind of analog signal collector, method and system | |
CN110768292B (en) | Redundancy control method for wind power converter and wind power converter using same | |
CN112684743B (en) | Helicopter series steering engine control system and control method based on CAN bus structure | |
CN113364659B (en) | Data acquisition system based on Modbus protocol |
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 |