Control system, method, device and medium for network embedded device

By realizing source code reception, analysis and execution functions on network embedded devices, the problem of low efficiency in equipment development, debugging, testing and operation and maintenance is solved, the efficiency and accuracy of positioning problems are improved, cross-platform development is realized, and practical application needs are met.

CN117076296BActive Publication Date: 2025-06-06SINO TELECOM TECHNOLOGY CO INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310948815.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-06-06
Estimated Expiration
2043-07-31

AI Technical Summary

Technical Problem

In the prior art, the development, debugging, testing and operation and maintenance of network embedded devices are relatively low, and the efficiency and accuracy of positioning product problems are not good, which cannot meet the needs of practical applications.

Method used

It provides a control system for network embedded devices, including source code receiving module, analysis module and execution module, allowing source code information to be received, parsed and executed directly on the device, realize cross-platform development, and simplify development and debugging, testing and operation and maintenance processes.

Benefits of technology

By directly writing and parsing source code on the device, the time for development, debugging, testing and operation and maintenance is shortened, the efficiency and accuracy of positioning product problems is improved, the control efficiency of network embedded devices is improved, and the diversified needs of practical applications is met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117076296B_ABST
    Figure CN117076296B_ABST
Patent Text Reader

Abstract

The present application provides a control system, method, device and medium for network embedded devices. The system is installed in the network embedded device, and the system includes a source code receiving module, a parsing module and an execution module, wherein the source code receiving module is connected to the parsing module, and the parsing module is connected to the execution module; the source code receiving module is used to receive source code information directly acting on the network embedded device; the source code information includes at least one of the following: first source code information corresponding to the development stage, second source code information corresponding to the test stage and third source code information corresponding to the operation and maintenance stage; the parsing module is used to parse according to at least one of the first source code information, the second source code information and the third source code information to obtain a parsing result; the execution module is used to perform control operations according to a preset path according to the parsing result, which can solve the technical problems of low efficiency in product development, debugging, testing and operation and maintenance in related technologies and poor accuracy in locating product problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a control system, method, device and medium for a network embedded device. Background Art

[0002] With the advancement of science and technology, the functions of network embedded devices such as routers and switches are becoming more and more powerful, and their applications in the fields of industry, consumer electronics, national defense, etc. are becoming more and more extensive. Among them, before the delivery of the network embedded device, the network embedded device needs to be developed, debugged and product tested; after the delivery of the network embedded device, the network embedded device needs to be operated and maintained. That is, the network embedded device includes a development and debugging stage, a product testing stage and a product operation and maintenance stage. In the development and debugging stage, the problems found in the debugging process can be quickly and accurately located, thereby improving the efficiency of development and debugging; in the product testing stage and in the product operation and maintenance stage, the problems found on site can be quickly and accurately located, the functions of the product can be optimized, and the efficiency of product operation and maintenance can be improved, which is crucial for network embedded devices.

[0003] Regarding the development and debugging stage, the inventor has at least found that: in the related art, no matter how big or small the changes are to the network embedded device, even if they are small or small, they all need to go through the steps of "R&D personnel edit the code on the computer according to different system architectures → compile the code on the virtual machine (cross-compile) → burn the code to the target machine" to implement code debugging. This leads to cumbersome steps in the development and debugging stage, and the process of the development and debugging stage takes a long time, and the efficiency of development and debugging is low.

[0004] Furthermore, after development and debugging are completed, the product testing phase can begin. In this phase, gdb positioning is usually used to locate problems found during product testing. However, gdb positioning is generally only applicable to modifications such as a small number of variables and arrays, and is not applicable to scenarios where the code needs to be rewritten and the effect needs to be verified according to the parameter transfer.

[0005] Regarding the product operation and maintenance stage, the inventor has at least found that: in the relevant technology, after discovering a problem with the product, the first thing to do is to find out where the problem is, so as to avoid affecting the existing business. In this stage, the gdb positioning method is often used to locate the problems found in the product operation and maintenance stage. However, in order to save resources, many products generally remove (Strip) symbols related to functions, so that the gdb positioning method cannot effectively locate functions, variables, etc., so the relevant personnel cannot know the positioning results, resulting in poor positioning accuracy, so it is necessary to verify by writing functions to obtain the positioning results; in addition, in many application scenarios, in order to achieve patch repair, upgrade and other optimizations of a functional module of the product, it is necessary to restart the device.

[0006] In summary, the inventors have found that there are at least the following technical problems in the relevant technology: the efficiency of product development, debugging, testing and operation and maintenance is low; the efficiency of locating product problems is low and the accuracy is poor, which cannot meet the needs of actual applications. Summary of the invention

[0007] One purpose of the present application is to provide a control system, method, device and medium for a network embedded device, at least to solve the technical problems in the related technology of low efficiency in product development, debugging, testing and operation and maintenance; low efficiency and poor accuracy in locating product problems, and inability to meet the needs of actual applications.

[0008] To achieve the above objectives, the present application provides the following aspects:

[0009] In a first aspect, some embodiments of the present application provide a control system for a network embedded device, wherein the system is installed on the network embedded device, and the system includes a source code receiving module, a parsing module and an execution module, wherein the source code receiving module and the parsing module, and the parsing module and the execution module are connected; the source code receiving module is used to receive source code information that directly acts on the network embedded device; wherein the source code information includes at least one of the following: first source code information corresponding to a development stage, second source code information corresponding to a testing stage, and third source code information corresponding to an operation and maintenance stage; the parsing module is used to perform parsing according to at least one of the first source code information, the second source code information and the third source code information to obtain a parsing result; the execution module is used to perform control operations according to a preset path according to the parsing result.

[0010] In a second aspect, some embodiments of the present application also provide a control method for a network embedded device, which is applied to the system as described above, and the method includes: receiving source code information that directly acts on the network embedded device; wherein the source code information includes at least one of the following: first source code information corresponding to the development stage, second source code information corresponding to the testing stage, and third source code information corresponding to the operation and maintenance stage; parsing according to at least one of the first source code information, the second source code information, and the third source code information to obtain a parsing result; and according to the parsing result, executing the control operation according to a preset path.

[0011] In a third aspect, some embodiments of the present application further provide a computer device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the method described above.

[0012] In a fourth aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.

[0013] Beneficial effects:

[0014] Compared with the prior art, in the solution provided by the embodiment of the present application, since the relevant staff can directly send source code information based on the source code receiving module of the network embedded device, and then combine the analysis module to complete control operations such as function debugging in the development stage, problem verification in the test stage, problem location in the operation and maintenance stage, and product update maintenance, the efficiency and accuracy of locating product problems can be improved. In other words, whether in the development stage, test stage or operation and maintenance stage of the product, whether it is a small change to the function, verification of the function in problem location, or function optimization, patching, etc., the relevant staff can directly write in the network embedded device, so that the time for function debugging in the product development stage, the time for problem verification in the test stage, and the time for problem location in the operation and maintenance stage and the time for product update maintenance can be shortened, so that the relevant staff does not need to spend their energy on cumbersome and time-consuming processes in the above stages, so as to achieve the purpose of improving the control efficiency of the network embedded device, so as to meet the diversified needs of practical applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 An exemplary structural diagram of a control system of a network embedded device provided in Embodiments 1 to 4 of the present application;

[0016] Figure 2An exemplary flow chart of a control method for a network embedded device provided in Embodiment 5 of the present application;

[0017] Figure 3 This is a schematic diagram of an exemplary structure of a computer device provided in Example 6 of the present application. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] The following terms are used in this article.

[0020] gdb positioning, the full English name is "GNU symbolic debugger", is a debugging tool in the GNU project that can track the execution of the program and restore the state before the program crashed.

[0021] Source code, that is, source code.

[0022] Embodiment 1

[0023] Embodiment 1 of the present application provides a control system for a network embedded device 100, wherein the system is installed in the network embedded device 100. Figure 1 As shown, the system may include a source code receiving module 10 and a parsing module 20 , wherein the source code receiving module 10 is connected to the parsing module 20 , and the parsing module 20 is connected to the execution module 40 .

[0024] The source code receiving module 10 is used to receive source code information that directly acts on the network embedded device 100; wherein the source code information includes at least one of the following: first source code information corresponding to the development stage, second source code information corresponding to the testing stage, and third source code information corresponding to the operation and maintenance stage; the parsing module 20 is used to parse according to at least one of the first source code information, the second source code information, and the third source code information to obtain a parsing result; the execution module 40 is used to execute a control operation according to a preset path based on the parsing result.

[0025] Specifically, in some embodiments of the present application, the first source code information may include but is not limited to source code information for development and debugging. The source code information for development and debugging may further include source code information for modifying existing functional parameters and source code information for adding new product functional parameters. For example, in the development stage of the network embedded device 100, when the relevant staff needs to make changes based on the developed network embedded device 100, the relevant staff can write a debugging function according to actual needs to edit the source code, and issue the first source code information according to the editing result obtained by editing the source code. For example, the relevant staff can directly issue source code information based on the source code receiving module 10 of the network embedded device 100, so that the development tool can be directly integrated into the network embedded device 100, so that in the development stage, all work is transferred to the network embedded device 100 to complete, and then the function debugging is directly completed based on the parsing module 20. Wherein, the editing result generally includes function information.

[0026] Specifically, in some embodiments of the present application, the second source code information may include source code information for function verification. For example, during the testing phase of the network embedded device 100, when the relevant staff needs to test based on the developed network embedded device 100, the relevant staff can write a debugging function to edit the source code according to actual needs, and issue the second source code information according to the editing result obtained by editing the source code, and can directly execute the second source code information on the parsing module 20.

[0027] Specifically, in some embodiments of the present application, the third source code information may include source code information for problem location, and / or source code information for product update and maintenance. For example, during the operation and maintenance phase of the network embedded device 100, when relevant staff need to perform operation and maintenance based on the developed network embedded device 100, the relevant staff can write a debugging function to perform source code editing according to actual needs, and issue the third source code information according to the editing result obtained by performing source code editing. In some examples, the source code information for product update and maintenance may be upgrade information.

[0028] The relevant staff may directly write the source code information through the source code receiving module 10 of the network embedded device 100. The directly writing the source code information may include but is not limited to header files, defined variables and other information.

[0029] Furthermore, in some examples, the analysis module 20 may specifically be a analyzer, or other devices or apparatuses having an analysis function, which is not specifically limited in the embodiments of the present application.

[0030] Further, in some examples, after the parsing module 20 receives at least one of the first source code information, the second source code information, and the third source code information, a control operation may be performed according to a preset path according to the corresponding parsing result. For example, the parsing module 20 may call a target source code corresponding to the parsing result according to the parsing result corresponding to the first source code information, and then debug the target source code according to the preset path in combination with the received debugging control information.

[0031] It can be understood that in the relevant technology, after the relevant staff completes the writing of the source code, it is necessary to compile the source code, and the specific content of the compilation operation includes the need to obtain a compilation tool link for the platform type, system architecture, version, etc. of the network embedded device 100, and the network embedded device 100 then performs a compilation operation according to the compilation link; in the embodiment of the present application, by flexibly and cleverly utilizing the built-in parsing module 20 of the network embedded device 100, the system can directly read the source code information and translate it into instructions that can be executed by the computer, without considering the platform type, system architecture, version, etc. of the network embedded device 100, and fully utilizing the advantages of the cross-platform function that the parsing module 20 naturally possesses, solving the efficiency problems caused by the differences in platforms, and realizing the source code writing, cross-compilation, burning and running of the network embedded device 100, and changing it to direct encoding, parsing and execution in the network embedded device 100, thereby achieving the purpose of cross-platform development advantages. Simply put, in the embodiment of the present application, the cross-compilation operation in the related technology is changed to be implemented directly through the parsing module 20 built into the network embedded device 100, and the parsing module 20 can execute the source code corresponding to the source code information in a timely manner. Therefore, the solution provided by the embodiment of the present application has at least the following beneficial effects: it is conducive to shortening the development cycle of the development stage, improving development efficiency, and making the development of the network embedded device 100 more flexible; relevant personnel can write code blocks with certain logical functions based on the solution provided by the embodiment of the present application to locate problems, and provide a method for locating problems, which can not only solve the technical problem that the gdb positioning used in the traditional problem locating process in the product testing stage and the product operation and maintenance stage can only be applicable to the situation of modifying a small amount of code, but can also be applicable to application scenarios where the original code is greatly modified, and can also increase the maintainability of the code;

[0032] In summary, compared with the related art, the control system of the network embedded device 100 provided in the embodiment of the present application can improve the efficiency and accuracy of locating product problems, such as the development phase, the problem verification in the test phase, the problem location in the operation and maintenance phase, and the product update maintenance, because the relevant staff can directly send source code information based on the source code receiving module 10 of the network embedded device 100, and then combine the analysis module 20 to complete control operations such as function debugging in the development phase, problem verification in the test phase, problem location in the operation and maintenance phase, and product update maintenance. In other words, whether in the development phase, the test phase or the operation and maintenance phase of the product, whether it is a small change to the function, the verification of the function in the problem location, or the function optimization, patching, etc., the relevant staff can directly write in the network embedded device 100, so that the time for function debugging in the product development phase, the time for problem verification in the test phase, and the time for problem location in the operation and maintenance phase and the time for product update maintenance can be shortened, so that the relevant staff does not need to spend their energy on cumbersome and time-consuming processes in the above-mentioned stages, so as to achieve the purpose of improving the control efficiency of the network embedded device 100, so as to meet the diversified needs of practical applications.

[0033] Embodiment 2

[0034] Embodiment 2 of the present application is further improved on the basis of embodiment 1. The specific improvement is that in embodiment 2 of the present application, the system may further include a judgment module and a burning module (not shown in the figure), the input end of the judgment module is connected to the output end of the analysis module 20, and the input end of the burning module is connected to the output end of the judgment module.

[0035] The judging module is used to judge whether the network embedded device 100 meets the preset network conditions;

[0036] The parsing module 20 is used to parse the source code information to obtain a parsing result when the judgment module determines that the network embedded device 100 meets the preset network condition, and generate patch information according to the parsing result;

[0037] The burning module is used to burn the patch information to the network embedded device 100 .

[0038] Specifically, in some embodiments of the present application, the preset network condition may include: the network embedded device 100 is in a powered-on state, and / or the network embedded device 100 currently has business. Among them, when the network embedded device 100 is in a powered-on state, it means that the network embedded device 100 is in a powered-on state and can perform online processing. In some other examples, the preset network condition may also be that the network signal of the network embedded device 100 is strong, or that the network signal of the network embedded device 100 is strong and the signal stability meets the preset requirements, etc., and the embodiments of the present application do not specifically limit this.

[0039] For example, in some examples, during the operation and maintenance phase, when relevant staff optimizes the functions of the network embedded device 100, the third source code information can be issued. In this way, the parsing module 20 is used to parse the third source code information to obtain a parsing result; the judgment module is used to judge whether the network embedded device 100 meets the preset network conditions. If it is determined that the network embedded device 100 meets the preset network conditions, the parsing module 20 is used to generate patch information according to the parsing result, and then the patch information is burned to the network embedded device 100 through the burning module. In this way, it can be achieved that when the network embedded device 100 is online, there is no need to restart the network embedded device 100, that is, all the online network embedded devices 100 can be upgraded.

[0040] It should be noted that the embodiment of the present application may also be an improvement made on the basis of the second embodiment.

[0041] It is not difficult to find that the solution provided by the embodiment of the present application can at least ensure that the product update and maintenance operations are completed in the operation and maintenance stage without affecting the current working state of the network embedded device 100. For example, if it is necessary to optimize the function or patch the vulnerability of a product in an online state, the traditional method must burn the corresponding function optimization or vulnerability patch code to the network embedded device 100, and then the network embedded device 100 must be restarted. In this way, since the running business of the network embedded device 100 must be interrupted, the operation and maintenance efficiency is low; while the method provided by the embodiment of the present application can be used to optimize the function or patch the vulnerability without restarting the network embedded device 100, which reduces the impact on the business, improves the operation and maintenance efficiency, and improves the stability of the network embedded device 100.

[0042] Embodiment 3

[0043] The third embodiment of the present application is further improved on the basis of the second embodiment. The specific improvement is that in the third embodiment of the present application, the system may further include a compiling module 30, the input end of the compiling module 30 is connected to the output end of the parsing module 20, and the input end of the burning module is connected to the output end of the compiling module 30;

[0044] The compiling module 30 is used to compile according to the parsing result of the parsing module 20 and the newly received source code information to generate binary information when the judging module determines that the network embedded device 100 does not meet the preset network condition; wherein the newly received source code information is determined according to the control operation result obtained after the executing module 40 executes the parsing result;

[0045] The burning module is used to burn the binary information into the network embedded device 100 .

[0046] For example, in some examples, during the operation and maintenance stage, when the relevant staff optimizes the function of the network embedded device 100, the third source code information can be issued at the first time. In this way, the parsing module 20 is used to parse the third source code information to obtain the parsing result, and then the execution module performs the control operation according to the preset path according to the parsing result; the judgment module is used to judge whether the network embedded device 100 meets the preset network conditions. If it is determined that the network embedded device 100 does not meet the preset network conditions, the compilation module 30 can receive new third source code information at the second time. In this way, the compilation module 30 compiles according to the parsing result of the parsing module 20 and the new third source code information to generate binary information, and then burns the binary information to the network embedded device 100 through the burning module. In this way, it is possible to achieve the upgrade of all offline network embedded devices 100 when the network embedded device 100 is in an offline state. By upgrading all offline network embedded devices instead of upgrading a certain offline network embedded device one by one, the upgrade efficiency of the network embedded device can be improved.

[0047] Among them, for example, in the operation and maintenance stage, the newly received third source code information is generally modification information generated based on the code in the original code library. In the embodiment of the present application, after the parsing module 20 obtains the parsing result, the parsing result is executed by the execution module 40, so that the relevant staff can know the current debugging status. Therefore, the relevant staff can issue new third source code information according to the debugging status, aiming to integrate the new third source code information with the code in the current code library. In this way, the compilation module 30 can compile according to the parsing result of the parsing module 20 and the newly received source code information, that is, integrate and compile the newly received source code information together with the code in the current code library to generate the binary information.

[0048] It should be noted that the third embodiment of the present application may also be an improvement made on the basis of the first embodiment.

[0049] Embodiment 4

[0050] The fourth embodiment of the present application is further improved on the basis of the third embodiment. The specific improvement is that in the fourth embodiment of the present application, the parsing module 20 is used to perform lexical parsing and grammatical parsing on the target function to obtain the parsing result.

[0051] Specifically, in some examples, the lexical parsing of the target function at least includes: performing a parsing operation on the target function according to preset defined variables, symbols, expressions, functions, illegal information processing rules, preprocessing, etc.

[0052] Specifically, in some examples, the grammatical parsing of the target function at least includes: performing calculation operations, such as push operations, execute operations, and pop operations, based on the parsing operation results of the lexical parsing.

[0053] Further, in some embodiments of the present application, the method for obtaining the target function includes: calling the target code file in the code library according to the received first instruction, and calling the target function in the target code file according to the received second instruction. In some examples, the first instruction may be a .L instruction, and the second instruction may be a .x instruction. Furthermore, the execution module 40 may execute the preset target function by calling the function name, parameters and other information.

[0054] It should be noted that the embodiments of the present application may also be improvements made on the basis of Embodiment 1 and / or Embodiment 3.

[0055] Embodiment 5

[0056] Embodiment 5 of the present application provides a control method for a network embedded device, and the method may include the following steps: Figure 2 As shown:

[0057] Step S101, receiving source code information directly acting on the network embedded device; wherein the source code information includes at least one of the following: first source code information corresponding to the development stage, second source code information corresponding to the testing stage, and third source code information corresponding to the operation and maintenance stage;

[0058] Step S102, performing parsing according to at least one of the first source code information, the second source code information and the third source code information to obtain a parsing result;

[0059] Step S103: executing a control operation according to a preset path based on the analysis result.

[0060] In some examples, the first source code information includes source code information used for development and debugging; the second source code information includes source code information used for functional verification; the third source code information includes source code information used for problem location, and / or source code information used for product update and maintenance.

[0061] In some examples, the method further includes: when determining that the network embedded device meets the preset network condition, parsing according to the source code information to obtain a parsing result, and generating patch information according to the parsing result; and burning the patch information to the network embedded device.

[0062] In some examples, the method also includes: when it is determined that the network embedded device does not meet the preset network conditions, compiling according to the analysis results and the newly received source code information to generate binary information; wherein the control operation result obtained after the newly received source code information executes the analysis result is determined; and burning the binary information to the network embedded device.

[0063] In some examples, the preset network condition includes: the network embedded device is in a powered-on state, and / or the network embedded device currently has a service.

[0064] In some examples, the method further includes: performing lexical analysis and grammatical analysis according to the target function to obtain the analysis result.

[0065] In some examples, the method for obtaining the target function includes: calling a target code file in a code library according to a received first instruction, and calling a target function in the target code file according to a received second instruction.

[0066] It is not difficult to find that embodiment 5 of the present application is a method embodiment corresponding to any one or more system embodiments in embodiments 1 to 4. The implementation details provided in the above-mentioned system embodiments are also applicable to the embodiments of the present application. To avoid repetition, they will not be repeated here.

[0067] Embodiment 6

[0068] Embodiment 6 of the present application provides a computer device, the structure of which is as follows: Figure 3 As shown, the device includes a memory 50 for storing computer-readable instructions and a processor 60 for executing the computer-readable instructions, wherein when the computer-readable instructions are executed by the processor, the processor is triggered to execute the method described.

[0069] The methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the processing unit, the above functions defined in the method of the present application are executed.

[0070] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0071] In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0072] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0073] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0074] As another aspect, the embodiments of the present application further provide a computer-readable medium, which may be included in the device described in the above embodiments; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions, which may be executed by a processor to implement the steps of the methods and / or technical solutions of the above multiple embodiments of the present application.

[0075] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.

[0076] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0077] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0078] In addition, an embodiment of the present application further provides a computer program, which is stored in a computer device, so that the computer device executes the method for controlling code execution.

[0079] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including related data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0080] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A control system for network embedded devices, It is characterized in that The system is installed in the network embedded device, and the system includes a source code receiving module, a parsing module and an execution module, the source code receiving module is connected to the parsing module, and the parsing module is connected to the execution module; The source code receiving module is used to receive source code information that directly acts on the network embedded device; wherein the source code information includes at least one of the following: first source code information corresponding to the development stage, second source code information corresponding to the testing stage, and third source code information corresponding to the operation and maintenance stage; the system can directly read the source code information and translate it into instructions that can be executed by the computer without considering the platform type, system architecture and version to which the network embedded device belongs; The parsing module is used to parse at least one of the first source code information, the second source code information and the third source code information to obtain a parsing result; The execution module is used to execute the control operation according to the preset path according to the analysis result; The system also includes a judgment module and a burning module, the judgment module input end is connected to the output end of the parsing module, and the burning module input end is connected to the output end of the judgment module; the judgment module is used to judge whether the network embedded device meets the preset network conditions; the parsing module is used to parse according to the source code information to obtain the parsing result when the judgment module determines that the network embedded device meets the preset network conditions, and generate patch information according to the parsing result; the burning module is used to burn the patch information to the network embedded device.

2. The system according to claim 1, It is characterized in that The first source code information includes source code information used for development and debugging; The second source code information includes source code information used for function verification; The third source code information includes source code information used for problem location and / or source code information used for product update and maintenance.

3. The system according to claim 1, It is characterized in that The system further comprises a compiling module, wherein an input end of the compiling module is connected to an output end of the parsing module, and an input end of the burning module is connected to an output end of the compiling module; The compiling module is used to compile according to the parsing result of the parsing module and the newly received source code information to generate binary information when the judging module determines that the network embedded device does not meet the preset network condition; wherein the newly received source code information is determined according to the control operation result obtained after the executing module executes the parsing result; The burning module is used to burn the binary information into the network embedded device.

4. The system according to claim 1 or 3, It is characterized in that The preset network condition includes: the network embedded device is in a powered-on state, and / or the network embedded device currently has a service.

5. A system according to any one of claims 1 to 3, It is characterized in that The parsing module is specifically used to perform lexical parsing and grammatical parsing according to the target function to obtain the parsing result.

6. The system according to claim 5, It is characterized in that The method for acquiring the target function includes: calling a target code file in a code library according to a received first instruction, and calling a target function in the target code file according to a received second instruction.

7. A control method for a network embedded device, It is characterized in that The method is applied to the system according to any one of claims 1 to 6, and the method comprises: Receive source code information directly acting on the network embedded device; wherein the source code information includes at least one of the following: first source code information corresponding to the development stage, second source code information corresponding to the testing stage, and third source code information corresponding to the operation and maintenance stage; wherein the source code information is specifically: directly written by relevant staff through the source code receiving module; Parsing at least one of the first source code information, the second source code information, and the third source code information to obtain a parsing result; According to the analysis result, the control operation is performed according to the preset path; The method also includes: determining whether the network embedded device meets the preset network conditions; when the determination module determines that the network embedded device meets the preset network conditions, parsing according to the source code information to obtain the parsing result, and generating patch information according to the parsing result; and burning the patch information to the network embedded device.

8. A computer device, It is characterized in that The device comprises: one or more processors; and A memory storing computer program instructions which, when executed, cause the processor to perform the method of claim 7.

9. A computer readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method of claim 7.

Citation Information

Patent Citations

  • Software patch embedding method and device for hardware equipment

    CN103309683A