CN113961201A - Configuration system and configuration method of equipment functions - Google Patents

Configuration system and configuration method of equipment functions Download PDF

Info

Publication number
CN113961201A
CN113961201A CN202111325437.9A CN202111325437A CN113961201A CN 113961201 A CN113961201 A CN 113961201A CN 202111325437 A CN202111325437 A CN 202111325437A CN 113961201 A CN113961201 A CN 113961201A
Authority
CN
China
Prior art keywords
function
module
configuration
sub
task module
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.)
Pending
Application number
CN202111325437.9A
Other languages
Chinese (zh)
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.)
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo Technology Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo 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 Shanghai Sunmi Technology Group Co Ltd, Shenzhen Michelangelo Technology Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202111325437.9A priority Critical patent/CN113961201A/en
Publication of CN113961201A publication Critical patent/CN113961201A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a configuration system of equipment functions and a method thereof. The configuration system comprises an embedded system and can realize platform transplantation; the Log debugging task module has a switch enabling function and is used for the Log debugging output task; the system state task module is used for monitoring the operation of other functional modules in the configuration system; the registration module is used for realizing that a macro definition completes the registration of the functional program; the loading module is used for loading corresponding program functions related to the macro definition; the function running task module is used for realizing all function running tasks in the loading module of one running function; the embedded system, the Log debugging task module, the system state task module and the function operation task module form a minimum operation system of the configuration system. The configuration system and the method for the equipment functions can simplify the development process of the equipment functions and realize quick combination and quick deployment and operation of new equipment functions.

Description

Configuration system and configuration method of equipment functions
Technical Field
The invention mainly relates to the technical field of electronic internet of things, in particular to a configuration system and a configuration method for equipment functions.
Background
With the explosive growth of the internet of things equipment in recent years, application scenes are more and more diverse and complicated, and the development period of the equipment is required to be higher and shorter. With the accumulation of function development, although a new device has a certain difference in function requirements, the basic atomic functions are not greatly different or even the same, so that a new device can be regarded as the deletion or combination of other device functions.
The current general practice is to establish function modularization experience accumulation in the development process of equipment at ordinary times, and then to use a method of quickly copying and combining a historical experience library to perform development scheduling when a new equipment needs to be developed so as to shorten the development period. Although such a method can also develop product devices quickly, there is also a workload of repeatedly debugging functions combined by the same module, and therefore it is necessary to provide a faster and more efficient method to improve development efficiency.
Disclosure of Invention
The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
In order to achieve the above object, the present invention provides a system for configuring device functions, comprising:
the embedded system can realize platform transplantation;
the Log debugging task module has a switch enabling function and is used for the Log debugging output task;
the system state task module is used for monitoring the operation of other functional modules in the configuration system;
the registration module is used for realizing that a macro definition completes the registration of the functional program;
the loading module is used for realizing the loading of the corresponding program function associated with the macro definition;
the function running task module is used for realizing all function running tasks in the loading module of one running function;
the embedded system, the Log debugging task module, the system state task module and the function operation task module form a minimum operation system of the configuration system, and when the equipment has no function, the minimum operation system keeps normal operation.
The invention also provides a configuration method of the equipment function, which applies the configuration system and comprises the following steps:
step S1: initializing, namely inserting an initialization program of an independent sub-function in the equipment function into an initialization program segment of the minimum operation system through the registration module on the basis of the minimum operation system according to the equipment function requirement to realize the initialization of the equipment function;
step S2: program loading, inserting the running program corresponding to the sub-function into the running program segment in the minimum running system through the loading module;
step S3: and operating the embedded system, operating the loading modules one by the function operating task module, and feeding corresponding operating state information back to the system state task module.
In an embodiment of the foregoing method, in step S3, when the module needs to be debugged, the Log debugging task module is started, and the sub-function program inserts the Log interaction function in the corresponding program position as needed.
The invention also provides another configuration method of equipment functions, which applies the configuration system and comprises the following steps:
step T1: the platform transplantation of the embedded system is realized on a CPU main platform, and the minimum operation system is constructed on the configuration system;
step T2: selecting sub-functions of the device function;
step T3: generating a type selection configuration table corresponding to the sub-functions;
step T4: converting the type selection configuration table into macro definitions corresponding to the registration module and the loading module;
step T5: compiling the macro definition to generate corresponding firmware;
step T6: and burning the firmware into the equipment through a downloading circuit corresponding to the firmware.
In one embodiment of the method described above, at step T2, a resource conflict detection is performed on the subfunction.
In an embodiment of the foregoing method, the resource conflict detection includes detecting that each of the sub-functions occupies mutually exclusive resources on the CPU main platform, and summarizing resource occupation conditions of each of the sub-functions on the CPU main platform.
In an embodiment of the method, in step T3, the selection configuration table is generated after the conflict situation is eliminated from the resource conflict detection result.
The present invention also provides a computer readable storage medium having stored thereon computer instructions, wherein the computer instructions, when executed, perform the steps of a method for configuring a device function.
The present invention also provides a computer readable storage medium having stored thereon computer instructions, wherein the computer instructions, when executed, perform the steps of another method for configuring a device function.
Compared with the prior art, the invention has the following advantages: the method can simplify the development process of the functions of the equipment, and realize quick combination and quick deployment and operation of the functions of the new equipment.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the principle of the invention. In the drawings:
fig. 1 is a schematic structural diagram of a system for configuring device functions according to an embodiment of the present invention.
FIG. 2 is a flow diagram illustrating a method for configuring device functionality according to one embodiment of the invention.
Fig. 3 is a logic block diagram of a system for configuring device functions according to an embodiment of the present invention.
Fig. 4 is a flow chart illustrating another method for configuring device functionality according to an embodiment of the present invention.
FIG. 5 is a diagram illustrating a printer platform option according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only examples or embodiments of the application, from which the application can also be applied to other similar scenarios without inventive effort for a person skilled in the art. Unless otherwise apparent from the context, or otherwise indicated, like reference numbers in the figures refer to the same structure or operation.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
The relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description. Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values. 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, further discussion thereof is not required in subsequent figures.
It should be noted that the terms "first", "second", and the like are used to define the components, and are only used for convenience of distinguishing the corresponding components, and the terms have no special meanings unless otherwise stated, and therefore, the scope of protection of the present application is not to be construed as being limited. Further, although the terms used in the present application are selected from publicly known and used terms, some of the terms mentioned in the specification of the present application may be selected by the applicant at his or her discretion, the detailed meanings of which are described in relevant parts of the description herein. Further, it is required that the present application is understood not only by the actual terms used but also by the meaning of each term lying within.
Fig. 1 is a schematic structural diagram of a system 100 for configuring device functions according to an embodiment of the present invention. As shown in fig. 1, the present invention provides a system 100 for configuring device functions. The configuration system 100 includes:
the embedded system 101 can realize platform transplantation;
the Log debugging task module 102 has a switch enabling function and is used for a Log debugging output task;
a system status task module 103, configured to monitor operations of other functional modules in the configuration system 100;
a registration module 104, configured to implement a macro definition to complete functional program registration;
a loading module 105, configured to implement loading of a corresponding program function associated with the macro definition;
a function running task module 106, configured to implement tasks of running all functions in the loading module 105 of one running function;
the embedded system 101, the Log debugging task module 102, the system state task module 103, and the function running task module 106 form a minimum running system 107 of the configuration system 100, and when the device has no function, the minimum running system 107 keeps running normally.
FIG. 2 is a flow diagram illustrating a method for configuring device functionality according to one embodiment of the invention. As shown in the figure, the invention also provides a configuration method of the device function. The configuration method employs the configuration system 100 described above. The configuration method comprises the following steps:
step S1: initializing, namely inserting an initialization program of an independent sub-function in the equipment function into an initialization program segment of the minimum operation system through a registration module 104 on the basis of the minimum operation system 107 according to the equipment function requirement to realize the initialization of the equipment function;
step S2: program loading, namely inserting the running program of the corresponding sub-function into a running program segment in the minimum running system 107 through a loading module 105;
step S3: the embedded system 101 is operated, the loading module 105 is operated by the function operation task module 106 one by one, and the corresponding operation state information is fed back to the system state task module 103.
Preferably, in step S3, when the module needs to be debugged, the Log debugging task module 102 is turned on, and the sub-function program inserts the Log interaction function into the corresponding program position as needed.
Fig. 3 shows a logic block diagram of a device function configuration system 100 according to an embodiment of the invention. How the configuration system 100 operates is described in detail in conjunction with the above-described configuration method. In the initialization phase of step S1, according to the device function requirements, the initialization program of the independent sub-function in the device function, for example, the sub-function initialization program 1, the sub-function initialization program 2 … …, the sub-function initialization program n, is imported into the registration module 104, and is inserted into the initialization program segment of the minimum operating system 107 through the registration module 104, so as to initialize the device function. In the program loading phase of step S2, the running programs corresponding to the sub-functions, such as the sub-function running program 1 and the sub-function running program 2 … …, the sub-function running program n, are imported into the loading module 105, and are inserted into the running program segment in the minimal running system 107 through the loading module 105. Next, the embedded system 101 is operated, the function operation task module 106 operates the loading module 105 one by one, and feeds back corresponding operation state information to the system state task module 103.
Fig. 4 is a flow chart illustrating another method for configuring device functionality according to an embodiment of the present invention. As shown in the figure, the present invention also provides another method for configuring the device functions. The configuration method employs the configuration system 100 described above. The configuration method comprises the following steps:
step T1: the platform transplantation of the embedded system 101 is realized on a CPU main platform, and a minimum operation system 107 is constructed on the configuration system 100;
step T2: selecting each subfunction of the device function;
step T3: generating a type selection configuration table corresponding to the subfunction;
step T4: converting the type selection configuration table into macro definitions corresponding to the registration module 104 and the loading module 105;
step T5: compiling the macro definition to generate corresponding firmware;
step T6: and burning the firmware into the equipment through a downloading circuit corresponding to the firmware.
Preferably, in step T2, the sub-function is subjected to resource conflict detection. Preferably, the resource conflict detection includes detecting that each sub-function occupies mutually exclusive resources on the CPU main platform, and summarizing resource occupation conditions of each sub-function on the CPU main platform.
Preferably, in step T3, the type selection configuration table is generated after the conflict situation is eliminated from the resource conflict detection result.
FIG. 5 is a diagram illustrating a printer platform option according to an embodiment of the present invention. As shown in the figure, the printer platform type selection is realized according to the configuration method.
1. The platform-based transplantation of the embedded system 101 is realized on a CPU main platform, namely a printing platform-based model selection tool is deployed on a PC.
2. The printing platform type selection tool selects various subfunctions of the equipment function, and the figure comprises subfunctions of selecting the type of a CPU, selecting a printing head, selecting the system state, selecting a sensor, selecting a paper feeding motor, selecting dormancy support and the like.
3. And after the selection confirmation, performing resource conflict detection on the subfunction.
4. In the resource conflict detection process, if a resource conflict exists, prompting to return conflict information needing to be modified; if there is no conflict or after modification, the print platform type selection tool will call the above-mentioned configuration system to generate the type selection configuration table required by the system.
5. The printing platform type selection tool converts the type selection configuration table into macro definitions corresponding to the registration module 104 and the loading module 105. And the printing platform type selection tool calls a compiling tool to compile the source code defined by the macro to generate corresponding firmware.
6. The printing platform type selection tool burns the firmware into the new equipment through the downloading circuit corresponding to the firmware.
The configuration system and the configuration method of the equipment function provided by the invention can achieve the following effects:
1) the register loading of the sub-function modules of the equipment functions is flexible, the rapid deployment of any independent function module can be rapidly realized, and the rapid online of each sub-function on the platform is facilitated;
2) for the printing model selection tool in the specific embodiment, equipment firmware can be quickly generated only by non-professional developers familiar with the printing scheme according to the tool using steps;
3) because the added functional modules are stable sub-functional modules which are independently tested, after a new device requirement is selected, the firmware can be quickly generated and downloaded to the device for running through simple debugging, and the time for debugging the traditional device in the past is greatly saved.
The present invention also provides a computer readable storage medium having stored thereon computer instructions which, when executed, perform the steps of a configuration method as previously described.
The present invention also provides a computer readable storage medium having stored thereon computer instructions, which when executed, perform the steps of the aforementioned another configuration method.
Flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding operations are not necessarily performed in the exact order in which they are performed. Rather, various steps may be processed in reverse order or simultaneously. Meanwhile, other operations are added to or removed from these processes.
Having thus described the basic concept, it will be apparent to those skilled in the art that the foregoing disclosure is by way of example only, and is not intended to limit the present application. Various modifications, improvements and adaptations to the present application may occur to those skilled in the art, although not explicitly described herein. Such modifications, improvements and adaptations are proposed in the present application and thus fall within the spirit and scope of the exemplary embodiments of the present application.
Also, this application uses specific language to describe embodiments of the application. Reference throughout this specification to "one embodiment," "an embodiment," and/or "some embodiments" means that a particular feature, structure, or characteristic described in connection with at least one embodiment of the present application is included in at least one embodiment of the present application. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, some features, structures, or characteristics of one or more embodiments of the present application may be combined as appropriate.
Aspects of the present application may be embodied entirely in hardware, entirely in software (including firmware, resident software, micro-code, etc.) or in a combination of hardware and software. The above hardware or software may be referred to as "data block," module, "" engine, "" unit, "" component, "or" system. The processor may be one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), digital signal processing devices (DAPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or a combination thereof. Furthermore, aspects of the present application may be represented as a computer product, including computer readable program code, embodied in one or more computer readable media. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips … …), optical disks (e.g., Compact Disk (CD), Digital Versatile Disk (DVD) … …), smart cards, and flash memory devices (e.g., card, stick, key drive … …).
Similarly, it should be noted that in the preceding description of embodiments of the application, various features are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure aiding in the understanding of one or more of the embodiments. This method of disclosure, however, is not intended to require more features than are expressly recited in the claims. Indeed, the embodiments may be characterized as having less than all of the features of a single embodiment disclosed above.
Numerals describing the number of components, attributes, etc. are used in some embodiments, it being understood that such numerals used in the description of the embodiments are modified in some instances by the use of the modifier "about", "approximately" or "substantially". Unless otherwise indicated, "about", "approximately" or "substantially" indicates that the number allows a variation of ± 20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximations that may vary depending upon the desired properties of the individual embodiments. In some embodiments, the numerical parameter should take into account the specified significant digits and employ a general digit preserving approach. Notwithstanding that the numerical ranges and parameters setting forth the broad scope of the range are approximations, in the specific examples, such numerical values are set forth as precisely as possible within the scope of the application.
Although the present application has been described with reference to the present specific embodiments, it will be recognized by those skilled in the art that the foregoing embodiments are merely illustrative of the present application and that various changes and substitutions of equivalents may be made without departing from the spirit of the application, and therefore, it is intended that all changes and modifications to the above-described embodiments that come within the spirit of the application fall within the scope of the claims of the application.

Claims (9)

1. A system for configuring device functions, comprising:
the embedded system can realize platform transplantation;
the Log debugging task module has a switch enabling function and is used for the Log debugging output task;
the system state task module is used for monitoring the operation of other functional modules in the configuration system;
the registration module is used for realizing that a macro definition completes the registration of the functional program;
the loading module is used for realizing the loading of the corresponding program function associated with the macro definition;
the function running task module is used for realizing all function running tasks in the loading module of one running function;
the embedded system, the Log debugging task module, the system state task module and the function operation task module form a minimum operation system of the configuration system, and when the equipment has no function, the minimum operation system keeps normal operation.
2. A method for configuring device functions, wherein the configuration system of claim 1 is applied, the method comprising:
step S1: initializing, namely inserting an initialization program of an independent sub-function in the equipment function into an initialization program segment of the minimum operation system through the registration module on the basis of the minimum operation system according to the equipment function requirement to realize the initialization of the equipment function;
step S2: program loading, inserting the running program corresponding to the sub-function into the running program segment in the minimum running system through the loading module;
step S3: and operating the embedded system, operating the loading modules one by the function operating task module, and feeding corresponding operating state information back to the system state task module.
3. The configuration method according to claim 2, wherein in step S3, when the module needs to be debugged, the Log debugging task module is turned on, and the sub-function program inserts the Log interaction function in the corresponding program position as required.
4. A method for configuring device functions, wherein the configuration system of claim 1 is applied, the method comprising:
step T1: the platform transplantation of the embedded system is realized on a CPU main platform, and the minimum operation system is constructed on the configuration system;
step T2: selecting sub-functions of the device function;
step T3: generating a type selection configuration table corresponding to the sub-functions;
step T4: converting the type selection configuration table into macro definitions corresponding to the registration module and the loading module;
step T5: compiling the macro definition to generate corresponding firmware;
step T6: and burning the firmware into the equipment through a downloading circuit corresponding to the firmware.
5. The configuration method according to claim 4, wherein in step T2, the sub-function is subjected to resource conflict detection.
6. The configuration method according to claim 5, wherein the resource conflict detection comprises detecting that each of the sub-functions occupies mutually exclusive resources on the CPU main platform, and summarizing resource occupation conditions of each of the sub-functions on the CPU main platform.
7. The configuration method according to claim 6, wherein in step T3, the configuration table is generated after eliminating conflict in the resource conflict detection result.
8. A computer readable storage medium having computer instructions stored thereon for performing the steps of the configuration method of claim 2 or claim 3 when the computer instructions are executed.
9. A computer readable storage medium having computer instructions stored thereon, wherein the computer instructions when executed perform the steps of the configuration method of any one of claims 4 to 7.
CN202111325437.9A 2021-11-10 2021-11-10 Configuration system and configuration method of equipment functions Pending CN113961201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111325437.9A CN113961201A (en) 2021-11-10 2021-11-10 Configuration system and configuration method of equipment functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111325437.9A CN113961201A (en) 2021-11-10 2021-11-10 Configuration system and configuration method of equipment functions

Publications (1)

Publication Number Publication Date
CN113961201A true CN113961201A (en) 2022-01-21

Family

ID=79469795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111325437.9A Pending CN113961201A (en) 2021-11-10 2021-11-10 Configuration system and configuration method of equipment functions

Country Status (1)

Country Link
CN (1) CN113961201A (en)

Similar Documents

Publication Publication Date Title
EP1372067A2 (en) Image-based software installation
EP1650663A2 (en) Automated Software Testing using a layered architecture
CN112084488A (en) Application authority management method, device and system
CN115935631A (en) Test system and method for vehicle equipment and storage medium
US9218273B2 (en) Automatic generation of a resource reconfiguring test
US11068463B2 (en) System and method for managing log data
CN113961201A (en) Configuration system and configuration method of equipment functions
JPH08314760A (en) Program development supporting device
US20140013312A1 (en) Source level debugging apparatus and method for a reconfigurable processor
CN114924925A (en) Instruction set simulator test method and device, electronic equipment and storage medium
US20110225400A1 (en) Device for Testing a Multitasking Computation Architecture and Corresponding Test Method
JP2007080049A (en) Built-in program generation method, built-in program development system and information table section
CN114115763B (en) Configuration device and configuration method for printer platform product
JP2010102372A (en) Data processor, verification system, data processor verification method
EP4254171A1 (en) Generation program, generation method, and information processing device
JP7307011B2 (en) Model parallelization device and method
US6782523B2 (en) Parallel configurable IP design methodology
CN112346793B (en) Data processing method, device, electronic equipment and computer readable medium
CN113672490B (en) Function definition identification method, device and equipment
CN110990475B (en) Batch task inserting method and device, computer equipment and storage medium
JP2008234058A (en) Saved data determination method, saved data determination program and saved data determination device
Troester et al. Innovations in infrastructure firmware for the IBM z13
JP2019106065A (en) Task execution method, compiler, and electronic control device
CN115185536A (en) Program code compiling method and device, computer equipment and readable storage medium
CN117408665A (en) Product editing method, device, storage medium and server

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