A primary and standby CD player, a CD playback control method, and related devices

Through the design of the main and backup CD player, real-time synchronization and failover mechanism, the CD player's playback interruption caused by failure in the college entrance examination English listening test is solved, ensuring the continuity and integrity of the playback content.

CN115862689BActive Publication Date: 2025-07-22广州市迪士普音响科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211699665.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2025-07-22
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

When a CD player fails in the college entrance examination English listening test, it is easy to cause interruption of the playback content and cause huge losses.

Method used

The main and backup CD player design is adopted, and the main control module is used to synchronize the playback progress of the main and backup CD playback module in real time. When the main CD playback module is detected, the backup CD playback module is controlled to retreat from the current progress to the target progress to continue playing to ensure the continuity and integrity of the playback content.

Benefits of technology

It reduces the risk of playback errors, ensures the normal output of the playback content, and avoids content interruption caused by failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115862689B_ABST
    Figure CN115862689B_ABST
Patent Text Reader

Abstract

The present application discloses a primary and standby CD player, a CD playback control method and related devices. The method includes: after both the primary CD playback module and the standby CD playback module are turned on, obtaining the playback progress of the primary CD playback module and sending the playback progress to the standby CD playback module, where the playback progress is used to adjust the playback progress of the standby CD playback module so that the playback progress of the standby CD playback module is consistent with that of the primary CD playback module; when it is determined that the primary CD playback module fails, controlling the standby CD playback module to retreat from the current playback progress to the target playback progress and continue playing; wherein, the target playback progress differs from the current playback progress by a preset progress value, and both the primary CD playback module and the standby CD playback module play CDs with the same content. The present application reduces the risk of playback errors to a certain extent through the form of primary and standby switching, and ensures the normal output of the playback content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of CD playback, and more specifically, to a primary and standby CD player, a CD playback control method, and related devices. Background Art

[0002] CD (Compact Disk) is an early developed medium and has been widely used. Many computers, especially those manufactured earlier, are equipped with CD drives. Subsequently, with the popularity of digital media and the development of the Internet, the application scenarios of CD players have gradually decreased, but CD players are still used in in-vehicle systems, teaching, and other occasions.

[0003] In school English listening and other exams, CD players are still very important playback devices. Especially for the English listening part of the college entrance examination, it is necessary to ensure absolute safety. Once the CD player malfunctions during the college entrance examination English listening exam, it will cause huge losses to both schools and students. Summary of the Invention

[0004] In view of this, this application provides a primary and standby CD player, a CD playback control method, and related devices to reduce the risk of playback errors and ensure the normal output of playback content.

[0005] To achieve the above object, the first aspect of this application provides a CD playback control method, including:

[0006] After both the primary CD playback module and the standby CD playback module are turned on, obtain the playback progress of the primary CD playback module, and send the playback progress to the standby CD playback module. The playback progress is used to adjust the playback progress of the standby CD playback module so that the playback progress of the standby CD playback module is consistent with that of the primary CD playback module;

[0007] When it is determined that the primary CD playback module fails, control the standby CD playback module to retreat from the current playback progress to the target playback progress, and control the standby CD playback module to continue playing from the target playback progress;

[0008] Wherein, the target playback progress differs from the current playback progress by a preset progress value, and both the primary CD playback module and the standby CD playback module play CDs with the same content.

[0009] Preferably, the process of obtaining the playback progress of the primary CD playback module after both the primary CD playback module and the standby CD playback module are turned on includes:

[0010] Receives the initial progress information from the main CD player module and forwards the initial progress information to the backup CD player module, where the initial progress information includes the playing progress of the main CD player module when sending the initial progress information.

[0011] Preferably, the process of determining that the main CD player module fails includes:

[0012] After receiving the first heartbeat information from the main CD player module, clear the preset count value variable and make the count value variable start counting again. The first heartbeat information is sent by the main CD player module according to a preset period;

[0013] When the time expressed by the count value variable reaches the preset time value, it is determined that the main CD player module fails.

[0014] Preferably, the process of controlling the backup CD player module to retreat from the current playing progress to the target playing progress includes:

[0015] Send a backward playing instruction to the backup CD player module, where the backward playing instruction is used to notify the backup CD player module to retreat from the current playing progress to the target playing progress;

[0016] Wherein, the time length of the preset progress value is equal to the preset time value.

[0017] Preferably, the preset period is 1 second and the preset time value is 3 seconds.

[0018] Preferably, the first heartbeat information includes the first playing progress of the main CD player module when sending the first heartbeat information, and the method further includes:

[0019] Receive the second heartbeat information from the backup CD player module. The second heartbeat information is sent by the backup CD player module according to the preset period, and the second heartbeat information includes the second playing progress of the backup CD player module when sending the second heartbeat information;

[0020] Judge whether the first playing progress is consistent with the second playing progress;

[0021] If not, send the first playing progress to the backup CD player module, where the first playing progress is used to adjust the playing progress of the backup CD player module so that the playing progress of the backup CD player module is consistent with the playing progress of the main CD player module.

[0022] The second aspect of the present application provides a main - backup CD player, including a main control module and a main CD player module, a backup CD player module, a display screen and a key module connected to the main control module;

[0023] The main CD playback module is configured to send initial progress information to the main control module and send first heartbeat information to the main control module at a preset period.

[0024] The backup CD playback module is configured to send second heartbeat information to the main control module at the preset period, receive and process a rewind playback instruction, initial progress information, and a first playback progress from the main control module.

[0025] The main control module is configured to implement each step of the above CD playback control method.

[0026] The display screen is configured to display playback information.

[0027] The key module is configured to input manual control information.

[0028] A third aspect of the present application provides a CD playback control device, including:

[0029] An initial progress synchronization unit, configured to, after both the main CD playback module and the backup CD playback module are turned on, obtain the playback progress of the main CD playback module and send the playback progress to the backup CD playback module, where the playback progress is used to adjust the playback progress of the backup CD playback module so that the playback progress of the backup CD playback module is consistent with that of the main CD playback module.

[0030] A playback module switching unit, configured to, when it is determined that the main CD playback module fails, control the backup CD playback module to rewind from the current playback progress to a target playback progress and control the backup CD playback module to continue playing from the target playback progress.

[0031] Wherein, the target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the backup CD playback module play CDs with the same content.

[0032] A fourth aspect of the present application provides a CD playback control device, including: a memory and a processor;

[0033] The memory is configured to store a program.

[0034] The processor is configured to execute the program to implement each step of the above CD playback control method.

[0035] A fifth aspect of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each step of the above simulation task result comparison method is implemented.

[0036] As can be seen from the above technical solutions, in the CD playback control method provided in this application, after both the main CD playback module and the standby CD playback module are turned on, the playback progress of the main CD playback module is obtained and sent to the standby CD playback module. The playback progress is used to adjust the playback progress of the standby CD playback module so that the playback progress of the standby CD playback module is the same as that of the main CD playback module. When it is determined that the main CD playback module fails, the standby CD playback module is controlled to retreat from the current playback progress to the target playback progress, and the standby CD playback module is controlled to continue playing from the target playback progress. Since there is a certain time deviation between the moment when the failure of the main CD playback module is detected and the moment when the main CD playback module fails. By controlling the standby CD playback module to retreat to the target playback progress, the content that the main CD playback module has not played can be avoided from being missed, ensuring the continuity and integrity of the playback content. The target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the standby CD playback module play CDs with the same content. Through the form of main-standby switching, this application reduces the risk of playback errors to a certain extent and ensures the normal output of the playback content. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0038] Figure 1 Schematic diagram of the main-standby CD player disclosed in the embodiment of the present application;

[0039] Figure 2 Schematic diagram of the CD playback control method disclosed in the embodiment of the present application;

[0040] Figure 3 Illustrates the process of obtaining the playback progress of the main CD playback module disclosed in the embodiment of the present application;

[0041] Figure 4 Illustrates the schematic diagram of the main CD playback module regularly sending heartbeat information to the main control module disclosed in the embodiment of the present application;

[0042] Figure 5 Illustrates the schematic diagram of the process of synchronizing the main / standby CD playback modules disclosed in the embodiment of the present application;

[0043] Figure 6 Schematic diagram of the CD playback control method device disclosed in the embodiment of the present application;

[0044] Figure 7 Schematic diagram of the CD playback control method and device disclosed in the embodiments of the present application. Specific embodiments

[0045] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0046] Next, the main and standby CD players provided in the embodiments of the present application will be introduced. Please refer to Figure 1 , the main and standby CD players provided in the embodiments of the present application may include a main control module 20, and a main CD playback module 10, a standby CD playback module 40, a display screen 50, and a key module 60 connected to the main control module 20.

[0047] Among them, the main CD playback module 10 is used to send initial progress information to the main control module 20, and send first heartbeat information to the main control module 20 at a preset period.

[0048] Among them, after the main CD playback module 10 enters the playback, it will send its initial progress information to the main control module 20. The main control module 20 will record the initial progress information and use it to synchronize the playback progress of the standby CD playback module 40. The first heartbeat information is sent regularly at a preset period to facilitate the main control module 20 to know the working state of the main CD playback module 10. The preset period may be time values such as 0.5 seconds, 1 second, 2 seconds, etc.

[0049] The standby CD playback module 40 is used to send second heartbeat information to the main control module 20 at the preset period, and receive and process the fast-back playback instruction, initial progress information, and first playback progress from the main control module 20.

[0050] It can be understood that after the main CD playback module 10 and the standby CD playback module are turned on, they play CDs with the same content. Normally, only the sound of the main CD playback module can be output normally. The moment when the standby CD playback module 40 sends the second heartbeat information is consistent with that of the main CD playback module 10. Exemplarily, the initial sending moment can be synchronized, and then regular sending is performed according to the same period.

[0051] Exemplarily, the main control module 20 can be integrated with an ARM Cortex A7 main control chip. The main control module 20 is used to coordinate and control the playback progress of the standby CD playback module 40, so that the playback progress of the standby CD playback module 40 is consistent with that of the main CD playback module 10. At the same time, the main control module 20 is also used to continuously track the working state of the main CD playback module 10. When it is detected that the main CD playback module 10 fails, it controls to switch to the standby CD playback module 40, and outputs the sound of the standby CD playback module to the speaker device, and the standby CD playback module 40 is responsible for playing. It can be understood that the speaker device can be a speaker, a headphone and other devices.

[0052] The display screen 50 is used to display playback information. Exemplarily, the display screen 50 can be a segment code liquid crystal display screen, which can display information such as program serial number, program name, playback mode, and current program progress.

[0053] The button module 60 is used to input manual control information. Exemplarily, the manual control information can be used to manually set the main and standby playback units, playback control (play, pause, stop, fast forward, rewind, previous song, next song, playback mode switching), song selection, control the CD disc to eject / load, and other functions.

[0054] Next, the CD playback control method provided by the embodiment of the present application will be introduced. The CD playback control method is applied to the main control module 20. Please refer to Figure 2 , the CD playback control method provided by the embodiment of the present application may include the following steps:

[0055] Step S101, after both the main CD playback module and the standby CD playback module are turned on, obtain the playback progress of the main CD playback module, and send the playback progress to the standby CD playback module.

[0056] Among them, considering that there will be a certain time deviation in the moment when the CD discs are placed in the main CD playback module and the standby CD playback module, the playback progress of the main CD playback module can be used to adjust the playback progress of the standby CD playback module, so that the playback progress of the standby CD playback module is consistent with that of the main CD playback module.

[0057] Step S102, after it is determined that the main CD playback module fails, control the standby CD playback module to retreat from the current playback progress to the target playback progress, and control the standby CD playback module to continue playing from the target playback progress.

[0058] Among them, the target playback progress and the current playback progress differ by a preset progress value, and both the main CD playback module and the standby CD playback module play CDs with the same content.

[0059] It can be understood that both the main CD playback module and the backup CD playback module play two CD discs with the same content. When the main CD playback module is operating normally, only the audio of the main CD playback module is normally output to the speaker device. In addition, after the processing of the playback progress in step S101, the playback progress of the backup CD playback module is consistent with that of the main CD playback module. When it is determined that the main CD playback module fails, it is necessary to switch the audio to the backup CD playback module and output the audio of the backup CD playback module to the speaker device. Since there is a certain time difference between the moment when the failure of the main CD playback module is detected and the moment when the main CD playback module actually fails, it is necessary to roll back the playback progress of the backup CD playback module to a certain extent, so that the audio heard by the user can be relatively continuous and complete.

[0060] In the CD playback control method provided in this application, after both the main CD playback module and the backup CD playback module are turned on, the playback progress of the main CD playback module is obtained and sent to the backup CD playback module, where the playback progress is used to adjust the playback progress of the backup CD playback module so that the playback progress of the backup CD playback module is consistent with that of the main CD playback module. When it is determined that the main CD playback module fails, the backup CD playback module is controlled to retreat from the current playback progress to the target playback progress, and the backup CD playback module is controlled to continue playing from the target playback progress. Since there is a certain time deviation between the moment when the failure of the main CD playback module is detected and the moment when the main CD playback module fails. By controlling the backup CD playback module to retreat to the target playback progress, it is possible to avoid missing the content not played by the main CD playback module and ensure the continuity and integrity of the playback content. Wherein, the target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the backup CD playback module play CDs with the same content. This application reduces the risk of playback errors to a certain extent through the main-backup switching form and ensures the normal output of the playback content.

[0061] In some embodiments of this application, please refer to Figure 3 , the process of step S101 for obtaining the playback progress of the main CD playback module after both the main CD playback module and the backup CD playback module are turned on may include:

[0062] Receive the initial progress information from the main CD playback module and forward the initial progress information to the backup CD playback module.

[0063] Wherein, the initial progress information includes the playback progress of the main CD playback module when the initial progress information is sent.

[0064] After the main CD player module and the backup CD player module are respectively loaded with the same CD disc, there is a certain deviation in the loading time. Therefore, at the beginning of playback, the main CD player module needs to send the playback progress information to the main control module, and then the main control module forwards it to the backup CD player module. The backup CD player module will adjust its own playback progress to be consistent according to the received progress information.

[0065] Please refer to Figure 4 , during the normal operation and playback process, the main CD player module will actively send a heartbeat message to the main control module at regular intervals, and then the main control module will record the most recent heartbeat time of the main CD player module.

[0066] When the main CD player module fails and stops running, it will stop sending heartbeat messages to the main control module. When the main control module fails to receive heartbeat messages for a certain period of time, it will promptly notify the backup CD player module.

[0067] Based on this, in some embodiments of the present application, the process of determining that the main CD player module has failed in step S102 may include:

[0068] S1. After receiving the first heartbeat message from the main CD player module, clear the preset count variable and start counting again for the count variable.

[0069] S2. When the time represented by the count variable reaches the preset time value, determine that the main CD player module has failed.

[0070] Wherein, the first heartbeat message is sent by the main CD player module according to a preset period. Exemplarily, the preset period can be 1 second, and the preset time value can be 3 seconds.

[0071] The time t represented by the calculation of the count variable can be calculated using the following formula:

[0072] t = count · T c

[0073] Wherein, count is the value of the count variable, and T c is the counting period.

[0074] In some embodiments of the present application, the process of step S102 for controlling the backup CD player module to retreat from the current playback progress to the target playback progress may include:

[0075] Send a playback rollback instruction to the backup CD player module.

[0076] Wherein, the backward playback instruction is used to notify the backup CD playback module to retreat from the current playback progress to the target playback progress; the time length of the preset progress value mentioned in step S102 is equal to the preset time value.

[0077] Exemplarily, assume that the preset period is 1 second, that is, the main CD playback module sends a heartbeat message to the main control module every 1 second. When the main control module fails to receive the heartbeat message sent by the main CD playback module for 3 consecutive times, it is considered that the main CD playback module has failed. Therefore, the preset time value can be set to 3 seconds, that is, control the backup CD playback module to roll back 3 seconds from the current playback progress and retreat to the playback progress 3 seconds ago.

[0078] In some cases, even if the initial playback progress of the main CD playback module and the backup CD playback module remains the same, there will be a deviation in the playback progress later.

[0079] Based on this, please also refer to Figure 5 In some embodiments of the present application, the first heartbeat message mentioned in the above S2 includes the first playback progress of the main CD playback module when sending the first heartbeat message. The CD playback control method provided by the embodiments of the present application may further include:

[0080] Step S103, receiving a second heartbeat message from the backup CD playback module.

[0081] Wherein, the second heartbeat message is sent by the backup CD playback module according to the aforementioned preset period, and it includes the second playback progress of the backup CD playback module when sending the second heartbeat message.

[0082] Step S104, determining whether the first playback progress is the same as the second playback progress. If not, execute step S105.

[0083] As mentioned above, by synchronizing the initial sending time and then sending regularly according to the same period, when determining whether the playback progress of the two is the same, it can be directly determined by the received playback progress to obtain the result of whether they are the same. In addition, it is also possible not to synchronize the sending timing of the first heartbeat message and the second heartbeat message. The main control module determines whether the playback progress of the two is the same through simple calculations based on the first playback progress and the reception time of the main CD playback module received, and the second playback progress and the reception time of the backup CD playback module.

[0084] Step S105, sending the first playback progress to the backup CD playback module.

[0085] Wherein, the first playback progress is used to adjust the playback progress of the backup CD playback module so that the playback progress of the backup CD playback module is the same as that of the main CD playback module.

[0086] The CD playback control device provided by the embodiments of the present application will be described below. The CD playback control device described below can be correspondingly referred to the CD playback control method described above.

[0087] Please refer to Figure 6 , the CD playback control device provided by the embodiments of the present application may include:

[0088] An initial progress synchronization unit 21, configured to obtain the playback progress of the main CD playback module after both the main CD playback module and the standby CD playback module are turned on, and send the playback progress to the standby CD playback module, where the playback progress is used to adjust the playback progress of the standby CD playback module so that the playback progress of the standby CD playback module is consistent with the playback progress of the main CD playback module;

[0089] A playback module switching unit 22, configured to control the standby CD playback module to retreat from the current playback progress to the target playback progress when it is determined that the main CD playback module fails, and control the standby CD playback module to continue playing from the target playback progress;

[0090] Wherein, the target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the standby CD playback module play CDs with the same content.

[0091] In some embodiments of the present application, the process by which the initial progress synchronization unit 21 obtains the playback progress of the main CD playback module after both the main CD playback module and the standby CD playback module are turned on may include:

[0092] Receiving initial progress information from the main CD playback module and forwarding the initial progress information to the standby CD playback module, where the initial progress information includes the playback progress of the main CD playback module when sending the initial progress information.

[0093] In some embodiments of the present application, the process by which the playback module switching unit 22 determines that the main CD playback module fails may include:

[0094] After receiving the first heartbeat information from the main CD playback module, clearing a preset count value variable and causing the count value variable to start counting again, where the first heartbeat information is sent by the main CD playback module at a preset period;

[0095] When the time represented by the count value variable reaches a preset time value, it is determined that the main CD playback module fails.

[0096] In some embodiments of the present application, the process in which the playback module switching unit 22 controls the standby CD playback module to retreat from the current playback progress to the target playback progress may include:

[0097] Sending a backward playback instruction to the standby CD playback module, where the backward playback instruction is used to notify the standby CD playback module to retreat from the current playback progress to the target playback progress;

[0098] Wherein, the time length of the preset progress value is equal to the preset time value.

[0099] In some embodiments of the present application, the preset period is 1 second and the preset time value is 3 seconds.

[0100] In some embodiments of the present application, the first heartbeat information includes the first playback progress of the main CD playback module when sending the first heartbeat information. The CD playback control device may further include a playback progress synchronization unit for:

[0101] Receiving second heartbeat information from the standby CD playback module, where the second heartbeat information is sent by the standby CD playback module according to the preset period, and the second heartbeat information includes the second playback progress of the standby CD playback module when sending the second heartbeat information;

[0102] Judging whether the first playback progress is consistent with the second playback progress;

[0103] If not, sending the first playback progress to the standby CD playback module, where the first playback progress is used to adjust the playback progress of the standby CD playback module so that the playback progress of the standby CD playback module is consistent with the playback progress of the main CD playback module.

[0104] The CD playback control device provided by the embodiments of the present application can be applied to CD playback control devices, such as computers, etc. Optionally, Figure 7 shows a hardware structure block diagram of the CD playback control device. Referring to Figure 7 , the hardware structure of the CD playback control device may include: at least one processor 31, at least one communication interface 32, at least one memory 33, and at least one communication bus 34.

[0105] In the embodiments of the present application, the number of the processor 31, the communication interface 32, the memory 33, and the communication bus 34 is at least one, and the processor 31, the communication interface 32, and the memory 33 communicate with each other through the communication bus 34;

[0106] The processor 31 may be a central processing unit (CPU), or a specific application integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, etc.;

[0107] The memory 33 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory;

[0108] Among them, the memory 33 stores a program, and the processor 31 can call the program stored in the memory 33. The program is used for:

[0109] After both the main CD playback module and the backup CD playback module are turned on, obtain the playback progress of the main CD playback module, and send the playback progress to the backup CD playback module. The playback progress is used to adjust the playback progress of the backup CD playback module so that the playback progress of the backup CD playback module is consistent with that of the main CD playback module;

[0110] When it is determined that the main CD playback module fails, control the backup CD playback module to retreat from the current playback progress to the target playback progress, and control the backup CD playback module to continue playing from the target playback progress;

[0111] Among them, the target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the backup CD playback module play CDs with the same content.

[0112] Optionally, the refined functions and extended functions of the program can be referred to the above description.

[0113] The embodiments of the present application further provide a storage medium, which can store a program suitable for being executed by a processor. The program is used for:

[0114] After both the main CD playback module and the backup CD playback module are turned on, obtain the playback progress of the main CD playback module, and send the playback progress to the backup CD playback module. The playback progress is used to adjust the playback progress of the backup CD playback module so that the playback progress of the backup CD playback module is consistent with that of the main CD playback module;

[0115] When it is determined that the main CD playback module fails, control the backup CD playback module to retreat from the current playback progress to the target playback progress, and control the backup CD playback module to continue playing from the target playback progress;

[0116] Among them, the target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the backup CD playback module play CDs with the same content.

[0117] Optionally, the refinement function and the expansion function of the program can be referred to the above description.

[0118] In summary:

[0119] In the CD playback control method provided in this application, after both the main CD playback module and the backup CD playback module are turned on, the playback progress of the main CD playback module is obtained and sent to the backup CD playback module. Among them, the playback progress is used to adjust the playback progress of the backup CD playback module so that the playback progress of the backup CD playback module is consistent with that of the main CD playback module. When it is determined that the main CD playback module fails, the backup CD playback module is controlled to retreat from the current playback progress to the target playback progress, and the backup CD playback module is controlled to continue playing from the target playback progress. Since there is a certain time deviation between the moment when the failure of the main CD playback module is detected and the moment when the main CD playback module fails. By controlling the backup CD playback module to retreat to the target playback progress, it is possible to avoid missing the content that the main CD playback module has not played, ensuring the continuity and integrity of the playback content. Among them, the target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the backup CD playback module play CDs with the same content. This application reduces the risk of playback errors to a certain extent through the form of primary and backup switching, ensuring the normal output of the playback content.

[0120] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the element.

[0121] The various embodiments in this specification are described in a progressive manner. The key points of each embodiment are the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0122] The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A CD playback control method, characterized in that, Including: After both the main CD playback module and the backup CD playback module are turned on, obtain the playback progress of the main CD playback module, and send the playback progress to the backup CD playback module. The playback progress is used to adjust the playback progress of the backup CD playback module so that the playback progress of the backup CD playback module is consistent with that of the main CD playback module; When it is determined that the main CD playback module has a fault, control the backup CD playback module to retreat from the current playback progress to the target playback progress, and control the backup CD playback module to continue playing from the target playback progress, including: sending a backward playback instruction to the backup CD playback module, and the backward playback instruction is used to notify the backup CD playback module to retreat from the current playback progress to the target playback progress; Among them, the process of determining that the main CD playback module has a fault includes: After receiving the first heartbeat information from the main CD playback module, clear the preset count value variable and make the count value variable start counting again. The first heartbeat information is sent by the main CD playback module according to a preset period; When the time represented by the count value variable reaches the preset time value, determine that the main CD playback module has a fault; Among them, the target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the backup CD playback module play CDs with the same content; among them, the time length of the preset progress value is equal to the preset time value.

2. The method according to claim 1, characterized in that After both the main CD playback module and the backup CD playback module are turned on, the process of obtaining the playback progress of the main CD playback module includes: Receive the initial progress information from the main CD playback module, and forward the initial progress information to the backup CD playback module. The initial progress information includes the playback progress of the main CD playback module when sending the initial progress information.

3. The method according to claim 1, wherein The preset period is 1 second, and the preset time value is 3 seconds.

4. The method according to claim 1, characterized in that The first heartbeat information includes the first playback progress of the main CD playback module when sending the first heartbeat information. The method further includes: Receive the second heartbeat information from the backup CD playback module. The second heartbeat information is sent by the backup CD playback module according to the preset period, and the second heartbeat information includes the second playback progress of the backup CD playback module when sending the second heartbeat information; Judge whether the first playback progress is consistent with the second playback progress; If not, send the first playback progress to the backup CD playback module, and the first playback progress is used to adjust the playback progress of the backup CD playback module so that the playback progress of the backup CD playback module is consistent with that of the main CD playback module.

5. A main and standby CD player, characterized in that, Including a main control module and a main CD playback module, a backup CD playback module, a display screen, and a key module connected to the main control module; The main CD playback module is used to send the initial progress information to the main control module and send the first heartbeat information to the main control module according to a preset period; The standby CD playback module is configured to send second heartbeat information to the main control module according to the preset period, and receive and process the fallback playback instruction, the initial progress information, and the first playback progress from the main control module; The main control module is configured to implement each step of the CD playback control method according to any one of claims 1 to 4; The display screen is configured to display playback information; The button module is configured to input manual control information.

6. A CD playback control device, characterized in that, It includes: An initial progress synchronization unit, configured to, after both the main CD playback module and the standby CD playback module are turned on, obtain the playback progress of the main CD playback module, and send the playback progress to the standby CD playback module, where the playback progress is used to adjust the playback progress of the standby CD playback module so that the playback progress of the standby CD playback module is consistent with that of the main CD playback module; A playback module switching unit, configured to, when it is determined that the main CD playback module fails, control the standby CD playback module to retreat from the current playback progress to the target playback progress, and control the standby CD playback module to continue playing from the target playback progress; it includes: sending a fallback playback instruction to the standby CD playback module, where the fallback playback instruction is used to notify the standby CD playback module to retreat from the current playback progress to the target playback progress; Among them, the process of determining that the main CD playback module fails includes: After receiving the first heartbeat information from the main CD playback module, clearing the preset count value variable and causing the count value variable to start counting again, where the first heartbeat information is sent by the main CD playback module according to a preset period; When the time represented by the count value variable reaches the preset time value, it is determined that the main CD playback module fails; Among them, the target playback progress differs from the current playback progress by a preset progress value, and both the main CD playback module and the standby CD playback module play CDs with the same content; where the time length of the preset progress value is equal to the preset time value.

7. A CD playback control device, characterized in that, It includes: A memory and a processor; The memory is configured to store programs; The processor is configured to execute the program to implement each step of the CD playback control method according to any one of claims 1 to 4.

8. A storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, it implements each step of the CD playback control method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Disk reproduction device and method

    JP1998283733A

  • High availability and failover

    US20160210209A1