CN117148801A - Controller adaptation method, device, electronic equipment and medium - Google Patents

Controller adaptation method, device, electronic equipment and medium Download PDF

Info

Publication number
CN117148801A
CN117148801A CN202311403715.7A CN202311403715A CN117148801A CN 117148801 A CN117148801 A CN 117148801A CN 202311403715 A CN202311403715 A CN 202311403715A CN 117148801 A CN117148801 A CN 117148801A
Authority
CN
China
Prior art keywords
json
controller
data
configuration file
chip
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
Application number
CN202311403715.7A
Other languages
Chinese (zh)
Other versions
CN117148801B (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.)
ZHEJIANG HECHUAN TECHNOLOGY CO LTD
Original Assignee
ZHEJIANG HECHUAN TECHNOLOGY 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 ZHEJIANG HECHUAN TECHNOLOGY CO LTD filed Critical ZHEJIANG HECHUAN TECHNOLOGY CO LTD
Priority to CN202311403715.7A priority Critical patent/CN117148801B/en
Publication of CN117148801A publication Critical patent/CN117148801A/en
Application granted granted Critical
Publication of CN117148801B publication Critical patent/CN117148801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41865Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by job scheduling, process planning, material flow
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32252Scheduling production, machining, job shop
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a controller adaptation method, a device, electronic equipment and a medium, which relate to the field of control, and firstly generate a corresponding JSON configuration file according to configuration parameters of a chip of hardware equipment, a framework of the hardware equipment, a model of the controller and a JSON format, then determine the data type of the JSON configuration file, construct a corresponding data structure according to the data type, and finally transmit the data structure to controller adaptation software, so that the controller adaptation software adapts the controller to the chip and the framework according to the data structure, and the controller can be mutually adapted to the chip and the framework through generation and analysis of the JSON configuration file without manually adapting and re-writing an adaptation code, thereby improving the working efficiency, flexibility, accuracy and reliability.

Description

Controller adaptation method, device, electronic equipment and medium
Technical Field
The present invention relates to the field of control, and in particular, to a controller adaptation method, device, electronic apparatus, and medium.
Background
The industrial controller is special equipment applied to the field of industrial control, is formed by combining a digital computer technology and an electrical control technology, has the functions of logic control, data processing, communication tasks and the like, and is widely used for controlling and monitoring various equipment and machines in the production process, so that automatic, intelligent and efficient production operation is realized.
Along with the continuous innovation of the technology, the functions of the controller are continuously enhanced, and the controller has stronger data processing and communication capacity, so that not only can the traditional logic control be realized, but also the data interaction with devices such as an upper computer, an HMI (Human Machine Interface), a human-computer interface) and the like can be realized, and the remote monitoring and control can be realized.
Industrial controllers are used in the production processes of various industries, such as manufacturing, energy fields, transportation, etc. The production process and control requirements of different industries are different, and some application scenes need high-performance controllers to process complex logic control and a large amount of data, while some scenes only need low-power-consumption and low-cost controllers. Therefore, controllers of different architectures and chip models are required to meet the diversified demands of different industries, different application scenes and different users. However, the traditional controller development needs to write a large amount of codes to adapt to hardware devices adopting different architectures and chips, and the product development period is long.
Disclosure of Invention
The invention aims to provide a controller adaptation method, a device, electronic equipment and a medium, which enable a controller to be mutually adapted to a chip and a framework through generation and analysis of a JSON configuration file without manual adaptation and re-writing of an adaptation code, thereby improving the working efficiency, flexibility, accuracy and reliability.
In order to solve the technical problems, the invention provides a controller adaptation method, which comprises the following steps:
generating a corresponding JSON configuration file according to configuration parameters of a chip of the hardware equipment, the architecture of the hardware equipment, the model of a controller and a JSON format;
determining the data type of the JSON configuration file, and constructing a corresponding data structure according to the data type;
and transmitting the data structure to controller adaptation software so that the controller adaptation software adapts the controller to the chip and the architecture according to the data structure.
Optionally, after the generating the corresponding JSON configuration file according to the configuration parameters of the chip of the hardware device, the architecture of the hardware device, the model of the controller and the JSON format, the method further includes:
judging whether the JSON configuration file is successfully generated or not;
triggering the step of determining the data type of the JSON configuration file if the JSON configuration file is successfully generated;
and if the JSON configuration file is not successfully generated, a corresponding alarm is sent out.
Optionally, the JSON configuration file includes: device information, path information, serial port information, kernel information, FPGA information and I/O information.
Optionally, the determining the data type of the JSON configuration file includes:
controlling a parser to scan the JSON configuration file character by character to obtain corresponding JSON data;
and identifying the JSON data according to a preset grammar rule to determine the data type of the JSON configuration file.
Optionally, after the control parser scans the JSON configuration file character by character to obtain corresponding JSON data, the method further includes:
judging whether the JSON data has errors or not;
if the JSON data is wrong, a corresponding alarm is sent out;
and if the JSON data is not wrong, triggering the step of identifying the JSON data according to a preset grammar rule to determine the data type of the JSON configuration file.
Optionally, the determining whether the JSON data has an error includes:
judging whether the JSON data accords with a preset grammar and/or a preset format specification;
if the JSON data accords with a preset grammar and/or a preset format specification, judging that the JSON data has no error;
and if the JSON data does not accord with the preset grammar and/or the preset format specification, judging that the JSON data has errors.
In order to solve the technical problem, the invention also provides a controller adapting device, which comprises:
the JSON configuration file generation module is used for generating a corresponding JSON configuration file according to configuration parameters of a chip of the hardware equipment, the architecture of the hardware equipment, the model of the controller and a JSON format;
the determining module is used for determining the data type of the JSON configuration file and constructing a corresponding data structure according to the data type;
and the adapting module is used for transmitting the data structure to controller adapting software so that the controller adapting software adapts the controller to the chip and the framework according to the data structure.
Optionally, the determining module includes:
the control unit is used for controlling the parser to scan the JSON configuration files character by character to obtain corresponding JSON data;
and the determining subunit is used for identifying the JSON data according to a preset grammar rule so as to determine the data type of the JSON configuration file.
In order to solve the technical problem, the present invention further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the controller adaptation method as described above when executing the computer program.
To solve the above technical problem, the present invention further provides a computer readable storage medium for storing a computer program, which when executed by a processor implements the controller adaptation method as described above.
The invention aims to provide a controller adaptation method, a device, electronic equipment and a medium, which are characterized in that corresponding JSON configuration files are generated according to configuration parameters of a chip of hardware equipment, architecture of the hardware equipment, model of the controller and JSON format, then data types of the JSON configuration files are determined, corresponding data structures are constructed according to the data types, finally the data structures are transmitted to controller adaptation software, so that the controller adaptation software adapts the controller to the chip and the architecture according to the data structures, and the controller can be mutually adapted to the chip and the architecture through generation and analysis of the JSON configuration files without manual adaptation and re-programming of adaptation codes, thereby improving the working efficiency, flexibility, accuracy and reliability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a process flow diagram of a controller adaptation method provided by the present invention;
fig. 2 is a schematic structural diagram of a controller adapting system according to the present invention;
FIG. 3 is a process flow diagram of another controller adaptation method provided by the present invention;
FIG. 4 is a schematic diagram of a configuration file of a controller according to the present invention;
fig. 5 is a schematic structural diagram of a controller adapting device according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to the present invention.
Detailed Description
The core of the invention is to provide a controller adaptation method, a device, an electronic device and a medium, through the generation and analysis of a JSON configuration file, the controller can be mutually adapted with a chip and a framework, and the manual adaptation and the re-programming of an adaptation code are not needed, so that the working efficiency, the flexibility, the accuracy and the reliability are improved.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a process flow chart of a controller adapting method provided by the present invention. The method comprises the following steps:
s11, generating a corresponding JSON configuration file according to configuration parameters of a chip of the hardware equipment, architecture of the hardware equipment, model of a controller and JSON format;
s12, determining the data type of the JSON configuration file, and constructing a corresponding data structure according to the data type;
and S13, transmitting the data structure to controller adaptation software so that the controller adaptation software adapts the controller to the chip and the framework according to the data structure.
In the invention, in order to enable the controller to be mutually adapted with the chip and the architecture, a corresponding JSON configuration file is generated according to configuration parameters of the chip of the hardware equipment, the architecture of the hardware equipment, the model of the controller and a JSON (JavaScript Object Notation, lightweight data exchange format) format, so that the data type of the JSON configuration file is determined, a corresponding data structure is constructed according to the data type, and finally the data structure is transmitted to controller adaptation software, so that the controller adaptation software adapts the controller to the chip and the architecture according to the data structure, and the controller adaptation problem of different chip architectures in the industrial control field is solved. According to the scheme, the JSON data format and the controller adaptation program are introduced, so that the rapid adaptation and configuration of various controller models are realized, the adaptation complexity is reduced, the adaptation efficiency and accuracy are improved, and the later maintenance cost is reduced. The method is efficient, accurate and easy to maintain, and provides a new solution for the field of industrial control, and promotes the development and progress of the industry.
It should be noted that the present invention has several advantages: 1. the system is compatible with various controller models, and can be developed agilely for brand new hardware platforms; 2. the maintenance cost of the application program is reduced; 3. the product development period is saved; 4. and the common embedded platform is easily transplanted through modularized design.
It should also be noted that the drawbacks of the prior art are: complexity: manually writing the adaptation code involves a lot of work, and the adaptation process is complex and time-consuming; the efficiency is low: a great deal of time and manpower are generally required, so that the adaptation efficiency is low, and the development period of the product is influenced; the accuracy is not high: errors are easy to occur, the function of equipment is abnormal or unstable, and the reliability of the controller is reduced; maintenance is difficult: for the newly added controller model, the adaptive code needs to be rewritten, and the later maintenance cost is increased.
It should be further noted that JSON is a lightweight data exchange format, and has the characteristics of simplicity and readability, and is widely applied to data transfer and configuration information description between various application programs. The controller adapts to different models and configuration parameters by analyzing the JSON configuration file, so that flexible configuration of the controller software is realized. The whole scheme consists of a JSON data parser, a JSON format configuration file and a controller adaptation software module, as shown in figure 2.
It should also be noted that the JSON data parser is implemented by a standard module, which is responsible for performing data exchange operations with JSON files, and provides an operation interface for the controller adaptation software. The JSON data parser flow chart is as follows: first the parser detects from the input source if there is a JSON profile, and if no profile is identified, it throws an exception. After the configuration file is normally identified, the parser scans JSON data character by character, identifies different data types according to grammar rules, and constructs a corresponding data structure. In parsing the data, it will be verified whether the JSON data complies with the syntax and format specifications, and if there is an error or a part that does not comply with the rules, the parser will report the error. After the analysis is completed and the verification is passed, the data is stored in the memory space of the application, the controller is waited for adapting the software, the whole adapting process is shown in fig. 3, and in addition, the task of the JSON data analyzer is to analyze the original JSON text data into a data structure which is easy to operate and understand, so that the application software can easily read and process the data in the data structure.
The embodiment provides a controller adaptation method, which comprises the steps of firstly generating a corresponding JSON configuration file according to configuration parameters of a chip of hardware equipment, a framework of the hardware equipment, a model of a controller and a JSON format, then determining a data type of the JSON configuration file, constructing a corresponding data structure according to the data type, and finally transmitting the data structure to controller adaptation software, so that the controller adaptation software adapts the controller to the chip and the framework according to the data structure, and the controller can be mutually adapted to the chip and the framework through generation and analysis of the JSON configuration file without manually adapting and re-writing an adaptation code, thereby improving the working efficiency, flexibility, accuracy and reliability.
As an alternative embodiment, after generating the corresponding JSON configuration file according to the chip of the hardware device, the architecture of the hardware device, the model of the controller and the JSON format, the method further includes:
judging whether the JSON configuration file is successfully generated or not;
triggering a step of determining the data type of the JSON configuration file if the JSON configuration file is successfully generated;
if the JSON configuration file is not successfully generated, a corresponding alarm is sent out.
In the invention, after generating the corresponding JSON configuration file according to the chip of the hardware equipment, the architecture of the hardware equipment, the model of the controller and the JSON format, judging whether the JSON configuration file is successfully generated, and triggering the step of determining the data type of the JSON configuration file if the JSON configuration file is successfully generated; otherwise, if the JSON configuration file is not successfully generated, a corresponding alarm is sent out, the accuracy of the JSON configuration file is ensured, and the reliability of the whole adaptation process is improved.
In practical application, the alarm may be a display alarm, or may be an audio alarm or a display alarm and an audio alarm.
As an alternative embodiment, the JSON profile includes: device information, path information, serial port information, kernel information, FPGA information and I/O information.
In the present invention, the JSON configuration file includes: the generation of the JSON configuration file can facilitate the controller adapter to adapt to the controller, the chip and the architecture based on the JSON configuration file.
It should be further noted that a complete JSON format configuration file is composed of device information, path information, serial port information, kernel information, FPGA (Field-Programmable Gate Array, field programmable gate array) information, and I/O information modules, as shown in fig. 4. The device information and path information module is a key information component adapted to the controller, and determines whether the controller functions normally. The device information module stores the controller model, device ID (Identity document, identification number), platform, software version, whether IO is supported, display module type, whether TCP server is supported, and axis constraint information. The path information module stores an application path, a user path, and a user data partition. The device ID corresponds to a controller description file that determines what model the controller is, and in the controller, the device description file is used to describe contents such as project configuration, device configuration, communication settings, and the like.
As an alternative embodiment, determining the data type of the JSON profile includes:
controlling the parser to scan the JSON configuration file character by character to obtain corresponding JSON data;
and identifying the JSON data according to a preset grammar rule to determine the data type of the JSON configuration file.
The method for determining the data type of the JSON configuration file comprises the steps of controlling a parser to scan the JSON configuration file one by one to obtain corresponding JSON data, identifying the JSON data obtained by scanning according to a preset grammar rule to determine the data type of the JSON configuration file, and accurately determining the data type of the JSON configuration file.
As an alternative embodiment, after the control parser scans the JSON configuration file character by character to obtain corresponding JSON data, the method further includes:
judging whether JSON data has errors or not;
if the JSON data is wrong, a corresponding alarm is sent out;
and if the JSON data has no error, triggering a step of identifying the JSON data according to a preset grammar rule to determine the data type of the JSON configuration file.
In the invention, after the control parser scans the JSON configuration files one by one to obtain corresponding JSON data, whether the JSON data is wrong or not is also judged, and if the JSON data is wrong, a corresponding alarm is sent out; otherwise, if no error occurs in the JSON data, triggering the step of identifying the JSON data according to a preset grammar rule to determine the data type of the JSON configuration file, ensuring the accuracy of the JSON data and improving the reliability of the whole adaptation process.
As an alternative embodiment, determining whether JSON data is erroneous includes:
judging whether the JSON data accords with a preset grammar and/or a preset format specification;
if the JSON data accords with the preset grammar and/or the preset format specification, judging that the JSON data has no error;
if the JSON data does not meet the preset grammar and/or the preset format specification, judging that the JSON data is wrong.
In the invention, the method for judging whether the JSON data has errors is to judge whether the JSON data accords with a preset grammar and/or a preset format specification, and if so, judging that the JSON data has no errors; otherwise, the error of the JSON data is judged, the accuracy of the JSON data is ensured, and the reliability of the scheme is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an adapting device for a controller according to the present invention. The device comprises:
the JSON configuration file generation module 11 is configured to generate a corresponding JSON configuration file according to a chip of the hardware device, a framework of the hardware device, a model of the controller and a JSON format;
a determining module 12, configured to determine a data type of the JSON configuration file, and construct a corresponding data structure according to the data type;
the adapting module 13 is configured to transmit the data structure to the controller adapting software, so that the controller adapting software adapts the controller to the chip and the architecture according to the data structure.
As an alternative embodiment, the determining module 12 includes:
the control unit is used for controlling the parser to scan the JSON configuration files one by one to obtain corresponding JSON data;
and the determining subunit is used for identifying the JSON data according to a preset grammar rule so as to determine the data type of the JSON configuration file.
The controller adapting device provided in this embodiment corresponds to the above method, and therefore has the same advantages as the above method, so that the embodiments of the controller adapting device portion please refer to the descriptions of the embodiments of the method portion, and are not repeated herein.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to the present invention. The electronic device includes:
a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the controller adaptation method as described above when executing a computer program.
The electronic device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in the form of at least one hardware device of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, which, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the controller adaptation method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, controller adaptation methods, and the like.
In some embodiments, the electronic device may further include a display 22, an input-output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the structure shown in fig. 6 is not limiting of the electronic device and may include more or fewer components than shown.
The present embodiment aims to provide an electronic device, in which the memory 20 is used to store a computer program, and the processor 21 is used to implement the steps of the controller adaptation method when executing the computer program, so that the adaptation process is more efficient and accurate.
The invention also provides a corresponding embodiment of a computer readable storage medium for storing a computer program which when executed by a processor implements a controller adaptation method as described above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in part or in whole or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided in this embodiment corresponds to the above method, and therefore has the same beneficial effects as the above method, so that the embodiments of the computer readable storage medium portion are referred to the description of the embodiments of the method portion, and are not repeated here.
It should be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of controller adaptation, comprising:
generating a corresponding JSON configuration file according to configuration parameters of a chip of the hardware equipment, the architecture of the hardware equipment, the model of a controller and a JSON format;
determining the data type of the JSON configuration file, and constructing a corresponding data structure according to the data type;
and transmitting the data structure to controller adaptation software so that the controller adaptation software adapts the controller to the chip and the architecture according to the data structure.
2. The controller adaptation method of claim 1, further comprising, after the generating the corresponding JSON configuration file according to configuration parameters of a chip of a hardware device, an architecture of the hardware device, a model of a controller, and a JSON format:
judging whether the JSON configuration file is successfully generated or not;
triggering the step of determining the data type of the JSON configuration file if the JSON configuration file is successfully generated;
and if the JSON configuration file is not successfully generated, a corresponding alarm is sent out.
3. The controller adaptation method of claim 1, wherein the JSON profile comprises: device information, path information, serial port information, kernel information, FPGA information and I/O information.
4. A controller adaptation method as claimed in any one of claims 1 to 3, wherein said determining the data type of the JSON profile comprises:
controlling a parser to scan the JSON configuration file character by character to obtain corresponding JSON data;
and identifying the JSON data according to a preset grammar rule to determine the data type of the JSON configuration file.
5. The controller adaptation method of claim 4, further comprising, after the control parser scans the JSON configuration file character-by-character to obtain corresponding JSON data:
judging whether the JSON data has errors or not;
if the JSON data is wrong, a corresponding alarm is sent out;
and if the JSON data is not wrong, triggering the step of identifying the JSON data according to a preset grammar rule to determine the data type of the JSON configuration file.
6. The controller adaptation method of claim 5, wherein the determining whether the JSON data is erroneous comprises:
judging whether the JSON data accords with a preset grammar and/or a preset format specification;
if the JSON data accords with a preset grammar and/or a preset format specification, judging that the JSON data has no error;
and if the JSON data does not accord with the preset grammar and/or the preset format specification, judging that the JSON data has errors.
7. A controller adapting device, comprising:
the JSON configuration file generation module is used for generating a corresponding JSON configuration file according to configuration parameters of a chip of the hardware equipment, the architecture of the hardware equipment, the model of the controller and a JSON format;
the determining module is used for determining the data type of the JSON configuration file and constructing a corresponding data structure according to the data type;
and the adapting module is used for transmitting the data structure to controller adapting software so that the controller adapting software adapts the controller to the chip and the framework according to the data structure.
8. The controller adaptation device of claim 7, wherein the determination module comprises:
the control unit is used for controlling the parser to scan the JSON configuration files character by character to obtain corresponding JSON data;
and the determining subunit is used for identifying the JSON data according to a preset grammar rule so as to determine the data type of the JSON configuration file.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the controller adaptation method according to any one of claims 1 to 6 when executing said computer program.
10. A computer readable storage medium for storing a computer program which when executed by a processor implements the controller adaptation method of any one of claims 1 to 6.
CN202311403715.7A 2023-10-27 2023-10-27 Controller adaptation method, device, electronic equipment and medium Active CN117148801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311403715.7A CN117148801B (en) 2023-10-27 2023-10-27 Controller adaptation method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311403715.7A CN117148801B (en) 2023-10-27 2023-10-27 Controller adaptation method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN117148801A true CN117148801A (en) 2023-12-01
CN117148801B CN117148801B (en) 2024-02-02

Family

ID=88897106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311403715.7A Active CN117148801B (en) 2023-10-27 2023-10-27 Controller adaptation method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN117148801B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000046117A (en) * 1998-12-31 2000-07-25 김영환 Cpu integration structure of subscriber-matching shelf and upper shelf of dslam system
WO2015009526A1 (en) * 2013-07-16 2015-01-22 Raytheon Company Method and apparatus for configuring control software for radar systems having different hardware architectures and related software products
CN106717127A (en) * 2014-07-28 2017-05-24 Itz创新和科技中心有限公司 Control installation for a lighting system and method for configuring and putting into service said control installation
CN107391140A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The method and system that a kind of picture of storage device is shown
CN111290802A (en) * 2020-02-13 2020-06-16 苏州浪潮智能科技有限公司 Information analysis method and device for BMC internal device and readable storage medium
CN113626307A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Data verification method and device based on K8S container platform
EP3937012A1 (en) * 2020-07-09 2022-01-12 ABB Schweiz AG Configuration of a modular plant
CN114047968A (en) * 2021-10-30 2022-02-15 济南浪潮数据技术有限公司 Method, system, storage medium and equipment for automatically adapting hardware
CN115129330A (en) * 2022-06-08 2022-09-30 浙江富涌电子科技有限公司 Burning system and method for automatically adapting firmware
CN115967618A (en) * 2022-11-07 2023-04-14 苏州浪潮智能科技有限公司 Multi-project BMC (baseboard management controller) sensor configuration management method and device
CN116226019A (en) * 2023-02-28 2023-06-06 中车青岛四方车辆研究所有限公司 System and method for managing multiple types of IO board cards based on universal controller
CN116320723A (en) * 2023-02-20 2023-06-23 重庆长安汽车股份有限公司 Vehicle-mounted camera pluggable self-adaption method, device and system and vehicle
CN116483470A (en) * 2023-04-27 2023-07-25 易保网络技术(上海)有限公司 Method for acquiring configuration information, electronic equipment and medium
CN116541026A (en) * 2023-04-07 2023-08-04 苏州浪潮智能科技有限公司 Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
CN116560621A (en) * 2023-04-06 2023-08-08 苏州浪潮智能科技有限公司 Baseboard management controller chip adapting method, system, equipment and medium
CN116737270A (en) * 2023-06-15 2023-09-12 重庆思骑科技有限公司 Equipment, system and method for rapid adaptation of instrument function
CN116820521A (en) * 2023-07-12 2023-09-29 重庆长安汽车股份有限公司 System and method for updating configuration parameters of controller

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000046117A (en) * 1998-12-31 2000-07-25 김영환 Cpu integration structure of subscriber-matching shelf and upper shelf of dslam system
WO2015009526A1 (en) * 2013-07-16 2015-01-22 Raytheon Company Method and apparatus for configuring control software for radar systems having different hardware architectures and related software products
CN106717127A (en) * 2014-07-28 2017-05-24 Itz创新和科技中心有限公司 Control installation for a lighting system and method for configuring and putting into service said control installation
CN107391140A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The method and system that a kind of picture of storage device is shown
CN111290802A (en) * 2020-02-13 2020-06-16 苏州浪潮智能科技有限公司 Information analysis method and device for BMC internal device and readable storage medium
EP3937012A1 (en) * 2020-07-09 2022-01-12 ABB Schweiz AG Configuration of a modular plant
CN113626307A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Data verification method and device based on K8S container platform
CN114047968A (en) * 2021-10-30 2022-02-15 济南浪潮数据技术有限公司 Method, system, storage medium and equipment for automatically adapting hardware
CN115129330A (en) * 2022-06-08 2022-09-30 浙江富涌电子科技有限公司 Burning system and method for automatically adapting firmware
CN115967618A (en) * 2022-11-07 2023-04-14 苏州浪潮智能科技有限公司 Multi-project BMC (baseboard management controller) sensor configuration management method and device
CN116320723A (en) * 2023-02-20 2023-06-23 重庆长安汽车股份有限公司 Vehicle-mounted camera pluggable self-adaption method, device and system and vehicle
CN116226019A (en) * 2023-02-28 2023-06-06 中车青岛四方车辆研究所有限公司 System and method for managing multiple types of IO board cards based on universal controller
CN116560621A (en) * 2023-04-06 2023-08-08 苏州浪潮智能科技有限公司 Baseboard management controller chip adapting method, system, equipment and medium
CN116541026A (en) * 2023-04-07 2023-08-04 苏州浪潮智能科技有限公司 Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
CN116483470A (en) * 2023-04-27 2023-07-25 易保网络技术(上海)有限公司 Method for acquiring configuration information, electronic equipment and medium
CN116737270A (en) * 2023-06-15 2023-09-12 重庆思骑科技有限公司 Equipment, system and method for rapid adaptation of instrument function
CN116820521A (en) * 2023-07-12 2023-09-29 重庆长安汽车股份有限公司 System and method for updating configuration parameters of controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
牛金海: "《TI C66X多核软件开发(MCSDK)技术 基于CCSV5 SYS/BIOS的高级应用与实例精解》", 上海交通大学出版社, pages: 286 - 288 *

Also Published As

Publication number Publication date
CN117148801B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN111290802B (en) Information analysis method and device for BMC internal device and readable storage medium
CN113704301B (en) Data processing method, device, system, equipment and medium of heterogeneous computing platform
CN108170425B (en) Program code modification method and device and terminal equipment
US10678514B2 (en) Method and device for generating code assistance information
CN109885821B (en) Article writing method and device based on artificial intelligence and computer storage medium
CN113657088A (en) Interface document analysis method and device, electronic equipment and storage medium
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN111367890A (en) Data migration method and device, computer equipment and readable storage medium
CN110633258B (en) Log insertion method, device, computer device and storage medium
US20220198153A1 (en) Model training
CN114546394B (en) Unified Internet of things peripheral access and control method
CN117148801B (en) Controller adaptation method, device, electronic equipment and medium
CN114153477A (en) Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card
CN111475186A (en) Firmware upgrading method, device, equipment and medium based on BMC
CN115756322A (en) Data storage method and device, electronic equipment and storage medium
CN113609066A (en) Multi-core RISCV-CPU simulator based on Rust
CN112966038A (en) Method and device for extracting structured data from unstructured data
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN107612919B (en) Protocol configuration method and device
CN112084099A (en) Method, device and equipment for obtaining alarm state value based on host and storage medium
CN117874211B (en) Intelligent question-answering method, system, medium and electronic equipment based on SAAS software
CN114239592B (en) Intelligent scheduling method and system based on natural language analysis
CN112130841B (en) SQL development method and device and terminal equipment
US20230325205A1 (en) System and computer-implemented method to generate a configuration for external datapoint access
CN116340041A (en) Data storage method, system, device and computer readable 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