Data collection device
The data collection apparatus addresses the issue of data overwriting by generating and storing reception count data, ensuring accurate waveform analysis through synchronized data transfer and storage, facilitating precise sampling interval adjustments.
Patent Information
- Application Number
- JP2021188020
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-11-18
- Publication Date
- 2025-07-09
- Estimated Expiration
- 2041-11-18
AI Technical Summary
Existing data collection systems for CAN bus communication fail to accurately analyze waveform data due to overwriting of old data when new data is received within the sampling interval, leading to uncertainty about the nature of the old data and potential loss of information.
A data collection apparatus that generates and stores reception count data associated with observation data, using a serial transfer unit to synchronize and transfer data in synchronization with sampling pulses, allowing for accurate data storage and analysis.
Enables highly accurate waveform measurement by preserving data integrity and allowing for adjustments in sampling intervals based on reception count data, thereby enhancing data analysis precision.
Smart Images

Figure 0007705335000001 
Figure 0007705335000002 
Figure 0007705335000003
Abstract
Description
Technical Field
[0001] The present invention relates to a data collection device.
Background Art
[0002] The Controller Area Network (CAN) protocol is a serial communication protocol standardized by ISO, and is a serial communication protocol for communicating between an engine control unit (ECU: Electronic Control Unit) and a group of sensors such as a rotational speed measurement sensor, a speed sensor, and a temperature sensor connected to the ECU.
[0003] There is known a waveform measurement system for observing data on a CAN bus using the CAN protocol (see, for example, Patent Document 1). This waveform measurement system has an input module (hereinafter referred to as a "data collection device") that appropriately selects sensor data and control signals of each part flowing on the CAN bus and transfers them to a waveform measuring device when measuring signals from a rotational speed measurement sensor, a speed sensor, a temperature sensor, etc. connected to the ECU, that is, CAN data signals (for example, observation data such as throttle opening, rotational speed, speed, and water temperature) via the CAN bus.
[0004] The above-described data collection device has a CAN controller that analyzes the protocol of the CAN bus and stores observation data with a preset ID number in a preset buffer memory. The CAN controller stores the observation data in a plurality of buffers, for example, the first observation data corresponding to the first ID number on the CAN bus in the first buffer, and the second observation data corresponding to the second ID number in the second buffer.
[0005] The serial transfer unit serially transfers each of the observation data stored in the plurality of buffers to the waveform measuring device side as sampling data in synchronization with a sampling signal output from a timing generator.
[0006] For example, as shown in FIG. 4, observation data (hereinafter referred to as "message reception memory data") a1 to f1 output from the ECU at a predetermined message transmission cycle (25 ms in the example of FIG. 4) is stored in a buffer memory including a plurality of buffers via a CAN controller. Specifically, at the transmission timing (A), it is updated to the message reception memory data b1, and this data is stored in the buffer memory. At the transmission timing (B), it is updated to the message reception memory data c1, and this data is stored in the buffer memory. At the transmission timing (C), it is updated to the message reception memory data d1, and this data is stored in the buffer memory. Subsequently, at the transmission timing (D), it is updated to the message reception memory data e1, and this data is stored in the buffer memory. At the transmission timing (E), it is updated to the message reception memory data f1, and this data is stored in the buffer memory.
[0007] Then, the serial transfer unit reads out the message reception memory data at the sampling timing of the sampling pulse generated at a predetermined sampling cycle by the timing generator from each buffer, and transfers the read message reception memory data to the waveform measuring instrument side as sampling data. In the example of FIG. 4, the timing generator generates a sampling pulse at a sampling cycle of 100 ms, and for example, the message reception memory data a1 at the sampling timing (F) is transferred to the serial transfer unit as sampling data.
Prior Art Documents
Patent Documents
[0008]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0009] Incidentally, since the message reception memory data is the message reception memory data at the pulse generation timing, for example, in the example of FIG. 4, the sampling data a1 at the pulse generation timing (F) is acquired, and then the sampling data e1 at the pulse generation timing (G) is acquired. However, although the message reception memory data b1 to d1 actually exist between when the sampling data a1 is acquired and before the sampling data e1 is acquired, the input module side cannot confirm the existence of this message reception memory data b1 to d1.
[0010] Therefore, in an apparatus for collecting sampling data necessary for sampling and analyzing communication on a serial bus, when new data is received within the sampling interval, old data (message reception memory data b1 to d1 in the example of FIG. 4) is overwritten, and it is unknown what kind of data the old data was or whether there was no data at all, which may hinder highly accurate analysis.
[0011] An object of the present invention is to provide a data collection apparatus for performing highly accurate analysis in waveform measurement.
Means for Solving the Problems
[0012] In order to solve the above problems, one aspect of the data collection apparatus according to the present invention is a data collection apparatus that transfers each of a plurality of observation data input at a predetermined transmission cycle via a serial bus to a measuring instrument body as sampling data, and generates a plurality of reception count data that acquire a plurality of observation data and are associated with each of the plurality of observation data and are given a predetermined ID number, and outputs the plurality of observation data and the plurality of reception count data. And a first storage unit that stores the plurality of observation data and the plurality of reception count data output from the controller.
[0013] Another aspect of the data collection device according to the present invention is characterized by having a serial transfer unit that stores a plurality of received count data in a second storage unit that constitutes the measuring instrument main body as sampled count data in synchronization with sampling pulses generated at a predetermined sampling period.
[0014] Another aspect of the data collection device according to the present invention is characterized in that the plurality of received count data includes reset received count data for reset immediately before the sampling timing that is the starting point of sampling.
Advantages of the Invention
[0015] According to the present invention, it is possible to perform data collection for highly accurate analysis in waveform measurement.
Brief Description of the Drawings
[0016]
Figure 1
Figure 2
Figure 3
Figure 4
Embodiments for Carrying Out the Invention
[0017] <An Embodiment> Hereinafter, a data collection device according to an embodiment of the present invention will be described with reference to FIGS. 1 to 3.
[0018] FIG. 1 is a diagram showing the usage state of the data collection device, and is a diagram showing a state in which the data collection device is connected to a waveform measuring instrument (hereinafter referred to as the "instrument body"). FIG. 2 is a diagram for explaining the configuration of the data collection device according to an embodiment of the present invention. FIG. 3 is a diagram for explaining the processing of the data collection device according to an embodiment of the present invention.
[0019] [Configuration of Data Collection Device 10] The data collection device 10 is an input module having a plurality of input channels, and is electrically connected to the instrument body 20 that analyzes each sensor data from an ECU (not shown) flowing on the CAN bus using the CAN protocol. Note that, regarding the connection between the data collection device 10 and the instrument body 20, an example of a wired connection is shown in FIG. 1, but the connection form is not limited to this, and for example, wireless communication (for example, Wi-Fi (registered trademark), Bluetooth (registered trademark), etc.) may be used for connection.
[0020] As shown in FIG. 2, the data collection device 10 includes a controller 11, a buffer memory 12, and a serial transfer unit 13. The controller 11 acquires, for example, observation data (hereinafter referred to as "message reception memory data") output from the ECU at a predetermined message transmission cycle, and stores it in the buffer memory 12. Here, when the controller 11 acquires the message reception memory data, it generates reception count data corresponding to each message reception memory data described later. This reception count data is associated with each message reception memory data. The controller 11 acquires each message reception memory data, generates reception count data associated with each message reception memory data, and distributes and stores it in the buffer memory 12. Note that a predetermined ID number is assigned to the message reception memory data, and a predetermined ID number is also assigned to the reception count data.
[0021] The buffer memory 12 stores the message reception memory data in the order acquired by the controller 11, and also stores the reception count data (refer to the broken line frame in FIG. 3) associated with the acquired message reception memory data.
[0022] The serial transfer unit 13 synchronizes each piece of message reception memory data stored in the buffer memory 12 with the sampling signal (sampling pulses generated at a predetermined sampling period) output from the timing generator 23, and transfers it as sampling data (refer to FIG. 3) to the serial transfer unit 21 on the measuring instrument main body side. Further, the serial transfer unit 13 also synchronizes each piece of reception count data stored in the buffer memory 12 with the sampling signal output from the timing generator 23, and transfers it as sampling count data (refer to the dashed-dotted line frame in FIG. 3) to the serial transfer unit 21 on the measuring instrument main body side.
[0023] The serial transfer unit 21 stores the sampling data and the sampling count data in the memory 25 via the central processing unit (CPU: Central Processing Unit) 22 on the measuring instrument main body side for each sampling timing. The sampling data and the sampling count data stored in the memory 25 are displayed as waveforms on the screen of the display unit 24 under the display control of the central processing unit 22.
[0024] Next, the data collection process of the data collection device according to the present embodiment will be described. As shown in FIG. 3, the message reception memory data a1 to f1 output from the ECU at a predetermined message transmission period (25 ms in the example of FIG. 3) is stored in the buffer memory 12 via the controller 11. Note that (A) to (E) in FIG. 3 indicate the transmission timings of the message transmission pulses generated at the message transmission period from the ECU, and (F) and (G) in FIG. 3 indicate the sampling timings of the sampling pulses generated at the above-described sampling period.
[0025] Specifically, at the transmission timing (A), it is updated to the message reception memory data b1 and the reception count data 1c corresponding to the message reception memory data b1, and the message reception memory data b1 and the reception count data 1c are stored in the buffer memory 12. At the transmission timing (B), it is updated to the message reception memory data c1 and the reception count data 2c corresponding to the message reception memory data c1, and the message reception memory data c1 and the reception count data 2c are stored in the buffer memory 12. At the transmission timing (C), it is updated to the message reception memory data d1 and the reception count data 3c corresponding to the message reception memory data d1, and the message reception memory data d1 and the reception count data 3c are stored in the buffer memory 12. At the transmission timing (D), it is updated to the message reception memory data e1 and the reception count data 4c corresponding to the message reception memory data e1, and the message reception memory data e1 and the reception count data 4c are stored in the buffer memory 12. Here, the numbers 1 to 4 in the reception count data 1c to 4c indicate the numbers of the count (the order of counting).
[0026] Note that the reception count data before and after the transmission timing (F) is 5c → 0c. This means that the reception count data corresponding to the message reception memory data (not shown) obtained at the sampling timing (not shown) immediately before the sampling timing (F) is 5c, and the reception count data 0c that functions as a reset follows. After being reset, the count-up is started, and the counting process is performed from the reception count data 1c according to the received message reception memory data.
[0027] Here, at the time of transmission timing (E), since the sampling period of 100 ms has elapsed since the start of transmission timing (F), the reception count data is reset by the serial transfer unit 13 at the time of the sampling timing of the sampling pulse to be generated in the next sampling period (transmission timing (G)), and the reception count data 0c that functions as a reset is stored in the buffer memory 12. After the reception count data is reset, the serial transfer unit 13 updates to the message reception memory data f1 at the time of transmission timing (E), counts up the reception count data corresponding to the message reception memory data f1 to "1c", and stores it in the buffer memory 12.
[0028] Thereafter, for example, when there is message reception memory data (not shown) next to the message reception memory data f1, the message reception memory data and the corresponding reception count data (not shown) are updated, and those data are stored in the buffer memory 12. On the other hand, when there is no message reception memory data next to the message reception memory data f1, the reception count data 0c is not updated after being stored in the buffer memory 12 (remains as the reception count data 0c). Also, although message reception memory data is being acquired next to the message reception memory data f1, for example, when the same data as the message reception memory data f1 is acquired, the message reception memory data f1 and the corresponding reception count data (for example, reception count data 2c) are stored in the buffer memory 12.
[0029] Next, in the example of FIG. 3, the serial transfer unit 13 reads out the message reception memory data a1 at the sampling timing (F) of the sampling pulse generated at the sampling period (100 ms in the example of FIG. 3) determined by the timing generator 23 from the buffer memory 12, and transfers the read message reception memory data a1 as sampling data to the serial transfer unit 21. Further, the serial transfer unit 13 transfers the reception count data 5c corresponding to the message reception memory data a1 at the sampling timing (F) of the sampling pulse as sampling count data to the serial transfer unit 21. Subsequently, the message reception memory data e1 at the next sampling timing (G) is read out from the buffer memory 12, and the read message reception memory data e1 is transferred as sampling data to the serial transfer unit 21. Further, the serial transfer unit 13 transfers the reception count data 4c corresponding to the message reception memory data e1 at the sampling timing (G) of the sampling pulse as sampling count data to the serial transfer unit 21. The serial transfer unit 21 outputs the sampling data and the sampling count data to the display unit 24 and the memory 25 via the central processing unit 22.
[0030] Thereafter, the processes related to the acquisition of the message reception memory data for each message transmission cycle, the generation of the corresponding reception count data, and the storage of those data in the buffer memory 12, and the processes related to the acquisition of the sampling data for each sampling cycle, the generation of the corresponding sampling count data, and the storage of those data in the memory 25 are repeated.
[0031] The effects of the invention according to the above-described embodiments will be described below.
[0032] In order to solve the problems of the prior art, namely, the problem that when new message reception memory data is received within the sampling interval, the old data is overwritten, a method of, for example, shortening the sampling period (increasing the sampling speed) is known so that the message reception memory data is not overwritten. However, shortening the sampling period has problems such as an increase in the amount of data to be captured and an increase in the time required for data processing for waveform analysis, which is not preferable.
[0033] According to the invention according to the above-described embodiment, when new message reception memory data is received within the sampling interval, sampling count data corresponding to the message reception memory data is generated and stored. Therefore, the number of received message reception memory data within the sampling interval can be easily grasped based on the sampling count data. Thereby, it is possible to easily perform more detailed adjustment of the sampling interval (sampling period) according to the number of new message reception memory data.
[0034] In addition, since the number of received message reception memory data can be grasped, it becomes easy to grasp abnormalities such as interruption of data reception by monitoring sudden decreases or increases in the count value. Further, by monitoring whether the count value is reception count data for reset, it is possible to grasp whether the same message reception memory data is continuously received. For example, if it is found that it has not been reset, it means that the received data has not been updated. Note that by omitting the reset function using the reception count data for reset, the total number of message data received from the ECU within the measurement period can be confirmed.
[0035] Note that the embodiment of the present invention is not limited to the above-described embodiment, and various modifications are possible without departing from the gist of the present invention.
[0036] [Summary of Effects] The data collection device 10 according to the present embodiment is a data collection device 10 that transfers each of a plurality of message reception memory data a1 to z1 input at a predetermined transmission cycle via a serial bus to the measuring instrument main body 20 as sampling data. The data collection device 10 acquires a plurality of message reception memory data a1 to z1 and generates a plurality of reception count data 1c to Nc each of which is associated with each of the plurality of message reception memory data a1 to z1 and is assigned a predetermined ID number, and outputs the plurality of message reception memory data a1 to z1 and the plurality of reception count data 1c to Nc. The data collection device 10 includes a controller 11 and a buffer memory 12 that stores the plurality of message reception memory data a1 to z1 and the plurality of reception count data 1c to Nc output from the controller 11. Therefore, according to the above configuration, when new message reception memory data is received within the sampling interval, reception count data corresponding to the message reception memory data is generated and stored. Therefore, it is possible to easily grasp the number of received message reception memory data within the sampling interval based on the reception count data. As a result, it is possible to easily perform a finer adjustment of the sampling interval (sampling period) according to the number of new message reception memory data.
[0037] The data collection device 10 according to the present embodiment includes a serial transfer unit 13 that stores a plurality of reception count data 1c to Nc in a memory 25 that constitutes the measuring instrument main body 20 as sampling count data in synchronization with a sampling pulse generated at a predetermined sampling period. Therefore, according to the above configuration, since the sampling count data stored in the memory 25 can be compared with the reception count data existing within the sampling period stored in the buffer memory 12, it is possible to easily grasp whether there is reception count data counted other than the reception count data corresponding to the sampling count data.
[0038] In the data collection device 10 according to the present embodiment, the plurality of reception count data 1c to Nc include reset reception count data 0c for reset immediately before the sampling timing serving as the start point of sampling. Therefore, according to the above configuration, the number of received message reception memory data within the sampling period can be accurately counted.
Explanation of Signs
[0039] 10 Data collection device 11 Controller 12 Buffer memory (first storage unit) 13 Serial transfer unit (serial transfer unit on the data collection device side) 20 Measuring instrument body 21 Serial transfer unit (serial transfer unit on the measuring instrument body side) 22 Central processing unit (CPU) 23 Timing generator 24 Display unit 25 Memory (second storage unit)
Claims
1. A data collection device that transfers each of a plurality of observation data input at a predetermined transmission period via a serial bus to a measuring instrument main body as sampling data, a controller that acquires the plurality of observation data and generates a plurality of received count data associated with each of the plurality of observation data and assigned a predetermined ID number, and outputs the plurality of observation data and the plurality of received count data; a first storage unit that stores the plurality of observation data and the plurality of received count data output from the controller and the plurality of received count data includes reset received count data for reset immediately before sampling timing that is the starting point of sampling, at the sampling timing, if there is observation data following the observation data, the corresponding received count data is updated, and if there is no observation data, the reset received count data is stored in the first storage unit and the received count data is not updated, The data collection device is characterized by this.
2. It has a serial transfer unit that stores the plurality of received count data in a second storage unit that constitutes the measuring instrument main body as sampling count data in synchronization with sampling pulses generated at a predetermined sampling period, The data collection device according to claim 1, characterized by this.
Citation Information
Patent Citations
PDC super frame step-out detection circuit
JP1998112691A
Waveform measuring apparatus
JP2005156277A
Apparatus for transmitting and receiving measurement information and measuring system
JP2007114906A