Visual media data backup method and device, electronic equipment and storage medium
By acquiring port information to generate an intelligent writing scheme, dynamically calculating the transmission path and combining it with blockchain for evidence storage, the problem of low efficiency in traditional visual media data backup is solved, achieving efficient and secure data backup.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-22
- Publication Date
- 2026-03-13
AI Technical Summary
Traditional methods of visual media data backup are inefficient and prone to data loss or corruption, especially in professional photography, video recording and virtual reality fields, where storage devices need to handle massive amounts of data, and existing technologies struggle to manage and back them up efficiently.
By acquiring information from each high-speed write port and ordinary port through the main device, generating an intelligent write scheme using a custom protocol, dynamically calculating the optimal data transmission path, performing content-aware analysis and allocating high-priority transmission channels, and combining blockchain notarization, data security and integrity are ensured.
It ensures the security and integrity of data transmission, improves backup efficiency, reduces the risk of data loss or damage caused by human error, and adapts to the growing demand for image and video data.
Smart Images

Figure CN121658286A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of visual media data backup technology, and in particular to a method, apparatus, electronic device, and storage medium for backing up visual media data. Background Technology
[0002] With the rapid development of camera technology, consumers' demands for image quality are increasing, and high-definition and ultra-high-definition images have become the mainstream in the market. This change has led to a significant increase in image data volume, especially in fields such as professional photography, video recording, and virtual reality, where storage devices need to handle ever-growing amounts of data. Along with this expansion of stored data, data backup and management have gradually become a significant challenge.
[0003] Traditional backup methods typically rely on host computers to perform data backup and transfer by manually inserting and removing memory cards and reading and writing data. This manual backup method is inefficient and can easily lead to data loss or corruption in some cases. Summary of the Invention
[0004] Based on this, it is necessary to address the existing problem of visual media data backup by proposing a method, device, electronic device, and storage medium for visual media data backup.
[0005] A method for backing up visual media data, the method comprising: The master device acquires the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the master device includes multiple high-speed write ports and multiple ordinary ports; The first port information and the second port information are transmitted to a designated terminal through a custom protocol in order to obtain read and write instructions issued by the designated terminal. A write scheme is generated based on the read and write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. Based on the writing scheme, the target storage data stored in the first storage device is backed up to the second storage device.
[0006] Further, the step of generating a write scheme based on the read / write instructions includes: Obtain the real-time performance parameters of the storage devices connected to the high-speed write port and the normal port; Based on the aforementioned real-time performance parameters and preset backup strategies, the optimal data transmission path is dynamically calculated to generate the write scheme; wherein, the backup strategy includes at least one of a speed priority strategy, a load balancing strategy, and a data security strategy.
[0007] Furthermore, before backing up the target storage data stored on the first storage device to the second storage device based on the writing scheme, the method further includes: Content-aware analysis is performed on the target stored data to obtain the analysis results; Based on the analysis results, determine whether the target stored data contains target stored sub-data of a specified type; If there is target storage sub-data of a specified type, then a high-priority transmission channel is allocated to the target storage sub-data.
[0008] Further, the step of backing up the target storage data stored on the first storage device to the second storage device based on the write scheme includes: Multiple message transmission queues are generated based on the first device information and the second device information of each of the sub-schemes; wherein each message transmission queue contains at least one sub-scheme, and the first device information and the second device information corresponding to the sub-schemes in each message transmission queue are the same; Based on each of the message transmission queues, the target storage data stored in the first storage device is backed up to the second storage device.
[0009] Furthermore, after the step of backing up the target storage data stored in the first storage device to the second storage device based on the writing scheme, the method further includes: Calculate the digital fingerprint of the target stored data based on the second device information of the second storage device; The digital fingerprint is associated with the target stored data and stored in a preset blockchain network to complete the evidence preservation.
[0010] Furthermore, before the step of generating a write scheme based on the read / write instructions, the method further includes: Obtain the health status parameters of the storage device connected to the high-speed write port and the normal port; The health status parameters are input into the prediction model to obtain the risk level of failure for each storage device; Determine whether the risk level exceeds a preset risk threshold; Storage devices with a risk level exceeding a preset risk threshold will be set as read-only source devices.
[0011] Furthermore, after the step of transmitting the information of each of the first ports and each of the second ports to a designated terminal via a custom protocol to obtain read / write instructions issued by the designated terminal, the method further includes: Determine whether a specified backup data retrieval instruction has been received from the specified terminal; If a specified backup data retrieval instruction is received from the specified terminal, the specified backup data will be sent to the specified terminal via the custom protocol.
[0012] Further, the step of transmitting the information of each of the first ports and each of the second ports to a designated terminal via a custom protocol to obtain read / write instructions issued by the designated terminal includes: The master device transmits the information of each first port and each second port to the designated terminal through a custom protocol; The designated terminal generates a virtual interface for interaction based on the acquired first port information and each of the second port information. The designated terminal obtains the user's operation information based on the virtual interface; The designated terminal generates read / write instructions based on the operation information and sends the read / write instructions to the master device.
[0013] Furthermore, the data to be backed up is image data or video data, and the custom protocol is the Bluetooth protocol.
[0014] A backup device for visual media data, the device comprising: The acquisition module is used by the main device to acquire the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the main device includes multiple high-speed write ports and multiple ordinary ports; The transmission module is used to transmit the information of each of the first ports and the information of each of the second ports to a designated terminal through a custom protocol, so as to obtain the read and write instructions issued by the designated terminal. A generation module is used to generate a write scheme based on the read and write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. The backup module is used to back up the target storage data stored in the first storage device to the second storage device based on the write scheme.
[0015] An electronic device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps: The master device acquires the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the master device includes multiple high-speed write ports and multiple ordinary ports; The first port information and the second port information are transmitted to a designated terminal through a custom protocol in order to obtain read and write instructions issued by the designated terminal. A write scheme is generated based on the read and write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. Based on the writing scheme, the target storage data stored in the first storage device is backed up to the second storage device.
[0016] A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the following steps: The master device acquires the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the master device includes multiple high-speed write ports and multiple ordinary ports; The first port information and the second port information are transmitted to a designated terminal through a custom protocol in order to obtain read and write instructions issued by the designated terminal. A write scheme is generated based on the read and write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. Based on the writing scheme, the target storage data stored in the first storage device is backed up to the second storage device.
[0017] The beneficial effects of this invention are as follows: By acquiring information from various high-speed write ports and ordinary ports through the main device, and intelligently generating a write scheme based on read and write instructions, the security and integrity of data transmission are ensured by allocating the data to be backed up to appropriate storage devices. This provides a reliable backup solution for industries such as professional photography, video recording, and virtual reality. The efficiency of data backup and transmission is improved through a custom protocol, adapting to the ever-increasing demand for image and video data. Compared with traditional manual backup methods, this invention provides an automated data processing flow, significantly reducing the risk of data loss or damage caused by human operation. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] in: Figure 1 This is an application environment diagram of a visual media data backup method in one embodiment; Figure 2 A flowchart of a method for backing up visual media data in one embodiment; Figure 3 This is a structural block diagram of a visual media data backup device in one embodiment; Figure 4 This is a structural block diagram of an electronic device in one embodiment. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] Figure 1 This is a diagram illustrating a backup application environment for visual media data in one embodiment. (Refer to...) Figure 1 This method for backing up visual media data is applied to a visual media data backup system. The visual media data backup system includes a master device 110 and a designated terminal 120. The master device 110 and the designated terminal 120 are connected via a network. The designated terminal 120 can be at least one of a mobile terminal, tablet computer, laptop computer, etc. The master device 110 is used to obtain port information, and the designated terminal 120 is used to issue read / write commands.
[0022] like Figure 2 As shown, in one embodiment, a method for backing up visual media data is provided. This method can be applied to both terminals and servers; this embodiment uses a terminal application as an example. The method for backing up visual media data specifically includes the following steps: S1: The master device acquires the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the master device includes multiple high-speed write ports and multiple ordinary ports; S2: Transmit the information of each of the first ports and the information of each of the second ports to the designated terminal through a custom protocol to obtain the read and write instructions issued by the designated terminal; S3: Generate a write scheme based on the read / write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port; S4: Based on the writing scheme, back up the target storage data stored in the first storage device to the second storage device.
[0023] The main device consists of a SoC chip and a HUB chip. The SoC chip bridges the HUB chip, which has multiple ports, including a high-speed write port, two CFexpress-A interfaces (CFE-A, CFE-B) for connecting primary and backup high-speed storage cards such as CFE-A cards, a standard interface such as a USB Type-C interface for connecting to a computer, external hard drive, or for power supply, and a USB Type-A (USB 3.0) interface for connecting USB flash drives, card readers, and other peripherals. It also includes SD card and TF card slots. The SoC chip reads and writes stored data. The device connects to a designated terminal via Bluetooth, using a custom protocol to transmit a virtual terminal interface under the classic Bluetooth protocol. This interface displays the main device's operating status. The designated terminal (which can be various mobile terminals or PCs) can issue read / write commands and view the main device's operating status through this virtual interface. After completing the data read / write commands, the main device operates independently and can function completely independently of the designated terminal. A custom protocol typically refers to a set of rules and standards designed by developers to meet specific needs in a particular application scenario. It is used for communication and data exchange between different devices, modules, or programs. Compared with standard protocols, custom protocols are usually designed to meet a specific task and have greater flexibility and customization features.
[0024] An SoC (System on Chip) is an integrated circuit that integrates all the basic components of a computer, including the processor, memory, and input / output functions, onto a single chip, improving system performance and reducing space footprint. It is used to bridge hub chips, process data, and coordinate communication between various ports.
[0025] A hub (hub chip) can connect multiple external devices and transmit data through its multiple ports. It is responsible for managing and coordinating the data flow between the host device and external storage devices.
[0026] CFexpress-A (CFexpress A interface) supports high-speed memory cards (such as CFexpress-A cards), suitable for professional photography and high-definition video recording. It can provide high bandwidth and fast data transfer speed to meet the storage needs of high-resolution image and video data.
[0027] USB Type-C (USB Type-C interface) supports bidirectional data transfer and power supply, and can connect to devices such as computers and external hard drives. Its high-speed transmission capability makes it suitable for data backup and device charging.
[0028] USB Type-A (USB Type-A interface) is used to connect traditional USB flash drives, card readers and other peripherals, providing reliable data transmission and compatibility, suitable for daily data backup and transmission needs.
[0029] An SD Card Slot is used to insert SD memory cards, supporting expanded storage space and suitable for personal and professional users for fast data transfer and access.
[0030] TF Card Slot: A TF (Micro SD) memory card slot is used to insert a TF (Micro SD) memory card, providing additional storage options for data backup and retrieval in devices such as smartphones and cameras.
[0031] Specifically, the custom protocol includes the following characteristics: Message header: Includes message type (such as request, response), sender ID, timestamp, etc.
[0032] Data fields: The message body contains information such as the current master device's port, write task status, and remaining storage space.
[0033] Control commands, such as "Start Backup" and "Status Query", are executed and responded to by the master device upon receipt.
[0034] ACK / NACK protocol: Once the master device receives a command from the specified terminal, it responds with an "ACK" (acknowledgment) to indicate that the command has been received, or returns "NACK" (negation) to indicate that the command has not been accepted, along with an error code.
[0035] As described in step S1 above, the master device acquires the first port information of each high-speed write port and the second port information of each ordinary port. In this stage, the master device begins to collect information connected to its various ports through its built-in interface system. The master device is typically equipped with multiple high-speed write ports for fast data transfer and multiple ordinary ports for storing and retrieving data. The first port of the high-speed write port has a higher transfer rate and is specifically designed for tasks requiring fast writing, while the second port of the ordinary port may be used for regular data transfer. By reading the status and function information of each port, the master device ensures an understanding of the data transfer requirements. This information acquisition includes not only port availability and type but also other necessary parameters such as speed and capacity.
[0036] As described in step S2 above, the information of each of the first ports and each of the second ports is transmitted to a designated terminal via a custom protocol to obtain read / write commands issued by the designated terminal. The main device uses a custom protocol to transmit data based on the acquired port information. Custom protocols are typically designed to optimize specific types of network communication to ensure accurate and secure data transmission. The main device sends the collected port information to a designated terminal, which may be a control center, user interface, or other interactive device. The information sent may include port status, type, current load, and other relevant parameters. The designated terminal needs to issue corresponding read / write commands based on the port information. The generation of read / write commands directly depends on the information transmitted by the main device, involving the backup data source, target storage location, and other method parameters. In a specific embodiment, a virtual interface can be generated based on the information of each of the first ports and each of the second ports to present the operating status of the main device. Through the virtual interface, the designated terminal can issue read / write commands and view the operating status of the main device. After completing the data read / write commands, the main device operates independently and can be completely separated from the mobile phone.
[0037] As described in step S2 above, a write scheme is generated based on the read / write instructions. The write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up (the first storage device is connected to a high-speed write port), and second device information of a second storage device backing up the data to be backed up (the second storage device is connected to a normal port or a high-speed write port). After receiving read / write instructions from a designated terminal, the master device formulates a specific write scheme based on these instructions. This write scheme is essentially a detailed plan covering how to efficiently and accurately back up data from one storage device to another. Specifically, the write scheme generates multiple sub-schemes as needed, each pointing to specific data to be backed up and their respective storage device information. For example, the first sub-scheme might involve a first storage device connected to a high-speed write port, storing the data to be backed up, while the second sub-scheme might point to a second storage device connected to a normal port or another high-speed write port, used to receive the backed-up data. In this way, by clearly defining the role, data flow, and connection method of each storage device, the master device can effectively plan the optimal data backup path, thereby ensuring data integrity and security.
[0038] As described in step S2 above, the target storage data stored on the first storage device is backed up to the second storage device based on the write scheme. After formulating the detailed write scheme, the master device will begin to execute the specific data backup operation, using the previously generated write scheme to back up the target storage data from the first storage device to the second storage device. Typically, the master device will communicate with each storage device through established high-speed write ports to ensure fast and efficient data transmission. The backup process requires comprehensive monitoring to ensure that data is not lost or damaged during transmission. If necessary, data integrity verification should be performed after transmission is complete. Furthermore, during this process, the master device may also record various information about the backup process, such as the amount of data successfully backed up and the backup time, for subsequent querying or auditing. After the backup is completed, the system needs to confirm that all data has been correctly written to the second storage device, thereby ultimately ensuring data security and availability.
[0039] In one embodiment, step S3, which generates a write scheme based on the read / write instructions, includes: S301: Obtain the real-time performance parameters of the storage device connected to the high-speed write port and the normal port; S302: Based on the aforementioned real-time performance parameters and preset backup strategies, dynamically calculate the optimal data transmission path to generate the write scheme; wherein, the backup strategy includes at least one of a speed priority strategy, a load balancing strategy, and a data security strategy.
[0040] As described in step S301 above, real-time performance parameters of the storage devices connected to the high-speed write port and the normal port are obtained. These performance parameters may include multiple aspects, such as the storage device's read / write speed, response time, load level, available storage capacity, number of current active requests, latency, and fault status. Obtaining these parameters may involve direct communication with the storage device using specific protocols or interfaces to ensure real-time monitoring of the device's status. By understanding the real-time performance of the storage devices, the master device can determine which devices can efficiently perform data backup tasks under the current circumstances, as well as potential bottlenecks. The collection of real-time performance parameters lays the foundation for subsequent optimization decisions, ensuring that the master device can formulate scientific and efficient data transmission schemes, thereby improving overall backup efficiency and reducing the risk of data loss.
[0041] As described in step S302 above, the optimal data transmission path is dynamically calculated based on the various real-time performance parameters and the preset backup strategy to generate the write scheme; wherein, the backup strategy includes at least one of a speed priority strategy, a load balancing strategy, and a data security strategy. The master device will perform dynamic calculations based on the collected real-time performance parameters and the preset backup strategy to determine the optimal data transmission path. This process involves intelligent decision-making to optimize the efficiency and effectiveness of data backup operations. First, the master device uses performance parameters to evaluate the performance and status of each available storage device. For example, if a device connected to a high-speed write port is currently in optimal read / write condition, it may be more suitable for large-volume backup tasks. Backup strategies, such as speed-priority strategies, may prompt the system to select this device for faster data transfer speeds. Load balancing strategies may allocate data transfer tasks based on the current load of each device to prevent overloading of any particular device, thereby improving overall efficiency. Data security strategies may suggest prioritizing devices with higher redundancy or stronger security when selecting paths. By comprehensively considering various parameters and strategies, the master device can adjust the data transfer scheme in real time to achieve efficient data transfer and backup processes. The final write scheme will include the optimal data transfer path, providing strong support for subsequent data backup steps. Specifically, graph algorithms (such as Dijkstra's algorithm or A* algorithm) can be used to model the network topology. Vertices represent storage devices and network nodes, while edges represent data transmission paths, including latency and bandwidth limitations. Input performance parameters and preset backup strategies are used to dynamically calculate the optimal path. For example, by combining storage device performance, network latency, and bandwidth, the optimal data transmission nodes are analyzed to provide the shortest transmission time, generating a priority ranking of multiple backup schemes. For instance, scheme A uses a combination of devices 1 and 2, while scheme B uses a combination of devices 3 and 4.
[0042] In one embodiment, prior to step S4 of backing up the target storage data stored in the first storage device to the second storage device based on the write scheme, the method further includes: S311: Perform content-aware analysis on the target stored data to obtain the analysis results; S312: Based on the analysis results, determine whether the target stored data contains target stored sub-data of a specified type; S313: If there is target storage sub-data of a specified type, then allocate a high-priority transmission channel to the target storage sub-data.
[0043] As described in step S311 above, content-aware analysis is performed on the target stored data to obtain analysis results. First, content-aware analysis is performed on the target stored data to be backed up. This process involves in-depth data parsing to identify and extract the specific content and features of the data. Content-aware analysis can include various methods, such as data fingerprinting, text analysis, and image recognition, depending on the type and format of the target stored data. For example, for text data, the host device can analyze the keywords, topics, and sensitive information of the text; while for audio or video data, it may analyze its duration, resolution, encoding type, etc. Through content-aware analysis, the host device can not only understand the specific content of the data but also determine its importance and sensitivity. Since some data may require higher priority during the backup process, especially sensitive information involving business criticality, legal compliance, or security, the results of content-aware analysis will provide an important basis for formulating subsequent data backup strategies and priorities, thereby improving the efficiency and security of the backup process.
[0044] As described in step S312 above, the analysis results determine whether the target stored data contains target stored sub-data of a specified type. The master device further evaluates the target stored data based on the obtained analysis results to determine whether it contains target stored sub-data of a specified type. These "specified type" sub-data specifically include sensitive information, critical business data, data files required for compliance checks, or other data segments of significant value in business continuity or data recovery. The results of content-aware analysis are used to identify these important sub-data by matching specific rules or standards. Before the determination process, various conditions can be preset, such as data category, information confidentiality level, data integrity and losslessness, etc. If the target stored data does indeed contain these specified type sub-data, the master device will mark these data for higher attention in subsequent steps. Specific types include personally identifiable information, financial data, or critical operation logs.
[0045] As described in step S313 above, if there is target storage sub-data of a specified type, a high-priority transmission channel is allocated to the target storage sub-data. Based on the judgment result, the target storage sub-data of the specified type identified in the target storage data is processed. If the existence of these important sub-data is confirmed, the master device will allocate a high-priority transmission channel to them. These sub-data will be transmitted with priority over other ordinary data during the backup process to ensure that they can be backed up to the second storage device quickly and safely. The high-priority transmission channel may utilize faster connections, dedicated network bandwidth, or specific transmission protocols to accelerate data transmission efficiency. Furthermore, the master device will monitor this transmission process to ensure that data transmitted on the high-priority channel is not interfered with and maintains data integrity and consistency. Through the implementation of this strategy, the master device can reduce the risk of loss of important data during the backup process and ensure that critical data can be quickly restored after the backup is completed, thereby improving overall data security and business continuity.
[0046] In one embodiment, step S4, which backs up the target storage data stored in the first storage device to the second storage device based on the write scheme, includes: S401: Generate multiple message transmission queues based on the first device information and second device information of each of the sub-schemes; wherein each message transmission queue contains at least one sub-scheme, and the first device information and second device information corresponding to the sub-schemes in each message transmission queue are the same; S402: Back up the target storage data stored in the first storage device to the second storage device based on each of the message transmission queues.
[0047] As described in step S401 above, multiple message transmission queues are generated based on the first device information and second device information of each of the sub-schemes; each message transmission queue contains at least one sub-scheme, and the first device information and second device information corresponding to the sub-schemes in each message transmission queue are the same. Multiple message transmission queues are created for each sub-scheme based on the first device information and second device information. The function of these message transmission queues is to effectively organize and schedule the data transmission tasks required in the backup operation. Each message transmission queue contains at least one sub-scheme. This structured queue design can improve data transmission efficiency and ensure that the use of each device achieves optimal results in the data backup operation. Specifically, the construction of queues allows multiple sub-schemes to be processed in parallel while avoiding conflicts and resource contention. For example, when the output data of a source storage device is backed up based on multiple target storage devices, each message transmission queue may arrange the data flow according to priority, thereby achieving more efficient data transmission and processing. Through this method, the master device can effectively manage and schedule data backup tasks, ensuring smooth data transmission between various storage devices. During the backup process, some data that needs to be backed up may need to be stored in multiple storage devices for backup.
[0048] As described in step S402 above, the target storage data stored in the first storage device is backed up to the second storage device based on each of the message transmission queues. According to the previously generated message transmission queues, the target data stored in the first storage device is backed up to the second storage device. Specifically, during execution, the master device traverses each message transmission queue and transmits data between the source and target storage devices according to the priority and order of the sub-schemes in the queue. Dynamic monitoring and load balancing strategies are comprehensively used to adjust the parallel transmission rate and ensure that all source and target devices operate in optimal condition. Through this message queue-based processing mechanism, the master device can not only improve the efficiency of data backup but also effectively reduce operational risks, ensuring that all backup tasks are completed within a limited time.
[0049] In one embodiment, after step S5 of backing up the target storage data stored in the first storage device to the second storage device based on the write scheme, the method further includes: S601: Calculate the digital fingerprint of the target stored data based on the second device information of the second storage device; S602: Associate the digital fingerprint with the target stored data and store it in a preset blockchain network to complete the evidence preservation.
[0050] As described in step S601 above, a digital fingerprint of the target stored data is calculated based on the second device information of the second storage device. Calculating the digital fingerprint of the target stored data aims to represent the characteristics and integrity of the data through a unique digital identifier. Digital fingerprints are typically generated using a hash algorithm, a method that converts data input of arbitrary length (i.e., the target stored data) into a fixed-length output (i.e., the digital fingerprint). First, the master device extracts the second device information of the second storage device, including the device type, storage medium characteristics, file system format, etc. This information can affect the storage and processing of data. Then, the master device performs hash processing on the target stored data based on this information. The generated digital fingerprint will be unique; that is, if any change occurs to the input data, its corresponding hash value will also change. Therefore, the digital fingerprint can serve as an effective guarantee of data integrity and consistency. The calculation of the digital fingerprint not only helps confirm the integrity of the data after the backup process but also provides the necessary basis for subsequent retention and verification, thereby enhancing the credibility and security of the data.
[0051] As described in step S602 above, the digital fingerprint is associated with the target stored data and stored in a preset blockchain network to complete the notarization. Associating the calculated digital fingerprint with the target stored data and storing it in the preset blockchain network completes the notarization operation. The purpose of notarization is to ensure the authenticity, immutability, and traceability of the data. By storing the digital fingerprint in the blockchain, the master device can leverage the decentralized nature of the blockchain to provide a secure and reliable verification mechanism for the target stored data. Specifically, the blockchain structure ensures that each data block is tightly connected to the previous data block, forming a transparent and verifiable chain. Any change to the data will result in a change in the digital fingerprint, making it easily detectable. During this process, the master device may also record relevant metadata (such as timestamps, device information, and storage status) in the blockchain, providing necessary background information for subsequent data auditing, tracking, and recovery. This approach not only enhances data storage security but also provides strong data credentials when required by law or compliance, ensuring the integrity and legality of data during storage and transmission.
[0052] In one embodiment, before step S3 of generating a write scheme based on the read / write instructions, the method further includes: S201: Obtain the health status parameters of the storage device connected to the high-speed write port and the normal port; S202: Input the health status parameters into the prediction model to obtain the risk level of failure of each storage device; S203: Determine whether the risk level exceeds a preset risk threshold; S204: Set storage devices with risk levels exceeding the preset risk threshold as read-only source devices.
[0053] As described in step S201 above, the health status parameters of the storage devices connected to the high-speed write port and the normal port are obtained. Health status parameters of each storage device connected to the high-speed write port and the normal port are collected. These parameters typically include the storage device's temperature, runtime, error rate, I / O performance, remaining lifetime, and any previously recorded faults. By monitoring these key performance indicators, the master device can assess the operating status of the storage devices in real time, thereby identifying potential faults or performance degradation issues in advance. Only by understanding the true state of the storage devices can the reliability of the devices in upcoming backup tasks be effectively determined. Accurate collection of health status parameters not only improves the security of data backup but also provides objective and specific data for subsequent decision-making. Through such monitoring, the system can promptly respond to potential problems and take decisive measures to maintain the stability of the storage system and data security.
[0054] As described in step S202 above, the health status parameters are input into a prediction model to obtain the risk level of failure for each storage device. The obtained health status parameters are then input into a prediction model to calculate the risk level of failure for each storage device. This prediction model is typically based on machine learning or statistical analysis methods and, after training, can identify indicators and trends related to device failure. Through analysis of historical data, the model can accurately assess the health status of the storage devices and provide a digital risk level, usually presented as a score or rating. Through this process, the master device can transform complex and multidimensional health status information into a risk indicator that is easy to assess, thereby supporting subsequent operational decisions.
[0055] It should be noted that the prediction model can be obtained by training a pre-built first neural network model based on a preset sample set. Each sample data point in the preset sample set includes sample state parameter data (including health state parameters) and the corresponding risk level. When training the pre-built first neural network model, the sample state parameter data from each sample data point is used as the input to the first neural network model, and the risk level corresponding to the sample state parameter data from each sample data point is used as the output of the first neural network model. Through training, the first neural network model can learn the correspondence between all possible sample state parameter data and risk levels. The trained first neural network model is then used as the prediction model.
[0056] As described in step S203 above, it is determined whether the risk level exceeds a preset risk threshold. In step S203, the master device determines whether the risk level calculated in step S202 exceeds a preset risk threshold. This risk threshold is usually set based on various factors such as the type of equipment, usage, and industry standards to balance maintenance costs and failure risks. Through this determination, the master device can effectively identify which storage devices are in a high-risk state and require special handling measures. If the risk level of a storage device exceeds this threshold, it indicates that the device may have a potential for imminent failure, and the master device will mark and warn against it.
[0057] As described in step S204 above, storage devices with a risk level exceeding a preset risk threshold are set as read-only source devices. For those storage devices whose risk level is determined to exceed the preset risk threshold, an important security strategy is adopted: setting them as read-only source devices. This measure aims to prevent irreversible damage or data loss to high-risk devices during subsequent data backup or data change operations. Converting these storage devices to read-only mode means that the system will prohibit any write operations on these devices. This not only protects existing data but also reduces the risk of write errors during backup. It ensures that no operations that could lead to data corruption are performed on storage devices facing potential failures, thus further reducing the unexpected risks to the overall storage system.
[0058] In one embodiment, after step S2, which involves transmitting the information of each of the first ports and each of the second ports to a designated terminal via a custom protocol to obtain read / write instructions issued by the designated terminal, the method further includes: S321: Determine whether a specified backup data acquisition instruction has been received from the specified terminal; S322: If a specified backup data acquisition instruction is received from the specified terminal, the specified backup data is sent to the specified terminal through the custom protocol.
[0059] As described in step S321 above, it is determined whether a specified backup data retrieval instruction has been received from the designated terminal. This ensures that the master device receives timely instructions and confirms the specific request for the target data before performing the data backup operation. This process involves the master device monitoring the communication protocol. Because the custom protocol specifies the message format, content, and reception method, the master device continuously monitors the communication channel used to transmit instructions and analyzes the received information to ensure a rapid response to possible backup requests. If the instruction content is found to conform to the preset format and content, the master device records detailed information about these instructions, including the type, location, and priority of the backup data.
[0060] As described in step S322 above, if a specified backup data retrieval instruction is received from the specified terminal, the specified backup data is sent to the specified terminal via the custom protocol. If the specified backup data retrieval instruction is confirmed, the master device will immediately take action to send the specified backup data to the specified terminal via the custom protocol. According to the content of the custom protocol, the master device will appropriately package the specified data to ensure integrity and consistency during transmission. This may include data compression, encryption, or anomaly handling to improve transmission efficiency and security. During data transmission, the master device will continuously monitor the remote connection status to confirm whether the data has been successfully delivered. If an error or interruption occurs during transmission, the master device will be able to immediately identify and take corresponding corrective measures, such as retransmitting the data block, to ensure complete data delivery. In addition, after the data transmission is completed, the master device can use the custom protocol to provide feedback on the transmission status to the specified terminal, including information such as success or failure and the amount of data transmitted.
[0061] In one embodiment, step S2, which involves transmitting the information of each of the first ports and each of the second ports to a designated terminal via a custom protocol to obtain read / write instructions issued by the designated terminal, includes: S211: The master device transmits the information of each of the first ports and each of the second ports to the designated terminal through a custom protocol; S212: The designated terminal generates a virtual interface for interaction based on the acquired first port information and each of the second port information; S213: The designated terminal obtains the user's operation information based on the virtual interface; S214: The designated terminal generates a read / write instruction based on the operation information and sends the read / write instruction to the master device.
[0062] S211: The master device transmits the information from each of the first ports and each of the second ports to the designated terminal via a custom protocol. As described in step S211 above, the master device is responsible for transmitting information from its various high-speed write ports and ordinary ports to the designated terminal. This process uses a custom protocol, meaning that the protocol is designed according to the specific needs and functions of the system development, including preset message formats, data encoding methods, etc. In this way, the master device can ensure the accuracy and security of information during transmission. First, the master device collects the status information of each port, including its type, current load, speed, status, etc. Then, using the custom protocol, it packages this information into data packets and sends them to the designated terminal over the network.
[0063] As described in step S212 above, the designated terminal generates a virtual interface for user interaction based on the received first port information and second port information. This virtual interface is designed to allow users to intuitively view the status and performance of each port and perform corresponding operations. Specifically, the terminal will display information about each port, including speed, load, and activity status, through a graphical user interface (GUI), presenting it to the user in a user-friendly manner. The interface design includes charts, indicators, buttons, and progress bars to enhance user experience and ease of interaction.
[0064] As described in step S213 above, the designated terminal obtains the user's operation information through the constructed virtual interface. This process includes various interactions performed by the user on the interface, such as clicking buttons, inputting data, and selecting options. The user's operation information may include, for example, the specific data the user wishes to back up, the target storage location, the backup frequency, and any other parameters that may affect data processing. The collection of user operation information is usually achieved through event listeners or callback functions, and the terminal immediately captures and records this information when the user performs an operation.
[0065] As described in step S214 above, the designated terminal generates corresponding read / write instructions based on the acquired user operation information and sends them back to the master device. The generated read / write instructions will include specific operation commands, such as "backup data A to target storage device B" or "read data from storage device C." During this process, the designated terminal will perform appropriate data verification and formatting based on the user's input to ensure the accuracy of the generated instructions. Furthermore, to ensure the integrity and security of the instructions, the terminal can use encryption or signature technologies to protect the content of the instructions during transmission. After successfully sending these instructions, the master device can further perform data operations based on this information to achieve data transmission and backup.
[0066] In one embodiment, the data to be backed up is image data or video data, and the custom protocol is the Bluetooth protocol. Image data is typically static image files, such as JPEG, PNG, TIFF, etc., while video data is dynamic video content, which may contain multiple encoding formats, such as MP4, AVI, MKV, etc. Compared to static images, video data is often larger in size and has a larger data volume, so the backup strategy needs to pay special attention to factors such as storage space, transmission efficiency, and data integrity. The custom protocol is a specific data exchange protocol developed on top of the basic Bluetooth protocol, designed to meet the needs of specific applications. In this embodiment, it is mainly used for functions such as command transmission and data backup. Through the custom protocol, it is possible to define how to process data, the interaction process, and the data format after establishing a Bluetooth connection, so that the application can better utilize the transmission capabilities of Bluetooth. For example, the custom protocol can define how to return the port information of the master device to the mobile phone in a specific format and display it visually.
[0067] Reference Figure 3 The present invention also provides a backup device for visual media data, the device comprising: The acquisition module 902 is used by the main device to acquire the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the main device includes multiple high-speed write ports and multiple ordinary ports; The transmission module 904 is used to transmit the information of each of the first ports and the information of each of the second ports to a designated terminal through a custom protocol, so as to obtain the read and write instructions issued by the designated terminal. The generation module 906 is used to generate a write scheme based on the read and write instructions; wherein the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. Backup module 908 is used to back up the target storage data stored in the first storage device to the second storage device based on the write scheme.
[0068] In one embodiment, the generation module 906 includes: A real-time performance parameter acquisition submodule is used to acquire the real-time performance parameters of the storage devices connected to the high-speed write port and the normal port. The write scheme generation submodule is used to dynamically calculate the optimal data transmission path based on the various real-time performance parameters and the preset backup strategy to generate the write scheme; wherein, the backup strategy includes at least one of the speed priority strategy, the load balancing strategy and the data security strategy.
[0069] In one embodiment, the visual media data backup device further includes: The analysis result acquisition module is used to perform content-aware analysis on the target stored data and obtain the analysis results. The first judgment module is used to determine, based on the analysis results, whether the target stored data contains target stored sub-data of a specified type. The transmission channel allocation module is used to allocate a high-priority transmission channel to the target storage sub-data if it has a target storage sub-data of a specified type.
[0070] In one embodiment, backup module 908 includes: A message transmission queue generation submodule is used to generate multiple message transmission queues based on the first device information and the second device information of each of the sub-schemes; wherein each message transmission queue contains at least one sub-scheme, and the first device information and the second device information corresponding to the sub-scheme in each message queue are the same; The backup submodule is used to back up the target storage data stored in the first storage device to the second storage device based on each of the message transmission queues.
[0071] In one embodiment, the visual media data backup device further includes: The digital fingerprint calculation module is used to calculate the digital fingerprint of the target stored data based on the second device information of the second storage device; The evidence storage module is used to associate the digital fingerprint with the target stored data and store it in a preset blockchain network to complete the evidence storage.
[0072] In one embodiment, the visual media data backup device further includes: A health status parameter acquisition module is used to acquire the health status parameters of the storage device connected to the high-speed write port and the ordinary port; The risk level acquisition module is used to input the health status parameters into the prediction model to obtain the risk level of each storage device failure; The second judgment module is used to determine whether the risk level exceeds a preset risk threshold. The read-only source device setting module is used to set storage devices with a risk level exceeding a preset risk threshold as read-only source devices.
[0073] In one embodiment, the visual media data backup device further includes: The third judgment module determines whether it has received a specified backup data retrieval instruction from the specified terminal; The sending module is used to send the specified backup data to the specified terminal via the custom protocol if it receives a specified backup data retrieval instruction from the specified terminal.
[0074] In one embodiment, the transmission module 904 includes: The port information transmission submodule allows the master device to transmit the information of each first port and each second port to a designated terminal via a custom protocol. A virtual interface generation submodule is used by the specified terminal to generate a virtual interface for interaction based on the acquired first port information and each of the second port information. An operation information acquisition submodule is used for the designated terminal to acquire user operation information based on the virtual interface; The read / write instruction generation submodule is used by the designated terminal to generate read / write instructions based on the operation information and send the read / write instructions to the master device.
[0075] In one embodiment, a visual media data backup device includes: the data to be backed up is image data or video data, and the custom protocol is the Bluetooth protocol.
[0076] Figure 4 An internal structural diagram of an electronic device in one embodiment is shown. This electronic device can specifically be a terminal or a server, and more specifically, a computer device. Figure 4 As shown, the electronic device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement a method for backing up visual media data. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to implement the method for backing up visual media data. Those skilled in the art will understand that… Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0077] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps: The master device acquires the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the master device includes multiple high-speed write ports and multiple ordinary ports; The first port information and the second port information are transmitted to a designated terminal through a custom protocol in order to obtain read and write instructions issued by the designated terminal. A write scheme is generated based on the read and write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. Based on the writing scheme, the target storage data stored in the first storage device is backed up to the second storage device.
[0078] By acquiring information from each high-speed write port and ordinary port through the main device, and intelligently generating a write scheme based on read and write instructions, the security and integrity of data transmission are ensured by allocating the data to be backed up to appropriate storage devices. This provides a reliable backup solution for industries such as professional photography, video recording, and virtual reality. The efficiency of data backup and transmission is improved through a custom protocol, adapting to the ever-increasing demand for image and video data. Compared with traditional manual backup methods, this invention provides an automated data processing flow, significantly reducing the risk of data loss or damage caused by human operation.
[0079] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, causes the processor to perform the following steps: The master device acquires the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the master device includes multiple high-speed write ports and multiple ordinary ports; The first port information and the second port information are transmitted to a designated terminal through a custom protocol in order to obtain read and write instructions issued by the designated terminal. A write scheme is generated based on the read and write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. Based on the writing scheme, the target storage data stored in the first storage device is backed up to the second storage device.
[0080] By acquiring information from each high-speed write port and ordinary port through the main device, and intelligently generating a write scheme based on read and write instructions, the security and integrity of data transmission are ensured by allocating the data to be backed up to appropriate storage devices. This provides a reliable backup solution for industries such as professional photography, video recording, and virtual reality. The efficiency of data backup and transmission is improved through a custom protocol, adapting to the ever-increasing demand for image and video data. Compared with traditional manual backup methods, this invention provides an automated data processing flow, significantly reducing the risk of data loss or damage caused by human operation.
[0081] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0082] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0083] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for backing up visual media data, characterized in that, The method includes: The master device acquires the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the master device includes multiple high-speed write ports and multiple ordinary ports; The first port information and the second port information are transmitted to a designated terminal through a custom protocol to obtain read and write instructions issued by the designated terminal. A write scheme is generated based on the read and write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. Based on the writing scheme, the target storage data stored in the first storage device is backed up to the second storage device.
2. The method for backing up visual media data according to claim 1, characterized in that, The step of generating a write scheme based on the read / write instructions includes: Obtain real-time performance parameters of the storage devices connected to the high-speed write port and the normal port; Based on the aforementioned real-time performance parameters and preset backup strategies, the optimal data transmission path is dynamically calculated to generate the write scheme; wherein, the backup strategy includes at least one of a speed priority strategy, a load balancing strategy, and a data security strategy.
3. The method for backing up visual media data according to claim 1, characterized in that, Before the step of backing up the target storage data stored in the first storage device to the second storage device based on the writing scheme, the method further includes: Content-aware analysis is performed on the target stored data to obtain the analysis results; Based on the analysis results, determine whether the target stored data contains target stored sub-data of a specified type; If there is target storage sub-data of a specified type, then a high-priority transmission channel is allocated to the target storage sub-data.
4. The method for backing up visual media data according to claim 1, characterized in that, The step of backing up the target storage data stored in the first storage device to the second storage device based on the writing scheme includes: Multiple message transmission queues are generated based on the first device information and the second device information of each of the sub-schemes; wherein each message transmission queue contains at least one sub-scheme, and the first device information and the second device information corresponding to the sub-schemes in each message transmission queue are the same; Based on each of the message transmission queues, the target storage data stored in the first storage device is backed up to the second storage device.
5. The method for backing up visual media data according to claim 1, characterized in that, After the step of backing up the target storage data stored in the first storage device to the second storage device based on the writing scheme, the method further includes: Calculate the digital fingerprint of the target stored data based on the second device information of the second storage device; The digital fingerprint is associated with the target stored data and stored in a preset blockchain network to complete the evidence preservation.
6. The method for backing up visual media data according to claim 1, characterized in that, Before the step of generating a write scheme based on the read / write instructions, the method further includes: Obtain the health status parameters of the storage device connected to the high-speed write port and the normal port; The health status parameters are input into the prediction model to obtain the risk level of failure for each storage device; Determine whether the risk level exceeds a preset risk threshold; Storage devices with a risk level exceeding a preset risk threshold will be set as read-only source devices.
7. The method for backing up visual media data according to claim 1, characterized in that, After the step of transmitting the information of each of the first ports and each of the second ports to a designated terminal via a custom protocol to obtain read / write instructions issued by the designated terminal, the method further includes: Determine whether a specified backup data retrieval instruction has been received from the specified terminal; If a specified backup data retrieval instruction is received from the specified terminal, the specified backup data will be sent to the specified terminal via the custom protocol.
8. The method for backing up visual media data according to claim 1, characterized in that, The step of transmitting the information of each of the first ports and each of the second ports to a designated terminal via a custom protocol to obtain read / write instructions issued by the designated terminal includes: The master device transmits the information of each first port and each second port to the designated terminal through a custom protocol; The designated terminal generates a virtual interface for interaction based on the acquired first port information and each of the second port information. The designated terminal obtains the user's operation information based on the virtual interface; The designated terminal generates read / write instructions based on the operation information and sends the read / write instructions to the master device.
9. The method for backing up visual media data according to any one of claims 1-8, characterized in that, The data to be backed up is image data or video data, and the custom protocol is the Bluetooth protocol.
10. A backup device for visual media data, characterized in that, The device includes: The acquisition module is used by the main device to acquire the first port information of each high-speed write port and the second port information of each ordinary port; wherein, the main device includes multiple high-speed write ports and multiple ordinary ports; The transmission module is used to transmit the information of each of the first ports and the information of each of the second ports to a designated terminal through a custom protocol, so as to obtain the read and write instructions issued by the designated terminal. A generation module is used to generate a write scheme based on the read and write instructions; wherein, the write scheme includes multiple sub-schemes, each sub-scheme including data to be backed up, first device information of a first storage device storing the data to be backed up, the first storage device being connected to a high-speed write port, and second device information of a second storage device backing up the data to be backed up, the second storage device being connected to a normal port or a high-speed write port. The backup module is used to back up the target storage data stored in the first storage device to the second storage device based on the write scheme.
11. A computer-readable storage medium, characterized in that, The device contains a computer program that, when executed by a processor, causes the processor to perform the steps of the method for backing up visual media data as described in any one of claims 1 to 9.
12. An electronic device, characterized in that, The device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method for backing up visual media data as described in any one of claims 1 to 9.