CN111144733B - Platform identification method, platform identification device, metering automation terminal and readable storage medium - Google Patents

Platform identification method, platform identification device, metering automation terminal and readable storage medium Download PDF

Info

Publication number
CN111144733B
CN111144733B CN201911339868.3A CN201911339868A CN111144733B CN 111144733 B CN111144733 B CN 111144733B CN 201911339868 A CN201911339868 A CN 201911339868A CN 111144733 B CN111144733 B CN 111144733B
Authority
CN
China
Prior art keywords
platform
identification
port
mode
pull
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
CN201911339868.3A
Other languages
Chinese (zh)
Other versions
CN111144733A (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 CN201911339868.3A priority Critical patent/CN111144733B/en
Publication of CN111144733A publication Critical patent/CN111144733A/en
Application granted granted Critical
Publication of CN111144733B publication Critical patent/CN111144733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Water Supply & Treatment (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • General Health & Medical Sciences (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The embodiment of the application provides a platform identification method, a platform identification device, a metering automation terminal and a readable storage medium, and relates to the technical field of electric power automation. The platform identification method is applied to a metering automation terminal comprising at least one identification module by first adjusting a level pattern output by the at least one identification module comprised by the metering automation terminal. And then acquiring the identification information of the platform to be identified, which is returned to each identification module based on the level mode. And finally, identifying the attribute of the platform to be identified according to each piece of identification information, wherein the metering automation terminal is pre-stored with the corresponding relation between the attribute of each platform and each piece of identification information. Therefore, the identification and application of the metering automation terminal on different platforms are realized rapidly and simply.

Description

Platform identification method, platform identification device, metering automation terminal and readable storage medium
Technical Field
The present application relates to the technical field of power automation, and in particular, to a platform identification method, a device, a metering automation terminal, and a readable storage medium.
Background
Electric power resources play a very important role in daily life of people, and electric power is also a power source for operation of social public facilities and enterprise equipment, and relates to energy development and economic development. Along with development of science and technology, an automatic platform (hereinafter referred to as a platform) of the electric power system is optimized, and operation and maintenance of a metering automatic terminal and the platform can work in a matched mode, so that effective operation of the electric power system is guaranteed.
The platform to which the metering automation terminal is applicable is constantly optimized and updated to meet the increasing demands of users, but the old metering automation terminal cannot adapt to the new platform. How to quickly and simply realize the identification and application of the metering automation terminal on different platforms is a problem to be solved currently.
Disclosure of Invention
In view of the foregoing, the present application provides a platform identification method, apparatus, metering automation terminal, and readable storage medium to solve the above-mentioned problems.
Embodiments of the present application may be implemented as follows:
in a first aspect, an embodiment provides a platform identification method applied to a metering automation terminal including at least one identification module, the method comprising:
adjusting a level mode output by at least one identification module included in the metering automation terminal;
acquiring identification information of a platform to be identified returned to each identification module based on the level mode;
and identifying the attribute of the platform to be identified according to each piece of identification information, wherein the metering automation terminal is pre-stored with the corresponding relation between the attribute of each platform and each piece of identification information.
In an alternative embodiment, the method further comprises:
and running the corresponding application program according to the identified attribute of the platform to be identified.
In an alternative embodiment, the metering automation terminal includes an identification module, the identification module includes a first output port, a first identification port, and a second identification port, and the step of adjusting a level mode output by at least one identification module included in the metering automation terminal includes:
adjusting a first output port included in the identification module to output a first preset voltage, adjusting a level mode output by the first identification port to be a pull-down mode, and keeping outputting the pull-down mode in a first preset time;
then adjusting the level mode output by the first identification port to be a pull-up mode, and keeping outputting the pull-up mode in the first preset time;
secondly, adjusting the level mode output by the second identification port to be a pull-down mode, and keeping outputting the pull-down mode in the first preset time;
and then adjusting the level mode output by the second identification port to be a pull-up mode, and keeping outputting the pull-up mode within the first preset time.
In an alternative embodiment, the metering automation terminal includes an identification module, the identification module includes a second output port and a third identification port, and the step of adjusting a level mode output by at least one identification module included in the metering automation terminal includes:
adjusting the second output port to output a second preset voltage, adjusting the level mode output by the third identification port to be a pull-down mode, and keeping outputting the pull-down mode in a second preset time;
then adjusting the level mode output by the third identification port to be a pull-up mode, and keeping outputting the pull-up mode in the second preset time;
secondly, regulating the second output port to output a third preset voltage, regulating the level mode output by the third identification port to be a pull-down mode, and keeping outputting the pull-down mode in the second preset time;
and then adjusting the level mode output by the third identification port to be a pull-up mode, and keeping outputting the pull-up mode within the second preset time.
In an optional embodiment, the step of identifying the attribute of the platform to be identified according to each piece of identification information includes:
and searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal, if so, determining that the platform attributes are the attributes of the platform to be identified, otherwise, determining that the platform to be identified is an unknown platform.
In an alternative embodiment, the metering automation terminal includes a plurality of identification modules, and the step of identifying the attribute of the platform to be identified according to each piece of identification information includes:
searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal or not;
if yes, judging whether the searched platform attributes are consistent, and if yes, determining that the platform attributes are the attributes of the platform to be identified;
and if the platform attribute corresponding to each piece of identification information is not stored in the metering automation terminal or the searched platform attribute is inconsistent, determining that the platform to be identified is an unknown platform.
In an alternative embodiment, the method further comprises:
and identifying the attribute of the platform to be identified according to each piece of identification information, and displaying pre-stored information after determining that the platform to be identified is an unknown platform so as to prompt failure in identifying the platform to be identified.
In a second aspect, an embodiment provides a platform identification device applied to a metering automation terminal connected to a platform to be identified, the device comprising:
the adjusting module is used for adjusting the level mode output by at least one identification module included in the metering automation terminal;
the acquisition module is used for acquiring the identification information of the platform to be identified, which is returned to each identification module based on the level mode;
and the identification module is used for identifying the attribute of the platform to be identified according to each piece of identification information, wherein the corresponding relation between the attribute of each platform and each piece of identification information is prestored in the metering automation terminal.
In a third aspect, an embodiment provides a metering automation terminal comprising a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory in communication over the bus when the metering automation terminal is running, the processor executing the machine readable instructions to perform the steps of the platform identification method of any of the preceding embodiments.
In a fourth aspect, an embodiment provides a readable storage medium having stored therein a computer program which when executed implements the platform identification method of any one of the preceding embodiments.
The embodiment of the application provides a platform identification method, which is used for quickly and simply realizing the identification and application of a metering automation terminal on different platforms by adjusting the level mode of at least one identification module included in the metering automation terminal and returning the identification information of each identification module to identify the platform according to the platform to be identified based on different level modes.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a block schematic diagram of a metering automation terminal according to an embodiment of the present application.
Fig. 2 is a flowchart of a platform identification method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of one of the substeps of step S1 in fig. 1 according to an embodiment of the present application.
Fig. 4 is a second schematic diagram of the substeps of step S1 in fig. 1 according to the embodiment of the present application.
Fig. 5 is a schematic diagram of the substeps of step S3 in fig. 1 according to an embodiment of the present application.
Fig. 6 is a functional block diagram of a platform identification device according to an embodiment of the present application.
Icon: 100-metering automation terminal; 110-memory; a 120-processor; 130-a platform identification device; 131-an adjustment module; 132-an acquisition module; 133-an identification module.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are 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 application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that, without conflict, features in embodiments of the present application may be combined with each other.
As introduced in the background art, the platform to which the metering automation terminal is applicable is constantly optimized and updated to meet the increasing demands of users, but the old metering automation terminal cannot adapt to the new platform, and operation errors often occur.
The problem can be solved by the following two methods, namely, firstly, an identification pin is added on the metering automation terminal, and a platform is identified by the identification pin, but the method only aims at a new metering automation terminal, and an old metering automation terminal cannot adapt to the new platform.
And secondly, storing the platform information of different platforms in a memory included in the metering automation terminal, and identifying the platform by comparing the platform information. However, this method requires additional steps during production in the workshops, which increases production costs, and the metering automation terminal runs the wrong program when the platform information is lost.
Based on the above research, how to quickly and simply realize the identification and application of the metering automation terminal on different platforms is a current urgent problem to be solved.
In view of this, the embodiment of the application provides a platform identification method, which adjusts a level mode output by at least one identification module through a hardware structure of an existing metering automation terminal, and returns to an identification information identification platform of each identification module based on different level modes according to a platform to be identified. Thus, the recognition and application of the metering automation terminal on different platforms are realized rapidly and simply.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a metering automation terminal 100 according to an embodiment of the present application. The apparatus may include a processor 120, a memory 110, a platform identification device 130, and a bus, the memory 110 storing machine readable instructions executable by the processor 120, the processor 120 and the memory 110 communicating over the bus when the metering automation terminal 100 is running, the processor 120 executing the machine readable instructions and performing the steps of the platform identification method.
The memory 110, the processor 120, and other elements are electrically connected directly or indirectly to each other to achieve signal transmission or interaction.
For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The platform identification means 130 comprises at least one software functional module which may be stored in the memory 110 in the form of software or firmware (firmware). The processor 120 is configured to execute executable modules stored in the memory 110, such as software functional modules or computer programs included in the platform identification device 130.
The Memory 110 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor 120 may be an integrated circuit chip with signal processing capabilities. The processor 120 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.
But also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In this embodiment, the memory 110 is configured to store a program, and the processor 120 is configured to execute the program after receiving an execution instruction. The method of flow definition disclosed in any of the embodiments of the present application may be applied to the processor 120 or implemented by the processor 120.
It will be appreciated that the structure shown in fig. 1 is merely illustrative. The metering automation terminal 100 may also have more or fewer components than shown in fig. 1 or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
An embodiment of the present application provides a platform identification method, which is applied to the above-mentioned metering automation terminal 100, please refer to fig. 2 in combination, and fig. 2 is one of flowcharts of the platform identification method provided in the embodiment of the present application. The specific flow shown in fig. 2 is described in detail below.
Step S1, adjusting a level pattern output by at least one identification module included in the metering automation terminal 100.
And S2, acquiring identification information of the platform to be identified returned to each identification module based on the level mode.
And step S3, identifying the attribute of the platform to be identified according to each piece of identification information, wherein the corresponding relation between the attribute of each platform and each piece of identification information is prestored in the metering automation terminal 100.
The identification module may include a plurality of identification ports, each of which is a General-purpose input/output (GPIO) port, and a level mode of the GPIO port may be configured as a pull-up mode, a pull-down mode, an open-drain mode, or a float mode.
Taking the processor included in the metering automation terminal 100 as an example, the STM32F407, when the level mode of any one GPIO port is configured as a pull-up mode, a pull-down mode or a floating mode, three kinds of check bits of uncertainty, 1, 0 and the like can be obtained in the empty-pin suspension state of the GPIO port, so that different identification information which is sent by different platforms and is composed according to different check bits can be obtained by changing the level mode of the identification port included in the identification module.
When the identification module is configured into different level modes, different platforms to be identified can return different identification information according to the level modes, and specific attributes of the platforms to be identified can be judged by identifying the identification information. In this way, the recognition and application of the metering automation terminal 100 on different platforms can be realized quickly and simply.
Further, after the attribute of the platform to be identified is identified, the corresponding application program can be operated according to the identified attribute of the platform to be identified. Thus, the problem that the metering automation terminal 100 cannot be normally used due to the fact that the metering automation terminal 100 runs application programs applicable to other platforms on the current platform is effectively avoided.
As an alternative embodiment, the metering automation terminal 100 includes an identification module, where the identification module includes a first output port, a first identification port, and a second identification port, referring to fig. 3, the level mode of the output of at least one identification module included in the metering automation terminal 100 may be adjusted through steps S111-S114.
Step S111, first, a first output port included in the identification module is adjusted to output a first preset voltage, a level mode output by the first identification port is adjusted to be a pull-down mode, and the pull-down mode is kept to be output in a first preset time.
Step S112, adjusting the level mode output by the first identification port to be a pull-up mode, and maintaining the pull-up mode for the first preset time.
Step S113, second adjusting the level mode output by the second identification port to be a pull-down mode, and maintaining the output of the pull-down mode in the first preset time.
Step S114, adjusting the level mode output by the second identification port to be a pull-up mode, and maintaining the pull-up mode for the first preset time.
Also taking the example of the processor included in the metering automation terminal 100 being STM32F407, the first output port may be a pin 5 PE6 port, the first identification port may be a pin 141 PE0 port, and the second identification port may be a pin 142 PE1 port.
It should be noted that, in different platforms, the functions of the first output port, the first identification port, and the second identification port are different, for example, the first output port may be an RE/DE port (serial port enable port), the first identification port may be an RXD port (data input pin), and the second identification port may be a TXD port (data transmit pin). For another example, the first output port, the first identification port, and the second identification port may also be empty pins, i.e., the first output port, the first identification port, and the second identification port do not function pins.
When the RE/DE port outputs a low level, check bits received by the RXD port and the TXD port can be read. Accordingly, the first preset voltage may be set to a low level.
Further, when the identification module is used, the correspondence between the attribute of each platform and each identification information may be pre-established and stored as shown in table 1.
TABLE 1
Platform 1 Platform 2
Each identification port is configured in different level modes Check bit Check bit
PE0 port is configured in a pull-down mode 1 0
PE0 Port is configured in pull-up mode 1 1
PE1 Port is configured in a pull-down mode 1 0
PE1 Port is configured in pull-up mode 1 1
Identification information 1111 0101
As can be seen from table 1, when identifying the platform to be identified, the level patterns of the first identification port (PE 0 port) and the second identification port (PE 1 port) are changed according to a preset manner, so as to obtain the identification information returned by different platforms according to different check bits. For example, the identification information returned by the platform 1 is 1111, and the identification information returned by the platform 2 is 0101. And establishing a corresponding relation between each platform attribute and the identification information as shown in the table 1, and searching the platform attribute corresponding to the identification information in the corresponding relation, thereby identifying the platform attribute of the platform to be identified.
Further, the attribute of the platform to be identified can be identified according to each piece of identification information according to the following method.
Searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal 100, if yes, determining that the platform attributes are the attributes of the platform to be identified, otherwise, determining that the platform to be identified is an unknown platform.
For example, the identification information returned by the platform to be identified based on different level modes is 1111, and the corresponding relation in the lookup table 1 can be known, and the platform attribute corresponding to the identification information is platform 1. In this way, the platform to be identified can be determined as the platform 1.
As another alternative embodiment, the metering automation terminal 100 includes an identification module, where the identification module includes a second output port and a third identification port, referring to fig. 4, the level mode of adjusting the output of at least one identification module included in the metering automation terminal 100 may be implemented through steps S121-S124.
Step S121, adjusting the second output port to output a second preset voltage, adjusting the level mode output by the third identification port to be a pull-down mode, and maintaining the output of the pull-down mode for a second preset time.
Step S122, adjusting the level mode output by the third identification port to be a pull-up mode, and maintaining the pull-up mode for the second preset time.
Step 123, second adjusting the second output port to output a third preset voltage, adjusting the level mode output by the third identification port to be a pull-down mode, and maintaining the pull-down mode output within the second preset time.
Step S124, adjusting the level mode output by the third identification port to be a pull-up mode, and maintaining the pull-up mode for the second preset time.
Also taking the example of the processor included in the metering automation terminal 100 being STM32F407, the second output port may be a PA4 port with pin number 40 and the third identification port may be a PG0 port with pin number 56.
In different platforms, the functions of the second output port and the third identification port are different, for example, the second output port may be an esam_pwr_on port (a power port of an ESAM chip), and the third identification port may be an esam_cs port (a data receiving and transmitting port of the ESAM chip). For another example, the second output port, the third identification port may also be empty pins, i.e., the first output port, the first identification port, and the second identification port do not function pins.
The ESAM chip is used for encrypting various embedded terminals to realize data security storage, and the specific principle is not described here.
When the ESAM_PWR_ON port outputs a high level, the power of the ESAM chip is turned ON, and when the ESAM_PWR_ON port outputs a low level, the power of the ESAM chip is turned off. Accordingly, the second preset voltage may be set to a high level, and the third preset voltage may be set to a low level.
Further, when the identification module is used, the correspondence between the attribute of each platform and each identification information may be pre-established and stored as shown in table 2.
TABLE 2
As can be seen from table 2, when identifying the platform to be identified, the level mode of the third identification port (PG 0 port) is changed according to a preset manner, so as to obtain the identification information returned by different platforms according to different check bits. For example, the identification information returned by the platform 1 is 1100, and the identification information returned by the platform 2 is 0101. And establishing a corresponding relation between each platform attribute and the identification information as shown in the table 2, and searching the platform attribute corresponding to the identification information in the corresponding relation, thereby identifying the platform attribute of the platform to be identified.
It can be understood that the attribute of the platform to be identified can be identified according to each piece of identification information as follows.
Searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal 100, if yes, determining that the platform attributes are the attributes of the platform to be identified, otherwise, determining that the platform to be identified is an unknown platform.
For example, the obtained identification information returned by the platform to be identified based on different level modes is 0101, and the corresponding relation in the lookup table 2 can be known, and the platform attribute corresponding to the identification information is platform 2. In this way, the platform to be identified can be determined as the platform 2.
As a further alternative embodiment, the platform attribute may also be identified together according to at least two different identification modules. For example, referring to fig. 5, the metering automation terminal 100 includes a plurality of identification modules, and the identification of the attribute of the platform to be identified according to each piece of identification information may be further implemented through steps S31-S34:
step S31, searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal 100.
And step S32, if so, judging whether the searched platform attributes are consistent.
And step S33, if the platform attributes are consistent, determining that the platform attributes are the attributes of the platform to be identified.
Step S34, if the platform attribute corresponding to each piece of identification information is not stored in the metering automation terminal 100 or the searched platform attributes are inconsistent, determining that the platform to be identified is an unknown platform.
For example, the first output port, the first identification module and the second identification module are used for identification, the acquired identification information is 1111, and the table 1 can know that the platform attribute corresponding to the identification information is platform 1. Meanwhile, by using the second output port, the third identification module performs identification, the obtained identification information is 1100, and the lookup table 2 can know that the platform attribute corresponding to the identification information is also platform 1. Since the searched platform attributes are consistent, the attribute of the platform to be identified can be determined to be the platform 1.
For another example, the first output port, the first identification module, and the second identification module are used for identification, the acquired identification information is 1111, and the table 1 indicates that the platform attribute corresponding to the identification information is platform 1. Meanwhile, by using the second output port, the third identification module performs identification, the obtained identification information is 0101, and the lookup table 2 can know that the platform attribute corresponding to the identification information is platform 2. The platform to be identified can be determined to be an unknown platform at the moment because the searched platform attributes are inconsistent.
For another example, the first output port, the first identification module, and the second identification module are used for identification, the obtained identification information is 0101, and the table 1 indicates that the platform attribute corresponding to the identification information is platform 2. Meanwhile, by using the second output port, the third identification module performs identification, the obtained identification information is 0101, and the lookup table 2 can know that the platform attribute corresponding to the identification information is also platform 2. Since the searched platform attributes are consistent, the attribute of the platform to be identified can be determined to be the platform 2.
Therefore, the attribute of the platform to be identified is identified together according to a plurality of different identification modules, so that the identification result is more accurate.
Further, the attribute of the platform to be identified is identified according to each piece of identification information, and pre-stored information is displayed after the platform to be identified is determined to be an unknown platform so as to prompt failure in identifying the platform to be identified. So that the user can quickly acquire the state information of the current metering automation terminal 100, and the user experience is improved.
The embodiment of the application provides a platform identification method, which quickly and simply realizes the identification and application of a metering automation terminal 100 on different platforms by adjusting the level mode of at least one identification module included in the metering automation terminal and returning the identification information of each identification module to identify the platform according to the platform to be identified based on different level modes.
Referring to fig. 6 in combination, the embodiment of the present application also provides a platform identification device 130, which is applied to a metering automation terminal 100 connected to a platform to be identified, and includes:
an adjustment module 131 for adjusting a level pattern output by at least one identification module included in the metering automation terminal 100;
an obtaining module 132, configured to obtain identification information of the platform to be identified returned to each of the identifying modules based on the level mode;
and an identification module 133, configured to identify the attribute of the platform to be identified according to each piece of identification information, where the corresponding relationship between the attribute of each platform and each piece of identification information is pre-stored in the metering automation terminal 100.
It will be clear to those skilled in the art that, for convenience and brevity of description, the specific principles of the platform identification device 130 described above may refer to the corresponding procedures in the foregoing method, and will not be described in detail herein.
The present embodiment also provides a readable storage medium having stored therein a computer program which when executed implements the platform identification method described above.
In summary, the embodiments of the present application provide a platform identification method, apparatus, metering automation terminal 100 and readable storage medium. The platform identification method is applied to a metrology automation terminal 100 comprising at least one identification module by adjusting a level pattern output by the at least one identification module comprised by the metrology automation terminal 100. And then acquiring the identification information of the platform to be identified, which is returned to each identification module based on the level mode. And finally, identifying the attribute of the platform to be identified according to each piece of identification information, wherein the metering automation terminal 100 stores the corresponding relation between the attribute of each platform and each piece of identification information in advance. In this way, the recognition and application of the metering automation terminal 100 on different platforms are realized quickly and simply.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions easily conceivable by those skilled in the art within the technical scope of the present application should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A platform identification method for use with a metering automation terminal including at least one identification module, the method comprising:
adjusting a level mode output by at least one identification module included in the metering automation terminal;
acquiring identification information of a platform to be identified returned to each identification module based on the level mode;
identifying the attribute of the platform to be identified according to each piece of identification information, wherein the metering automation terminal is pre-stored with the corresponding relation between the attribute of each platform and each piece of identification information;
wherein one identification module includes first output port, first identification port and second identification port, the step of adjusting the level mode that at least one identification module that metering automation terminal includes outputted includes:
adjusting a first output port included in the identification module to output a first preset voltage, adjusting a level mode output by the first identification port to be a pull-down mode, and keeping outputting the pull-down mode in a first preset time;
then adjusting the level mode output by the first identification port to be a pull-up mode, and keeping outputting the pull-up mode in the first preset time;
secondly, adjusting the level mode output by the second identification port to be a pull-down mode, and keeping outputting the pull-down mode in the first preset time;
and then adjusting the level mode output by the second identification port to be a pull-up mode, and keeping outputting the pull-up mode within the first preset time.
2. The platform identification method according to claim 1, wherein the method further comprises:
and running the corresponding application program according to the identified attribute of the platform to be identified.
3. The platform identification method according to claim 1, wherein the metering automation terminal comprises a second identification module, the second identification module comprises a second output port and a third identification port, and the step of adjusting the level pattern output by at least one identification module comprised by the metering automation terminal comprises:
adjusting the second output port to output a second preset voltage, adjusting the level mode output by the third identification port to be a pull-down mode, and keeping outputting the pull-down mode in a second preset time;
then adjusting the level mode output by the third identification port to be a pull-up mode, and keeping outputting the pull-up mode in the second preset time;
secondly, regulating the second output port to output a third preset voltage, regulating the level mode output by the third identification port to be a pull-down mode, and keeping outputting the pull-down mode in the second preset time;
and then adjusting the level mode output by the third identification port to be a pull-up mode, and keeping outputting the pull-up mode within the second preset time.
4. A platform identification method according to claim 1 or 3, wherein the step of identifying the attribute of the platform to be identified based on each of the identification information comprises:
and searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal, if so, determining that the platform attributes are the attributes of the platform to be identified, otherwise, determining that the platform to be identified is an unknown platform.
5. The platform identification method according to claim 1, wherein the metering automation terminal includes a plurality of identification modules, and the step of identifying the attribute of the platform to be identified based on each of the identification information includes:
searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal or not;
if yes, judging whether the searched platform attributes are consistent, and if yes, determining that the platform attributes are the attributes of the platform to be identified;
and if the platform attribute corresponding to each piece of identification information is not stored in the metering automation terminal or the searched platform attribute is inconsistent, determining that the platform to be identified is an unknown platform.
6. The platform identification method according to claim 1, wherein the method further comprises:
and identifying the attribute of the platform to be identified according to each piece of identification information, and displaying pre-stored information after determining that the platform to be identified is an unknown platform so as to prompt failure in identifying the platform to be identified.
7. A platform identification device for use in a metering automation terminal connected to a platform to be identified, the device comprising:
the adjusting module is used for adjusting the level mode output by at least one identification module included in the metering automation terminal;
the acquisition module is used for acquiring the identification information of the platform to be identified, which is returned to each identification module based on the level mode;
the identification module is used for identifying the attribute of the platform to be identified according to each piece of identification information, wherein the corresponding relation between the attribute of each platform and each piece of identification information is prestored in the metering automation terminal; the identification module comprises a first output port, a first identification port and a second identification port;
the adjusting module is specifically used for: adjusting a first output port included in the identification module to output a first preset voltage, adjusting a level mode output by the first identification port to be a pull-down mode, and keeping outputting the pull-down mode in a first preset time; then adjusting the level mode output by the first identification port to be a pull-up mode, and keeping outputting the pull-up mode in the first preset time; secondly, adjusting the level mode output by the second identification port to be a pull-down mode, and keeping outputting the pull-down mode in the first preset time; and then adjusting the level mode output by the second identification port to be a pull-up mode, and keeping outputting the pull-up mode within the first preset time.
8. A metering automation terminal comprising a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory in communication via the bus when the metering automation terminal is in operation, the processor executing the machine readable instructions to perform the steps of the platform identification method of any one of claims 1 to 6.
9. A readable storage medium, characterized in that the readable storage medium has stored therein a computer program which, when executed, implements the platform identification method of any one of claims 1-6.
CN201911339868.3A 2019-12-23 2019-12-23 Platform identification method, platform identification device, metering automation terminal and readable storage medium Active CN111144733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911339868.3A CN111144733B (en) 2019-12-23 2019-12-23 Platform identification method, platform identification device, metering automation terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911339868.3A CN111144733B (en) 2019-12-23 2019-12-23 Platform identification method, platform identification device, metering automation terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN111144733A CN111144733A (en) 2020-05-12
CN111144733B true CN111144733B (en) 2023-07-18

Family

ID=70519303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911339868.3A Active CN111144733B (en) 2019-12-23 2019-12-23 Platform identification method, platform identification device, metering automation terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN111144733B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117278355B (en) * 2023-11-16 2024-03-08 杭州视芯科技股份有限公司 Master-slave communication system, control method of master-slave communication system, and computer device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544471A (en) * 2013-08-05 2014-01-29 华中科技大学 Moving-platform heterogeneous parallel automatic identifier for geostationary targets
CN108319564A (en) * 2018-01-25 2018-07-24 北京航天发射技术研究所 A kind of method of identification power source communications bus ID in power supply-distribution system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202488619U (en) * 2012-03-16 2012-10-10 青岛海信宽带多媒体技术有限公司 Hardware configuration identification circuit and set top box
CN102708077B (en) * 2012-05-25 2015-04-29 华为终端有限公司 State recognition method and state recognition apparatus
CN103699453B (en) * 2013-12-13 2017-01-04 华为终端有限公司 Module identification method and terminal unit
CN104407259B (en) * 2014-12-11 2016-08-17 长沙威胜信息技术有限公司 Power information acquisition terminal communication module hardware ID recognition methods
CN104467907B (en) * 2014-12-11 2016-08-10 长沙威胜信息技术有限公司 Repeater and information transferring method thereof and communication module hardware ID recognition methods
WO2018218430A1 (en) * 2017-05-27 2018-12-06 福建联迪商用设备有限公司 Method and system for identifying liquid crystal of different manufacturers
CN109002410A (en) * 2018-07-02 2018-12-14 广州视源电子科技股份有限公司 A kind of GPIO mouthfuls of detection method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544471A (en) * 2013-08-05 2014-01-29 华中科技大学 Moving-platform heterogeneous parallel automatic identifier for geostationary targets
CN108319564A (en) * 2018-01-25 2018-07-24 北京航天发射技术研究所 A kind of method of identification power source communications bus ID in power supply-distribution system

Also Published As

Publication number Publication date
CN111144733A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
US6496790B1 (en) Management of sensors in computer systems
US9424221B2 (en) Automated cabling process for a complex environment
CN112291387B (en) Method, device and equipment for automatically addressing master and slave machines and storage medium
CN109388604B (en) Hot plug control method, device and storage medium based on PCIe
GB2544568A (en) System, method and non-transitory computer readable medium for software testing
CN106485261A (en) A kind of method and apparatus of image recognition
CN108647131B (en) Output system of running log
CN111144733B (en) Platform identification method, platform identification device, metering automation terminal and readable storage medium
CN110058920A (en) Virtual machine performance detection method and device, electronic equipment, storage medium
CN103164309A (en) SOL functional test method and system
CN109586987B (en) Method and device for testing equipment in cloud storage system
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN114389969B (en) Method and device for testing client, electronic equipment and storage medium
CN112311574B (en) Network topology connection checking method, device and equipment
CN108376110A (en) A kind of automatic testing method, system and terminal device
CN109491733B (en) Interface display method based on visualization and related equipment
CN108965108B (en) Message pushing method and related equipment
CN116301676A (en) Printing equipment connection method, device, equipment and storage medium
CN115203158A (en) Data comparison method, device, equipment and storage medium
CN117472696B (en) Method, device, equipment, medium and server for detecting assembly position of adapter card
CN108882268B (en) Method and device for updating device configuration
CN112866008B (en) NAT rule enabling attribute configuration method, NAT rule enabling attribute configuration device, electronic equipment and storage medium
CN117491960B (en) Radar product detection method, device, equipment and medium
CN114885231B (en) Communication protocol self-adaptive signal acquisition method, system, terminal and medium
CN117492822B (en) Change contrast method, device, electronic equipment and storage medium

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