A method and system for processing data of mobile terminal in underground coal mine

By writing business logic on the mobile terminal equipment in the coal mine and using the uniapp platform and SQLite database for data processing, the problem of high data transmission pressure on the industrial ring network was solved, and the data processing was lightweight and efficient.

CN117573631BActive Publication Date: 2024-09-24SHAANXI COAL IND XIAOBAODANG MINING CORP LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311323965.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2024-09-24
Estimated Expiration
2043-10-13

AI Technical Summary

Technical Problem

The existing industrial ring network cannot meet the demand for large amounts of data transmission in coal mines, resulting in increased data transmission pressure. A data processing solution that does not require data transmission is needed.

Method used

By writing business logic on the mobile terminal equipment in the coal mine, packaging it using the data format recognized by the uniapp platform, and storing it in the SQLite database, reducing the complexity and pressure in the data transmission process.

Benefits of technology

It realizes data processing on the terminal device, reduces the pressure and complexity of data transmission, reduces the memory occupied by data, and achieves the purpose of lightweighting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117573631B
    Figure CN117573631B
Patent Text Reader

Abstract

The present disclosure is about a method and system for processing data of a mobile terminal in an underground coal mine, including: writing the business logic in the mine operation; using a preset open source tool to package the written business logic in a preset format, wherein the preset format is a data format recognizable by the uniapp platform; parsing the packaged business logic; storing the parsed business logic in an SQLite database. This embodiment writes the business logic and packages the business logic in a data format recognizable by the uniapp platform, thereby achieving a form of packaging and compressing the carried resources and dependent files together; when processing the data in the mine operation, only simple business logic needs to be processed, and other complex business data does not need to be written, and can be directly packaged and stored, which greatly reduces the pressure of terminal processing and reduces the complexity; using the SQLite database as the storage medium makes the memory occupied by the data small, thereby achieving the purpose of lightweight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the technical field of mining data processing, and in particular to a method and system for processing data of a mobile terminal in an underground coal mine. Background Art

[0002] With the development of coal mine informatization and intelligence, a large number of systems and equipment will be transformed and upgraded to be intelligent. Therefore, a large amount of data generated is aggregated to the central computer room through the network. In addition to the monitoring system, other systems such as telephone, industrial video, positioning, emergency broadcasting, extraction, etc. are all transmitted through the industrial ring network. The amount of data is increasing, and the existing industrial ring network bandwidth cannot meet current needs.

[0003] In the prior art, the data collected by the terminal is transmitted to the server through the industrial ring network for processing, which causes the problem of increased data transmission pressure on the industrial ring network. To avoid the above problem, it is necessary to provide a solution that can complete data processing through terminal equipment without transmitting data.

[0004] Therefore, it is necessary to improve one or more problems existing in the above-mentioned related technical solutions.

[0005] It should be noted that this section is intended to provide background or context for the technical solutions of the present disclosure stated in the claims. The description herein is not admitted to be prior art by virtue of being included in this section. Summary of the invention

[0006] The purpose of the embodiments of the present disclosure is to provide a method and system for processing data of a mobile terminal in an underground coal mine, thereby overcoming one or more problems caused by the limitations and defects of the relevant technology at least to a certain extent.

[0007] The present disclosure first provides a method for processing data of a mobile terminal in an underground coal mine, comprising the following steps:

[0008] Write the business logic in mining operations;

[0009] Use the preset open source tool to package the written business logic in a preset format, where the preset format is a data format recognizable by the uniapp platform;

[0010] Parsing the packaged business logic in the preset format;

[0011] The parsed business logic is stored in a SQLite database.

[0012] In one embodiment of the present disclosure, the step of writing the business logic in the mining operation includes:

[0013] The business logic in the mining operation is programmed in an open source operating system.

[0014] In one embodiment of the present disclosure, the open source operating systems include: Microsoft Windows, macOS, Linux, Google Chrome OS, iOS, Android, Huawei Hongmeng System, KaiOS, iPad OS and FuchsiaOS.

[0015] In one embodiment of the present disclosure, the preset open source tool includes: gradle.

[0016] In an embodiment of the present disclosure, the preset format includes an aar format.

[0017] In one embodiment of the present disclosure, the step of using a preset open source tool to package the written business logic in a preset format, wherein the preset format is a data format recognizable by the uniapp platform, further includes:

[0018] Write the package.xml integration file and put it in the same directory as the aar format package file.

[0019] In one embodiment of the present disclosure, the step of parsing the packaged business logic in the preset format includes:

[0020] A mapping table for the packaged data is established, and the mapping table is used to parse the data in aar format so that the parsed data can be called by the uniapp platform.

[0021] The present disclosure also provides a coal mine underground mobile terminal data processing system, the processing system comprising:

[0022] Writing module, used to write business logic in mining operations;

[0023] A packaging module, used to use a preset open source tool to package the written business logic in a preset format, wherein the preset format is a data format recognizable by the uniapp platform;

[0024] A parsing module, used to parse the packaged business logic in the preset format;

[0025] The storage module is used to store the parsed business logic in a SQLite database.

[0026] In one embodiment of the present disclosure, the writing module includes:

[0027] The business logic writing unit is used to write the business logic in the mining operation in an open source operating system.

[0028] In one embodiment of the present disclosure, the preset open source tool includes: gradle; the preset format includes aar format.

[0029] In one embodiment of the present disclosure, the processing system further includes:

[0030] The integration file writing module is used to write the package.xml integration file and put it into the same directory as the aar format package file.

[0031] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0032] A method and system for processing data on a mobile terminal in an underground coal mine in the disclosed embodiment compiles the business logic in the mine operation and packages the business logic in a data format recognizable by the uniapp platform, thereby implementing a form of packaging and compressing the code together with resources and dependent files; when processing the data in the mine operation, only simple business logic needs to be processed, and other complex business data does not need to be written, but can be directly packaged and stored, which greatly reduces the pressure on terminal processing and reduces complexity; the SQLite database is used as the storage medium, so that the memory occupied by the data is small, thereby achieving the purpose of lightweight. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0034] Figure 1 A schematic diagram showing a flow chart of a method for processing data of a mobile terminal in an underground coal mine in an exemplary embodiment of the present disclosure;

[0035] Figure 2 A schematic diagram showing a process of programming business logic in a mining operation in an exemplary embodiment of the present disclosure;

[0036] Figure 3 A schematic diagram showing a flow chart of a method for processing data of a mobile terminal in an underground coal mine in another exemplary embodiment of the present disclosure;

[0037] Figure 4 A schematic diagram showing a module of a mobile terminal data processing system in an underground coal mine in an exemplary embodiment of the present disclosure;

[0038] Figure 5 A module schematic diagram showing a writing module in an exemplary embodiment of the present disclosure;

[0039] Figure 6 A module schematic diagram showing a data processing system for a mobile terminal in an underground coal mine in another exemplary embodiment of the present disclosure is shown;

[0040] Figure 7 A schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure is shown;

[0041] Figure 8 A schematic diagram showing the structure of a program product for implementing a method for processing data of a mobile terminal in an underground coal mine in an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0042] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0043] In addition, the accompanying drawings are only schematic illustrations of the embodiments of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.

[0044] In this example implementation, a method for processing data on a mobile terminal in an underground coal mine is first provided. The method of this embodiment can be implemented based on the uniapp platform. Uniapp is a framework that uses VUE.js to develop all front-end applications. Developers write a set of codes that can be published to IOS, Android, Web, and various applets, quick applications and other platforms.

[0045] Due to the traditional nature of the coal mining industry, the Internet content of the systems serving it is relatively low. However, uniapp can help developers in the coal mining industry to carry out their business. Uniapp is a technology that can help front-end developers quickly generate mobile applications while preventing developers from perceiving too much of the technical logic of the mobile terminal itself.

[0046] In coal mines, due to safety issues on the mine side, mobile devices are usually equipped with explosion-proof safety phones based on the Android system. Android is a free and open source operating system based on the Linux kernel, mainly suitable for mobile devices such as smartphones and tablets.

[0047] This example embodiment provides a method for processing data of a mobile terminal in a coal mine. Please refer to Figure 1 , may include: step S101-step S104. The specific steps are as follows:

[0048] Step S101, write the business logic in the mining operation. For data that does not involve business logic, there is no need to write it, and directly enter the subsequent packaging step. In mining operations, a large amount of flow data is generated every day both above and below the mine. Particularly important is the underground data, which includes both business logic data related to the business and a large amount of other data unrelated to the business. Business logic is a very important component in mining data processing, mainly including the specification of business rules, the implementation of business processes, and other functions related to business needs. When processing data, the present application only needs to write code for the business logic to form business logic coding. For non-business logic data, there is no need to write code, and there is no need to perform data parsing at the receiving end, which greatly reduces the code flow during data transmission, greatly reduces the pressure of mobile terminal processing, and reduces the complexity of data transmission.

[0049] Step S102, use the preset open source tool to package the written business logic according to the preset format, wherein the preset format is a data format recognizable by the uniapp platform. Wherein, the preset open source tool includes: gradle. Gradle is an open source tool for project automation construction based on the concepts of Apache Ant and Apache Maven. It uses a domain-specific language (DSL) based on Groovy to declare project settings, adds a kotlin-based DSL based on the Kotlin language, and abandons various cumbersome configurations based on XML. The gradle file is a build script, which uses gradle as an open source tool to package the written business logic. Android mainly executes it to package. The script refers to an executable file written in a certain format to replace manual operation of the computer. Gradle is more suitable for the Android system, with less code and clear configuration.

[0050] Step S103, parse the packaged business logic in the preset format. Wherein, the preset format includes the aar format. The aar (Android Archive) package is a binary archive file of an Android library project, which is particularly suitable for the Android system. Specifically, a mapping table for the packaged data is established, and the mapping table is used to parse the data in the aar format so that the parsed data can be called by the uniapp platform. Since the Android language is used for native mobile terminal development, it cannot be integrated with uniapp to achieve business goals. However, after the business logic is written using Android, this application uses gradle for packaging, and the packaged files can be used for uniapp integration.

[0051] Step S104, stores the parsed business logic in a SQLite database. SQLite is a lightweight database and a relational database management system that complies with ACID. It is contained in a relatively small C library. It is a public domain project established by D. Richard Hipp. Its design goal is embedded, and it has been used in many embedded products. It occupies very low resources. In embedded devices, only a few hundred KB of memory may be enough. It can support mainstream operating systems such as Windows / Linux / Unix, and can be combined with many programming languages, such as Tcl, C#, PHP, Java, etc., and also has an ODBC interface. Similarly, compared with Mysql and PostgreSQL, two open source database management systems, SQLite has a faster processing speed. Using the SQLite database as a storage medium and utilizing the data compression algorithm of SQLite itself, the data occupies less memory and achieves the lightweight requirement.

[0052] It can be understood that in this embodiment, SQLite is used to store data suitable for the uniapp platform, so that mining operation data can be processed in the uniapp platform and Android, with a small amount of data, reducing the pressure on the gateway during data transmission and lowering the requirements for hardware.

[0053] In this embodiment, by writing the business logic in the mining operation and packaging the business logic in a data format recognizable by the uniapp platform, the code is packaged in a form of compression with resources and dependent files; when processing the data in the mining operation, only simple business logic needs to be processed, and other complex business data does not need to be written, but can be directly packaged and stored, which greatly reduces the pressure on terminal processing and reduces complexity; the SQLite database is used as the storage medium, so that the memory occupied by the data is small, thereby achieving the purpose of lightweight.

[0054] Optionally, in some embodiments, please refer to Figure 2 , the step S101 may specifically include step S201:

[0055] Step S201, write the business logic in the mining operation in an open source operating system. The open source operating systems include: Microsoft Windows, macOS, Linux, Google Chrome OS, iOS, Android, Huawei Hongmeng System, KaiOS, iPad OS and Fuchsia OS. The method of this application can be applied to the above multiple operating systems, not just Android. This application mainly uses Android as an example to illustrate the mining platform data processing process.

[0056] In this embodiment, the above multiple operating systems can be used to process the mine data, all of which can achieve the purpose of lightweight.

[0057] Based on the above examples, please refer to Figure 3 , the step S102 may further include a step S301:

[0058] Step S301, write the package.xml integration file and put it into the same directory as the aar format package file.

[0059] Specifically, step S301 includes:

[0060] Introducing dependencies;

[0061] Open resource files (assets, images, fonts, etc.);

[0062] Create a manifest file;

[0063] Create an AAR package file;

[0064] Put the AAR package file in the same directory as the Manifest file;

[0065] Put the Manifest file in the same directory as the AAR package file;

[0066] Create a Manifest.mf file to set the initial value of the resource;

[0067] Put the AAR package file in the same directory as the Manifest.mf file;

[0068] Create an assets folder to store resource files;

[0069] Add the corresponding code content in the Manifest.mf file;

[0070] Put the AAR package file in the same directory as the Manifest.mf file;

[0071] Put the Manifest.mf file in the same directory as the AAR package file;

[0072] Create a Manifest.txt file to set the initial value of the resource;

[0073] Put the AAR package file in the same directory as the Manifest.txt file;

[0074] Create an assets folder to store resource files;

[0075] Add the corresponding code content in the Manifest.txt file;

[0076] Put the AAR package file in the same directory as the Manifest.txt file;

[0077] Put the Manifest.txt file in the same directory as the AAR package file;

[0078] Create a Manifest.xml file to set the initial value of the resource;

[0079] Put the AAR package file in the same directory as the Manifest.xml file;

[0080] Create an assets folder to store resource files;

[0081] Add the corresponding code content in the Manifest.xml file:

[0082] Put the AAR package file in the same directory as the Manifest.xml file;

[0083] Put the Manifest.xml file in the same directory as the AAR package file;

[0084] Create a Manifest.aar file to convert the AAR package file to an AAR package file;

[0085] Put the AAR package file in the same directory as the Manifest.xml file;

[0086] Use AAR package compilation tools (such as Maven, Gradle, etc.) to build and package the application.

[0087] The package.xml integrated file written in the above step S301 is equivalent to writing a corresponding table about the aar file, and putting it in the same directory as the aar format package file. When the corresponding aar format package file needs to be queried or extracted, it can be queried through the package.xml integrated file, which reduces the query time.

[0088] In this embodiment, a specific example is given below to specifically illustrate the above method.

[0089] (1) Build the app

[0090] First, the front-end developers complete the basic front-end page development based on uniapp, and complete all presentation layer businesses that do not involve logical processing. Presentation layer businesses may include, for example: specifying business rules, implementing business processes, pushing business information, and assigning work to managers and technicians. After the presentation layer business is completed, the prototype of the mobile app can be built, and the back-end service needs to intervene. Each staff member can log in to the app to find content related to their work, which is convenient for viewing and processing work content to avoid delays in work. For example, when an alarm event occurs, the app can be used to receive alarm information and handle the alarm event in a timely manner to ensure mine safety.

[0091] (2) Writing plugins

[0092] The Android language is used for native mobile development and cannot be integrated with uniapp to achieve business goals. However, after using Android to complete the business logic writing, this application uses gradle for packaging. The target format of packaging is the aar format acceptable to uniapp. Other formats acceptable to uniapp platforms can also be used. It is subject to what can be achieved in the prior art and will not be repeated here.

[0093] After packaging is completed, it is handed over to the front-end developer to manually write the package.xml integration file and put it in the same directory as the aar package. This operation is to "disguise" the natively developed back-end business logic as a plug-in acceptable to uniapp, so that this part of the code can be identified as its own module when uniapp is packaged, thereby achieving the purpose of realizing the complex business logic of the mine. In the actual plug-in writing process, according to the business needs of the mine operation, the specific business logic can be configured and written to generate a plug-in that meets the actual needs of the mine, making data processing more efficient.

[0094] (3) Link to DB (Database)

[0095] After the upper-level business is completed, the last problem to be faced is data storage. Traditional databases such as MySQL are for servers and cannot be applied to mobile terminals. At the same time, the mobile terminal's own cache cannot meet complex business scenarios and occupies more resources. For extreme scenarios such as mines, this application uses SQLite, which is very friendly to lightweight embedded systems, as a storage medium. Using the SQLite database as a storage medium and utilizing SQLite's own data compression algorithm, the data occupies less memory and meets the lightweight requirements.

[0096] After data enters the storage medium SQLite, it is not only used for processing on the mobile side. After entering the storage, the concept of version number is added. At the same time, the server also saves its own version number. When the network in the user's environment is unobstructed, choose to synchronize. At this time, the version number is compared and the data is synchronized in both directions. The business is simplified again in the data compression of SQLite itself. The user side only saves its necessary data, which reduces the data pressure on the user side by more than 80%.

[0097] In this example implementation, a coal mine underground mobile terminal data processing system is provided. Please refer to Figure 4 , the processing system includes: a writing module 101, a packaging module 102, a parsing module 103 and a storage module 104. Specifically, the writing module 101 is used to write the business logic in the mining operation; the packaging module 102 is used to use the preset open source tool to package the written business logic in a preset format, wherein the preset format is a data format recognizable by the uniapp platform, and the preset open source tool includes: gradle; the parsing module 103 is used to parse the packaged business logic in the preset format, and the preset format includes the aar format; the storage module 104 is used to store the parsed business logic in the SQLite database.

[0098] In this embodiment, by writing the business logic in the mining operation and packaging the business logic in a data format recognizable by the uniapp platform, the code is packaged in a form of compression with resources and dependent files; when processing the data in the mining operation, only simple business logic needs to be processed, and other complex business data does not need to be written, but can be directly packaged and stored, which greatly reduces the pressure on terminal processing and reduces complexity; the SQLite database is used as the storage medium, so that the memory occupied by the data is small, thereby achieving the purpose of lightweight.

[0099] In one embodiment, please refer to Figure 5The writing module 101 may include a business logic writing unit 201, and the business logic writing unit 201 is used to write the business logic in the mining operation in an open source operating system. Further, the open source operating system includes: Microsoft Windows, macOS, Linux, Google Chrome OS, iOS, Android, Huawei Hongmeng System, KaiOS, iPad OS and Fuchsia OS.

[0100] Based on the above embodiments, it can be understood that please refer to Figure 6 The processing system may further include: an integrated file writing module 301, used to write a package.xml integrated file and put it into the same directory as the aar format package file.

[0101] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0102] It should be noted that although several modules of the system for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be concretized in one module. Conversely, the features and functions of a module described above can be further divided into multiple modules for concretization. The components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the invention. Those of ordinary skill in the art can understand and implement it without paying creative work.

[0103] See also Figure 7 The embodiment of the present invention further provides an electronic device 300, which includes at least one memory 310, at least one processor 320, and a bus 330 for connecting different platform systems.

[0104] The memory 310 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 211 and / or a cache memory 312 , and may further include a read-only memory (ROM) 313 .

[0105] Among them, the memory 310 also stores a computer program, which can be executed by the processor 320, so that the processor 320 executes the steps of the coal mine underground mobile terminal data processing method in any embodiment of the present invention. Its specific implementation method is consistent with the implementation method and the technical effect achieved recorded in the above-mentioned coal mine underground mobile terminal data processing method embodiment, and some contents will not be repeated.

[0106] The memory 310 may also include a utility 314 having at least one program module 315, such program module 315 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0107] Accordingly, the processor 320 may execute the above-mentioned computer program and may execute the utility 314 .

[0108] Bus 330 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures.

[0109] The electronic device 300 may also communicate with one or more external devices 340 such as keyboards, pointing devices, Bluetooth devices, etc., and may also communicate with one or more devices that can interact with the electronic device 300, and / or communicate with any device (such as a router, a modem, etc.) that enables the electronic device 300 to communicate with one or more other computing devices. Such communication may be performed through an input / output interface 350. In addition, the electronic device 300 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 360. The network adapter 360 may communicate with other modules of the electronic device 300 through a bus 330. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 300, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

[0110] An embodiment of the present invention also provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed, the steps of the coal mine underground mobile terminal data processing method in the embodiment of the present invention are implemented. The specific implementation method is consistent with the implementation method and the technical effect achieved recorded in the above-mentioned embodiment of the coal mine underground mobile terminal data processing method, and some contents will not be repeated here.

[0111] Figure 8The program product 400 provided in this embodiment for implementing the above-mentioned coal mine underground mobile terminal data processing method is shown, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product 400 of the present invention is not limited to this. In the present invention, the readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. The program product 400 can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can 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 readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable 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.

[0112] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or for use in combination with it. The program code contained on the readable storage medium may be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. The program code for performing the operation of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and also conventional procedural programming languages ​​such as C language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device, partially on a remote computing device, or entirely on a remote computing device or server. Where a remote computing device is involved, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0113] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A method for processing data of a mobile terminal in an underground coal mine, characterized in that: The following steps are involved: Write the business logic in mining operations; Use the preset open source tool to package the written business logic in a preset format, where the preset format is a data format recognizable by the uniapp platform; The preset open source tool includes: gradle; the preset format includes aar format; The step of using a preset open source tool to package the written business logic in a preset format, wherein the preset format is a data format recognizable by the uniapp platform, further includes: Write the package.xml integration file and put it in the same directory as the aar format package file; Specifically include: Introducing dependencies; Open the resource file; Create a manifest file; Create an AAR package file; Put the manifest file in the same directory as the AAR package file; Create a Manifest.mf file to set the initial value of the resource; Create an assets folder to store resource files; Add the corresponding code content in the Manifest.mf file; Put the Manifest.mf file in the same directory as the AAR package file; Create a Manifest.txt file to set the initial value of the resource; Add the corresponding code content in the Manifest.txt file; Put the Manifest.txt file in the same directory as the AAR package file; Create a Manifest.xml file to set the initial value of the resource; Add the corresponding code content in the Manifest.xml file: Put the Manifest.xml file in the same directory as the AAR package file; Use the AAR package's compilation tools to build and package the application; Parsing the packaged business logic in the preset format; The parsed business logic is stored in a SQLite database.

2. The method for processing data of a mobile terminal in an underground coal mine according to claim 1, characterized in that: The steps of writing the business logic in the mine operation include: The business logic in the mining operation is programmed in an open source operating system.

3. The method for processing data of a mobile terminal in an underground coal mine according to claim 2, characterized in that: The open source operating systems include: Microsoft Windows, macOS, Linux, Google Chrome OS, iOS, Android, Huawei Hongmeng System, KaiOS, iPad OS and Fuchsia OS.

4. The method for processing data of a mobile terminal in an underground coal mine according to claim 1, characterized in that: The step of parsing the packaged business logic in the preset format includes: A mapping table for the packaged data is established, and the mapping table is used to parse the data in aar format so that the parsed data can be called by the uniapp platform.

5. A coal mine underground mobile terminal data processing system, characterized in that: include: Writing module, used to write business logic in mining operations; A packaging module, used to use a preset open source tool to package the written business logic in a preset format, wherein the preset format is a data format recognizable by the uniapp platform; The preset open source tool includes: gradle; the preset format includes aar format; An integration file writing module is used to write the package.xml integration file and put it into the same directory as the aar format package file; Specifically include: Introducing dependencies; Open the resource file; Create a manifest file; Create an AAR package file; Put the manifest file in the same directory as the AAR package file; Create a Manifest.mf file to set the initial value of the resource; Create an assets folder to store resource files; Add the corresponding code content in the Manifest.mf file; Put the Manifest.mf file in the same directory as the AAR package file; Create a Manifest.txt file to set the initial value of the resource; Add the corresponding code content in the Manifest.txt file; Put the Manifest.txt file in the same directory as the AAR package file; Create a Manifest.xml file to set the initial value of the resource; Add the corresponding code content in the Manifest.xml file: Put the Manifest.xml file in the same directory as the AAR package file; Use the AAR package's compilation tools to build and package the application; A parsing module, used to parse the packaged business logic in the preset format; The storage module is used to store the parsed business logic in a SQLite database.

6. The coal mine underground mobile terminal data processing system according to claim 5, characterized in that: The writing module includes: The business logic writing unit is used to write the business logic in the mining operation in an open source operating system.