[go: up one dir, main page]

CN111427830A - Data processing method and processor - Google Patents

Data processing method and processor Download PDF

Info

Publication number
CN111427830A
CN111427830A CN202010200398.9A CN202010200398A CN111427830A CN 111427830 A CN111427830 A CN 111427830A CN 202010200398 A CN202010200398 A CN 202010200398A CN 111427830 A CN111427830 A CN 111427830A
Authority
CN
China
Prior art keywords
data
slave
instructions
processor
processing method
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
CN202010200398.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.)
Guangdong Power Grid Co Ltd
Qingyuan Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Qingyuan Power Supply Bureau of Guangdong Power Grid 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 Guangdong Power Grid Co Ltd, Qingyuan Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202010200398.9A priority Critical patent/CN111427830A/en
Publication of CN111427830A publication Critical patent/CN111427830A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

本发明公开了一种数据处理方法及处理器,包括以下步骤:接收多个主机分别发送的数据指令;对多个所述数据指令进行分组排序;将处于最优先顺序的所述数据指令发送给从机,并对其他所述数据指令进行锁存;当所述从机返回响应数据或者在规定时间内未响应时,将所述响应数据或者未响应信息返回给主机,并将处于次一级的所述数据指令发送给所述从机,然后循环本步骤直至发送完所有所述数据指令。本发明实施例提供的一种数据处理方法及处理器,能够解决多主机同时向同一从机发送数据指令导致的通讯异常问题,在不增加电能表串口数量或者电能表串口数量不足的情况下,能够实现多个主机对电能表进行实时监控,有利于电能表系统后期的维护改造。

Figure 202010200398

The invention discloses a data processing method and a processor, comprising the following steps: receiving data commands respectively sent by multiple hosts; grouping and sorting the plurality of data commands; sending the data commands in the highest priority order to The slave machine latches the other data commands; when the slave machine returns response data or does not respond within a specified time, it returns the response data or non-response information to the master, and will be in the next level The data command is sent to the slave, and then this step is repeated until all the data commands are sent. The data processing method and processor provided by the embodiments of the present invention can solve the problem of abnormal communication caused by multiple hosts sending data commands to the same slave at the same time. It can realize real-time monitoring of the electric energy meter by multiple hosts, which is beneficial to the maintenance and reconstruction of the electric energy meter system in the later stage.

Figure 202010200398

Description

一种数据处理方法及处理器A data processing method and processor

技术领域technical field

本发明属于数据处理技术领域,尤其涉及一种数据处理方法及处理器。The invention belongs to the technical field of data processing, and in particular relates to a data processing method and a processor.

背景技术Background technique

负荷管理终端和电能表之间的通讯、电能表与售电控制器之间的通讯,都是通过串口(如RS232、RS485、RS422串口)进行通讯的。负荷管理终端和售电控制器都是作为串口通讯的主机与作为从机的电能表进行通讯(主机为主通讯发起方,从机为通讯应答方,从机不主动发送数据),采用半双工方式通讯,如果两个主机同时向从机发送数据时,会导致数据总线冲突,以至于2个主机无法获取准确数据,严重时甚至于造成串口总线异常,进入死机状态,一直无法通讯的问题。The communication between the load management terminal and the electric energy meter, and the communication between the electric energy meter and the electricity sales controller are all through serial ports (such as RS232, RS485, and RS422 serial ports). Both the load management terminal and the electricity sales controller are used as the serial communication host to communicate with the electric energy meter as the slave (the host is the main communication initiator, the slave is the communication responder, and the slave does not actively send data). If the two masters send data to the slave at the same time, it will cause a data bus conflict, so that the two masters cannot obtain accurate data. In severe cases, the serial bus may be abnormal, enter a crash state, and have been unable to communicate. .

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种数据处理方法及处理器,以解决上述技术问题。The purpose of the present invention is to provide a data processing method and processor to solve the above technical problems.

为达此目的,本发明采用以下技术方案:For this purpose, the present invention adopts the following technical solutions:

第一方面,本发明提供了一种数据处理方法,包括以下步骤:In a first aspect, the present invention provides a data processing method, comprising the following steps:

接收多个主机分别发送的数据指令;Receive data commands sent by multiple hosts respectively;

对多个所述数据指令进行分组排序;grouping and sorting a plurality of the data instructions;

将处于最优先顺序的所述数据指令发送给从机,并对其他所述数据指令进行锁存;Send the data command in the highest priority order to the slave, and latch the other data commands;

当所述从机返回响应数据或者在规定时间内未响应时,将所述响应数据或者未响应信息返回给主机,并将处于次一级的所述数据指令发送给所述从机,然后循环本步骤直至发送完所有所述数据指令。When the slave returns response data or fails to respond within a specified time, it returns the response data or non-response information to the master, and sends the data command at the next level to the slave, and then loops This step is until all the data commands are sent.

可选地,所述对多个所述数据指令进行分组排序,包括:Optionally, the performing grouping and sorting on a plurality of the data instructions includes:

根据预设的优先级别对多个所述数据指令进行分组排序;grouping and sorting a plurality of the data instructions according to a preset priority level;

其中,所述优先级别包括指令优先级别和主机优先级别。Wherein, the priority level includes an instruction priority level and a host priority level.

第二方面,本发明还提供了一种处理器,包括:In a second aspect, the present invention also provides a processor, comprising:

数据接收单元,用于接收多个主机分别发送的数据指令;a data receiving unit for receiving data commands sent by multiple hosts respectively;

分组排序单元,用于对多个所述数据指令进行分组排序;a grouping sorting unit, configured to perform grouping sorting on a plurality of the data instructions;

数据转送单元,用于依照顺序将所述数据指令转送给从机,并将所述从机的响应数据或者未响应信息返回给主机;a data transfer unit, configured to transfer the data instruction to the slave in sequence, and return the response data or unresponsive information of the slave to the host;

数据锁存单元,用于将所述数据转送单元暂未转送的所述数据指令进行锁存。The data latching unit is used for latching the data instruction that has not been transferred temporarily by the data transfer unit.

可选地,所述数据接收单元包括:Optionally, the data receiving unit includes:

用于连接多个主机的数据输出接口电路;A data output interface circuit for connecting multiple hosts;

用于连接所述数据输出接口电路和所述分组排序单元的信息交互通讯电路。An information exchange communication circuit for connecting the data output interface circuit and the packet sorting unit.

可选地,处理器还包括:Optionally, the processor further includes:

电源掉电保护电路和死机自动复位电路。Power failure protection circuit and crash automatic reset circuit.

与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

通过分组排序将多个主机发送的数据指令依次转送给从机,暂时未转送的数据指令锁存在数据锁存单元内,当从机返回响应数据或者在规定时间内未响应时,将响应数据或者未响应信息返回给主机。因此,本发明实施例提供的一种数据处理方法及处理器,能够解决多主机同时向同一从机发送数据指令导致的通讯异常问题,在不增加电能表串口数量或者电能表串口数量不足的情况下,能够实现多个主机对电能表进行实时监控,有利于电能表系统后期的维护改造。The data commands sent by multiple masters are sequentially transferred to the slaves through packet sorting, and the data commands that have not been transferred temporarily are locked in the data latch unit. When the slaves return response data or fail to respond within a specified time, the response data or No response information is returned to the host. Therefore, the data processing method and processor provided by the embodiments of the present invention can solve the problem of abnormal communication caused by multiple hosts sending data commands to the same slave at the same time, without increasing the number of serial ports of the electric energy meter or the insufficient number of serial ports of the electric energy meter In this way, it is possible to realize real-time monitoring of the electric energy meter by multiple hosts, which is beneficial to the maintenance and reconstruction of the electric energy meter system in the later stage.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying 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, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

本说明书所绘示的结构、比例、大小等,均仅用以配合说明书所揭示的内容,以供熟悉此技术的人士了解与阅读,并非用以限定本发明可实施的限定条件,故不具技术上的实质意义,任何结构的修饰、比例关系的改变或大小的调整,在不影响本发明所能产生的功效及所能达成的目的下,均应仍落在本发明所揭示的技术内容所能涵盖的范围内。The structures, proportions, sizes, etc. shown in this specification are only used to cooperate with the contents disclosed in the specification, so as to be understood and read by those who are familiar with the technology, and are not used to limit the conditions for the implementation of the present invention, so there is no technical The substantive meaning of the above, any modification of the structure, the change of the proportional relationship or the adjustment of the size, should still fall within the technical content disclosed in the present invention, without affecting the effect that the present invention can produce and the purpose that can be achieved. within the range that can be covered.

图1为本发明实施例提供的一种数据处理方法的方法流程图;1 is a method flowchart of a data processing method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种处理器的结构框图。FIG. 2 is a structural block diagram of a processor according to an embodiment of the present invention.

具体实施方式Detailed ways

为使得本发明的目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the following description The embodiments described above are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参阅图1所示。See Figure 1.

本实施例提供了一种数据处理方法,包括:This embodiment provides a data processing method, including:

步骤S1、接收多个主机分别发送的数据指令;Step S1, receiving data commands sent by multiple hosts respectively;

步骤S2、对多个数据指令进行分组排序;Step S2, grouping and sorting a plurality of data instructions;

步骤S3、将处于最优先顺序的数据指令发送给从机,并对其他数据指令进行锁存;Step S3, sending the data command in the highest priority order to the slave, and latching other data commands;

步骤S4、当从机返回响应数据或者在规定时间内未响应时,将响应数据或者未响应信息返回给主机,并将处于次一级的数据指令发送给从机。Step S4, when the slave returns response data or fails to respond within a specified time, returns the response data or non-response information to the host, and sends a data command at the next level to the slave.

最后循环执行步骤S4直至发送完所有数据指令。Finally, step S4 is executed cyclically until all data commands are sent.

在步骤S2中,对多个数据指令进行分组排序,包括:In step S2, a plurality of data instructions are grouped and sorted, including:

根据预设的优先级别对多个数据指令进行分组排序;Group and sort multiple data commands according to the preset priority level;

其中,优先级别包括指令优先级别和主机优先级别。Among them, the priority level includes the command priority level and the host priority level.

例如控制指令的优先级别通常大于查询指令的优先级别,重要设备作为主机的优先级别大于普通设备作为主机的优先级别。据此可以实现数据指令的分组排序。For example, the priority level of the control command is usually higher than that of the query command, and the priority level of an important device as a host is higher than that of a common device as a host. According to this, the grouping ordering of data instructions can be realized.

在步骤S3中,每次只发送一条数据指令,因此虽然是分组排序,但每组只有一条数据指令,对应一个主机。In step S3, only one data command is sent at a time, so although it is grouped, there is only one data command in each group, corresponding to one host.

在步骤S4中,该数据处理方法会收到从机返回的响应数据,然后将该响应数据返回给对应主机,或者是从机在规定时间未响应,该数据处理方法会返回未响应信息给对应主机。In step S4, the data processing method will receive the response data returned by the slave, and then return the response data to the corresponding host, or if the slave does not respond within a specified time, the data processing method will return unresponsive information to the corresponding host host.

本实施例提供的数据处理方法,能够解决多主机同时向同一从机发送数据指令导致的通讯异常问题。特别是在配电网中,作为从机的电能表,在不增加串口数量或者串口数量不足的情况下,多个主机同时向电能表发送数据指令时,可以使用本实施例提供的数据处理方法,避免发生通讯异常问题。The data processing method provided in this embodiment can solve the problem of abnormal communication caused by multiple masters sending data commands to the same slave at the same time. Especially in a power distribution network, as a slave power meter, the data processing method provided in this embodiment can be used when multiple hosts send data commands to the power meter at the same time without increasing the number of serial ports or the number of serial ports is insufficient. , to avoid abnormal communication problems.

在本申请的另一实施例中,还提供了一种处理器,用于实现上述数据处理方法。该处理器包括:In another embodiment of the present application, a processor is also provided for implementing the above data processing method. The processor includes:

数据接收单元15,用于接收多个主机16分别发送的数据指令;The data receiving unit 15 is used to receive the data commands sent by the multiple hosts 16 respectively;

分组排序单元14,用于对多个数据指令进行分组排序;a grouping sorting unit 14, configured to perform grouping sorting on a plurality of data instructions;

数据转送单元12,用于依照顺序将数据指令转送给从机11,并将从机11的响应数据或者未响应信息返回给主机15;The data transfer unit 12 is used to transfer the data instructions to the slave 11 in sequence, and return the response data or unresponsive information of the slave 11 to the host 15;

数据锁存单元13,用于将数据转送单元12暂未转送的数据指令进行锁存。The data latching unit 13 is used for latching the data instruction that has not been transferred temporarily by the data transferring unit 12 .

具体的,数据接收单元15还包括:Specifically, the data receiving unit 15 further includes:

用于连接多个主机16的数据输出接口电路(图中未示出);A data output interface circuit for connecting a plurality of hosts 16 (not shown in the figure);

用于连接数据输出接口电路和分组排序单元14的信息交互通讯电路(图中未示出)。信息交互通讯电路用于将数据输出接口电路接收的多个主机16发送的数据指令进行信息交互,并转发给分组排序单元14。For connecting the data output interface circuit and the information exchange communication circuit of the packet sorting unit 14 (not shown in the figure). The information exchange communication circuit is used for information exchange between the data instructions sent by the plurality of hosts 16 received by the data output interface circuit, and forwarded to the packet sorting unit 14 .

具体的,处理器还包括:Specifically, the processor further includes:

电源掉电保护电路(图中未示出)和死机自动复位电路(图中未示出),电源掉电保护电路的作用在于,当处理器的供电电压不稳定时,能够维持主芯片的正常工作,而自动复位电路的作用在于,用于还原死机前的状态。Power failure protection circuit (not shown in the figure) and automatic crash reset circuit (not shown in the figure), the function of the power failure protection circuit is to maintain the normal operation of the main chip when the power supply voltage of the processor is unstable. work, and the function of the automatic reset circuit is to restore the state before the crash.

因此,本实施例提供的处理器,通过数据接收单元15连接多个主机16的输出发送接口;分组排序单元14将主机16发送的数据指令进行分组排序;数据转送单元12依照顺序将数据指令转送给从机11,每次只转送一条数据指令,并将从机11的响应数据或者未响应信息通过分组排序单元14和数据接收单元15返回给对应的主机16;其他暂未转送的数据指令通过数据锁存单元13锁存;最终实现多个主机16能够同时对同一从机11发送数据,保证通讯畅通。Therefore, the processor provided in this embodiment is connected to the output sending interfaces of the multiple hosts 16 through the data receiving unit 15; the grouping sorting unit 14 groups the data commands sent by the hosts 16; the data transferring unit 12 transfers the data commands in sequence. To the slave 11, only one data command is transferred at a time, and the response data or unresponsive information of the slave 11 is returned to the corresponding host 16 through the packet sorting unit 14 and the data receiving unit 15; The data latching unit 13 latches; finally, multiple masters 16 can send data to the same slave 11 at the same time to ensure smooth communication.

在此,仅为了描述特定的示例实施例的目的使用专业词汇,并且不是意指为限制的目的。除非上下文清楚地作出相反的表示,在此使用的单数形式“一个(a)”、“一个(an)”和“该(the)”可以意指为也包括复数形式。术语“包括(comprises)”、“包括(comprising)”、“包括(including)”和“具有(having)”是包括在内的意思,并且因此指定存在所声明的特征、整体、步骤、操作、元件和/或组件,但是不排除存在或额外地具有一个或以上的其他特征、整体、步骤、操作、元件、组件和/或其组合。除非明确地指示了执行的次序,在此描述的该方法步骤、处理和操作不解释为一定需要按照所论述和示出的特定的次序执行。还应当理解的是,可以采用附加的或者可选择的步骤。Here, specialized vocabulary is used for the purpose of describing particular example embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an (an)" and "the (the)" may be intended to include the plural forms as well, unless the context clearly dictates otherwise. The terms "comprises", "comprising", "including" and "having" are inclusive and thus specify the presence of the stated features, integers, steps, operations, elements and/or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or combinations thereof. Unless the order of performance is explicitly indicated, the method steps, processes, and operations described herein are not to be construed as necessarily requiring performance in the particular order discussed and illustrated. It should also be understood that additional or alternative steps may be employed.

当元件或者层称为是“在……上”、“与……接合”、“连接到”或者“联接到”另一个元件或层,其可以是直接在另一个元件或者层上、与另一个元件或层接合、连接到或者联接到另一个元件或层,也可以存在介于其间的元件或者层。与此相反,当元件或层称为是“直接在……上”、“与……直接接合”、“直接连接到”或者“直接联接到”另一个元件或层,则可能不存在介于其间的元件或者层。其他用于描述元件关系的词应当以类似的方式解释(例如,“在……之间”和“直接在……之间”、“相邻”和“直接相邻”等)。在此使用的术语“和/或”包括该相关联的所罗列的项目的一个或以上的任一和所有的组合。虽然此处可能使用了术语第一、第二、第三等以描述各种的元件、组件、区域、层和/或部分,这些元件、组件、区域、层和/或部分不受到这些术语的限制。这些术语可以只用于将一个元件、组件、区域或部分与另一个元件、组件、区域或部分区分。除非由上下文清楚地表示,在此使用诸如术语“第一”、“第二”及其他数值的术语不意味序列或者次序。因此,在下方论述的第一元件、组件、区域、层或者部分可以采用第二元件、组件、区域、层或者部分的术语而不脱离该示例实施例的教导。When an element or layer is referred to as being "on," "engaged with," "connected to," or "coupled to" another element or layer, it can be directly on, or in conjunction with, the other element or layer. One element or layer is joined, connected or coupled to another element or layer, and intervening elements or layers may also be present. In contrast, when an element or layer is referred to as being "directly on," "directly engaged with," "directly connected to," or "directly coupled to" another element or layer, there may be no intervening elements or layers in between. Other words used to describe the relationship of elements should be interpreted in a similar fashion (eg, "between" and "directly between," "adjacent" and "directly adjacent," etc.). As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items. Although the terms first, second, third, etc. may be used herein to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections are not limited by these terms limit. These terms may only be used to distinguish one element, component, region or section from another element, component, region or section. The use of terms such as the terms "first," "second," and other numerical terms herein do not imply a sequence or order unless clearly indicated by the context. Thus, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the example embodiments.

空间的相对术语,诸如“内”、“外”、“在下面”、“在……的下方”、“下部”、“上方”、“上部”等,在此可出于便于描述的目的使用,以描述如图中所示的一个元件或者特征和另外一个或多个元件或者特征之间的关系。空间的相对术语可以意指包含除该图描绘的取向之外该装置的不同的取向。例如如果翻转该图中的装置,则描述为“在其他元件或者特征的下方”或者“在元件或者特征的下面”的元件将取向为“在其他元件或者特征的上方”。因此,示例术语“在……的下方”可以包含朝上和朝下的两种取向。该装置可以以其他方式取向(旋转90度或者其他取向)并且以此处的空间的相对描述解释。Spatially relative terms, such as "inside", "outside", "below", "below", "lower", "above", "upper", etc., may be used herein for ease of description , to describe the relationship between one element or feature and one or more other elements or features as shown in the figures. Spatially relative terms may be meant to encompass different orientations of the device than the orientation depicted in this figure. For example, if the device in this figure is turned over, elements described as "below" or "beneath" other elements or features would then be oriented "above" the other elements or features. Thus, the example term "under" can encompass both an orientation of upward and downward. The device may be otherwise oriented (rotated 90 degrees or otherwise) and interpreted in relative terms of space herein.

以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present invention.

Claims (5)

1. A data processing method, characterized by comprising the steps of:
receiving data instructions respectively sent by a plurality of hosts;
grouping and ordering a plurality of the data instructions;
sending the data instructions in the highest priority order to a slave, and latching other data instructions;
and when the slave machine returns response data or does not respond within a specified time, returning the response data or the non-response information to the master machine, sending the data instruction at the next level to the slave machine, and then circulating the step until all the data instructions are sent.
2. The data processing method of claim 1, wherein the packet ordering the plurality of data instructions comprises:
grouping and sequencing the data instructions according to a preset priority level;
wherein the priority levels include an instruction priority level and a host priority level.
3. A processor, comprising:
the data receiving unit is used for receiving data instructions sent by the plurality of hosts respectively;
the grouping sequencing unit is used for grouping and sequencing a plurality of data instructions;
the data transfer unit is used for transferring the data instruction to the slave machine according to the sequence and returning the response data or the non-response information of the slave machine to the host machine;
and the data latching unit is used for latching the data instruction which is not transferred temporarily by the data transferring unit.
4. The processor of claim 3, wherein the data receiving unit comprises:
the data output interface circuit is used for connecting a plurality of hosts;
and the information interaction communication circuit is used for connecting the data output interface circuit and the packet sequencing unit.
5. The processor of claim 3, further comprising:
a power supply power-down protection circuit and a crash automatic reset circuit.
CN202010200398.9A 2020-03-20 2020-03-20 Data processing method and processor Pending CN111427830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010200398.9A CN111427830A (en) 2020-03-20 2020-03-20 Data processing method and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010200398.9A CN111427830A (en) 2020-03-20 2020-03-20 Data processing method and processor

Publications (1)

Publication Number Publication Date
CN111427830A true CN111427830A (en) 2020-07-17

Family

ID=71548354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010200398.9A Pending CN111427830A (en) 2020-03-20 2020-03-20 Data processing method and processor

Country Status (1)

Country Link
CN (1) CN111427830A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650703A (en) * 2021-01-07 2021-04-13 上海是杰工业技术有限公司 RS485 serial port distribution method, device, equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202111744U (en) * 2011-06-14 2012-01-11 甘肃中力电气技术开发有限公司 Intelligent wireless network metering device
CN102809741A (en) * 2012-08-14 2012-12-05 河南弘正电气科技有限公司 Intelligent monitoring and managing information system for electric energy metering devices of substations
CN103200695A (en) * 2013-02-16 2013-07-10 华为技术有限公司 Method, device and system of contention access channel
CN103337142A (en) * 2013-07-22 2013-10-02 长沙威胜信息技术有限公司 Wireless networking method for electric energy meter management system
US20160033561A1 (en) * 2010-11-01 2016-02-04 Northern Design (Electronics) Limited Modular metering system
CN105827859A (en) * 2016-05-10 2016-08-03 南京铁道职业技术学院 Smartphone bluetooth infrared meter reading system and method of electric energy meter
CN110531686A (en) * 2019-09-28 2019-12-03 徐州可云智能科技有限公司 A kind of devices and methods therefor based on single master mostly from the more hosts of protocol realization

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160033561A1 (en) * 2010-11-01 2016-02-04 Northern Design (Electronics) Limited Modular metering system
CN202111744U (en) * 2011-06-14 2012-01-11 甘肃中力电气技术开发有限公司 Intelligent wireless network metering device
CN102809741A (en) * 2012-08-14 2012-12-05 河南弘正电气科技有限公司 Intelligent monitoring and managing information system for electric energy metering devices of substations
CN103200695A (en) * 2013-02-16 2013-07-10 华为技术有限公司 Method, device and system of contention access channel
CN103337142A (en) * 2013-07-22 2013-10-02 长沙威胜信息技术有限公司 Wireless networking method for electric energy meter management system
CN105827859A (en) * 2016-05-10 2016-08-03 南京铁道职业技术学院 Smartphone bluetooth infrared meter reading system and method of electric energy meter
CN110531686A (en) * 2019-09-28 2019-12-03 徐州可云智能科技有限公司 A kind of devices and methods therefor based on single master mostly from the more hosts of protocol realization

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650703A (en) * 2021-01-07 2021-04-13 上海是杰工业技术有限公司 RS485 serial port distribution method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105897574A (en) Modbus RTU/TCP gateway device supporting double-Ethernet and double-master-station redundancy
DE112013004607T5 (en) Run-time fabric reconfiguration
CN106506625A (en) Four-control server and four-control server communication method
CN102811152B (en) Method for realizing real-time transaction and data exchange of multiple main bus network communication
CN108924008A (en) A kind of dual controller data communications method, device, equipment and readable storage medium storing program for executing
CN106339350A (en) Method and device for optimizing memory access distance-on-chip of many-core processor
CN119597475A (en) A memory expansion system, method and device
CN105763488B (en) Data center aggregation core switch and backboard thereof
CN110557432A (en) A buffer pool balance optimization method, system, terminal and storage medium
CN105095148A (en) Mixed type three-dimensional on-chip network
CN111427830A (en) Data processing method and processor
CN103676880B (en) The communication module of CMP integrated control system
WO2021213076A1 (en) Method and device for constructing communication topology structure on basis of multiple processing nodes
CN209182816U (en) A Triggered Dual Redundant Network
WO2018004931A1 (en) Techniques for virtual ethernet switching of a multi-node fabric
CN103368931A (en) Data processing apparatus, computation device, and control method for data processing apparatus
CN120763250A (en) Interconnected system, method for synchronizing data of interconnected system, and electronic equipment
CN105471652A (en) Big data all-in-one machine and its redundant management unit
CN219247874U (en) Power line routing service device
CN108933687A (en) A kind of power consumption control method and device
US9785594B2 (en) Micro server and switch device thereof
CN116939897A (en) 5G power gateway and data transmission method
JPH0326936B2 (en)
CN205792666U (en) A kind of Modbus RTU/TCP gateway apparatus supporting the double main redundancy of double net
CN112506824A (en) Chip and data interaction method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200717

RJ01 Rejection of invention patent application after publication