CN107850883B - System processing method and numerical control system - Google Patents

System processing method and numerical control system Download PDF

Info

Publication number
CN107850883B
CN107850883B CN201580081289.7A CN201580081289A CN107850883B CN 107850883 B CN107850883 B CN 107850883B CN 201580081289 A CN201580081289 A CN 201580081289A CN 107850883 B CN107850883 B CN 107850883B
Authority
CN
China
Prior art keywords
numerical control
control system
storage device
application program
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201580081289.7A
Other languages
Chinese (zh)
Other versions
CN107850883A (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.)
Shenzhen A&E Intelligent Technology Institute Co Ltd
Original Assignee
Shenzhen A&E Intelligent Technology Institute 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 Shenzhen A&E Intelligent Technology Institute Co Ltd filed Critical Shenzhen A&E Intelligent Technology Institute Co Ltd
Publication of CN107850883A publication Critical patent/CN107850883A/en
Application granted granted Critical
Publication of CN107850883B publication Critical patent/CN107850883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A system processing method and a numerical control system, the method comprises: the numerical control system starts a system (101, 203) according to a system file stored on a first storage device (301, 401), and generates mapping information (102, 204) of an application program on the first storage device (301, 401), wherein the application program is stored in a second storage device (302, 402), and the first storage device (301, 401) and the second storage device (302, 402) are different storage devices; the numerical control system calls an application program (103, 205) through the mapping information. The method can store the system file and the application program separately, so that the problem that the storage equipment cannot be normally used due to excessive junk files of the storage equipment of the numerical control system, wherein the storage equipment stores the system file, can be effectively avoided.

Description

System processing method and numerical control system
Technical Field
The invention relates to the technical field of computers, in particular to a system processing method and a numerical control system.
Background
Because of the popularity of the storage devices such as the ultra-large capacity nonvolatile Flash Memory device Nand Flash Memory, the space of the Nand Flash Memory cannot be controlled by the conventional File systems such as the File system yaffs (yet antenna Flash File system), and therefore, in 2006, the subsystem ubi (subsystem) and the unsorted Block Image File system ubifs (unordered Block Image File system) thereof were designed and developed by the engineers Thomas Gleixner and artybitskiy of IBM and Nokia, and are dedicated to solving the bottleneck encountered by the Memory technology device mtd Memory technology (device). UBIFS handles the actions with MTD device through subsystem UBI. Like JFFS2(journal Flash File System Version 2) of Flash journaling File System, the UBIFS is built on MTD device, and is not compatible with general block device, and devices capable of randomly accessing fixed-size data pieces in the System are called block devices, such as hard disks, Secure digital memory cards (Secure digital memory cards), and the like. UBIFS is a Flash journal file system based on UBI. The UBIFS and the UBI subsystem used by the UBIFS are file systems used on large-capacity flash equipment.
In the prior art, a system file and an application program file of a numerical control system are stored together, the coupling is too tight, and the inherent characteristics of MTD, UBI, UBIFS, Nand Flash Memory and the like have influence, in practical application, due to frequent reading, writing and erasing of the application program file, a device bad block often occurs on a storage device in which the numerical control system operates, wherein if the file system is UBIFS in an operating system used by the numerical control system, the space dirtyspace for storing a garbage file in the UBIFS is increased, and finally, a physical address of the storage device cannot be normally used or no Memory is available, and an unstable stable bit of the UBI occurs when the numerical control system is abnormally powered off, that is, too many garbage files of the storage device in which the system file is stored in the numerical control system are easily caused, and the storage device cannot be normally used.
Disclosure of Invention
The system processing method provided by the embodiment of the invention is used for effectively avoiding that the storage equipment cannot be normally used due to excessive junk files of the storage equipment in the numerical control system, wherein the storage equipment stores the system files.
In view of this, in a first aspect, an embodiment of the present invention provides a system processing method, including:
the numerical control system starts the system according to the system file stored on the first storage device, and generates mapping information of an application program on the first storage device, wherein the application program is stored in the second storage device, and the first storage device and the second storage device are different storage devices;
and the numerical control system calls the application program through the mapping information.
In one possible design, the numerical control system performs system processing when the numerical control system determines that preset optimization conditions are reached.
In a possible design, before the numerical control system starts the system according to the system file stored on the first storage device, the method further includes:
the numerical control system reads a system file from external equipment through an external equipment interface;
and the numerical control system stores the system file to the first storage device.
In one possible design, the external device interface is a secure digital memory card SD card interface, a serial interface, or a wireless fidelity WIFI interface.
In one possible design, the numerical control system generating the mapping information of the application program on the first storage device includes:
the numerical control system mounts the application program stored in the second storage device to the target path of the first storage device;
and the numerical control system generates mapping information according to the target path.
In one possible design, the numerical control system calling the application program through the mapping information comprises:
the numerical control system determines an application program to be called;
the numerical control system inquires mapping information corresponding to the application program;
the numerical control system analyzes the mapping information to obtain a target path;
and the numerical control system calls the application program from the second storage device through the target path.
In one possible design, the numerical control system judges whether the first storage device has bad block abnormality, and if yes, the preset optimization condition is determined to be reached;
the numerical control system carries out system optimization and comprises the following steps:
the numerical control system calls a bad block clearing mechanism to process the bad block exception.
In one possible design, the numerical control system judges whether the first storage device has memory allocation abnormity, and if the first storage device has memory allocation abnormity, the preset optimization condition is determined to be reached;
the numerical control system carries out system optimization and comprises the following steps:
and the numerical control system calls a memory detection flow to process the memory allocation abnormity.
In one possible design, the file system of the first storage device is a non-ordered block image file system UBIFS;
the numerical control system judges whether the abnormal power failure identification position is set or not, if the abnormal power failure identification position is set, the numerical control system carries out cyclic detection on the first storage device by calling an unstable bit cyclic query mechanism, and if the unstable bit cyclic query mechanism is detected, the preset optimization condition is determined to be reached;
the numerical control system carries out system optimization and comprises the following steps:
and the numerical control system determines an error source according to the unstable bit and calls a corresponding processing mechanism according to the error source.
In a second aspect, an embodiment of the present invention provides a numerical control system, including:
the first storage device is used for storing system files;
a second storage device for storing an application program;
a starting module for starting the system according to the system file stored on the first storage device,
the generation module is used for generating mapping information of an application program on a first storage device, the application program is stored in a second storage device, and the first storage device and the second storage device are different storage devices;
and the calling module is used for calling the application program through the mapping information generated by the generating module.
In one possible design, the numerical control system may further include:
and the optimization module is used for carrying out system optimization when the preset optimization condition is determined to be reached.
The reading module is used for reading the system file from the external equipment through the external equipment interface;
and the storage module is used for storing the system file read by the reading module to the first storage device.
In one possible design, the generating module specifically includes:
the mounting unit is used for mounting the application program stored in the second storage device to the target path of the first storage device;
and the generating unit is used for generating mapping information according to the target path mounted to the first storage equipment by the mounting unit.
In one possible design, the calling module includes:
the determining unit is used for determining the application program needing to be called;
the query unit is used for querying the mapping information corresponding to the application program determined by the determination unit;
the analysis unit is used for analyzing the mapping information inquired by the inquiry unit to obtain a target path;
and the calling unit is used for calling the application program from the second storage equipment through the target path analyzed by the analysis unit.
In one possible design, the numerical control system further includes:
the first judgment module is used for judging whether the first storage equipment has bad block abnormity, and if yes, the preset optimization condition is determined to be reached;
and the optimization module is used for calling a bad block clearing mechanism to process the bad block abnormity judged by the first judgment module.
In one possible design, the numerical control system further includes:
the second judgment module is used for judging whether the first storage equipment has memory allocation abnormity, and if the first storage equipment has memory allocation abnormity, the preset optimization condition is determined to be reached;
and the optimization module is used for calling a memory detection flow to process the memory allocation abnormity judged to exist by the second judgment module.
In one possible design, the file system of the first storage device is a non-ordered block image file system UBIFS;
the numerical control system further comprises:
the third judgment module is used for judging whether the abnormal power failure identification position is set or not, if the abnormal power failure identification position is set, the numerical control system carries out cyclic detection on the first storage device by calling an unstable bit cyclic query mechanism, and if the unstable bit is detected, the preset optimization condition is determined to be reached;
and the optimization module is used for determining an error source according to the unstable bit and calling a corresponding processing mechanism according to the error source.
In a third aspect, an embodiment of the present invention provides a computer storage medium, where a program code is stored, and the program code is used to instruct to execute the method of the first aspect.
According to the technical scheme, the invention has the following advantages:
in the invention, a numerical control system starts a system according to a system file stored on a first storage device, generates a mapping application program of the application program on the first storage device and stores the mapping application program in a second storage device, wherein the first storage device and the second storage device are different storage devices; and the numerical control system calls an application program through mapping. The application program and the system file can be respectively stored in different storage devices, and even if the reading and the writing and the erasing of the application program file are frequent, the system file and the application program are separately stored, so that the problem that the storage device cannot be normally used due to excessive junk files of the storage device in the numerical control system, wherein the system file is stored in the storage device can be effectively avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a system processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a system processing method according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a numerical control system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a numerical control system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another embodiment of a numerical control system according to an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a system processing method and a numerical control system, which are used for optimizing the system in the operation of the numerical control system and reducing the possibility of system breakdown.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the present invention is applicable to siemens sinimer ik 840D system and industrial numerical control systems such as FANUC system, and may also be applicable to other non-industrial numerical control systems, as long as the numerical control system can store the application program and system file of the system on different storage devices, and the system can be optimized during operation, so as to reduce the possibility of system crash, and the present invention is not limited herein.
In the existing scheme, a system file and an application program file of a numerical control system are stored together, the coupling is too tight, and the inherent characteristics of MTD, UBI, UBIFS, Nand Flash Memory and the like have influence, in practical application, due to frequent reading, writing and erasing of the application program file, a device bad block often occurs on a storage device in which the numerical control system operates, wherein if the file system is UBIFS in an operating system used by the numerical control system, the space dirtyspace for storing a garbage file in the UBIFS is increased, and finally, a physical address of the storage device cannot be normally used or no Memory is available, and an unstable stable bit of the UBI occurs when the numerical control system is abnormally powered off, that is, too many garbage files of the storage device in which the system file is stored in the numerical control system are easily caused, and the storage device cannot be normally used.
In the embodiment of the invention, the numerical control system starts the system according to the system file stored on the first storage device, generates the mapping application program of the application program on the first storage device and stores the mapping application program in the second storage device, wherein the first storage device and the second storage device are different storage devices, the numerical control system calls the application program through mapping, and when the numerical control system reaches the preset optimization condition, the numerical control system is optimized. Namely, the application program and the system file can be respectively stored on different storage devices in the invention.
Compared with the prior art, the method and the system have the greatest difference from the prior art in that the numerical control system can cooperatively operate the numerical control system through the plurality of storage devices, the system files and the application programs are respectively stored in different storage devices, and the problem that the storage devices cannot be normally used due to excessive junk files of the storage devices in the numerical control system, wherein the storage devices store the system files, is effectively avoided.
For convenience of understanding, the following describes an embodiment of the present invention, and with reference to fig. 1, an embodiment of a system processing method according to the present invention includes:
101. the numerical control system starts the system according to the system file stored on the first storage device;
in the embodiment of the invention, when the numerical control system triggers the system to start according to the operation of a user or other instructions, the numerical control system can start the system according to the system file stored on the first storage device.
102. The numerical control system generates mapping information of an application program on first storage equipment;
in the embodiment of the present invention, the application program is stored in the second storage device, and the first storage device and the second storage device are different storage devices.
The numerical control system can generate mapping information of the application program on the first storage device after starting the system according to the system file stored on the first storage device. It should be noted that, the numerical control system may also generate mapping information of the application program on the first storage device when the system is started according to the system file stored on the first storage device, that is, step 101 and step 102 have no sequential relationship, and are not limited herein.
103. And the numerical control system calls the application program through the mapping information.
In the embodiment of the invention, after the numerical control system starts the system according to the system file stored on the first storage device and generates the mapping information of the application program on the first storage device, the numerical control system can call the application program through the mapping information.
In the embodiment of the invention, a numerical control system starts a system according to a system file stored on a first storage device, generates a mapping application program of the application program on the first storage device and stores the mapping application program in a second storage device, wherein the first storage device and the second storage device are different storage devices; the numerical control system calls an application program through mapping; and when the numerical control system reaches the preset optimization condition, optimizing the numerical control system. The application program and the system file can be respectively stored in different storage devices, and even if the reading and the writing and the erasing of the application program file are frequent, the system file and the application program are separately stored, so that the problem that the storage device cannot be normally used due to excessive junk files of the storage device in the numerical control system, wherein the system file is stored in the storage device can be effectively avoided.
Referring to fig. 2, another embodiment of a system processing method according to the embodiment of the present invention includes:
201. the numerical control system reads a system file from external equipment through an external equipment interface;
in the embodiment of the invention, the numerical control system can read the system file from the external equipment through the external equipment interface. That is, the numerical control system may read the system file from the SD Card through a Secure Digital Memory Card (Secure Digital Memory Card) interface, and in addition, may read the system file from the external device through a serial interface, a wireless fidelity interface (wifi) interface, a serial Peripheral interface (spi), a universal serial bus interface (usb), and other interfaces, which is not limited herein.
It is understood that the system file may be firmware and an image required by the L linux system, or may also be firmware and an image required by an operating system such as a UNIX system, which is not limited herein.
202. The numerical control system stores the system file to a first storage device;
in the embodiment of the present invention, after the numerical control system reads the system file from the external device through the external device interface, the system file may be stored in the first storage device, for example, taking L INUX system as an example of the operating system of the numerical control system according to the embodiment of the present invention, the read firmware and image required for running L INUX system may be loaded in the first storage device, so that the L INUX system can run on the numerical control system.
It can be understood that the first storage device may be a storage device such as a Nor Flash Memory, a Nand Flash Memory, or an MTD device, or may also be a storage device such as an emmc (embedded Multi Media card), a charged Erasable Programmable Read-Only Memory EEPROM (Electrically Erasable Programmable Read-Only Memory), an Erasable Programmable Read-Only register eprom (Electrically Erasable Programmable Read-Only Memory), or other storage devices or storage apparatuses besides the above listed storage devices, as long as the storage device or storage module can store a system file and enable the operation of the numerical control system, and the specific details are not limited herein.
It should be noted that the first storage device may also include one or more storage devices in the above storage devices, as long as the first storage device can store system files, does not store application programs, and enables the numerical control system to operate, which is not limited herein. For convenience of understanding, the following description will be given by taking the first storage device containing the Nor Flash Memory and the Nand Flash Memory as an example:
for example, taking a platform where a numerical control system operates as an L INUX system as an example, a L INUX system File may be divided into 3 parts, a Boot program File u-Boot (Universal Boot L loader), an operating system kernel File and a root File rootfs (root File system) File, where the kernel File and the u-Boot File may be stored in a normal Flash Memory, and the rootfs File may be stored in a Nand Flash Memory, so that the numerical control system may quickly start the system.
203. The numerical control system starts the system according to the system file stored on the first storage device;
in the embodiment of the invention, the numerical control system can start the system according to the system file stored on the first storage device.
204. The numerical control system generates mapping information of an application program on first storage equipment;
in the embodiment of the present invention, the numerical control system may generate mapping information of an application program on a first storage device, where the application program is stored in a second storage device, and the second storage device is a different storage device from the first storage device.
It should be understood that the second storage device may also be a storage device such as a Nor Flash Memory, a Nand Flash Memory, or an MTD device, or may also be a storage device such as an emmc (embedded Multi Media card), a charged Erasable Programmable Read-Only Memory EEPROM (Electrically Erasable Programmable Read-Only Memory), an Erasable Programmable Read-Only register eprom (Electrically Erasable Programmable Read-Only Memory), or other storage devices or storage apparatuses, except for the above listed storage devices, as long as the storage device or storage module can store the application program and enable the application program to be run by the numerical control system, which is not limited herein.
It should be noted that the generating, by the numerical control system, the mapping information of the application program on the first storage device specifically includes:
the numerical control system mounts the application program stored in the second storage device to the target path of the first storage device;
and the numerical control system generates mapping information according to the target path.
It is understood that, besides the above-described implementation manner of generating the mapping information of the application program on the first storage device, the numerical control system may also generate the mapping information of the application program on the first storage device in other manners, and is not limited herein.
205. The numerical control system calls an application program through the mapping information;
in the embodiment of the present invention, after the numerical control system generates the mapping information of the application program on the first storage device, the application program may be called through the mapping information, which is specifically as follows:
the numerical control system determines an application program to be called;
the numerical control system inquires mapping information corresponding to the application program;
the numerical control system analyzes the mapping information to obtain a target path;
and the numerical control system calls the application program from the second storage device through the target path.
206. And when the numerical control system determines that the preset optimization condition is reached, the numerical control system performs system optimization.
In the embodiment of the invention, when the numerical control system determines that the preset optimization condition is reached, the numerical control system can carry out system optimization on the system.
The specific implementation mode is as follows:
the numerical control system judges whether the first storage equipment has bad block abnormality or not, and if yes, the preset optimization condition is determined to be reached;
the numerical control system carries out system optimization and comprises the following steps:
the numerical control system calls a bad block clearing mechanism to process the bad block exception;
and/or the first and/or second light sources,
the numerical control system judges whether the first storage equipment has memory allocation abnormity, and if the first storage equipment has memory allocation abnormity, the preset optimization condition is determined to be reached;
the numerical control system carries out system optimization and comprises the following steps:
the numerical control system calls a memory detection flow to process memory allocation abnormity;
or the like, or, alternatively,
when the file system of the first storage device is a non-ordered block image file system UBIFS;
the numerical control System judges whether the abnormal power failure identification position is set, if the abnormal power failure identification position is set, the numerical control System performs loop detection on the first storage device for 5 times by calling an unstable bit loop query mechanism, and if the unstable bit is detected, the preset optimization condition is determined to be reached, it needs to be stated that the File System of the first storage device can be a non-ordered Block Image File System UBIFS (unordered Block Image File System) or a Flash memory log type File System Version 2 JFFS2(journal Flash File System Version 2), and the File System of the first storage device can be a non-ordered Block Image File System UBIFS for illustration only, and is not limited here specifically.
The numerical control system carries out system optimization and comprises the following steps:
and the numerical control system determines an error source according to the unstable bit and calls a corresponding processing mechanism according to the error source.
In the embodiments of the present invention, the detailed description explains the implementation of the present invention, so that the scheme is more specific.
With reference to fig. 3, the system processing method in the embodiment of the present invention is described above, and a numerical control system in the embodiment of the present invention is described below, where an embodiment of the numerical control system in the embodiment of the present invention includes:
a first storage device 301 for storing system files;
a second storage device 302 for storing application programs;
a starting module 303, configured to start a system according to a system file stored on the first storage device 301;
a generating module 304, configured to generate mapping information of an application program on a first storage device 301, where the application program is stored in a second storage device 302, and the first storage device 301 and the second storage device 302 are different storage devices;
a calling module 305 for calling the application program by the mapping information generated by the generating module 304;
and the optimization module 306 is used for performing system optimization when the preset optimization condition is determined to be reached.
For convenience of understanding, the numerical control system in the embodiment of the present invention is described in detail below, and referring to fig. 4, another embodiment of the numerical control system in the embodiment of the present invention includes:
a first storage device 401 for storing system files;
a second storage device 402 for storing application programs;
a starting module 403, configured to start a system according to a system file stored on the first storage device 401;
a generating module 404, configured to generate mapping information of an application program on a first storage device 401, where the application program is stored in a second storage device 402, and the first storage device 401 and the second storage device 402 are different storage devices;
a calling module 405, configured to call an application program through the mapping information generated by the generating module 404;
and an optimizing module 406, configured to perform system optimization when it is determined that the preset optimizing condition is reached.
The numerical control system in the embodiment of the present invention may further include:
a reading module 407, configured to read a system file from an external device through an external device interface;
a storage module 408, configured to store the system file read by the reading module 407 in the first storage device 401;
the generating module 404 in this embodiment may further include:
a mounting unit 4041, configured to mount the application program stored in the second storage device 402 onto a target path of the first storage device 401;
a generating unit 4042, configured to generate mapping information according to the target path mounted to the first storage device 401 by the mounting unit 4041;
the calling module 405 may further include:
a determining unit 4051, configured to determine an application program that needs to be called;
the query unit 4052 is configured to query the mapping information corresponding to the application program determined by the determination unit 4051;
the analyzing unit 4053 is configured to analyze the mapping information queried by the querying unit 4052 to obtain a target path;
a calling unit 4054 configured to call the application program from the second storage apparatus 402 through the target path resolved by the resolving unit 4053;
the numerical control system in the embodiment of the present invention may further include:
a first determining module 409, configured to determine whether the first storage device 401 has a bad block exception, and if the first storage device 401 has the bad block exception, determine that a preset optimization condition is reached;
and the optimizing module 406 is configured to invoke a bad block clearing mechanism to process the bad block exception determined by the first determining module 409.
Optionally, in some embodiments of the present invention, the numerical control system may further include:
the second judgment module is used for judging whether the first storage equipment has memory allocation abnormity, and if the first storage equipment has memory allocation abnormity, the preset optimization condition is determined to be reached;
the optimization module is used for calling a memory detection flow to process the memory allocation abnormity judged by the second judgment module;
optionally, in some embodiments of the present invention, the numerical control system may further include:
when the file system of the first storage device is a non-ordered block image file system UBIFS;
the third judgment module is used for judging whether the abnormal power failure identification position is set or not, if the abnormal power failure identification position is set, the numerical control system carries out cyclic detection on the first storage device by calling an unstable bit cyclic query mechanism, and if the unstable bit is detected, the preset optimization condition is determined to be reached;
and the optimization module is also used for determining an error source according to the unstable bit and calling a corresponding processing mechanism according to the error source.
It should be noted that the structures and functions of the second determining module and the third determining module are respectively the same as those of the first determining module 409, and the connection relationships with other modules in the numerical control system are the same as those of the first determining module 409, and are not described herein again.
In the above, the numerical control system in the embodiment of the present invention is described from the perspective of the modular functional entity, and in the following, the numerical control system end in the embodiment of the present invention is described from the perspective of the hardware processing, referring to fig. 5, another embodiment of the numerical control system in the embodiment of the present invention includes:
a bus 501, a processor 502, a first memory 503, and a second memory 504;
the processor 502, the first memory 503, and the second memory 504 are connected by a bus;
the first memory 503 is used for storing system files;
the second memory 504 is used for storing application programs;
the processor 502 is specifically configured to: the system is started according to the system file stored on the first storage device 503, mapping information of the application program is generated on the first storage device, and the application program is called through the mapping information.
It should be noted that, the processor 502 according to the above-mentioned embodiments of the apparatus may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of the CPU and the NP, the processor may further include a hardware chip, and specifically may be an application-specific integrated circuit (ASIC), a programmable logic device (P L D), or a combination thereof, and the P L D may be a complex programmable logic device (CP L D), a field-programmable gate array (FPGA), a general array logic, GA L), or any combination thereof, which is not limited in the present invention.
In the several embodiments provided in this application, it should be understood that the disclosed system, module and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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 (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (18)

1. A system processing method, comprising:
the numerical control system starts a system according to a system file stored on a first storage device, and generates mapping information of an application program on the first storage device, wherein the application program is stored in a second storage device, the first storage device and the second storage device are different storage devices, and the second storage device does not contain the system file;
and the numerical control system calls the application program through the mapping information.
2. The system processing method of claim 1, further comprising:
and when the numerical control system determines that preset optimization conditions are met, the numerical control system performs system optimization.
3. The system processing method according to claim 1 or 2, wherein before the numerical control system starts the system according to the system file stored on the first storage device, the method further comprises:
the numerical control system reads the system file from an external device through an external device interface;
and the numerical control system stores the system file to the first storage device.
4. The system processing method according to claim 3, wherein the external device interface is an SD card interface, a serial interface, or a WIFI interface.
5. The system processing method of claim 4, wherein the numerical control system generating mapping information for the application on the first storage device comprises:
the numerical control system mounts the application program stored in the second storage device to a target path of the first storage device;
and the numerical control system generates the mapping information according to the target path.
6. The system processing method of claim 5, wherein the numerical control system invoking the application program through the mapping information comprises:
the numerical control system determines an application program to be called;
the numerical control system inquires mapping information corresponding to the application program;
the numerical control system analyzes the mapping information to obtain the target path;
and the numerical control system calls the application program from the second storage equipment through the target path.
7. The system processing method of claim 6, further comprising:
the numerical control system judges whether the first storage equipment has bad block abnormity, and if yes, the preset optimization condition is determined to be reached;
the numerical control system carries out system processing and comprises the following steps:
and the numerical control system calls a bad block clearing mechanism to process the bad block exception.
8. The system processing method of claim 6, further comprising:
the numerical control system judges whether the first storage equipment has memory allocation abnormity, and if the first storage equipment has memory allocation abnormity, the preset optimization condition is determined to be reached;
the numerical control system carries out system processing and comprises the following steps:
and the numerical control system calls a memory detection flow to process the memory allocation abnormity.
9. The system processing method according to claim 6, wherein the file system of the first storage device is a non-ordered tile image file system UBIFS;
the method further comprises the following steps:
the numerical control system judges whether an abnormal power failure identification position is set or not, if the abnormal power failure identification position is set, the numerical control system carries out cyclic detection on the first storage device by calling an unstable point unstable bit cyclic query mechanism, and if the unstable bit is detected, the preset optimization condition is determined to be reached;
the numerical control system carries out system processing and comprises the following steps:
and the numerical control system determines an error source according to the unstable bit and calls a corresponding processing mechanism according to the error source.
10. A numerical control system, comprising:
the first storage device is used for storing system files;
a second storage device for storing an application program;
the starting module is used for starting the system according to the system file stored on the first storage device;
a generating module, configured to generate mapping information of the application program on the first storage device, where the application program is stored in the second storage device, the first storage device and the second storage device are different storage devices, and the second storage device does not include the system file;
and the calling module is used for calling the application program through the mapping information generated by the generating module.
11. The numerical control system of claim 10, further comprising:
and the optimization module is used for carrying out system optimization when the preset optimization condition is determined to be reached.
12. The numerical control system according to claim 10 or 11, characterized in that it further comprises:
the reading module is used for reading the system file from the external equipment through an external equipment interface;
and the storage module is used for storing the system file read by the reading module to the first storage device.
13. The numerical control system of claim 12, wherein the generation module comprises:
a mounting unit, configured to mount the application program stored in the second storage device to a target path of the first storage device;
and the generating unit is used for generating the mapping information according to the target path mounted to the first storage device by the mounting unit.
14. The numerical control system of claim 13, wherein the calling module comprises:
the determining unit is used for determining the application program needing to be called;
the query unit is used for querying the mapping information corresponding to the application program determined by the determination unit;
the analysis unit is used for analyzing the mapping information inquired by the inquiry unit to obtain the target path;
and the calling unit is used for calling the application program from the second storage equipment through the target path analyzed by the analyzing unit.
15. The numerical control system of claim 14, further comprising:
the first judgment module is used for judging whether the first storage device has bad block abnormity, and if yes, the preset optimization condition is determined to be reached;
and the optimization module is used for calling a bad block clearing mechanism to process the bad block abnormity judged by the first judgment module.
16. The numerical control system of claim 14, further comprising:
the second judgment module is used for judging whether the first storage equipment has memory allocation abnormity, and if the first storage equipment has memory allocation abnormity, the preset optimization condition is determined to be reached;
and the optimization module is used for calling a memory detection process to process the memory allocation abnormity judged to exist by the second judgment module.
17. The numerical control system of claim 14, wherein the file system of the first storage device is a UBIFS;
the numerical control system further comprises:
the third judgment module is used for judging whether an abnormal power failure identification position is set or not, if the abnormal power failure identification position is set, the numerical control system carries out cyclic detection on the first storage device by calling an unstable bit cyclic query mechanism, and if the unstable bit is detected, the preset optimization condition is determined to be reached;
and the optimization module is used for determining an error root according to the unstable bit and calling a corresponding processing mechanism according to the error root.
18. A numerical control system, comprising:
a bus, a processor, a first memory, and a second memory;
the processor, the first memory and the second memory are connected through a bus;
the first memory is used for storing system files;
the second memory is used for storing application programs, and the second memory does not store the system files;
the processor is specifically configured to: starting a system according to a system file stored in a first memory, generating mapping information of an application program on the first memory, and calling the application program through the mapping information.
CN201580081289.7A 2015-12-31 2015-12-31 System processing method and numerical control system Active CN107850883B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/100167 WO2017113316A1 (en) 2015-12-31 2015-12-31 System processing method and numerical control system

Publications (2)

Publication Number Publication Date
CN107850883A CN107850883A (en) 2018-03-27
CN107850883B true CN107850883B (en) 2020-07-28

Family

ID=59224308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580081289.7A Active CN107850883B (en) 2015-12-31 2015-12-31 System processing method and numerical control system

Country Status (2)

Country Link
CN (1) CN107850883B (en)
WO (1) WO2017113316A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005078449A (en) * 2003-09-01 2005-03-24 Toyoda Mach Works Ltd Die machining process determination device, die machining process determination method, die machining process determination program, computer-readable recording media stored with its program, nc data machining device, and machine tool control unit
CN1744040A (en) * 2005-09-27 2006-03-08 胡元志 Method for completely running operating system in multi storage media and its operating system
CN102215268A (en) * 2011-07-14 2011-10-12 北京飞杰信息技术有限公司 Method and device for transferring file data
CN102253657A (en) * 2010-05-19 2011-11-23 沈阳高精数控技术有限公司 Implementation method for networked system structure of numerical control system
CN102521289A (en) * 2011-11-29 2012-06-27 华为技术有限公司 File synchronization method, device and system
CN102567144A (en) * 2011-12-23 2012-07-11 湖南省耐为数控技术有限公司 Automatic verification and automatic repair method of control software of numerical control system
CN102855152A (en) * 2012-09-10 2013-01-02 青岛海信传媒网络技术有限公司 Method and system for upgrading resource files in application programs
CN103034205A (en) * 2012-12-12 2013-04-10 济南大学 Open-type numerical control system facing production line
CN104346204A (en) * 2014-10-17 2015-02-11 惠州Tcl移动通信有限公司 Application software processing method and system based on mobile terminal and mobile terminal
CN104679609A (en) * 2015-02-11 2015-06-03 北京配天技术有限公司 Numerical control system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7930468B2 (en) * 2006-05-23 2011-04-19 Dataram, Inc. System for reading and writing on flash memory device having plural microprocessors

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005078449A (en) * 2003-09-01 2005-03-24 Toyoda Mach Works Ltd Die machining process determination device, die machining process determination method, die machining process determination program, computer-readable recording media stored with its program, nc data machining device, and machine tool control unit
CN1744040A (en) * 2005-09-27 2006-03-08 胡元志 Method for completely running operating system in multi storage media and its operating system
CN102253657A (en) * 2010-05-19 2011-11-23 沈阳高精数控技术有限公司 Implementation method for networked system structure of numerical control system
CN102215268A (en) * 2011-07-14 2011-10-12 北京飞杰信息技术有限公司 Method and device for transferring file data
CN102521289A (en) * 2011-11-29 2012-06-27 华为技术有限公司 File synchronization method, device and system
CN102567144A (en) * 2011-12-23 2012-07-11 湖南省耐为数控技术有限公司 Automatic verification and automatic repair method of control software of numerical control system
CN102855152A (en) * 2012-09-10 2013-01-02 青岛海信传媒网络技术有限公司 Method and system for upgrading resource files in application programs
CN103034205A (en) * 2012-12-12 2013-04-10 济南大学 Open-type numerical control system facing production line
CN104346204A (en) * 2014-10-17 2015-02-11 惠州Tcl移动通信有限公司 Application software processing method and system based on mobile terminal and mobile terminal
CN104679609A (en) * 2015-02-11 2015-06-03 北京配天技术有限公司 Numerical control system

Also Published As

Publication number Publication date
WO2017113316A1 (en) 2017-07-06
CN107850883A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
US10599536B1 (en) Preventing storage errors using problem signatures
US10147048B2 (en) Storage device lifetime monitoring system and storage device lifetime monitoring method thereof
CN109445861B (en) System starting method, device, computer device and storage medium
US9141464B2 (en) Computing device and method for processing system events of computing device
US10055377B2 (en) Using a proprietary framework on a standards-based embedded device
CN109582332B (en) System upgrading method and device for Internet camera
CN108694022B (en) System and method for identifying a solid state disk with a lowest tail delay
CN105159716A (en) Memory device initialization method and electronic equipment
US20100332914A1 (en) Dump output control apparatus and dump output control method
CN116820898B (en) Method and system for monitoring running state of eMMC and computer readable storage medium
US20220188212A1 (en) Predictive performance indicator for storage devices
CN103425932A (en) Signature calibration method and terminal device
CN104484211A (en) Method and device for sharing mirror image document
CN107850883B (en) System processing method and numerical control system
CN111190548A (en) SPDK-based ceph distributed storage performance improving method, device and equipment
CN105159714A (en) PMIC initialization method and electronic equipment
EP3504627B1 (en) Read operation redirect
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
CN109683813B (en) NVME SSD automatic formatting method, device, terminal and storage medium
CN113505026A (en) Method, device and equipment for verifying backup data and storage medium
CN111176568B (en) Data analysis method and device
CN111158733A (en) BMC upgrading method, device, equipment and computer readable storage medium
CN111258617A (en) Electronic equipment
US20180335963A1 (en) Method and system for hardware accelerated copyback
CN104573511A (en) Method and system for searching and killing Rootkit virus

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