A method for generalizing power collection terminal software

Through the parameters of configuration and loading power collection terminals, multi -product lines use the same set of software, solve the problems of many software versions and complex management in existing technology, reduce the difficulty of development and maintenance, and improve the easy maintenance of the software.

CN112099839BActive Publication Date: 2025-01-24NINGBO SANXING MEDICAL & ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010477626.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-29
Publication Date
2025-01-24
Estimated Expiration
2040-05-29

AI Technical Summary

Technical Problem

The existing power acquisition terminal software has many versions and complex types, which makes it difficult to manage, develop and maintain, and software from different product lines cannot be applicable to each other.

Method used

By configured the circuit board type, protocol type, and regional type of the terminal of the power collection terminal, load the corresponding parts corresponding to the corresponding parameters before runtime, to realize the method of using the same set of software by multi -product line.

Benefits of technology

Multi -product lines use the same set of software to reduce the difficulty of software management and development and maintenance, prevent the occurrence of repeated bugs, and increase the easy maintenance of the software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112099839B_ABST
    Figure CN112099839B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for generalizing software of a power collection terminal, which is characterized by comprising the following steps: 1) Configuration stage: in the production stage, the circuit board type, protocol type and regional type of the power collection terminal are configured as parameters, and the circuit board type corresponds to the product type of the power collection terminal; 2) Loading stage: 2.1) First, the product type of the current power collection terminal is determined; 2.2) According to the determined current product type, the application process loads the corresponding hardware interface layer; 2.3) The application process determines the protocol type of the current power collection terminal and loads the corresponding protocol library; 2.4) The application process executes the corresponding differentiated code according to the regional type of the current power collection terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power technology, and in particular to a method for generalizing software of an electric power collection terminal. Background Art

[0002] Power collection is a device used to collect power data in the power system. It can automatically collect power instead of manually, and is an important process in the development of intelligent power grids. It is often used in conjunction with power meters. In order to accurately calculate the power supply quality, power collection terminals are required to collect users' power consumption data in real time and at high frequency.

[0003] There are many power collection terminal products, which are divided into Type I concentrators, Type II concentrators, and Type III special transformers. Among them, Type I concentrators and Type III special transformers have the same appearance and structural parts, basically the same hardware, and the production process is not much different. However, due to the large differences in software functions, Type I concentrators and Type III special transformers have their own supporting software, and the software of different products cannot be used for each other, that is, each software can only correspond to one power collection terminal.

[0004] In addition, the product protocols of power collection terminals are divided into 698, 376, and Southern Power Grid. Moreover, each province and city has its own special needs.

[0005] Therefore, as mentioned above, due to the differences in products, protocols, and regions, the number of software versions of power collection terminals is large, the version types are complex, management is difficult, and development and maintenance are difficult. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a method for generalizing power acquisition terminal software in view of the deficiencies in the above-mentioned prior art, which can enable a set of software to match various product lines and reduce the difficulty of management, development and maintenance.

[0007] The technical solution adopted by the present invention to solve the above technical problems is: a method for generalizing power collection terminal software, characterized in that it includes the following steps:

[0008] 1) Configuration stage: In the production stage, the circuit board type, protocol type and region type of the power collection terminal are configured as parameters, and the circuit board type corresponds to the product type of the power collection terminal;

[0009] 2) Loading phase:

[0010] 2.1) First determine the product type of the current power collection terminal;

[0011] 2.2) According to the determined current product type, the application process loads the corresponding hardware interface layer;

[0012] 2.3) The application process determines the protocol type of the current power collection terminal and loads the corresponding protocol library;

[0013] 2.4) The application process executes the corresponding differentiated code according to the regional type of the current power collection terminal.

[0014] Preferably, during the configuration stage, the configuration method of the circuit board type is to distinguish the State Grid and the Southern Grid into two categories according to the different type specifications of the Southern Grid and the State Grid. State Grid: Type III special transformer and Type I concentrator are defined as G1, Type II concentrator is defined as G2, Type III concentrator is defined as G3, Type I special transformer G4, Type II special transformer G5; Southern Grid: Type II special transformer and Type I concentrator are defined as N1, Type II concentrator is defined as N2; Type III concentrator is defined as N3; Type I special transformer N4; Type II special transformer N5; the corresponding product type is obtained according to the above circuit board type, the configuration file is written, and it is compiled into the read-only area of ​​the current power collection terminal file system.

[0015] In order to further distinguish between type I concentrators and type III special transformers, different GPIO levels are configured based on the configuration of the circuit board type to distinguish between type I concentrators and type III special transformers.

[0016] The method for determining the product type preferably further comprises the following steps in step 2.1) of the loading stage:

[0017] 2.1.1) First, determine the product type of the current power collection terminal according to the current product type configuration file. If it is determined to be a type I concentrator or a type III special transformer, proceed to step 2.1.2). If it is determined to be other product types, proceed to step 2.2);

[0018] 2.1.2) Determine the IO port configuration of the peripheral resistor: Determine whether the current power collection terminal is a type I concentrator or a type III dedicated transformer through the IO port status.

[0019] To further ensure that the wrong product type is not determined, the following distinction is made after step 2.1.2):

[0020] 2.1.3) The local module that can be mounted on the type I concentrator is a PLC carrier module, and the local module that can be mounted on the type III special transformer is a control module. Therefore, the current power collection terminal sends a protocol to the mounted local module to read the local module to further confirm the product type. The current power collection terminal uses the carrier protocol to read the local module. If the reading is successful, it is judged that the local module is a carrier module, which is recorded as case 1 and enters step 2.1.4); if the reading is unsuccessful, the local module is read using the control protocol, which is recorded as case 2 and enters step 2.1.5); if both are unsuccessful, it is judged that no module is inserted, which is recorded as case 3 and enters step 2.1.6);

[0021] 2.1.4) If the IO port status determined in step 2.1.2) is a concentrator, the current product type is determined to be a concentrator; if the IO status determined in step 2.1.2) is a special variable, the power collection terminal stops running and outputs a warning on the LCD screen of the power collection terminal; then proceed to step 2.2);

[0022] 2.1.5) If the IO port status determined in step 2.1.2) is a dedicated transformer, the current product type is determined to be a dedicated transformer. If the IO port status determined in step 2.1.2) is a concentrator, the power collection terminal stops running and outputs a warning on the LCD screen of the power collection terminal; then proceed to step 2.2);

[0023] 2.1.6) If the IO port status determined in step 2.1.2) is a concentrator, the current product type is determined to be a concentrator; if the IO port status determined in step 2.1.2) is a dedicated variable, the current product type is determined to be a dedicated variable; then proceed to step 2.2).

[0024] Preferably, in the configuration stage, the protocol type parameters are set in the parameter setting link of the production stage, and the region type is stored in a readable and writable area of ​​the power collection terminal file system.

[0025] Preferably, the protocol type can be changed at the power collection terminal, comprising the following steps:

[0026] 1) First, enter the local debugging menu and enter the protocol type setting;

[0027] 2) Then, enter your password;

[0028] 3) Change the protocol type settings;

[0029] 4) Restart to complete the protocol type change setting of the power collection terminal.

[0030] Preferably, the protocol type can be changed at the master station, comprising the following steps:

[0031] 1) First, the master station sends a message to the power collection terminal to enter the in-plant mode;

[0032] 2) Then, change the protocol type settings;

[0033] 3) The master station sends a hardware restart command to the power collection terminal. After the power collection terminal restarts, the type change setting of the master station is completed.

[0034] Preferably, in the configuration stage, the regional type parameters are set in the parameter setting link of the production stage, and the regional type is stored in a readable and writable area of ​​the file system of the power collection terminal.

[0035] Preferably, the region type can be changed at the power collection terminal, comprising the following steps:

[0036] 1) First, enter the local debugging menu and enter the region type setting;

[0037] 2) Then, enter your password;

[0038] 3) Change the region type setting;

[0039] 4) Restart to complete the configuration of changing the regional type of the power collection terminal.

[0040] Preferably, the region type can be changed at the master station, comprising the following steps:

[0041] 1) First, the master station sends a message to the power collection terminal to enter the in-plant mode;

[0042] 2) Then, change the region type setting;

[0043] 3) The master station sends a hardware restart command to the power collection terminal. After the power collection terminal restarts, the type change setting of the master station is completed.

[0044] Compared with the prior art, the advantages of the present invention are: by configuring the product type, protocol type and region type of different power collection terminals as parameters, and loading the corresponding part of the parameters before operation, multiple product lines can use the same set of software, solving the problems of multiple software versions and complex power collection terminal software management, preventing repeated BUGs from occurring, and increasing the maintainability of the software. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A production configuration flow chart of the configuration phase of the method of an embodiment of the present invention;

[0046] Figure 2 A flow chart of a power collection terminal configuration protocol type / region type in the configuration phase of the method of an embodiment of the present invention;

[0047] Figure 3A flowchart of a master station configuring a protocol type / region type during the configuration phase of the method of an embodiment of the present invention;

[0048] Figure 4 The figure is a flow chart of the loading phase of the method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The present invention is further described in detail below with reference to the accompanying drawings.

[0050] A method for generalizing power collection terminal software, which extracts the differences in circuit boards, protocols, and regions and configures them as parameters. The read-only circuit board type is written in the compilation stage, and different hardware interface layers are loaded according to the circuit board type. For type I concentrators and type III special transformer products on the same circuit board, in order to ensure that a set of programs can be used to run, it is necessary to match which product it currently belongs to through the high and low level differences of GPIO and the external local communication module. After confirming the product type, it is necessary to dynamically identify the protocol type and regional type of the current product, which are written in production, and encrypted modifications are allowed during operation. Different protocol libraries are loaded according to the protocol type, and finally differentiated codes are implemented for each regional type, ultimately realizing a method of using a set of terminal software for each product line.

[0051] Specifically, the method of the present invention includes a configuration phase and a loading phase. First, in the configuration phase, the circuit board type, protocol type, and region type of the power collection terminal need to be configured as parameters. Among them, the circuit board type is configured during production, while the protocol type and region type can be configured during production, the power collection terminal, and the master station.

[0052] See also Figure 1 , configure the power collection terminal circuit board type as a parameter, including the following steps:

[0053] 1) Write a configuration file based on the product type and compile it into the read-only area of ​​the power collection terminal file system: In view of the different type specifications of Southern Grid and State Grid, two major categories are distinguished: State Grid and Southern Grid. State Grid: Type III special transformer and Type I concentrator are the most common product types, and their type specifications are similar and can be integrated into a circuit board, defined as G1; Type II concentrator is defined as G2; Type III concentrator is defined as G3; Type I special transformer G4; Type II special transformer G5; Southern Grid: Type II special transformer and Type I concentrator are defined as N1, Type II concentrator is defined as N2; Type III concentrator is defined as N3; Type I special transformer N4; Type II special transformer N5; Except for Type III special transformer and Type I concentrator, other product types can be distinguished according to different circuit board types.

[0054] In order to ensure that the circuit board type parameters match the power collection terminal hardware, the circuit board type should be determined when burning the chip and cannot be edited or upgraded. To this end, a read-only configuration file carrying the circuit board parameters needs to be passed in when compiling the power collection terminal file system.

[0055] 2) Configure GPIO level to distinguish between type I concentrator and type III special transformer. Since type III special transformer and type I concentrator cannot be distinguished by circuit board type alone, in order to prevent the serious consequences of product type mismatch caused by missing or damaged resistors during production, GPIO uses the level status of three IO ports to judge the product type. The GPIO status of the peripheral resistor of type I concentrator is configured as 111, and the GPIO status of the peripheral resistor of type III special transformer is configured as 000. The judgment logic is: 110 / 011 / 101 / 111-type I concentrator, 001 / 100 / 010 / 000-type III special transformer, which can increase the fault tolerance of a damaged resistor. Through different IO port states, the product types of type III special transformer and type I concentrator can be distinguished.

[0056] After completing the product type configuration, the protocol type configuration is performed, and the protocol type parameters should be set in the parameter setting link of the production stage. Since the protocol type is only related to the software, the protocol type is allowed to be changed during the operation process, so the protocol type is saved in the readable and writable area of ​​the power collection terminal file system.

[0057] Then, configure the region type. The region type parameters should be set in the parameter setting link of the production stage. Since the region type is only related to the software, the region type is allowed to be changed during the operation process, so the region type is saved in the readable and writable area of ​​the power collection terminal file system. Complete the production stage configuration.

[0058] See also Figure 2 In order to support the change of protocol type and region type during software operation, a protocol type / region type change menu can be provided on the LCD screen of the power collection terminal:

[0059] 1) First, enter the local debugging menu and enter the protocol type / region type settings;

[0060] 2) Then, enter your password;

[0061] 3) Change the protocol type / region type settings;

[0062] 4) Restart to complete the type change setting of the power collection terminal.

[0063] See also Figure 3 At the same time, the power collection terminal needs to support the master station to set the protocol type and region type:

[0064] 1) First, the master station sends a message to the power collection terminal to enter the in-plant mode;

[0065] 2) Then, change the protocol type / region type settings;

[0066] 3) To ensure the normal operation of the power collection terminal, the master station sends a hardware restart command to the power collection terminal. After the power collection terminal restarts, the type change setting of the master station is completed.

[0067] See also Figure 4 After the configuration is completed, the application loading phase of the power collection terminal includes the following steps:

[0068] 1) After the power is turned on, the application process is first used to determine the product type of the power collection terminal:

[0069] 1.1) First, determine the product type of the current power collection terminal according to the current product type configuration file. If it is determined to be a type I concentrator or a type III special transformer, proceed to step 1.2). If it is determined to be other product types, proceed to step 2);

[0070] 1.2) Determine the IO port configuration of the peripheral resistor: determine whether it is a type I concentrator or a type III special transformer through the IO port status. The specific product type corresponding to the IO port status is as described above;

[0071] 1.3) In order to further ensure that the wrong product type is not judged, it is also necessary to achieve this with the help of local module adaptation: since the local module communication interface of the concentrator and the dedicated transformer is consistent (the same UART serial port communication), the local module mounted on the type I concentrator is a PLC carrier module, and the local module mounted on the type III dedicated transformer is a control module. Therefore, the power collection terminal can send a protocol to the mounted local module to read the local module to further confirm the product type. The power collection terminal can use the carrier protocol to read the local module. If the reading is successful, the local module is judged to be a carrier module, recorded as case 1, and enter step 1.4; if it is not successful, the control protocol is used to read the local module, recorded as case 2, and enter step 1.5); if both are unsuccessful, it is judged that no module is inserted, recorded as case 3, and enter step 1.6);

[0072] 1.4) If the IO port status determined in step 1.2) is a concentrator, the current product type is determined to be a concentrator; if the IO status determined in step 1.2) is a special variable, the power collection terminal stops running and outputs a message (warning message) indicating that the local communication module type and the product type do not match on the LCD screen of the power collection terminal; then proceed to step 2);

[0073] 1.5) If the IO port status determined in step 1.2) is a dedicated transformer, the current product type is determined to be a dedicated transformer. If the IO port status determined in step 1.2) is a concentrator, the power collection terminal stops running and outputs a message (warning message) indicating that the local communication module type and the product type do not match on the LCD screen of the power collection terminal; then proceed to step 2);

[0074] 1.6) If the IO port status determined in step 1.2) is a concentrator, the current product type is determined to be a concentrator; if the IO port status determined in step 1.2) is a dedicated variable, the current product type is determined to be a dedicated variable; then proceed to step 2);

[0075] 2) Based on the determined current product type, the application process loads the corresponding hardware interface layer;

[0076] 3) The application process determines the protocol type of the current power collection terminal and loads the corresponding protocol library;

[0077] 4) The application process executes the corresponding differentiated code according to the region type of the current power collection terminal. For example, the uplink heartbeat in Jiangxi region requires 2 times without retransmission, while the uplink heartbeat in Henan region requires 3 times with retransmission. This part of the code is distinguished by differentiated codes.

[0078] Thereafter, during operation, the method described above may be used to change the protocol type or region type through the power collection terminal or the master station.

[0079] This method can achieve the use of the same software for multiple product lines, solve the problem of multiple software versions and complex software management of power acquisition terminals, prevent repeated bugs from occurring, and increase the maintainability of the software.

Claims

1. A method for generalizing power collection terminal software, characterized in that: The steps include: 1) Configuration stage: In the production stage, the circuit board type, protocol type and region type of the power collection terminal are configured as parameters, and the circuit board type corresponds to the product type of the power collection terminal; The configuration method of the circuit board type is as follows: according to the different type specifications of the Southern Grid and the State Grid, the State Grid and the Southern Grid are distinguished into two categories: the State Grid: the Type III special transformer and the Type I concentrator are defined as G1, the Type II concentrator is defined as G2, the Type III concentrator is defined as G3, the Type I special transformer is G4, and the Type II special transformer is G5; the Southern Grid: the Type II special transformer and the Type I concentrator are defined as N1, the Type II concentrator is defined as N2; the Type III concentrator is defined as N3; the Type I special transformer is N4; the Type II special transformer is N5; the corresponding product type is obtained according to the above circuit board type, the configuration file is written, and it is compiled into the read-only area of ​​the current power collection terminal file system; 2) Loading phase: 2.1) First determine the product type of the current power collection terminal; 2.2) According to the determined current product type, the application process loads the corresponding hardware interface layer; 2.3) The application process determines the protocol type of the current power collection terminal and loads the corresponding protocol library; 2.4) The application process executes the corresponding differentiated code according to the regional type of the current power collection terminal.

2. The method for generalizing power collection terminal software according to claim 1, characterized in that: Based on the configuration of the board type, different GPIO levels are configured to distinguish between Type I concentrators and Type III dedicated transformers.

3. The method for generalizing power collection terminal software according to claim 2, characterized in that: In step 2.1) of the loading phase, the following steps are further included: 2.1.1) First, determine the product type of the current power collection terminal according to the current product type configuration file. If it is determined to be a type I concentrator or a type III special transformer, proceed to step 2.1.2). If it is determined to be other product types, proceed to step 2.2); 2.1.2) Determine the IO port configuration of the peripheral resistor: Determine whether the current power collection terminal is a type I concentrator or a type III dedicated transformer through the IO port status.

4. The method for generalizing power collection terminal software according to claim 3 is characterized in that: After step 2.1.2), make the following distinctions: 2.1.3) The local module that can be mounted on the type I concentrator is a PLC carrier module, and the local module that can be mounted on the type III special transformer is a control module. Therefore, the current power collection terminal sends a protocol to the mounted local module to read the local module to further confirm the product type. The current power collection terminal uses the carrier protocol to read the local module. If the reading is successful, it is judged that the local module is a carrier module, which is recorded as case 1 and enters step 2.1.4); if the reading is unsuccessful, the local module is read using the control protocol, which is recorded as case 2 and enters step 2.1.5); if both are unsuccessful, it is judged that no module is inserted, which is recorded as case 3 and enters step 2.1.6); 2.1.4) If the IO port status determined in step 2.1.2) is a concentrator, the current product type is determined to be a concentrator; if the IO status determined in step 2.1.2) is a dedicated variable, the power collection terminal stops running and outputs a warning on the LCD screen of the power collection terminal; Then proceed to step 2.2); 2.1.5) If the IO port status determined in step 2.1.2) is a dedicated transformer, the current product type is determined to be a dedicated transformer. If the IO port status determined in step 2.1.2) is a concentrator, the power collection terminal stops running and outputs a warning on the LCD screen of the power collection terminal; Then proceed to step 2.2); 2.1.6) If the IO port status determined in step 2.1.2) is a concentrator, the current product type is determined to be a concentrator; if the IO port status determined in step 2.1.2) is a dedicated variable, the current product type is determined to be a dedicated variable; then proceed to step 2.2).

5. The method for generalizing power collection terminal software according to any one of claims 1 to 3, characterized in that: In the configuration phase, the protocol type parameters are set in the parameter setting link of the production phase, and the protocol type is saved in the readable and writable area of ​​the power collection terminal file system.

6. The method for generalizing power collection terminal software according to any one of claims 1 to 3, characterized in that: The protocol type can be changed on the power collection terminal, including the following steps: 1) First, enter the local debugging menu and enter the protocol type setting; 2) Then, enter your password; 3) Change the protocol type settings; 4) Restart to complete the protocol type change setting of the power collection terminal.

7. The method for generalizing power collection terminal software according to any one of claims 1 to 3, characterized in that: The protocol type can be changed at the master station by following the steps below: 1) First, the master station sends a message to the power collection terminal to enter the in-plant mode; 2) Then, change the protocol type settings; 3) The master station sends a hardware restart command to the power collection terminal. After the power collection terminal restarts, the type change setting of the master station is completed.

8. The method for generalizing power collection terminal software according to any one of claims 1 to 3, characterized in that: In the configuration stage, the regional type parameters are set in the parameter setting link of the production stage, and the regional type is saved in the readable and writable area of ​​the power collection terminal file system.

9. The method for generalizing power collection terminal software according to any one of claims 1 to 3, characterized in that: The region type can be changed in the power collection terminal, including the following steps: 1) First, enter the local debugging menu and enter the region type setting; 2) Then, enter your password; 3) Change the region type setting; 4) Restart to complete the configuration of changing the regional type of the power collection terminal.

10. The method for generalizing power collection terminal software according to any one of claims 1 to 3, characterized in that: The region type can be changed on the main site, including the following steps: 1) First, the master station sends a message to the power collection terminal to enter the in-plant mode; 2) Then, change the region type setting; 3) The master station sends a hardware restart command to the power collection terminal. After the power collection terminal restarts, the type change setting of the master station is completed.

Citation Information

Patent Citations

  • Multi-mode multi-frequency communication transmission system

    CN106097691A

  • Power consumption information acquisition terminal software comparing testing device and method thereof

    CN107271810A