Motion anomaly detection method and vehicle-mounted sound equipment
By using photoelectric sensors to monitor the motor's motion status in car audio systems, replacing high-cost encoders, low-cost motor anomaly detection is achieved, simplifying the installation and debugging process and reducing detection costs.
Patent Information
- Application Number
- CN202511074617.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-07
AI Technical Summary
Traditional motor motion anomaly detection relies on high-cost encoders, resulting in high detection costs and complex installation and debugging processes.
By replacing the encoder with a photoelectric sensor, motor abnormalities can be detected by monitoring the blocking of trigger signals during the movement of transmission components, thus simplifying hardware and software design.
It reduces the overall cost of detecting abnormal motor motion, simplifies the installation and commissioning process, and improves the feasibility and economy of detection.
Smart Images

Figure CN120907433A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of car audio, in particular to a motion abnormality detection method and a car audio. BACKGROUND
[0002] With the continuous progress of automobile intelligence, car audio has become an indispensable key component of intelligent cockpit. Through its up / down and left / right steering functions, car audio can realize flexible adjustment of sound field and support users to select different sound field modes through the central control interface or mobile terminal. According to the user's selection, the car audio drives the internal motor to rotate the sound unit to the target position, thereby realizing automatic sound field direction adjustment and providing users with more personalized and comfortable auditory experience.
[0003] In the process of motor motion, detecting whether the motor has abnormal motion is an important link to ensure the stable operation of the system. Traditional motor motion abnormality detection usually relies on special encoders (such as optical or magnetic encoders) to achieve. By installing an encoder on the motor shaft or transmission component, the angular position or displacement of the motor rotor is monitored in real time, and the system can determine whether the motor has an abnormality and trigger the corresponding safety mechanism, such as stopping motion or resetting to a safe position.
[0004] However, at the hardware level, the encoder itself is expensive, and its installation location requires precision, and the debugging process (such as calibration) is tedious, often requiring the operation of professional technical personnel; at the software level, the high-frequency position signal output by the encoder needs to be processed in real time to calculate the motion state (such as speed, rotation speed), and complex multi-condition abnormality determination is required, resulting in high algorithm complexity and high development and maintenance cost, which all lead to high detection cost. Therefore, how to reduce the detection cost of motor motion abnormality detection has become a technical problem to be solved. SUMMARY
[0005] The main purpose of the present application is to provide a motion abnormality detection method and a car audio, aiming to solve the technical problem of how to reduce the detection cost of motor motion abnormality detection.
[0006] To achieve the above-mentioned purpose, the present application provides a motion abnormality detection method, which is applied to a car audio, the car audio comprising a sound unit, a motor, a transmission component, a shielding component and a photoelectric sensor, the motor and the transmission component being in transmission connection, the transmission component and the sound unit being in transmission connection, the shielding component being arranged on the transmission component, and the photoelectric sensor being arranged in the motion stroke of the transmission component, the motion abnormality detection method comprising:
[0007] monitoring a blocking trigger signal output by the photoelectric sensor during movement of the motor, wherein the photoelectric sensor is blocked by the blocking component to output the blocking trigger signal when the transmission component moves to a detection position corresponding to the photoelectric sensor;
[0008] If the blocking trigger signal output by the photoelectric sensor is not monitored within a preset time period from the start of movement of the motor, it is determined that the motor has a movement abnormality.
[0009] In an embodiment, the movement of the motor is rotation, and the photoelectric sensor is arranged at a movement starting point of the transmission component. Before the step of monitoring the blocking trigger signal of the photoelectric sensor during movement of the motor, the method further comprises:
[0010] In response to a product power-on instruction, the motor is controlled to rotate in a first rotation direction to monitor the blocking trigger signal output by the photoelectric sensor during rotation of the motor.
[0011] When the motor rotates in the first rotation direction, the transmission component moves in a direction close to the movement starting point.
[0012] In an embodiment, the movement of the motor is rotation, and the photoelectric sensor includes a first photoelectric sensor arranged at a movement starting point of the transmission component and a second photoelectric sensor arranged at a movement ending point of the transmission component. Before the step of monitoring the blocking trigger signal of the photoelectric sensor during movement of the motor, the method further comprises:
[0013] In response to a sound field direction adjustment instruction, the motor is controlled to rotate based on the sound field direction adjustment instruction to monitor a blocking trigger signal output by a target photoelectric sensor during rotation of the motor.
[0014] When the motor rotates in a first rotation direction, the target photoelectric sensor is the first photoelectric sensor, and when the motor rotates in a second rotation direction, the target photoelectric sensor is the second photoelectric sensor.
[0015] When the motor rotates in the first rotation direction, the transmission component moves in a direction close to the movement starting point, and when the motor rotates in the second rotation direction, the transmission component moves in a direction close to the movement ending point.
[0016] In an embodiment, after the step of monitoring the blocking trigger signal of the photoelectric sensor during movement of the motor, the method further comprises:
[0017] if a shielding trigger signal output by the target photoelectric sensor is monitored within a preset time period from the start of rotation of the motor, corresponding rotation calibration data is obtained based on a current rotation direction of the motor, wherein the rotation calibration data is first rotation calibration data or second rotation calibration data;
[0018] the motor is controlled to continue rotating in the current rotation direction based on the rotation calibration data;
[0019] The first rotation calibration data is the number of pulses output by the motor between the time when the first photoelectric sensor starts to output a shielding trigger signal and the time when the sound generating unit moves to a first target position. The second rotation calibration data is the number of pulses output by the motor between the time when the second photoelectric sensor starts to output a shielding trigger signal and the time when the sound generating unit moves to a second target position.
[0020] The sound generating unit is in a storage state when it moves to the first target position, and the sound generating unit is in an extended state when it moves to the second target position.
[0021] In an embodiment, before the step of obtaining corresponding rotation calibration data based on the rotation direction of the motor, the method further comprises:
[0022] In response to a position calibration instruction, the motor is controlled to rotate in the first rotation direction;
[0023] In the case that a shielding trigger signal output by the first photoelectric sensor is monitored during the rotation of the motor, it is detected by an external calibration instrument whether the sound generating unit moves to the first target position;
[0024] In the case that the sound generating unit does not move to the first target position, the motor continues to rotate until the sound generating unit moves to the first target position, and the first rotation calibration data is recorded.
[0025] In an embodiment, after the step of detecting whether the sound generating unit moves to the first target position by the external calibration instrument, the method further comprises:
[0026] In the case that the sound generating unit moves to the first target position, the motor is controlled to rotate in the second rotation direction;
[0027] In the case that a shielding trigger signal output by the second photoelectric sensor is monitored during the rotation of the motor, it is detected by the external calibration instrument whether the sound generating unit moves to the second target position;
[0028] In a case where the sound generating unit does not move to the second target position, the rotation of the motor is continuously controlled until the sound generating unit moves to the second target position, and second rotation calibration data is recorded.
[0029] In an embodiment, after the step of determining the motor movement abnormality, the method further comprises:
[0030] generating a movement abnormality log and reporting the movement abnormality log.
[0031] In addition, to achieve the above object, the present application also provides a vehicle-mounted sound system, which comprises a processor, a sound generating unit, a motor, a transmission component, a shielding component and a photoelectric sensor, the processor is connected with the motor and the photoelectric sensor respectively, the motor is in transmission connection with the transmission component, the transmission component is in transmission connection with the sound generating unit, the shielding component is arranged on the transmission component, the photoelectric sensor is arranged in the movement stroke of the transmission component, and the processor is used to execute the steps of the movement abnormality detection method.
[0032] In an embodiment, the transmission component comprises a lead screw and a sliding block, the lead screw is in slidable connection with the sliding block, the sliding block is in transmission connection with the sound generating unit, and the photoelectric sensor is arranged in the movement stroke of the sliding block.
[0033] In an embodiment, the shielding component is a baffle, and the baffle is arranged on the sliding block.
[0034] In addition, to achieve the above object, the present application also provides a readable storage medium, which is a computer readable storage medium, and a computer program is stored on the computer readable storage medium, the computer program is executed by a processor to realize the steps of the movement abnormality detection method.
[0035] The present application also provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to realize the steps of the movement abnormality detection method.
[0036] The one or more technical solutions provided by the present application have at least the following technical effects:
[0037] The application sets an optical sensor in the motion stroke of the transmission component of the vehicle audio, and uses the shielding trigger signal of the optical sensor to monitor the motion state of the motor. On the hardware level, the optical sensor with relatively simple structure and lower cost is used as the detection element, and the installation position requirement of the optical sensor (located in the motion stroke of the transmission component) is relatively loose. The debugging process (mainly to ensure that the shielding of the shielding component can be detected) is much simpler than the calibration of the precision encoder, and it can be usually completed without relying on highly professional technical personnel, thereby reducing the hardware cost of motion abnormality detection. On the software level, a simple "shielding trigger signal" event is generated by monitoring whether the shielding component provided on the transmission component shields the light of the optical sensor during the motion process of the transmission component. This design greatly simplifies the detection mechanism. Based on the simple signal event (whether shielding occurs) and the fixed time window judgment logic, the algorithm implementation is also simpler compared with processing the precise position signal of the encoder, thereby reducing the software cost of motion abnormality detection. In this way, by using the low-cost optical sensor to replace the high-cost encoder, and using the shielding trigger signal generated by the optical sensor to combine the preset time length for simple software logic abnormality judgment, the overall detection cost of motor motion abnormality detection is reduced under the premise of ensuring the effectiveness of the basic abnormality detection function (such as jamming and transmission failure). BRIEF DESCRIPTION OF DRAWINGS
[0038] The accompanying drawings, which are incorporated into and form a part of the specification, illustrate an embodiment consistent with the present application and, together with the description, serve to explain the principles of the application.
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings required to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without creative labor.
[0040] Figure 1 The structural schematic diagram of the vehicle audio involved in the embodiments of the present application;
[0041] Figure 2 The flowchart of the first embodiment of the motion abnormality detection method of the present application;
[0042] Figure 3 The flowchart of the third embodiment of the motion abnormality detection method of the present application;
[0043] Figure 4 Another flowchart of the third embodiment of the motion abnormality detection method of the present application;
[0044] Figure 5 The motion abnormality detection flowchart involved in an embodiment of the motion abnormality detection method of the present application;
[0045] Figure 6 A device structure schematic diagram of a hardware running environment involved in a motion abnormality detection method in embodiments of the present application.
[0046] The object implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings.
[0047] The drawing serial number is explained as follows:
[0048] 101, first photoelectric sensor; 102, second photoelectric sensor; 201, screw rod; 202, sliding block; 30, motor; 40, baffle. DETAILED DESCRIPTION
[0049] In order to make the above object, features and advantages of the present application more apparent and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the 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. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0050] For convenience of description, the structure of the vehicle audio involved in the motion abnormality detection method of the present application is schematically described as follows.
[0051] The vehicle audio comprises a sound generating unit, a motor, a transmission component, a shielding component and a photoelectric sensor, the motor is in transmission connection with the transmission component, the transmission component is in transmission connection with the sound generating unit, the shielding component is arranged on the transmission component, and the photoelectric sensor is arranged in the motion stroke of the transmission component.
[0052] The sound generating unit is used for outputting sound to provide audio signals to the user, and can be a loudspeaker in particular.
[0053] The transmission component is connected with the motor and the sound generating unit respectively, so as to transmit the motion (such as rotation) of the motor to the sound generating unit, thereby driving the sound generating unit to move, such as rotate.
[0054] The shielding component is arranged on the transmission component and is fixedly arranged on the transmission component, and moves synchronously with the transmission component, and is used for shielding the photoelectric sensor when the transmission component moves to a specific position.
[0055] The photoelectric sensor is arranged in the movement stroke of the transmission component and has a corresponding detection position. When the transmission component moves to the detection position, the shielding component on the transmission component partially or completely blocks the effective light path of the photoelectric sensor (i.e. is shielded), resulting in a change in the output state of the photoelectric sensor. In a popular way, when the transmission component passes through the photoelectric sensor during its movement, the shielding component will shield the photoelectric sensor, and the detection position refers to the position of the transmission component when the shielding component can shield the photoelectric sensor.
[0056] Further, the photoelectric sensor can be divided into active or passive according to its working principle. The active photoelectric sensor refers to a sensor containing a light source emitter and a light receiver, which works by detecting whether the light beam emitted by itself is blocked or reflected. When the photoelectric sensor is an active photoelectric sensor, the photoelectric sensor being shielded specifically means that the light beam emitted by the photoelectric sensor is blocked by the shielding component. The passive photoelectric sensor refers to a sensor that does not emit light beams by itself and works by detecting changes in ambient light or receiving external light. When the photoelectric sensor is a passive photoelectric sensor, the photoelectric sensor being shielded specifically means that the path of the external light received by the sensor is blocked by the shielding component, resulting in a change in the light flux reaching the sensor.
[0057] Further, in a preferred embodiment, referring to Figure 1 , the vehicle-mounted audio system includes a first photoelectric sensor 101 arranged at the starting point of the movement of the transmission component, and a second photoelectric sensor 102 arranged at the ending point of the movement of the transmission component.
[0058] Further, in a preferred embodiment, referring to Figure 1 , the transmission component includes a lead screw 201 and a sliding block 202, the lead screw 201 and the sliding block 202 are slidably connected, the sliding block 202 is in transmission connection with a sound generating unit (not shown), and through the rotation of the motor 30, the sliding block 202 is driven to slide on the lead screw 201, thereby causing the rotation of the sound generating unit. The first photoelectric sensor 101 is arranged at the starting point of the movement of the sliding block 202, and the second photoelectric sensor 102 is arranged at the ending point of the movement of the sliding block 202.
[0059] Further, in a preferred embodiment, referring to Figure 1 , the shielding component is a baffle 40, and the baffle 40 is arranged on the sliding block 202.
[0060] Based on the above-mentioned vehicle-mounted audio system, the overall concept of the light shielding adjustment method of the present application is proposed.
[0061] With the continuous development of intelligence of automobiles, the intelligent cabin as a direct carrier connecting users and vehicles can provide more comfortable driving experience according to the habits and comfort of drivers, promote vehicle safety, and is an important link and key node for the relationship between people and vehicles to change from a tool to a partner. Among them, the vehicle intelligent sound is a key component of the intelligent cabin of the whole vehicle. More and more vehicle intelligent sound can be selected by users on the central control interface or the smart phone APP (Application, application program) to select the appropriate sound field, such as the middle sound field, the main driver sound field, the co-driver sound field, etc. The vehicle sound can be turned to the corresponding position according to the user's sound field selection. For the vehicle sound, the smoothness and low noise of the motor rotation are very important, and if an abnormality occurs during the rotation of the motor, the vehicle sound needs to be identified in time, and the rotation is continued or returned to the safe position according to the situation. For abnormal detection, generally, a special encoder is needed for position detection and positioning, and the special encoder is high in unit price, and special structure design is needed to realize the detection of the position of the motor, which greatly increases the design and manufacturing cost of the intelligent sound box.
[0062] Based on this, the main solution of the present application is to provide a motion abnormality detection method applied to a vehicle sound, the vehicle sound comprising a sound generating unit, a motor, a transmission component, a shielding component and a photoelectric sensor, the motor being in transmission connection with the transmission component, the transmission component being in transmission connection with the sound generating unit, the shielding component being arranged on the transmission component, and the photoelectric sensor being arranged in the motion stroke of the transmission component; during the motion of the motor, the shielding trigger signal output by the photoelectric sensor is monitored, wherein when the transmission component moves to the detection position corresponding to the photoelectric sensor, the photoelectric sensor is shielded by the shielding component and outputs the shielding trigger signal; if the shielding trigger signal output by the photoelectric sensor is not monitored within the preset time length from the start of the motion of the motor, it is determined that the motor has a motion abnormality.
[0063] The application sets an optical sensor in the motion stroke of the transmission component of the vehicle audio, uses the shielding trigger signal of the optical sensor to monitor the motion state of the motor. At the hardware level, the optical sensor with relatively simple structure and lower cost is used as the detection element, and the installation position requirement of the optical sensor (located in the motion stroke of the transmission component) is relatively loose. The debugging process (mainly to ensure that the shielding of the shielding component can be detected) is much simpler than the calibration of the precision encoder, and it can be usually completed without relying on highly professional technicians, thereby reducing the hardware cost of the motion abnormality detection. At the software level, a simple "shielding trigger signal" event is generated by monitoring whether the shielding component provided on the transmission component shields the light of the optical sensor during the motion process of the transmission component. This design greatly simplifies the detection mechanism. Based on the simple signal event (whether shielding occurs) and the fixed time window judgment logic, the algorithm implementation is also simpler compared with processing the precise position signal of the encoder, thereby reducing the software cost of the motion abnormality detection. In this way, by using the low-cost optical sensor to replace the high-cost encoder and using the shielding trigger signal generated by the optical sensor to combine the preset time length for simple software logic abnormality judgment, the overall detection cost of the motor motion abnormality detection is reduced under the premise of ensuring the effectiveness of the basic abnormality detection function (such as jamming and transmission failure).
[0064] Based on the overall concept of the motion abnormality detection method of the application, the application proposes a first embodiment of the motion abnormality detection method, which is applied to a vehicle audio. The vehicle audio includes a sound generating unit, a motor, a transmission component, a shielding component, and an optical sensor. The motor is in transmission connection with the transmission component, the transmission component is in transmission connection with the sound generating unit, the shielding component is provided on the transmission component, and the optical sensor is provided in the motion stroke of the transmission component. As shown in Figure 1 The motion abnormality detection method includes the following steps:
[0065] In step S10, the shielding trigger signal output by the optical sensor is monitored during the motion process of the motor. When the transmission component moves to the detection position corresponding to the optical sensor, the optical sensor is shielded by the shielding component and outputs the shielding trigger signal.
[0066] During the motion process of the motor, the signal output by the optical sensor can be monitored in real time. When the optical sensor is shielded by the shielding component, the output signal of the optical sensor will change, for example, the voltage will drop below the preset threshold. The monitoring process can be realized by a microcontroller unit connected to the optical sensor and reading the output signal of the optical sensor. When the microcontroller detects that the output signal of the optical sensor meets the shielding characteristics, it is determined that the signal output by the optical sensor is the shielding trigger signal, that is, it is determined that the shielding trigger signal output by the optical sensor is monitored.
[0067] Step S20, if the shielding trigger signal output by the photoelectric sensor is not monitored within the preset time period from the start of the movement of the motor, it is determined that the motor has a movement abnormality.
[0068] The preset time period can be a time period set in advance according to experience or experimental measurement. In an example, the preset time period can be a theoretical or empirical time period required for the transmission component to move from the motor start time to trigger the shielding trigger signal output by the photoelectric sensor in a normal fault-free running state, and a certain safety margin time period is reserved.
[0069] If the shielding trigger signal is not received within the preset time period, it can be judged that the motor does not drive the transmission component to move as expected, and it is determined that the motor has a movement abnormality. The movement abnormality can be caused by various reasons, such as motor failure, transmission component jamming or breaking, etc.
[0070] After determining that there is a movement abnormality, appropriate measures can be taken, such as issuing an alarm, stopping the motor from running, or attempting fault recovery, etc. The present embodiment does not make specific limitations on this. These measures can be automatically executed by the system, or the user can be notified for manual intervention.
[0071] Further, after determining that the motor has a movement abnormality, a movement abnormality log can also be generated and reported. Specifically, the movement abnormality log can be generated based on the running state of the motor, the expected position and the actual position of the transmission component, the monitoring data of the photoelectric sensor, etc. and the generated movement abnormality log can be uploaded to the vehicle information entertainment system, i.e. the car machine, for recording and archiving. The car machine refers to a multimedia device installed in the car, which is used to provide navigation, music playing, video playing, Bluetooth phone, vehicle information display and other functions.
[0072] If the shielding trigger signal output by the photoelectric sensor is detected within the preset time period, it is determined that the motor does not have a movement abnormality, and the current control mechanism can be maintained to continue to control the movement of the motor.
[0073] The embodiment sets an optical sensor in the motion stroke of the transmission component of the car audio, and uses the shielding trigger signal of the optical sensor to monitor the motion state of the motor. At the hardware level, the optical sensor with relatively simple structure and lower cost is used as the detection element, and the installation position requirement of the optical sensor (located in the motion stroke of the transmission component) is relatively loose. The debugging process (mainly to ensure that the shielding of the shielding component can be detected) is much simpler than the calibration of the precision encoder, and it can be usually completed without relying on highly professional technicians, thereby reducing the hardware cost of the motion abnormality detection. At the software level, a simple "shielding trigger signal" event is generated by monitoring whether the shielding component provided on the transmission component shields the light of the optical sensor during the motion of the transmission component. This design greatly simplifies the detection mechanism. Based on the simple signal event (whether the shielding occurs) and the fixed time window judgment logic, the algorithm implementation is also simpler compared with processing the precise position signal of the encoder, thereby reducing the software cost of the motion abnormality detection. In this way, the low-cost optical sensor is used to replace the high-cost encoder, and the shielding trigger signal generated by the optical sensor is combined with the preset time length to perform simple software logic abnormality judgment, thereby reducing the overall detection cost of the motor motion abnormality detection while ensuring the effectiveness of the basic abnormality detection function (such as jamming and transmission failure).
[0074] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as the above embodiment one can refer to the above introduction, and the subsequent will not be described in detail. On this basis, the motion mode of the motor is rotation, the optical sensor is arranged at the motion starting point of the transmission component, and before the step of monitoring the shielding trigger signal of the optical sensor during the motion of the motor, the method further comprises:
[0075] Step A10, in response to a product power-on instruction, controlling the motor to rotate in a first rotation direction to monitor the shielding trigger signal output by the optical sensor during the rotation of the motor; wherein when the motor rotates in the first rotation direction, the transmission component moves in a direction close to the motion starting point.
[0076] It should be noted that when the transmission component is at the motion starting point, the sound generating unit is at the preset storage designated position, that is, the motion starting point of the transmission component refers to the position of the transmission component when the sound generating unit is at the preset storage designated position.
[0077] When the motor rotates in the first rotation direction, the transmission component will move towards the motion starting point, that is, the sound generating unit is gradually stored in its preset storage designated position. The product power-on instruction is a start instruction generated when the car audio is connected to the power supply, for example, the user presses the power button or the device is connected to the power supply. After this instruction is triggered, the car audio enters the power-on self-checking mode and is ready to perform subsequent self-checking operations.
[0078] Before the motor is controlled to rotate in the first rotation direction, it is detected whether the light sensor arranged at the motion starting point has output a blocking trigger signal. If the blocking trigger signal is detected, it is considered that the transmission component is at the motion starting point, and the sound generating unit is at the preset storage designated position, so that the motor does not need to be further controlled to rotate. If the blocking trigger signal is not detected, it indicates that the transmission component is not at the motion starting point, and the motor is controlled to rotate in the first rotation direction to drive the transmission component to move to the motion starting point.
[0079] During the rotation of the motor in the first rotation direction, if the blocking trigger signal output by the light sensor is monitored within a preset time, the motor is controlled to stop rotating, and the vehicle-mounted sound equipment enters a normal operation mode.
[0080] In order to ensure that the transmission component can be smoothly moved to the motion starting point, and to reduce mechanical impact and wear during start-up, the motor can be controlled to rotate at a preset low speed, which is less than the normal operation speed of the motor. The normal operation speed of the motor refers to the standard speed of the motor when the motor drives the sound generating unit to perform sound field adjustment or directivity tracking tasks in a normal working state. The speed usually meets the acoustic performance requirements, such as being greater than or equal to 800 rpm to ensure that the loudspeaker completes a 90-degree turning within 0.5 seconds.
[0081] In the embodiment, when the product is powered on, the motor is controlled to rotate in the first rotation direction to reset the sound generating unit to the preset storage designated position, so that the vehicle-mounted sound equipment can automatically detect and ensure that the sound generating unit is in the correct storage position each time the product is powered on, thereby improving the reliability and user experience of the equipment.
[0082] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as the above-mentioned first embodiment and second embodiment can be referred to the above introduction, and will not be described in detail. On this basis, the motion mode of the motor is rotation, the light sensor includes a first light sensor arranged at the motion starting point of the transmission component, and a second light sensor arranged at the motion ending point of the transmission component. Before the step of monitoring the blocking trigger signal of the light sensor during the motion of the motor, the method further comprises:
[0083] Step B10, in response to a sound field direction adjustment instruction, controlling the motor to rotate based on the sound field direction adjustment instruction, to monitor the blocking trigger signal output by the target light sensor during the rotation of the motor.
[0084] The target photoelectric sensor is the first photoelectric sensor when the motor rotates in a first rotation direction, and the target photoelectric sensor is the second photoelectric sensor when the motor rotates in a second rotation direction.
[0085] The transmission component moves in a direction close to the movement starting point when the motor rotates in the first rotation direction, and the transmission component moves in a direction close to the movement ending point when the motor rotates in the second rotation direction.
[0086] It should be noted that when the transmission component is at the movement starting point, the sound generating unit is at a preset storage designated position. When the transmission component is at the movement ending point, the sound generating unit is at a preset extension designated position.
[0087] After the vehicle-mounted sound equipment is powered on, it enters a normal operation mode, that is, a normal working state after the vehicle-mounted sound equipment completes power-on reset. In the normal operation mode, a sound field direction adjustment instruction is listened to. The sound field direction adjustment instruction is an instruction for adjusting the sound field direction of the sound generating unit. The user can trigger the instruction through voice, application or key mode.
[0088] After the sound field direction adjustment instruction is listened to, the motor is driven to rotate in the corresponding direction according to the instruction, and the output of the target photoelectric sensor is obtained. If the blocking trigger signal of the target photoelectric sensor is monitored within a preset time period, the motor can be controlled to stop rotating. Otherwise, if the blocking trigger signal of the target photoelectric sensor is not monitored within the preset time period, it can be determined that the motor has a movement abnormality.
[0089] In this embodiment, the first and second photoelectric sensors are arranged at the movement starting point and the movement ending point of the transmission component, respectively, so that accurate position feedback can be obtained in both the "storage" and "extension" directions. When the motor is driven to rotate forward or reverse by the sound field direction adjustment instruction, the corresponding sensor becomes the monitoring target. Once the blocking trigger signal is captured, it indicates that the sound generating unit has accurately reached the storage designated position or the extension designated position, and the motor stops rotating immediately to prevent mechanical overshoot. If the blocking trigger signal does not appear within a preset time period, it is determined that there is a movement abnormality, and the driving is terminated in time to avoid stalling or structural damage.
[0090] In one possible implementation, after the step of monitoring the blocking trigger signal of the photoelectric sensor during the movement of the motor, the method further includes:
[0091] In step C10, if the blocking trigger signal of the output of the target photoelectric sensor is monitored within a preset time period from the start of the rotation of the motor, corresponding rotation calibration data is obtained based on the current rotation direction of the motor, wherein the rotation calibration data is first rotation calibration data or second rotation calibration data.
[0092] Step C20, controlling the motor to continue rotating in the current rotating direction based on the rotating calibration data;
[0093] The first rotating calibration data is the number of pulses output by the motor between the first photoelectric sensor starting to output the shielding trigger signal and the sound production unit moving to the first target position; and the second rotating calibration data is the number of pulses output by the motor between the second photoelectric sensor starting to output the shielding trigger signal and the sound production unit moving to the second target position.
[0094] The sound production unit is in a storage state when moving to the first target position, and the sound production unit is in an extension state when moving to the second target position.
[0095] The first target position is the preset storage designated position, and the second target position is the preset extension designated position. The storage state of the sound production unit refers to a state in which the sound production unit is retracted into the protective compartment of the shell with the sound production surface facing inward or flush with the surface of the shell, thereby avoiding external impact and dust intrusion. The extension state of the sound production unit refers to a state in which the sound production unit is turned out of the protective compartment of the shell with the sound production surface facing outward and exposed to the working space, so that the sound wave is directly radiated to the user.
[0096] Considering that the shielding component occupies a certain space, there may be a case where the target photoelectric sensor outputs the shielding trigger signal while the transmission component has not moved to the starting point or the ending point of movement, i.e., the sound production unit has not moved to the first target position or the second target position. Therefore, the rotating calibration data is pre-stored, which is the number of pulses output by the motor between the target photoelectric sensor starting to output the shielding trigger signal and the sound production unit moving to the corresponding target position. In other words, the rotating amount of the motor between the target photoelectric sensor starting to output the shielding trigger signal and the sound production unit moving to the corresponding target position is pre-recorded. The physical essence of this data is the number of standard control pulses that the motor driver needs to output to the motor winding from the time when the target photoelectric sensor first outputs the shielding trigger signal to the time when the sound production unit reaches the target position.
[0097] Therefore, when the shielding trigger signal output by the target photoelectric sensor is detected, the corresponding rotating calibration data is obtained based on the current rotating direction index of the motor. Specifically, when the current rotating direction of the motor is the first rotating direction, the first rotating calibration data is obtained, and when the current rotating direction of the motor is the second rotating direction, the second rotating calibration data is obtained.
[0098] After obtaining the rotating calibration data, the motor is controlled to continue rotating in the current rotating direction based on the data, i.e., a corresponding number of control pulses are output to the motor to make the motor stop after rotating the corresponding rotating amount in the current rotating direction.
[0099] It should be noted that the rotation calibration data can be pre-stored after calibration and demarcation before the vehicle-mounted audio is factory-finished, or can be pre-stored and data updated according to preset conditions or triggering events in the use process of the vehicle-mounted audio, such as device power-on initialization, regular maintenance period, detection of transmission error exceeding threshold, change amplitude of environmental temperature and humidity exceeding certain threshold, user manual triggering of position calibration instruction, etc.
[0100] Further, it can also be indicated by a calibration flag whether to perform calibration. When calibration is needed, the calibration flag is filled with a first value, such as 1, true, etc., and when calibration is not needed, the calibration flag is filled with a second value, such as 0, false, etc. Before obtaining the rotation calibration data, it is determined whether calibration is needed by accessing the calibration flag. Specifically, when the calibration flag is filled with the first value, the rotation calibration data is obtained and subsequent position calibration is performed, and when the calibration flag is filled with the second value, the rotation calibration data is not obtained, and the motor can be controlled to stop rotating when the blocking trigger signal output by the target photoelectric sensor is monitored.
[0101] The embodiment pre-stores the rotation calibration data corresponding to the photoelectric sensor blocking trigger signal, and dynamically calls the rotation calibration data in combination with the real-time rotation direction of the motor, effectively compensating for the mechanical deviation between the photoelectric sensor signal trigger point and the actual motion starting point or motion ending point caused by the space occupation of the blocking component, and achieving accurate positioning of the sound generating unit in the storage state and the stretched state. Specifically, when the target photoelectric sensor outputs a blocking trigger signal, the pre-stored first or second rotation calibration data is obtained based on the current rotation direction (first rotation direction or second rotation direction) index of the motor. The data is essentially the number of standard control pulses required from the triggering of the blocking trigger signal to the arrival at the target position, and the motor is driven to continue rotating to output the corresponding number of pulses, so that the sound generating unit is accurately parked at the pre-set storage designated position or the stretched designated position.
[0102] Further, this calibration mechanism not only overcomes the positioning drift caused by component tolerance, wear or environmental changes in mechanical transmission, but also ensures that the vehicle-mounted audio maintains stable motion accuracy and acoustic performance throughout its life cycle by supporting factory pre-calibration and dynamic updating in the use process.
[0103] In a possible implementation, with reference to FIG. 10, before the step of obtaining corresponding rotation calibration data based on the motion direction of the motor, the method further includes: Figure 3 Step D10, in response to the position calibration instruction, controlling the motor to rotate in the first rotation direction;
[0104]
[0105] The position calibration instruction is an instruction for instructing the position calibration of the sound generating unit. The position calibration instruction can be initiated by a user or triggered actively when a preset condition or trigger event is detected.
[0106] After receiving the position calibration instruction, the motor can be controlled to rotate in the first rotation direction to calibrate and obtain the first rotation calibration data, and then controlled to rotate in the second rotation direction to calibrate and obtain the second rotation calibration data. Alternatively, the motor can be controlled to rotate in the second rotation direction to calibrate and obtain the second rotation calibration data, and then controlled to rotate in the first rotation direction to calibrate and obtain the first rotation calibration data. In this embodiment, the motor is controlled to rotate in the first rotation direction to calibrate and obtain the first rotation calibration data first, and then controlled to rotate in the second rotation direction to calibrate and obtain the second rotation calibration data.
[0107] In step D20, when the first light sensor output is monitored during the rotation of the motor and a shielding trigger signal is detected, an external calibration instrument is used to detect whether the sound generating unit has moved to the first target position.
[0108] During the rotation of the motor in the first rotation direction, the signal output by the first light sensor is monitored to determine whether a shielding trigger signal is generated. Once the shielding trigger signal is detected, an external calibration instrument is used to verify whether the sound generating unit has accurately reached the first target position. The external calibration instrument can be a laser range finder, an encoder or other measurement tools, and this embodiment does not make specific limitations.
[0109] In step D30, when the sound generating unit has not moved to the first target position, the rotation of the motor is continued until the sound generating unit moves to the first target position, and the first rotation calibration data is recorded.
[0110] If the sound generating unit has not reached the first target position after the shielding trigger signal output by the first light sensor is detected, the motor will continue to rotate in the first rotation direction. At this time, the motor will continue to rotate until the external calibration instrument confirms that the sound generating unit has reached the first target position. At this time, the number of pulses output by the motor during the period from the start of the shielding trigger signal output by the first light sensor to the arrival of the sound generating unit at the first target position will be recorded. This data will be recorded and stored as the first rotation calibration data, which will be used for subsequent motor control and position calibration. This process ensures the accuracy of the rotation of the motor, thereby ensuring that the sound generating unit can accurately move to the preset storage designated position.
[0111] In one possible implementation, with reference to FIG. 8, after the step of detecting whether the sound generating unit has moved to the first target position by using the external calibration instrument, the method further includes: Figure 4
[0112] Step E10: When the sound-generating unit moves to the first target position, control the motor to rotate in the second rotation direction;
[0113] After confirming that the sound-generating unit has moved to the first target position, the control motor will reverse and start rotating in the second rotation direction, with the purpose of moving the sound-generating unit from the first target position to the second target position.
[0114] Step E20: If an obstruction trigger signal is detected by the second photoelectric sensor during the rotation of the motor, the external calibration instrument is used to detect whether the sound-generating unit has moved to the second target position.
[0115] As the motor rotates in the second rotation direction, the signal output by the second photoelectric sensor is continuously monitored. Once an obstruction trigger signal is detected from the second photoelectric sensor, it indicates that the transmission component may have approached the second target position. At this point, an external calibration instrument will be used again to check whether the sound-generating unit has accurately reached the second target position, i.e., the extended state.
[0116] Step E30: If the sound-generating unit has not moved to the second target position, continue to control the motor to rotate until the sound-generating unit moves to the second target position, and then record the second rotation calibration data.
[0117] If the external calibration instrument detects that the sound-generating unit has not yet reached the second target position, the motor will continue to rotate in the second rotation direction until the external calibration instrument confirms that the sound-generating unit has reached the second target position. At this point, the number of pulses output by the motor from the moment the second photoelectric sensor begins to output the obstruction trigger signal until the sound-generating unit reaches the second target position will be recorded. This data will be stored as second rotation calibration data for subsequent motor control and position calibration. This process ensures the accuracy of the motor rotation, thereby guaranteeing that the sound-generating unit can accurately move to the preset extension position.
[0118] For example, to aid in understanding the technical concept or principle of the motion anomaly detection method combined with the first and second embodiments described above, a specific embodiment is now provided. In this specific embodiment, the motion anomaly detection method is applied to... Figure 1 The car audio system shown features a relatively wide baffle to ensure it consistently blocks the photoelectric sensor during position calibration mode. Based on this, refer to... Figure 5 As shown, motion anomaly detection methods include:
[0119] Car audio ( Figure 5The product shown in the middle will enter a power-on self-test mode after power-on. In the power-on self-test mode, it is first detected whether the starting point photoelectric sensor (i.e., the first photoelectric sensor) is triggered. The photoelectric sensor triggering refers to the photoelectric sensor outputting a shielding triggering signal. If the starting point photoelectric sensor is triggered, the product enters a normal operation mode. If the starting point photoelectric sensor is not triggered, the motor is controlled to rotate to the starting point at a low speed, i.e., the motor is controlled to rotate in a first rotating direction to drive the slider to move close to the starting point, and in turn to drive the sound generating unit to move close to a preset storage designated position, and it is monitored whether the starting point photoelectric sensor is triggered. If the starting point photoelectric sensor is triggered, the product enters the normal operation mode. If the starting point photoelectric sensor is not triggered, it is determined whether the running duration of the motor is greater than a preset duration. The running duration refers to the duration from the start of the motor rotation to the current time. If the running duration is less than or equal to the preset duration, the motor continues to be controlled to rotate. If the running duration is greater than the preset duration, the product enters an abnormal reporting mode, and an error log is recorded and reported to the vehicle machine.
[0120] In the normal operation mode, if a position calibration instruction is received, the product enters a position calibration mode. If no position calibration instruction is received, it is determined whether a motor movement instruction (i.e., a sound field direction adjustment instruction) is received. If the motor movement instruction is received, the motor is controlled to rotate based on the motor operation instruction, and it is monitored whether the target photoelectric sensor is triggered. If the target photoelectric sensor is triggered, it is determined whether a calibration flag is true. If the target photoelectric sensor is not triggered, it is determined whether the running duration of the motor is greater than a preset duration. If the calibration flag is true, the product enters a precise adjustment mode. In the precise adjustment mode, a corresponding pulse number is obtained based on the rotating direction of the motor, and the motor continues to output the pulse number of pulses.
[0121] In the position calibration mode, the motor rotates to the starting position at a low speed, and it is monitored whether the target photoelectric sensor is triggered. If the target photoelectric sensor is not triggered, the motor continues to rotate to the starting position at a low speed. If the target photoelectric sensor is triggered, the MCU (Microcontroller Unit) counts the number N of pulses output by the motor, and determines whether the product reaches the corresponding target position by using an external calibration instrument. In essence, it is determined whether the sound generating unit reaches the corresponding target position. If the sound generating unit does not reach the target position, the motor continues to drive to the starting position, and the MCU counts the number N of pulses output by the motor. If the sound generating unit reaches the target position, the MCU records the current pulse number N1 to a non-volatile storage device. The current pulse number N1 is the number N1 of pulses output by the motor during the period from the triggering of the target photoelectric sensor to the movement of the product to the target position. After N1 is recorded, the motor is controlled to rotate to the ending position, i.e., the motor is controlled to rotate in a second rotating direction to drive the slider to move close to the ending position, and in turn to drive the sound generating unit to move close to a preset stretching designated position, and the above operation is repeated to calibrate the ending position by using a similar calibration process for the starting position. After the calibration of the starting position and the ending position is completed, the calibration flag is set to true.
[0122] It should be noted that the above examples are only used to assist in understanding the present embodiment, and do not constitute a limitation on the motion anomaly detection process of the present embodiment, and more forms of simple transformation based on this technical concept are within the protection scope of the present application.
[0123] In addition, the present application also provides a vehicle-mounted sound system, which comprises a processor, a sound production unit, a motor, a transmission component, a shielding component and a photoelectric sensor, the processor is connected with the motor and the photoelectric sensor respectively, the motor is in transmission connection with the transmission component, the transmission component is in transmission connection with the sound production unit, the shielding component is arranged on the transmission component, the photoelectric sensor is arranged in the movement stroke of the transmission component, and the processor is used for executing the steps of the motion anomaly detection method.
[0124] In an embodiment, the transmission component comprises a lead screw and a sliding block, the lead screw is in slidable connection with the sliding block, the sliding block is in transmission connection with the sound production unit, and the photoelectric sensor is arranged in the movement stroke of the sliding block.
[0125] In an embodiment, the shielding component is a baffle, and the baffle is arranged on the sliding block.
[0126] The vehicle-mounted sound system provided by the present application adopts the motion anomaly detection method in the above embodiments, and can solve the technical problem of how to reduce the detection cost of motor motion anomaly detection. Compared with the prior art, the vehicle-mounted sound system provided by the present application has the same beneficial effects as the motion anomaly detection method provided by the above embodiments, and other technical features in the vehicle-mounted sound system are the same as the features disclosed in the previous embodiment method, which will not be repeated here.
[0127] It should be understood that various parts of the present application can be realized by hardware, software, firmware or their combination. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0128] The above is merely specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0129] It should be understood that various parts of the present application can be realized by hardware, software, firmware or their combination. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0130] The above merely provides a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0131] The present application provides a vehicle-mounted audio, comprising: at least one processor; and a memory connected with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the motion anomaly detection method in the above embodiment one.
[0132] Reference will now be made to the following description Figure 6 which shows a structural schematic diagram of a vehicle-mounted audio suitable for implementing embodiments of the present application. Figure 6 The vehicle-mounted audio shown is merely an example, and should not bring any limitation to the functions and use range of embodiments of the present application.
[0133] As shown in Figure 6 , the vehicle-mounted audio can include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. In the RAM 1004, various programs and data required for the operation of the vehicle-mounted audio are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; the storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle-mounted audio to communicate with other devices wirelessly or by wire to exchange data. Although the vehicle-mounted audio with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be alternatively implemented or provided.
[0134] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program codes for executing the method shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiments disclosed in the present application are executed.
[0135] The vehicle-mounted audio provided by the present application adopts the motion anomaly detection method in the above-mentioned embodiments, and can solve the technical problem of how to reduce the detection cost of motor motion anomaly detection. Compared with the prior art, the vehicle-mounted audio provided by the present application has the same beneficial effects as the motion anomaly detection method provided by the above-mentioned embodiments, and other technical features in the vehicle-mounted audio are the same as the features disclosed in the previous embodiment method, which will not be repeated here.
[0136] It should be understood that parts of the present application can be realized by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0137] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0138] In addition, in order to achieve the above-mentioned purpose, the embodiments of the present application also provide a readable storage medium having computer readable program instructions (i.e. computer program) stored thereon, the computer readable program instructions being used to execute the motion anomaly detection method in the above-mentioned embodiments.
[0139] The computer readable storage medium provided by the embodiments of the present application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to, an electric connection with one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the embodiments, the computer readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to an electric wire, an optical cable, an RF (Radio Frequency), and the like, or any suitable combination thereof.
[0140] The computer readable storage medium described above may be contained in a car audio, or may exist separately without being assembled into the car audio.
[0141] The computer readable storage medium described above carries one or more programs, which, when executed by the car audio, cause the car audio to: monitor a shielding trigger signal output by a photoelectric sensor during movement of a motor, wherein the photoelectric sensor is shielded by a shielding component to output the shielding trigger signal when a transmission component moves to a detection position corresponding to the photoelectric sensor; and determine that the motor has a movement abnormality if the shielding trigger signal output by the photoelectric sensor is not monitored within a preset time period from the start of movement of the motor.
[0142] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0143] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may
[0144] The modules involved in the embodiments of the present application can be implemented in the form of software or in the form of hardware. In some cases, the name of the module does not constitute a limitation on the module itself.
[0145] The readable storage medium provided by the present application is a computer readable storage medium, which stores computer readable program instructions (i.e. computer programs) for executing the above motion anomaly detection method, and can solve the technical problem of how to reduce the detection cost of motor motion anomaly detection. Compared with the prior art, the computer readable storage medium provided by the present application has the same beneficial effects as the motion anomaly detection method provided by the above embodiments, and will not be described here.
[0146] In addition, the embodiment of the present application further provides a computer program product comprising a computer program, which, when executed by a processor, implements the steps of the motion anomaly detection method as described above.
[0147] The computer program product provided by the present application can solve the technical problem of how to reduce the detection cost of motor motion anomaly detection. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the motion anomaly detection method provided by the above-mentioned embodiment, which will not be repeated here.
[0148] It should be noted that in this document, the terms "comprise", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or system. Without more limitations, the element defined by the statement "comprises a" does not exclude the presence of another identical element in the process, method, article or system that includes the element.
[0149] The above-mentioned serial numbers of the embodiments of the present application are only for description, not representing the advantages and disadvantages of the embodiments.
[0150] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by software plus a general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application or the part that contributes to the prior art can be embodied in the form of a software sensor, which is stored in a storage medium (such as ROM / RAM, magnetic disc, optical disc) as described above, and includes a plurality of instructions for making a motion anomaly detection system (which can be a mobile phone, computer, server or network device, etc.) execute the method described in each embodiment of the present application.
[0151] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A motion abnormality detection method characterized by comprising: The motion abnormality detection method is applied to a vehicle-mounted audio, and the vehicle-mounted audio comprises a sound generating unit, a motor, a transmission component, a shielding component and a photoelectric sensor. The motor is in transmission connection with the transmission component, the transmission component is in transmission connection with the sound generating unit, the shielding component is arranged on the transmission component, and the photoelectric sensor is arranged in the motion stroke of the transmission component. The motion abnormality detection method comprises the following steps: In the motion process of the motor, the shielding trigger signal output by the photoelectric sensor is monitored. When the transmission component moves to the detection position corresponding to the photoelectric sensor, the photoelectric sensor is shielded by the shielding component and outputs the shielding trigger signal. If the shielding trigger signal output by the photoelectric sensor is not monitored within a preset time period from the start of the motion of the motor, it is determined that the motor has motion abnormality.
2. The motion abnormality detection method according to claim 1, characterized by, The motion mode of the motor is rotation, the photoelectric sensor is arranged at the motion starting point of the transmission component, and before the step of monitoring the shielding trigger signal of the photoelectric sensor in the motion process of the motor, the method further comprises the following steps: In response to a product power-on instruction, the motor is controlled to rotate in a first rotation direction to monitor the shielding trigger signal output by the photoelectric sensor in the rotation process of the motor. When the motor rotates in the first rotation direction, the transmission component moves in a direction close to the motion starting point.
3. The motion abnormality detection method according to claim 1, characterized by, The motion mode of the motor is rotation, the photoelectric sensor comprises a first photoelectric sensor arranged at the motion starting point of the transmission component and a second photoelectric sensor arranged at the motion ending point of the transmission component, and before the step of monitoring the shielding trigger signal of the photoelectric sensor in the motion process of the motor, the method further comprises the following steps: In response to a sound field direction adjustment instruction, the motor is controlled to rotate based on the sound field direction adjustment instruction to monitor the shielding trigger signal output by the target photoelectric sensor in the rotation process of the motor. When the motor rotates in the first rotation direction, the target photoelectric sensor is the first photoelectric sensor, and when the motor rotates in the second rotation direction, the target photoelectric sensor is the second photoelectric sensor. When the motor rotates in the first rotation direction, the transmission component moves in a direction close to the motion starting point, and when the motor rotates in the second rotation direction, the transmission component moves in a direction close to the motion ending point.
4. The motion abnormality detection method according to claim 3, characterized by, After the step of monitoring the shielding trigger signal of the photoelectric sensor in the motion process of the motor, the method further comprises the following steps: If the shielding trigger signal output by the target photoelectric sensor is monitored within a preset time period from the start of the rotation of the motor, corresponding rotation calibration data is acquired based on the current rotation direction of the motor, wherein the rotation calibration data is first rotation calibration data or second rotation calibration data. The motor is controlled to continue rotating in the current rotation direction based on the rotation calibration data. The first rotation calibration data is the number of pulses output by the motor between the first photoelectric sensor starting to output the occlusion trigger signal and the sound emitting unit moving to the first target position; and the second rotation calibration data is the number of pulses output by the motor between the second photoelectric sensor starting to output the occlusion trigger signal and the sound emitting unit moving to the second target position. The sound emitting unit is in a storage state when moving to the first target position, and the sound emitting unit is in an extension state when moving to the second target position.
5. The motion abnormality detection method according to claim 4, characterized by, Before the step of obtaining corresponding rotation calibration data based on the movement direction of the motor, the method further comprises: In response to a position calibration instruction, controlling the motor to rotate in the first rotation direction; In the case that the occlusion trigger signal output by the first photoelectric sensor is monitored during the rotation of the motor, detecting whether the sound emitting unit moves to the first target position by an external calibration instrument; In the case that the sound emitting unit does not move to the first target position, continuing to control the motor to rotate until the sound emitting unit moves to the first target position, and recording the first rotation calibration data.
6. The motion abnormality detection method according to claim 5, characterized by, After the step of detecting whether the sound emitting unit moves to the first target position by the external calibration instrument, the method further comprises: In the case that the sound emitting unit moves to the first target position, controlling the motor to rotate in the second rotation direction; In the case that the occlusion trigger signal output by the second photoelectric sensor is monitored during the rotation of the motor, detecting whether the sound emitting unit moves to the second target position by the external calibration instrument; In the case that the sound emitting unit does not move to the second target position, continuing to control the motor to rotate until the sound emitting unit moves to the second target position, and recording the second rotation calibration data.
7. The motion abnormality detection method according to any one of claims 1 to 6, characterized by, After the step of determining that the motor has a movement abnormality, the method further comprises: Generating a movement abnormality log and reporting the movement abnormality log.
8. A car audio, characterized by comprising: The vehicle-mounted sound system comprises a processor, a sound emitting unit, a motor, a transmission component, an occlusion component and a photoelectric sensor, the processor is connected with the motor and the photoelectric sensor respectively, the motor is in transmission connection with the transmission component, the transmission component is in transmission connection with the sound emitting unit, the occlusion component is arranged on the transmission component, the photoelectric sensor is arranged in the movement stroke of the transmission component, and the processor is used to execute the steps of the movement abnormality detection method according to any one of claims 1 to 7.
9. The car audio of claim 8, wherein, The transmission component comprises a lead screw and a sliding block, the lead screw is in slidable connection with the sliding block, the sliding block is in transmission connection with the sound emitting unit, and the photoelectric sensor is arranged in the movement stroke of the sliding block.
10. The car audio of claim 9, wherein, The occlusion component is a baffle, and the baffle is arranged on the sliding block.