CN111144733A - Platform identification method and device, metering automation terminal and readable storage medium - Google Patents
Platform identification method and device, metering automation terminal and readable storage medium Download PDFInfo
- Publication number
- CN111144733A CN111144733A CN201911339868.3A CN201911339868A CN111144733A CN 111144733 A CN111144733 A CN 111144733A CN 201911339868 A CN201911339868 A CN 201911339868A CN 111144733 A CN111144733 A CN 111144733A
- Authority
- CN
- China
- Prior art keywords
- platform
- identification
- port
- automation terminal
- metering automation
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000004590 computer program Methods 0.000 claims description 5
- 238000005259 measurement Methods 0.000 claims description 2
- 102100038591 Endothelial cell-selective adhesion molecule Human genes 0.000 description 9
- 101000882622 Homo sapiens Endothelial cell-selective adhesion molecule Proteins 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000007667 floating Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06315—Needs-based resource requirements planning or analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy 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 power automation. The platform identification method is applied to a metering automation terminal comprising at least one identification module, and is used for adjusting the level mode output by the at least one identification module included in the metering automation terminal. And then acquiring identification information returned to each identification module by the platform to be identified based on the level pattern. And finally, identifying the attributes of the platform to be identified according to each identification information, wherein the metering automation terminal stores the corresponding relation between the attributes of each platform and each identification information in advance. Therefore, the identification and the application of the metering automation terminal on different platforms are quickly and simply realized.
Description
Technical Field
The application relates to the technical field of power automation, in particular to a platform identification method, a platform identification device, a metering automation terminal and a readable storage medium.
Background
Electric power resources play an 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 is related to energy development and economic development. With the development of science and technology, an electric power system automation platform (hereinafter referred to as a platform) is optimized, and the operation and maintenance of the metering automation terminal and the platform can be matched with each other to ensure the effective operation of the electric power system.
At present, platforms suitable for metering automation terminals are continuously optimized and updated to meet increasing demands of users, but old metering automation terminals cannot adapt to new platforms. How to quickly and simply realize the identification and application of the metering automation terminal on different platforms is a problem which needs to be solved urgently at present.
Disclosure of Invention
In view of the above, the present application provides a platform identification method, a platform identification apparatus, a metering automation terminal and a readable storage medium to solve the above problems.
The embodiment of the application can be realized 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, where the method includes:
adjusting a level mode output by at least one identification module included in the metering automation terminal;
acquiring identification information returned to each identification module by the platform to be identified based on the level mode;
and identifying the attributes of the platform to be identified according to each identification information, wherein the metering automation terminal stores the corresponding relation between the attributes of each platform and each identification information in advance.
In an alternative embodiment, the method further comprises:
and running a 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 the level pattern 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 within 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 within 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 within 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 the level pattern 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 within 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 within the second preset time;
secondly, 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 keeping outputting the pull-down mode within a 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 implementation manner, the step of identifying the attribute of the platform to be identified according to each piece of identification information includes:
and searching whether the platform attribute corresponding to the identification information is stored in the metering automation terminal, if so, determining that the platform attribute is the attribute of the platform to be identified, otherwise, determining that the platform to be identified is an unknown platform.
In an optional implementation manner, 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 the identification information includes:
searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal;
if yes, judging whether the searched platform attributes are consistent, and if so, determining the platform attributes as the attributes of the platform to be identified;
and if the platform attributes corresponding to the identification information are not stored in the metering automation terminal or the searched platform attributes are inconsistent, determining that the platform to be identified is an unknown platform.
In an alternative embodiment, the method further comprises:
and identifying the attributes of the platform to be identified according to each piece of identification information, and displaying prestored information after determining that the platform to be identified is an unknown platform so as to prompt that the identification of the platform to be identified fails.
In a second aspect, an embodiment provides a platform identification apparatus, which is applied to a metering automation terminal connected to a platform to be identified, where the apparatus includes:
the adjusting module is used for adjusting the level mode output by at least one recognition module included in the metering automation terminal;
the acquisition module is used for acquiring identification information returned to each identification module by the platform to be identified based on the level mode;
and the identification module is used for identifying the attributes of the platforms to be identified according to each identification information, wherein the metering automation terminal stores the corresponding relation between the attributes of each platform and each identification information in advance.
In a third aspect, an embodiment provides a metering automation terminal, which includes a processor, a memory and a bus, where the memory stores machine-readable instructions executable by the processor, and when the metering automation terminal runs, the processor and the memory communicate with each other through the bus, and the processor executes the machine-readable instructions to perform the steps of the platform identification method according to any one of the foregoing embodiments.
In a fourth aspect, an embodiment provides a readable storage medium, in which a computer program is stored, and the computer program, when executed, implements the platform identification method described in any one of the foregoing embodiments.
The embodiment of the application provides a platform identification method, which is characterized in that the platform is identified by adjusting the level mode of at least one identification module included in a metering automation terminal and returning identification information of each identification module based on different level modes according to the platform to be identified, so that the identification and application of the metering automation terminal on different platforms are realized quickly and simply.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required 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 application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a block diagram of a metering automation terminal according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of a platform identification method according to an embodiment of the present application.
Fig. 3 is one of sub-step diagrams of step S1 in fig. 1 according to an embodiment of the present application.
Fig. 4 is a second schematic sub-step diagram of step S1 in fig. 1 according to an embodiment of the present disclosure.
Fig. 5 is a schematic sub-step diagram 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 apparatus according to an embodiment of the present disclosure.
Icon: 100-a metering automation terminal; 110-a memory; 120-a processor; 130-platform identification means; 131-a regulating module; 132-an acquisition module; 133-identification module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It 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.
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 application may be combined with each other without conflict.
As introduced in the background art, the platform suitable for the existing metering automation terminal is continuously optimized and updated to meet the increasing demands of users, but the old metering automation terminal cannot adapt to the new platform and often has operation errors.
At present, the problem can be solved by a first method of adding an identification pin on a metering automation terminal and identifying a platform through the identification pin, but the method can only be used for a new metering automation terminal, and an old metering automation terminal cannot adapt to the new platform.
And secondly, storing platform information of different platforms in a memory included in the metering automation terminal, and identifying the platforms by comparing the platform information. However, when the method is used for workshop production, additional processes are required, the production cost is increased, and meanwhile, when platform information is lost, the metering automation terminal runs wrong programs.
Based on the research, how to quickly and simply realize the identification and application of the metering automation terminal on different platforms is a problem which needs to be solved urgently at present.
In view of this, an embodiment of the present application provides a platform identification method, which adjusts a level pattern 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 patterns according to a platform to be identified. Therefore, the identification and the application of the metering automation terminal on different platforms are quickly and simply realized.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an automation metering terminal 100 according to an embodiment of the present disclosure. The apparatus may include a processor 120, a memory 110, a platform recognition device 130, and a bus, wherein the memory 110 stores machine readable instructions executable by the processor 120, the processor 120 and the memory 110 communicate with each other via the bus when the metering automation terminal 100 operates, and the processor 120 executes the machine readable instructions and performs the steps of the platform recognition method.
The memory 110, the processor 120, and other components are electrically connected to each other directly or indirectly to enable 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 recognition means 130 includes at least one software functional module which can be stored in the memory 110 in the form of software or firmware (firmware). The processor 120 is configured to execute an executable module stored in the memory 110, such as a software functional module or a computer program included in the platform identification device 130.
The Memory 110 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 120 may be an integrated circuit chip having signal processing capabilities. The processor 120 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and so on.
But may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed 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 used for storing programs, and the processor 120 is used for executing the programs after receiving the execution instructions. The method defined by the process disclosed in any of the embodiments of the present application can be applied to the processor 120, or implemented by the processor 120.
It will be appreciated that the configuration shown in figure 1 is merely illustrative. The metering automation terminal 100 may also have more or fewer components than shown in FIG. 1, or a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 2, fig. 2 is a flowchart of a platform identification method according to an embodiment of the present application, which is applied to the measurement automation terminal 100. The specific flow shown in fig. 2 is described in detail below.
Step S1, adjusting a level pattern output by at least one recognition module included in the metering automation terminal 100.
And step S2, acquiring identification information of the platform to be recognized returned to each recognition module based on the level pattern.
Step S3, identifying the attribute of the platform to be identified according to each identification information, wherein the metering automation terminal 100 stores the corresponding relationship between the attribute of each platform and each identification information in advance.
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 floating mode.
Taking the example that the processor included in the metering automation terminal 100 is the STM32F407, when the level mode of any GPIO port is configured as the pull-up mode, the pull-down mode, or the floating mode, three kinds of check bits, namely, indeterminate, 1, 0, may be obtained in the floating state of the empty pin of the GPIO port, and therefore, different identification information composed according to different check bits and sent by different platforms may be obtained by changing the level mode of the identification port included in the identification module.
When the recognition module is configured to different level modes, different platforms to be recognized return different identification information according to the level modes, and the identification information is recognized, so that specific attributes of the platforms to be recognized can be judged. In this way, the metering automation terminal 100 can be quickly and simply identified and applied on different platforms.
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. Therefore, the problem that the metering automation terminal 100 cannot be normally used due to the fact that the metering automation terminal 100 runs an application program suitable for other platforms on the current platform is effectively avoided.
As an alternative embodiment, the metering automation terminal 100 includes an identification module, and the identification module includes a first output port, a first identification port and a second identification port, please refer to fig. 3, and the adjustment of the level pattern output by at least one identification module included in the metering automation terminal 100 can be implemented through steps S111 to 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 within a first preset time.
Step S112, then adjusting the level mode output by the first identification port to be a pull-up mode, and keeping outputting the pull-up mode within the first preset time.
Step S113, adjusting the level mode output by the second identification port to be a pull-down mode, and keeping outputting the pull-down mode within the first preset time.
Step S114, 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.
Also taking the example where the metering automation terminal 100 includes a processor STM32F407, the first output port may be a PE6 port with pin number 5, the first identification port may be a PE0 port with pin number 141, and the second identification port may be a PE1 port with pin number 142.
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, that is, the first output port, the first identification port, and the second identification port do not function pins.
When the RE/DE port outputs low level, the check bits received by the RXD port and the TXD port can be read. Therefore, the first preset voltage may be set to a low level.
Further, when the identification module is used, the correspondence relationship between the attribute of each platform and each identification information, which is established and stored in advance, may be as shown in table 1.
TABLE 1
Platform 1 | Platform 2 | |
Each identification port is configured to be in different level modes | Check bit | Check bit |
The PE0 port is configured in a pull-down mode | 1 | 0 |
PE0 Port configuration for Pull-Up mode | 1 | 1 |
The PE1 port is configured in a pull-down mode | 1 | 0 |
PE1 Port configuration for Pull-Up mode | 1 | 1 |
Identification information | 1111 | 0101 |
As can be seen from table 1, when identifying a platform to be identified, the level modes of the first identification port (PE0 port) and the second identification port (PE1 port) are changed according to a preset manner, so that identification information returned by different platforms and composed according to different check bits can be obtained. For example, the identification information returned by platform 1 is 1111, and the identification information returned by platform 2 is 0101. The corresponding relationship between each platform attribute and the identification information as shown in table 1 is established, that is, the platform attribute corresponding to the identification information can be searched in the corresponding relationship, so that the platform attribute of the platform to be identified is identified.
Further, the attribute of the platform to be identified may be identified according to each of the identification information as follows.
And searching whether the platform attribute corresponding to the identification information is stored in the metering automation terminal 100, if so, determining that the platform attribute is the attribute of the platform to be identified, otherwise, determining that the platform to be identified is an unknown platform.
For example, 1111 is obtained as identification information returned by the platform to be identified based on different level modes, and the corresponding relationship in the lookup table 1 is known, and the platform attribute corresponding to the identification information is platform 1. In this way, the platform to be identified can be determined to be the platform 1.
As another alternative, the metering automation terminal 100 includes an identification module, and the identification module includes a second output port and a third identification port, please refer to fig. 4, and the adjustment of the level pattern output by at least one identification module included in the metering automation terminal 100 can be realized through steps S121 to 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 keeping outputting the pull-down mode within a second preset time.
Step S122, 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.
Step S123, 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 keeping outputting the pull-down mode within the second preset time.
Step S124, 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.
Also taking the example where the metering automation terminal 100 includes a processor 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.
It should be noted that, 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 port of the ESAM chip). For another example, the second output port and the third identification port may also be empty pins, that is, the first output port, the first identification port and the second identification port do not function pins.
The ESAM chip encrypts various embedded terminals to realize the safe storage of data, and the specific principle is not described herein.
When the ESAM _ PWR _ ON port outputs a high level, the power supply of the ESAM chip is turned ON, and when the ESAM _ PWR _ ON port outputs a low level, the power supply of the ESAM chip is turned off. Therefore, 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 relationship between the attribute of each platform and each identification information, which is established and stored in advance, may be as shown in table 2.
TABLE 2
As can be seen from table 2, when the platform to be identified is identified, the level mode of the third identification port (PG0 port) is changed according to the preset mode, so that the identification information formed by different check bits and returned by different platforms can be obtained. For example, platform 1 returns 1100 identification information, and platform 2 returns 0101 identification information. The corresponding relationship between each platform attribute and the identification information as shown in table 2 is established, that is, the platform attribute corresponding to the identification information can be searched in the corresponding relationship, so that the platform attribute of the platform to be identified is identified.
It is to be understood that the attribute of the platform to be identified may also be identified according to each of the identification information in the following manner.
And searching whether the platform attribute corresponding to the identification information is stored in the metering automation terminal 100, if so, determining that the platform attribute is the attribute of the platform to be identified, otherwise, determining that the platform to be identified is an unknown platform.
For example, 0101 is obtained identification information returned by the platform to be identified based on different level patterns, the corresponding relationship in the lookup table 2 is known, and the platform attribute corresponding to the identification information is the platform 2. In this manner, the platform to be identified can be determined to be the platform 2.
As a further alternative, the platform attribute may also be identified jointly according to at least two different identification modules. For example, the metering automation terminal 100 includes a plurality of identification modules, please refer to fig. 5, and identifying the attribute of the platform to be identified according to each of the identification information may be further implemented through steps S31 to S34:
step S31, it is searched whether the platform attribute corresponding to each piece of identification information is stored in the metering automation terminal 100.
Step S32, if yes, determine 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 identification information is not stored in the metering automation terminal 100 or each found platform attribute is inconsistent, determining that the platform to be identified is an unknown platform.
For example, when the first output port, the first identification module, and the second identification module are used for identification, the obtained identification information is 1111, and the lookup table 1 finds that the platform attribute corresponding to the identification information is platform 1. Meanwhile, by using the second output port and the third identification module for identification, the obtained identification information is 1100, and the lookup table 2 indicates 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 identification is performed by using the first output port, the first identification module, and the second identification module, the obtained identification information is 1111, and the lookup table 1 finds that the platform attribute corresponding to the identification information is platform 1. Meanwhile, by using the second output port and the third identification module for 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. Since the searched platform attributes are inconsistent, the platform to be identified can be determined to be an unknown platform.
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 lookup table 1 finds that the platform attribute corresponding to the identification information is platform 2. Meanwhile, by using the second output port and the third identification module for 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.
Furthermore, the attribute of the platform to be identified is identified according to each piece of identification information, and after the platform to be identified is determined to be an unknown platform, prestored information is displayed to prompt that the identification of the platform to be identified fails. Therefore, 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 is used for identifying a platform by adjusting the level mode of at least one identification module included in a metering automation terminal and returning identification information of each identification module based on different level modes according to the platform to be identified, so that the identification and application of the metering automation terminal 100 on different platforms are realized quickly and simply.
Referring to fig. 6, the embodiment of the present application also provides a platform identification apparatus 130, which is applied to a metering automation terminal 100 connected to a platform to be identified, the apparatus includes:
an adjusting module 131, configured to adjust a level pattern output by at least one recognition module included in the metering automation terminal 100;
an obtaining module 132, configured to obtain identification information that the platform to be identified returns to each of the identifying modules based on the level pattern;
the identifying module 133 is configured to identify the attribute of the platform to be identified according to each piece of the identification information, where the metering automation terminal 100 stores a corresponding relationship between the attribute of each platform and each piece of the identification information in advance.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific principles of the platform recognition apparatus 130 described above may refer to the corresponding processes in the foregoing methods, and will not be described in detail herein.
The present embodiment also provides a readable storage medium in which a computer program is stored, which when executed implements the above-described platform identification method.
In summary, the embodiment of the present application provides a platform identification method, a platform identification device, a metering automation terminal 100 and a readable storage medium. The platform identification method is applied to the metering automation terminal 100 comprising at least one identification module, and the method adjusts the level mode output by the at least one identification module included in the metering automation terminal 100. And then acquiring identification information returned to each identification module by the platform to be identified based on the level pattern. And finally, identifying the attributes of the platform to be identified according to each piece of identification information, wherein the metering automation terminal 100 stores the corresponding relationship between the attributes of each platform and each piece of identification information in advance. Thus, the metering automation terminal 100 can be quickly and simply identified and applied to different platforms.
The above description is only for the specific embodiments of the present application, but the scope of the present application 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 application should be covered within 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 (10)
1. A platform identification method is applied to a metering automation terminal comprising at least one identification module, and comprises the following steps:
adjusting a level mode output by at least one identification module included in the metering automation terminal;
acquiring identification information returned to each identification module by the platform to be identified based on the level mode;
and identifying the attributes of the platform to be identified according to each identification information, wherein the metering automation terminal stores the corresponding relation between the attributes of each platform and each identification information in advance.
2. The platform identification method of claim 1, further comprising:
and running a 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 an identification module, the identification module comprises a first output port, a first identification port and a second identification port, and the step of adjusting the level pattern output by at least one identification module included in the metering automation terminal comprises:
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 within 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 within 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 within 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.
4. The platform identification method according to claim 1, wherein the metering automation terminal comprises an identification module, the 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 included in 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 within 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 within the second preset time;
secondly, 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 keeping outputting the pull-down mode within a 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.
5. The platform identification method according to claim 3 or 4, wherein the step of identifying the attribute of the platform to be identified according to each of the identification information comprises:
and searching whether the platform attribute corresponding to the identification information is stored in the metering automation terminal, if so, determining that the platform attribute is the attribute of the platform to be identified, otherwise, determining that the platform to be identified is an unknown platform.
6. The platform identification method according to claim 1, wherein the metering automation terminal comprises a plurality of identification modules, and the step of identifying the attribute of the platform to be identified according to each of the identification information comprises:
searching whether platform attributes corresponding to the identification information are stored in the metering automation terminal;
if yes, judging whether the searched platform attributes are consistent, and if so, determining the platform attributes as the attributes of the platform to be identified;
and if the platform attributes corresponding to the identification information are not stored in the metering automation terminal or the searched platform attributes are inconsistent, determining that the platform to be identified is an unknown platform.
7. The platform identification method of claim 1, further comprising:
and identifying the attributes of the platform to be identified according to each piece of identification information, and displaying prestored information after determining that the platform to be identified is an unknown platform so as to prompt that the identification of the platform to be identified fails.
8. A platform recognition device, characterized in that, be applied to the measurement automation terminal who is connected with the platform of waiting to discern, the device includes:
the adjusting module is used for adjusting the level mode output by at least one recognition module included in the metering automation terminal;
the acquisition module is used for acquiring identification information returned to each identification module by the platform to be identified based on the level mode;
and the identification module is used for identifying the attributes of the platforms to be identified according to each identification information, wherein the metering automation terminal stores the corresponding relation between the attributes of each platform and each identification information in advance.
9. A metering automation terminal, comprising a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the metering automation terminal is operated, the processor and the memory communicate with each other via the bus, and the processor executes the machine-readable instructions to perform the steps of the platform identification method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that a computer program is stored therein, which when executed implements the platform identification method of any one of claims 1-7.
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 true CN111144733A (en) | 2020-05-12 |
CN111144733B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117278355A (en) * | 2023-11-16 | 2023-12-22 | 杭州视芯科技股份有限公司 | Master-slave communication system, control method of master-slave communication system, and computer device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708077A (en) * | 2012-05-25 | 2012-10-03 | 华为终端有限公司 | State recognition method and state recognition apparatus |
CN202488619U (en) * | 2012-03-16 | 2012-10-10 | 青岛海信宽带多媒体技术有限公司 | Hardware configuration identification circuit and set top box |
CN103544471A (en) * | 2013-08-05 | 2014-01-29 | 华中科技大学 | Moving-platform heterogeneous parallel automatic identifier for geostationary targets |
CN103699453A (en) * | 2013-12-13 | 2014-04-02 | 华为终端有限公司 | Module identification method and terminal equipment |
CN104407259A (en) * | 2014-12-11 | 2015-03-11 | 长沙威胜信息技术有限公司 | Identification method for hardware ID of communication module of electricity information collecting terminal |
CN104467907A (en) * | 2014-12-11 | 2015-03-25 | 长沙威胜信息技术有限公司 | Repeater and information transmission method and communication module hardware ID identification method of repeater |
CN107636632A (en) * | 2017-05-27 | 2018-01-26 | 福建联迪商用设备有限公司 | A kind of method and system for identifying different manufacturers liquid crystal |
CN108319564A (en) * | 2018-01-25 | 2018-07-24 | 北京航天发射技术研究所 | A kind of method of identification power source communications bus ID in power supply-distribution system |
CN109002410A (en) * | 2018-07-02 | 2018-12-14 | 广州视源电子科技股份有限公司 | GPIO port detection method |
-
2019
- 2019-12-23 CN CN201911339868.3A patent/CN111144733B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202488619U (en) * | 2012-03-16 | 2012-10-10 | 青岛海信宽带多媒体技术有限公司 | Hardware configuration identification circuit and set top box |
CN102708077A (en) * | 2012-05-25 | 2012-10-03 | 华为终端有限公司 | State recognition method and state recognition apparatus |
CN103544471A (en) * | 2013-08-05 | 2014-01-29 | 华中科技大学 | Moving-platform heterogeneous parallel automatic identifier for geostationary targets |
CN103699453A (en) * | 2013-12-13 | 2014-04-02 | 华为终端有限公司 | Module identification method and terminal equipment |
CN104407259A (en) * | 2014-12-11 | 2015-03-11 | 长沙威胜信息技术有限公司 | Identification method for hardware ID of communication module of electricity information collecting terminal |
CN104467907A (en) * | 2014-12-11 | 2015-03-25 | 长沙威胜信息技术有限公司 | Repeater and information transmission method and communication module hardware ID identification method of repeater |
CN107636632A (en) * | 2017-05-27 | 2018-01-26 | 福建联迪商用设备有限公司 | A kind of method and system for identifying different manufacturers liquid crystal |
CN108319564A (en) * | 2018-01-25 | 2018-07-24 | 北京航天发射技术研究所 | A kind of method of identification power source communications bus ID in power supply-distribution system |
CN109002410A (en) * | 2018-07-02 | 2018-12-14 | 广州视源电子科技股份有限公司 | GPIO port detection method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117278355A (en) * | 2023-11-16 | 2023-12-22 | 杭州视芯科技股份有限公司 | Master-slave communication system, control method of master-slave communication system, and computer device |
CN117278355B (en) * | 2023-11-16 | 2024-03-08 | 杭州视芯科技股份有限公司 | Master-slave communication system, control method of master-slave communication system, and computer device |
Also Published As
Publication number | Publication date |
---|---|
CN111144733B (en) | 2023-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106485261A (en) | A kind of method and apparatus of image recognition | |
CN113391256B (en) | Electric energy meter metering fault analysis method and system of field operation terminal | |
CN111144733A (en) | Platform identification method and device, metering automation terminal and readable storage medium | |
CN113312258B (en) | Interface testing method, device, equipment and storage medium | |
CN116401113B (en) | Environment verification method, device and medium for heterogeneous many-core architecture acceleration card | |
CN107656187B (en) | Differential line test information determining method and device | |
CN115525660A (en) | Data table verification method, device, equipment and medium | |
CN111459540B (en) | Hardware performance improvement suggestion method and device and electronic equipment | |
CN114860608A (en) | Scene construction based system automation testing method, device, equipment and medium | |
CN111541503B (en) | Detection method and detection device for connection tightness of WIFI antenna | |
CN112698877A (en) | Data processing method and system | |
CN114885231B (en) | Communication protocol self-adaptive signal acquisition method, system, terminal and medium | |
CN116001705B (en) | Vehicle data monitoring method, device, equipment and storage medium | |
CN117491960B (en) | Radar product detection method, device, equipment and medium | |
CN117472696B (en) | Method, device, equipment, medium and server for detecting assembly position of adapter card | |
CN112866008B (en) | NAT rule enabling attribute configuration method, NAT rule enabling attribute configuration device, electronic equipment and storage medium | |
CN115361308A (en) | Industrial control network data risk determination method, device, equipment and storage medium | |
CN117037891A (en) | Port identification method, device, equipment and medium of double-head memory | |
CN115470149A (en) | Database preprocessing function testing method, device, equipment and storage medium | |
CN116932345A (en) | User operation behavior detection method and device | |
CN111030870A (en) | Service configuration updating method and device | |
CN117061564A (en) | Verification method, device, equipment and medium for vehicle signal transmission state | |
CN116151743A (en) | Data processing method, device, electronic equipment and storage medium | |
CN114547101A (en) | Data quality evaluation method, device, equipment and storage medium for data center station | |
CN117370399A (en) | Form comparison method and device, target database 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 |