Adaptive acquisition device, adaptive acquisition system and adaptive acquisition method
By designing adaptive acquisition equipment, the bus type and baud rate in automotive electronic and electrical systems are automatically identified, and data reading failure caused by configuration errors in the prior art is solved, and adaptive bus data acquisition with high accuracy and reliability is achieved.
Patent Information
- Application Number
- CN202311600632.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2025-05-27
AI Technical Summary
In automotive electronic and electrical systems, the prior art requires manual configuration of bus type and baud rate. Configuration errors can easily lead to failure of bus data reading and lack of adaptive acquisition capabilities.
An adaptive acquisition device is designed, including a first connector and a sampling module, which can automatically identify the bus type and baud rate, and select the corresponding acquisition channel for data acquisition based on the recognition results.
Adaptive bus data acquisition is realized, data reading failure caused by parameter configuration errors is avoided, and the accuracy and reliability of acquisition is improved.
Smart Images

Figure CN120044785A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] In recent years, with the continuous development of automotive electrification, networking, and intelligence, the electronic and electrical architecture of vehicles has become increasingly complex, and the amount of information communication between various electronic and electrical components has increased exponentially. There are many ways of such information communication, for example, communication can be carried out through CAN bus, CANFD bus, LIN bus, etc. Since various types of faults often occur in vehicles, such as breakdowns and malfunction indicator lights on, when troubleshooting, it is necessary to collect and analyze the data stream on the bus to provide a basis for fault repair. Summary of the Invention
[0003] Embodiments of the present invention provide an adaptive acquisition device, an adaptive acquisition system, and an adaptive acquisition method.
[0004] Embodiments of the present invention provide an adaptive acquisition device, the adaptive acquisition device includes 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 the bus of the target device, the bus includes multiple types of buses; the sampling module is configured to determine the bus type of the bus, so as to collect the bus data transmitted by the bus using an acquisition channel corresponding to the bus type.
[0005] In this way, after the adaptive acquisition device is connected to the bus, it analyzes the bus type, and collects the bus data using the corresponding acquisition channel according to the determined bus type, so as to achieve adaptive bus data acquisition, thereby avoiding the failure of bus data reading caused by incorrect configuration of parameters such as the bus type.
[0006] In some embodiments, 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 acquisition channel and the baud rate.
[0007] In this way, after the adaptive acquisition device is connected to the bus, it performs adaptive analysis on the bus type and the baud rate of the bus data transmission, and collects the bus data using the corresponding acquisition channel and baud rate according to the determined bus type, so as to achieve adaptive bus data acquisition, thereby avoiding the failure of bus data reading caused by incorrect configuration of parameters such as the bus type and the baud rate.
[0008] In some embodiments, the adaptive acquisition device further includes a storage module, the storage module is configured to store the collected bus data.
[0009] In this way, by storing the collected bus data through the storage module, it enables the user to store the bus data in the storage module when there is no electronic device capable of storing and analyzing the bus data, and then read the stored bus data in the storage module when needed for analysis and processing.
[0010] In some embodiments, the adaptive acquisition device further includes a setting module configured to control the storage module to enter a target working state among multiple working states.
[0011] In this way, the setting module can control the storage module to enter the target working state corresponding to the user's needs to meet the user's requirements.
[0012] In some embodiments, the working states include a storage state, a pause state, a termination state, and a clearing 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 storing the bus data; when in the termination state, the storage module is configured to terminate the storage of the bus data; when in the clearing state, the storage module is configured to clear the stored bus data.
[0013] In this way, by controlling the storage module to enter different working states, the storage module can achieve different functions, such as a storage function, a pause function, a termination function, and a clearing function, to meet the user's needs.
[0014] In some embodiments, the setting module includes setting switches. One setting switch corresponds to one working state. 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.
[0015] 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 user's needs.
[0016] In some embodiments, the adaptive acquisition device further includes a control switch, a power supply module, a storage module, and a setting module. The control switch is connected to the storage module and the power supply module. The setting module is configured to generate a first current to control the control switch to close. When the control switch is closed, the power supply module provides a second current to the storage module, and the first current is less than the second current.
[0017] In some embodiments, the adaptive acquisition device further includes a setting switch. The control switch includes a relay, and one relay corresponds to one setting switch. 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 supply 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. When the coil generates magnetic force, the internal switch closes, and the power supply module provides the second current to the storage module. The first current is less than the second current.
[0018] In this way, by using a relay to realize the control of the working state of the storage module by the setting module, the setting module can drive a large current with a small current, so as to avoid damage to internal components of the setting module caused by the impact of the large current when driving with the large current.
[0019] In some embodiments, the first connector can be connected to the second connector to connect the energy storage component of the target device. The adaptive acquisition device further includes a power supply module, and the power supply module is configured to receive the electric energy of the energy storage component to supply power to other modules of the adaptive acquisition device except the power supply module.
[0020] In this way, the power supply 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.
[0021] In some embodiments, the adaptive acquisition device further includes a wireless transmission module, and the wireless transmission module can wirelessly transmit the bus data to an electronic device capable of analyzing the bus data.
[0022] In this way, by wirelessly transmitting the stored bus data to the electronic device through the wireless transmission module, the electronic device can analyze the bus data, and the transmission can be carried out without a data cable, reducing the difficulty of transmission operation.
[0023] In some embodiments, the adaptive acquisition device further includes an adapter connector, and the adapter connector can be connected to an electronic device to transmit the bus data to an electronic device capable of analyzing the bus data.
[0024] 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, improving the reliability and accuracy of the transmission.
[0025] In some embodiments, the adaptive acquisition device further includes a display module configured to display real-time working information of the adaptive acquisition device, where the real-time working information includes the acquisition amount of the bus data and the storage amount of the bus data.
[0026] In this way, the display module displays the real-time working information of the adaptive acquisition device, enabling the user to understand the working condition of the adaptive acquisition device in real time, so that adjustments can be made in a timely manner according to requirements.
[0027] An embodiment of the present invention provides an adaptive acquisition system, which includes a target device and the adaptive acquisition device of any of the above embodiments. The adaptive acquisition device is configured to acquire bus data transmitted by the bus of the target device.
[0028] In this way, after the adaptive acquisition system is connected to the bus, it analyzes the bus type and uses the corresponding acquisition channel to acquire the bus data according to the determined bus type, so as to achieve adaptive bus data acquisition, thereby avoiding the failure of bus data reading caused by incorrect configuration of parameters such as the bus type.
[0029] 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 that can be connected to a second connector of a target device. The adaptive acquisition device is configured to connect to the bus of the target device through the second connector. The adaptive acquisition method includes: determining the bus type of the bus; using an acquisition channel corresponding to the bus type to acquire the bus data transmitted by the bus.
[0030] In this way, after the adaptive acquisition method is connected to the bus, it analyzes the bus type and uses the corresponding acquisition channel to acquire the bus data according to the determined bus type, so as to achieve adaptive bus data acquisition, thereby avoiding the failure of bus data reading caused by incorrect configuration of parameters such as the bus type.
[0031] The additional aspects and advantages of the present invention will be partly given in the following description, partly will become obvious from the following description, or will be understood through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and / or additional aspects and advantages of the present invention will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, where:
[0033] Figure 1 is a schematic diagram of the adaptive acquisition device and the target device according to an embodiment of the present invention;
[0034] Figure 2It is a schematic diagram of the adaptive acquisition device according to an embodiment of the present invention;
[0035] Figure 3 It is a circuit schematic diagram of the sampling circuit according to an embodiment of the present invention;
[0036] Figure 4 It is a flowchart of the adaptive acquisition method according to an embodiment of the present invention. Specific Embodiments
[0037] The embodiments of the present invention will be described in detail below. The embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
[0038] In recent years, the electrification, networking, and intelligence of automobiles have been continuously deepened, 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 of this information communication. For example, communication can be carried out through CAN bus, CANFD bus, LIN bus, etc. Since various types of failures often occur in automobiles, such as breakdowns and malfunction lights on, when troubleshooting, it is necessary to collect and analyze the data stream on the bus to provide a basis for fault repair. In the related art, the computer is connected to the vehicle diagnostic interface to read the bus data online, and the bus data file is stored in the computer for offline analysis of the bus data. Thus, parameter configuration is required before using the computer to read the bus data. If the configuration is incorrect, it will cause the bus data reading to be incorrect or fail, and the requirement for parameter configuration operation is high.
[0039] Please refer to Figure 1 , an embodiment of the present invention provides an adaptive acquisition device 100. The adaptive acquisition device 100 includes a first connector 10 and a sampling module 20. The first connector 10 can be connected to the second connector 201 of the target device 200 to connect to the 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, so as to collect the bus data transmitted by the bus using the acquisition channel corresponding to the bus type, and different bus types correspond to different acquisition channels.
[0040] Specifically, the target device 200 includes devices such as vehicles and computers that are managed using a bus. In this embodiment, the target device 200 is a vehicle for illustration. The bus types of the vehicle include Controller Area Network (CAN) bus, CAN Flexible Data Rate (CANFD) bus, and Local Interconnect Network (LIN) bus. The sampling module 20 can determine the bus type and use the acquisition channel corresponding to the bus type to acquire bus data. When it is determined that the bus type is the CAN bus, the sampling module 20 uses the CAN channel corresponding to the CAN bus to acquire CAN bus data; when it is determined that the bus type is the CANFD bus, the sampling module 20 uses the CANFD channel corresponding to the CANFD bus to acquire CANFD bus data; when it is determined that the bus type is the LIN bus, the sampling module 20 uses the LIN channel corresponding to the LIN bus to acquire LIN bus data. After the sampling module 20 determines the acquisition channel, it acquires the bus data according to the determined acquisition channel, without the need for manual setting of the bus type and configuration of the channel, thus avoiding errors or failures in bus data acquisition caused by incorrect settings.
[0041] In this way, after connecting to the bus, the adaptive acquisition device 100 analyzes the bus type and uses the corresponding acquisition channel to acquire the bus data according to the determined bus type, so as to achieve adaptive bus data acquisition, thereby avoiding failures in bus data reading caused by incorrect configuration of parameters such as the bus type.
[0042] In some embodiments, the sampling module 20 is further configured to determine the baud rate of the bus data, so as to acquire the bus data according to the acquisition channel and the baud rate.
[0043] Specifically, the baud rate includes 19.2 kbps, 250 Mbps, 500 Mbps, 1 Mbps, or 2 Mbps, etc. After the sampling module 20 determines the acquisition channel and the baud rate, it acquires the bus data according to the determined acquisition channel and the baud rate, without the need for manual setting of parameters such as the bus type, configuration of the channel, and setting of the baud rate, thus avoiding errors or failures in bus data acquisition caused by incorrect setting of parameter information.
[0044] In this way, after connecting to the bus, the adaptive acquisition device 100 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 acquire the bus data according to the determined bus type, so as to achieve adaptive bus data acquisition, thereby avoiding failures in bus data reading caused by incorrect configuration of parameters such as the bus type and the baud rate.
[0045] In some embodiments, the adaptive acquisition device 100 further includes a storage module 30 configured to store the acquired bus data.
[0046] Specifically, after the adaptive acquisition device 100 acquires the bus data, it can store the bus data in the storage module 30, and the bus data already stored in the storage module 30 can be deleted according to the user's needs, so that the storage module 30 can store the bus data required by the user. Thus, 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.
[0047] In this way, by storing the acquired bus data through the storage module 30, the user can store the bus data in the storage module 30 when there is no electronic device capable of analyzing the bus data, and read the stored bus data in the storage module 30 when needed for analysis and processing.
[0048] In some embodiments, the adaptive acquisition device 100 further includes a setting module 40 configured to control the storage module 30 to enter a target working state among multiple working states.
[0049] 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 the needs to meet the user's requirements.
[0050] 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 requirements.
[0051] In some embodiments, the working states include a storage state, a pause state, a termination state, and a clearing state. When in the storage state, the storage module 30 is configured to store the bus data; when in the pause state, the storage module 30 is configured to pause storing the bus data; when in the termination state, the storage module 30 is configured to terminate storing the bus data; when in the clearing state, the storage module 30 is configured to clear the stored bus data.
[0052] Specifically, the working states of the storage module 30 include a storage state, a pause state, a termination state, and a clearing state. The user can select the target working state according to requirements, and control the storage module 30 to enter the target working state through the setting module 40. If it is necessary to store the bus data, the storage module 30 is controlled to enter the storage state through the setting module 40; if it is necessary to pause the storage of the bus data, 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 it is necessary to terminate the storage of the bus data, 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 the data transmitted by the bus different from the bus data stored in the previous storage state; if it is necessary to clear the stored bus data, the storage module 30 is controlled to enter the clearing state through the setting module 40, and the user can select the bus data to be cleared according to requirements for clearing. By controlling the state of the storage module 30, different functions of the storage module 30 can be controlled to meet the user's requirements.
[0053] In this way, by controlling the storage module 30 to enter different working states, different functions of the storage module 30 can be realized, such as a storage function, a pause function, a termination function, and a clearing function, to meet the user's requirements.
[0054] In some embodiments, the setting module 40 includes setting switches. One setting switch corresponds to one working state. When the setting switch is turned on, the setting module 40 is configured to control the storage module 30 to enter the target working state, and the target working state is the working state corresponding to the turned-on setting switch.
[0055] Specifically, the setting switch can be a setting button. When the setting button is pressed, the setting button is regarded as conducting. The setting button includes a storage button, a pause button, a termination button, and a clear button. When any one 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 still remain working; when the termination button is pressed, the setting module 40 controls the storage module 30 to enter the termination state. In the termination state, the adaptive acquisition device 100 can stop working, and stored data such as cached data streams are cleared. At this time, the user can disconnect the connection between the adaptive acquisition device 100 and the battery to stop the power supply to 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 the setting button according to the required function. 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.
[0056] In this way, by controlling the conduction of the setting switch, the setting module 40 can control the storage module 30 to enter the working state corresponding to the conducting setting switch, thereby realizing the corresponding function to meet the user's needs.
[0057] In some embodiments, the adaptive acquisition device further includes a storage module 30, a setting module 40, a power module 50, and a control switch. The control switch is connected to the storage module 30 and the power module 50. The setting module 40 is configured to generate a first current to control the closing of the control switch. 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.
[0058] Specifically, the setting module 40 and the control switch are in one-to-one correspondence. When a setting switch is triggered to conduct, the setting module 40 generates a smaller first current to control the closing of the control switch corresponding to the conducting setting switch. When the control switch is closed, the power module 50 provides a larger second current to the storage module 30 to control the storage module 30 to realize the function corresponding to the conducting setting switch, thereby realizing the driving of a large current by a small current.
[0059] In this way, using a smaller first current to drive the power module 50 to provide a larger second current to the storage module 30 realizes the driving of a large current by a small current, reduces power consumption, and at the same time avoids damage to the components of the setting module due to the impact of the large current during driving.
[0060] Please refer to Figure 2, in some embodiments, the adaptive acquisition device 100 further includes a setting switch. 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 supply 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 closes, and the power supply module 50 provides a second current to the storage module 30. The first current is less than the second current.
[0061] Specifically, one relay 60 corresponds to one 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 magnetic force to attract the internal switch 62 of the relay 60 to close. When the internal switch 62 is closed, the power supply module 50 can provide a second current to the storage module 30 to enable the storage module 30 to enter the working state corresponding to the pressed setting button. In one embodiment, the storage button corresponds to a 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. The coil 61 of the storage relay 60 generates magnetic force, causing the internal switch 62 to close. The current module provides a second current to the storage module 30 to enable the storage module 30 to enter the storage state and start storing the bus data. The first current is less than the second current, enabling the setting module 40 to drive a large current with a small current to avoid damage to the components in the setting module 40 caused by the impact of the large current when driving with a large current.
[0062] In this way, by using the relay 60 to control the working state of the storage module 30 by the setting module 40, the setting module 40 can drive a large current with a small current, avoiding damage to the internal components of the setting module 40 caused by the impact of the large current when driving with a large current.
[0063] Please refer to Figure 3 , in some embodiments, the sampling module 20 further includes a sampling circuit 21 for collecting bus data.
[0064] 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 the bus data transmitted on the CAN bus or CANFD bus, and the LIN sampling circuit 212 is used to collect the bus data transmitted on the LIN bus. Among them, the CAN / CANFD sampling circuit 211 includes an electromagnetic compatibility (EMC) capacitor 2111, a voltage stabilizer 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 stabilizer protector 2112 is used to protect the sampling circuit 21 from being damaged by impact 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 being reversely charged to 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 the signal quality and reduce interference.
[0065] In this way, the sampling circuit 21 can effectively collect the bus data for the storage module 30 to store the bus data.
[0066] 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 further includes a power module 50, and the power module 50 is configured to receive the electrical energy of the energy storage component to supply power to other modules of the adaptive acquisition device 100 except the power module 50.
[0067] Specifically, the energy storage component includes the vehicle's 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 and cannot be directly supplied to the modules of the adaptive acquisition device 100 for power supply, the power module 50 is set. The power module 50 can be connected to the battery through the first connector 10 and the second connector 201 to receive the electrical energy of the energy storage component, and convert the electrical energy of the energy storage components such as the battery and provide it to other modules of the adaptive acquisition device 100 except the power module 50 for power supply, such as powering the acquisition module, the setting module 40, the storage module 30, etc. By setting the power module 50, the electrical energy of the battery can be converted into electrical energy suitable for the adaptive acquisition device 100 and supply power to the modules of the adaptive acquisition device 100, enabling the adaptive acquisition device 100 to work properly.
[0068] 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.
[0069] 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.
[0070] Specifically, the electronic devices include mobile phones, computers, etc. The bus data stored in the storage module 30 can be transmitted to the electronic device through the wireless transmission module 70, so that the electronic device analyzes the bus data and determines the cause of the fault. The user does not need to prepare a connector to transmit the bus data. In addition, the bus data is transmitted by wireless transmission, which simplifies the user's operation difficulty. In the absence of a computer and a connector, the adaptive acquisition device 100 can also transmit the bus data to the user's mobile phone through the wireless transmission module 70, so that the user can analyze and process the bus data through the mobile phone and deal with the fault problem immediately.
[0071] 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.
[0072] 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.
[0073] Specifically, the adapter connector 80 can be connected to the electronic device through a connecting wire or other connecting parts, connected to the electronic device in a wired manner, and the stored bus data is transmitted to the electronic device through the connecting parts, so that the electronic device can analyze and process the bus data. Transmitting bus data through a connecting part improves the accuracy and reliability of bus data transmission, and using a suitable connecting wire can also increase the speed of bus data transmission and reduce the waiting time of users.
[0074] 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.
[0075] In some embodiments, the adaptive acquisition device 100 further includes a display module 90, and the display module 90 is configured to display real-time working information of the adaptive acquisition device 100, and the real-time working information includes the collection amount of bus data and the storage amount of bus data.
[0076] 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 acquired amount of the bus data of each channel, the acquisition timestamp of the bus data of each channel, the acquisition status of the bus data of each channel, the storage status of the bus data of each channel, the clearing status of the bus data of each channel, etc. The user can understand the working condition 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.
[0077] In this way, by the display module 90 displaying the real-time working information of the adaptive acquisition device 100, the user can understand the working condition of the adaptive acquisition device 100 in real time, so as to be able to make timely adjustments according to the requirements.
[0078] An embodiment of the present invention provides an adaptive acquisition system. The adaptive acquisition system 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 the bus data transmitted by the bus of the target device 200.
[0079] In this way, after the adaptive acquisition system is connected to the bus, it analyzes the bus type, and uses the corresponding acquisition channel according to the determined bus type to acquire the bus data, so as to realize adaptive bus data acquisition, thereby avoiding the failure of reading the bus data caused by incorrect configuration of parameters such as the bus type.
[0080] Please refer to Figure 4 , an embodiment of the present invention provides an adaptive acquisition method. The adaptive acquisition method is used for the adaptive acquisition device 100. The adaptive acquisition device 100 includes a first connector 10. The first connector 10 can be connected to a second connector 201 of the target device 200. The adaptive acquisition device 100 is configured to connect to the bus of the target device 200 through the second connector 201. The adaptive acquisition method includes:
[0081] 01: Determine the bus type of the bus;
[0082] 02: Use the acquisition channel corresponding to the bus type to acquire the bus data transmitted by the bus. Different bus types correspond to different acquisition channels.
[0083] 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. Among them, step 01 and step 02 can be implemented by the sampling module 20 of the adaptive acquisition device 100. That is to say, 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 acquire the bus data transmitted by the bus.
[0084] In this way, after connecting to the bus, the adaptive acquisition method analyzes the bus type and uses the corresponding acquisition channel to acquire the bus data according to the determined bus type, so as to realize the adaptive bus data acquisition, thereby avoiding the failure of reading the bus data caused by incorrect configuration of parameters such as the bus type.
[0085] The explanatory description 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 elaborated herein.
[0086] In the description of this specification, the descriptions with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples", etc. mean that the specific features, structures, materials or characteristics described in connection with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example. In addition, without conflict, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0087] In addition, the term "connection" should be understood in a broad sense. For example, it may include fixed connection, may also include detachable connection, or integral connection; it may include direct connection, may also be indirectly connected through an intermediate medium, and may also include the communication inside two elements. For those of ordinary skill in the art, the specific meaning of the above terms in the present invention can be understood according to specific situations.
[0088] In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless otherwise specifically defined.
[0089] Any process or method description shown in the flowchart or described in other ways herein can be understood as representing a module, segment or part of the code including one or more executable instructions for realizing a specific logical function or process. The scope of the preferred embodiments of the present invention includes additional implementations, where the functions may be executed in a substantially simultaneous manner or in a reverse order according to the involved functions, rather than in the order shown or discussed, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0090] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. An adaptive acquisition device, characterized in that, the adaptive acquisition device includes: A first connector, the first connector can connect to a second connector of a target device to connect to the bus of the target device, and the bus includes various types of buses; A sampling module, the sampling module is configured to determine the bus type of the bus, so as to collect the bus data transmitted by the bus using the acquisition channel corresponding to the bus type.
2. The adaptive acquisition device according to claim 1, characterized in that, 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 acquisition channel and the baud rate.
3. The adaptive acquisition device according to claim 1, characterized in that, the adaptive acquisition device further includes: A storage module, the storage module is configured to store the collected bus data.
4. The adaptive acquisition device according to claim 3, characterized in that, the adaptive acquisition device further includes: A setting module, the 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, characterized in that, the working states include: 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 storing the bus data; A clearing state, when in the clearing state, the storage module is configured to clear the stored bus data.
6. The adaptive acquisition device according to claim 4, characterized in that, the setting module includes a setting switch, one setting switch corresponds to one working state, 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, characterized in that, the adaptive acquisition device further includes a control switch, a power supply module, a storage module and a setting module, the control switch connects the storage module and the power supply module, the setting module is configured to generate a first current to control the control switch to close, and when the control switch is closed, the power supply 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, characterized in that, 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 the coil is connected to the setting module, and the other end of the coil is grounded; An internal switch, one end of the internal switch is connected to the power supply 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. When the coil generates magnetic force, the internal switch closes, 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 the energy storage component of the target device, and the adaptive acquisition device further includes: a power supply module configured to receive the electric energy of the energy storage component to supply power to other modules of the adaptive acquisition device except the power supply module.
10. The adaptive acquisition device according to claim 1, wherein, the adaptive acquisition device further includes: a wireless transmission module capable of wirelessly transmitting 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 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.
12. The adaptive acquisition device according to claim 1, wherein, the adaptive acquisition device further includes: a display module configured to display the real-time working information of the adaptive acquisition device, and the real-time working information includes the acquisition amount of the bus data and the storage amount of the bus data.
13. An adaptive acquisition system, wherein, the bus data acquisition system includes a target device and the adaptive acquisition device according to any one of claims 1-12, and the adaptive acquisition device is configured to acquire the bus data transmitted by the 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 includes 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 the bus of the target device through the second connector; the adaptive acquisition method includes: determining the bus type of the bus; acquiring the bus data transmitted by the bus using the acquisition channel corresponding to the bus type.
Citation Information
Cited By
Sampling control method and device, energy storage device, storage medium and program product
CN121856828A