Material information query method, system and readable storage medium

By adding ID reading functions and monitoring services to the device driver, it is possible to view material information without disassembly, which solves the material compatibility problem, reduces production line costs and maintenance difficulties, and improves production efficiency.

CN118860803BActive Publication Date: 2024-12-13SHENZHEN JOYAR SMART MFG TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411340261.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-13
Estimated Expiration
2044-09-25

AI Technical Summary

Technical Problem

During the production process of tablet computers, excessive material compatibility leads to mismatch, production line is shut down and rework, and checking material information requires disassembly, which can easily lead to screen damage and increase costs.

Method used

By adding ID reading functions to the device driver, distinguishing between different suppliers, creating material equipment nodes, monitoring the tablet to read material information and store it when it is powered on, and outputting material information after shutdown, so as to view material information without disassembly.

Benefits of technology

It reduces the risk of using wrong materials on the production line, reduces production costs, optimizes the maintenance process, improves efficiency, and facilitates subsequent maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860803B_ABST
    Figure CN118860803B_ABST
Patent Text Reader

Abstract

The present invention discloses a material information query method, system and readable storage medium, wherein the method includes: creating a new device driver to create a material device node; adding an ID reading function in the device driver to distinguish different suppliers, the newly created device driver at least includes a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver and a battery driver; based on the different suppliers identified, the material codes of different suppliers are written into the material device node; after monitoring the tablet startup, the material information in the material device node is read and stored in the target partition, and after monitoring the tablet shutdown, the reading process of the preset flashing tool is responded to to output the material information. The present invention can view the material information without disassembling the machine, which greatly reduces the risk of using the wrong material in the production line, reduces the production cost of the production line, and facilitates after-sales maintenance, knows the tablet configuration information faster, optimizes the maintenance process, and improves efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing and intelligent manufacturing, and more specifically, to a material information query method, system and readable storage medium. Background Art

[0002] In the management and optimization of the tablet computer factory's production process, material management is a crucial link, which directly affects production efficiency and cost control.

[0003] When the tablet computer project reached the mass production stage, in order to prevent insufficient supply and material price fluctuations, a certain material of the tablet computer would be imported from many suppliers. Excessive material compatibility led to the following disadvantages:

[0004] (1) Mixing of materials leads to configuration mismatch, and the production line needs to be stopped for rework.

[0005] (2) To check key materials, you need to disassemble the machine, which is inconvenient. Many machines are glued together, and disassembling the machine will easily cause the screen to be damaged and scrapped, increasing costs. Summary of the invention

[0006] The purpose of the present invention is to provide a material information query method, system and readable storage medium, which can view material information without disassembling the machine, greatly reducing the risk of using wrong materials in the production line, reducing the production cost of the production line, and facilitating after-sales maintenance, so as to know the tablet configuration information more quickly, optimize the maintenance process and improve efficiency.

[0007] The first aspect of the present invention provides a material information query method, comprising the following steps:

[0008] Create a new device driver to create a material device node;

[0009] Adding an ID reading function in the device driver to distinguish different suppliers, wherein the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver, and a battery driver;

[0010] Based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly;

[0011] When applied, after monitoring the tablet being turned on, the material information in the material device node is read and stored in the target partition, and after monitoring the tablet being turned off, the reading process of the preset flashing tool is responded to to output the material information.

[0012] In this solution, the new device driver is used to create a material device node, specifically including:

[0013] Create a new device driver about device attributes to realize the creation of node information of material equipment;

[0014] Define corresponding arrays based on different materials to store device attributes of the current material, wherein the material at least includes a processor, a memory driver, a touch panel, a display, a camera, and a battery;

[0015] The node information corresponding to different materials is different, and is specifically distinguished based on the type of the equipment attribute.

[0016] In this solution, the ID reading function is added to the device driver to distinguish different suppliers, specifically including: when a new device driver is created, the ID reading function is added synchronously, wherein the ID reading function is used to read different levels of the ID pin when monitoring the tablet power on to distinguish the different suppliers.

[0017] In this solution, based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly, specifically including:

[0018] Identifying the different suppliers through the ID reading function;

[0019] The device attributes of the current supplier are written into different arrays in the material device node;

[0020] Extract the data written by the current supplier in the array to get the corresponding material code.

[0021] In this solution, when applied, after monitoring the tablet startup, the material information in the material device node is read and stored in the target partition, specifically including:

[0022] The monitoring service created based on the system installed on the tablet monitors the tablet startup;

[0023] Read the material code of the material equipment node to obtain the material information;

[0024] Based on the material information being stored in the target partition, the target partition includes a device information partition.

[0025] In this solution, when applied, after monitoring that the tablet is turned off, responding to the reading process of the preset flashing tool to output the material information specifically includes:

[0026] The monitoring service created based on the system installed on the tablet monitors that the tablet is shut down;

[0027] When the user reads the tablet based on the flashing tool, the material information is output to the user in response to the reading process of the flashing tool, wherein the material information specifically includes dynamically updated data.

[0028] The second aspect of the present invention further provides a material information query system, comprising a memory and a processor, wherein the memory comprises a material information query method program, and when the material information query method program is executed by the processor, the following steps are implemented:

[0029] Create a new device driver to create a material device node;

[0030] Adding an ID reading function in the device driver to distinguish different suppliers, wherein the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver, and a battery driver;

[0031] Based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly;

[0032] When applied, after monitoring the tablet being turned on, the material information in the material device node is read and stored in the target partition, and after monitoring the tablet being turned off, the reading process of the preset flashing tool is responded to to output the material information.

[0033] In this solution, the new device driver is used to create a material device node, specifically including:

[0034] Create a new device driver about device attributes to realize the creation of node information of material equipment;

[0035] Define corresponding arrays based on different materials to store device attributes of the current material, wherein the material at least includes a processor, a memory driver, a touch panel, a display, a camera, and a battery;

[0036] The node information corresponding to different materials is different, and is specifically distinguished based on the type of the equipment attribute.

[0037] In this solution, the ID reading function is added to the device driver to distinguish different suppliers, specifically including: when a new device driver is created, the ID reading function is added synchronously, wherein the ID reading function is used to read different levels of the ID pin when monitoring the tablet power on to distinguish the different suppliers.

[0038] In this solution, based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly, specifically including:

[0039] Identifying the different suppliers through the ID reading function;

[0040] The device attributes of the current supplier are written into different arrays in the material device node;

[0041] Extract the data written by the current supplier in the array to get the corresponding material code.

[0042] In this solution, when applied, after monitoring the tablet startup, the material information in the material device node is read and stored in the target partition, specifically including:

[0043] The monitoring service created based on the system installed on the tablet monitors the tablet startup;

[0044] Read the material code of the material equipment node to obtain the material information;

[0045] Based on the material information being stored in the target partition, the target partition includes a device information partition.

[0046] In this solution, when applied, after monitoring that the tablet is turned off, responding to the reading process of the preset flashing tool to output the material information specifically includes:

[0047] The monitoring service created based on the system installed on the tablet monitors that the tablet is shut down;

[0048] When the user reads the tablet based on the flashing tool, the material information is output to the user in response to the reading process of the flashing tool, wherein the material information specifically includes dynamically updated data.

[0049] The third aspect of the present invention provides a computer-readable storage medium, which includes a material information query method program of a machine. When the material information query method program is executed by a processor, the steps of a material information query method as described in any one of the above items are implemented.

[0050] The present invention discloses a material information query method, system and readable storage medium, which can view material information without disassembling the machine, greatly reducing the risk of using wrong materials on the production line, reducing the production cost of the production line, and facilitating after-sales maintenance, so as to know the tablet configuration information more quickly, optimize the maintenance process and improve efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A flow chart of a material information query method of the present invention is shown;

[0052] Figure 2 A schematic diagram of material information results obtained by querying a material information query method of the present invention is shown;

[0053] Figure 3 A block diagram of a material information query system of the present invention is shown. DETAILED DESCRIPTION

[0054] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0055] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0056] The present invention is directed to an Android system specifically equipped on a tablet. The Android underlying device driver equipped on the tablet realizes reading material IDs of different suppliers and creates material device nodes to store material codes of different suppliers. An upper-layer service reads the content of the material device node and writes the material code into a partition of the Android system specifically storing material information, which corresponds to a device information partition. The production line only needs to be turned on once, and then the partition is read with a burning tool when it is turned off, so that the model, size, supplier and other information of the CPU, Memory, TP, LCD, camera, battery and the like of the current machine can be checked.

[0057] Specifically, Figure 1 A flow chart of a material information query method of the present application is shown.

[0058] like Figure 1 As shown, the present application discloses a material information query method, comprising the following steps:

[0059] S102, creating a new device driver to create a material device node;

[0060] S104, adding an ID reading function in the device driver to distinguish different suppliers, wherein the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver, and a battery driver;

[0061] S106, based on the identified different suppliers, writing the material codes of different suppliers into the material equipment nodes;

[0062] S108, when applied, after monitoring that the tablet is turned on, the material information in the material device node is read and stored in the target partition, and after monitoring that the tablet is turned off, the reading process of the preset flashing tool is responded to to output the material information.

[0063] It should be noted that, in this embodiment, the present invention is directed to a tablet that is specifically equipped with an Android system. Therefore, when applied, the material information can be stored after the tablet is turned on, so that after the tablet is turned off, the stored material information can be extracted by the upper-layer service of the Android system. Specifically, in order to store the material information, a new device driver needs to be created to create a material device node. The new device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver, and a battery driver, so that an ID reading function can be added to the device driver to distinguish different suppliers, and then based on the identified different suppliers, the material codes of different suppliers can be written into the material device node accordingly, wherein the material information can be obtained after the material code combination is analyzed. Specifically, when applied, after monitoring the tablet being turned on, the material information in the material device node is read and stored in the target partition, and after monitoring the tablet being turned off, the material information is output in response to the reading process of the preset flashing tool.

[0064] According to an embodiment of the present invention, the newly-created device driver is used to create a material device node, specifically including:

[0065] Create a new device driver about device attributes to realize the creation of node information of material equipment;

[0066] Define corresponding arrays based on different materials to store device attributes of the current material, wherein the material at least includes a processor, a memory driver, a touch panel, a display, a camera, and a battery;

[0067] The node information corresponding to different materials is different, and is specifically distinguished based on the type of the equipment attribute.

[0068] It should be noted that, in this embodiment, a new device driver for device attributes (device_info) is created to implement node information creation of material equipment, wherein the specific code is as follows:

[0069] "typedef struct {

[0070] char tctid

[24] ;

[0071] char supplier

[16] ;

[0072] char model

[24] ;

[0073] char param

[16] ;

[0074] } DEV_INFO_ITEM;

[0075] DEV_INFO_ITEM dev_CamNameB;

[0076] DEV_INFO_ITEM dev_CamNameF;

[0077] DEV_INFO_ITEM dev_LCM;

[0078] DEV_INFO_ITEM dev_ctp;

[0079] DEV_INFO_ITEM dev_CPU;

[0080] DEV_INFO_ITEM dev_battery_info; ”;

[0081] It can be seen that the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver and a battery driver. Correspondingly, the material includes at least a processor, a memory driver, a touch panel, a display, a camera and a battery. Corresponding arrays are defined based on different materials to store the device attributes of the current material. Therefore, the node information corresponding to different materials is different, which is specifically distinguished based on the type of the device attributes.

[0082] Furthermore, taking the battery device as an example, the array stored in the node information includes serial number, channel and type, etc. The specific code is as follows:

[0083] "char *battery_tctid[] = {"NA","135403005033", "135403005036", "135403005039"};

[0084] char *battery_supplier[] = {"NA", "GY", "TM", "GF"};

[0085] char *battery_model[] = {"NA", "2853B7PL-2P", "TLp058CA:TM", "TLp058C8:GF"};

[0086] char *battery_param[] = {"NA","6000mAh"};".

[0087] According to an embodiment of the present invention, adding an ID reading function in the device driver to distinguish different suppliers specifically includes: when creating a new device driver, synchronously adding the ID reading function, wherein the ID reading function is used to read different levels of the ID pin when monitoring the tablet power on to distinguish the different suppliers.

[0088] It should be noted that, in this embodiment, the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver and a battery driver. Therefore, a function for reading ID (corresponding to the ID reading function) is added to the CPU driver (processor driver), the Memory driver (memory driver), the TP driver (touch panel driver), the LCD driver (display driver), the camera driver and the battery driver, which is used to read the different levels of the ID pin when the tablet is turned on to distinguish different suppliers.

[0089] According to an embodiment of the present invention, writing material codes of different suppliers into the material equipment nodes based on the identified different suppliers specifically includes:

[0090] Identifying the different suppliers through the ID reading function;

[0091] The device attributes of the current supplier are written into different arrays in the material device node;

[0092] Extract the data written by the current supplier in the array to get the corresponding material code.

[0093] It should be noted that, in this embodiment, the different suppliers are first identified through the ID reading function, and then the device attributes of the current supplier are written into different arrays in the material device node, and finally the written data of the current supplier in the array is extracted to obtain the corresponding material code.

[0094] Specifically, taking battery materials as an example, the specific codes are as follows:

[0095] "extern int g_battery_id;

[0096] static ssize_t battery_info_show(struct device *dev, struct device_attribute *attr, char *buf)

[0097] {

[0098] if(g_battery_id == 1)

[0099] {

[0100] memcpy(dev_battery_info.tctid,battery_tctid[1],sizeof(dev_battery_info.tctid));

[0101] memcpy(dev_battery_info.supplier,battery_supplier[1],sizeof(dev_battery_info.supplier));

[0102] memcpy(dev_battery_info.model,battery_model[1],sizeof(dev_battery_info.model));

[0103] memcpy(dev_battery_info.param,battery_param[1],sizeof(dev_battery_info.param));

[0104] / / return scnprintf(buf, PAGE_SIZE, "2853B7PL-2P:GY:6000mAh:135403005033\n"); / / 1th

[0105] }

[0106] else if(g_battery_id == 0)"

[0107] According to an embodiment of the present invention, when applied, after monitoring the tablet startup, the material information in the material device node is read and stored in the target partition, specifically including:

[0108] The monitoring service created based on the system installed on the tablet monitors the tablet startup;

[0109] Read the material code of the material equipment node to obtain the material information;

[0110] Based on the material information being stored in the target partition, the target partition includes a device information partition.

[0111] It should be noted that in this embodiment, the target partition includes a device information partition (DEV_INFO). Since the system installed on the tablet is Android, the monitoring service created based on the system installed on the tablet monitors the tablet startup and reads the material code of the material device node to obtain the material information, thereby storing the material information in the target partition. The specific code is as follows:

[0112] “param = optimizeData(param,16);

[0113] if (dataType.equals("battery_info")){

[0114] / / 24 / 16 / 24 / 16 (1-80)+(1-1)*80

[0115] NvramUtil.setFlagToNvram(tctid,0, 80*40,true);

[0116] NvramUtil.setFlagToNvram(tctid,0, 24,false);

[0117] NvramUtil.setFlagToNvram(supplier,24, 16,false);

[0118] NvramUtil.setFlagToNvram(model,40, 24,false);

[0119] NvramUtil.setFlagToNvram(param,64, 16,false);”

[0120] According to an embodiment of the present invention, when applied, after monitoring that the tablet is turned off, responding to the reading process of the preset flashing tool to output the material information specifically includes:

[0121] The monitoring service created based on the system installed on the tablet monitors that the tablet is shut down;

[0122] When the user reads the tablet based on the flashing tool, the material information is output to the user in response to the reading process of the flashing tool, wherein the material information specifically includes dynamically updated data.

[0123] It should be noted that in this embodiment, after the user turns off the tablet, the flashing tool (burning tool) will be used to read the corresponding device information partition (DEV_INFO) to query the material information, such as Figure 2As shown, the queried material information is displayed. Specifically, after the monitoring service created by the system mounted on the tablet monitors that the tablet is turned off, it responds to the user's reading process of the tablet based on the flashing tool, thereby outputting the material information to the user. Because the material information is automatically identified when the computer is turned on, it can be viewed in real time even after the material is changed in the middle, which means that the material information specifically includes dynamically updated data, and the data can be updated while the material is changed.

[0124] Figure 3 A block diagram of a material information query system of the present invention is shown.

[0125] like Figure 3 As shown, the present invention discloses a material information query system, including a memory and a processor, wherein the memory includes a material information query method program, and when the material information query method program is executed by the processor, the following steps are implemented:

[0126] Create a new device driver to create a material device node;

[0127] Adding an ID reading function in the device driver to distinguish different suppliers, wherein the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver, and a battery driver;

[0128] Based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly;

[0129] When applied, after monitoring the tablet being turned on, the material information in the material device node is read and stored in the target partition, and after monitoring the tablet being turned off, the reading process of the preset flashing tool is responded to to output the material information.

[0130] It should be noted that, in this embodiment, the present invention is directed to a tablet that is specifically equipped with an Android system. Therefore, when applied, the material information can be stored after the tablet is turned on, so that after the tablet is turned off, the stored material information can be extracted by the upper-layer service of the Android system. Specifically, in order to store the material information, a new device driver needs to be created to create a material device node. The new device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver, and a battery driver, so that an ID reading function can be added to the device driver to distinguish different suppliers, and then based on the identified different suppliers, the material codes of different suppliers can be written into the material device node accordingly, wherein the material information can be obtained after the material code combination is analyzed. Specifically, when applied, after monitoring the tablet being turned on, the material information in the material device node is read and stored in the target partition, and after monitoring the tablet being turned off, the material information is output in response to the reading process of the preset flashing tool.

[0131] According to an embodiment of the present invention, the newly-created device driver is used to create a material device node, specifically including:

[0132] Create a new device driver about device attributes to realize the creation of node information of material equipment;

[0133] Define corresponding arrays based on different materials to store device attributes of the current material, wherein the material at least includes a processor, a memory driver, a touch panel, a display, a camera, and a battery;

[0134] The node information corresponding to different materials is different, and is specifically distinguished based on the type of the equipment attribute.

[0135] It should be noted that, in this embodiment, a new device driver for device attributes (device_info) is created to implement node information creation of material equipment, wherein the specific code is as follows:

[0136] "typedef struct {

[0137] char tctid

[24] ;

[0138] char supplier

[16] ;

[0139] char model

[24] ;

[0140] char param

[16] ;

[0141] } DEV_INFO_ITEM;

[0142] DEV_INFO_ITEM dev_CamNameB;

[0143] DEV_INFO_ITEM dev_CamNameF;

[0144] DEV_INFO_ITEM dev_LCM;

[0145] DEV_INFO_ITEM dev_ctp;

[0146] DEV_INFO_ITEM dev_CPU;

[0147] DEV_INFO_ITEM dev_battery_info; ”;

[0148] It can be seen that the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver and a battery driver. Correspondingly, the material includes at least a processor, a memory driver, a touch panel, a display, a camera and a battery. Corresponding arrays are defined based on different materials to store the device attributes of the current material. Therefore, the node information corresponding to different materials is different, which is specifically distinguished based on the type of the device attributes.

[0149] Furthermore, taking the battery device as an example, the array stored in the node information includes serial number, channel and type, etc. The specific code is as follows:

[0150] "char *battery_tctid[] = {"NA","135403005033", "135403005036", "135403005039"};

[0151] char *battery_supplier[] = {"NA", "GY", "TM", "GF"};

[0152] char *battery_model[] = {"NA", "2853B7PL-2P", "TLp058CA:TM", "TLp058C8:GF"};

[0153] char *battery_param[] = {"NA","6000mAh"};".

[0154] According to an embodiment of the present invention, adding an ID reading function in the device driver to distinguish different suppliers specifically includes: when creating a new device driver, synchronously adding the ID reading function, wherein the ID reading function is used to read different levels of the ID pin when monitoring the tablet power on to distinguish the different suppliers.

[0155] It should be noted that, in this embodiment, the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver and a battery driver. Therefore, a function for reading ID (corresponding to the ID reading function) is added to the CPU driver (processor driver), the Memory driver (memory driver), the TP driver (touch panel driver), the LCD driver (display driver), the camera driver and the battery driver, which is used to read the different levels of the ID pin when the tablet is turned on to distinguish different suppliers.

[0156] According to an embodiment of the present invention, writing material codes of different suppliers into the material equipment nodes based on the identified different suppliers specifically includes:

[0157] Identifying the different suppliers through the ID reading function;

[0158] The device attributes of the current supplier are written into different arrays in the material device node;

[0159] Extract the data written by the current supplier in the array to get the corresponding material code.

[0160] It should be noted that, in this embodiment, the different suppliers are first identified through the ID reading function, and then the device attributes of the current supplier are written into different arrays in the material device node, and finally the written data of the current supplier in the array is extracted to obtain the corresponding material code.

[0161] Specifically, taking battery materials as an example, the specific codes are as follows:

[0162] "extern int g_battery_id;

[0163] static ssize_t battery_info_show(struct device *dev, struct device_attribute *attr, char *buf)

[0164] {

[0165] if(g_battery_id == 1)

[0166] {

[0167] memcpy(dev_battery_info.tctid,battery_tctid[1],sizeof(dev_battery_info.tctid));

[0168] memcpy(dev_battery_info.supplier,battery_supplier[1],sizeof(dev_battery_info.supplier));

[0169] memcpy(dev_battery_info.model,battery_model[1],sizeof(dev_battery_info.model));

[0170] memcpy(dev_battery_info.param,battery_param[1],sizeof(dev_battery_info.param));

[0171] / / return scnprintf(buf, PAGE_SIZE, "2853B7PL-2P:GY:6000mAh:135403005033\n"); / / 1th

[0172] }

[0173] else if(g_battery_id == 0)"

[0174] According to an embodiment of the present invention, when applied, after monitoring the tablet startup, the material information in the material device node is read and stored in the target partition, specifically including:

[0175] The monitoring service created based on the system installed on the tablet monitors the tablet startup;

[0176] Read the material code of the material equipment node to obtain the material information;

[0177] Based on the material information being stored in the target partition, the target partition includes a device information partition.

[0178] It should be noted that in this embodiment, the target partition includes a device information partition (DEV_INFO). Since the system installed on the tablet is Android, the monitoring service created based on the system installed on the tablet monitors the tablet startup and reads the material code of the material device node to obtain the material information, thereby storing the material information in the target partition. The specific code is as follows:

[0179] “param = optimizeData(param,16);

[0180] if (dataType.equals("battery_info")){

[0181] / / 24 / 16 / 24 / 16 (1-80)+(1-1)*80

[0182] NvramUtil.setFlagToNvram(tctid,0, 80*40,true);

[0183] NvramUtil.setFlagToNvram(tctid,0, 24,false);

[0184] NvramUtil.setFlagToNvram(supplier,24, 16,false);

[0185] NvramUtil.setFlagToNvram(model,40, 24,false);

[0186] NvramUtil.setFlagToNvram(param,64, 16,false);”

[0187] According to an embodiment of the present invention, when applied, after monitoring that the tablet is turned off, responding to the reading process of the preset flashing tool to output the material information specifically includes:

[0188] The monitoring service created based on the system installed on the tablet monitors that the tablet is shut down;

[0189] When the user reads the tablet based on the flashing tool, the material information is output to the user in response to the reading process of the flashing tool, wherein the material information specifically includes dynamically updated data.

[0190] It should be noted that in this embodiment, after the user turns off the tablet, the flashing tool (burning tool) will be used to read the corresponding device information partition (DEV_INFO) to query the material information, such as Figure 2As shown, the queried material information is displayed. Specifically, after the monitoring service created by the system mounted on the tablet monitors that the tablet is turned off, it responds to the user's reading process of the tablet based on the flashing tool, thereby outputting the material information to the user. Because the material information is automatically identified when the computer is turned on, it can be viewed in real time even after the material is changed in the middle, which means that the material information specifically includes dynamically updated data, and the data can be updated while the material is changed.

[0191] A third aspect of the present invention provides a computer-readable storage medium, which includes a material information query method program. When the material information query method program is executed by a processor, it implements the steps of a material information query method as described in any one of the above items.

[0192] The present invention discloses a material information query method, system and readable storage medium, which can view material information without disassembling the machine, greatly reducing the risk of using wrong materials on the production line, reducing the production cost of the production line, and facilitating after-sales maintenance, so as to know the tablet configuration information more quickly, optimize the maintenance process and improve efficiency.

[0193] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0194] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0195] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0196] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0197] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

Claims

1. A material information query method, characterized in that: The following steps are involved: Create a new device driver to create a material device node; Adding an ID reading function in the device driver to distinguish different suppliers, wherein the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver, and a battery driver; Based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly; When applied, after monitoring the tablet being turned on, the material information in the material device node is read and stored in the target partition, and after monitoring the tablet being turned off, the material information is output in response to the reading process of the preset flashing tool; The new device driver is used to create a material device node, specifically including: Create a new device driver about device attributes to realize the creation of node information of material equipment; Define corresponding arrays based on different materials to store device attributes of the current material, wherein the material at least includes a processor, a memory driver, a touch panel, a display, a camera, and a battery; The node information corresponding to different materials is different, which is specifically distinguished based on the type of equipment attributes; The adding of the ID reading function in the device driver to distinguish different suppliers specifically includes: when creating a new device driver, synchronously adding the ID reading function, wherein the ID reading function is used to read different levels of the ID pin when monitoring the tablet power on to distinguish the different suppliers; Based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly, specifically including: Identifying the different suppliers through the ID reading function; The device attributes of the current supplier are written into different arrays in the material device node; Extract the data written by the current supplier in the array to get the corresponding material code.

2. A material information query method according to claim 1, characterized in that: When the application is applied, after the tablet is powered on, the material information in the material device node is read and stored in the target partition, specifically including: The monitoring service created based on the system installed on the tablet monitors the tablet startup; Read the material code of the material equipment node to obtain the material information; Based on the material information being stored in the target partition, the target partition includes a device information partition.

3. A material information query method according to claim 2, characterized in that: When the application is used, after the tablet is shut down, the reading process of the preset flashing tool is responded to to output the material information, specifically including: The monitoring service created based on the system installed on the tablet monitors that the tablet is shut down; When the user reads the tablet based on the flashing tool, the material information is output to the user in response to the reading process of the flashing tool, wherein the material information specifically includes dynamically updated data.

4. A material information query system, characterized in that: The method comprises a memory and a processor, wherein the memory comprises a material information query method program, and when the material information query method program is executed by the processor, the following steps are implemented: Create a new device driver to create a material device node; Adding an ID reading function in the device driver to distinguish different suppliers, wherein the newly created device driver includes at least a processor driver, a memory driver, a touch panel driver, a display driver, a camera driver, and a battery driver; Based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly; When applied, after monitoring the tablet being turned on, the material information in the material device node is read and stored in the target partition, and after monitoring the tablet being turned off, the material information is output in response to the reading process of the preset flashing tool; The new device driver is used to create a material device node, specifically including: Create a new device driver about device attributes to realize the creation of node information of material equipment; Define corresponding arrays based on different materials to store device attributes of the current material, wherein the material at least includes a processor, a memory driver, a touch panel, a display, a camera, and a battery; The node information corresponding to different materials is different, which is specifically distinguished based on the type of equipment attributes; The adding of the ID reading function in the device driver to distinguish different suppliers specifically includes: when creating a new device driver, synchronously adding the ID reading function, wherein the ID reading function is used to read different levels of the ID pin when monitoring the tablet power on to distinguish the different suppliers; Based on the identified different suppliers, the material codes of different suppliers are written into the material equipment nodes accordingly, specifically including: Identifying the different suppliers through the ID reading function; The device attributes of the current supplier are written into different arrays in the material device node; Extract the data written by the current supplier in the array to get the corresponding material code.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a material information query method program. When the material information query method program is executed by a processor, the steps of a material information query method as described in any one of claims 1 to 3 are implemented.