Data reading and writing method and system, computer equipment and storage medium
Through wireless communication technology and preset usage prediction model, the time-consuming and labor-intensive problem of traditional consumer parts management is solved, efficient management and maintenance of consumer parts data is achieved, and the life of consumer parts is extended.
Patent Information
- Application Number
- CN202411143354.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional consumables management methods rely on manual recording and regular inspection, which is time-consuming and labor-intensive. The consumables box needs to be unpacked for reading and writing operations, which is complex and inefficient.
The wireless communication technology obtains the consumer number and read and write content, updates the chip configuration, uses presets to analyze the consumer status using prediction models, generates user prompts, and realizes remote updates and data management.
It improves the accuracy and efficiency of the data operation of the consumables, reduces manual intervention, optimizes the maintenance and replacement plan of the consumables, and extends the service life of the consumables.
Smart Images

Figure CN119045755A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data reading and writing, and in particular to a data reading and writing method, system, computer equipment and storage medium. Background Art
[0002] At present, laser printers, inkjet printers and other image forming devices are equipped with consumables such as developer cartridges and ink cartridges. The management and maintenance of consumables are important links to ensure the normal operation of the equipment. The status and life of consumables directly affect the stability of the equipment and product quality. Traditional consumables management methods usually rely on manual records and regular inspections, which is not only time-consuming and labor-intensive, but also prone to inaccurate data and omissions.
[0003] Currently, the data in the consumable box is generally stored in the form of a serial number on the consumable chip in the consumable box. When the consumable box data needs to be read and written, the corresponding data reading and writing equipment must be used to electrically connect to the consumable chip. When the consumable box is in a complete packaging state, the packaging must be removed to perform the reading and writing operations. After the reading and writing operations are completed, the consumable box needs to be repackaged. This operation process is complicated and time-consuming, which increases the time cost.
[0004] The above-mentioned prior art solutions have the following defects: the reading and writing operations on the consumable box are relatively complicated, resulting in low efficiency of the reading and writing operations, so there is room for improvement. Summary of the invention
[0005] In order to improve the efficiency of reading and writing operations, the present application provides a data reading and writing method, system, computer device and storage medium.
[0006] The above-mentioned invention objective of the present application is achieved through the following technical solutions: A data reading and writing method, the data reading and writing method comprising: Obtaining the reading and writing requirements of consumables, obtaining the consumable number according to the reading and writing requirements of the consumables, and querying the consumable cloud data corresponding to the consumable number according to the consumable number; Obtaining the consumable reading and writing content corresponding to the consumable reading and writing demand, updating the consumable cloud data according to the consumable reading and writing content, and updating the chip configuration of the consumable through wireless communication technology to realize the reading and writing operation of the consumable; The consumable cloud data is input into a preset usage prediction model for analysis to obtain consumable usage prediction information, and a user prompt message is generated according to the consumable usage prediction information.
[0007] By adopting the above technical solution, by obtaining the reading and writing requirements of consumables and the corresponding consumable numbers, it is ensured that the system can accurately locate and process specific consumables, and can accurately perform data operations on designated consumables to avoid misoperation or data confusion; by querying the cloud data corresponding to the consumable number, the system can obtain the current status and historical data of the consumables, thereby providing basic data support for subsequent operations, ensuring that the system operation is based on the latest and comprehensive data, and improving the accuracy and reliability of the operation; by obtaining the reading and writing content corresponding to the reading and writing requirements of the consumables, and updating the consumable cloud data according to the reading and writing content, and transmitting the updated content to the chip of the consumables through wireless communication technology, remote updating can be achieved, reducing manual intervention and operation complexity, and improving operation efficiency and response speed; by inputting the consumable cloud data into the preset usage prediction model for analysis, generating consumable usage prediction information, and providing user prompts based on this information, the prediction model can be used to analyze and predict the future usage of the consumables, helping users to make maintenance and replacement plans in advance, optimize resource utilization, extend the service life of consumables, and improve the overall maintenance efficiency of the system.
[0008] In one example, the present application may be further configured as follows: before obtaining the consumables reading and writing requirements, obtaining the consumables number according to the consumables reading and writing requirements, and searching for consumables cloud data corresponding to the consumables number according to the consumables number, the method further includes: Establish cloud connection from consumable chips to cloud platform; The chip configuration information is obtained through the Internet of Things device, and the chip configuration information is sent and stored in the cloud platform.
[0009] By adopting the above technical solution, by establishing a cloud connection from the consumable chip to the cloud platform, obtaining the chip configuration information through the Internet of Things device, and sending and storing the chip configuration information to the cloud platform, it can be ensured that the consumable chip can communicate data with the cloud platform in real time and provide an infrastructure for data transmission; by obtaining the chip configuration information through the Internet of Things device and sending it to the cloud platform, the current status and operating parameters of the consumable chip can be captured in time to ensure the real-time and accuracy of the cloud data. After storing the configuration information on the cloud platform, the system can quickly access and update the information when needed, thereby improving the efficiency and accuracy of data management.
[0010] In one example, the present application may be further configured as follows: the chip configuration information is obtained through the IoT device, and the chip configuration information is sent and stored to the cloud platform, specifically including: Encrypt the chip configuration information using a data encryption algorithm to obtain transmission encrypted information, and send the transmission encrypted information to the cloud platform; The transmission encrypted information sent to the cloud platform is decrypted to obtain the decrypted chip configuration information, and the decrypted chip configuration information is stored in a database of the cloud platform.
[0011] By adopting the above technical solution, the chip configuration information is encrypted through the data encryption algorithm to obtain the transmission encrypted information, and then sent to the cloud platform, thereby ensuring the security of the data during transmission and preventing the data from being stolen or tampered with; by decrypting the encrypted data to obtain the decrypted chip configuration information, and storing it in the database of the cloud platform, the integrity and accuracy of the data stored in the cloud platform are ensured, and reliable basic data support can be provided for subsequent operations.
[0012] In one example, the present application may be further configured as follows: the updating of the consumable cloud data according to the consumable read and write content, and the updating of the consumable chip configuration through wireless communication technology, specifically includes: Update the content of the database of the cloud platform according to the consumables read and write content to obtain consumables update data; The consumable update data is synchronized to the chip configuration of the consumable through the wireless communication technology, and the chip configuration of the consumable is modified.
[0013] By adopting the above technical solution, the database of the cloud platform is updated according to the reading and writing content of the consumables to obtain the consumables update data, which can ensure the real-time nature of the data in the cloud database and accurately reflect the current status and configuration of the consumables; the consumables update data is synchronized to the chip configuration of the consumables through wireless communication technology, and the chip configuration is modified, thereby realizing remote updating and management, reducing manual intervention, and improving operational efficiency and response speed.
[0014] In one example, the present application may be further configured as follows: the construction of the prediction model specifically includes: Acquire historical cloud data and usage time data corresponding to the historical cloud data, classify the historical cloud data according to the usage time data, and obtain a model training data set; The preset machine learning algorithm is iteratively trained according to the model training data set to obtain the usage prediction model.
[0015] By adopting the above technical solution, by acquiring historical cloud data and usage time data, a large amount of historical records on the usage of consumables can be collected, providing a rich data source for model training and improving the basic data quality of model training; historical cloud data is classified according to the usage time data to form a model training data set, so that model training can be optimized for different situations and improve the adaptability of the model to different usage scenarios; the preset machine learning algorithm is iteratively trained according to the model training data set to obtain a usage prediction model, so that the prediction model can continuously learn and improve, thereby obtaining a high-precision usage prediction model, providing a scientific basis for subsequent consumables management and maintenance, and improving the system's prediction capability and maintenance efficiency.
[0016] In one example, the present application may be further configured as follows: the model training data set includes a positive training data set and a negative training data set, and the historical cloud data is classified according to the usage time data to obtain the model training data set, specifically including: Taking an average of the usage time data to obtain an average usage time, and calculating a time smoothing threshold according to a preset time fluctuation ratio; The historical cloud data corresponding to the usage time data that meets the time smoothing threshold is encapsulated as the positive training data set, and the historical cloud data corresponding to the usage time data that does not meet the time smoothing threshold is encapsulated as the negative training data set.
[0017] By adopting the above technical solution, by taking the average of the usage time data to obtain the average usage time, and calculating the time smooth threshold according to the preset time fluctuation ratio, the normal usage range and abnormal usage of consumables can be clearly identified, providing a clear standard for data classification; by encapsulating the historical cloud data corresponding to the usage time data that meets the time smooth threshold as a positive training data set, and encapsulating the historical cloud data corresponding to the usage time data that does not meet the time smooth threshold as a negative training data set, the model training can be optimized for normal and abnormal usage conditions respectively, and the prediction accuracy of the model for different usage scenarios can be improved, so as to better identify the usage trends and potential failures of normal consumables, provide more accurate and valuable prediction information, help users manage and maintain consumables more effectively, and improve the overall reliability and efficiency of the system.
[0018] The second object of the invention is achieved by the following technical solutions: A data reading and writing system, the data reading and writing system comprising: A consumables query module, used to obtain the reading and writing requirements of consumables, obtain the consumables number according to the reading and writing requirements of the consumables, and query the consumables cloud data corresponding to the consumables number according to the consumables number; A data reading and writing module is used to obtain the consumable reading and writing content corresponding to the consumable reading and writing requirements, update the consumable cloud data according to the consumable reading and writing content, and update the chip configuration of the consumable through wireless communication technology to realize the reading and writing operations on the consumable; The usage prediction module is used to input the consumable cloud data into a preset usage prediction model for analysis to obtain consumable usage prediction information, and generate a user prompt message according to the consumable usage prediction information.
[0019] By adopting the above technical solution, by obtaining the reading and writing requirements of consumables and the corresponding consumable numbers, it is ensured that the system can accurately locate and process specific consumables, and can accurately perform data operations on designated consumables to avoid misoperation or data confusion; by querying the cloud data corresponding to the consumable number, the system can obtain the current status and historical data of the consumables, thereby providing basic data support for subsequent operations, ensuring that the system operation is based on the latest and comprehensive data, and improving the accuracy and reliability of the operation; by obtaining the reading and writing content corresponding to the reading and writing requirements of the consumables, and updating the consumable cloud data according to the reading and writing content, and transmitting the updated content to the chip of the consumables through wireless communication technology, remote updating can be achieved, reducing manual intervention and operation complexity, and improving operation efficiency and response speed; by inputting the consumable cloud data into the preset usage prediction model for analysis, generating consumable usage prediction information, and providing user prompts based on this information, the prediction model can be used to analyze and predict the future usage of the consumables, helping users to make maintenance and replacement plans in advance, optimize resource utilization, extend the service life of consumables, and improve the overall maintenance efficiency of the system.
[0020] The third objective of the present application is achieved through the following technical solutions: A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned data reading and writing method when executing the computer program.
[0021] The fourth objective of the present application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned data reading and writing method are implemented.
[0022] In summary, this application includes the following beneficial technical effects: 1. By obtaining the reading and writing requirements of consumables and the corresponding consumable numbers, the system can ensure that it can accurately locate and process specific consumables, and can accurately perform data operations on designated consumables to avoid misoperation or data confusion; by querying the cloud data corresponding to the consumable number, the system can obtain the current status and historical data of the consumables, thereby providing basic data support for subsequent operations, ensuring that the system operation is based on the latest and comprehensive data, and improving the accuracy and reliability of the operation; by obtaining the reading and writing content corresponding to the reading and writing requirements of the consumables, and updating the consumable cloud data according to the reading and writing content, and transmitting the updated content to the chip of the consumables through wireless communication technology, remote updates can be achieved, reducing manual intervention and operational complexity, and improving operational efficiency and response speed; by inputting the consumable cloud data into the preset usage prediction model for analysis, generating consumable usage prediction information, and providing user prompts based on this information, the prediction model can be used to analyze and predict the future usage of consumables, helping users to make maintenance and replacement plans in advance, optimize resource utilization, extend the service life of consumables, and improve the overall maintenance efficiency of the system; 2. By establishing a cloud connection from the consumable chip to the cloud platform, and obtaining the chip configuration information through the IoT device, and sending and storing the chip configuration information to the cloud platform, it can ensure that the consumable chip can communicate data with the cloud platform in real time, and provide the infrastructure for data transmission; by obtaining the chip configuration information through the IoT device and sending it to the cloud platform, the current status and operating parameters of the consumable chip can be captured in time, ensuring the real-time and accuracy of the cloud data. After storing the configuration information in the cloud platform, the system can quickly access and update the information when needed, improving the efficiency and accuracy of data management; 3. By taking the average of the usage time data to obtain the average usage time, and calculating the time smooth threshold according to the preset time fluctuation ratio, the normal usage range and abnormal usage of consumables can be clearly identified, providing a clear standard for data classification; by encapsulating the historical cloud data corresponding to the usage time data that meets the time smooth threshold as a positive training data set, and encapsulating the historical cloud data corresponding to the usage time data that does not meet the time smooth threshold as a negative training data set, the model training can be optimized for normal and abnormal usage conditions respectively, improving the model's prediction accuracy for different usage scenarios, thereby better identifying the usage trends and potential failures of normal consumables, providing more accurate and valuable prediction information, helping users to manage and maintain consumables more effectively, and improving the overall reliability and efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a flow chart of a data reading and writing method in an embodiment of the present application; Figure 2 This is a flowchart of the implementation before step S10 in the data reading and writing method in one embodiment of the present application; Figure 3 is a flowchart for implementing step S102 in the data reading and writing method in one embodiment of the present application; Figure 4 is a flowchart for implementing step S20 in the data reading and writing method in one embodiment of the present application; Figure 5 is a flowchart for implementing step S30 in the data reading and writing method in one embodiment of the present application; Figure 6 It is a flowchart for implementing step S301 in the data reading and writing method in one embodiment of the present application; Figure 7 This is a principle block diagram of a data reading and writing system in one embodiment of the present application; Figure 8 It is a schematic diagram of a device in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The present application is further described in detail below in conjunction with the accompanying drawings.
[0025] In one embodiment, if Figure 1 As shown, the present application discloses a data reading and writing method, which specifically includes the following steps: S10: Obtain the reading and writing requirements of consumables, obtain the consumable number according to the reading and writing requirements of the consumables, and query the consumable cloud data corresponding to the consumable number according to the consumable number.
[0026] In this embodiment, the consumable read / write requirement refers to whether the consumable needs to be read / written. The consumable number refers to the unique identification number of the consumable. The consumable cloud data refers to the configuration data of the consumable stored in the cloud server.
[0027] Specifically, the reading and writing requirements of consumables generated by users or systems are received through wireless communication technology, such as through operator input, triggering of automation systems or regular maintenance plans, and then the consumable number corresponding to the requirement is obtained according to the reading and writing requirements of the consumables, and the cloud database is connected to through the REST API or other communication protocols to query the consumable data corresponding to the consumable number, including current status, historical usage, configuration parameters, etc.
[0028] S20: Obtain the consumable reading and writing content corresponding to the consumable reading and writing requirements, update the consumable cloud data according to the consumable reading and writing content, and update the chip configuration of the consumable through wireless communication technology to realize the reading and writing operations on the consumable.
[0029] In this embodiment, the consumable read-write content refers to the specific content that the consumable needs to read and write when reading and writing.
[0030] Specifically, according to the reading and writing requirements of consumables, the corresponding reading and writing content of the consumables is obtained, including parameter modification, firmware upgrade or data correction, etc., and these reading and writing contents are converted into update operations suitable for the cloud database. Transactional operations are used to ensure data consistency and integrity. After completing the cloud data update, the system transmits the updated configuration data to the consumable chip through wireless communication modules such as WiFi, Bluetooth or NFC to ensure that the data is successfully written into the chip memory. At the same time, the system will perform read and write verification to ensure that the data is written correctly. If an error occurs, it will automatically retry or report the error.
[0031] S30: Inputting the consumable cloud data into a preset usage prediction model for analysis to obtain consumable usage prediction information, and generating a user prompt message according to the consumable usage prediction information.
[0032] In this embodiment, the consumable usage prediction information refers to the predicted time when the consumable can be used. The user prompt message refers to a message used to remind the user of the time when the consumable can be used.
[0033] Specifically, the system inputs the latest cloud data on consumables into the preset usage prediction model to predict the service life and performance trends of consumables, etc., and generates user-friendly prompt messages based on this information, which are notified to operators and relevant maintenance personnel through the user interface, mobile application or email, helping users plan maintenance and replacement in advance and optimize consumables management.
[0034] In one embodiment, if Figure 2 As shown, before step S10, that is, obtaining the consumables reading and writing requirements, obtaining the consumables number according to the consumables reading and writing requirements, and searching the consumables cloud data corresponding to the consumables number according to the consumables number, it also includes: S101: Establish a cloud connection from the consumable chip to the cloud platform.
[0035] Specifically, a connection is established between the consumable chip and the cloud platform through the IoT device, such as integrating an IoT module on the consumable chip and configuring the network parameters of the IoT device, including SSID, password, device ID, etc., so that it can connect to the local network and communicate with the cloud platform through the network, and set an endpoint for receiving data on the cloud platform to ensure that data from the consumable chip can be received and processed so that data can be transmitted between the two.
[0036] S102: Obtain chip configuration information through the IoT device, and send and store the chip configuration information to the cloud platform.
[0037] Specifically, after the connection is established, the chip configuration information is obtained through the IoT device, including the current status of the chip, operating parameters and historical data. The IoT device packages the chip configuration information into data packets and sends them to the cloud platform through the network. After receiving the data, the cloud platform stores it in the database to ensure the integrity and accessibility of the data.
[0038] In one embodiment, if Figure 3 As shown, in step S102, the chip configuration information is obtained through the IoT device, and the chip configuration information is sent and stored to the cloud platform, which specifically includes: S1021: Encrypt the chip configuration information using a data encryption algorithm to obtain transmission encryption information, and send the transmission encryption information to the cloud platform.
[0039] Specifically, the chip configuration information is encrypted using a data encryption algorithm such as the Advanced Encryption Standard or an asymmetric encryption algorithm to obtain transmission encrypted information. The encrypted transmission encrypted information is sent to the cloud platform through the IoT network. To further ensure data security, the transmission process usually uses a secure transmission protocol such as TLS / SSL to provide end-to-end data encryption and verification.
[0040] S1022: Decrypt the transmission encrypted information sent to the cloud platform to obtain decrypted chip configuration information, and store the decrypted chip configuration information in a database of the cloud platform.
[0041] Specifically, when the transmitted encrypted information reaches the cloud platform, the system decrypts the received encrypted data through the corresponding data decryption algorithm to restore the original chip configuration information. The decryption algorithm corresponds to the encryption algorithm to ensure that only the cloud platform can correctly decrypt the data. Subsequently, the system stores the decrypted chip configuration information in the cloud platform's database, providing a reliable data foundation for subsequent data processing and analysis.
[0042] In one embodiment, if Figure 4 As shown, in step S20, the consumable cloud data is updated according to the consumable read and write content, and the chip configuration of the consumable is updated through wireless communication technology, which specifically includes: S21: Update the content of the database of the cloud platform according to the consumables read and written content to obtain consumables update data.
[0043] Specifically, after receiving the specific read and write content, the system parses it into operational data update instructions, including operating parameter adjustments of consumables, firmware updates or other configuration modifications. The system applies these update instructions to the database of the cloud platform through database operations to generate the latest consumables update data.
[0044] S22: Synchronize the consumable update data to the chip configuration of the consumable through wireless communication technology, and modify the chip configuration of the consumable.
[0045] Specifically, the system packages the consumable update data into a data packet suitable for wireless transmission, and sends the data packet to the consumable chip through the configured wireless communication module. When the consumable chip receives the update data packet, the processor built into the chip will parse the data packet and extract specific configuration modification instructions. According to these instructions, the chip processor will make corresponding modifications to the configuration of the consumable, including updating operating parameters, upgrading firmware, or adjusting other configuration items. After completing the configuration update, the chip will perform a self-check to ensure that all configuration modifications are correctly applied and effective. If a problem occurs, the system will issue an error report and automatically try to reapply the update instruction.
[0046] Specifically, in one embodiment, if Figure 5 As shown, in step S30, the construction of the prediction model is used, which specifically includes: S301: Obtain historical cloud data and usage time data corresponding to the historical cloud data, classify the historical cloud data according to the usage time data, and obtain a model training data set.
[0047] Specifically, the system is connected to the cloud database to obtain a large amount of historical cloud data and the usage time data corresponding to these data. The historical cloud data includes the operating parameters, performance indicators, fault records, etc. of consumables, and the usage time data records the specific time period from the first use to the scrapping or replacement of consumables. The historical cloud data is classified according to the usage time data, and the classified data is integrated into a model training data set to provide a basis for subsequent model training.
[0048] S302: Iteratively train a preset machine learning algorithm according to a model training data set to obtain a usage prediction model.
[0049] Specifically, the preset machine learning algorithm is iteratively trained using the classified integrated model data set. During the training process, the system will iterate the model multiple times. Each iteration will adjust the model parameters to minimize the prediction error, and use cross-validation and test data sets to measure the accuracy and generalization ability of the model. If the model performance does not meet the expected standards, the system will perform hyperparameter optimization, adjust the algorithm parameters or change the model structure to further improve the model's prediction ability until the error value between the output result obtained from the input data and the established result data does not exceed 5%, and then a prediction model is obtained.
[0050] In one embodiment, if Figure 6As shown, in step S301, the model training data set includes a positive training data set and a negative training data set. The historical cloud data is classified according to the usage time data to obtain the model training data set, which specifically includes: S3011: Take the average of the usage time data to obtain the average usage time, and calculate the time smoothing threshold according to the preset time fluctuation ratio.
[0051] Specifically, statistical analysis is performed on all usage time data, the average value of these data is calculated, and the time smoothing threshold is calculated based on a preset time fluctuation ratio. The time fluctuation ratio is a pre-set parameter used to define the normal fluctuation range of the usage time.
[0052] S3012: Encapsulate the historical cloud data corresponding to the usage time data that meets the time smoothing threshold as a positive training data set, and encapsulate the historical cloud data corresponding to the usage time data that does not meet the time smoothing threshold as a negative training data set.
[0053] Specifically, for each consumable, check whether its usage time is within the time smooth threshold. If the usage time of the consumable is within the time smooth threshold, its corresponding historical cloud data is encapsulated as a positive training data set. Otherwise, its corresponding historical cloud data is encapsulated as a negative training data set. The positive training data set is used to train the model to identify normal usage, while the negative training data set is used to train the model to identify abnormal usage and potential failures, thereby improving the fault tolerance of the model.
[0054] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0055] In one embodiment, a data reading and writing system is provided, and the data reading and writing system corresponds one-to-one to the data reading and writing method in the above embodiment. Figure 7 As shown, the data reading and writing system includes a consumables query module, a data reading and writing module, and a usage prediction module. The detailed description of each functional module is as follows: The consumables query module is used to obtain the reading and writing requirements of consumables, obtain the consumables number according to the reading and writing requirements of consumables, and query the consumables cloud data corresponding to the consumables number according to the consumables number; The data reading and writing module is used to obtain the consumable reading and writing content corresponding to the consumable reading and writing requirements, update the consumable cloud data according to the consumable reading and writing content, and update the chip configuration of the consumable through wireless communication technology to realize the reading and writing operations on the consumable; The usage prediction module is used to input the consumable cloud data into a preset usage prediction model for analysis, obtain consumable usage prediction information, and generate a user prompt message based on the consumable usage prediction information.
[0056] Optionally, before the consumable parts query module, it also includes: A cloud connection submodule, used to establish a cloud connection from the consumable chip to the cloud platform; The cloud storage submodule is used to obtain chip configuration information through the IoT device, and send and store the chip configuration information to the cloud platform.
[0057] Optionally, the cloud storage submodule specifically includes: A data encryption unit is used to encrypt the chip configuration information through a data encryption algorithm to obtain transmission encrypted information, and send the transmission encrypted information to the cloud platform; The data decryption unit is used to decrypt the transmission encrypted information sent to the cloud platform, obtain the decrypted chip configuration information, and store the decrypted chip configuration information in the database of the cloud platform.
[0058] Optionally, the data reading and writing module specifically includes: The cloud update submodule is used to update the database of the cloud platform according to the consumables read and write content to obtain the consumables update data; The chip update submodule is used to synchronize the consumable update data to the chip configuration of the consumable through wireless communication technology, and to modify the chip configuration of the consumable.
[0059] Optionally, the construction of the prediction model includes: The data preparation submodule is used to obtain historical cloud data and usage time data corresponding to the historical cloud data, classify the historical cloud data according to the usage time data, and obtain a model training data set; The model training submodule is used to iteratively train the preset machine learning algorithm according to the model training data set to obtain a use prediction model.
[0060] Optionally, the data preparation submodule specifically includes: A threshold calculation unit, used to average the usage time data to obtain the average usage time, and calculate the time smoothing threshold according to a preset time fluctuation ratio; The data classification unit is used to encapsulate the historical cloud data corresponding to the usage time data that meets the time smoothing threshold as a positive training data set, and encapsulate the historical cloud data corresponding to the usage time data that does not meet the time smoothing threshold as a negative training data set.
[0061] For the specific definition of the data reading and writing system, please refer to the definition of the data reading and writing method above, which will not be repeated here. Each module in the above data reading and writing system can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0062] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data reading and writing method is implemented.
[0063] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: Obtain the reading and writing requirements of consumables, obtain the consumable number according to the reading and writing requirements of the consumables, and query the consumable cloud data corresponding to the consumable number according to the consumable number; obtain the reading and writing content of the consumables corresponding to the reading and writing requirements of the consumables, update the consumable cloud data according to the reading and writing content of the consumables, and update the chip configuration of the consumables through wireless communication technology to realize the reading and writing operations on the consumables; input the consumable cloud data into the preset usage prediction model for analysis, obtain the consumable usage prediction information, and generate a user prompt message according to the consumable usage prediction information.
[0064] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Obtain the reading and writing requirements of consumables, obtain the consumable number according to the reading and writing requirements of the consumables, and query the consumable cloud data corresponding to the consumable number according to the consumable number; obtain the reading and writing content of the consumables corresponding to the reading and writing requirements of the consumables, update the consumable cloud data according to the reading and writing content of the consumables, and update the chip configuration of the consumables through wireless communication technology to realize the reading and writing operations on the consumables; input the consumable cloud data into the preset usage prediction model for analysis, obtain the consumable usage prediction information, and generate a user prompt message according to the consumable usage prediction information.
[0065] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0066] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.
[0067] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A data reading and writing method, characterized in that: The data reading and writing method comprises: Obtaining the reading and writing requirements of consumables, obtaining the consumable number according to the reading and writing requirements of the consumables, and querying the consumable cloud data corresponding to the consumable number according to the consumable number; Obtaining the consumable reading and writing content corresponding to the consumable reading and writing demand, updating the consumable cloud data according to the consumable reading and writing content, and updating the chip configuration of the consumable through wireless communication technology to realize the reading and writing operation of the consumable; The consumable cloud data is input into a preset usage prediction model for analysis to obtain consumable usage prediction information, and a user prompt message is generated according to the consumable usage prediction information.
2. The data reading and writing method according to claim 1, characterized in that: Before obtaining the consumables reading and writing requirements, obtaining the consumables number according to the consumables reading and writing requirements, and searching the consumables cloud data corresponding to the consumables number according to the consumables number, the method further includes: Establish cloud connection from consumable chips to cloud platform; The chip configuration information is obtained through the Internet of Things device, and the chip configuration information is sent and stored in the cloud platform.
3. The data reading and writing method according to claim 2, characterized in that: The obtaining chip configuration information through the IoT device and sending and storing the chip configuration information to the cloud platform specifically includes: Encrypt the chip configuration information using a data encryption algorithm to obtain transmission encrypted information, and send the transmission encrypted information to the cloud platform; The transmission encrypted information sent to the cloud platform is decrypted to obtain the decrypted chip configuration information, and the decrypted chip configuration information is stored in a database of the cloud platform.
4. The data reading and writing method according to claim 2, characterized in that: The updating of the consumable cloud data according to the consumable read and write content and the updating of the consumable chip configuration through wireless communication technology specifically include: Update the content of the database of the cloud platform according to the consumables read and write content to obtain consumables update data; The consumable update data is synchronized to the chip configuration of the consumable through the wireless communication technology, and the chip configuration of the consumable is modified.
5. The data reading and writing method according to claim 1, characterized in that: The construction of the prediction model specifically includes: Acquire historical cloud data and usage time data corresponding to the historical cloud data, classify the historical cloud data according to the usage time data, and obtain a model training data set; The preset machine learning algorithm is iteratively trained according to the model training data set to obtain the usage prediction model.
6. The data reading and writing method according to claim 1, characterized in that: The model training data set includes a positive training data set and a negative training data set. The historical cloud data is classified according to the usage time data to obtain the model training data set, which specifically includes: Taking an average of the usage time data to obtain an average usage time, and calculating a time smoothing threshold according to a preset time fluctuation ratio; The historical cloud data corresponding to the usage time data that meets the time smoothing threshold is encapsulated as the positive training data set, and the historical cloud data corresponding to the usage time data that does not meet the time smoothing threshold is encapsulated as the negative training data set.
7. A data reading and writing system, characterized in that: The data reading and writing system comprises: A consumables query module, used to obtain the reading and writing requirements of consumables, obtain the consumables number according to the reading and writing requirements of the consumables, and query the consumables cloud data corresponding to the consumables number according to the consumables number; A data reading and writing module is used to obtain the consumable reading and writing content corresponding to the consumable reading and writing requirements, update the consumable cloud data according to the consumable reading and writing content, and update the chip configuration of the consumable through wireless communication technology to realize the reading and writing operations on the consumable; The usage prediction module is used to input the consumable cloud data into a preset usage prediction model for analysis to obtain consumable usage prediction information, and generate a user prompt message according to the consumable usage prediction information.
8. The data reading and writing system according to claim 7, characterized in that: Before the consumable parts query module, it also includes: A cloud connection submodule, used to establish a cloud connection from the consumable chip to the cloud platform; The cloud storage submodule is used to obtain chip configuration information through the Internet of Things device, and send and store the chip configuration information to the cloud platform.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the data reading and writing method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the data reading and writing method according to any one of claims 1 to 6 are implemented.
