Data burning method, device, system, electronic device and storage medium

CN113741917BActive Publication Date: 2025-07-22ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110970706.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-23
Publication Date
2025-07-22
Estimated Expiration
2041-08-23

Smart Images

  • Figure CN113741917B_ABST
    Figure CN113741917B_ABST
Patent Text Reader

Abstract

The present application relates to a data burning method, device, system, electronic device, and storage medium. The data burning method includes: during the process of burning real-time burning data to a current optical drive that is currently in a working state, real-time monitoring the remaining disc capacity of the current optical drive; when the remaining disc capacity of the current optical drive reaches a first preset threshold, controlling a standby optical drive to be turned on and enter a sleep state; when the remaining disc capacity of the current optical drive reaches a second preset threshold, waking up the standby optical drive in the sleep state to enter a working state, and burning the real-time burning data to the standby optical drive; where the second preset threshold is used to indicate the minimum remaining disc capacity preset in the current optical drive, and the second preset threshold is less than the first preset threshold. Through the present application, the problems of low security and efficiency during the data burning process are solved, and high-precision multi-optical drive continuous burning is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data burning, and particularly to a data burning method, device, system, electronic device, and storage medium. Background Art

[0002] Burning, also known as writing, is a technology that writes data onto media such as optical discs and flash cartridges (GBA) through tools such as burners and burning software. Storing data by burning optical discs has become a common data storage method. In related technologies, in devices such as interrogation devices that require at least two optical drives to alternately burn data, hard disks are usually used as temporary storage points for switching between multiple optical drives to ensure the non-loss of video data, resulting in a high dependence on hard disks. If there is no hard disk or the hard disk malfunctions during interrogation, the interrogation video will be lost, and this video cannot be retrieved. In addition, adding the logic of reading hard disk data during the switching process involves operations such as querying, positioning, reading, and determining whether to catch up with the real-time data stream, increasing the complexity of the solution, thereby increasing the probability of problems during the entire burning process, and reducing the security and efficiency during the data burning process.

[0003] Currently, no effective solution has been proposed for the problems of low security and efficiency during the data burning process in related technologies. Summary of the Invention

[0004] Embodiments of the present application provide a data burning method, device, system, electronic device, and storage medium to at least solve the problems of low security and efficiency during the data burning process in related technologies.

[0005] In a first aspect, embodiments of the present application provide a data burning method, the method including:

[0006] During the process of burning real-time recording data to the current optical drive that is currently in a working state, the remaining capacity of the optical disc of the current optical drive is monitored in real time;

[0007] When the remaining capacity of the optical disc of the current optical drive reaches a first preset threshold, the standby optical drive is controlled to turn on and enter a sleep state;

[0008] When the remaining capacity of the optical disc of the current optical drive reaches a second preset threshold, the standby optical drive in the sleep state is awakened to enter a working state, and the real-time recording data is burned to the standby optical drive; where the second preset threshold is used to indicate the minimum remaining capacity of the optical disc preset in the current optical drive, and the second preset threshold is less than the first preset threshold.

[0009] In some of these embodiments, before the remaining disc capacity of the current optical drive is monitored in real time during the process of burning real-time recording data to the current optical drive that is currently in the working state, the current optical drive is in the closed state, and the method further includes:

[0010] Obtain the reserved burning time;

[0011] Obtain the current time, and when it is detected that the current time is before the reserved burning time, control the current optical drive to turn on and enter the sleep state;

[0012] When the current time is within the range of the reserved burning time, detect whether an open interrogation instruction is received;

[0013] When it is detected that the open interrogation instruction is received, in response to the open interrogation instruction, wake up the current optical drive to enter the working state.

[0014] In some of these embodiments, after the remaining disc capacity of the current optical drive is monitored in real time, the method further includes:

[0015] When the remaining disc capacity of the current optical drive is higher than the first preset threshold, continue to burn the real-time recording data to the current optical drive, and detect whether the remaining disc capacity of the current optical drive reaches the second preset threshold;

[0016] When the remaining disc capacity of the current optical drive reaches the second preset threshold, control the current optical drive to perform a disc closing and stopping operation.

[0017] In some of these embodiments, when the remaining disc capacity of the current optical drive reaches the second preset threshold, waking up the standby optical drive in the sleep state to enter the working state and burning the real-time recording data to the standby optical drive includes:

[0018] When the remaining disc capacity of the current optical drive reaches the second preset threshold, detect whether the standby optical drive is in the sleep state;

[0019] When it is detected that the standby optical drive is in the sleep state, wake up the standby optical drive to enter the working state, and switch the burning of the real-time recording data to the standby optical drive.

[0020] In some of these embodiments, after detecting whether the standby optical drive is in the sleep state, the method further includes:

[0021] When the detection of whether the standby optical drive is in the sleep state fails, directly switch the burning of the real-time recording data to the standby optical drive.

[0022] In some of these embodiments, after controlling the standby optical drive to turn on and enter the sleep state when the remaining capacity of the optical disc in the current optical drive reaches a first preset threshold, the method further includes:

[0023] When the remaining capacity of the optical disc in the current optical drive is higher than the second preset threshold, control the standby optical drive to perform a waiting operation while in the sleep state, and re-detect the comparison result between the remaining capacity of the optical disc in the current optical drive and the second preset threshold.

[0024] In some of these embodiments, burning the real-time recording data to the standby optical drive includes:

[0025] Switch the burning of the real-time recording data to the standby optical drive, and control the current optical drive to perform a disc closing and stopping operation.

[0026] In a second aspect, an embodiment of the present application provides a data burning device, which includes: a first burning module, a sleep module, and a second burning module;

[0027] The first burning module is used to monitor the remaining capacity of the optical disc in the current optical drive in real time during the process of burning real-time recording data to the current optical drive that is currently in the working state;

[0028] The sleep module is used to control the standby optical drive to turn on and enter the sleep state when the remaining capacity of the optical disc in the current optical drive reaches a first preset threshold;

[0029] The second burning module is used to wake up the standby optical drive that is in the sleep state and enter the working state when the remaining capacity of the optical disc in the current optical drive reaches a second preset threshold, and burn the real-time recording data to the standby optical drive; wherein, the second preset threshold is used to indicate the minimum remaining capacity of the optical disc preset in the current optical drive, and the second preset threshold is less than the first preset threshold.

[0030] In a third aspect, an embodiment of the present application provides a data burning system, which includes: a current optical drive, a standby optical drive, and a main control device;

[0031] The main control device monitors the remaining capacity of the optical disc in the current optical drive in real time during the process of burning real-time recording data to the current optical drive that is currently in the working state;

[0032] The main control device controls the standby optical drive to turn on and enter the sleep state when the remaining capacity of the optical disc in the current optical drive reaches a first preset threshold;

[0033] When the remaining capacity of the optical disc in the current optical drive reaches a second preset threshold, the master device wakes up the standby optical drive in the sleep state to enter the working state, and burns the real-time recording data to the standby optical drive; wherein, the second preset threshold is used to indicate the minimum value of the remaining capacity of the preset optical disc in the current optical drive, and the second preset threshold is less than the first preset threshold.

[0034] In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the data burning method described in the first aspect above is implemented.

[0035] In a fifth aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored. When the program is executed by a processor, the data burning method described in the first aspect above is implemented.

[0036] Compared with the related art, the data burning method, device, system, electronic device, and storage medium provided by the embodiments of the present application monitor the remaining capacity of the optical disc of the current optical drive in real time during the process of burning real-time recording data to the current optical drive in the working state; when the remaining capacity of the optical disc of the current optical drive reaches the first preset threshold, control the standby optical drive to turn on and enter the sleep state; when the remaining capacity of the optical disc of the current optical drive reaches the second preset threshold, wake up the standby optical drive in the sleep state to enter the working state, and burn the real-time recording data to the standby optical drive; wherein, the second preset threshold is used to indicate the minimum value of the remaining capacity of the preset optical disc in the current optical drive, and the second preset threshold is less than the first preset threshold, which solves the problems of low security and efficiency during the data burning process, and realizes high-precision continuous burning of multiple optical drives.

[0037] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more concise and understandable. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of the present application and form a part of the present application. The illustrative embodiments and descriptions thereof of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the drawings:

[0039] Figure 1 is an application environment diagram of a data burning method according to an embodiment of the present application;

[0040] Figure 2 is a flowchart of a data burning method according to an embodiment of the present application;

[0041] Figure 3It is a flowchart of a data burning method according to a preferred embodiment of the present application;

[0042] Figure 4 It is a structural block diagram of a data burning device according to an embodiment of the present application;

[0043] Figure 5 It is a structural block diagram of a data burning system according to an embodiment of the present application;

[0044] Figure 6 It is a structural diagram inside a computer device according to an embodiment of the present application. Detailed implementation manners

[0045] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be described and explained below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments provided herein without making creative efforts belong to the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and time-consuming, for those of ordinary skill in the art related to the content disclosed in the present application, some design, manufacturing or production changes based on the technical content disclosed in the present application are only conventional technical means and should not be understood as the disclosure of the present application being insufficient.

[0046] When "embodiment" is mentioned in the present application, it means that the specific features, structures, or characteristics described in combination with the embodiment may be included in at least one embodiment of the present application. The phrase appearing in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those of ordinary skill in the art explicitly and implicitly understand that the embodiments described in the present application can be combined with other embodiments without conflict.

[0047] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the ordinary meanings understood by those with ordinary skills in the technical field to which this application belongs. The words such as "a", "an", "one kind", "the" and the like involved in this application do not indicate a quantity limitation and may represent a singular or plural number. The terms "include", "comprise", "have" and any variations thereof involved in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may further include steps or units not listed, or may further include other steps or units inherent to these processes, methods, products or devices. The similar words such as "connect", "be connected", "couple" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "plurality" involved in this application means greater than or equal to two. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, "A and / or B" may represent: A exists alone, A and B exist simultaneously, and B exists alone. The terms "first", "second", "third" and the like involved in this application are only used to distinguish similar objects and do not represent a specific order of the objects.

[0048] The data burning method provided by this application can be applied to an application environment as Figure 1 shown. Among them, the video recording device 102 transmits data to the current optical drive 104 and the standby optical drive 106 respectively through a connection line or a network. The current optical drive 104 obtains the real-time recording data in the real-time data stream captured by the video recording device 102, records the real-time recording data onto the optical disc installed in the current optical drive 104, and monitors the remaining capacity of the optical disc installed in the current optical drive 104 in real time; when the remaining capacity of the optical disc installed in the current optical drive 104 reaches a first preset threshold, the standby optical drive 106 enters the sleep state from the shutdown state; when the remaining capacity of the optical disc installed in the current optical drive 104 reaches a second preset threshold, the standby optical drive 106 enters the working state from the sleep state, and continues to record the remaining real-time recording data in the above real-time data stream onto the optical disc installed in the standby optical drive 106. Among them, the second preset threshold refers to the minimum value of the remaining capacity of the optical disc preset in the current optical drive, and the second preset threshold is less than the first preset threshold.

[0049] This embodiment provides a data burning method, Figure 2 which is a flowchart of a data burning method according to an embodiment of this application, as Figure 2 shown. The process includes the following steps:

[0050] Step S220, during the process of burning the real-time recording data to the current optical drive that is currently in the working state, the remaining capacity of the optical disc in the current optical drive is monitored in real time.

[0051] Among them, after the burning starts, the burning device can read the real-time recording data from the real-time data stream captured by the video device and burn the real-time recording data to the optical disc in the current optical drive; during the process of burning the real-time recording data to the current optical drive, the burning device can monitor and detect the capacity of the optical disc in the current optical drive in real time, so as to realize the real-time judgment of the remaining capacity of the optical disc in the current optical drive. Specifically, during the process of the burning device burning the real-time recording data to the current optical drive, the burning device can detect the remaining capacity of the optical disc installed in the current optical drive in real time, or the remaining capacity of the optical disc in the current optical drive can also be monitored in real time by using a software program, which will not be elaborated here.

[0052] Step S240, when the remaining capacity of the optical disc in the current optical drive reaches the first preset threshold, control the standby optical drive to turn on and enter the sleep state.

[0053] It should be noted that the above first preset threshold is used to indicate the remaining capacity threshold of the optical disc installed in the current optical drive, and the first preset threshold can be set by the user in advance; for example, the user can determine the specific value of the first preset threshold according to the size of the current code stream. Since the remaining capacity of the optical disc in the current optical drive will become smaller and smaller during the process of writing the real-time recording data, the remaining capacity of the optical disc in the current optical drive will gradually reach the first preset threshold. Among them, when it is detected that the remaining capacity of the optical disc in the current optical drive reaches the first preset threshold by comparing the remaining capacity of the optical disc in the current optical drive with the first preset threshold in real time, the standby optical drive in the off state can be turned on; turning on the standby optical drive will consume a period of time, and at the same time the current optical drive can continue to burn the above real-time recording data to ensure continuous burning in scenarios such as judicial interrogations. Through step S240, according to the preset remaining capacity threshold of the optical disc, that is, the first preset threshold, controlling the standby optical drive to turn on in advance can avoid the problem that the real-time data stream cannot be burned continuously due to the slow start of the standby optical drive.

[0054] Step S260, when the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold, wake up the standby optical drive in the sleep state to enter the working state, and burn the real-time recording data to the standby optical drive; where the second preset threshold is used to indicate the minimum remaining capacity of the optical disc preset in the current optical drive, and the second preset threshold is less than the first preset threshold.

[0055] Among them, since the second preset threshold is less than the first preset threshold, after performing the above step S240, the remaining capacity of the optical disc of the current optical drive can be continuously compared with the second preset threshold in real time by the above optical disc burning device. It should be noted that the second preset threshold can be set by the user in advance according to the actual situation. For example, the user can set the second preset threshold to 0. Then, when the optical disc burning device detects that the remaining capacity of the optical disc reaches the second preset threshold, it means that the current optical drive is completely full at this time. Then, the above standby optical drive can be awakened, and the remaining real-time burning data continuously read from the above real-time data stream can be switched and burned to the standby optical drive; or, in the actual application process, if the current optical drive still needs to set aside a part of the storage space for storing other relevant materials, the user can set the second preset threshold according to the required reserved storage space. For example, the second preset threshold can be set to 100MB. Then, when the optical disc burning device detects that the remaining capacity of the optical disc reaches the second preset threshold, it means that the available remaining capacity of the optical disc installed in the current optical drive is insufficient at this time. Then, the above standby optical drive can be awakened, and the real-time burning data can be switched and burned to the standby optical drive.

[0056] In the related art, the switching and burning between multiple optical drives need to rely on a hard disk, resulting in low security and efficiency of data burning; while in the embodiments of the present application, through the above steps S220 to S260, by presetting the remaining capacity threshold of the optical disc, when the remaining capacity of the optical disc of the current optical drive reaches the threshold, the standby optical drive is turned on in advance, so that the standby optical drive can be directly and quickly awakened after the current optical drive is full, and the real-time burning data can be changed from the current optical drive to be burned to the standby optical drive, realizing seamless switching between multiple optical drives, without the need to additionally use a third-party device such as a hard disk to read video data for supplementary burning, ensuring the continuity and integrity of data burning, with strong data reliability, thus solving the problem of low security and efficiency in the data burning process and realizing a high-precision multi-optical-drive continuous burning method.

[0057] In some of the embodiments, before the above step S220, the current optical drive is in a closed state, and the data burning method further includes the following steps:

[0058] Step S211, obtaining the reserved burning time.

[0059] Among them, the user can interact with the terminal device to set the above-mentioned reserved burning time on the terminal device, and the burning device can obtain the reserved burning time from the terminal device; alternatively, the user can also directly set the reserved burning time on the above-mentioned video recording device, and the burning device can obtain the reserved burning time from the video recording device. For example, taking the above data burning method applied in the judicial interrogation scenario as an example, the user can set the reserved burning time according to the required interrogation time period. If the required interrogation time period is from 12:00 to 16:00 on a certain day, then 12:00 to 16:00 on a certain day can be set as the reserved burning time; alternatively, the user can also set the reserved burning time according to the start time of the interrogation. For example, setting 12:00 on a certain day as the reserved burning time.

[0060] Step S212, obtain the current time. When it is detected that the current time is before the reserved burning time, control the current optical drive to turn on and enter the sleep state.

[0061] Among them, the burning device can obtain the current time in real time, and compare the current time with the above-mentioned reserved burning time; when the burning device detects that the current time is before the reserved burning time, it can control the current optical drive in the off state to turn on and enter the sleep state to wait. When the current optical drive is in the sleep state, the current optical drive and the optical disc installed in the current optical drive do not rotate, so as to reduce the loss of the optical drive device. It can be understood that the basis for judging that the current time is before the reserved burning time can be: the user sets the turn-on time according to the actual situation and the preset burning time; for example, if the preset burning time is set to 12:00 to 18:00 and it is necessary to turn on 10 minutes in advance, then the turn-on time can be set to 11:50; then when the current time reaches the turn-on time of 11:50, control the current optical drive to turn on. Through step S212, by turning on the current optical drive in advance before the reserved burning time, the problem that the real-time recorded data in the early stage cannot be written to the optical disc in the current optical drive due to the slow start of the burning process is avoided.

[0062] Step S213, when the current time is within the range of the reserved burning time, detect whether an interrogation start instruction is received; when it is detected that the interrogation start instruction is received, in response to the interrogation start instruction, wake up the current optical drive to enter the working state.

[0063] Among them, the above-mentioned interrogation start instruction can be set by the user through interaction with the terminal device and read by the above-mentioned burning device from the terminal device, or it can also be directly set and generated by the user on the burning device; when it is detected that the above-mentioned current time reaches or is within the range of the reserved burning time, the burning device detects whether the interrogation start instruction has been received, and when the interrogation start instruction is received, wakes up the above-mentioned currently dormant optical drive to enter the working state; at this time, the burning device can burn the above-mentioned real-time recording device to the currently working optical drive.

[0064] It should be supplemented that if the above-mentioned current time has exceeded the range of the above-mentioned preset burning time for a period of time and the user has not issued the above-mentioned interrogation start instruction, the above-mentioned burning device can determine timeout and control the above-mentioned current optical drive to enter the burning process; among them, the timeout time can be set in advance by the user. For example, the user can set the timeout time to 10 minutes.

[0065] Through the above steps S211 to S214, based on the reserved burning time, the currently used optical drive is controlled to be turned on in advance before starting to burn and enter the sleep waiting state, and then waits for the user to issue the interrogation start instruction, so that the currently used optical drive can be immediately woken up to enter the working state and start burning after receiving the interrogation start instruction, thus avoiding the problem that the real-time recording data in the early stage cannot be written to the optical disc due to slow start of burning, and effectively improving the efficiency of the currently used optical drive in burning data in the early stage.

[0066] In some of these embodiments, after performing the above step S220, the above data burning method further includes the following steps:

[0067] Step S231, when the remaining capacity of the optical disc of the currently used optical drive is higher than the first preset threshold, continue to burn the above-mentioned real-time recording data to the currently used optical drive, and detect whether the remaining capacity of the optical disc of the currently used optical drive reaches the second preset threshold.

[0068] Among them, when the remaining capacity of the optical disc of the currently used optical drive is higher than the first preset threshold, it means that the capacity of the currently used optical drive is sufficient, and the real-time recording data can continue to be written to the currently used optical drive. At this time, the remaining capacity of the optical disc is further compared and detected with the above-mentioned second preset threshold.

[0069] Step S232, when the remaining capacity of the optical disc of the currently used optical drive reaches the second preset threshold, control the currently used optical drive to perform the disc closing and stopping operation.

[0070] Among them, when it is detected based on the above step S231 that the remaining capacity of the optical disc of the current optical drive reaches the second preset threshold, it indicates that a failure or omission occurs in the detection based on the first preset threshold during the data burning process. Therefore, the current optical drive can be directly stopped, and the above real-time burning data can be switched to the above backup optical drive for burning, or an alarm message can be sent to the user for prompt, and the user can replace the optical disc in the current optical drive. It should be added that in the case where the remaining capacity of the optical disc of the current optical drive is higher than the above second preset threshold, it is continuously determined whether the remaining capacity of the optical disc of the current optical drive reaches the above first preset threshold until it is detected that the remaining capacity of the optical disc of the current optical drive reaches the above first preset threshold, and then the above step S240 is continued to turn on the above backup optical drive.

[0071] Through the above steps S231 to S232, when it is detected that the remaining capacity of the optical disc of the current optical drive has not reached the first preset threshold, a secondary self-check is further performed based on the second preset threshold, and the optical drive device is controlled to perform corresponding operations according to the results of the secondary self-check, thereby avoiding data burning errors or excessive burning time caused by false detection in the first preset threshold detection stage, and effectively improving the safety and efficiency of the data burning process.

[0072] In some of the embodiments, the above step S260 further includes the following steps:

[0073] Step S261, when the remaining capacity of the optical disc of the current optical drive reaches the second preset threshold, detect whether the backup optical drive is in a sleep state.

[0074] Among them, when the remaining capacity of the optical disc of the current optical drive reaches the above second preset threshold, it indicates that the optical disc installed in the current optical drive is full or the available capacity is insufficient. Then, it is further detected whether the started backup optical drive is still in a sleep state.

[0075] Step S262, when it is detected that the backup optical drive is in a sleep state, wake up the backup optical drive to enter the working state, and switch the real-time burning data to the backup optical drive for burning; when the detection of whether the backup optical drive is in a sleep state fails, directly switch the real-time burning data to the backup optical drive for burning.

[0076] Specifically, if it is detected through the above-mentioned step S261 that the above-mentioned backup optical drive is still in the sleep state, the above-mentioned burning device can first wake up the backup optical drive, and then read the above-mentioned real-time burning data from the real-time data stream of the above-mentioned video device, and switch and burn the real-time burning data from the above-mentioned current optical drive to the backup optical drive. When the detection of whether the backup optical drive is in the sleep state fails, it indicates that the backup optical drive has entered the working state from the sleep state at this time, so there is no need to wake up the backup optical drive again, and the burning device can directly write the real-time burning data to the backup optical drive.

[0077] Through the above-mentioned steps S261 to S262, when the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold, it is further detected and judged whether the backup optical drive is in the sleep state, and the corresponding operation of the backup optical drive is controlled based on the judgment result, thereby avoiding the problem of burning errors or waste of burning time caused by the wrong state of the backup optical drive, and effectively improving the accuracy and efficiency in the data burning process.

[0078] In some of these embodiments, after performing the above-mentioned step S240, the above-mentioned data burning method further includes the following steps: when the remaining capacity of the optical disc in the current optical drive is higher than the second preset threshold, control the backup optical drive to perform a waiting operation while in the sleep state, and re-detect the comparison result between the remaining capacity of the optical disc in the current optical drive and the second preset threshold. Specifically, after controlling the backup optical drive to turn on through the above-mentioned step S240, the remaining capacity of the optical disc in the current optical drive is compared with the second preset threshold. If the comparison result is that the remaining capacity of the optical disc reaches the second preset threshold, then perform the above-mentioned step S260; if the comparison result is that the remaining capacity of the optical disc is higher than the second preset threshold, it means that the current optical drive is not full or there is still available capacity at this time. At this time, the above-mentioned real-time burning data can continue to be written to the current optical drive, and the above-mentioned burning device controls the backup optical drive to go into sleep and wait, thereby improving the accuracy of the optical drive control and further improving the accuracy in the data burning process.

[0079] In some of these embodiments, the above-mentioned burning the real-time burning data to the backup optical drive further includes the following steps: switching and burning the real-time burning data to the backup optical drive, and controlling the current optical drive to perform a disk closing and stopping operation. Among them, when waking up the backup optical drive in the sleep state to enter the working state and burning the real-time burning data to the backup optical drive, at the same time, control the current optical drive to perform a disk closing and stopping operation; it should be noted that the process of closing and stopping the current optical drive takes a long time, but since the two steps of closing and stopping the current optical drive and burning the backup optical drive can be carried out simultaneously in this embodiment, it will not affect the writing of the backup optical disc, and can further improve the safety and efficiency in the data burning process.

[0080] It should be noted that after the above-mentioned current optical drive performs the disk closing and stopping operation, since the current optical drive is already full or the available capacity of the optical disc is insufficient at this time, the user can take out the optical disc in the current optical drive and insert a new optical disc. At this time, the current optical drive serves as a new backup optical drive, while the backup optical drive in this round serves as the new current optical drive, and the next cycle of the burning process begins, thus ensuring the scalability of data burning and achieving high-precision continuous burning among at least three optical drives.

[0081] The embodiments of the present application will be described in detail below in conjunction with actual application scenarios. Figure 3 is a flowchart of a data burning method according to a preferred embodiment of the present application, as Figure 3 shown, this process includes the following steps:

[0082] Step S301, start burning; obtain the real-time data stream captured by the video device.

[0083] Step S302, start the current optical drive and start writing the real-time burning data read from the real-time data stream into the current optical drive.

[0084] Step S303, determine whether the remaining capacity of the optical disc in the current optical drive reaches a first preset threshold.

[0085] Step S304, if the judgment result of the above step S303 is no, continue to read the real-time burning data from the real-time data stream and write it into the current optical drive.

[0086] Step S305, determine whether the remaining capacity of the optical disc in the current optical drive reaches a second preset threshold to determine whether the current optical drive is full.

[0087] Step S306, if the judgment result of the above step S305 is yes, stop the current optical drive; if the judgment result of the above step S305 is no, continue to loop and execute the above step S303.

[0088] Step S307, if the judgment result of the above step S303 is yes, turn on the standby optical drive.

[0089] Step S308, after turning on the standby optical drive, determine whether the current optical drive is full.

[0090] Step S309, if the judgment result of the above step S308 is no, control the standby optical drive to enter the sleep state and wait, and continue to loop and execute the above step S308.

[0091] Step S310, if the judgment result of the above step S308 is yes, determine whether the standby optical drive is in the sleep state.

[0092] Step S311: If the judgment result in the above Step S310 is yes, wake up the standby optical drive to enter the working state, and then execute the following Step S312; if the judgment result in the above Step S310 is no, directly execute the following Step S312.

[0093] Step S312: Write the real-time recording data read from the real-time data stream into the standby optical drive, and start the next loop. Take this standby optical drive as the new current optical drive, and place a new standby optical drive, and continue to loop and execute the above Step S302.

[0094] It should be noted that the steps shown in the above process or the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0095] This embodiment also provides a data recording device, which is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, terms such as "module", "unit", "sub-unit", etc. can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0096] Figure 4 is a structural block diagram of a data recording device according to an embodiment of the present application, as Figure 4 shown, the device includes: a first recording module 42, a sleep module 44, and a second recording module 46; the first recording module 42 is used to monitor the remaining disc capacity of the current optical drive in real time during the process of burning real-time recording data to the current optical drive in the working state; the sleep module 44 is used to control the standby optical drive to turn on and enter the sleep state when the remaining disc capacity of the current optical drive reaches a first preset threshold; the second recording module 46 is used to wake up the standby optical drive in the sleep state to enter the working state when the remaining disc capacity of the current optical drive reaches a second preset threshold, and burn the real-time recording data to the standby optical drive; wherein, the second preset threshold is used to indicate the minimum remaining disc capacity preset in the current optical drive, and the second preset threshold is less than the first preset threshold.

[0097] Through the above embodiments, the sleep module 44 described above uses a preset threshold for the remaining capacity of the optical disc. When the remaining capacity of the optical disc in the current optical drive reaches the threshold, the standby optical drive is activated in advance so that when the current optical drive is full, the standby optical drive can be quickly awakened directly. And the second burning module 46 described above changes the real-time burning data from the current optical drive to burning to the standby optical drive, realizing seamless switching between multiple optical drives. There is no need to additionally use a third-party device such as a hard disk to read video data for supplementary burning, ensuring the continuity and integrity of data burning, with strong data reliability, thus solving the problems of low security and efficiency during data burning and realizing a high-precision multi-optical drive continuous burning device.

[0098] In some of the embodiments, when the current optical drive is in the closed state, the data burning device further includes an interrogation start module; the interrogation start module is used to obtain the reserved burning time; the interrogation start module obtains the current time and, when it detects that the current time is before the reserved burning time, controls the current optical drive to be turned on and enter the sleep state; the interrogation start module, when the current time is within the range of the reserved burning time, detects whether an interrogation start instruction is received; the interrogation start module, when it detects that the interrogation start instruction is received, in response to the interrogation start instruction, wakes up the current optical drive to enter the working state.

[0099] In some of the embodiments, the data burning device further includes a disc closing module; the disc closing module is used to continue burning the real-time burning data to the current optical drive when the remaining capacity of the optical disc in the current optical drive is higher than the first preset threshold, and detect whether the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold; the first disc closing module, when the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold, controls the current optical drive to perform a disc closing stop operation.

[0100] In some of the embodiments, the second burning module 46 is further used to detect whether the standby optical drive is in the sleep state when the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold; when the second burning module 46 detects that the standby optical drive is in the sleep state, it wakes up the standby optical drive to enter the working state and switches the real-time burning data to be burned to the standby optical drive.

[0101] In some of the embodiments, the second burning module 46 is further used to directly switch the real-time burning data to be burned to the standby optical drive when the detection of whether the standby optical drive is in the sleep state fails.

[0102] In some of these embodiments, the above data burning device further includes a waiting module; the waiting module is configured to, when the remaining capacity of the optical disc in the current optical drive is higher than the second preset threshold, control the standby optical drive to perform a waiting operation while in a sleep state, and re-detect the comparison result between the remaining capacity of the optical disc in the current optical drive and the second preset threshold.

[0103] In some of these embodiments, the above second burning module 46 is further configured to switch and burn the real-time burning data to the standby optical drive, and control the current optical drive to perform a disk closing and stopping operation.

[0104] It should be noted that the above-mentioned respective modules may be functional modules or program modules, and may be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned respective modules may be located in the same processor; or the above-mentioned respective modules may also be located in different processors in any combined form.

[0105] This embodiment also provides a data burning system. Figure 5 It is a structural block diagram of a data burning system according to an embodiment of the present application. As Figure 5 shown, the system includes: a current optical drive 104, a standby optical drive 106, and a main control device 52. Among them, the main control device 52 may be a computer device, a single-chip microcomputer, a server device, or other devices that are connected and installed with the current optical drive 104 and the standby optical drive 106 and are used to control the current optical drive 104 and the standby optical drive 106.

[0106] During the process of burning real-time burning data to the current optical drive that is currently in a working state by the main control device 52, the remaining capacity of the optical disc in the current optical drive 104 is monitored in real time; when the remaining capacity of the optical disc in the current optical drive 104 reaches the first preset threshold, the main control device 52 controls the standby optical drive 106 to be turned on and enter a sleep state; when the remaining capacity of the optical disc in the current optical drive 104 reaches the second preset threshold, the main control device 52 wakes up the standby optical drive 106 in the sleep state to enter a working state, and burns the real-time burning data to the standby optical drive 106; where the second preset threshold is used to indicate the minimum value of the remaining capacity of the optical disc preset in the current optical drive, and the second preset threshold is less than the first preset threshold.

[0107] Through the above embodiments, the above master device 52 uses a preset threshold of the remaining capacity of the optical disc. When the remaining capacity of the optical disc in the current optical drive 104 reaches the threshold, the standby optical drive 106 is activated in advance, so that when the current optical drive 104 is full, the standby optical drive 106 can be quickly awakened directly, and the real-time recording data can be changed from the current optical drive 104 to the standby optical drive 106 for burning, realizing seamless switching between multiple optical drives. There is no need to additionally use a third-party device such as a hard disk to read video data for supplementary burning, ensuring the continuity and integrity of data burning, and strong data reliability, thus solving the problems of low security and efficiency in the data burning process and realizing a high-precision multi-optical drive continuous burning method.

[0108] In some of these embodiments, a computer device is provided. The computer device can be a server. Figure 6 It is a structural diagram inside a computer device according to an embodiment of the present application, as Figure 6 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 database of the computer device is used to store real-time recording data. 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, the above data burning method is implemented.

[0109] Those skilled in the art can understand that Figure 6 the structure shown in

[0110] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0110] This embodiment also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0111] Optionally, the above electronic device may further include a transmission device and an input / output device. Among them, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.

[0112] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:

[0113] S1. During the process of burning real-time recording data to the current optical drive that is currently in the working state, the remaining disc capacity of the current optical drive is monitored in real time.

[0114] S2. When the remaining disc capacity of the current optical drive reaches the first preset threshold, control the standby optical drive to turn on and enter the sleep state.

[0115] S3. When the remaining disc capacity of the current optical drive reaches the second preset threshold, wake up the standby optical drive in the sleep state to enter the working state, and burn the real-time recording data to the standby optical drive; wherein, the second preset threshold is used to indicate the minimum remaining disc capacity preset in the current optical drive, and the second preset threshold is less than the first preset threshold.

[0116] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and alternative embodiments, and will not be elaborated herein.

[0117] In addition, in combination with the data burning method in the above embodiments, an embodiment of the present application can be implemented by providing a storage medium. A computer program is stored on the storage medium; when the computer program is executed by a processor, any one of the data burning methods in the above embodiments is implemented.

[0118] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. 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 methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of 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 (DDR SDRAM), 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), etc.

[0119] Those skilled in the art should understand that the technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity in description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as falling within the scope described in this specification.

[0120] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.

Claims

1. A data burning method, characterized in that, The method includes: The current optical drive is in a closed state; Obtain the reserved burning time; Obtain the current time. When it is detected that the current time is before the reserved burning time, control the current optical drive to turn on and enter the sleep state; When the current time is within the range of the reserved burning time, detect whether an opening interrogation instruction is received; When it is detected that the opening interrogation instruction is received, in response to the opening interrogation instruction, wake up the current optical drive to enter the working state; During the process of burning the real-time recording data to the current optical drive that is currently in the working state, monitor the remaining capacity of the optical disc of the current optical drive in real time; When the remaining capacity of the optical disc of the current optical drive reaches a first preset threshold, control the standby optical drive to turn on and enter the sleep state; the first preset threshold is used to indicate the remaining capacity threshold of the optical disc installed in the current optical drive, and control the standby optical drive to turn on in advance; When the remaining capacity of the optical disc of the current optical drive reaches a second preset threshold, wake up the standby optical drive in the sleep state to enter the working state, and burn the real-time recording data to the standby optical drive; wherein, the second preset threshold is used to indicate the minimum value of the remaining capacity of the optical disc preset in the current optical drive, and the second preset threshold is less than the first preset threshold; When the remaining capacity of the optical disc of the current optical drive is higher than the first preset threshold, continue to burn the real-time recording data to the current optical drive, and detect whether the remaining capacity of the optical disc of the current optical drive reaches the second preset threshold; When the remaining capacity of the optical disc of the current optical drive reaches the second preset threshold, control the current optical drive to perform a disc closing and stopping operation.

2. The data burning method according to claim 1, wherein The step of, when the remaining capacity of the optical disc of the current optical drive reaches the second preset threshold, wake up the standby optical drive in the sleep state to enter the working state, and burn the real-time recording data to the standby optical drive includes: When the remaining capacity of the optical disc of the current optical drive reaches the second preset threshold, detect whether the standby optical drive is in the sleep state; When it is detected that the standby optical drive is in the sleep state, wake up the standby optical drive to enter the working state, and switch the burning of the real-time recording data to the standby optical drive.

3. The data burning method according to claim 2, wherein After detecting whether the standby optical drive is in the sleep state, the method further includes: When the detection of whether the standby optical drive is in the sleep state fails, directly switch the burning of the real-time recording data to the standby optical drive.

4. The data burning method according to claim 1, wherein After the step of, when the remaining capacity of the optical disc of the current optical drive reaches the first preset threshold, control the standby optical drive to turn on and enter the sleep state, the method further includes: When the remaining capacity of the optical disc of the current optical drive is higher than the second preset threshold, control the standby optical drive to perform a waiting operation in the sleep state, and re-detect the comparison result between the remaining capacity of the optical disc of the current optical drive and the second preset threshold.

5. The data burning method according to any one of claims 1 to 4, characterized in that, The step of burning the real-time recording data to the standby optical drive includes: Switch and burn the real-time recording data to the backup optical drive, and control the current optical drive to perform a disk closing and stopping operation.

6. A data burning device, characterized in that, The device includes: an interrogation start module; a first burning module, a sleep module, a second burning module, and a disk closing module; The current optical drive is in a closed state; the interrogation start module is used to obtain a reserved burning time; obtain the current time, and when it is detected that the current time is before the reserved burning time, control the current optical drive to turn on and enter the sleep state; when the current time is within the range of the reserved burning time, detect whether an interrogation start instruction is received; when it is detected that the interrogation start instruction is received, in response to the interrogation start instruction, wake up the current optical drive to enter the working state; The first burning module is used to continuously monitor the remaining capacity of the optical disc in the current optical drive that is currently in the working state during the process of burning the real-time recording data to the current optical drive; The sleep module is used to control the backup optical drive to turn on and enter the sleep state when the remaining capacity of the optical disc in the current optical drive reaches a first preset threshold; the first preset threshold is used to indicate the remaining capacity threshold of the optical disc installed in the current optical drive, and to control the backup optical drive to turn on in advance; The second burning module is used to wake up the backup optical drive that is in the sleep state to enter the working state and burn the real-time recording data to the backup optical drive when the remaining capacity of the optical disc in the current optical drive reaches a second preset threshold; wherein, the second preset threshold is used to indicate the minimum value of the remaining capacity of the optical disc preset in the current optical drive, and the second preset threshold is less than the first preset threshold; The disk closing module is used to continue burning the real-time recording data to the current optical drive when the remaining capacity of the optical disc in the current optical drive is higher than the first preset threshold, and detect whether the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold; The disk closing module is further used to control the current optical drive to perform a disk closing and stopping operation when the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold.

7. A data burning system, characterized in that, The system includes: a current optical drive, a backup optical drive, and a main control device; The current optical drive is in a closed state; The main control device obtains a reserved burning time; The main control device obtains the current time, and when it is detected that the current time is before the reserved burning time, controls the current optical drive to turn on and enter the sleep state; The main control device detects whether an interrogation start instruction is received when the current time is within the range of the reserved burning time; The main control device wakes up the current optical drive to enter the working state in response to the interrogation start instruction when it is detected that the interrogation start instruction is received; The main control device continuously monitors the remaining capacity of the optical disc in the current optical drive that is currently in the working state during the process of burning the real-time recording data to the current optical drive; When the remaining capacity of the optical disc in the current optical drive reaches a first preset threshold, the master device controls the standby optical drive to turn on and enter the sleep state; the first preset threshold is used to indicate the remaining capacity threshold of the optical disc installed in the current optical drive and to control the standby optical drive to turn on in advance. When the remaining capacity of the optical disc in the current optical drive reaches a second preset threshold, the master device wakes up the standby optical drive in the sleep state to enter the working state and burns the real-time recording data to the standby optical drive; wherein, the second preset threshold is used to indicate the minimum remaining capacity of the optical disc preset in the current optical drive, and the second preset threshold is less than the first preset threshold. The master device is further configured to continue burning the real-time recording data to the current optical drive when the remaining capacity of the optical disc in the current optical drive is higher than the first preset threshold, and to detect whether the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold. The master device is further configured to control the current optical drive to perform a disc closing and stopping operation when the remaining capacity of the optical disc in the current optical drive reaches the second preset threshold.

8. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to run the computer program to execute the data burning method according to any one of claims 1 to 5.

9. A storage medium, characterized in that, A computer program is stored in the storage medium, wherein the computer program is configured to execute the data burning method according to any one of claims 1 to 5 when running.

Citation Information

Patent Citations

  • Awakening method and apparatus of hard disk

    CN106775473A

  • Data burning method and device, computing equipment and storage medium

    CN111128247A