CN116107489A - Power supply device and data transmission method thereof - Google Patents

Power supply device and data transmission method thereof Download PDF

Info

Publication number
CN116107489A
CN116107489A CN202111327917.9A CN202111327917A CN116107489A CN 116107489 A CN116107489 A CN 116107489A CN 202111327917 A CN202111327917 A CN 202111327917A CN 116107489 A CN116107489 A CN 116107489A
Authority
CN
China
Prior art keywords
data
buffer memory
identity information
memory
power supply
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.)
Pending
Application number
CN202111327917.9A
Other languages
Chinese (zh)
Inventor
王鸿杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Good Will Instrument Co Ltd
Original Assignee
Good Will Instrument Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Good Will Instrument Co Ltd filed Critical Good Will Instrument Co Ltd
Priority to CN202111327917.9A priority Critical patent/CN116107489A/en
Publication of CN116107489A publication Critical patent/CN116107489A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1673Details of memory controller using buffers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to a power supply device and a data transmission method thereof. The receiving circuit receives a data and checks whether a body information in the data is identical to a body information. When the identity information is different from the local identity information, the receiving circuit stores the data into the receiving buffer memory and stores the data into the transferring buffer memory as data to be transferred. When the identity information is identical to the local identity information, the receiving circuit discards the data. Because the identity information in the data represents which power supply equipment sends the data, when the identity information is the same as the identity information of the host, the representing data is sent by the host, so that the data can be directly discarded without being processed, and the purpose of sharing the data with low delay and high synchronization is achieved.

Description

电源设备及其数据传输方法Power supply device and data transmission method thereof

技术领域technical field

本发明有关于一种电源设备及一种数据传输方法,尤其是一种于并联运作时,能传输及分享数字数据,并自动配置设备身份信息(Device ID),且执行低延迟同步控制的电源设备及其数据传输方法。The present invention relates to a power supply device and a data transmission method, especially a power supply capable of transmitting and sharing digital data, automatically configuring device identity information (Device ID), and performing low-latency synchronous control when operating in parallel Devices and their data transfer methods.

背景技术Background technique

现有的电源设备常通过并联的组合达到容量扩充的目的,除了功率端需有回授控制之外,也需要通过量测技术将类比信号转为数字数据后,再经由微处理运算或运算电路的比较判别后,快速的微调与控制每一台并联在一起的电源设备,达到智慧控制。Existing power supply equipment often achieves the purpose of capacity expansion through parallel combination. In addition to the need for feedback control at the power end, it is also necessary to convert analog signals into digital data through measurement technology, and then through micro-processing or computing circuits. After comparing and judging, quickly fine-tune and control each power supply equipment connected in parallel to achieve intelligent control.

此外,现有的电源设备通常选择已使用多年的串列传输的接头电路来接收与传送数字数据,但其传输速率普遍偏低,当现有的电源设备并联数量增加后其控制的效率就会快速下降,这使得现有的电源设备的控制同步性将无法满足需求。In addition, the existing power supply equipment usually chooses the serial transmission connector circuit that has been used for many years to receive and transmit digital data, but its transmission rate is generally low. When the number of parallel connection of the existing power supply equipment increases, its control efficiency will decrease. Rapid decline, which makes the control synchronization of the existing power supply equipment unable to meet the demand.

因此,现有电源设备及其数据传输方法仍需进一步的改良。Therefore, the existing power supply equipment and its data transmission method still need to be further improved.

发明内容Contents of the invention

有鉴于上述问题,本发明为一种电源设备及其数据传输方法,提供低延迟地在多个电源设备间的数据传送,并提高电源设备的同步性。In view of the above problems, the present invention provides a power supply device and a data transmission method thereof, which provide low-latency data transmission between multiple power supply devices and improve the synchronization of the power supply devices.

本发明的电源设备包含有一接收电路、一接收缓冲存储器及一转送缓冲存储器。该接收电路电连接该接收缓冲存储器及该转送缓冲存储器。该接收电路接收一数据,并检查该数据中的一身份信息是否与一本机身份信息相同。当该数据中的身份信息与该本机身份信息不相同时,该接收电路将该数据存入该接收缓冲存储器,并将该数据作为一待转送数据存入该转送缓冲存储器。当该数据中的身份信息与该本机身份信息相同时,该接收电路抛弃该数据。The power supply device of the present invention includes a receiving circuit, a receiving buffer memory and a forwarding buffer memory. The receiving circuit is electrically connected to the receiving buffer memory and the forwarding buffer memory. The receiving circuit receives a data, and checks whether an identity information in the data is the same as the local identity information. When the identity information in the data is different from the local identity information, the receiving circuit stores the data into the receiving buffer memory, and stores the data as data to be forwarded into the forwarding buffer memory. When the identity information in the data is the same as the local identity information, the receiving circuit discards the data.

进一步而言,该电源设备的数据传输方法由该电源设备执行,且包含有以下步骤:Further, the data transmission method of the power supply device is executed by the power supply device, and includes the following steps:

由一接收电路接收一数据;receiving a data by a receiving circuit;

检查该数据中的一身份信息是否与一本机身份信息相同;Check whether the identity information in the data is the same as the identity information of the machine;

当该数据中的该身份信息与该本机身份信息不相同时,由该接收电路将该数据存入一接收缓冲存储器,并将该数据作为一待转送数据存入一转送缓冲存储器;When the identity information in the data is different from the local identity information, the receiving circuit stores the data into a receiving buffer, and stores the data as a data to be forwarded into a forwarding buffer;

当该数据中的身份信息与该本机身份信息相同时,由该接收电路抛弃该数据。When the identity information in the data is the same as the local identity information, the receiving circuit discards the data.

由于该数据中的身份信息代表该笔数据是由哪一个电源设备发出的,因此当数据中的身份信息与本机身份信息相同时,代表该笔数据是由本机发出的,因此便无须理会该笔数据,可直接抛弃该笔数据,不须处理,进而降低处理数据的时间,以此低延迟地传输数据,提高电源设备的同步性。Since the identity information in the data represents which power supply device sent the data, when the identity information in the data is the same as the identity information of the machine, it means that the data is sent by the machine, so don’t worry about it The data can be directly discarded without processing, thereby reducing the time for processing data, so as to transmit data with low delay and improve the synchronization of power supply equipment.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work. In the attached picture:

图1A及图1B为应用本发明的电源设备的电源系统的架构示意图。FIG. 1A and FIG. 1B are schematic structural diagrams of a power system applying the power device of the present invention.

图2为本发明的电源设备的方块示意图。FIG. 2 is a schematic block diagram of the power supply device of the present invention.

图3A为本发明的电源设备的数据传输方法的由接收电路执行的步骤的流程示意图。FIG. 3A is a schematic flowchart of the steps executed by the receiving circuit in the data transmission method of the power supply device of the present invention.

图3B为本发明的电源设备的数据传输方法的由存储器控制与分配器执行的步骤的流程示意图。FIG. 3B is a schematic flowchart of the steps executed by the memory controller and allocator of the data transmission method of the power supply device of the present invention.

图3C为本发明的电源设备的数据传输方法的由发送电路执行的步骤的流程示意图。FIG. 3C is a schematic flowchart of the steps executed by the sending circuit in the data transmission method of the power supply device of the present invention.

具体实施方式Detailed ways

以下配合图式及本发明的较佳实施例,进一步阐述本发明为达成预定发明目的所采取的技术手段。The technical means adopted by the present invention to achieve the intended invention purpose are further described below in conjunction with the drawings and preferred embodiments of the present invention.

请参阅图1A及图1B,本发明的电源设备10可多台串联或并联行成一电源系统对一负载20供电,以此扩充电源容量。当中一台电源设备10可被设定为主机10a,而其他电源设备10则为从机10b,控制命令由主机10a产生并发送至各个从机10b。此外,主机10a与从机10b的信号接头A/B通过连接线100相互连接以传送数据,且主机10a与从机10b的电源输出端+/-则电连接至负载20以提供电能。举例来说,主机10a的信号接头B通过连接线100连接从机10b的信号接头A,而从机10b的信号接头B则通过另一连接线100连接下一级从机10b的信号接头A。Please refer to FIG. 1A and FIG. 1B , multiple power supply devices 10 of the present invention can be connected in series or in parallel to form a power supply system to supply power to a load 20 , thereby expanding the capacity of the power supply. One of the power supply devices 10 can be set as the master 10a, while the other power supply devices 10 are slaves 10b. Control commands are generated by the master 10a and sent to each slave 10b. In addition, the signal connectors A/B of the master 10a and the slave 10b are connected to each other through the connection line 100 to transmit data, and the power output terminals +/− of the master 10a and the slave 10b are electrically connected to the load 20 to provide power. For example, the signal connector B of the master 10a is connected to the signal connector A of the slave 10b through the connecting wire 100 , and the signal connector B of the slave 10b is connected to the signal connector A of the next slave 10b through another connecting wire 100 .

请参阅图2所示,本发明的电源设备10包含有一接收电路11、一接收缓冲存储器12、一转送缓冲存储器13、一存储器控制与分配器14、一系统存储器15、一发送缓冲存储器16及一发送电路17。Please refer to shown in Fig. 2, power equipment 10 of the present invention comprises a receiving circuit 11, a receiving buffer memory 12, a transfer buffer memory 13, a memory control and distributor 14, a system memory 15, a sending buffer memory 16 and A sending circuit 17 .

该接收电路11电连接该接收缓冲存储器12及该转送缓冲存储器13。该存储器控制与分配器14电连接该接收缓冲存储器12。该系统存储器15电连接该存储器控制与分配器14。该发送缓冲存储器16电连接该存储器控制与分配器14。该发送电路17电连接该转送缓冲存储器13及该发送缓冲存储器16。The receiving circuit 11 is electrically connected to the receiving buffer memory 12 and the forwarding buffer memory 13 . The memory control and distributor 14 is electrically connected to the receiving buffer memory 12 . The system memory 15 is electrically connected to the memory control and allocator 14 . The sending buffer memory 16 is electrically connected to the memory control and allocator 14 . The transmission circuit 17 is electrically connected to the transfer buffer memory 13 and the transmission buffer memory 16 .

该接收电路11接收一数据,并检查该数据中的一身份信息是否与一本机身份信息相同。当该数据中的身份信息与该本机身份信息相同时,该接收电路11将该数据存入该接收缓冲存储器12,并将该数据作为一待转送数据存入该转送缓冲存储器13。且当该接收电路11将该数据存入该接收缓冲存储器12,并将该数据作为该待转送数据存入该转送缓冲存储器13后,该接收电路11重新接收该数据。而当该数据中的身份信息与该本机身份信息不相同时,该接收电路11抛弃该数据。且当该接收电路11抛弃该数据后,该接收电路11重新接收该数据。The receiving circuit 11 receives a data, and checks whether an identity information in the data is the same as the local identity information. When the identity information in the data is the same as the local identity information, the receiving circuit 11 stores the data into the receiving buffer memory 12 and stores the data into the forwarding buffer memory 13 as data to be forwarded. And when the receiving circuit 11 stores the data into the receiving buffer memory 12 and stores the data as the data to be forwarded into the forwarding buffer memory 13, the receiving circuit 11 receives the data again. And when the identity information in the data is different from the local identity information, the receiving circuit 11 discards the data. And when the receiving circuit 11 discards the data, the receiving circuit 11 receives the data again.

在本实施例中,该数据是一数字数据。In this embodiment, the data is a digital data.

此外,请参阅图3A所示,本发明的电源设备的数据传输方法由该电源设备10执行,且包含有以下步骤:In addition, please refer to FIG. 3A, the data transmission method of the power supply device of the present invention is executed by the power supply device 10, and includes the following steps:

由该接收电路11接收该数据(S301);Receive the data by the receiving circuit 11 (S301);

由该接收电路11检查该数据中的该身份信息是否与该本机身份信息相同(S302);Check by the receiving circuit 11 whether the identity information in the data is identical to the local identity information (S302);

其中当该数据中的身份信息与该本机身份信息相同时,由该接收电路11将该数据存入该接收缓冲存储器12,并将该数据作为该待转送数据存入该转送缓冲存储器13(S303)后,由该接收电路11重新接收该数据(S301);Wherein when the identity information in the data is identical with the local identity information, the data is stored in the receiving buffer memory 12 by the receiving circuit 11, and the data is stored in the transfer buffer memory 13 as the data to be transferred ( After S303), the data is re-received by the receiving circuit 11 (S301);

其中当该数据中的身份信息与该本机身份信息不相同时,由该接收电路11抛弃该数据后(S304),再重新接收该数据(S301)。Wherein when the identity information in the data is different from the identity information of the machine, the receiving circuit 11 discards the data (S304), and then receives the data again (S301).

由于数据中的身份信息代表该笔数据是由哪一个电源设备10发出的,因此当数据中的身份信息与本机身份信息相同时,代表该笔数据是由本机发出的,因此便无须理会该笔数据,可直接抛弃该笔数据,不须处理,进而降低处理数据的时间,以此低延迟地传输数据,提高电源设备的同步性。Since the identity information in the data represents which power supply device 10 sent the data, when the identity information in the data is the same as the identity information of the machine, it means that the data is sent by the machine, so you don’t need to pay attention to it. The data can be directly discarded without processing, thereby reducing the time for processing data, so as to transmit data with low delay and improve the synchronization of power supply equipment.

在本较佳实施例中,该数据包含有该身份信息及一参数信息,该参数信息包含有各个电源设备的各种参数或控制指令。In this preferred embodiment, the data includes the identity information and a parameter information, and the parameter information includes various parameters or control instructions of each power supply device.

举例来说,请参阅图1A及图2所示,当主机10a产生一数据,并发送该数据时,该数据会在该主机10a及各个从机10b之间被传递,当从机10b接收到该数据时,由于主机10a产生的数据会包含有产生该笔数据的主机10a的身份信息,且与各个从机10b的身份信息不同,因此当各个从机10b接收到数据时,各从机10b的接收电路11会检查该笔数据中的身份信息与其本机身份信息不同,进而将该笔数据存入接收缓冲存储器12,并将该笔数据作为该待转送数据存入该转送缓冲存储器13。而当主机10a重新接收到该数据时,主机10a的接收电路11会检查该笔数据中的身份信息与其本机身份信息相同,代表该笔数据是由主机10a产生并发送的,故主机10a不须理会该笔数据,可直接抛弃该笔数据,避免重复处理数据,提高处理效率。For example, please refer to Fig. 1A and shown in Fig. 2, when master 10a generates a data, and when sending this data, this data will be transmitted between this master 10a and each slave 10b, when slave 10b receives During this data, since the data produced by the master 10a will contain the identity information of the master 10a that generated the data, and it is different from the identity information of each slave 10b, so when each slave 10b receives the data, each slave 10b The receiving circuit 11 will check that the identity information in the data is different from its own identity information, and then store the data in the receiving buffer memory 12, and store the data in the transfer buffer memory 13 as the data to be transferred. When the host 10a receives the data again, the receiving circuit 11 of the host 10a will check that the identity information in the data is the same as its own identity information, which means that the data is generated and sent by the host 10a, so the host 10a does not The data must be ignored, and the data can be discarded directly to avoid repeated data processing and improve processing efficiency.

进一步而言,该存储器控制与分配器14检查该接收缓冲存储器12中是否有该数据后,该存储器控制与分配器14进一步检查该系统存储器15中是否有该待发送数据。Furthermore, after the memory control and allocator 14 checks whether there is the data in the receiving buffer memory 12 , the memory control and allocator 14 further checks whether there is the data to be sent in the system memory 15 .

例如,当该接收缓冲存储器12中有该数据时,该存储器控制与分配器14依据该数据中的身份信息将该数据存入该系统存储器15,并检查该系统存储器15中是否有该待发送数据。由于该系统存储器15中已预先依照各个身份信息分配了储存空间,因此当该存储器控制与分配器14将该数据存入该系统存储器15时,是依据该数据中的身份信息将该数据存入该系统存储器15中对应该身份信息的储存空间。For example, when there is the data in the receiving buffer memory 12, the memory control and allocator 14 stores the data into the system memory 15 according to the identity information in the data, and checks whether there is the data to be sent in the system memory 15. data. Since the storage space has been allocated in advance according to each identity information in the system memory 15, when the memory control and allocator 14 stores the data into the system memory 15, it stores the data into the system memory 15 according to the identity information in the data. The system storage 15 corresponds to the storage space of the identity information.

而当该接收缓冲存储器12中没有该数据时,该存储器控制与分配器14直接检查该系统存储器15中是否有该待发送数据。And when there is no such data in the receiving buffer memory 12 , the memory control and allocator 14 directly checks whether there is the data to be sent in the system memory 15 .

而当该系统存储器15中有该待发送数据时,该存储器控制与分配器14将该待发送数据合并该本机身份信息后,存入该发送缓冲存储器16,且该存储器控制与分配器14重新检查该接收缓冲存储器12中是否有该数据。And when there is the data to be sent in the system memory 15, the memory control and allocator 14 stores the data to be sent into the sending buffer memory 16 after merging the data to be sent with the local identity information, and the memory control and allocator 14 Check whether there is the data in the receiving buffer memory 12 again.

但是当该系统存储器15中没有该待发送数据时,该存储器控制与分配器14重新检查该接收缓冲存储器12中是否有该数据。But when there is no data to be sent in the system memory 15 , the memory control and allocator 14 rechecks whether there is the data in the receiving buffer memory 12 .

也就是说,该存储器控制与分配器14轮流检查该接收缓冲存储器12与该系统存储器15中是否有该数据或该待发送数据。进一步而言,存入该系统存储器15中的数据系供该电源设备10后续使用。举例来说,由于该数据还包含有该参数信息,且该参数信息包含有各个电源设备的各种参数或控制指令,因此当该数据存入该系统存储器15后,该电源设备的一系统中央处理器便可根据该系统存储器15中的该参数信息对该电源设备10进行参数设定,例如调整输出电压、电流,或是设定启动时间等。That is to say, the memory control and allocator 14 checks in turn whether there is the data or the data to be sent in the receiving buffer memory 12 and the system memory 15 . Furthermore, the data stored in the system memory 15 is for the power device 10 to use later. For example, since the data also includes the parameter information, and the parameter information includes various parameters or control instructions of each power supply device, after the data is stored in the system memory 15, a system center of the power supply device The processor can set the parameters of the power supply device 10 according to the parameter information in the system memory 15 , such as adjusting the output voltage and current, or setting the start-up time.

请参阅图3B所示,该电源设备的数据传输方法还包含有以下步骤:Please refer to FIG. 3B, the data transmission method of the power supply device also includes the following steps:

由该存储器控制与分配器14检查该接收缓冲存储器12中是否有该数据(S401);Check whether there is the data in the receiving buffer memory 12 by the memory control and allocator 14 (S401);

当该接收缓冲存储器12中有该数据时,由该存储器控制与分配器14依据该数据中的身份信息将该数据存入该系统存储器15(S402),并检查该系统存储器15中是否有该待发送数据(S403);When there is the data in the receiving buffer memory 12, the data is stored in the system memory 15 by the memory control and distributor 14 according to the identity information in the data (S402), and checks whether there is the data in the system memory 15 Data to be sent (S403);

当该接收缓冲存储器12中没有该数据时,由该存储器控制与分配器14直接检查该系统存储器15中是否有该待发送数据(S403);When there is no such data in the receiving buffer memory 12, the memory control and allocator 14 directly checks whether there is the data to be sent in the system memory 15 (S403);

当该系统存储器15中有该待发送数据时,由该存储器控制与分配器14将该待发送数据合并该本机身份信息后,存入该发送缓冲存储器16(S404),且完成后再重新检查该接收缓冲存储器12中是否有该数据(S401);When there is the data to be sent in the system memory 15, after the data to be sent is merged with the local identity information by the memory control and allocator 14, it is stored in the sending buffer memory 16 (S404), and re-started after completion Check whether there is the data in the receiving buffer memory 12 (S401);

当该系统存储器15中没有该待发送数据时,该存储器控制与分配器14重新检查该接收缓冲存储器12中是否有该数据(S401)。When there is no data to be sent in the system memory 15, the memory control and allocator 14 rechecks whether there is the data in the receiving buffer memory 12 (S401).

通过交替检查该接收缓冲存储器12中有没有该数据需存入该系统存储器15,以及该系统存储器15中是否有该待发送数据需存入该发送缓冲存储器16,让该电源设备10可将其他电源设备传送过来的数据存入该系统存储器15供后续使用,且将系统存储器中的待发送数据发送给其他电源设备10,以此稳定地接收与发送数据。By alternately checking whether there is the data in the receiving buffer memory 12 that needs to be stored in the system memory 15, and whether there is the data to be sent in the system memory 15 that needs to be stored in the sending buffer memory 16, so that the power supply device 10 can send other The data transmitted by the power supply device is stored in the system memory 15 for subsequent use, and the data to be sent in the system memory is sent to other power supply devices 10, so as to receive and send data stably.

再者,该发送电路17是检查该转送缓冲存储器13中是否有该待转送数据。当该转送缓冲存储器13中有该待转送数据时,该发送电路17发送该转送缓冲存储器13中的待转送数据。当该转送缓冲存储器13中没有该待转送数据时,该发送电路17进一步检查该发送缓冲存储器16中是否有一待发送数据。当该发送缓冲存储器16中有该待发送数据时,该发送电路17发送该发送缓冲存储器16中的待发送数据后,该发送电路17重新检查该发送缓冲存储器16中是否有该待发送数据。而当该发送缓冲存储器16中没有该待发送数据时,该发送电路17重新检查该转送缓冲存储器13中是否有该待转送数据。Furthermore, the sending circuit 17 checks whether there is the data to be transferred in the transfer buffer memory 13 . When there is the data to be transferred in the transfer buffer memory 13 , the sending circuit 17 sends the data to be transferred in the transfer buffer memory 13 . When there is no data to be transmitted in the transmission buffer memory 13 , the sending circuit 17 further checks whether there is any data to be transmitted in the transmission buffer memory 16 . When there is the data to be sent in the sending buffer memory 16 , after the sending circuit 17 sends the data to be sent in the sending buffer memory 16 , the sending circuit 17 rechecks whether there is the data to be sent in the sending buffer memory 16 . And when there is no data to be transmitted in the transmission buffer memory 16, the transmission circuit 17 checks again whether there is the data to be transmitted in the transmission buffer memory 13.

进一步而言,请参阅图3C所示,该电源设备的数据传输方法还包含有以下步骤:Further, as shown in FIG. 3C , the data transmission method of the power supply device also includes the following steps:

由该发送电路17检查该转送缓冲存储器13中是否有该待转送数据(S501);Check whether there is the data to be transferred in the transfer buffer memory 13 by the sending circuit 17 (S501);

当该转送缓冲存储器13中有该待转送数据时,由该发送电路17发送该转送缓冲存储器13中的待转送数据(S502);When there is the data to be transferred in the transfer buffer memory 13, the sending circuit 17 sends the data to be transferred in the transfer buffer memory 13 (S502);

当该转送缓冲存储器13中没有该待转送数据时,由该发送电路17检查该发送缓冲存储器16中是否有该待发送数据(S503);When there is no data to be transferred in the transfer buffer memory 13, the sending circuit 17 checks whether there is the data to be sent in the sending buffer memory 16 (S503);

当该发送缓冲存储器16中有该待发送数据时,由该发送电路17发送该发送缓冲存储器中16的待发送数据(S504),且该发送电路17重新检查该转送缓冲存储器13中是否有该待转送数据(S501);When there is the data to be sent in the sending buffer memory 16, the sending circuit 17 sends the data to be sent in the sending buffer memory 16 (S504), and the sending circuit 17 rechecks whether there is the data in the forwarding buffer memory 13 Data to be transferred (S501);

当该发送缓冲存储器16中没有该待发送数据时,该发送电路17重新检查该转送缓冲存储器13中是否有该待转送数据(S501)。When there is no data to be transmitted in the transmission buffer memory 16, the transmission circuit 17 checks again whether there is data to be transmitted in the transmission buffer memory 13 (S501).

通过交替检查该转送缓冲存储器13中有没有该待转送数据及该发送缓冲存储器16中是否有该待发送数据,让该电源设备10可转送其他电源设备传送过来的数据,且可产生其自生的数据发送给其他电源设备10,以此稳定地转送与发送数据。By alternately checking whether there is the data to be transferred in the transfer buffer memory 13 and whether there is the data to be sent in the sending buffer memory 16, the power supply device 10 can transfer the data transmitted by other power supply devices, and can generate its own The data is sent to other power supply devices 10, thereby stably transferring and sending the data.

在本较佳实施例中,该接收缓冲存储器12、该转送缓冲存储器13、该发送缓冲存储器16分别是一先进先出(First Input First Output;FIFO)暂存器。In this preferred embodiment, the receiving buffer memory 12, the forwarding buffer memory 13, and the sending buffer memory 16 are each a first-in-first-out (First Input First Output; FIFO) register.

此外,请参阅图1A所示,该电源设备10在系统初始设定期间,还包含有一身份信息设定程序。当多台电源设备10串联或并联行成该电源系统,且该电源系统的多台电源设备10中的主机10a与从机10b之间通过信号接头A/B相互连接后,可先执行该身份信息设定程序,以设定该主机10a与该些从机10b的身份信息。举例来说,在系统初始设定时,该主机10a的身份信息会预设为最小值,例如0x00,而其他从机10b的身份信息则会预设为最大值,例如0xFF。而当执行该身份信息设定程序时,由该主机10a先发送一身份信息设定信号至第一个从机10b,而该身份信息设定信号中包含有主机10a的身份信息及参数信息,例如主机10a的身份信息为0x00,参数信息为0x00。In addition, please refer to FIG. 1A , the power supply device 10 also includes an identity information setting program during system initial setting. When multiple power supply devices 10 are connected in series or in parallel to form the power supply system, and the master 10a and slave 10b in the multiple power supply devices 10 of the power supply system are connected to each other through the signal connector A/B, the identity can be executed first. The information setting program is used to set the identity information of the master 10a and the slaves 10b. For example, when the system is initially set, the identity information of the master 10a is preset to a minimum value, such as 0x00, and the identity information of the other slaves 10b is preset to a maximum value, such as 0xFF. When executing the identity information setting program, the master 10a first sends an identity information setting signal to the first slave 10b, and the identity information setting signal includes the identity information and parameter information of the master 10a, For example, the identity information of the host 10a is 0x00, and the parameter information is 0x00.

当第一个从机10b接收到该身份信息设定信号时,第一个从机10b先检查该身份信息设定信号中的身份信息是否其本机身份信息相同。当接收到的身份信息设定信号中的身份信息与本机身份信息相同时,第一个从机10b会直接抛弃该身份信息设定信号。When the first slave 10b receives the identity information setting signal, the first slave 10b first checks whether the identity information in the identity information setting signal is the same as its own identity information. When the identity information in the received identity information setting signal is the same as the identity information of the local machine, the first slave 10b will directly discard the identity information setting signal.

但是当接收到的身份信息设定信号中的身份信息与本机身份信息不相同时,第一个从机10b则是将该身份信息设定信号中的该参数信息加1后,设定为其本机身份信息。But when the identity information in the identity information setting signal received is not the same as the identity information of this machine, the first slave 10b then adds 1 to the parameter information in the identity information setting signal and sets it as its native identity information.

例如第一个从机10b的身份信息的初始设定为0xFF,而接收到的身份信息设定信号中的身份信息为该主机10a的身份信息,即0x00。由于第一个从机10b接收到的身份信息“0x00”与第一个从机10b本身的身份信息“0xFF”并不相同,因此第一个从机10b将该参数信息0x00加1后,设定其身份信息为0x01,并另外产生并传送一新的身份信息设定信号至下一个从机10b。For example, the initial setting of the identity information of the first slave 10b is 0xFF, and the identity information in the received identity information setting signal is the identity information of the master 10a, namely 0x00. Since the identity information "0x00" received by the first slave 10b is not the same as the identity information "0xFF" of the first slave 10b itself, after the first slave 10b adds 1 to the parameter information 0x00, set Set its identity information as 0x01, and additionally generate and transmit a new identity information setting signal to the next slave 10b.

而该第一个从机10b产生的身份信息设定信号包含有主机10a的身份信息及与第一个从机10b的参数信息,例如第一个从机10b传送的身份信息设定信号中的身份信息为0x00,而参数信息为0x01。以此类推,藉此设定所有从机10b的身份信息。The identity information setting signal generated by the first slave 10b includes the identity information of the master 10a and the parameter information of the first slave 10b, for example, in the identity information setting signal transmitted by the first slave 10b The identity information is 0x00, and the parameter information is 0x01. By analogy, thereby setting the identity information of all slaves 10b.

而当该主机10a接收到最后一个从机10b发送的身份信息设定信号,该主机10a会检查接收到的身份信息设定信号中的身份信息是否其本机身份信息相同,且当接收到的身份信息设定信号中的身份信息与该主机10a的本机身份信息相同时,该本机10a会直接抛弃该身份信息设定信号,同时结束该身份信息设定程序。And when the master 10a receives the identity information setting signal sent by the last slave 10b, the master 10a will check whether the identity information in the received identity information setting signal is the same as its own identity information, and when the received When the identity information in the identity information setting signal is the same as the identity information of the host 10a, the local machine 10a will directly discard the identity information setting signal and end the identity information setting procedure at the same time.

例如,最后一个从机10b传送的身份信息设定信号中的身份信息为0x00,主机10a的本机身份信息为0x00,因此该主机10a可判断身份信息设定信号中的身份信息与其本机身份信息相同。For example, the identity information in the identity information setting signal transmitted by the last slave 10b is 0x00, and the local identity information of the master 10a is 0x00, so the master 10a can judge the identity information in the identity information setting signal and its own identity. The information is the same.

此外,该主机10a进一步根据最后一个从机10b发送的身份信息设定信号中的参数信息加1后,将其设定为一设备数量信息,供后续确认是否有从机10b掉线。In addition, the master 10a further adds 1 to the parameter information in the identity information setting signal sent by the last slave 10b, and sets it as a device quantity information for subsequent confirmation whether any slave 10b is offline.

总上所述,本发明的电源设备采用速度更快,且常见于可编程逻辑阵列(FieldProgramming Gate Array,FPGA)内的串列/解串列(Ser/Des)作为传输接头,配合状态机(Finite State Machine,FSM)流程或称为协定电路,用来处置接收与发送的数据。该电源设备10包含该接收电路(Rx_Logic)11、该发送电路(Tx_Logic)17与三个先进先出(FirstIn First Out FIFO)缓冲存储器,分别为该接收缓冲存储器(Rx_FIFO)12、该发送缓冲存储器(Tx_FIFO)16与该转送缓冲存储器(Forward_FIFO)13。该发送电路17轮流检查该发送缓冲存储器16与该转送缓冲存储器13是否有数据需要发送,由于该数据中会包含一设备身份码,即该身份信息,代表这笔数据是由哪一个电源设备10发送的,这个设备身份码是被存放入该发送缓冲存储器16的,其意义为分享电源设备10改变的数据让并联在一起的其他电源设备10都能知道,此意味每一电源设备10都能即时的收集到其他电源设备10的所有信息,以兹利用。该接收电路11会接收到所有并联在一起的电源设备10所发送带有该设备身份码的数据,且该接收电路11会检查每一笔接收到的数据的身份码栏位,如果身份码栏位是自己发送的,则直接抛弃整笔数据,此机制为收回自己发送的数据,避免数据无穷尽的传送,如果根据身份栏位确认该笔数据是其他电源设备10发送的,则该接收电路11将整笔数据同时推入该接收缓冲存储器12与该转送缓冲存储器13,因此本机的电源设备10将可由该接收缓冲存储器12获得所有电源设备10的信息。经由这样精简的通讯协定可达到高效率的并联控制系统。As mentioned above, the power supply device of the present invention adopts the serial/deserialization (Ser/Des) which is faster and commonly found in the programmable logic array (Field Programming Gate Array, FPGA) as the transmission connector, and cooperates with the state machine ( Finite State Machine, FSM) process, or protocol circuit, is used to process received and sent data. The power supply device 10 includes the receiving circuit (Rx_Logic) 11, the sending circuit (Tx_Logic) 17 and three First In First Out (FirstIn First Out FIFO) buffer memories, which are respectively the receiving buffer memory (Rx_FIFO) 12 and the sending buffer memory (Tx_FIFO) 16 and the forwarding buffer (Forward_FIFO) 13 . The sending circuit 17 checks in turn whether the sending buffer memory 16 and the transfer buffer memory 13 have data to send, because the data will contain a device identity code, that is, the identity information, which represents which power supply device 10 the data is from. sent, this device identity code is stored in the sending buffer memory 16, and its meaning is to share the data changed by the power supply device 10 so that other power supply devices 10 connected in parallel can know, which means that each power supply device 10 can All the information of other power supply equipment 10 is collected in real time for utilization. The receiving circuit 11 will receive the data with the device identity code sent by all the power supply devices 10 connected in parallel, and the receiving circuit 11 will check the identity code field of each received data, if the identity code field If the bit is sent by itself, the entire data will be directly discarded. This mechanism is to take back the data sent by itself to avoid endless transmission of data. 11 pushes the entire data into the receiving buffer memory 12 and the transfer buffer memory 13 at the same time, so the power supply device 10 of this machine can obtain the information of all power supply devices 10 from the receiving buffer memory 12 . A high-efficiency parallel control system can be achieved through such a simplified communication protocol.

以上所述仅是本发明的较佳实施例而已,并非对本发明做任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案的范围内,当可利用上述揭示的技术内容作出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above descriptions are only preferred embodiments of the present invention, and do not limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with this professional technology Personnel, without departing from the scope of the technical solution of the present invention, when the technical content disclosed above can be used to make some changes or modifications to equivalent embodiments with equivalent changes, but all the content that does not depart from the technical solution of the present invention, according to the present invention Any simple modifications, equivalent changes and modifications made to the above embodiments by the technical essence still belong to the scope of the technical solutions of the present invention.

Claims (10)

1. A power supply apparatus, comprising:
a receiving circuit;
a receiving buffer memory electrically connected with the receiving circuit;
a transfer buffer memory electrically connected to the receiving circuit;
the receiving circuit receives data and checks whether identity information in the data is identical with local body information;
when the identity information in the data is different from the local identity information, the receiving circuit stores the data into the receiving buffer memory and stores the data into the transferring buffer memory as data to be transferred;
wherein the receiving circuit discards the data when the identity information in the data is the same as the native body information.
2. The power supply apparatus according to claim 1, further comprising:
a transmitting circuit electrically connected to the transfer buffer memory;
a transmitting buffer memory electrically connected to the transmitting circuit;
wherein the transmitting circuit checks whether the data to be transferred exists in the transfer buffer memory;
when the data to be transferred exist in the transfer buffer memory, the sending circuit sends the data to be transferred in the transfer buffer memory and checks whether the data to be sent exist in the sending buffer memory;
wherein when the data to be transferred is not in the transfer buffer memory, the transmitting circuit checks whether the data to be transmitted is in the transmission buffer memory;
and when the data to be transmitted exists in the transmission buffer memory, the transmission circuit transmits the data to be transmitted in the transmission buffer memory.
3. The power supply apparatus according to claim 2, further comprising:
a memory control and distribution unit electrically connected to the receiving buffer memory and the transmitting buffer memory;
a system memory electrically connected to the memory control and allocator;
wherein the memory control and allocator checks whether the data is in the receive buffer memory;
when the data are stored in the receiving buffer memory, the memory control and distributor stores the data into the system memory according to the identity information in the data, and checks whether the data to be transmitted exist in the system memory;
when the data is not in the receiving buffer memory, the memory control and distribution device checks whether the data to be transmitted is in the system memory;
when the data to be transmitted exists in the system memory, the memory control and distributor combines the data to be transmitted with the local body information and stores the combined data into the transmission buffer memory.
4. The power supply apparatus of claim 1, wherein the receive buffer and the transfer buffer are each a first-in-first-out register.
5. The power supply apparatus according to claim 1, wherein said receiving circuit re-receives said data after said receiving circuit discards said data;
and after the receiving circuit stores the data into the receiving buffer memory and stores the data into the transferring buffer memory as the data to be transferred, the receiving circuit re-receives the data.
6. The power supply apparatus according to claim 2, wherein when there is no data to be transmitted in the transmission buffer memory, the transmission circuit rechecks whether there is the data to be transferred in the transfer buffer memory;
and after the sending circuit sends the data to be sent in the sending buffer memory, the sending circuit rechecks whether the data to be sent exist in the sending buffer memory.
7. A power supply apparatus according to claim 3, wherein when there is no data to be transmitted in said system memory, said memory control and allocator rechecks whether there is said data in said reception buffer memory;
wherein after the memory control and allocator stores the data to be transmitted in the transmission buffer memory, the memory control and allocator rechecks whether the data exists in the reception buffer memory.
8. A data transmission method of a power supply device, which is executed by a power supply device and comprises the steps of:
receiving a data by a receiving circuit;
checking by the receiving circuit whether a piece of identity information in the data is identical to a piece of own identity information;
when the identity information in the data is different from the local identity information, the receiving circuit stores the data into a receiving buffer memory, and stores the data into a transferring buffer memory as data to be transferred;
discarding the data by the receiving circuit when the identity information in the data is the same as the local identity information.
9. The data transmission method of a power supply device according to claim 8, further comprising the steps of:
checking whether the data to be transferred exists in the transfer buffer memory by a sending circuit;
when the data to be transferred exist in the transfer buffer memory, the sending circuit sends the data to be transferred in the transfer buffer memory and checks whether the data to be sent exists in a sending buffer memory;
when the data to be transferred is not in the transfer buffer memory, checking whether the data to be transferred is in the transmission buffer memory or not by the transmitting circuit;
and when the data to be transmitted exists in the transmission buffer memory, the transmission circuit transmits the data to be transmitted in the transmission buffer memory.
10. The data transmission method of a power supply apparatus according to claim 9, further comprising:
checking, by a memory control and allocator, whether the data is in the receive buffer memory;
when the data is stored in the receiving buffer memory, the memory control and distributor stores the data into a system memory according to the identity information in the data, and checks whether the data to be sent exist in the system memory;
checking, by the memory control and allocator, whether the system memory has the data to be transmitted when the data is not in the receive buffer memory;
when the data to be transmitted exists in the system memory, the memory control and distributor combines the data to be transmitted with the local body information and stores the combined data into the transmission buffer memory.
CN202111327917.9A 2021-11-10 2021-11-10 Power supply device and data transmission method thereof Pending CN116107489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111327917.9A CN116107489A (en) 2021-11-10 2021-11-10 Power supply device and data transmission method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111327917.9A CN116107489A (en) 2021-11-10 2021-11-10 Power supply device and data transmission method thereof

Publications (1)

Publication Number Publication Date
CN116107489A true CN116107489A (en) 2023-05-12

Family

ID=86262536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111327917.9A Pending CN116107489A (en) 2021-11-10 2021-11-10 Power supply device and data transmission method thereof

Country Status (1)

Country Link
CN (1) CN116107489A (en)

Similar Documents

Publication Publication Date Title
CN108683536B (en) Configurable dual-mode converged communication method of asynchronous network on chip and interface thereof
CN112269749B (en) I2C communication system
CN101847135B (en) Series-connected communication system and communication method thereof
US9116881B2 (en) Routing switch apparatus, network switch system, and routing switching method
CN115051881B (en) Gigabit Ethernet implementation method based on DSP28346 and ZYNQ double main chips
CN116775546A (en) Data transmission method for core interconnection interface and core interconnection interface
US11177969B2 (en) Interface device and data communication method
TWI786930B (en) Power supply device and data transmission method thereof
CN116107489A (en) Power supply device and data transmission method thereof
CN110708324A (en) Method and system for realizing point-to-point communication between FPGA (field programmable Gate array) board cards
CN119011331A (en) Data transmission method and system of EtherCAT coupling slave station
CN112363479B (en) A digital communication transmission method and system between field devices
CN112667533B (en) Semiconductor device including subsystem interface and communication method thereof
CN114185830A (en) Mailbox-based multiprocessor communication method, device, system and storage medium
CN107222379A (en) A kind of method and apparatus of serial communication
CN117081717A (en) Training method and communication system for data link
CN108984445A (en) Data transmission chip using JESD204B digital interface and data transmission method
CN113194048B (en) Device for dynamically switching CPU and GPU topology and use method
WO2023185237A1 (en) Message transmission method, and apparatus
CN112817895B (en) Communication method based on GPIO
TWI809741B (en) Multichip system having command transfer mechanism and address generating method
CN100417128C (en) packet processing structure
CN1486047A (en) Gateway control device and method
CN220569170U (en) Chip, communication device and communication system
CN116436489A (en) UART interaction system and method in half-duplex mode

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