Disclosure of Invention
To solve the above technical problems, the present invention aims to: the inner bus is adopted to realize distributed remote measurement and remote control of the power supply controller, so that the number of signal interconnection among modules is reduced, and the power expandability is improved.
In a first aspect, an embodiment of the present invention provides:
an internal bus system of a satellite power supply controller comprises the satellite power supply controller, a telemetering remote control system corresponding to the satellite power supply controller performs data interaction with an on-board computer, and the satellite power supply controller is internally provided with:
the remote control and remote measurement unit is provided with a main internal bus master station and a standby internal bus master station, and the main internal bus master station and the standby internal bus master station are used for outputting and telemetering and collecting instructions of all modules in the power controller;
the shunt regulator is provided with a main internal bus slave station and a standby internal bus slave station, the main internal bus slave station is interacted with a main internal bus master station through a main internal bus, and the standby internal bus slave station is interacted with a standby internal bus master station through a standby internal bus; the main internal bus slave station and the standby internal bus slave station are used for controlling the shunt regulator and the charge-discharge regulator and telemetering and collecting;
the main internal bus and the standby internal bus comprise two independent sub-buses.
Further, still be equipped with in the satellite power supply controller:
the first auxiliary power supply is used for providing working power supply for the main internal bus master station and the main internal bus slave station;
and the second auxiliary power supply is used for providing working power supply for the standby bus master station and the standby bus slave station.
In a second aspect, an embodiment of the present invention provides:
a communication method of a satellite power supply controller is provided, wherein an internal bus master station and an internal bus slave station are arranged in the satellite power supply controller; the internal bus master station interacts with the internal bus slave station through an internal bus; the communication method is used for an interactive process between the internal bus master station and the internal bus slave station, and comprises the following steps:
encoding the internal bus signal by adopting 20-bit DS encoding;
the communication protocol includes 5 types of words, the 5 types of words being a sync word, a command word, a write data word, a read data word, and a status word.
Further, the command word, the write data word, the read data word and the status word are distinguished by a type field; the valid bits of the command word, write data word, read data word and status word are 16 bits, and the 16 bits of valid bits are parity checked by the check bits.
Further, data on the internal bus is received and transmitted in units of the 5-type word, and transmission and reception of a plurality of the type words constitutes a message.
Further, the communication protocol comprises two message formats, the two message formats are respectively writing slave station messages and reading slave station messages, the slave stations interact with the master station, the slave stations are internal bus slave stations, and the master station is an internal bus master station.
Further, the writing of the station message includes:
the master station transmits a synchronization word;
after all the slave stations receive the synchronous words, the slave stations start to enter a receiving state;
the master station sends command words;
the slave station judges the address field of the command word, if the address field is the same as the address field of the corresponding slave station and the read-write state bit is 1, the slave station continues to receive data, otherwise, the slave station exits from the receiving state;
the master station sends a corresponding number of write data words according to the length set by the length field in the command word, and the corresponding slave stations sequentially receive the write data words;
when the length of the write data word received by the slave station is equal to the length set by the length field, the master station releases the bus and the slave station drives the bus;
the slave station sends a synchronization word, and the master station enters a receiving state according to the synchronization word.
Transmitting a status word from the station;
when the master station receives the status word, the slave station releases the bus.
Further, the reading the slave station message includes:
the master station transmits a synchronization word;
after all the slave stations receive the synchronous words, all the slave stations enter a receiving state;
when the master station sends a command word, the master station releases the bus;
all slave stations judge the address field of the command word, and if the address field of the command word is the same as the address field of the slave station and the read-write state bit is 0, the slave station enters a sending state;
the slave station transmits a synchronization word;
after the master station receives the synchronous words, the master station enters a data receiving state;
the slave station sends a read data word according to the length field of the command word;
the master station receives the read data words;
after the read data word of the slave station is sent, the slave station sends a status word;
when the master station receives the status word, the slave station releases the bus.
Further, the 10-bit address bits of the command word include a slave station address bit number and a slave station internal address bit number.
Further, the internal bus signals are transmitted in a fully differential mode.
The invention has the beneficial effects that: the embodiment of the invention realizes distributed power supply in a satellite power supply controller through function improvement, a main internal bus master station and a standby internal bus master station are arranged on a remote control telemetry unit, a main internal bus slave station and a standby internal bus slave station are arranged on a shunt regulator module, then the main internal bus slave station is interacted with the main internal bus master station through a main internal bus, the standby internal bus slave station is interacted with the standby internal bus master station through a standby internal bus, and the main internal bus and the standby internal bus are both arranged into two independent sub-buses, so that the condition of switching between the main and standby stations caused by the damage of a single sub-station is avoided. The internal bus can realize distributed remote measurement and control of the power supply controller, thereby reducing the number of signal interconnection among modules and improving the power expandability.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific embodiments. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
In the description of the embodiments of the present invention, several meanings are one or more, plural meanings are two or more, and greater than, less than, more than, etc. are understood as excluding the present numbers, and greater than, less than, etc. are understood as including the present numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
First, the terms appearing in the present application are explained:
PCU: and the power supply controller fully regulates the bus. MEA: a bus error amplifier. BUS: and a bus bar. IPBUS: an internal bus system. IPBUS _ N: the main TMTC bus. IPBUS _ R: the TMTC bus is prepared. MST: an internal bus master station. PSST and TSST: an internal bus slave station. BDR: a discharge regulator. BCR: a charging regulator. BCDR: discharge regulator BDR + charge regulator BCR. S3R: a shunt regulator. PSR: the power supply system consists of 1 shunt regulator S3R +2 BCDRs. CAP: and (4) a capacitor array. CONN: a connector unit. TMTC: a remote control unit is telemetered. TMTC _ N: a master telemetry and telemetry unit. TMTC _ R: and a remote measuring and controlling unit is provided. RTN: power ground. VBUS: and (6) a bus positive electrode. VBAT 1: and a positive electrode of the battery 1. VBAT 2: and a positive electrode of the storage battery 2. SA 1: the south solar array. SA 2: north solar array. LOAD: and (4) loading the whole satellite. GND: and (6) arranging the whole star land. BCM: and managing the battery. LOAD: PSR module load. APS: an auxiliary power supply.
Referring to fig. 1, a power controller PCU for a fully regulated bus includes 6 blocks, namely, a shunt regulator S3R, a charge regulator BCR, a discharge regulator BDR, a capacitor array CAP, a connection unit CONN, and a telemetry and remote control unit TMTC. The power ports of the modules are interconnected through a bus bar, wherein the bus bar comprises 4 power grounds RTN, bus bar positive electrodes VBUS, storage battery 1 positive electrodes VBAT1 and storage battery 2 positive electrodes VBAT 2. The 4 bus bars are connected to the power ports of the modules and are connected to a south solar array SA1, a north solar array SA2, a south storage battery BAT1, a north storage battery BAT2, a whole satellite LOAD, and a whole satellite ground GND through a connector unit CONN. The remote measurement and control unit TMTC is a remote measurement and control unit of the PCU and is used for remote measurement and control of all modules of the whole machine, and in addition, the remote measurement and control unit TMTC also comprises the functions of a Main Error Amplifier (MEA), a battery management (BCM), bus overvoltage protection and the like. As can be seen from FIG. 1, the telemetry and telemetry unit TMTC adopts a centralized telemetry and telemetry design, and telemetry signals of S3R, BCR, BDR and CONN modules are connected to a main module and a standby module of TMTC _ N and TMTC _ R in a discrete form.
In order to realize the control of the PCU overall machine which is more and more complex, as shown in FIG. 2, a BCR and a BDR are combined into a unit BCDR, S3R is divided into a plurality of discrete units, each S3R module and 2 BCDR modules form an independent unit PSR, each PSR can be regarded as an independent power supply system and is independently connected with a storage battery BAT, a solar array SA and an overall star LOAD LOAD, a BUS capacitor array CAP and a telemetering remote control unit TMTC are shared, and in order to adapt to the condition of possible LOAD LOAD output imbalance of all PSR modules, BUS BUS of all PSR modules are connected together through a backboard.
In order to implement the telemetry and remote control function of the telemetry and remote control unit TMTC for multiple PSRs, as shown in fig. 3, the TMTC main and standby modules each include an internal bus main station for instruction output and telemetry acquisition of each module in the PCU; each S3R module comprises a main internal bus slave station and a standby internal bus slave station which are respectively used for receiving command data output by the TMTC module from the main internal bus and the standby internal bus, and the internal bus slave station of each S3R module can realize control and telemetering collection of the S3R module and the 2 BCDR modules and upload telemetering data to the TMTC module. The TMTC adopts a cold backup working mode, only one of a main module and a standby module of the TMTC is in a power-on state, and a corresponding internal bus main station and a corresponding internal bus slave station are also in the power-on state, and if the current telemetering remote control system fails, the other telemetering remote control system is started. Through the design of the internal bus, the PCU distributed telemetering remote control is realized, and the distributed telemetering remote control is realized by taking the PSR as a basic unit, so the internal bus is called as an IPBUS in the embodiment.
As shown in fig. 4, this embodiment provides a schematic diagram of an internal bus IPBUS of a PCU, where an internal bus master MST may be implemented by an FPGA, internal bus slaves PSST and TSST may be implemented by an ASIC, PSST implements remote measurement and control of a PSR unit, TSST implements remote measurement and control of a TMTC module, and the PCU implements a function of remote measurement and control of buses of each internal module through the internal bus IPBUS. After receiving a control instruction input by a 1553B bus, the TMTC module converts the control instruction into an IPBUS control instruction in the PCU through instruction analysis, the internal bus finishes instruction execution from the PSST and the TSST, and meanwhile, after the PSST and the TSST finish state telemetering and analog telemetering of the S3R module, the 2 BCDR modules and the TMTC module through a state quantity and analog quantity acquisition interface, the internal bus outputs the control instruction to the TMTC module, and the control instruction is uploaded through the 1553B bus interface after being framed by the TMTC module. The whole PCU remote control system is divided into a master part and a backup part which are cold backup for each other, and the corresponding IPBUS also adopts a double-bus design which is cold backup for each other, namely the IPBUS _ N is a main TMTC bus, the corresponding main internal bus master station is MST _ N, the main internal bus slave stations are TSST _ N and PSST _ N, and the auxiliary source APS _ N independently supplies power; IPBUS _ R is a standby TMTC bus, a corresponding standby internal bus master station is MST _ R, standby internal bus slave stations are TSST _ R and PSST _ R, and the auxiliary source APS _ R independently supplies power. When APS _ N is started, the on-board computer can access the PCU through the main remote measurement and control system; when APS _ R is started, the on-board computer can access the PCU through the standby remote measurement and control system.
In order to further improve the reliability of the above dual-bus design, as shown in fig. 5, two independent sub-buses, i.e., a bus and a B bus, are designed for each bus, so as to prevent the master and slave telemetric remote control systems from being switched off due to the failure of a single bus interface. The internal bus adopts a one-master multi-slave communication mode, can be realized based on MLVDS and other differential communication, and comprises two pairs of differential signals of IP _ D and IP _ S, and data transmission between the master station and the slave station is bidirectional.
Based on the internal bus system, the embodiment provides a communication method of a satellite power controller, which is used for an interactive process between an internal bus master station and an internal bus slave station, wherein the interactive process adopts 20-BIT DS encoding, namely Data Strobe encoding, as shown in fig. 6, the encoding process of 20-BIT Data is adopted, IP _ D is a Data signal, and IP _ S is a Strobe signal, if the Data signal values of two adjacent BITs are the same, the Strobe signal at the moment is changed, otherwise, the value is kept unchanged. In the interactive process, the communication protocol is defined as 5 TYPEs of words, except for synchronous words, all TYPEs of words are distinguished by TYPE fields, the number of significant digits is 16, and parity bits P carry out odd parity check on 16-bit significant words. Specifically, as shown in fig. 7:
synchronization word: SYNC WORD can be initiated by a master station or a slave station, a receiving end needs to identify the start bit of the whole frame to correctly receive data, a synchronous WORD is designed to identify the start bit of the whole frame, and when the receiving end continuously receives not less than 20 bits of logic 1 and the next bit is 0, the value of 0 is the first bit of the whole frame to start the whole frame to receive.
Command word: CMD WORD is sent by a master station, a TYPE mark field is '000', the TYPE WORD comprises 10 ADDRESS bits ADDRESS, the 10 ADDRESS bits can divide the slave station ADDRESS and the number of the slave station internal ADDRESS bits according to the needs, and the specific number of the bits is determined according to the needs of a system; a 1-bit read-write bit W/R, wherein when the read-write bit is 1, the write operation to the slave station is shown, and when the read-write bit is 0, the read operation to the slave station is shown; a 5-bit word LENGTH bit LENGTH, which represents the number of words read or written.
Writing a data word: WR WORD, sent by the master to the slave, the TYPE flag field is '001' and the significand is 16 bits.
Reading a data word: RD WORD is sent to the master station by the slave station, the TYPE mark field is '010', and the valid bit number is 16 bits.
A status word: STS WORD is sent to the master station by the slave station, the TYPE flag field is '011', the significant digit is 16 bits, and the STS WORD represents the state of the slave station.
In the above embodiments, the slave may be an internal bus slave and the master is an internal bus master.
The bus data is received and transmitted in units of word definitions shown in fig. 1, the transmission and reception of a plurality of words form a message, and the communication protocol definition comprises two message formats, namely a slave station message writing mode and a slave station message reading mode.
As shown in fig. 8, the specific process of writing the slave station message includes:
the master station sends a synchronization word, and each slave station starts to enter a receiving state after receiving the synchronization word;
the master station sends a write command word, each slave station judges the address field of the command word, if the address field of the command word corresponds to the address of the slave station and the read-write state bit is 1, the data continues to be received, otherwise, the slave station exits from the receiving state;
the master station sends corresponding number of write data words according to the length set by the length field in the write command word, and the corresponding slave stations receive the write data words in sequence until the length set by the length field is reached;
the master station releases the bus after the data word is sent, the slave station starts to drive the bus correspondingly, the slave station sends the synchronous word, and the master station enters a receiving state;
and the slave station sends a state word, after the master station receives the state, the slave station releases the bus, and the process of writing the slave station message is finished.
As shown in fig. 9, the specific process of reading the slave station message includes:
the master station sends a synchronization word, and each slave station starts to enter a receiving state after receiving the synchronization word;
the master station releases the bus after sending the write command word, each slave station judges the address field of the command word, and if the address field of the command word corresponds to the address of the slave station and the read-write state bit is 0, the slave station enters a sending state;
the corresponding slave station sends a synchronization word, and the master station enters a data receiving state after receiving the synchronization word;
the corresponding slave stations send read data words one by one according to the length set by the command words, and the master station receives the read data words one by one until the slave station finishes sending data;
and the slave station sends the status word, after the master station receives the status word, the slave station releases the bus, and the process of reading the slave station message is finished.
In summary, the above embodiment designs a DS coding synchronization mechanism, when the receiving end continuously receives no less than 20 bits of logic 1 and the next bit is 0, the 0 value is the first bit received by the whole frame, and the whole frame reception is started, so that other types of words can be naturally distinguished. And on the basis of the TYPE field, a universal communication protocol of 5 TYPEs of words and 2 TYPEs of messages is defined, the slave station address and the number of slave station internal sub-address bits can be divided by 10 bits of the command word according to the needs, the specific number of bits is determined according to the needs of the system, and the flexibility is good. On the basis of the design, the internal bus and the corresponding master station and slave station thereof adopt a main redundancy design and a standby redundancy design, two sets of bus systems work in a cold backup mode and independently supply power, and an A bus and a B bus are designed on each bus for hot backup, so that the communication reliability of the buses is ensured.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.