HPLC module rapid detection device and method based on copy controller

文档序号:1187776 发布日期:2020-09-22 浏览:13次 中文

阅读说明:本技术 一种基于抄控器的hplc模块快速检测装置及方法 (HPLC module rapid detection device and method based on copy controller ) 是由 杨丽 吴宏波 马红明 张知 李倩 韩永禄 潘优 安思达 于 2020-05-29 设计创作,主要内容包括:本发明公开了一种基于抄控器的HPLC模块快速检测装置及方法,该装置包括初始化模块、通信初始化模块、检测模块、通信初始化响应模块、检测响应模块和检测响应判断模块共六个模块;本发明由于基于抄控器,无需通过传统模式首先进行组网检测,只要上电后物理有连接就能快速完成读ID、抄表等基本功能验证,因此多功能检定仓的检测前组网时间理想状态可忽略不计,有效缩短HPLC模块的在多功能仓的检测时间,具有检测快,易部署,低成本,易操作等优点。(The invention discloses a rapid detection device and a rapid detection method for an HPLC (high performance liquid chromatography) module based on a copy controller, wherein the device comprises six modules, namely an initialization module, a communication initialization module, a detection module, a communication initialization response module, a detection response module and a detection response judgment module; because the invention is based on the meter reading controller, networking detection is not needed to be carried out firstly through a traditional mode, and basic function verification such as ID reading, meter reading and the like can be completed quickly as long as physical connection is carried out after electrification, the ideal state of the networking time before detection of the multifunctional detection cabin can be ignored, the detection time of an HPLC module in the multifunctional cabin is effectively shortened, and the invention has the advantages of quick detection, easy deployment, low cost, easy operation and the like.)

1. The utility model provides a quick detection device of HPLC module based on copy accuse ware which characterized in that: the device comprises six modules, namely an initialization module, a communication initialization module, a detection module, a communication initialization response module, a detection response module and a detection response judgment module;

the initialization module initializes the MAC address, the working frequency band, the STA address and the reading object parameter; the communication initialization module establishes communication connection with a detection body before starting to send a message; the detection module sends a specific detection message according to the parameters set or initialized by the user; the communication initialization response module receives the communication initialization message feedback frequency offset value to establish communication connection; after receiving the specific detection message, the detection response module reads STA related parameters and sends the specific detection response message; the detection response judging module analyzes and judges whether the response message is correct or not according to the received detection response.

2. The HPLC module rapid detection device based on the copy controller of claim 1, wherein: the initialization module is used for initializing the copy controller, setting the MAC address and the working frequency band of the copy controller, and using a set value if a user sets the STA address and the reading object of the HPLC module; if the user is not reset, the original default value is adopted.

3. The HPLC module rapid detection device based on the copy controller of claim 1, wherein: the communication initialization module sequentially sends frequency offset reading frames from a frequency band 0 to a frequency band 3 until correct frequency offset signals are read to establish communication connection; the frequency offset reading frame is expanded on the basis of the variable region of the original protocol SACK.

4. The HPLC module rapid detection device based on the copy controller of claim 1, wherein: the detection module issues a detection message according to the set STA address and the detection parameters; the detection message is multiplexed with a meter reading message of an HPLC protocol, a plurality of parameters of the detection message are expanded to be distinguished from a normal HPLC meter reading message, and an APDU part adopts a 645 protocol.

5. The HPLC module rapid detection device based on the copy controller of claim 4, wherein: the APDU, MAC frame header and frame control part of the detection message HPLC protocol multiplex original protocol parameters and set special values, thereby forming a copy controller detection mode and achieving the purpose of realizing copy controller detection by being compatible with the original HPLC protocol; the detailed extended parameters of the special values include source TEI and original source TEI, destination TEI and original destination TEI, network identifier NID, STA address and parameters that only support the planned detection carried in long MAC frame and APDU.

6. The HPLC module rapid detection device based on the copy controller of claim 1, wherein: and after receiving the communication initialization message, the communication response module sends frequency deviation according to the actual frequency deviation value, so as to establish connection with the copy controller.

7. The HPLC module rapid detection device based on the copy controller of claim 1, wherein: after receiving the detection command, the detection response module sends a detection message to the STA, and distinguishes and judges whether to detect the message according to the detection mark of the copy controller, if so, the detection response module directly reads the content of the APDU; if the MAC address of the module is the MAC address, a detection response message is reported after the parameters are read, the message is multiplexed with an HPLC protocol, a reading controller detection mark is set in the message parameters to be distinguished from a normal reading controller, and the detection content continues to use a 645 protocol.

8. The HPLC module rapid detection device based on the copy controller of claim 7, wherein: and after the detection response module sends a detection message to the STA, whether the detection is carried out by the copy controller is identified according to the APDU, the MAC frame header and the special identifier controlled by the frame, and if the detection is carried out by the copy controller, the STA address of the APDU part is continuously analyzed.

9. The HPLC module rapid detection device based on the copy controller of claim 8, wherein: after the detection response judging module receives the response message, if the copy controller detects the response message, whether the detection response parameter is correct is continuously judged, if the detection response parameter is correct, the chip ID is matched with the ID in the database, the STA module is normal, and otherwise, the STA module is abnormal.

10. A method of testing a device according to any of claims 1 to 9, comprising the steps of: the copying controller is connected with an upper computer through serial application protocol two-way communication, the copying controller is electrically connected with a power line, the power line is electrically connected with an analog epitope, and the copying controller and the analog epitope are both connected with an HPLC protocol; powering on the copy controller, setting an MAC address, a frequency band, detecting the MAC address and parameters; before sending a meter reading message, a copy controller firstly calls a communication initialization module to establish contact with an STA (station), frequency offset reading frames are sequentially sent from a frequency band 0 to a frequency band 3, after the STA receives the frequency offset reading frames, the detection of the copy controller is identified according to APDU (application protocol data Unit), MAC (media access control) frame heads and special identification of frame control, and the frequency offset feedback frames are fed back according to actual values so as to establish connection with the copy controller; according to the conditions set by the communication initialization module, the copy controller forms a message; after receiving the detection message, the STA identifies that the detection is the copy controller detection according to the APDU, the MAC frame header and the special identification of frame control, and continues to analyze the STA address of the APDU part; if the MAC address carried in the APDU is not matched with the MAC address of the module, the message is directly discarded, and if the MAC address is matched, the response parameter value is read, and the response message is detected; after receiving the response message, if the copy controller detects the response message and continues to judge whether the detection response parameter is correct, if so, the chip ID is matched with the ID in the database, the STA module is normal, otherwise, the STA module is abnormal, and one detection is finished.

Technical Field

The invention belongs to the technical field of HPLC module detection, and particularly relates to a rapid HPLC module detection device and method based on a copy controller.

Background

The low-voltage power line high-speed carrier communication technology occupies wide frequency band, has high data transmission rate, does not need to lay a communication line additionally, is convenient to install, can realize data acquisition and control of a user electric meter, and has good adaptability. An HPLC module (namely an HPLC communication unit) detection production line which is independently established by a Hebei province metering center is put into production formally and smoothly in 24 months and 6 years in 2019, belongs to the first automatic detection line body of the HPLC module of a national network, and the HPLC module gradually replaces the currently used narrow-band meter reading module. The method comprises the steps that an HPLC detection assembly line is built at the initial stage, detection is carried out based on a traditional routing mode, after batch detection for a period of time, the detection efficiency cannot meet the capacity requirement, through a key optimization strategy, a detection flow is reasonably arranged, and the longest detection time of an HPLC module in a multifunctional detection cabin is still 110 seconds.

The networking time of the multifunctional verification cabin before the detection of the HPLC module is 50 seconds at most, and the detection time of other detection items is about 60 seconds. Because the number of the HPLC modules is huge, the traditional detection mode is adopted, the task is heavy, the time is long, and the requirement of mass detection of the HPLC modules cannot be met.

Disclosure of Invention

The technical problem to be solved by the invention is to provide the device and the method for rapidly detecting the HPLC module based on the copy controller, which shorten the detection time of the HPLC module in the multifunctional detection bin, accelerate the circulation beat of the HPLC module, reduce the working strength of operation and maintenance personnel, and integrally improve the detection efficiency of the HPLC module.

In order to solve the problems, the technical scheme adopted by the invention is as follows:

a HPLC module rapid detection device based on a copy controller comprises six modules, namely an initialization module, a communication initialization module, a detection module, a communication initialization response module, a detection response module and a detection response judgment module;

the initialization module initializes the MAC address, the working frequency band, the STA address and the reading object parameter; the communication initialization module establishes communication connection with a detection body before starting to send a message; the detection module sends a specific detection message according to the parameters set or initialized by the user; the communication initialization response module receives the communication initialization message feedback frequency offset value to establish communication connection; after receiving the specific detection message, the detection response module reads STA related parameters and sends the specific detection response message; the detection response judging module analyzes and judges whether the response message is correct or not according to the received detection response.

The fast detection device is further improved as an HPLC module, the initialization module is used for initializing the copy controller, setting the MAC address and the working frequency band of the copy controller, and using a set value if a user sets the STA address and the reading object of the HPLC module; if the user is not reset, the original default value is adopted.

The communication initialization module is further improved as an HPLC module rapid detection device, and sequentially sends frequency offset reading frames from a frequency band 0 to a frequency band 3 until a correct frequency offset signal is read to establish communication connection; the frequency offset reading frame is expanded on the basis of the variable region of the original protocol SACK.

The detection module is further improved as an HPLC module rapid detection device, and issues a detection message according to the set STA address and the detection parameters; the detection message is multiplexed with a meter reading message of an HPLC protocol, a plurality of parameters of the detection message are expanded to be distinguished from a normal HPLC meter reading message, and an APDU part adopts a 645 protocol.

The method is further improved as a rapid detection device of an HPLC module, APDU, MAC frame head and frame control part of the detection message HPLC protocol multiplex original protocol parameters, and special values are set, so that a copy controller detection mode is formed, and the purpose of realizing copy controller detection by being compatible with the original HPLC protocol is achieved; the detailed extended parameters of the special values include source TEI and original source TEI, destination TEI and original destination TEI, network identifier NID, STA address and parameters that only support the planned detection carried in long MAC frame and APDU.

The communication response module receives the communication initialization message and then sends frequency deviation according to the actual frequency deviation value, so that connection with the copy controller is established.

The rapid detection device is further improved as an HPLC module, the detection response module sends a detection message to the STA after receiving the detection command, and distinguishes and judges whether to detect the message according to the detection mark of the copy controller, if so, the content of the APDU is directly read; if the MAC address of the module is the MAC address, a detection response message is reported after the parameters are read, the message is multiplexed with an HPLC protocol, a reading controller detection mark is set in the message parameters to be distinguished from a normal reading controller, and the detection content continues to use a 645 protocol. The rapid detection device for the HPLC module is further improved, after the detection response module sends a detection message to the STA, whether the detection is carried out by the copy controller is identified according to the APDU, the MAC frame header and the special identification of frame control, and if the detection is carried out by the copy controller, the STA address of the APDU part is continuously analyzed.

After the detection response judging module receives the response message, if the response message is detected by the copy controller, whether the detection response parameter is correct is continuously judged, if the detection response parameter is correct, the chip ID is matched with the ID in the database, the STA module is normal, and otherwise, the STA module is abnormal.

A detection method applying the device comprises the following steps: the copying controller is connected with an upper computer through serial application protocol two-way communication, the copying controller is electrically connected with a power line, the power line is electrically connected with an analog epitope, and the copying controller and the analog epitope are both connected with an HPLC protocol; powering on the copy controller, setting an MAC address, a frequency band, detecting the MAC address and parameters; before sending a meter reading message, a copy controller firstly calls a communication initialization module to establish contact with an STA (station), frequency offset reading frames are sequentially sent from a frequency band 0 to a frequency band 3, after the STA receives the frequency offset reading frames, the detection of the copy controller is identified according to APDU (application protocol data Unit), MAC (media access control) frame heads and special identification of frame control, and the frequency offset feedback frames are fed back according to actual values so as to establish connection with the copy controller; according to the conditions set by the communication initialization module, the copy controller forms a message; after receiving the detection message, the STA identifies that the detection is the copy controller detection according to the APDU, the MAC frame header and the special identification of frame control, and continues to analyze the STA address of the APDU part; if the MAC address carried in the APDU is not matched with the MAC address of the module, the message is directly discarded, and if the MAC address is matched, the response parameter value is read, and the response message is detected; after receiving the response message, if the copy controller detects the response message and continues to judge whether the detection response parameter is correct, if so, the chip ID is matched with the ID in the database, the STA module is normal, otherwise, the STA module is abnormal, and one detection is finished.

Adopt the produced beneficial effect of above-mentioned technical scheme to lie in:

because the invention is based on the meter reading controller, networking detection is not needed to be carried out firstly through a traditional mode, and basic function verification such as ID reading, meter reading and the like can be completed quickly as long as physical connection is carried out after electrification, the ideal state of the networking time before detection of the multifunctional detection cabin can be ignored, the detection time of an HPLC module in the multifunctional cabin is effectively shortened, and the invention has the advantages of quick detection, easy deployment, low cost, easy operation and the like.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.

Fig. 1 is a work flow diagram of a HPLC module rapid detection device based on a copy controller.

FIG. 2 is a flow chart of a method for rapid detection of an HPLC module based on a copy controller.

Fig. 3 is a schematic diagram of the implementation and deployment of the device of the invention.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.

The relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description. Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting.

Thus, other examples of the exemplary embodiments may have different values. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.

As shown in figure 1, the loading module of the automatic verification system puts the HPLC module to be detected into the tray, the tray carrying the HPLC module passes through the conveying line, after the appearance detection is completed through the appearance detection device, the tray is continuously circulated to the multifunctional verification bin of the HPLC, the bin is full, the copying controller arranged in the multifunctional verification bin is triggered to start, establish connection and detect, after all the HPLC modules are detected, the industrial personal computer starts to upload data, then the tray is circulated out from the multifunctional verification bin, and the next detection is continuously carried out.

The invention relates to a device and a method for rapidly detecting an HPLC (high performance liquid chromatography) module based on a copy controller, wherein the copy controller comprises six modules, namely an initialization module, a communication initialization module, a detection module, a communication initialization response module, a detection response module and a detection response judgment module. The initialization module initializes parameters such as an MAC address, a working frequency band, an STA (short for station HPLC) address, a reading object and the like. The communication initialization module establishes communication connection with the detection body before starting to send the message. The detection module may send a specific detection message according to a parameter set or initialized by a user, where the detection message does not conflict with an existing HPLC protocol. And the communication initialization response module receives the communication initialization message (reading frequency offset) and feeds back the frequency offset value to establish communication connection. And the detection response module reads the STA related parameters after receiving the specific detection message and sends the specific detection response message. The detection response judging module analyzes and judges whether the response message is correct or not according to the received detection response.

The initialization module is used for initializing the copy controller, setting the MAC address and the working frequency band of the copy controller, and using a set value if a user sets the STA address and the reading object of the HPLC module; if the user is not reset, the original default value is adopted.

The communication initialization module sequentially sends frequency offset reading frames from the frequency band 0 to the frequency band 3 until correct frequency offset signals are read to establish communication connection. The frequency offset reading frame is expanded on the basis of the variable region of the original protocol SACK.

And the detection module issues a detection message according to the set STA address and the detection parameters. The detection message multiplexes the meter reading message of the HPLC protocol, the detection message expands a plurality of parameters to be distinguished from the normal HPLC meter reading message, and the APDU part continues to use the 645 protocol and can read the STAID, the meter reading and the like.

The APDU, MAC frame header and frame control part of the detection message HPLC protocol are optimized, original protocol parameters are multiplexed, but different special values are set, so that a copy controller detection mode is formed, and the purpose of realizing copy controller detection by being compatible with the original HPLC protocol is achieved. The detailed extended parameters include source TEI and original source TEI, destination TEI and original destination TEI, network identification NID, STA address supporting only long MAC frame and APDU carrying planned detection, and parameters (e.g. chip ID, data identification, etc.).

And after receiving the communication initialization message, the communication response module sends frequency deviation according to the actual frequency deviation value, so as to establish connection with the copy controller. The message is detailed in a communication initialization module.

And after receiving the detection command, the detection response module distinguishes and judges whether to detect the message according to the detection mark of the copy controller, and if so, the detection response module directly reads the content of the APDU. If the MAC address of the module is the MAC address, a detection response message is reported after the parameters are read, the message is multiplexed with an HPLC protocol, a reading controller detection mark is set in the message parameters to be distinguished from a normal reading controller, and the detection content continues to use a 645 protocol.

And after the detection response module sends a detection message to the STA, whether the detection is carried out by the copy controller is identified according to the APDU, the MAC frame header and the special identifier of frame control, and if the detection is carried out by the copy controller, the STA address of the APDU part is continuously analyzed. After the detection response judging module receives the response message, if the copy controller detects the response message, whether the detection response parameter is correct is continuously judged, if the detection response parameter is correct (the chip ID is matched with the database), the STA module is normal, otherwise, the STA module is abnormal, and one detection is finished.

The message used by the invention has no conflict with the HPLC protocol, so the invention is also suitable for troubleshooting of engineering field modules and the like.

The detection method comprises the following steps:

the following describes in detail the detection method based on the copy controller proposed by the present invention with reference to fig. 2:

step 1, after the connection is finished according to the figure 3, the copy controller is powered on, and an MAC address, a frequency band, a detection MAC address and parameters are set.

And 2, before the meter reading message is sent, the meter reading controller firstly calls a communication initialization module to establish contact with the STA. The copy controller can sequentially send frequency offset reading frames on the frequency bands of 0-3, and the frequency offset reading frames are expanded on the basis of the variable region of SACK of the original protocol.

TABLE 1 SACK frame variable region

Figure BDA0002514881570000061

Expanding the SACK frame expansion frame type, wherein 01 represents reading frequency offset, and 02 represents feedback frequency offset; the detailed expansion is as follows:

TABLE 2 read frequency offset extension frame variable region

Figure BDA0002514881570000062

And 3, after receiving the frequency offset reading frame, the STA identifies that the frequency offset reading frame is detected by the copy controller according to the APDU, the MAC frame header and the special identifier of frame control, and feeds back the frequency offset according to the actual value to send a frequency offset feedback frame, thereby establishing connection with the copy controller.

TABLE 3 frequency offset feedback extension frame variable region

Figure BDA0002514881570000071

Step 4, according to the conditions set in step 1, the copy controller forms a message, and key parameters of the message are detected as follows:

Figure BDA0002514881570000081

the invention optimizes APDU, MAC frame head and frame control part of the detection message HPLC protocol, reuses the original protocol parameters, but sets different special values, thereby forming the detecting mode of the copy controller, achieving the purpose of realizing the detection of the copy controller by being compatible with the original HPLC protocol. The detailed extended parameters are as follows:

a source TEI and an original source TEI;

a destination TEI and an original destination TEI;

a network identification NID;

only long MAC frames are supported.

The APDU carries the STA address and parameters (e.g., chip ID, data ID, etc.) to be detected.

And 5, after receiving the detection message, the STA identifies that the detection is performed by the copy controller according to the APDU, the MAC frame header and the special identifier of the frame control, and continuously analyzes the STA address of the APDU part.

And 6, if the MAC address carried in the APDU is not matched with the MAC address of the module, directly discarding the message.

And 7, if the MAC addresses are matched, reading the response parameter values and detecting the response message. The constitution of the response message is similar to the message in step 2, the APDU, the MAC frame header and the frame control part set special values, and other parts continue to use the original protocol.

And 8, after receiving the response message, if the copy controller detects the response message and continuously judges whether the detection response parameter is correct, if so, the chip ID is matched with the ID in the database, the STA module is normal, otherwise, the STA module is abnormal, and one detection is finished.

The above flow is only a flow description based on one STA, and multiple parameters of multiple STAs can be copied in actual use, thereby improving efficiency. From the practical point of view, most of the 2 parameters of 5 STAs detected at a time have the best effect under the physical connection. The detection of 30 STA modules is actually controlled within 25 seconds.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; it is obvious as a person skilled in the art to combine several aspects of the invention. And such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于配电服务的自动化计量管理的远程基本计量表

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!