[go: up one dir, main page]

CN110531307B - Debugging method and device of power acquisition terminal and power acquisition terminal - Google Patents

Debugging method and device of power acquisition terminal and power acquisition terminal Download PDF

Info

Publication number
CN110531307B
CN110531307B CN201910863276.5A CN201910863276A CN110531307B CN 110531307 B CN110531307 B CN 110531307B CN 201910863276 A CN201910863276 A CN 201910863276A CN 110531307 B CN110531307 B CN 110531307B
Authority
CN
China
Prior art keywords
verification information
terminal
debugging
preset
power acquisition
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.)
Active
Application number
CN201910863276.5A
Other languages
Chinese (zh)
Other versions
CN110531307A (en
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.)
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric 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 Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN201910863276.5A priority Critical patent/CN110531307B/en
Publication of CN110531307A publication Critical patent/CN110531307A/en
Application granted granted Critical
Publication of CN110531307B publication Critical patent/CN110531307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the invention provides a debugging method and device of an electric power acquisition terminal and the electric power acquisition terminal, and relates to the technical field of intelligent electric meters. The debugging method comprises the following steps: when the USB flash disk is inserted into the power acquisition terminal, state configuration information stored in the USB flash disk is acquired, wherein the state configuration information comprises a state instruction; when the state instruction indicates that the power acquisition terminal enters a debugging state, acquiring verification information from the USB flash disk; and if the verification information meets the preset condition, opening the super terminal and executing debugging operation through the super terminal. The method and the device for debugging the power acquisition terminal and the power acquisition terminal provided by the embodiment of the invention can improve the field debugging efficiency of the power acquisition terminal.

Description

Debugging method and device of power acquisition terminal and power acquisition terminal
Technical Field
The invention relates to the technical field of intelligent electric meters, in particular to a debugging method and device of an electric power acquisition terminal and the electric power acquisition terminal.
Background
In recent years, with the steady development of the economy of China, the industry of the intelligent electric meters in China is developed more maturely, and more than 100 thousands of currently operated electric power acquisition terminals are achieved. Due to the existence of the situations of site meter replacement, platform area crosstalk, load switching and the like, the workload of site debugging and setting of the power acquisition terminal is increased rapidly. At present, a serial port line is generally used for connecting a Personal Computer (PC) to a power acquisition terminal for field debugging, and corresponding communication and debugging operations are performed. Because the electric power acquisition terminal is usually installed in the place with a severe environment, the mode of connecting the serial port line and the PC is adopted, inconvenience is brought to field debugging, and the efficiency of field maintenance of the electric power acquisition terminal is too low.
Disclosure of Invention
The invention aims to provide a method and a device for debugging an electric power acquisition terminal and the electric power acquisition terminal, which can improve the efficiency of field debugging of the electric power acquisition terminal.
Embodiments of the invention may be implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for debugging an electric power acquisition terminal, which is applied to an electric power acquisition terminal, the electric power acquisition terminal is connected to a usb flash disk in a pluggable manner, the electric power acquisition terminal is connected to a remote terminal in a communication manner, the remote terminal is provided with a super terminal, and the method includes: when the USB flash disk is inserted into the power acquisition terminal, acquiring state configuration information stored in the USB flash disk, wherein the state configuration information comprises a state instruction; when the state instruction indicates that the power acquisition terminal enters a debugging state, acquiring verification information from the U disk; and if the verification information meets the preset condition, opening the super terminal and executing debugging operation through the super terminal.
Therefore, on the premise of not changing the original structure of the electric power acquisition terminal, the super terminal is opened by acquiring the state configuration information and the verification information in the USB flash disk and the debugging operation is executed through the super terminal, the debugging operation in a wireless state is realized, the carrying of a PC (personal computer) and the arrangement step of a serial port line are eliminated, the field debugging operation of workers is more convenient, and the field debugging efficiency of the electric power acquisition terminal is greatly improved. Meanwhile, through verification of verification information, malicious debugging of non-working personnel on the electric power acquisition terminal is avoided, and the safety of debugging operation of the electric power acquisition terminal is improved.
In an optional implementation manner, before the step of opening the super terminal and executing the debugging operation by the super terminal if the verification information meets the preset condition, the method further includes: judging whether the memory size of the verification information exceeds a first preset value or not; when the memory size of the verification information does not exceed the first preset value, judging whether the size of the number in the verification information is within a preset range, whether the format of the verification information accords with a preset rule and whether the length of the verification information exceeds the second preset value; and when the size of the number in the verification information is within the preset range, the format in the verification information accords with the preset rule, and the length of the verification information does not exceed the second preset value, judging that the verification information accords with the preset condition.
Therefore, through the advance setting of the first preset value, the preset range, the preset rule and the second preset value, the malicious debugging of non-working personnel on the power acquisition terminal can be avoided, and the security of the debugging operation of the power acquisition terminal is improved.
In an optional embodiment, the step of determining whether the format of the verification information conforms to a preset rule includes: judging whether the content of odd-numbered bits of the verification information is a number or not and whether the content of even-numbered bits of the verification information is a preset character or not; and when the content of odd-numbered bits in the verification information is a number and the content of even-numbered bits in the verification information is a preset character, judging that the format in the verification information conforms to the preset rule.
Therefore, through the advance setting of the preset rules, the malicious debugging of non-working personnel on the electric power acquisition terminal can be avoided, and the safety of the debugging operation of the electric power acquisition terminal is improved.
In an optional embodiment, the power collecting terminal prestores flag information, the state configuration information further includes debugging parameters, and the step of opening the super terminal and executing the debugging operation through the super terminal includes: carrying out shift calculation and or operation on the mark information according to the debugging parameters to obtain a character string with a preset length; and opening the super terminal according to the character string with the preset length and executing debugging operation through the super terminal.
Therefore, on the premise of not changing the original structure of the electric power acquisition terminal, the super terminal is opened by acquiring the debugging parameters in the USB flash disk and the debugging operation is executed through the super terminal, the debugging operation in a wireless state is realized, the carrying step of a PC (personal computer) and the arrangement step of serial port lines are omitted, the on-site debugging operation of a worker is more convenient, and the on-site debugging efficiency of the electric power acquisition terminal is greatly improved.
In an alternative embodiment, the method further comprises: when the super terminal is opened, recording corresponding log information; and sending the log information to the USB flash disk for storage.
In a second aspect, an embodiment of the present invention provides a debugging device for an electric power acquisition terminal, which is applied to an electric power acquisition terminal, the electric power acquisition terminal is connected to a usb flash disk in a pluggable manner, the electric power acquisition terminal is connected to a remote terminal in a communication manner, the remote terminal is provided with a super terminal, and the debugging device includes: the first acquisition module is used for acquiring state configuration information stored in the USB flash disk when the USB flash disk is inserted into the power acquisition terminal, wherein the state configuration information comprises a state instruction; the second acquisition module is used for acquiring verification information from the USB flash disk when the state instruction indicates that the power acquisition terminal enters a debugging state; and the matching debugging module is used for opening the super terminal and executing debugging operation through the super terminal if the verification information meets the preset condition.
In an optional implementation manner, the debugging device of the power collecting terminal further includes: the first judgment module is used for judging whether the memory size of the verification information exceeds a first preset value or not; the second judging module is used for judging whether the size of the number in the verification information is within a preset range, whether the format of the verification information accords with a preset rule and whether the length of the verification information exceeds a second preset value when the size of the memory of the verification information does not exceed the first preset value; and the third judging module is used for judging that the verification information meets the preset condition when the number size in the verification information is within the preset range, the format in the verification information meets the preset rule and the length size of the verification information does not exceed the second preset value.
In an alternative embodiment, the second determination module includes: the first judging unit is used for judging whether the content of odd-numbered bits of the verification information is a number or not and whether the content of even-numbered bits of the verification information is a preset character or not; and the second judging unit is used for judging that the format in the verification information conforms to the preset rule when the content of odd-numbered bits in the verification information is a number and the content of even-numbered bits in the verification information is a preset character.
In an optional embodiment, the power acquisition terminal pre-stores flag information, the state configuration information further includes a debugging parameter, and the matching and debugging module includes: the calculation unit is used for carrying out shift calculation and or operation on the mark information according to the debugging parameters to obtain a character string with a preset length; and the debugging unit is used for opening the super terminal according to the character string with the preset length and executing debugging operation through the super terminal.
In a third aspect, an embodiment of the present invention provides an electric power collection terminal, including a memory storing a computer program and a processor, where the computer program is read by the processor and executed to implement the method for debugging an electric power collection terminal according to any one of the foregoing embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic view of an application environment of a power acquisition terminal according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electric power acquisition terminal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a debugging method of an electric power acquisition terminal according to an embodiment of the present invention;
FIG. 4 is a sub-flowchart of step S106 shown in FIG. 3;
fig. 5 is a schematic flowchart of another debugging method for a power acquisition terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of a debugging apparatus of an electric power acquisition terminal according to an embodiment of the present invention;
FIG. 7 is a block diagram of the structure of the match debug module shown in FIG. 6;
fig. 8 is a block diagram of another debugging apparatus for a power acquisition terminal according to an embodiment of the present invention.
Icon: 100-a power acquisition terminal; 110-USB interface; 120-debugging means; 121-a first acquisition module; 122-a second acquisition module; 123-match debugging module; 1231-a computing unit; 1232-debug unit; 124-a first judgment module; 125-a second judgment module; 126-a third judgment module; 127-logging module; 128-a sending module; 130-a telecommunications module; 200-U disk; 300-a remote terminal; 400-super terminal.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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 invention.
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, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Referring to fig. 1, which is a schematic view of an application environment of the power collection terminal 100 provided in this embodiment, the power collection terminal 100 is connected to the usb disk 200 in a pluggable manner, and the power collection terminal 100 is connected to the remote terminal 300 in a communication manner. As shown in fig. 2, the power collection terminal 100 is connected to the USB disk 200 via the USB interface 110 in a pluggable manner, and the power collection terminal 100 is connected to the remote terminal 300 via the remote communication module 130 in a communication manner.
The remote terminal 300 is provided with a super terminal 400, the super terminal 400 can be understood as a section of process or a software function module of the remote terminal 300, and the super terminal 400 is used for executing debugging operation. The remote terminal 300 may be a computer.
In the present embodiment, the power collecting terminal 100 includes a memory storing a computer program and a processor, and the computer program is read and executed by the processor and performs a corresponding function. For example, when the USB disk 200 is inserted into the USB interface 110 of the power collection terminal 100 and the power collection terminal 100 recognizes the USB disk 200, the computer program in the memory is executed by the processor to implement the debugging method disclosed in the present embodiment.
In this embodiment, the memory is used to store computer programs or data. The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like.
The processor is used to read/write data or computer programs stored in the memory and perform corresponding functions. The processor may be, but is not limited to, a Micro Controller Unit (MCU), an FPGA (Field Programmable Gate Array), and the like.
Fig. 3 is a schematic flow chart of a debugging method of the power acquisition terminal according to an embodiment of the present invention. It should be noted that, the method for debugging the power acquisition terminal according to the embodiment of the present invention is not limited by fig. 3 and the following specific sequence, and it should be understood that, in other embodiments, the sequence of some steps in the method for debugging the power acquisition terminal according to the embodiment of the present invention may be interchanged according to actual needs, or some steps in the method may be omitted or deleted. The debugging method of the power acquisition terminal can be applied to the power acquisition terminal 100 shown in fig. 1 and 2, and the specific flow shown in fig. 3 will be described in detail below.
Step S101, when the USB flash disk is inserted into the power acquisition terminal, state configuration information stored in the USB flash disk is acquired, and the state configuration information comprises a state instruction.
In this embodiment, before the usb disk 200 is inserted into the power collection terminal 100, a worker may store state configuration information in the usb disk 200 in advance, and the state configuration information may be stored in a first file created by the usb disk 200.
In this embodiment, when the usb disk 200 is inserted into the power acquisition terminal 100, the power acquisition terminal 100 may first identify the usb disk 200, and if the usb disk 200 can be identified, first determine whether the first file of the usb disk 200 is empty, and if not, the power acquisition terminal 100 may read the status configuration information; if the power collection terminal 100 is empty, an error will be reported.
And S102, when the state instruction indicates that the power acquisition terminal enters a debugging state, acquiring verification information from the USB flash disk.
In this embodiment, the status command may be set to binary 0 or 1, and when the status command is set to 0, the status command instructs the power collection terminal 100 to enter the communication state. When the status command is set to 1, the status command indicates that the power collection terminal 100 enters the debug state.
Therefore, after the power collecting terminal 100 reads the status configuration information, the value of the status command is read first and compared with the value in the default status parameter table. If the value of the status instruction read by the power acquisition terminal 100 is 0, when the value in the status parameter table of the power acquisition terminal 100 is 0, the value in the status parameter table of the power acquisition terminal 100 is not changed, that is, the power acquisition terminal 100 continues to maintain the communication status. If the value of the status instruction read by the power acquisition terminal 100 is 0, when the value in the status parameter table of the power acquisition terminal 100 is 1, the value in the status parameter table of the power acquisition terminal 100 is changed from 1 to 0, that is, the power acquisition terminal 100 is changed from the debug state to the communication state. If the value of the status instruction read by the power acquisition terminal 100 is 1, when the value in the status parameter table of the power acquisition terminal 100 is 0, the value in the status parameter table of the power acquisition terminal 100 is changed from 0 to 1, that is, the power acquisition terminal 100 is changed from the communication state to the debugging state, and the verification information is read from the usb disk 200. If the value of the status instruction read by the power acquisition terminal 100 is 1, when the value in the status parameter table of the power acquisition terminal 100 is 1, the value in the status parameter table of the power acquisition terminal 100 is not changed, that is, the power acquisition terminal 100 continues to maintain the debugging state, and reads the verification information from the usb disk 200.
In this embodiment, before the usb disk 200 is inserted into the power collection terminal 100, a worker may store the verification information in the usb disk 200 in advance, and the verification information may be stored in the second file created by the usb disk 200.
And step S106, if the verification information meets the preset condition, opening the super terminal and executing debugging operation through the super terminal.
In this embodiment, the status configuration information acquired by the power acquisition terminal 100 further includes a debugging parameter, and the power acquisition terminal 100 prestores flag information. After the power acquisition terminal 100 acquires the verification information from the usb disk 200 and determines that the verification information meets the preset condition, the power acquisition terminal 100 calculates the flag information according to the debugging parameters to obtain a character string capable of opening the super terminal 400, and the super terminal 400 executes the debugging operation of the function corresponding to the character string according to the character string.
Referring to fig. 4, a flow chart of the sub-step of step S106 is shown, which specifically includes:
and a substep S1061 of performing shift calculation or operation on the mark information according to the debugging parameters to obtain a character string with a preset length.
In this embodiment, after determining that the verification information meets the preset condition, the power acquisition terminal 100 performs shift calculation on the flag information in the memory to obtain a plurality of shifted flag information, and the power acquisition terminal 100 performs or operation on the plurality of shifted flag information to obtain a character string with a preset length. It can be understood that, a shift algorithm is performed on each number 1 and 0 in the flag information according to the number size in the debugging parameter to obtain a plurality of shifted flag information, and the plurality of shifted flag information are subjected to or operation to obtain a character string with a preset length. For example, the flag information is 00001001, and the size of the shifted number in the debug parameter is 2, then the 0 th bit 1 in the flag information will be shifted to the left by two bits, the 7 th bit and the 6 th bit 0 in the flag information will be shifted to the 0 th bit and the 1 st bit, and the rest bits 0 in the flag information will be shifted to the left by two bits in turn, the shifted flag information is 00000100, and the 3 rd bit 1 in the flag information will be shifted to the left by two bits, so that the shifted flag information is 00100000. And performing OR operation on the shifted mark information 00000100 and the shifted mark information 00100000 to obtain a character string 00100100 with the preset length of 8.
In this embodiment, the preset length of the character string may also be set to other number of bits, and is not limited to 8 bits. Preferably, it can be set to 32 bits.
And a sub-step S1062 of opening the super terminal according to the character string of the preset length and performing a debugging operation through the super terminal 400.
In this embodiment, after the power acquisition terminal 100 calculates the character string with the preset length, the character string with the preset length is assigned to the serial port of the super terminal 400, the super terminal 400 opens the corresponding serial port according to the character string with the preset length, and the super terminal 400 debugs the corresponding function according to the opened serial port. That is to say, the power collection terminal 100 may obtain different character strings according to different debugging parameters, the power collection terminal 100 may open different serial ports of the super terminal 400 according to the different character strings, and the super terminal 400 may debug different functions according to the opened different serial ports. Namely, different serial ports correspond to different function debugging and different serial ports corresponding to different character strings. Meanwhile, the power collection terminal 100 opens a new serial port and does not change the original opened serial port.
Referring to fig. 5, another schematic flow chart of a debugging method of the power acquisition terminal 100 according to an embodiment of the present invention is shown, where on the basis of the schematic flow chart shown in fig. 3, the debugging method further includes the following steps:
step S103, determining whether the memory size of the verification information exceeds a first preset value.
In this embodiment, the first preset value may be set to 2M, and the power collection terminal 100 obtains the memory size of the verification information before reading the verification information. If the size of the memory of the verification information exceeds the first preset value, it is determined that the verification information is wrong, and the power acquisition terminal 100 reports the mistake. And if the memory size of the verification information does not exceed the first preset value, reading the verification information and further judging the verification information.
Step S104, when the memory size of the verification information does not exceed the first preset value, judging whether the number size in the verification information is within a preset range, whether the format of the verification information accords with a preset rule and whether the length size of the verification information exceeds a second preset value.
Step S105, when the number size in the verification information is within the preset range, the format in the verification information conforms to the preset rule, and the length size of the verification information does not exceed a second preset value, the verification information is judged to conform to the preset condition.
In this embodiment, the power acquisition terminal 100 traverses all the numbers in the verification information, and determines whether all the numbers in the verification information are within a preset range, and if the numbers in the verification information are not within the preset range, the power acquisition terminal 100 reports an error; if all the numbers in the verification information are within the preset range, the power acquisition terminal 100 sequentially judges whether the format of the verification information conforms to the preset rule; the specific way for judging whether the format of the verification information meets the preset rule by the power acquisition terminal 100 may be to judge whether the content of odd-numbered bits of the verification information is a number or not and whether the content of even-numbered bits of the verification information is a preset character or not, and if the content of odd-numbered bits of the verification information is not a number or the content of even-numbered bits of the verification information is not a preset character, the power acquisition terminal 100 reports an error; if the contents of the odd-numbered bits of the verification information are all numbers and the contents of the even-numbered bits of the verification information are all preset characters, judging that the format in the verification information conforms to a preset rule; after reading the end symbol in the verification information, the power acquisition terminal 100 acquires the length of the verification information, and determines whether the length of the verification information exceeds a second preset value, and if the length of the verification information exceeds the second preset value, the power acquisition terminal 100 reports an error; and if the length of the verification information does not exceed the second preset value, judging that the verification information meets the preset condition. The debugging operation at this time is represented by a compliance operation of a worker, and is not a malicious operation of a non-worker.
In this embodiment, the order of judging the memory size, format and length of the verification information by the power acquisition terminal 100 is arbitrary, and is not limited to the order stated in this embodiment, and may be arbitrarily set according to the actual situation.
In this embodiment, the preset range may be set to 1-31, the preset character may be set to comma, and the end symbol may be set to semicolon. It can be understood that after the power collection terminal 100 reads the end symbol, regardless of whether there is any content behind the verification information, the power collection terminal 100 regards the determination as end, obtains the length of the content before the end symbol in the verification information, and compares the length of the content before the end symbol with the second preset value.
Further, in this embodiment, the verification information may also be composed of letters or without parentheses, and determine whether the letters or without parentheses match the letters or without parentheses stored in the preset database, and if the letters or without parentheses of the verification information are not in the preset database, an error is reported; if the letters or the parentheses of the verification information are in the preset database, the format and the length of the verification information are judged, and if the letters or the parentheses of the verification information are in accordance with the requirements, the verification information is judged to be in accordance with the preset conditions.
Further, in this embodiment, the debugging method further includes the following steps:
and step S107, when the super terminal is opened, recording corresponding log information.
And step S108, sending the log information to the USB flash disk for storage.
In this embodiment, the day information includes the name and time of the function opened by the super terminal 400 when the power collection terminal 100 opens the serial port of the super terminal 400, and the worker can clearly know the whole debugging process according to the log information.
In order to perform the corresponding steps in the above embodiments and various possible manners, an implementation manner of the debugging apparatus 120 is given below. Referring to fig. 6, fig. 6 is a functional module schematic diagram of a debugging device 120 of a power acquisition terminal according to an embodiment of the present invention. It should be noted that the basic principle and the generated technical effects of the debugging device 120 of the power collecting terminal provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments. The debugging apparatus 120 includes a first obtaining module 121, a second obtaining module 122, and a matching debugging module 123.
The first obtaining module 121 is configured to obtain status configuration information stored in the usb disk 200 when the usb disk 200 is inserted into the power collection terminal 100, where the status configuration information includes a status instruction.
It is understood that the first obtaining module 121 is configured to execute the content of step S101.
The second obtaining module 122 is configured to obtain the verification information from the usb disk 200 when the status instruction indicates that the power collection terminal 100 enters the debug state.
It is understood that the second obtaining module 122 is used for executing the content of the above step S102.
The matching and debugging module 123 is configured to open the super terminal 400 and execute a debugging operation through the super terminal 400 if the verification information meets the preset condition.
It is understood that the matching debugging module 123 is used for executing the content of the above step S106.
Referring to fig. 7, the match debugging module 123 includes a computing unit 1231 and a debugging unit 1232.
The calculating unit 1231 is configured to determine whether the content of the odd bits of the verification information is a number or not and whether the content of the even bits of the verification information is a preset character or not.
It is understood that the calculating unit 1231 is used for executing the content of the above step S1061.
The debugging unit 1232 is configured to determine that the format in the verification information conforms to the preset rule when the content of the odd bits in the verification information is a number and the content of the even bits in the verification information is a preset character.
It is understood that the debugging unit 1232 is used for executing the content of the above step S1062.
Further, as shown in fig. 8, the debugging apparatus 120 further includes a first judging module 124, a second judging module 125, a third judging module 126, a logging module 127 and a sending module 128 on the basis of fig. 6.
The first determining module 124 is configured to determine whether the memory size of the verification information exceeds a first preset value.
It is understood that the first determining module 124 is used for executing the content of the above step S103.
The second determining module 125 is configured to determine whether the size of the number in the verification information is within a preset range, whether the format of the verification information meets a preset rule, and whether the size of the length of the verification information exceeds the second preset value, when the size of the memory of the verification information does not exceed the first preset value.
It is understood that the second determining module 125 is used for executing the content of the above step S104.
The third determining module 126 is configured to determine that the verification information meets the preset condition when the size of the number in the verification information is within the preset range, the format in the verification information meets the preset rule, and the length of the verification information does not exceed a second preset value.
It is understood that the third determining module 126 is used for executing the content of the above step S105.
The logging module 127 is used for recording corresponding log information when the super terminal 400 is opened.
It is understood that the logging module 127 is used for executing the content of the above step S107.
The sending module 128 is configured to send the log information to the usb disk 200 for saving.
It is understood that the sending module 128 is used for executing the content of the above step S108.
Alternatively, the first obtaining module 121, the second obtaining module 122, the match debugging module 123, the first judging module 124, the second judging module 125, the third judging module 126, the logging module 127 and the sending module 128 may be stored in a memory in the form of software or Firmware (Firmware), and may be executed by a processor.
In summary, embodiments of the present invention provide a method and an apparatus for debugging an electric power collection terminal, and the electric power collection terminal, on the premise that an original structure of the electric power collection terminal is not changed, a super terminal is opened by acquiring state configuration information and verification information in a usb disk, and a debugging operation is performed through the super terminal, so that a debugging operation in a wireless state is realized, a carrying step of a PC and an arrangement step of a serial port line are omitted, a field debugging operation of a worker is more convenient, and further, the field debugging efficiency of the electric power collection terminal is greatly improved. Meanwhile, through verification of verification information, malicious debugging of non-working personnel on the electric power acquisition terminal is avoided, and the safety of debugging operation of the electric power acquisition terminal is improved.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. The debugging method of the electric power acquisition terminal is characterized by being applied to the electric power acquisition terminal, wherein the electric power acquisition terminal is connected with a USB flash disk in a pluggable mode, the electric power acquisition terminal is in communication connection with a remote terminal, the remote terminal is provided with a super terminal, and the method comprises the following steps:
when the USB flash disk is inserted into the power acquisition terminal, acquiring state configuration information stored in the USB flash disk, wherein the state configuration information comprises a state instruction;
when the state instruction indicates that the power acquisition terminal enters a debugging state, acquiring verification information from the U disk;
and if the verification information meets the preset condition, opening the super terminal and executing debugging operation through the super terminal.
2. The method according to claim 1, wherein before the step of turning on the super terminal and executing the debugging operation by the super terminal if the verification information meets a preset condition, the method further comprises:
judging whether the memory size of the verification information exceeds a first preset value or not;
when the memory size of the verification information does not exceed the first preset value, judging whether the number size in the verification information is within a preset range, whether the format of the verification information accords with a preset rule and whether the length size of the verification information exceeds a second preset value;
and when the number size in the verification information is within the preset range, the format of the verification information accords with the preset rule, and the length size of the verification information does not exceed the second preset value, judging that the verification information accords with the preset condition.
3. The debugging method of the power acquisition terminal according to claim 2, wherein the step of determining whether the format of the verification information conforms to a preset rule comprises:
judging whether the content of odd-numbered bits of the verification information is a number or not and whether the content of even-numbered bits of the verification information is a preset character or not;
and when the content of odd-numbered bits in the verification information is a number and the content of even-numbered bits in the verification information is a preset character, judging that the format of the verification information conforms to the preset rule.
4. The debugging method of the power collecting terminal according to claim 1, wherein the power collecting terminal is pre-stored with flag information, the state configuration information further includes debugging parameters, and the step of turning on the super terminal and performing the debugging operation through the super terminal includes:
carrying out shift calculation and or operation on the mark information according to the debugging parameters to obtain a character string with a preset length;
and opening the super terminal according to the character string with the preset length and executing debugging operation through the super terminal.
5. The debugging method of the power collecting terminal according to claim 1, further comprising:
when the super terminal is opened, recording corresponding log information;
and sending the log information to the USB flash disk for storage.
6. The utility model provides a debugging device of electric power collection terminal, its characterized in that is applied to electric power collection terminal, electric power collection terminal can pull out with the USB flash disk and insert and be connected, electric power collection terminal and remote terminal communication connection, remote terminal is provided with super terminal, the device includes:
the first acquisition module is used for acquiring state configuration information stored in the USB flash disk when the USB flash disk is inserted into the power acquisition terminal, wherein the state configuration information comprises a state instruction;
the second acquisition module is used for acquiring verification information from the USB flash disk when the state instruction indicates that the power acquisition terminal enters a debugging state;
and the matching debugging module is used for opening the super terminal and executing debugging operation through the super terminal if the verification information meets the preset condition.
7. The debugging device of a power harvesting terminal according to claim 6, further comprising:
the first judgment module is used for judging whether the memory size of the verification information exceeds a first preset value or not;
the second judging module is used for judging whether the size of the number in the verification information is within a preset range, whether the format of the verification information accords with a preset rule and whether the length of the verification information exceeds a second preset value when the size of the memory of the verification information does not exceed the first preset value;
and the third judging module is used for judging that the verification information meets the preset condition when the number size in the verification information is within the preset range, the format of the verification information meets the preset rule and the length size of the verification information does not exceed the second preset value.
8. The debugging device of the power collecting terminal according to claim 7, wherein the second determining module comprises:
the first judging unit is used for judging whether the content of odd-numbered bits of the verification information is a number or not and whether the content of even-numbered bits of the verification information is a preset character or not;
and the second judging unit is used for judging that the format of the verification information conforms to the preset rule when the content of odd-numbered bits in the verification information is a number and the content of even-numbered bits in the verification information is a preset character.
9. The debugging device of the power acquisition terminal according to claim 6, wherein the power acquisition terminal has pre-stored flag information, the state configuration information further includes debugging parameters, and the matching and debugging module includes:
the calculation unit is used for carrying out shift calculation and or operation on the mark information according to the debugging parameters to obtain a character string with a preset length;
and the debugging unit is used for opening the super terminal according to the character string with the preset length and executing debugging operation through the super terminal.
10. A power harvesting terminal comprising a memory storing a computer program and a processor, the computer program being read and executed by the processor to implement the method of commissioning a power harvesting terminal as claimed in any one of claims 1 to 5.
CN201910863276.5A 2019-09-12 2019-09-12 Debugging method and device of power acquisition terminal and power acquisition terminal Active CN110531307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910863276.5A CN110531307B (en) 2019-09-12 2019-09-12 Debugging method and device of power acquisition terminal and power acquisition terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910863276.5A CN110531307B (en) 2019-09-12 2019-09-12 Debugging method and device of power acquisition terminal and power acquisition terminal

Publications (2)

Publication Number Publication Date
CN110531307A CN110531307A (en) 2019-12-03
CN110531307B true CN110531307B (en) 2021-09-21

Family

ID=68668497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910863276.5A Active CN110531307B (en) 2019-09-12 2019-09-12 Debugging method and device of power acquisition terminal and power acquisition terminal

Country Status (1)

Country Link
CN (1) CN110531307B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404269A (en) * 2020-03-16 2020-07-10 宁波三星医疗电气股份有限公司 Port-based information interaction method and device and power terminal
CN111475433A (en) * 2020-03-30 2020-07-31 宁波三星医疗电气股份有限公司 Serial port using method and device, power terminal and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661441A (en) * 2009-09-08 2010-03-03 王德高 Protecting method for USB movable storage device based on internet
CN102479187A (en) * 2010-11-23 2012-05-30 盛乐信息技术(上海)有限公司 GBK Character Query System Based on Parity Check and Its Realization Method
CN202903993U (en) * 2012-10-26 2013-04-24 郑州瑞能电气有限公司 Portable on-site calibrator for electric energy collection terminal
CN202995027U (en) * 2012-12-26 2013-06-12 北京煜邦电力技术有限公司 Ammeter detection system
CN203396940U (en) * 2013-06-21 2014-01-15 河南省电力公司济源供电公司 Portable electrical energy acquisition terminal on-site debug instrument
CN104320520A (en) * 2014-10-14 2015-01-28 小米科技有限责任公司 Terminal commissioning method and device
CN105225460A (en) * 2015-10-30 2016-01-06 吴桂广 A kind of side slope safety protective survey system
CN105354055A (en) * 2015-10-22 2016-02-24 宁波三星医疗电气股份有限公司 Upgrade method for electric power acquisition terminal
CN105572508A (en) * 2016-01-15 2016-05-11 国家电网公司 Debugging method for area metering equipment diagnosis
CN106556759A (en) * 2016-11-10 2017-04-05 国网湖北省电力公司咸宁供电公司 A kind of power distribution automation apparatus debugging method and debugging system
CN206657101U (en) * 2017-01-12 2017-11-21 北京煜邦电力技术股份有限公司 A kind of electric energy meter holds debugging instrument
CN109564539A (en) * 2016-08-03 2019-04-02 英特尔公司 Remote debugging and management

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060082609A1 (en) * 2002-12-02 2006-04-20 Silverbrook Research Pty Ltd Compensation for horizontal skew between adjacent rows of nozzles on a printhead module
US7472029B2 (en) * 2005-11-17 2008-12-30 International Business Machines Corporation System for improving RAS characteristics relating to calibration algorithms in an automated robotic system
KR100892679B1 (en) * 2007-07-12 2009-04-15 주식회사 금화전기 Defective insulator equipment for distribution line with photographing means
US9225087B2 (en) * 2012-09-14 2015-12-29 Google Inc. Computer component connector
US9606185B2 (en) * 2013-05-22 2017-03-28 Chang Zhou Current Supply Company Of Jiangsu Electric Power Company Intelligent calibration system for backup-power automatic switching device
CN203849388U (en) * 2014-04-22 2014-09-24 武汉科贝科技有限公司 Student safety numerical control power supply system automatic testing platform
CN205067685U (en) * 2015-11-02 2016-03-02 万高(杭州)科技有限公司 Verification device of chip
CN108139449B (en) * 2016-01-11 2020-08-07 特因泰什工业公司 Improved quality control test system for portable charging devices and method of use

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661441A (en) * 2009-09-08 2010-03-03 王德高 Protecting method for USB movable storage device based on internet
CN102479187A (en) * 2010-11-23 2012-05-30 盛乐信息技术(上海)有限公司 GBK Character Query System Based on Parity Check and Its Realization Method
CN202903993U (en) * 2012-10-26 2013-04-24 郑州瑞能电气有限公司 Portable on-site calibrator for electric energy collection terminal
CN202995027U (en) * 2012-12-26 2013-06-12 北京煜邦电力技术有限公司 Ammeter detection system
CN203396940U (en) * 2013-06-21 2014-01-15 河南省电力公司济源供电公司 Portable electrical energy acquisition terminal on-site debug instrument
CN104320520A (en) * 2014-10-14 2015-01-28 小米科技有限责任公司 Terminal commissioning method and device
CN105354055A (en) * 2015-10-22 2016-02-24 宁波三星医疗电气股份有限公司 Upgrade method for electric power acquisition terminal
CN105225460A (en) * 2015-10-30 2016-01-06 吴桂广 A kind of side slope safety protective survey system
CN105572508A (en) * 2016-01-15 2016-05-11 国家电网公司 Debugging method for area metering equipment diagnosis
CN109564539A (en) * 2016-08-03 2019-04-02 英特尔公司 Remote debugging and management
CN106556759A (en) * 2016-11-10 2017-04-05 国网湖北省电力公司咸宁供电公司 A kind of power distribution automation apparatus debugging method and debugging system
CN206657101U (en) * 2017-01-12 2017-11-21 北京煜邦电力技术股份有限公司 A kind of electric energy meter holds debugging instrument

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于U盘读取文件机制打开超级终端串口的研究;陈文敏;《机电信息》;20190315;第22-23页 *

Also Published As

Publication number Publication date
CN110531307A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN102005818B (en) Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line
CN101207280B (en) Power system relay protection intelligent calibration method and device
CN105048632B (en) The consistency detection system and method for intelligent substation IED configuration informations and SCD file
CN110531307B (en) Debugging method and device of power acquisition terminal and power acquisition terminal
CN105790441A (en) Intelligent transformer substation relay protection inspection system
CN104793076A (en) Intelligent automatic test system and method
CN112506757A (en) Automatic test method, system, computer device and medium thereof
CN113591393B (en) Fault diagnosis method, device, equipment and storage medium for smart substation
CN112015720A (en) On-site rapid setting method and system for relay protection equipment
CN118331161B (en) Concentrator operation environment monitoring management system
CN107204898A (en) Production test method, system and the storage device of intelligent appliance, mobile terminal
CN108009092B (en) Design method of vehicle-mounted network management general test case protocol
CN114900421A (en) Fault detection method and device, electronic equipment and readable storage medium
CN117970226B (en) Smart electric meter reading detection method, medium and system
CN110535972A (en) A kind of the coal gas detection equipment centralized management and communication system, equipment and readable storage medium storing program for executing of hardware and software platform
CN113722340A (en) Processing method and system for remote automatic point table updating based on power distribution device
CN118245636A (en) A substation monitoring screen verification method, system, equipment and medium
CN116055326A (en) Intelligent substation automation and network security equipment configuration verification method and system
CN214669306U (en) Non-invasive load identification module detection device
CN115941726A (en) Industrial equipment monitoring method and system, electronic equipment and storage medium
CN213876704U (en) Intelligent circuit breaker
CN116184086A (en) Distribution line operation monitoring system and method
CN114398211A (en) A function test method and client for loop measurement and control terminal
CN119813077A (en) A visual monitoring method, system, device and medium for relay protection
CN118626072A (en) A method for automatically generating configuration programs from SAMA diagrams

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
GR01 Patent grant
GR01 Patent grant