Suche Bilder Maps Play YouTube News Gmail Drive Mehr »
Anmelden
Nutzer von Screenreadern: Klicke auf diesen Link, um die Bedienungshilfen zu aktivieren. Dieser Modus bietet die gleichen Grundfunktionen, funktioniert aber besser mit deinem Reader.

Patentsuche

  1. Erweiterte Patentsuche
VeröffentlichungsnummerCN100543680 C
PublikationstypErteilung
AnmeldenummerCN 200710072952
Veröffentlichungsdatum23. Sept. 2009
Eingetragen12. Jan. 2007
Prioritätsdatum12. Jan. 2007
Auch veröffentlicht unterCN101221506A
Veröffentlichungsnummer200710072952.4, CN 100543680 C, CN 100543680C, CN 200710072952, CN-C-100543680, CN100543680 C, CN100543680C, CN200710072952, CN200710072952.4
Erfinder伟 刘
Antragsteller深圳市科陆电子科技股份有限公司
Zitat exportierenBiBTeX, EndNote, RefMan
Externe Links:  SIPO, Espacenet
Method for downloading and updating chip program of electric energy meter
CN 100543680 C
Zusammenfassung  übersetzt aus folgender Sprache: Chinesisch
本发明涉及一种对电能表芯片程序进行下载更新的方法,在上层软件执行如下步骤:a.上层软件下行广播指令帧1...N;b.上层软件下行问答指令帧N+1,下行上层软件输出CRC16校验结果;c.上层软件下行问答指令帧N+2,读取电能表返回的标志位数据;在电能表执行如下步骤:d.电能表接收到广播指令帧数据后,切换到更新程序状态并进行相应的更新处理;e.接收到上层软件下行的指令帧N+1后,将上层软件的下行CRC16校验结果与电能表内部的CRC16校验结果进行比较处理;f.接收到上层软件下行的指令帧N+2后,电能表向上层软件返回带标志位数据的应答帧。 The present invention relates to a power meter chip program to download the update method, perform the following steps in the upper layer software: a top software instruction downlink broadcast frame 1 ... N; b downstream Answers upper software instruction frame N + 1, the downlink. top software output CRC16 check result; c downstream Answers upper software instruction frame N + 2, to read the meter returned flag data; and perform the following steps in meter:.. d meter receiving the broadcast command frame data switching to update the status and the corresponding update process;. e downlink received top software instruction frame N + 1, will be the top software downside CRC16 meter verification results and the results of the internal CRC16 checksum comparison process; f. received instruction upper software downlink frame N + 2, the power meter returns a response frame with the flag data to the upper layer software. 实施本发明,使得电能表批量化生产过程中电能表芯片程序下载更新,速度更快、可靠性更高。 Embodiments of the present invention, so that the bulk of the energy meter meter chip production process, download the update, faster, and more reliable.
Ansprüche(9)  übersetzt aus folgender Sprache: Chinesisch
1、一种对电能表芯片程序进行下载更新的方法,在上层软件与电能表之间进行数据传输,其特征在于,在上层软件执行如下步骤:a、上层软件下行广播指令帧1...N,其中N由电能表的芯片程序大小决定;b、上层软件下行问答指令帧N+1,下行上层软件输出循环冗余校验的校验结果,所述循环冗余校验的校验结果由所述广播指令帧1...N中的校验和进行循环冗余校验运算所得到;c、上层软件下行问答指令帧N+2,读取电能表返回的标志位数据;在电能表执行如下步骤:d、电能表接收到所述广播指令帧数据后,切换到更新程序状态并进行相应的更新处理;e、接收到上层软件下行的指令帧N+1后,将上层软件的下行循环冗余校验的校验结果与电能表内部的循环冗余校验的校验结果进行比较处理;f、接收到上层软件下行的指令帧N+2后,电能表向上层软件发送带标志位数据的应答帧。 1. A meter chip program to download the update method, between the upper software and meter data transmission, wherein the upper layer software to perform the following steps: a, upper layer software instruction frame 1 downstream broadcast ... N, where N is the chip energy meter determines the size of the program; b, upper layer software instruction frame downstream Q N + 1, the downstream check result output upper software cyclic redundancy check and the check result of cyclic redundancy check frame by the broadcast instruction 1 ... N in check and cyclic redundancy check operation obtained; c, the upper layer software instruction frame downstream Answers N + 2, to read the meter returned flag data; and in energy Table perform the following steps: d, meter after receiving the broadcast command frame data, switch to update the status and the corresponding update processing; e, receiving the instruction of the top software downlink frame N + 1, the upper layer software check the results downward cyclic redundancy check and the check result of meter internal cyclic redundancy check comparing treatment; f, the upper layer software instructions received downlink frame N + 2, the power meter software to send to the upper band response frame flag data.
2、 根据权利要求1所述的对电能表芯片程序进行下载更新的方法,其特征在于,所述步骤c具体包括:若所述标志位数据为1,则表示该电能表芯片程序更新不成功; 若所述标志位数据为0,则表示该电能表芯片程序更新成功。 2, based on the meter chip program to download the update method according to claim 1, wherein said step c include: if the flag data is 1, it indicates that the update is not successful energy meter chip ; if the flag bit data is 0, it means that the meter chip program update was successful.
3、 根据权利要求1或2所述的对电能表芯片程序进行下载更新的方法,其特征在于,所述步骤d中,所述相应的更新处理具体包括:dl、置标志位为0;d2、当收到完整的广播指令帧l...N后,进行校验和运算,并核对所述指令帧是否安全完整;d3、进行电能表程序的更新;若校验或更新过程出现任何非法情况,则置标志位为l,但整个广播过程中不上行任何指令帧。 3. The right meter chip program to download the update method according to claim 1 or 2, wherein said step d, the appropriate update process specifically includes: dl, the flag is set to 0; d2 When receiving the complete broadcast command frame l ... N, the checksum calculation and check whether the safety and integrity of the command frame; d3, meter program update; if the check or update any illegal the case, the flag is set to l, but the whole process is not broadcasting any instruction uplink frame.
4、 根据权利要求1或2所述的对电能表芯片程序进行下载更新的方法, 其特征在于,所述步骤e中,所述比较处理具体包括:若上层软件的下行循环冗余校验的校验结果与电能表内部的循环冗余校验的校验结果相同,则表示所收到的指令帧连续的,且每一帧都是完整的;若上层软件的下行循环冗余校验的校验结果与电能表内部的循环冗余校验的校验结果不同,则表示所收到的数据包为非法,将其标志位置为l。 4, according to the meter chip program to download updates 1 or 2 of the preceding claims, wherein the step e, the comparison process, including: If the upper-layer software Downstream cyclic redundancy check the results of verification check result meter inside the same cyclic redundancy check, then the received command frame continuous, and each frame is complete; if the upper software cyclic redundancy check down the results of verification check result meter internal cyclic redundancy check are different, the received packet is illegal, its flag is l.
5、 根据权利要求1所述的对电能表芯片程序进行下载更新的方法,其特征在于,所述上层软件与所述电能表之间的数据传输采用DL/T645-1997通讯规约。 5. The right to meter chip program to download the update method according to claim, wherein the data transmission of the upper layer of software between the meter using DL / T645-1997 communication protocols.
6、 根据权利要求1所述的对电能表芯片程序进行下载更新的方法,其特征在于,广播指令帧每一帧数据为128字节,在广播指令帧下行过程中,电能表禁止上行指令帧,并且在芯片程序更新过程中电能表禁止主动上行指令帧。 6, according to the meter chip program download updated method according to claim 1, characterized in that the broadcast command frame data for each frame is 128 bytes, the instruction in the broadcast downlink frame during meter upstream prohibition instruction frame and the update process in the chip meter prohibit active upstream command frame.
7、 根据权利要求1所述的方法,其特征在于,所述循环冗余校验采用循环冗余校验16位的校验方法对所有广播指令帧的校验和结果进行校验。 7. The method according to claim 1, characterized in that said cyclic redundancy check using the results of the check and the cyclic redundancy check verification method 16 for all broadcast command check frames.
8、 根据权利要求1所述的对电能表芯片程序进行下载更新的方法,其特征在于,当电能表接收到广播指令帧数据后,进行更新芯片程序;若该更新过程中若出现错误,则将标志位置为l,表示电能表更新程序为不合格。 8, according to the meter chip program to download the update method according to claim 1, characterized in that, when the meter receives the broadcast command frame data, updating the chip program; if the update process, if an error occurs, The flag is l, expressed meter updates ineligible.
9、 根据权利要求1所述的对电能表芯片程序进行下载更新的方法,其特征在于,所述上层软件通过RS232或RS485串口与所述电能表连接。 9, according to the meter chip program to download the update method according to claim 1, characterized in that the upper layer software via RS232 or RS485 serial port connected to the meter.
Beschreibung  übersetzt aus folgender Sprache: Chinesisch

一种对电能表芯片程序进行下载更新的方法 A kind of energy meter chip program to download the update method

技术领域 Technical Field

本发明涉及电能表和通讯技术领域,更具体地说,涉及一种对电能表芯片程序进行下载更新的方法。 The present invention relates to the field of energy meters and communications technology, and more particularly, relates to a power meter chip program to download the update method.

背景技木 Background technology of wood

在电能表生产过程中, 一般存在储备大量的库存品以备急时,库存品中有各种型号产品,产品中芯片程序也各有不同。 In the meter production process, there is generally a lot of inventory reserves to prepare for emergency, the inventory in a variety of models, products, chips procedures are also different. 当需要出货时, 一般是从库存品中调出相适应型号的产品,但库存品中产品功能可能不能全面符合市场需求, 这时需要对库存品中的芯片程序进行下载更新,以至满足市场需求。 When you need to ship, generally tune out from inventory adapt types of products, but the inventory of product functionality may not be fully in line with market demand, then the need to inventory the chip program to download the update, as well as to meet market needs. 在批量化生产过程中,特别是在交货时间紧,出货量大时更显得尤为方便重要。 In the mass production process, especially in the tight delivery times, even more important it is particularly convenient when large shipments.

如图1所示,在现有技术中, 一般采用问答式的软件下载更新方案,下载更新的步骤如下: 1, in the prior art, the general question and answer software to download the update program, steps to download the update as follows:

51、 上层软件向电能表发送指令帧。 51, the upper layer software to send commands to the meter frame. 上层软件下行广播指令帧l...N, N 由芯片程序大小决定,每128字节为一帧。 Top software instructions downlink broadcast frame l ... N, N program size is determined by the chip, each 128 bytes of one.

52、 电能表接收并处理所述指令帧。 52 meter frame to receive and process the instruction. 电能表处理上层软件模块发送来的指令帧l...N,并且对于上层软件发送来的每一指令帧都会返回应答帧。 Instruction meter processing software module sends to the upper frame l ... N, and for upper layer software to send commands to each frame returns response frames.

53、 上层软件对电能表返回的应答帧进行处理。 53, the upper layer software meter response frame returned for processing. 也就是说,上层软件模块对于电能表返回的应答帧l...N都会一一处理。 That is, the upper layer software modules for meter returns response frame l ... N will be 11 process.

54、 上层软件在对返回的应答帧的处理过程中,对应答帧进行校验,如果处理没有出错,则表示电能表合格,程序下载更新成功;否则表示电能表不合 54, the upper layer software in response frame returned to the process, the response to frame check, if there is no error handling, then meter qualifying, download the update was successful; otherwise express disagreement Meter

格,程序下载更新不成功。 Grid, download the update was not successful.

55、 继续下一块电能表芯片程序的下载更新,并循环执行步骤S1。 55, continue to the next one meter chip program to download the update, and loop to step S1. 由此可知,现有技术只能对电能表芯片一次一块地进行更新,速度比较慢, It can be seen, the prior art can only meter chip a piece of land to be updated more slowly,

浪费时间较多;而且该方案对电能表芯片的下载更新只进行了一次的校验,该校验很难保证100%下载更新数据包的完整性和安全性,这样也会造成数据下 Waste more time; and that the scheme meter chip download updates only once the Check, which is difficult to guarantee 100% to download the update packet integrity and security, it will also result in lower data

载更新不成功。 Download updates unsuccessful. 发明内容 DISCLOSURE

针对现有技术的上述缺陷,本发明要解决现有技术中对电能表芯片程序进行下载更新的方法中所存在的速度慢,安全性低等问题,提供了一种对电能表芯片程序进行下载更新的方法,以对电能表进行高速,高效、准确的下载更新。 For the above-mentioned disadvantages of the prior art, the present invention is to solve the prior art meter chip program to download the update method in the presence of slow, low security problem, a kind of energy meter chip program download updated approach to high speed of meter, efficient and accurate download updates.

本发明解决其技术问题所采用的技术方案是:提供一种对电能表芯片程序进行下载更新的方法,在上层软件与电能表之间进行数据传输, 在上层软件执行如下步骤: The present invention solves the technical problem of the technology used in the program are: to provide a meter chip program to download the update method, between the upper software and meter data transmission, perform the following steps in the upper layer software:

a、 上层软件下行广播指令帧l...N,其中N由电能表的芯片程序大小决定; a, top software instruction downstream broadcast frame l ... N, where N is determined by the size of the chip meter program;

b、 上层软件下行问答指令帧N+l,下行上层软件输出循环冗余校验的校验结果,所述CRC16校验结果由所述广播指令帧l...N中的校验和进行循环冗余校验运算所得到; b, upper layer software instruction frame downstream Answers N + l, the upper layer software downside check result output cyclic redundancy check of the CRC16 check result by the broadcast instruction frame l ... N checksum cycle The resulting redundancy check operation;

c、 上层软件下行问答指令帧N+2,读取电能表返回的标志位数据; 在电能表执行如下步骤: c, the upper layer software instruction frame downstream Answers N + 2, meter reads flag data returned; perform the following steps in meter:

d、 电能表接收到所述广播指令帧数据后,切换到更新程序状态并进行相应的更新处理; After d, meter receives the broadcast command frame data, switch to update the status and the corresponding update processing;

e、 接收到上层软件下行的指令帧N+l后,将上层软件的下行循环冗余校验的校验结果与电能表内部的循环冗余校验的校验结果进行比较处理; e, receiving the instruction upper software after downlink frame N + l, will verify the results of the check results downlink upper layer software cyclic redundancy check and meter internal cyclic redundancy check comparing treatment;

f、 接收到上层软件下行的指令帧N+2后,电能表向上层软件发送带标志位数据的应答帧。 f, top software command is received downlink frame N + 2, the power meter to the upper layer software sends an acknowledgment frame with a flag-bit data.

在本发明所述的方法中,所述步骤c具体包括: 若所述标志位数据为1,则表示该电能表芯片程序更新不成功; 若所述标志位数据为0,则表示该电能表芯片程序更新成功。 In the method according to the invention, the step c include: if the flag data is 1, it indicates that the meter chip updates unsuccessful; if the flag bit data is 0, it means that the meter chip program update was successful. 在本发明所述的方法中,所述步骤d中,所述相应的更新处理具体包括: dl、置标志位为0; In the method according to the invention, the step d, the appropriate update process specifically includes: dl, the flag is set to 0;

d2、当收到完整的广播指令帧l...N后,进行校验和运算,并核对所述指令帧是否安全完整; d2, upon receipt of a complete broadcast command frame l ... N, the checksum calculation and check whether the safety and integrity of the command frame;

d3、进行电能表程序的更新;若校验或更新过程出现任何非法情况,则置 d3, meter program update; if the check or update any illegal case, set

标志位为l,但整个广播过程中不上行任何指令帧。 Flag as l, but the whole process is not broadcasting any instruction uplink frame.

在本发明所述的方法中,所述步骤e中,所述比较处理具体包括: 若上层软件的下行循环冗余校验的校验结果与电能表内部的循环冗余校 In the method according to the invention, the step e, the comparison process, including: If the check result downside upper software cyclic redundancy check and meter internal cyclic redundancy

验的校验结果相同,则表示所收到的指令帧连续的,且每一帧都是完整的; The same validation test results, then the received command frame continuous, and each frame is complete;

若上层软件的下行循环冗余校验的校验结果与电能表内部的循环冗余校验的校验结果不同,则表示所收到的数据包为非法,将其标志位置为l。 If the check result of the downlink upper layer software cyclic redundancy check and verify the results of the internal energy meter cyclic redundancy check are different, the received packet is illegal, its flag is l. 在本发明所述的方法中,所述上层软件与所述电能表之间的数据传输采用 In the method according to the invention, the data transmission of the upper layer of software between the meter uses

DL/T645-1997通讯规约。 DL / T645-1997 communication protocols.

在本发明所述的方法中,广播指令帧每一帧数据为128字节,在广播指令帧下行过程中,电能表禁止上行指令帧,并且在芯片程序更新过程中电能表禁止主动上行指令帧。 In the method of the present invention, the broadcast command frame data for each frame is 128 bytes, in a broadcast command frame downstream process meter prohibit upstream instruction frame, and in the chip program update process meter prohibit active uplink command frame .

在本发明所述的方法中,所述循环冗余校验采用循环冗余校验16位的校验方法对所有广播指令帧的校验和结果进行校验。 In the method according to the invention, the cyclic redundancy check cyclic redundancy check 16 checksum verification method and results for all broadcast command frames for verification.

在本发明所述的方法中,当电能表接收到广播指令帧数据后,进行更新芯片程序;若该更新过程中若出现错误,则将标志位置为1,表示电能表更新程序为不合格。 In the method according to the invention, after the meter receiving the broadcast command frame data, updating the chip program; if the update process, if an error occurs, the flag is set to 1, indicating meter updates ineligible.

在本发明所述的方法中,所述上层软件通过RS232或RS485串口与所述电能表连接。 In the method according to the invention, the upper layer software to connect to the meter via RS232 or RS485 serial port.

在本发明所述的方法中,所述上层软件与功率源、标准表、误差板之间的数据传输采用内部标准通信协议。 In the method according to the present invention, the upper layer software of data transmission and power source, the standard table, the error between the plates using an internal standard communication protocol.

本发明解决了现有技术中的下载更新系统中的二个主要问题:其一下载更新的效率问题,其二下载更新时数据传输的完整与安全问题。 The present invention solves the prior art system to download updates two main questions: First download the update efficiency, integrity and security of data transmission when downloading the update of the other. 从而使得电能表的生产过程效率大大提高,程序下载可靠性更高、安全性更强,数据更完整, 能达到更实用的效果。 Which makes the production process greatly improved the efficiency of energy meter, higher download reliability, security stronger, more complete data, to achieve more practical results.

附图说明 Brief Description

6下面将结合附图及实施例对本发明作进一步说明,附图中: 6 below in conjunction with the accompanying drawings and the embodiment of the present invention is further illustrated drawings in which:

图1是现有技术的电能表芯片程序的下载更新的流程图; Figure 1 is a flowchart download art meter chip program updates;

图2是本发明的电能表芯片程序的下载更新的流程图; Figure 2 is a flow meter chip download program updates the present invention;

图3是本发明的多个电能表芯片程序的下载更新的结构示意图; Figure 3 is a block diagram of a plurality of energy meter chip program to download updates of the present invention;

图4是图3的多个电能表芯片程序的下载更新的流程图。 Figure 4 is a flow diagram of a plurality of 3 meter chip program to download updates.

具体实施方式 DETAILED DESCRIPTION

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。 To make the objects, technical solutions and advantages of the present invention will become apparent from the following accompanying drawings and embodiments, the present invention will be described in further detail. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only for explaining the present invention and are not intended to limit the present invention.

如图2所示, 一种对电能表芯片程序进行下载更新的方法,其中, 对于任一个需要更新芯片程序的电能表,上层软件按以下步骤向电能表发送指令帧数据: 2, the kind of energy meter chip program to download the update, wherein, for any one program to update the chip meter, the upper layer software to send commands to the meter frame data according to the following steps:

a、 上层软件下行广播指令帧1…N, N由芯片程序大小决定,每128字节为一帧,每帧按DL/T645-1997《多功能电能表通信规约》帧格式下行。 a, top software instruction downstream broadcast frame 1 ... N, N program size is determined by the chip, each 128 bytes of a frame, "multi-function meter communication protocol" downstream of each frame by frame format DL / T645-1997.

b、 上层软件下行问答指令帧N+l ,下行上层软件输出循环冗余校验(Cyclic Redundancy Check/Code,简称CRC)的校验结果,本发明优选实施例中循环冗余校验采用的是循环冗余校验16位的校验方法,即CRC16,该CRC16校验结果由广播指令帧l...N中的校验和进行CRC16校验运算所得出。 b, upper layer software instruction frame downstream Answers N + l, downlink upper layer software output a cyclic redundancy check (Cyclic Redundancy Check / Code, referred CRC) check result, the preferred embodiment of the present invention uses a cyclic redundancy check 16-bit cyclic redundancy check verification method, ie CRC16, CRC16 check the result by the broadcast instruction frame l ... N The checksum CRC16 checksum calculation derived.

c、 上层软件下行问答指令帧N+2,读取电能表标志位数据,如果标识位为1,表示电能表不合格,程序下载更新不成功;否则表示电能表合格,程序下载更新成功。 c, the upper layer software instruction frame downstream Answers N + 2, the data read meter flag, if flag is 1, indicating meter failed, download the update fails; otherwise it means meter qualifying, download the update was successful.

对于电能表,则按以下步骤接收并处理由上层软件发来的指令帧: For the meter, proceed as follows receives and upper layer software instructions sent frame:

d、 电能表切换到更新程序状态,并置标志位为0;当收到完整的广播指令帧l...N后,进行校验和运算,并核对所述指令帧是否安全完整;然后再进行电能表程序的更新。 d, meter switch to update the status, and set the flag to 0; when it receives a complete broadcast command frame l ... N, the checksum calculation and check whether the safety and integrity of the command frame; then update meter program. 如果校验或更新过程出现任何非法情况,则置标志位为l, 但整个广播过程中不上行任何指令帧。 If the check or update any illegal circumstances, the flag is set to l, but the whole process is not broadcasting any instruction uplink frame.

e、 接收到上层软件下行的指令帧N+1后,将上层软件的下行CRC16校验结果与电能表内部的CRC16校验结果进行比较,如果两者相同,则表示所收到的指令帧连续的,且每一帧都是完整的。 e, the upper layer software command is received downlink frame N + 1, will be the top software CRC16 check results downstream meter inside CRC16 check the results, and if they are the same, then the received command frame continuous , and each frame is complete. 否则表示所收到的数据包为非法,将其标志位置为1。 Otherwise it indicates packet received illegal, its flag to 1.

f、接收到上层软件下行的指令帧N+2后,电能表作出应答,向上层软件 f, top software command is received downlink frame N + 2, the meter respond to the upper layer software

返回带标志位数据的应答帧。 Returns response frame with the flag of the data.

本发明所述电能表芯片程序下载的方法采用广播指令下载数据,利用校 Meter Chip download method using a broadcast command to download data according to the present invention, the use of school

验、再校验以及CRC16校验对数据的完整安全提供了保障。 Test, then check and CRC16 check on the complete data security protection provided.

图3示出了多个电能表芯片程序的下载更新的结构示意图,下载更新软件 Figure 3 shows a schematic structural view of energy meter chip program to download multiple updates, download the updated software

通过PC机串口与机柜中的通讯控制器(如CL2011通讯控制器)相连,通过通 Through the PC serial port and cabinet communications controller (such as CL2011 communications controller) is connected via a through

讯控制器控制功率源(如CL303功率源)、标准表(如CL311V2标准表)、被 News controller power source (such as CL303 power source), standard tables (such as CL311V2 standard table), is

校电能通信(即图3中的精密时基源,如CL191精密时基源),通讯控制器与 School power communications (ie, in FIG. 3 precision timebase source, such as CL191 precision timebase source), communications controller

功率源、标准表共同遵循内部标准通信协议(如CLT1.0通信协议),并与被校 Power source, standard tables common to follow an internal standard communication protocols (such as CLT1.0 communication protocol), and with the school

表通信协议遵循多功能电能表通信规约DL/T645-1997 。 Table multi-function meter communication protocol follows the statute communication DL / T645-1997.

本发明优选实施例中的挂表架上设置了两排电能表,共12块,也就是说 A preferred embodiment of the present invention linked table set up two rows of shelves meter, a total of 12, that is to say

12块电能表芯片程序可以同时进行下载更新,通信控制器分别通过误差计算器(如CL188E误差计算器)与挂表架中的每个电能表进行通信。 12 meter chip program can also download the update, the communication controller to communicate with each linked table stand by each meter error calculator (eg CL188E error calculator).

如图4所示,根据上述电能表芯片程序下载更新的步骤,具体如下: 步骤l: PC机通过串口与功率源、标准表、通讯控制器以及挂表架进行连 4, download the updated meter chip based on the procedural steps as follows: Step l: PC through a serial port and a power source, standard tables, communication controllers and aircraft were even hanging table

接,即PC机中的下载更新软件通过PC机串口对功率源、标准表、误差计算器(如CL188E误差计算器)发出连机指令。 Then, that the PC download software updates issued by the PC serial port to a power source with machine instructions, standard tables, error calculator (eg CL188E error calculator).

步骤2:连机指令成功后,根据被校的电压电流等基本信息,对功率源发 Step 2: Even after the success of machine instructions, be corrected according to the voltage and current information on the power source of fat

出升源指令,并输出与被校表相适应的功率。 The instruction or source, and output power is adapted school appearances.

等功率源稳定后,对所有被校表广播指令进入下载更新状态,此时所有被 After the equal power source stability for all calibration broadcast instructions to download the update status, then all

校表会呜响(可以设置为鸣响三声),液晶显示进入更新初始状态,所有被校表 Calibration will be ringing (can be set to sound three times), LCD enters updating the initial state, all the calibration

标志位置为0。 Flag set to 0.

步骤3:下载更新程序对需要电能表芯片程序长度进行分块处理,本发明的实施例将需要下载的程序分隔为N帧,即N=Len/128帧,每帧为128字节,最后一帧不足补"0",通过广播指令每帧间隔500ms下行,广播下行1-N Step 3: Download the update program to require energy meter chip length into blocks, an embodiment of the present invention will need to download a program divided into N frames, namely N = Len / 128 frames, each 128 bytes, the last one inadequate frame up "0", by broadcasting commands every frame interval 500ms down, broadcast downstream 1-N

8帧。 8.

步骤4:所有电表接收到广播数据后,则开始对数据进行处理。 Step 4: After receiving the broadcast all meter data, data processing is started. 处理结果中若有任何错误,则标志位为l;若没有任何错误,则表示正常,标志位不变。 If the results are any errors, the flag is l; if there is no error, then normal, flag unchanged. 但在程序广播过程中不返回任何上行帧。 But in the program broadcast process does not return any uplink frame.

步骤5:广播下行N+1帧,该帧为CRC16校验帧结果的数据帧。 Step 5: broadcast downlink N + 1 frame, which is the result of CRC16 check frame data frame.

步骤6:所有电表接收到广播CRC校验的结果数据后,与自身校验结果进 Step 6: After receiving the results of all the meter data broadcast CRC check, and check their own results into

行比对,若不相等,则标志位为1;若相等,则标志位不变。 Line alignment, if equal, the flag is 1; if equal, the flag bits unchanged. 但在程序广播过 However, the program aired

程中不返回任何上行帧。 Process does not return any uplink frame.

步骤7:广播下行N+2帧,并读取每块被校表标的标志位数据。 Step 7: Broadcast downlink N + 2 frames and read each block is the subject of flag calibration data.

步骤8:被校表接收到指令后返回带有标志位数据的数据帧。 Step 8: The calibration data is returned with the flag data frame after receiving the instruction.

步骤9:下载更新程序根据每块被校表的标志位数据判断,标志位为0则 Step 9: Download the update flag of each block is based on the bit data calibration judgment flag is set to 0

表示该表合格,否则表示该表为不合格。 The table indicates qualified, or that the table is unacceptable.

由此可知,采用本发明的方法可使电能表批量化生产过程中电能表芯片程 It can be seen, the present invention method allows meter mass meter chip production process Cheng

序下载更新,速度更快、可靠性更高、安全性更强,数据更完整,本发明下载 Order to download the update, faster, more reliable, more security, more complete data, download this invention

更新一块表时间与12块表时间一样,比现有技术方案的效率提高12倍,从而 Update a watch time and time table 12, as increased by 12 times higher than the efficiency of existing technical solutions, which

达到更实用的效果。 Achieve more practical results.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发 The foregoing is only preferred embodiments of the present invention, it is not intended to limit the invention, where the present

明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明 Any modifications made within the spirit and principle, equivalent alterations and modifications, etc., should be included in the present invention

的保护范围之内。 Within the scope of protection.

Patentzitate
Zitiertes PatentEingetragen Veröffentlichungsdatum Antragsteller Titel
FR2879777A1 Titel nicht verfügbar
US55485277. Juni 199520. Aug. 1996Abb Power T&D Company Inc.Programmable electrical energy meter utilizing a non-volatile memory
Klassifizierungen
Internationale KlassifikationG06F9/445
Juristische Ereignisse
DatumCodeEreignisBeschreibung
16. Juli 2008C06Publication
10. Sept. 2008C10Request of examination as to substance
23. Sept. 2009C14Granted