Adaptive collection device, adaptive collection system and adaptive collection method
By designing adaptive acquisition equipment, it can automatically analyze and adapt to different types of bus and baud rates, solving the problem of wrong parameter configuration during bus data acquisition in the prior art, and achieving high accuracy and reliability data acquisition.
Patent Information
- Application Number
- PCT/CN2024/121810
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-24
- Filing Date
- 2024-09-27
- Publication Date
- 2025-05-30
AI Technical Summary
In automotive electronic and electrical systems, the prior art is difficult to adapt to different types of buses and baud rates, resulting in parameter configuration errors in bus data acquisition, which in turn leads to failure to read data.
An adaptive acquisition device is designed, including a first connector and a sampling module, which can connect the bus of the target device and automatically analyze the bus type and baud rate, and use the corresponding acquisition channel to collect data based on the analysis results.
Adaptive bus data acquisition is realized, data reading failure caused by wrong parameter configuration is avoided, and data acquisition accuracy and reliability are improved.
Smart Images

Figure CN2024121810_30052025_PF_FP_ABST
Abstract
Description
Adaptive acquisition device, adaptive acquisition system and adaptive acquisition method
[0001] Priority information
[0002] This invention claims priority and benefits from patent application number 202311600632.7 filed with the State Intellectual Property Office of China on November 24, 2023, and the entire text of which is incorporated herein by reference. Technical Field
[0003] The present invention relates to the technical field of bus data acquisition, and more particularly to an adaptive acquisition device, an adaptive acquisition system and an adaptive acquisition method. Background Art
[0004] In recent years, the electrification, networking, and intelligentization of automobiles have continued to deepen, leading to increasingly complex electronic and electrical architectures. The amount of information communicated between various electronic and electrical components has increased exponentially. This information communication can be achieved through a variety of methods, such as the CAN bus, CANFD bus, and LIN bus. Because automobiles often experience various faults, such as breakdowns and malfunction lights, troubleshooting requires collecting and analyzing the data streams on the bus to provide a basis for troubleshooting.
[0005] Summary of the Invention
[0006] The embodiments of the present invention provide an adaptive acquisition device, an adaptive acquisition system and an adaptive acquisition method.
[0007] An embodiment of the present invention provides an adaptive acquisition device, comprising a first connector and a sampling module. The first connector is capable of connecting to a second connector of a target device to connect to a bus of the target device, wherein the bus includes multiple types of buses. The sampling module is configured to determine the bus type of the bus and use an acquisition channel corresponding to the bus type to acquire bus data transmitted by the bus.
[0008] In this way, the adaptive acquisition device analyzes the bus type after connecting to the bus, and uses the corresponding acquisition channel to collect bus data according to the determined bus type to achieve adaptive bus data acquisition, thereby avoiding bus data reading failure caused by incorrect configuration of parameters such as bus type.
[0009] In some embodiments, the sampling module is further configured to determine a baud rate of the bus data, so as to collect the bus data according to the collection channel and the baud rate.
[0010] In this way, after connecting to the bus, the adaptive acquisition device performs adaptive analysis on the bus type and the baud rate of bus data transmission, and uses the corresponding acquisition channel and baud rate to collect bus data according to the determined bus type to achieve adaptive bus data acquisition, thereby avoiding bus data reading failures caused by incorrect configuration of parameters such as bus type and baud rate.
[0011] In some embodiments, the adaptive acquisition device further includes a storage module configured to store the acquired bus data.
[0012] In this way, by storing the collected bus data through the storage module, the user can store the bus data in the storage module when there is no electronic equipment capable of storing and analyzing the bus data, and then read the stored bus data in the storage module when needed to analyze and process it.
[0013] In some embodiments, the adaptive acquisition device further includes a setting module, and the setting module is configured to control the storage module to enter a target working state among multiple working states.
[0014] In this way, the storage module can be controlled by the setting module to enter the target working state corresponding to the user's needs to meet the user's needs.
[0015] In some embodiments, the working state includes a storage state, a pause state, a termination state and a clear state. When in the storage state, the storage module is configured to store the bus data; when in the pause state, the storage module is configured to pause the storage of the bus data; when in the termination state, the storage module is configured to terminate the storage of the bus data; when in the clear state, the storage module is configured to clear the stored bus data.
[0016] In this way, by controlling the storage module to enter different working states, the storage module can realize different functions, such as storage function, pause function, termination function, and clear function, to meet user needs.
[0017] In some embodiments, the setting module includes a setting switch, one setting switch corresponds to one working state, and when the setting switch is turned on, the setting module is configured to control the storage module to enter the target working state, and the target working state is the working state corresponding to the turned-on setting switch.
[0018] In this way, by controlling the setting switch to be turned on, the setting module can control the storage module to enter the working state corresponding to the turned-on setting switch, thereby realizing the corresponding function to meet the needs of the user.
[0019] In some embodiments, the adaptive acquisition device further includes a control switch, a power module, a storage module, and a setting module, wherein the control switch connects the storage module and the power module, and the setting module is configured to generate a first current to control the control switch to be closed. When the control switch is closed, the power module provides a second current to the storage module, and the first current is less than the second current.
[0020] In some embodiments, the adaptive acquisition device also includes a setting switch, the control switch includes a relay, one relay corresponds to one setting switch, and the relay includes: a coil and an internal switch, one end of the coil is connected to the setting module, and the other end of the coil is grounded; one end of the internal switch is connected to the power module, and the other end of the internal switch is connected to the storage module; when the setting switch is turned on, the setting module is configured to generate the first current to flow through the coil of the relay corresponding to the setting switch to control the coil to generate magnetic force, and when the coil generates magnetic force, the internal switch is closed, and the power module provides the second current to the storage module, and the first current is less than the second current.
[0021] In this way, by using relays to realize the setting module's control over the working state of the storage module, the setting module can drive a large current using a small current, thereby avoiding damage to internal components caused by large current impact when the setting module is driven using a large current.
[0022] In some embodiments, the first connector is capable of connecting to the second connector to connect to the energy storage component of the target device. The adaptive acquisition device also includes a power module, which is configured to receive electrical energy from the energy storage component to power other modules of the adaptive acquisition device except the power module.
[0023] In this way, the power module can receive the electric energy of the energy storage component and supply power to other modules of the adaptive acquisition device, so that the modules of the adaptive acquisition device can work.
[0024] In some embodiments, the adaptive acquisition device further includes a wireless transmission module, which is capable of wirelessly transmitting the bus data to an electronic device capable of analyzing the bus data.
[0025] In this way, the stored bus data is transmitted to the electronic device through the wireless transmission module, so that the electronic device can analyze the bus data and transmit it without a data line, thereby reducing the difficulty of the transmission operation.
[0026] In some embodiments, the adaptive acquisition device further includes a transfer connector capable of connecting to an electronic device to transmit the bus data to an electronic device capable of analyzing the bus data.
[0027] In this way, by connecting the adapter connector to the electronic device, the bus data can be transmitted to the electronic device, so that the electronic device can analyze and process the bus data, thereby improving the reliability and accuracy of the transmission.
[0028] In some embodiments, the adaptive acquisition device further includes a display module, wherein the display module is configured to display real-time working information of the adaptive acquisition device, wherein the real-time working information includes the collection amount of the bus data and the storage amount of the bus data.
[0029] In this way, the real-time working information of the adaptive acquisition device is displayed through the display module, so that the user can understand the working status of the adaptive acquisition device in real time, and can make timely adjustments according to needs.
[0030] An embodiment of the present invention provides an adaptive acquisition system, which includes a target device and the adaptive acquisition device of any one of the above embodiments, wherein the adaptive acquisition device is configured to acquire bus data transmitted by a bus of the target device.
[0031] In this way, the adaptive acquisition system analyzes the bus type after connecting to the bus, and uses the corresponding acquisition channel to collect bus data according to the determined bus type to achieve adaptive bus data acquisition, thereby avoiding bus data reading failures caused by incorrect configuration of parameters such as bus type.
[0032] An embodiment of the present invention provides an adaptive acquisition method, which is used for an adaptive acquisition device. The adaptive acquisition device includes a first connector, which is capable of connecting to a second connector of a target device. The adaptive acquisition device is configured to connect to a bus of the target device through the second connector. The adaptive acquisition method includes: determining a bus type of the bus; and using an acquisition channel corresponding to the bus type to acquire bus data transmitted by the bus.
[0033] In this way, the adaptive acquisition method analyzes the bus type after connecting to the bus, and uses the corresponding acquisition channel to collect bus data according to the determined bus type to achieve adaptive bus data acquisition, thereby avoiding bus data reading failures caused by incorrect configuration of parameters such as bus type.
[0034] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments with reference to the following drawings, in which:
[0036] FIG1 is a schematic diagram of an adaptive acquisition device and a target device according to an embodiment of the present invention;
[0037] FIG2 is a schematic diagram of an adaptive acquisition device according to an embodiment of the present invention;
[0038] FIG3 is a circuit diagram of a sampling circuit according to an embodiment of the present invention;
[0039] FIG4 is a schematic flow chart of an adaptive acquisition method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The embodiments of the present invention are described in detail below. The embodiments of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention and are not to be construed as limiting the present invention.
[0041] In recent years, the electrification, networking, and intelligence of automobiles have continued to deepen, and the electronic and electrical architecture of automobiles has become increasingly complex. The amount of information communication between various electronic and electrical components has increased exponentially. There are many ways to communicate this information, such as through the CAN bus, CANFD bus, LIN bus, etc. Since automobiles often have various faults, such as breaking down, fault lights on, etc., when troubleshooting, it is necessary to collect and analyze the data stream on the bus to provide a basis for fault inspection and repair. In related technologies, bus data is read online by connecting a computer to the car diagnostic interface, and the bus data file is stored on the computer to facilitate offline analysis of the bus data. In this way, parameter configuration is required before using the computer to read the bus data. If the configuration is wrong, it will cause bus data reading errors or failures, and the parameter configuration operation is demanding.
[0042] Referring to FIG. 1 , an embodiment of the present invention provides an adaptive acquisition device 100, which includes a first connector 10 and a sampling module 20. The first connector 10 is connectable to a second connector 201 of a target device 200 to connect to a bus of the target device 200. The bus includes various types of buses. The sampling module 20 is configured to determine the bus type of the bus and to use an acquisition channel corresponding to the bus type to acquire bus data transmitted by the bus. Different bus types correspond to different acquisition channels.
[0043] Specifically, the target device 200 includes devices such as vehicles and computers that use buses for management. This embodiment describes the target device 200 as a vehicle. Vehicle bus types include Controller Area Network (CAN) buses, CANFD (Controller Area Network Flexible Data Rate) buses, and Local Interconnect Network (LIN) buses. The sampling module 20 can determine the bus type and collect bus data using the corresponding acquisition channel. If the bus type is determined to be a CAN bus, the sampling module 20 collects CAN bus data using the corresponding CAN channel. If the bus type is determined to be a CANFD bus, the sampling module 20 collects CAN FD bus data using the corresponding CAN FD channel. If the bus type is determined to be a LIN bus, the sampling module 20 collects LIN bus data using the corresponding LIN channel. After determining the acquisition channel, the sampling module 20 collects bus data based on the determined acquisition channel, eliminating the need to manually set the bus type or configure the channel, thus avoiding bus data acquisition errors or failures caused by incorrect settings.
[0044] In this way, the adaptive acquisition device 100 analyzes the bus type after connecting to the bus, and uses the corresponding acquisition channel to acquire bus data according to the determined bus type to achieve adaptive bus data acquisition, thereby avoiding bus data reading failure caused by incorrect configuration of parameters such as bus type.
[0045] In some embodiments, the sampling module 20 is further configured to determine the baud rate of the bus data, so as to collect the bus data according to the collection channel and the baud rate.
[0046] Specifically, the baud rate includes 19.2kbps, 250kMbps, 500kMbps, 1MMbps or 2Mbps, etc. After the sampling module 20 determines the acquisition channel and baud rate, the bus data is collected according to the determined acquisition channel and baud rate. There is no need to manually set parameter information such as the bus type, configure the channel and set the baud rate, thereby avoiding bus data acquisition errors or failures caused by incorrect parameter information settings.
[0047] In this way, after connecting to the bus, the adaptive acquisition device 100 adaptively analyzes the bus type and the baud rate of bus data transmission, and uses the corresponding acquisition channel and baud rate to collect bus data according to the determined bus type to achieve adaptive bus data acquisition, thereby avoiding bus data reading failures caused by incorrect configuration of parameters such as bus type and baud rate.
[0048] In some embodiments, the adaptive acquisition device 100 further includes a storage module 30 , and the storage module 30 is configured to store the acquired bus data.
[0049] Specifically, after collecting the bus data, the adaptive acquisition device 100 can store the bus data in the storage module 30, and the bus data stored in the storage module 30 can be deleted according to user needs, so that the storage module 30 can store the bus data required by the user. In this way, when the user does not have an electronic device such as a computer that can analyze the bus data, the bus data can be stored for the user to use or analyze the stored bus data when needed.
[0050] In this way, the collected bus data is stored in the storage module 30, so that the user can store the bus data in the storage module 30 when there is no electronic equipment capable of analyzing the bus data, and then read the stored bus data in the storage module 30 when needed to analyze and process it.
[0051] In some embodiments, the adaptive acquisition device 100 further includes a setting module 40 , which is configured to control the storage module 30 to enter a target working state among multiple working states.
[0052] Specifically, the user can set the working state of the storage module 30 through the setting module 40, and control the storage module 30 to enter the target working state through the setting module 40, so that the user can control the adaptive acquisition device 100 according to needs to meet the user's needs.
[0053] In this way, the setting module 40 can control the storage module 30 to enter the target working state corresponding to the user's needs to meet the user's needs.
[0054] In some embodiments, the working state includes a storage state, a pause state, a termination state, and a clear state. When in the storage state, the storage module 30 is configured to store bus data; when in the pause state, the storage module 30 is configured to pause the storage of bus data; when in the termination state, the storage module 30 is configured to terminate the storage of bus data; when in the clear state, the storage module 30 is configured to clear the stored bus data.
[0055] Specifically, the working states of the storage module 30 include a storage state, a pause state, a termination state, and a clear state. The user can select the desired target working state according to needs and control the storage module 30 to enter the target working state through the setting module 40. If bus data needs to be stored, the storage module 30 is controlled to enter the storage state through the setting module 40; if the storage of bus data needs to be paused, the storage module 30 is controlled to enter the pause state through the setting module 40. When the storage module 30 is in the pause state, if the setting module 40 controls the storage module 30 to enter the storage state, the storage module 30 can continue to store the bus data stored in the previous storage state; if the storage of bus data needs to be terminated, the storage module 30 is controlled to enter the termination state through the setting module 40. When the storage module 30 is in the termination state, if the setting module 40 controls the storage module 30 to enter the storage state, the storage module 30 can store data transmitted by a bus different from the bus data stored in the previous storage state; if the stored bus data needs to be cleared, the storage module 30 is controlled to enter the clearing state through the setting module 40. The user can select the bus data to be cleared according to needs. By controlling the state of the storage module 30 , the storage module 30 can be controlled to implement different functions to meet user needs.
[0056] In this way, by controlling the storage module 30 to enter different working states, the storage module 30 can realize different functions, such as storage function, pause function, termination function, and clear function, to meet the needs of users.
[0057] In some embodiments, the setting module 40 includes a setting switch, one setting switch corresponds to one working state, and when the setting switch is turned on, the setting module 40 is configured to control the storage module 30 to enter a target working state, where the target working state is the working state corresponding to the turned-on setting switch.
[0058] Specifically, the setting switch can be a setting button. When the setting button is pressed, the setting button is considered to be turned on. The setting buttons include a storage button, a pause button, a stop button and a clear button. When any of the setting buttons is pressed, the setting module 40 controls the storage module 30 to enter the working state corresponding to the pressed setting button. When the storage button is pressed, the setting module 40 controls the storage module 30 to enter the storage state; when the pause button is pressed, the setting module 40 controls the storage module 30 to enter the pause state. In the pause state, only the storage module 30 pauses the storage of bus data, and other related components in the adaptive acquisition device 100 continue to work; when the stop button is pressed, the setting module 40 controls the storage module 30 to enter the stop state. In the stop state, the adaptive acquisition device 100 can stop working, and the cached data stream and other storage-related data are cleared. The user can disconnect the adaptive acquisition device 100 from the battery to stop powering the adaptive acquisition device; when the clear button is pressed, the setting module 40 controls the storage module 30 to enter the clear state. The user can select a setting button according to the required function, and by pressing the corresponding setting button, the setting module 40 controls the storage module 30 to enter the corresponding working state to achieve the function required by the user.
[0059] In this way, by controlling the setting switch to be turned on, the setting module 40 can control the storage module 30 to enter the working state corresponding to the turned-on setting switch, thereby realizing the corresponding function to meet the needs of the user.
[0060] In some embodiments, the adaptive acquisition device also includes a storage module 30, a setting module 40, a power module 50 and a control switch, the control switch connects the storage module 30 and the power module 50, the setting module 40 is configured to generate a first current to control the control switch to be closed, and when the control switch is closed, the power module 50 provides a second current to the storage module 30, and the first current is less than the second current.
[0061] Specifically, the setting module 40 corresponds to the control switch one by one. When a setting switch is triggered to turn on, the setting module 40 generates a smaller first current to control the control switch corresponding to the turned-on setting switch to close. When the control switch is closed, the power supply module 50 provides a larger second current to the storage module 30 to control the storage module 30 to implement the function corresponding to the turned-on setting switch, thereby realizing a small current driving a large current.
[0062] In this way, a smaller first current is used to drive the power supply module 50 to provide a larger second current to the storage module 30, thereby realizing the driving of a large current by a small current, reducing power consumption while avoiding damage to the components of the module caused by the impact of large current during driving.
[0063] Please refer to Figure 2. In some embodiments, the adaptive acquisition device 100 also includes a setting switch, and the control switch includes a relay 60. One relay 60 corresponds to one setting switch. The relay 60 includes: a coil 61 and an internal switch 62. One end of the coil 61 is connected to the setting module 40, and the other end of the coil 61 is grounded; one end of the internal switch 62 is connected to the power module 50, and the other end of the internal switch 62 is connected to the storage module 30; when the setting switch is turned on, the setting module 40 is configured to generate a first current to flow through the coil 61 of the relay 60 corresponding to the setting switch to control the coil 61 to generate magnetic force. When the coil 61 generates magnetic force, the internal switch 62 is closed, and the power module 50 provides a second current to the storage module 30, and the first current is less than the second current.
[0064] Specifically, each relay 60 corresponds to a setting button. When the setting button is pressed, the setting module 40 generates a first current. The first current flows through the coil 61 of the relay 60 corresponding to the setting button, causing the coil 61 to generate a magnetic force, which attracts the internal switch 62 of the relay 60 to close. When the internal switch 62 is closed, the power module 50 can provide a second current to the storage module 30, causing the storage module 30 to enter the working state corresponding to the pressed setting button. In one embodiment, the storage button corresponds to the storage relay 60. When the storage button is pressed, the setting module 40 generates a first current. The first current flows through the storage relay 60 corresponding to the storage button, causing the coil 61 of the storage relay 60 to generate a magnetic force, which closes the internal switch 62. The current module 50 provides a second current to the storage module 30, causing the storage module 30 to enter the storage state and begin storing bus data. The first current is smaller than the second current, allowing the setting module 40 to use a small current to drive a large current, thereby preventing damage to components within the setting module 40 caused by the high current when driving with a large current.
[0065] In this way, by using the relay 60 to realize the setting module 40's control over the working state of the storage module 30, the setting module 40 can drive a large current using a small current, thereby avoiding damage to the internal components of the setting module 40 caused by the impact of large current when the setting module 40 is driven using a large current.
[0066] Referring to FIG. 3 , in some embodiments, the sampling module 20 further includes a sampling circuit 21 , and the sampling circuit 21 is used to collect bus data.
[0067] Specifically, the sampling circuit 21 includes a CAN / CANFD sampling circuit 211 and a LIN sampling circuit 212 . The CAN / CANFD sampling circuit 211 is used to collect bus data transmitted by the CAN bus or the CANFD bus, and the LIN sampling circuit 212 is used to collect bus data transmitted by the LIN bus. Among them, the CAN / CANFD sampling circuit 211 includes an electromagnetic compatibility (EMC) capacitor 2111, a voltage regulator protector 2112 and a common-mode inductor 2113. The EMC capacitor 2111 is used to improve the electromagnetic compatibility of the sampling circuit 21, the voltage regulator protector 2112 is used to protect the sampling circuit 21 from being damaged by surge voltage, and the common-mode inductor 2113 is used to suppress common-mode interference to improve the quality of the bus data signal; the LIN sampling circuit 212 includes a diode 2121, a filter capacitor 2122, a filter RC circuit 2123 and a grounding resistor 2124. The diode 2121 is used to prevent the power supply of the LIN bus from reversely flowing into the vehicle and interfering with the data signal. The filter capacitor 2122, the filter RC circuit 2123 and the grounding resistor 2124 are all used to improve signal quality and reduce interference.
[0068] In this way, the bus data can be effectively collected through the sampling circuit 21 so that the storage module 30 can store the bus data.
[0069] In some embodiments, the first connector 10 can be connected to the second connector 201 to connect to the energy storage component of the target device 200. The adaptive acquisition device 100 also includes a power module 50, which is configured to receive electrical energy from the energy storage component to power other modules of the adaptive acquisition device 100 except the power module 50.
[0070] Specifically, the energy storage component includes a vehicle battery. After the first connector 10 and the second connector 201 are connected, the acquisition module can connect to the bus of the target device 200 through the first connector 10 and the second connector 201 to collect bus data. Since the voltage provided by the battery is mostly 12V, it cannot directly power the modules of the adaptive acquisition device 100. Therefore, a power module 50 is provided. The power module 50 can connect to the battery through the first connector 10 and the second connector 201 to receive power from the energy storage component. The power module 50 then converts the power from the battery and other energy storage components and provides it to other modules of the adaptive acquisition device 100 other than the power module 50, thereby powering them, such as the acquisition module, the setting module 40, and the storage module 30. By providing the power module 50, the power from the battery can be converted into power suitable for the adaptive acquisition device 100, and the modules of the adaptive acquisition device 100 can be powered, enabling the adaptive acquisition device 100 to operate normally.
[0071] In this way, the power module 50 can receive the electric energy of the energy storage component and supply power to other modules of the adaptive acquisition device 100, so that the modules of the adaptive acquisition device 100 can work.
[0072] In some embodiments, the adaptive acquisition device 100 further includes a wireless transmission module 70 , which can wirelessly transmit the bus data to an electronic device capable of analyzing the bus data.
[0073] Specifically, electronic devices include mobile phones, computers, etc. The bus data stored in the storage module 30 can be transmitted to the electronic device via the wireless transmission module 70, so that the electronic device can analyze the bus data and determine the cause of the fault. The user does not need to prepare any connectors to transmit the bus data. In addition, transmitting bus data via wireless transmission simplifies the user's operation difficulty. In the absence of a computer and connectors, the adaptive acquisition device 100 can also transmit the bus data to the user's mobile phone via the wireless transmission module 70, so that the user can analyze and process the bus data via the mobile phone and immediately resolve the fault problem.
[0074] In this way, the stored bus data is transmitted to the electronic device through the wireless transmission module 70, so that the electronic device can analyze the bus data and transmit it without a data line, thereby reducing the difficulty of the transmission operation.
[0075] In some embodiments, the adaptive acquisition device 100 further includes a transfer connector 80 , which can be connected to an electronic device to transmit the bus data to an electronic device capable of analyzing the bus data.
[0076] Specifically, the adapter connector 80 can be connected to an electronic device via a connecting wire or other connecting member, thereby connecting to the electronic device in a wired manner and transmitting the stored bus data to the electronic device via the connecting member, so that the electronic device can analyze and process the bus data. Transmitting bus data via the connecting member improves the accuracy and reliability of bus data transmission. Using a suitable connecting wire can also increase the speed of bus data transmission, reducing user waiting time.
[0077] In this way, by connecting the adapter connector 80 to the electronic device, the bus data can be transmitted to the electronic device, so that the electronic device can analyze and process the bus data, thereby improving the reliability and accuracy of the transmission.
[0078] In some embodiments, the adaptive acquisition device 100 further includes a display module 90 , which is configured to display real-time operating information of the adaptive acquisition device 100 , including the amount of bus data collected and the amount of bus data stored.
[0079] Specifically, the display module 90 can display the real-time working information of the adaptive acquisition device 100. The real-time working information includes the collected amount of bus data of each channel, the collection timestamp of the bus data of each channel, the collection status of the bus data of each channel, the bus data storage status of each channel, the bus data clearing status of each channel and other information. The user can understand the working status of the adaptive acquisition device 100 through the real-time working information, so that the user can adjust the adaptive acquisition device 100 in time.
[0080] In this way, the real-time working information of the adaptive acquisition device 100 is displayed through the display module 90, so that the user can understand the working status of the adaptive acquisition device 100 in real time, and can make timely adjustments according to needs.
[0081] An embodiment of the present invention provides an adaptive acquisition system, which includes a target device 200 and the adaptive acquisition device 100 of any of the above embodiments. The adaptive acquisition device 100 is configured to acquire bus data transmitted by a bus of the target device 200 .
[0082] In this way, the adaptive acquisition system analyzes the bus type after connecting to the bus, and uses the corresponding acquisition channel to collect bus data according to the determined bus type to achieve adaptive bus data acquisition, thereby avoiding bus data reading failures caused by incorrect configuration of parameters such as bus type.
[0083] Referring to FIG. 4 , an embodiment of the present invention provides an adaptive acquisition method. The adaptive acquisition method is used in an adaptive acquisition device 100. The adaptive acquisition device 100 includes a first connector 10. The first connector 10 is connectable to a second connector 201 of a target device 200. The adaptive acquisition device 100 is configured to connect to a bus of the target device 200 via the second connector 201. The adaptive acquisition method includes:
[0084] 01: Determine the bus type of the bus;
[0085] 02: Use the acquisition channel corresponding to the bus type to collect the bus data transmitted by the bus. Different bus types correspond to different acquisition channels.
[0086] Specifically, the adaptive acquisition method of the embodiment of the present invention can be implemented by the adaptive acquisition device 100 of the embodiment of the present invention, wherein steps 01 and 02 can be implemented by the sampling module 20 of the adaptive acquisition device 100, that is, the sampling module 20 can be used to determine the bus type of the bus; the sampling module 20 can also be used to use the acquisition channel corresponding to the bus type to collect bus data transmitted by the bus.
[0087] In this way, the adaptive acquisition method analyzes the bus type after connecting to the bus, and uses the corresponding acquisition channel to collect bus data according to the determined bus type to achieve adaptive bus data acquisition, thereby avoiding bus data reading failures caused by incorrect configuration of parameters such as bus type.
[0088] The explanation of the adaptive acquisition device 100 according to the embodiment of the present invention is applicable to the adaptive acquisition method according to the embodiment of the present invention, and will not be repeated here.
[0089] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "example," "specific example," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment or example of the present invention. Throughout this specification, the illustrative descriptions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, those skilled in the art may combine and integrate different embodiments or examples, as well as features of different embodiments or examples, described in this specification, unless they are mutually incompatible.
[0090] Furthermore, the term "connection" should be interpreted broadly. For example, it can include fixed connection, detachable connection, or integral connection; it can include direct connection, indirect connection through an intermediate medium, and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention in specific circumstances.
[0091] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0092] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.
[0093] Although the embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. An adaptive acquisition device, wherein: The adaptive acquisition device comprises: a first connector, wherein the first connector is capable of connecting to a second connector of a target device to connect to a bus of the target device, wherein the bus includes multiple types of buses; A sampling module is configured to determine the bus type of the bus so as to use a collection channel corresponding to the bus type to collect bus data transmitted by the bus.
2. The adaptive acquisition device according to claim 1, wherein: The sampling module is further configured to determine the baud rate of the bus data so as to collect the bus data according to the collection channel and the baud rate.
3. The adaptive acquisition device according to claim 1, wherein: The adaptive acquisition device also includes: A storage module, wherein the storage module is configured to store the collected bus data.
4. The adaptive acquisition device according to claim 3, wherein: The adaptive acquisition device also includes: A setting module is configured to control the storage module to enter a target working state among multiple working states.
5. The adaptive acquisition device according to claim 4, wherein: The working status includes: a storage state, when in the storage state, the storage module is configured to store the bus data; a pause state, when in the pause state, the storage module is configured to pause storing the bus data; a termination state, when in the termination state, the storage module is configured to terminate the storage of the bus data; A clear state, when in the clear state, the storage module is configured to clear the stored bus data.
6. The adaptive acquisition device according to claim 4, wherein: The setting module includes a setting switch, one setting switch corresponds to one working state, and when the setting switch is turned on, the setting module is configured to control the storage module to enter the target working state, and the target working state is the working state corresponding to the turned-on setting switch.
7. The adaptive acquisition device according to claim 1, wherein: The adaptive acquisition device also includes a control switch, a power module, a storage module and a setting module. The control switch connects the storage module and the power module. The setting module is configured to generate a first current to control the control switch to be closed. When the control switch is closed, the power module provides a second current to the storage module, and the first current is less than the second current.
8. The adaptive acquisition device according to claim 7, wherein: The adaptive acquisition device further includes a setting switch, the control switch includes a relay, one relay corresponds to one setting switch, and the relay includes: A coil, one end of which is connected to the setting module, and the other end of which is grounded; an internal switch, one end of the internal switch being connected to the power module, and the other end of the internal switch being connected to the storage module; When the setting switch is turned on, the setting module is configured to generate the first current to flow through the coil of the relay corresponding to the setting switch to control the coil to generate magnetic force. When the coil generates magnetic force, the internal switch is closed, and the power supply module provides the second current to the storage module, and the first current is less than the second current.
9. The adaptive acquisition device according to claim 1, wherein: The first connector can be connected to the second connector to connect to the energy storage component of the target device, and the adaptive acquisition device also includes: A power module, wherein the power module is configured to receive electrical energy from the energy storage component to supply power to other modules of the adaptive acquisition device except the power module.
10. The adaptive acquisition device according to claim 1, wherein: The adaptive acquisition device also includes: A wireless transmission module, wherein the wireless transmission module can wirelessly transmit the bus data to an electronic device capable of analyzing the bus data.
11. The adaptive acquisition device according to claim 1, wherein: The adaptive acquisition device also includes: A transfer connector is provided, wherein the transfer connector can be connected to an electronic device to transmit the bus data to an electronic device capable of analyzing the bus data.
12. The adaptive acquisition device according to claim 1, wherein: The adaptive acquisition device also includes: A display module, wherein the display module is configured to display real-time working information of the adaptive acquisition device, wherein the real-time working information includes the collection amount of the bus data and the storage amount of the bus data.
13. An adaptive acquisition system, wherein: The bus data acquisition system comprises a target device and the adaptive acquisition device according to any one of claims 1 to 12, wherein the adaptive acquisition device is configured to acquire bus data transmitted by a bus of the target device.
14. An adaptive acquisition method, wherein: The adaptive acquisition method is used for an adaptive acquisition device, the adaptive acquisition device comprises a first connector, the first connector can be connected to a second connector of a target device, and the adaptive acquisition device is configured to connect to a bus of the target device through the second connector; The adaptive acquisition method comprises: determining a bus type of the bus; The bus data transmitted by the bus is collected using a collection channel corresponding to the bus type.
Citation Information
Patent Citations
Configurable method for multi-vehicle model body information acquisition system
CN104980516A
Universal comprehensive electronic information system data acquisition equipment for self-propelled gun
CN115202267A
Bus data receiving method and device, electronic equipment and storage medium
CN115695077A
Bus data acquisition method, device, equipment and medium
CN116488954A
Equipment parameter acquisition method and device, computer equipment and computer readable medium
CN116661893A