Fault processing method and device for vehicle-mounted audio bus, vehicle and medium

By detecting and updating the slave devices in the car audio system, the problem of low maintenance efficiency caused by failure of individual slave devices is solved, and timely fault detection and communication transmission of normal devices are achieved.

CN120750697APending Publication Date: 2025-10-03SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510993383.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-12-22
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

When individual slave devices in a car audio system fail or are missing, the remaining slave devices become unusable, resulting in low maintenance efficiency.

Method used

Multiple slave devices are detected through the in-vehicle audio system to identify the faulty slave device, and the SLOT configuration file of the normal slave device upstream of the faulty slave device is updated to ensure communication transmission between the master device chip and the normal slave device.

Benefits of technology

Discover faulty slave equipment in a timely manner, improve maintenance efficiency, and ensure the normal operation of normal slave equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120750697A_ABST
    Figure CN120750697A_ABST
Patent Text Reader

Abstract

The invention discloses a fault processing method and device for a vehicle-mounted audio bus, a vehicle and a medium, the fault processing method and device are applied to a vehicle-mounted audio system, the vehicle-mounted audio system is provided with a master device chip and slave devices which are sequentially connected to the audio bus in series, and the method comprises the steps that the multiple slave devices are detected, the fault slave device is determined, and the fault slave device is sent to the vehicle-mounted audio bus; and updating the SLOT configuration file of a normal slave device at the upstream of the faulty slave device, and performing communication transmission between the master device chip and the normal slave device according to the updated SLOT configuration file. According to the invention, a plurality of slave devices can be detected through the vehicle-mounted audio system to determine the faulty slave device, and when individual slave devices are abnormal, the abnormal slave devices can be found in time, so that the maintenance efficiency is improved; according to the invention, the SLOT configuration file of the normal slave device at the upstream of the fault slave device can be updated, and the communication transmission between the master device chip and the normal slave device can be carried out according to the updated SLOT configuration file, so that the normal work of the remaining normal slave devices is not influenced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle networking, and in particular to a method, device, vehicle and medium for troubleshooting an on-vehicle audio bus. Background Art

[0002] With the development of in-vehicle audio systems, their functions are becoming more and more abundant, and users' requirements for them are also getting higher and higher. In-vehicle audio systems generally connect the master device chip and multiple slave devices through the A2B (Automotive Audio Bus) bus. When an individual slave device fails or is missing, the remaining slave devices cannot be used. In addition, when an individual slave device fails, the maintenance efficiency is not high. Summary of the Invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a method, device, vehicle, and computer-readable storage medium for detecting a fault in a vehicle audio bus that overcomes or at least partially solves the above problems.

[0004] To solve the above problems, an embodiment of the present invention discloses a method for troubleshooting an in-vehicle audio bus, which is applied to an in-vehicle audio system, wherein the in-vehicle audio system includes a master device chip and a slave device connected in series on the audio bus. The method includes:

[0005] Detecting the plurality of slave devices to determine a faulty slave device;

[0006] Updating the SLOT configuration file of a normal slave device upstream of the faulty slave device;

[0007] The communication transmission between the master device chip and the normal slave device is performed according to the updated SLOT configuration file.

[0008] Optionally, the detecting the plurality of slave devices to determine a faulty slave device includes:

[0009] Acquire a slave device list, wherein the slave device list includes serial number values ​​of a plurality of the slave devices;

[0010] Reading the number sequence value and the total number of numbers in the slave device list, and detecting the plurality of slave devices according to the number sequence value;

[0011] If the number sequence value of the last detected slave device is smaller than the total number of numbers, the first slave device downstream of the last detected slave device is determined as a faulty slave device.

[0012] Optionally, the SLOT configuration file includes: a first quantity parameter, where the first quantity parameter is the number of SLOTs uploaded by the slave device. Updating the SLOT configuration file of a normal slave device upstream of the faulty slave device includes:

[0013] Obtain a current first quantity parameter corresponding to each normal slave device upstream of the faulty slave device;

[0014] Determine the number of undetected slave devices;

[0015] The current first quantity parameter corresponding to each normal slave device is subtracted from the number of undetected slave devices to obtain an updated first quantity parameter.

[0016] Optionally, the detecting the plurality of slave devices to determine a faulty slave device includes:

[0017] Acquire a slave device list, wherein the slave device list includes serial number values ​​of a plurality of the slave devices;

[0018] Reading the serial number values ​​in the slave device list, and detecting the plurality of slave devices according to the serial number values;

[0019] When at least one of the slave devices is not detected, the first slave device downstream of the last detected slave device is determined as a faulty slave device.

[0020] Optionally, the method further includes:

[0021] Deleting the serial number value of the faulty slave device from the slave device list to obtain the serial number values ​​of the remaining multiple slave devices;

[0022] The number sequence values ​​of the remaining multiple slave devices are arranged in ascending order to obtain an updated slave device list.

[0023] Optionally, the method further includes:

[0024] Prompt information is generated, where the prompt information is used to prompt a user that a faulty slave device exists.

[0025] Optionally, the master device chip is driven by an external clock, and the detecting of the plurality of slave devices includes:

[0026] After the external clock is synchronized with the clock of the master device chip, the plurality of slave devices are detected.

[0027] The present invention also discloses a fault handling device for an in-vehicle audio bus, which is applied to an in-vehicle audio system, wherein the in-vehicle audio system has a master device chip and a slave device connected in series on the in-vehicle audio bus. The device includes:

[0028] A detection module, configured to detect the plurality of slave devices and determine a faulty slave device;

[0029] An updating module, configured to update a SLOT configuration file of a normal slave device upstream of the faulty slave device;

[0030] The transmission module is used to perform communication transmission between the master device chip and the normal slave device according to the updated SLOT configuration file.

[0031] Optionally, the detection module includes:

[0032] A first acquisition submodule is configured to acquire a slave device list, wherein the slave device list includes a plurality of serial number values ​​of the slave devices;

[0033] A reading submodule, configured to read the number sequence value and the total number of numbers in the slave device list, and detect the plurality of slave devices according to the number sequence value;

[0034] The first determining submodule is configured to determine the first slave device downstream of the last detected slave device as a faulty slave device if the number sequence value of the last detected slave device is less than the total number of numbers.

[0035] Optionally, the SLOT configuration file includes: a first quantity parameter, where the first quantity parameter is the number of SLOTs uploaded from the device, and the update module includes:

[0036] A second acquisition submodule is configured to acquire a current first quantity parameter corresponding to each normal slave device upstream of the faulty slave device;

[0037] A second determining submodule, configured to determine the number of undetected slave devices;

[0038] The subtraction submodule is configured to subtract the number of undetected slave devices from the current first number parameter corresponding to each normal slave device to obtain an updated first number parameter.

[0039] Optionally, the detection module includes:

[0040] A third acquisition submodule is configured to acquire a slave device list, wherein the slave device list includes a plurality of serial number values ​​of the slave devices;

[0041] a detection submodule, configured to read the number sequence values ​​in the slave device list and detect the plurality of slave devices according to the number sequence values;

[0042] The third determining submodule is configured to determine the first slave device downstream of the last detected slave device as a faulty slave device when at least one of the slave devices is not detected.

[0043] Optionally, the device further includes:

[0044] a deleting module, configured to delete the serial number value of the faulty slave device from the slave device list, and obtain the serial number values ​​of the remaining plurality of slave devices;

[0045] The arrangement module is used to arrange the serial number values ​​of the remaining multiple slave devices in ascending order to obtain an updated slave device list.

[0046] Optionally, the device further comprises:

[0047] The generating module is used to generate prompt information, wherein the prompt information is used to prompt the user that there is a faulty slave device.

[0048] Optionally, the master device chip is driven by an external clock, and the detection module includes:

[0049] The synchronization submodule is used to detect the plurality of slave devices after the external clock is synchronized with the clock of the master device chip.

[0050] The present invention also discloses a vehicle, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the above-mentioned method for handling a fault of an in-vehicle audio bus are implemented.

[0051] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for handling a fault of an in-vehicle audio bus are implemented.

[0052] The embodiments of the present invention include the following advantages:

[0053] The present invention can detect multiple slave devices through the vehicle audio system to determine the faulty slave device. When an individual slave device is abnormal, it can be discovered in time, which provides convenience for maintenance personnel to maintain and replace it, and improves the inspection efficiency. The present invention can update the SLOT configuration file of the normal slave device upstream of the faulty slave device, and can perform communication and transmission between the master device chip and the normal slave device according to the updated SLOT configuration file, so as not to affect the normal operation of the remaining normal slave devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 This is a flowchart of a method for troubleshooting a vehicle audio bus provided by an embodiment of the present invention;

[0055] Figure 2 This is a flowchart of another method for troubleshooting a vehicle audio bus provided by an embodiment of the present invention;

[0056] Figure 3 This is a system flow chart of a method for troubleshooting a vehicle audio bus provided by an embodiment of the present invention;

[0057] Figure 4 The present invention provides a structural block diagram of a fault handling device for an in-vehicle audio bus. DETAILED DESCRIPTION

[0058] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0059] In the prior art, a vehicle audio bus includes a master device and multiple slave devices connected in series. If an individual slave device fails or is missing, the remaining slave devices cannot be used. Furthermore, when an individual slave device fails, the maintenance efficiency is not high.

[0060] Based on this, the present invention creatively proposes a fault handling method for the vehicle audio bus, which detects multiple slave devices through the vehicle audio system to determine the faulty slave device. When an individual slave device is abnormal, it can be discovered in time, which provides convenience for maintenance personnel to maintain and replace it, and improves maintenance efficiency. The present invention can update the SLOT configuration file of the normal slave device upstream of the faulty slave device, and can perform communication and transmission between the master device chip and the normal slave device according to the updated SLOT configuration file, thereby not affecting the normal operation of the remaining normal slave devices.

[0061] Reference Figure 1 , shows a flowchart of a method for in-vehicle audio provided by an embodiment of the present invention, which is applied to an in-vehicle audio system, wherein the in-vehicle audio system has a master device chip and a slave device connected in series on an audio bus. The method may specifically include the following steps:

[0062] Step 101: Detect multiple slave devices to determine a faulty slave device.

[0063] In an embodiment of the present invention, an in-vehicle audio system includes a master device chip and slave devices connected in series on an audio bus. The in-vehicle audio bus can be used to connect audio devices in the vehicle, such as a microphone (MIC), a power amplifier (AMP), a multimedia host (Head Unit), and a T-BOX. Audio data (I2S / TDM), control signals (I2C), clocks, and power are transmitted across distances via a low-cost unshielded twisted pair (UTP). The digital interface eliminates the need for peripheral DAC / ADC conversion, providing a simpler and more convenient solution for audio design.

[0064] The in-vehicle audio bus is a one-master-multiple-slave link. There can only be one Master, which is configured in advance during the architecture design phase. It is usually the Head Unit host. If the host does not work, there is a T-Box on the car. To ensure safety, the T-Box can switch from slave to master to send data downward to ensure the normal operation of the subsequent network. If a slave in the middle of the link does not work, the downstream link of this node will not work, and the link will return from this node, and the upstream function will remain normal.

[0065] The car audio system can detect multiple slave devices on the audio bus one by one and determine the faulty slave device based on the detection results. For example, there are 6 slave devices connected in series on the audio bus. When the car audio system detects that the fourth slave device does not work, it means that the fourth slave device is abnormal and the fourth slave device can be determined to be the faulty slave device.

[0066] Step 102: Update the SLOT configuration file of the normal slave device upstream of the faulty slave device.

[0067] In an embodiment of the present invention, the SLOT configuration file refers to the SLOT configuration information of each slave device, which may include the number of SLOTs received by the slave device from downstream slave devices, the number of SLOTs to be uploaded by the slave device, the number of SLOTs sent through the slave device, and the number of SLOTs uploaded through the slave device.

[0068] SLOT refers to a time slot, a part of the serial self-multiplexing dedicated to the time slot information of a single channel, usually referring to a voice channel (64kbps) in PCME1 and T1 signals, and a time slice in the time division multiplexing mode (TDM). A time slot can be understood as a channel. Multiple slave devices share a resource and are processed using a time-sharing method. One time slot is equivalent to one channel.

[0069] After the faulty slave device is identified, the SLOT configuration files of the normal slave devices upstream of the faulty slave device may be updated according to the missing SLOT configuration information.

[0070] Step 103: Perform communication and transmission between the master device chip and the normal slave device according to the updated SLOT configuration file.

[0071] In the embodiment of the present invention, after the SLOT configuration file of the normal slave device upstream of the faulty slave device is updated, the communication transmission between the master device chip and the normal slave device can be performed according to the updated SLOT configuration file;

[0072] In one example, a master device chip and slave devices A, B, C, D, and E are connected to the audio bus. Slave device D is a faulty slave device. At this time, the SLOT configuration files of the normal slave devices upstream of slave device D can be updated, that is, the SLOT configuration files of slave devices A, B, and C can be updated, and then communication and transmission between the master device chip and slave devices A, B, and C can be performed, thereby avoiding the situation where other slave devices cannot continue to work after a faulty slave device appears in the audio bus link.

[0073] The present invention can detect multiple slave devices through the vehicle audio system to determine the faulty slave device. When an individual slave device is abnormal, it can be discovered in time, which provides convenience for maintenance personnel to maintain and replace it, and improves the inspection efficiency. The present invention can update the SLOT configuration file of the normal slave device upstream of the faulty slave device, and can perform communication and transmission between the master device chip and the normal slave device according to the updated SLOT configuration file, so as not to affect the normal operation of the remaining normal slave devices.

[0074] Reference Figure 2 , shows a flowchart of another method for in-vehicle audio provided by an embodiment of the present invention, the method may specifically include the following steps:

[0075] Step 201: Obtain a slave device list, where the slave device list includes serial number values ​​of multiple slave devices.

[0076] In an embodiment of the present invention, the slave device list is used to save the numbering sequence values ​​of multiple slave devices. For example, there are 5 slave devices, which are numbered 1, 2, 3, 4, and 5, and the numbering sequence values ​​of the 5 slave devices are saved in the numbering list. Different numbering sequence values ​​correspond to different slave devices. It should be noted that the slave device can also save the name information and configuration information of the slave device, which is not limited here.

[0077] Step 202: read the serial number value and the total number of serial numbers in the slave device list, and detect multiple slave devices according to the serial number value.

[0078] In an embodiment of the present invention, when there are 5 slave devices in the slave device list, and the numbering sequence values ​​are 1, 2, 3, 4, and 5 respectively, the total number of slave devices read is 5. Then, multiple slave devices are detected in order from small to large number of numbering sequence values. If a slave device corresponding to a numbering sequence value of 1 is detected, it means that slave device 1 is normal.

[0079] Step 203: If the sequence value of the last detected slave device is less than the total number of the slave devices, the first slave device downstream of the last detected slave device is determined as a faulty slave device.

[0080] In an embodiment of the present invention, if the number sequence value of the last detected slave device is 5 and the total number is also 5, it means that the slave device in the audio bus link is normal; if the number sequence value of the last detected slave device is 3, which is less than the total number of 5, it means that the first slave device downstream of number 3, that is, the slave device corresponding to number 4, is a faulty slave device; if the number sequence value of the last detected slave device is 4, which is less than the total number of 5, it means that the first slave device downstream of number 4, that is, the slave device corresponding to number 5, is a faulty slave device.

[0081] In one embodiment of the present invention, the master device chip is driven by an external clock, and the detecting of multiple slave devices includes:

[0082] After the external clock is synchronized with the clock of the master device chip, multiple slave devices are detected.

[0083] In an embodiment of the present invention, the master device chip is generally driven by an external clock. Generally, after the external clock is stable, the PLL (Phase Locked Loop) completes the frequency locking, which is a phase-locked loop or phase-locked loop, used to unify and integrate the clock signal, so that the external clock is synchronized with the clock of the master device chip, thereby detecting multiple slave devices when the external input signal is synchronized with the internal oscillation signal.

[0084] In one embodiment of the present invention, detecting multiple slave devices to determine a faulty slave device includes:

[0085] Obtain a slave device list, the slave device list including number sequence values ​​of multiple slave devices; read the number sequence values ​​in the slave device list, and detect the multiple slave devices according to the number sequence values; when at least one slave device is not detected, determine the first slave device downstream of the last detected slave device as a faulty slave device.

[0086] In an embodiment of the present invention, multiple slave devices in an audio bus can be detected according to their sequence values. For example, a master device chip in the audio bus is connected to five slave devices, and their sequence values ​​are 1, 2, 3, 4, and 5, respectively. When only one slave device with a sequence value of 5 is not detected, the last slave device detected has a sequence value of 4, and the slave device with a sequence value of 5 is a faulty slave device.

[0087] In one embodiment of the present invention, the method may further include:

[0088] The serial number value of the faulty slave device is deleted from the slave device list to obtain the serial number values ​​of the remaining multiple slave devices; the serial number values ​​of the remaining multiple slave devices are arranged in ascending order to obtain an updated slave device list.

[0089] In an embodiment of the present invention, when the master device chip in the audio bus is connected to 5 slave devices, the numbering sequence values ​​are 1, 2, 3, 4, and 5 respectively, and the numbering sequence value of the faulty slave device is 4, the numbering sequence value 4 can be deleted from the slave device list. At this time, the numbering sequence values ​​in the slave device list are 1, 2, 3, and 5. Then, the numbering sequence values ​​of the multiple slave devices are rearranged in order from small to large. At this time, the rearranged numbering sequence values ​​are 1, 2, 3, and 4.

[0090] In one embodiment of the present invention, after the slave device list is updated, the maintenance personnel can be notified to remove the faulty slave device corresponding to the sequence value 4 from the audio bus link, and then connect the normal slave device corresponding to the sequence value 3 to the slave device corresponding to the sequence value 5. Then, the slave devices in the reconnected audio bus link can be detected according to the updated slave device list.

[0091] Step 204: Update the SLOT configuration file of the normal slave device upstream of the faulty slave device.

[0092] In one embodiment of the present invention, the SLOT configuration file includes: a first quantity parameter, where the first quantity parameter is the number of SLOTs uploaded by the slave device, and the updating of the SLOT configuration file of the normal slave device upstream of the faulty slave device includes:

[0093] Obtain a current first quantity parameter corresponding to each normal slave device upstream of the faulty slave device; determine the number of undetected slave devices; and subtract the number of undetected slave devices from the current first quantity parameter corresponding to each normal slave device to obtain an updated first quantity parameter.

[0094] In an embodiment of the present invention, when the SLOT configuration file includes: a first quantity parameter, the first quantity parameter is the number of SLOTs uploaded through the slave device, and the faulty slave device and the slave devices downstream of the faulty slave device no longer upload the number of SLOTs to the passing slave device. Therefore, the current first quantity parameter corresponding to each normal slave device upstream of the faulty slave device can be obtained first, and then the number of undetected slave devices can be determined. The current first quantity parameter corresponding to each normal slave device is subtracted from the number of undetected slave devices to obtain the updated first quantity parameter.

[0095] In one example, there are 5 slave devices on the audio bus, and the sequence values ​​are 1, 2, 3, 4, and 5. When the slave device corresponding to the sequence value 4 is a faulty slave device, initially, the first quantity parameter of the slave device with the sequence value 1 is 0x04, the first quantity parameter of the slave device with the sequence value 2 is 0x03, the first quantity parameter of the slave device with the sequence value 3 is 0x02, the first quantity parameter of the slave device with the sequence value 4 is 0x01, and the first quantity parameter of the slave device with the sequence value 5 is 0x00. Since the slave device corresponding to the sequence value 4 fails, the slave devices corresponding to 4 and 5 cannot upload the number of SLOTs to the upstream. At this time, the first quantity parameter of the normal slave devices will be reduced by 2. At this time, the first quantity parameter of the slave device with the sequence value 1 is 0x04-2, the first quantity parameter of the slave device with the sequence value 2 is 0x03-2, and the first quantity parameter of the slave device with the sequence value 3 is 0x02-2.

[0096] like Figure 3, shows a system flow chart of a fault handling method for a vehicle audio bus provided by an embodiment of the present invention. The master device chip waits for PLL lock and then starts to start detection. At this time, the node with the number sequence value is 0. Multiple slave devices are detected one by one according to the number sequence value in the slave device list, and then node+1 is added to determine whether the currently detected slave device is the last slave device. If it is the last slave device, the detection is exited. If it is not the last slave device, the next slave device is detected to determine whether inttype_DISCONE is read. inttype_DISCONE represents the response information of the interrupt request. If the response information can be read, it means that the query can be performed. To the current slave device, if the response information cannot be read, it means that the current slave device cannot be queried, that is, the current slave device may be faulty. At this time, the detection is interrupted, and after the query is completed, the number sequence value of the last slave device queried is compared with the total number of numbers to determine whether it is less than the total number. If it is less than the total number, the first slave device downstream of the last detected slave device is determined as the faulty slave device, and the SLOT configuration file of the normal slave device is updated, and a message is sent to notify the upper-layer application of the faulty slave device, and then the audio stream is started for the remaining normal slave devices; when the number sequence value of the last slave device is not less than the total number of numbers, it means that the audio bus is working normally, and the audio stream is directly started.

[0097] Step 205: Perform communication and transmission between the master device chip and the normal slave device according to the updated SLOT configuration file.

[0098] In one embodiment of the present invention, the method further includes:

[0099] Generates a prompt message, which is used to inform the user that there is a faulty slave device.

[0100] In an embodiment of the present invention, prompt information can be generated and displayed to maintenance personnel. For example, a prompt information indicating that a slave device numbered 4 has a fault can be generated in the interface of the vehicle audio system, and the maintenance personnel can troubleshoot the faulty slave device numbered 4 based on the prompt information.

[0101] The present invention can detect multiple slave devices through the vehicle audio system to determine the faulty slave device. When an individual slave device is abnormal, it can be discovered in time, which provides convenience for maintenance personnel to maintain and replace it, and improves the inspection efficiency. The present invention can update the SLOT configuration file of the normal slave device upstream of the faulty slave device, and can perform communication and transmission between the master device chip and the normal slave device according to the updated SLOT configuration file, so as not to affect the normal operation of the remaining normal slave devices.

[0102] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0103] Reference Figure 4 , shows a structural block diagram of a fault handling device for a vehicle audio bus provided by an embodiment of the present invention, which may specifically include the following modules:

[0104] A detection module 301 is configured to detect the plurality of slave devices and determine a faulty slave device;

[0105] An updating module 302 is configured to update a SLOT configuration file of a normal slave device upstream of the faulty slave device;

[0106] The transmission module 302 is configured to perform communication transmission between the master device chip and the normal slave device according to the updated SLOT configuration file.

[0107] The present invention can detect multiple slave devices through the vehicle audio system to determine the faulty slave device. When an individual slave device is abnormal, it can be discovered in time, which provides convenience for maintenance personnel to maintain and replace it, and improves the inspection efficiency. The present invention can update the SLOT configuration file of the normal slave device upstream of the faulty slave device, and can perform communication and transmission between the master device chip and the normal slave device according to the updated SLOT configuration file, so as not to affect the normal operation of the remaining normal slave devices.

[0108] In one embodiment of the present invention, the detection module 301 may include:

[0109] A first acquisition submodule is configured to acquire a slave device list, wherein the slave device list includes a plurality of serial number values ​​of the slave devices;

[0110] A reading submodule, configured to read the number sequence value and the total number of numbers in the slave device list, and detect the plurality of slave devices according to the number sequence value;

[0111] The first determining submodule is configured to determine the first slave device downstream of the last detected slave device as a faulty slave device if the number sequence value of the last detected slave device is less than the total number of numbers.

[0112] In an embodiment of the present invention, the SLOT configuration file includes: a first quantity parameter, where the first quantity parameter is the number of SLOTs uploaded from the device. The update module 302 may include:

[0113] A second acquisition submodule is configured to acquire a current first quantity parameter corresponding to each normal slave device upstream of the faulty slave device;

[0114] A second determining submodule, configured to determine the number of undetected slave devices;

[0115] The subtraction submodule is configured to subtract the number of undetected slave devices from the current first number parameter corresponding to each normal slave device to obtain an updated first number parameter.

[0116] In one embodiment of the present invention, the detection module 301 may include:

[0117] A third acquisition submodule is configured to acquire a slave device list, wherein the slave device list includes a plurality of serial number values ​​of the slave devices;

[0118] a detection submodule, configured to read the number sequence values ​​in the slave device list and detect the plurality of slave devices according to the number sequence values;

[0119] The third determining submodule is configured to determine the first slave device downstream of the last detected slave device as a faulty slave device when at least one of the slave devices is not detected.

[0120] In one embodiment of the present invention, the device may further include:

[0121] a deleting module, configured to delete the serial number value of the faulty slave device from the slave device list, and obtain the serial number values ​​of the remaining plurality of slave devices;

[0122] The arrangement module is used to arrange the serial number values ​​of the remaining multiple slave devices in ascending order to obtain an updated slave device list.

[0123] In one embodiment of the present invention, the device may further include:

[0124] The generating module is used to generate prompt information, wherein the prompt information is used to prompt the user that there is a faulty slave device.

[0125] In one embodiment of the present invention, the master device chip is driven by an external clock, and the detection module 301 may include:

[0126] The synchronization submodule is used to detect the plurality of slave devices after the external clock is synchronized with the clock of the master device chip.

[0127] The present invention discloses a fault handling device for an in-vehicle audio bus. The present invention can detect multiple slave devices through an in-vehicle audio system to determine the faulty slave device. When an individual slave device is abnormal, it can be discovered in time, which provides convenience for maintenance personnel to maintain and replace it, and improves the inspection efficiency. The present invention can update the SLOT configuration file of the normal slave device upstream of the faulty slave device, and can perform communication and transmission between the master device chip and the normal slave device according to the updated SLOT configuration file, thereby not affecting the normal operation of the remaining normal slave devices.

[0128] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0129] An embodiment of the present invention further provides a vehicle, comprising:

[0130] The present invention includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, each process of the above-mentioned embodiment of the fault handling method for the audio bus is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0131] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned embodiment of the vehicle audio bus fault handling method are implemented, and the same technical effects can be achieved. To avoid repetition, they are not described here.

[0132] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0133] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatus, or computer program products. Thus, embodiments of the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0134] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the process in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0135] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0137] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0138] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only 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 terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0139] The above is a detailed introduction to the fault handling method, device, vehicle, and storage medium for an in-vehicle audio bus provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only intended to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.

Claims

1. A method for troubleshooting a vehicle audio bus, characterized in that: Applied to an in-vehicle audio system, wherein the in-vehicle audio system has a master device chip and a slave device connected in series on the audio bus, the method comprising: Detecting the plurality of slave devices to determine a faulty slave device; Updating the SLOT configuration file of a normal slave device upstream of the faulty slave device according to the missing SLOT configuration information; The communication transmission between the master device chip and the normal slave device is performed according to the updated SLOT configuration file.

2. The method according to claim 1, characterized in that The SLOT configuration file includes: a first quantity parameter, where the first quantity parameter is the number of SLOTs uploaded by the slave device. Updating the SLOT configuration file of a normal slave device upstream of the faulty slave device according to the missing SLOT configuration information includes: Obtain a current first quantity parameter corresponding to each normal slave device upstream of the faulty slave device; Determine the number of undetected slave devices; The current first quantity parameter corresponding to each normal slave device is subtracted from the number of undetected slave devices to obtain an updated first quantity parameter.

3. The method according to claim 1, characterized in that The detecting of the plurality of slave devices to determine a faulty slave device includes: Acquire a slave device list, wherein the slave device list includes serial number values ​​of a plurality of the slave devices; Reading the number sequence value and the total number of numbers in the slave device list, and detecting the plurality of slave devices according to the number sequence value; If the number sequence value of the last detected slave device is smaller than the total number of numbers, the first slave device downstream of the last detected slave device is determined as a faulty slave device.

4. The method according to claim 1, wherein The detecting of the plurality of slave devices to determine a faulty slave device includes: Acquire a slave device list, wherein the slave device list includes serial number values ​​of a plurality of the slave devices; Reading the serial number values ​​in the slave device list, and detecting the plurality of slave devices according to the serial number values; When at least one of the slave devices is not detected, the first slave device downstream of the last detected slave device is determined as a faulty slave device.

5. The method according to claim 4, characterized in that The method further comprises: Deleting the serial number value of the faulty slave device from the slave device list to obtain the serial number values ​​of the remaining multiple slave devices; The number sequence values ​​of the remaining multiple slave devices are arranged in ascending order to obtain an updated slave device list.

6. The method according to claim 4, characterized in that The detecting of the plurality of slave devices to determine a faulty slave device includes: The master device chip starts detecting the faulty slave device after waiting for the phase-locked loop to lock.

7. The method according to claim 4, characterized in that The detecting of the plurality of slave devices to determine a faulty slave device includes: The faulty slave device is determined based on response information of the interrupt request.

8. The method according to claim 1, characterized in that The method further comprises: Prompt information is generated, where the prompt information is used to prompt a user that a faulty slave device exists.

9. The method according to claim 8, characterized in that The method further comprises: A prompt message indicating that a slave device with a corresponding number has failed is generated in the interface of the vehicle audio system.

10. The method according to claim 1, characterized in that The master device chip is driven by an external clock, and the detecting of the plurality of slave devices includes: After the external clock is synchronized with the clock of the master device chip, the plurality of slave devices are detected.

11. The method according to claim 1, wherein The SLOT configuration file includes the number of SLOTs received from the downstream slave device, the number of SLOTs to be uploaded from the slave device, the number of SLOTs sent from the slave device, and the number of SLOTs uploaded from the slave device.

12. A vehicle, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the fault handling method for a vehicle audio bus according to any one of claims 1 to 11 are implemented.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fault handling method for a vehicle audio bus according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • Flexible Ethernet link fault response method, device, equipment and medium

    CN112543113A