TWM575160U - Vehicle data acquisition automatic adaptation device - Google Patents

Vehicle data acquisition automatic adaptation device Download PDF

Info

Publication number
TWM575160U
TWM575160U TW107213427U TW107213427U TWM575160U TW M575160 U TWM575160 U TW M575160U TW 107213427 U TW107213427 U TW 107213427U TW 107213427 U TW107213427 U TW 107213427U TW M575160 U TWM575160 U TW M575160U
Authority
TW
Taiwan
Prior art keywords
data
vehicle
target
acquisition
vehicle type
Prior art date
Application number
TW107213427U
Other languages
Chinese (zh)
Inventor
李冠箴
朱亞軍
Original Assignee
群億電子科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 群億電子科技股份有限公司 filed Critical 群億電子科技股份有限公司
Priority to TW107213427U priority Critical patent/TWM575160U/en
Publication of TWM575160U publication Critical patent/TWM575160U/en

Links

Landscapes

  • Traffic Control Systems (AREA)

Abstract

本新型提供了一種車輛資料獲取自動適配裝置,包括:資料庫模組,用於建立車輛資料資料庫,所述資料庫包括一張適配表和多張資料子表,適配表用於記錄車輛類型與資料子表標識的對應關係,資料子表用於記錄某個車輛類型中車輛資料的獲取規則;目標車輛類型獲取模組,用於獲取目標車輛的目標車輛類型;定位模組,用於根據所述目標車輛類型定位所述目標車輛類型對應的目標資料子表;監聽模組,用於監聽車載電腦廣播的資料得到資料源;及獲取模組,用於根據所述目標資料子表中記錄的車輛資料獲取規則在資料源中獲取車輛資料。本新型具備了普適性,能夠應用於各種類型的車輛,突破了現有技術中只能在單一車輛應用的限制。The present invention provides a vehicle data acquisition automatic adaptation device, comprising: a database module for establishing a vehicle data database, the database comprising an adaptation table and a plurality of data sub-tables, the adaptation table is used for Recording the correspondence between the vehicle type and the data sub-table identification, the data sub-table is used to record the acquisition rule of the vehicle data in a certain vehicle type; the target vehicle type acquisition module is used to acquire the target vehicle type of the target vehicle; the positioning module, a target data sub-table corresponding to the target vehicle type according to the target vehicle type; a monitoring module for monitoring data obtained by the on-board computer broadcast to obtain a data source; and an acquisition module for using the target data according to the target data The vehicle data acquisition rules recorded in the table obtain vehicle data in the data source. The new model has universal applicability and can be applied to various types of vehicles, breaking through the limitations of the prior art that can only be applied in a single vehicle.

Description

車輛資料獲取自動適配裝置Vehicle data acquisition automatic adaptation device

本新型涉及車輛領域,尤其涉及一種車輛資料獲取自動適配方法及裝置。The present invention relates to the field of vehicles, and in particular, to a method and an apparatus for automatically adapting vehicle data acquisition.

CAN解碼模組的作用是通過接入車載CAN匯流排,讀取車輛各種資料,如車速、轉速、水溫、電壓、里程、油量、鑰匙狀態、車門狀態、燈光狀態等,並轉換成相對標準的格式輸出到其他設備,供其他設備使用,比如車載顯示幕,倒車雷達,車道偏移報警裝置。市面上的CAN解碼模組都是單車型。因為CAN資料格式都是各車廠私有協議,無固定格式,且不同品牌車型之間的資料差異非常大。而且單台車型能得到的資料非常多,單一車型的解碼工作量就已經很大。目前市面上的監聽及解碼都是針對單一車型,用戶在使用時都只能使用單一模組針對單一車型,一旦更換品牌車型,只有對模組重新燒入程式或更換模組,跨車型使用非常不方便。The function of the CAN decoding module is to access various information such as vehicle speed, speed, water temperature, voltage, mileage, oil quantity, key status, door status, lighting status, etc., by connecting to the vehicle CAN bus, and converting it into relative The standard format is output to other devices for use by other devices, such as car display screens, parking sensors, and lane offset alarms. The CAN decoding modules on the market are all single models. Because the CAN data format is proprietary to each car manufacturer, there is no fixed format, and the data difference between different brands is very large. Moreover, the information available on a single model is very large, and the decoding workload of a single model is already large. At present, the monitoring and decoding on the market are all for a single model. Users can only use a single module for a single model. Once the brand model is replaced, only the module is reburned or replaced, and the crossover model is very inconvenient.

為了解決上述問題,本新型提供一種車輛資料獲取自動適配方法及裝置。In order to solve the above problems, the present invention provides a method and device for automatically adapting vehicle data acquisition.

本新型是以如下技術方案實現的。一種車輛資料獲取自動適配方法包括:建立車輛資料適配資料庫,所述資料庫包括一張適配表和多張資料子表,適配表用於記錄車輛類型與資料子表標識的對應關係,資料子表用於記錄某個車輛類型中車輛資料的獲取規則;獲取目標車輛的目標車輛類型;根據所述目標車輛類型定位所述目標車輛類型對應的目標資料子表;監聽車載電腦廣播的資料得到資料源;及根據所述目標資料子表中記錄的車輛資料獲取規則在資料源中獲取車輛資料。The present invention is realized by the following technical solutions. A vehicle data acquisition automatic adaptation method comprises: establishing a vehicle data adaptation database, the data library comprising an adaptation table and a plurality of data sub-tables, wherein the adaptation table is used for recording the correspondence between the vehicle type and the data sub-table identifier Relationship, the data sub-table is used to record the acquisition rule of the vehicle data in a certain vehicle type; acquire the target vehicle type of the target vehicle; locate the target data sub-table corresponding to the target vehicle type according to the target vehicle type; monitor the on-board computer broadcast The data is obtained from the data source; and the vehicle data is obtained from the data source according to the vehicle data acquisition rules recorded in the target data sub-table.

進一步地,還包括:監聽車載電腦廣播的資料;對所述資料進行分析,提取目標車輛資料。Further, the method further includes: monitoring data broadcasted by the on-board computer; analyzing the data to extract target vehicle data.

進一步地,所述提取目標車輛資料包括:按照第一預設時間獲取第一資料包;執行用於產生所述目標車輛資料的目標操作,並監聽第二預設時間內的資料獲取第二資料包;及對第一資料包和第二資料包進行橫向比較,得到第一範圍。Further, the extracting the target vehicle data includes: acquiring the first data package according to the first preset time; performing a target operation for generating the target vehicle data, and monitoring the data in the second preset time to obtain the second data The package; and the horizontal comparison of the first data package and the second data package to obtain the first range.

進一步地,還包括:記錄所述目標車輛資料的定位參數;所述定位參數包括通訊速率、監聽資料包標識、有效位元組、進制轉換標識以及資料轉換公式。Further, the method further includes: recording a positioning parameter of the target vehicle data; the positioning parameter includes a communication rate, a monitoring data packet identifier, a valid byte group, a binary conversion identifier, and a data conversion formula.

進一步地,若不同的車輛資料的定位參數都能夠被表示為通訊速率、監聽資料包標識、有效位元組、進制轉換標識以及資料轉換公式,則各個資料子表的的邏輯結構被設計為包括車輛資料類型、通訊速率、監聽資料包標識、有效位元組、進制轉換標識以及資料轉換公式六個欄位。Further, if different positioning parameters of the vehicle data can be represented as a communication rate, a monitoring packet identification, a valid byte, a binary conversion identifier, and a data conversion formula, the logical structure of each data sub-table is designed as It includes six fields: vehicle data type, communication rate, monitor packet identification, valid byte, binary conversion identifier, and data conversion formula.

進一步地,若不同的車輛資料的定位參數的欄位不相同,則各個資料子表的的邏輯結構被設計為包括車輛資料類型以及BLOB兩個欄位。Further, if the fields of the positioning parameters of different vehicle materials are different, the logical structure of each data sub-table is designed to include the vehicle data type and the BLOB two fields.

一種車輛資料獲取自動適配裝置,包括:資料庫模組,用於建立車輛資料適配資料庫,所述資料庫包括一張適配表和多張資料子表,適配表用於記錄車輛類型與資料子表標識的對應關係,資料子表用於記錄某個車輛類型中車輛資料的獲取規則;目標車輛類型獲取模組,用於獲取目標車輛的目標車輛類型;定位模組,用於根據所述目標車輛類型定位所述目標車輛類型對應的目標資料子表;監聽模組,用於監聽車載電腦廣播的資料得到資料源;獲取模組,用於根據所述目標資料子表中記錄的車輛資料獲取規則在資料源中獲取車輛資料。A vehicle data acquisition automatic adaptation device comprises: a database module for establishing a vehicle data adaptation database, the database comprising an adaptation table and a plurality of data sub-tables, the adaptation table is used for recording the vehicle The correspondence between the type and the data sub-table identifier, the data sub-table is used to record the acquisition rule of the vehicle data in a certain vehicle type; the target vehicle type acquisition module is used to acquire the target vehicle type of the target vehicle; the positioning module is used for Determining, according to the target vehicle type, a target data sub-table corresponding to the target vehicle type; a monitoring module, configured to monitor data collected by the on-board computer to obtain a data source; and acquiring a module, configured to record according to the target data sub-table The vehicle data acquisition rule obtains the vehicle data in the data source.

本新型的有益效果是:本新型實施例公開了一種車輛資料獲取自動適配方法及裝置,能夠將對於各種車輛中,對監聽資料進行分析獲取車輛資料的規則進行探索,並將得到的規則以資料庫的形式進行記錄,並把所有車輛的各部件狀態以統一的格式輸出,從而能夠執行本新型中車輛資料獲取自動適配的裝置具備了普適性,能夠應用於各種類型的車輛,突破了現有技術中只能在單一車輛應用的限制。The utility model has the beneficial effects that the new embodiment discloses a method and a device for automatically acquiring vehicle data acquisition, which can explore rules for analyzing and acquiring vehicle data in various vehicles, and the obtained rules are The form of the database is recorded, and the state of each component of all vehicles is output in a uniform format, so that the device capable of automatically adapting the vehicle data acquisition in the present invention has universal applicability and can be applied to various types of vehicles, breaking through The prior art can only be limited in the application of a single vehicle.

為使本新型的目的、技術方案和優點更加清楚,下面將結合附圖對本新型作進一步地詳細描述。In order to make the objects, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

本新型實施例提供一種車輛資料獲取自動適配方法,如圖1所示,包括:S101. 建立車輛資料適配資料庫,所述資料庫包括一張適配表和多張資料子表,適配表用於記錄車輛類型與資料子表標識的對應關係,資料子表用於記錄某個車輛類型中車輛資料的獲取規則。具體地,不同的車輛中車輛資料獲取規則是不同的,因此,有必要建立適配資料庫。而如何獲取車輛資料獲取規則將在下文詳細闡述。S102. 獲取目標車輛的目標車輛類型。S103. 根據所述目標車輛類型定位所述目標車輛類型對應的目標資料子表。S104. 監聽車載電腦廣播的資料得到資料源。S105. 根據所述目標資料子表中記錄的車輛資料獲取規則在資料源中獲取車輛資料。The embodiment of the present invention provides an automatic adaptation method for vehicle data acquisition, as shown in FIG. 1 , which includes: S101. Establishing a vehicle data adaptation database, the database includes an adaptation table and a plurality of data sub-tables. The matching table is used to record the correspondence between the vehicle type and the data sub-table identification, and the data sub-table is used to record the acquisition rules of the vehicle data in a certain vehicle type. Specifically, the vehicle data acquisition rules in different vehicles are different, and therefore it is necessary to establish an adaptation database. How to obtain vehicle data acquisition rules will be elaborated below. S102. Obtain a target vehicle type of the target vehicle. S103. Locating a target data sub-table corresponding to the target vehicle type according to the target vehicle type. S104. Monitor the data of the on-board computer broadcast to get the data source. S105. Obtain vehicle data in the data source according to the vehicle data acquisition rule recorded in the target data sub-table.

進一步地,將得到的規則以資料庫的形式進行記錄,還可以把所有車輛的各部件狀態以統一的格式輸出。各車型的資料按統一的格式輸出到抬頭顯示器、手機、車載顯示幕等各種對車輛資料有需求的設備。Further, the obtained rules are recorded in the form of a database, and the state of each component of all vehicles can also be output in a uniform format. The data of each model is output to a head-up display, a mobile phone, a car display screen, and other devices that require the vehicle data in a uniform format.

本新型實施例使用了監聽的方式獲取資料源,而現有技術中通常基於診斷模式獲取車輛資料。為了便於突出本新型實施例的技術優勢,對診斷模式和監聽模式進行如下概述。The present embodiment uses a means of monitoring to acquire a data source, whereas in the prior art, vehicle data is typically acquired based on a diagnostic mode. In order to facilitate highlighting the technical advantages of the novel embodiment, the diagnostic mode and the listening mode are summarized as follows.

診斷模式:在硬體連接完成後,向車載電腦請求連接,回應於車載電腦的確認指令後建立雙向通信鏈路。在診斷模式下,車輛內部資料的獲取基於與車載電腦之間的交互實現,並且每次請求只能夠得到一次回復,為了獲取多種內部資料則需要進行多次請求。Diagnostic mode: After the hardware connection is completed, the connection is requested to the onboard computer, and a two-way communication link is established in response to the confirmation command from the onboard computer. In the diagnostic mode, the acquisition of vehicle internal data is based on the interaction with the onboard computer, and only one reply can be obtained per request. In order to obtain multiple internal data, multiple requests are required.

診斷模式的優勢在於能夠獲取明確的目標資料。劣勢在於:(1)如果車載電腦處於繁忙狀態,則無法及時回應,從而導致獲取內部資料滯後甚至失敗。(2)頻繁的查詢會導致車載電腦超負荷運行,並由此帶來車輛安全隱患,最常見的故障是車輛報故障碼,安全氣囊燈亮,ESP工作異常等。嚴重的情況下,車載電腦出於防盜等原因,可能會鎖死發動機,導致車輛不能點火。(3)如果向車載電腦請求車輛的內部資料的相關指令發送錯誤,可能導致對電腦的異常控制,後果無法預測。(4)基於診斷模式所遵循的協定,每一次查詢資料的時間間隔必須大於50MS,並且發送查詢後,車載電腦平均需要10~30MS給出答覆,一次交互流程耗時將近70MS,獲取車輛內部資料以消耗大量時間為代價,及時性較差。舉例而言:以需要獲取車輛內部的五種資料為例,若每個資料需要70MS才能夠獲取,則獲取上述五種資料需要至少350MS。車輛運行過程中,車輛內部資料需要迴圈獲取,那就意味著每個迴圈之間會有350MS以上的間隔,這對於及時性要求較高的應用場景而言是不能接受的。比如車速,正常車輛起步由靜止加速的時候,車速應該是由0-9順序漸進顯示,而如果車速延遲過大,就會出現0直接到10,中間沒有過度的跳躍式顯示,使用者體驗感顯著下降。(5)診斷模式下,車載電腦輸出的內部資料類型有限,根據不同汽車廠家的不同大致能夠輸出20種左右的資料,無法滿足顯示需要。The advantage of the diagnostic model is the ability to obtain clear target data. The disadvantages are: (1) If the on-board computer is busy, it cannot respond in time, resulting in lag or even failure to obtain internal data. (2) Frequent inquiries will cause the on-board computer to overload, and thus cause vehicle safety hazards. The most common faults are the vehicle reporting fault code, the airbag light is on, and the ESP is working abnormally. In severe cases, the on-board computer may lock the engine out of theft for reasons such as theft, causing the vehicle to fail to ignite. (3) If an instruction to the vehicle computer requesting the internal data of the vehicle is sent incorrectly, it may cause abnormal control of the computer, and the consequences are unpredictable. (4) Based on the agreement followed by the diagnostic mode, the time interval between each query data must be greater than 50MS, and after sending the query, the on-board computer needs an average of 10~30MS to give a reply, and an interaction process takes nearly 70MS to obtain the internal information of the vehicle. At the expense of a lot of time, the timeliness is poor. For example, taking five kinds of data inside the vehicle as an example, if each data needs 70MS to obtain, then obtaining the above five materials requires at least 350MS. During the running of the vehicle, the internal data of the vehicle needs to be acquired by the loop, which means that there will be more than 350 MS intervals between each loop, which is unacceptable for the application scenario with high timeliness requirements. For example, the speed of the vehicle is normal. When the vehicle starts to accelerate from a standstill, the speed should be gradually displayed from 0-9. If the speed is too long, 0 will go directly to 10, and there will be no excessive jump display in the middle. The user experience is significant. decline. (5) In the diagnosis mode, the internal data type output by the on-board computer is limited. According to the different car manufacturers, about 20 kinds of data can be output, which cannot meet the display requirements.

監聽模式:監聽在車輛內部網路中傳輸的資料。Listening mode: Monitors data transmitted on the vehicle's internal network.

監聽模式的劣勢在於監聽到的資料是原始資料,無法直接得到目標資料。優勢在於:(1)單向通訊,不受車載電腦負荷狀態的限制,不存在向車載電腦發送錯誤指令導致產生嚴重後果的可能性,不對車載電腦產生干擾。(2)不受限於診斷模式對於通信間隔時間的限制,及時性較好。(3)不受限於診斷模式中車載電腦輸出內容的限制,可以得到更多種類的內部資料。The disadvantage of the listening mode is that the data being monitored is the original data, and the target data cannot be directly obtained. The advantages are: (1) One-way communication is not limited by the load status of the on-board computer, and there is no possibility of sending a wrong command to the on-board computer, which may cause serious consequences, and does not cause interference to the on-board computer. (2) It is not limited to the diagnostic mode, and the time interval is limited, and the timeliness is good. (3) There is no limit to the output content of the on-board computer in the diagnostic mode, and more types of internal data can be obtained.

具體地,為了評估基於監聽模式獲取車輛內部資料的性能,本新型實施例對此進行了大量測試,測試到最快的一組資料包間隔只有5MS,而一組資料包內含有多個不同資料。監聽模式的資料獲取速度在診斷模式的數十倍以上。以福克斯為例,若在診斷模式下獲取車速和轉速,則需要先隔50MS詢問車速,等20MS得到回復,再隔50MS詢問轉速,等20MS得到回復,再等50MS詢問車速,在等20MS得到回復,以此類推,則連續兩次讀取車速的時間間隔就是50+20+50+20+50+20=210MS。而監聽方式只需要監聽資料包,並從中分析出車速和轉速即可,對福克斯而言只需5MS。Specifically, in order to evaluate the performance of acquiring vehicle internal data based on the listening mode, the new embodiment tests a lot of this, and the fastest group of data packets is separated by only 5MS, and a group of data packets contains multiple different materials. . The data acquisition speed of the monitor mode is more than ten times that of the diagnostic mode. Take Fox as an example. If you get the speed and speed in the diagnostic mode, you need to ask the vehicle speed 50MS first, wait for the 20MS to get the reply, then ask the speed by 50MS, wait for the 20MS to get the reply, wait for the 50MS to ask the speed, and wait for the 20MS to get a reply. And so on, the time interval for reading the vehicle speed twice in succession is 50+20+50+20+50+20=210MS. The monitoring method only needs to monitor the data packet and analyze the speed and speed from it. For Fox, only 5MS is needed.

有鑑於此,本新型實施例提供一種基於監聽模式獲取車輛資料的方法,如圖2所示,所述方法包括:S201.監聽車載電腦廣播的資料。具體地,本新型實施例中通過監聽車輛CAN匯流排和/或LIN匯流排獲取車載電腦廣播的資料。以CAN匯流排為例,在S201中首先進行硬體連接,在相關硬體連接完成後並進行參數配置後即可開始監聽,所述參數包括通訊頻率和協定規範。在監聽過程中,不需要與車載電腦進行任何雙向通信即可接收到大量車輛資料。這些資料本身就需要在車輛工作時有規律的大量傳輸,比如發動機的資料需要傳輸給儀錶做顯示,變速箱資料需要發送到車載電腦做資料整理,車載電腦需要對車輛進行各種控制。這些資料都需要在車身內部網路裡傳輸,也都可以通過監聽方式被獲取。S202. 對所述資料進行分析,提取目標車輛資料。不同車型規範不同,目標車輛資料的格式可能完全不同。需要對資料做大量的對比分析,找出原始資料和真實資料之間的規律才能得到正確的目標車輛資料。為了得到車輛資料獲取規則,對於每個車型的每個車輛資料均需要進行步驟S201-S202,從中得到每個車輛資料的獲取規則,最後總結為車輛資料獲取規則,並記錄在資料子表中。In view of this, the present invention provides a method for acquiring vehicle data based on a listening mode. As shown in FIG. 2, the method includes: S201. Monitoring data broadcasted by an on-board computer. Specifically, in the new embodiment, the information of the on-board computer broadcast is obtained by monitoring the vehicle CAN bus bar and/or the LIN bus bar. Taking the CAN bus as an example, the hardware connection is first performed in S201, and the monitoring can be started after the relevant hardware connection is completed and the parameters are configured. The parameters include the communication frequency and the protocol specification. During the monitoring process, a large amount of vehicle data can be received without any two-way communication with the onboard computer. The data itself needs to be regularly transmitted in large quantities during the work of the vehicle. For example, the data of the engine needs to be transmitted to the instrument for display, and the gearbox data needs to be sent to the on-board computer for data sorting. The on-board computer needs various controls on the vehicle. All of this information needs to be transmitted in the body's internal network, and can also be obtained through monitoring. S202. Analyze the data to extract target vehicle data. The format of the target vehicle data may be completely different depending on the specifications of the different models. A large amount of comparative analysis of the data is needed to find out the law between the original data and the real data in order to get the correct target vehicle data. In order to obtain the vehicle data acquisition rules, for each vehicle data of each vehicle type, steps S201-S202 are required, and the acquisition rules of each vehicle data are obtained therefrom, and finally summarized as the vehicle data acquisition rules, and recorded in the data sub-table.

在對每個類型車輛的某個具體的車輛資料進行提取的過程,所述車輛資料被稱之為目標車輛資料。In the process of extracting a specific vehicle profile for each type of vehicle, the vehicle profile is referred to as target vehicle profile.

所述提取目標車輛資料具體包括,如圖3所示:S2021. 按照第一預設時間獲取第一資料包。不同車型對應的第一預設時間可能不同。不同車型中資料包的內容格式也可能不同。S2022. 執行用於產生所述目標車輛資料的目標操作,並監聽第二預設時間內的資料獲取第二資料包。S2023. 對第一資料包和第二資料包進行橫向比較,得到第一範圍。因為發佈了目標操作,因此變化的資料可能是目標車輛資料,這部分資料組成了第一範圍。將S2021-S2023反復執行,不斷縮小第一範圍,最後得到目標車輛資料。The extracting the target vehicle data specifically includes, as shown in FIG. 3: S2021. Acquire the first data packet according to the first preset time. The first preset time corresponding to different models may be different. The content format of the package in different models may also be different. S2022. Perform a target operation for generating the target vehicle data, and monitor the data in the second preset time to acquire the second data package. S2023. Horizontal comparison of the first data package and the second data package to obtain the first range. Because the target operation is released, the changed data may be the target vehicle data, and this part of the data constitutes the first range. The S2021-S2023 is repeatedly executed, and the first range is continuously reduced, and finally the target vehicle data is obtained.

具體地,對於某個車型的某個目標車輛資料,在準確提取所述目標車輛資料的前提下,可以記錄所述目標車輛資料的定位參數,所述定位參數為用於在監聽結果中提取出目標車輛資料的參數的集合。在一個可行的實施方式中,所述定位參數包括通訊速率、監聽資料包標識、有效位元組、進制轉換標識以及資料轉換公式。Specifically, for a certain target vehicle data of a certain vehicle, under the premise of accurately extracting the target vehicle data, a positioning parameter of the target vehicle data may be recorded, where the positioning parameter is used to extract the monitoring result. A collection of parameters for the target vehicle data. In a feasible implementation manner, the positioning parameters include a communication rate, a monitoring data packet identifier, a valid byte group, a binary conversion identifier, and a data conversion formula.

以車速數據為例:B、C三種車型的車輛資料獲取規則分別被記錄在標識為0001、0002、0003的三張資料子表中,三張中的定位參數如表1所示: 表1 資料子表標識定位參數0001500K00000111第三,第四位元組16進制轉換為10進制0002250K00000222第一,第二位元組16進制轉換為10進制*20003125K00000333第七,第八位元組16進制轉換為10進制*3則可知上述三種車型的車速獲取規則為:A車型的CAN匯流排通訊速率為500K , 監聽資料包ID為00000111 ,有效資料為第三,第四位元組,轉換公式為16進制轉換為10進制;B車型的CAN匯流排通訊速率為250K,車速ID為00000222,有效資料為第一,第二位元組,轉換公式為16進制轉換為10進制*2;C車型的CAN匯流排通訊速率為125K,車速ID為00000333,有效資料為第七,第八位元組,轉換公式為16進制轉換為10進制*3。 Take the vehicle speed data as an example: the vehicle data acquisition rules of the three models B and C are recorded in the three data sub-tables labeled 0001, 0002, and 0003, respectively. The positioning parameters in the three sheets are shown in Table 1: Table 1  Data sub-table identification positioning parameter 0001500K00000111 third, fourth byte hexadecimal conversion to decimal 0002250K00000222 first, second byte hexadecimal conversion to decimal *20003125K00000333 seventh, eighth byte The hexadecimal conversion to decimal *3 shows that the speed acquisition rules of the above three models are: the CAN bus communication speed of the A model is 500K, the monitoring data package ID is 00000111, the valid data is the third, the fourth byte The conversion formula is hexadecimal to decimal. The CAN bus speed of the B model is 250K, the vehicle speed ID is 00000222, the valid data is the first, the second byte, and the conversion formula is hexadecimal to 10 The hexadecimal *2; C model CAN bus communication speed is 125K, the vehicle speed ID is 00000333, the valid data is the seventh, the eighth byte, the conversion formula is hexadecimal conversion to decimal *3.  

需要注意的是,各個資料子表均以鍵值對的形式存儲車輛資料獲取規則,不同的資料子表的鍵可以相同或不同。眾所周知,可以基於監聽模式獲取的車輛資料種類非常繁多,包括但不限於有車速、轉速、水溫、電壓、車門、所有燈光、油量、油門狀態、刹車狀態、安全帶狀態、鑰匙狀態、方向盤角度、檔位、總里程數等,而不同的車輛資料的定位參數也可能不同。It should be noted that each data sub-table stores the vehicle data acquisition rules in the form of key-value pairs, and the keys of different data sub-tables may be the same or different. As we all know, the types of vehicle data that can be acquired based on the monitoring mode are very numerous, including but not limited to the speed, speed, water temperature, voltage, door, all lights, fuel quantity, throttle status, brake status, seat belt status, key status, steering wheel. Angle, gear position, total mileage, etc., and the positioning parameters of different vehicle data may also be different.

若不同的車輛資料的定位參數都可以被表示為通訊速率、監聽資料包標識、有效位元組、進制轉換標識以及資料轉換公式,則各個資料子表的邏輯結構可以被設計為包括車輛資料類型、通訊速率、監聽資料包標識、有效位元組、進制轉換標識以及資料轉換公式六個欄位,如表2所示: 表2 車輛資料類型通訊速率監聽資料包標識有效位元組進制轉換標識以及資料轉換公式車速250K00000222第一,第二位元組16進制轉換為10進制轉速500K00000153第四,第五位元組16進制轉換為10進制*3If the positioning parameters of different vehicle data can be expressed as communication rate, monitoring packet identification, effective byte, binary conversion identifier and data conversion formula, the logical structure of each data sub-table can be designed to include vehicle data. The six fields of type, communication rate, monitoring packet identification, valid byte, binary conversion identifier and data conversion formula are shown in Table 2: Table 2  Vehicle data type communication rate monitoring data packet identification effective bit group hex conversion identification and data conversion formula vehicle speed 250K00000222 first, the second byte hexadecimal conversion to decimal speed 500K00000153 fourth, fifth byte 16 Convert to decimal *3

若不同的車輛資料的定位參數的欄位不相同,沒有辦法進行統一,則各個資料子表的的邏輯結構可以被設計為包括車輛資料類型以及BLOB兩個欄位,BLOB(binary large object),二進位大物件,是一個可以存儲二進位檔案的容器,對於無法進行欄位統一的定位參數使用BLOB進行存儲,在存儲過程中將具體的定位參數保存在BLOB中,不同BLOB中的定位參數的欄位互不影響,可以不同。在實際進行車輛資料獲取的過程中,將BLOB容器內的內容進行解析,得到具體的定位參數即可。If the fields of the positioning parameters of different vehicle data are different and there is no way to unify, the logical structure of each data sub-table can be designed to include the vehicle data type and the BLOB two fields, BLOB (binary large object), The binary large object is a container that can store the binary file. For the positioning parameters that cannot be unified, the BLOB is used for storage. In the storage process, the specific positioning parameters are stored in the BLOB, and the positioning parameters in different BLOBs are The fields do not affect each other and can be different. In the process of actual vehicle data acquisition, the content in the BLOB container is parsed to obtain specific positioning parameters.

具體地,為了實現上述方法實施例,本新型實施例提供了一種車輛資料獲取自動適配裝置,如圖4所示,包括:資料庫模組401,用於建立車輛資料適配資料庫,所述資料庫包括一張適配表和多張資料子表,適配表用於記錄車輛類型與資料子表標識的對應關係,資料子表用於記錄某個車輛類型中車輛資料的獲取規則。目標車輛類型獲取模組402,用於獲取目標車輛的目標車輛類型。定位模組403,用於根據所述目標車輛類型定位所述目標車輛類型對應的目標資料子表。監聽模組404,用於監聽車載電腦廣播的資料得到資料源。獲取模組405,用於根據所述目標資料子表中記錄的車輛資料獲取規則在資料源中獲取車輛資料。Specifically, in order to implement the foregoing method embodiment, the new embodiment provides a vehicle data acquisition automatic adaptation device, as shown in FIG. 4, including: a database module 401, configured to establish a vehicle data adaptation database, The database includes an adaptation table and a plurality of data sub-tables for recording the correspondence between the vehicle type and the data sub-table identification, and the data sub-table is for recording the acquisition rules of the vehicle data in a certain vehicle type. The target vehicle type acquisition module 402 is configured to acquire a target vehicle type of the target vehicle. The positioning module 403 is configured to locate a target data sub-table corresponding to the target vehicle type according to the target vehicle type. The monitoring module 404 is configured to monitor data broadcasted by the on-board computer to obtain a data source. The obtaining module 405 is configured to obtain vehicle data in the data source according to the vehicle data acquisition rule recorded in the target data sub-table.

本新型裝置實施例與方法實施例基於相同的新型構思。The novel device embodiments and method embodiments are based on the same novel concept.

以上所揭露的僅為本新型較佳實施例而已,當然不能以此來限定本新型之權利範圍,因此依本新型權利要求所作的等同變化,仍屬本新型所涵蓋的範圍。The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and the equivalent changes made by the novel claims are still within the scope of the present invention.

401‧‧‧資料庫模組401‧‧‧Database Module

402‧‧‧目標車輛類型獲取模組 402‧‧‧Target Vehicle Type Acquisition Module

403‧‧‧定位模組 403‧‧‧ Positioning Module

404‧‧‧監聽模組 404‧‧‧Monitor module

405‧‧‧獲取模組 405‧‧‧Get the module

圖1是本新型實施例提供的一種車輛資料獲取自動適配方法流程圖;圖2是本新型實施例提供的一種基於監聽模式獲取車輛資料的方法流程圖;圖3是本新型實施例提供的提取目標車輛資料流程圖;圖4是本新型實施例提供的一種車輛資料獲取自動適配裝置框圖。1 is a flow chart of a method for automatically acquiring vehicle data acquisition according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for acquiring vehicle data based on a listening mode according to an embodiment of the present invention; FIG. The target vehicle data flow chart is extracted; FIG. 4 is a block diagram of a vehicle data acquisition automatic adaptation device provided by the new embodiment.

Claims (1)

一種車輛資料獲取自動適配裝置,其特徵在於,包括: 資料庫模組,用於建立車輛資料適配資料庫,所述資料庫包括一張適配表和多張資料子表,適配表用於記錄車輛類型與資料子表標識的對應關係,資料子表用於記錄某個車輛類型中車輛資料的獲取規則; 目標車輛類型獲取模組,用於獲取目標車輛的目標車輛類型; 定位模組,用於根據所述目標車輛類型定位所述目標車輛類型對應的目標資料子表; 監聽模組,用於監聽車載電腦廣播的資料得到資料源;及 獲取模組,用於根據所述目標資料子表中記錄的車輛資料獲取規則在資料源中獲取車輛資料。A vehicle data acquisition automatic adaptation device, comprising: a database module, configured to establish a vehicle data adaptation database, the data library comprising an adaptation table and a plurality of data sub-tables, an adaptation table It is used to record the correspondence between the vehicle type and the data sub-table identification, the data sub-table is used to record the acquisition rules of the vehicle data in a certain vehicle type; the target vehicle type acquisition module is used to acquire the target vehicle type of the target vehicle; a group for locating a target data sub-table corresponding to the target vehicle type according to the target vehicle type; a monitoring module for monitoring data obtained by the on-board computer broadcast to obtain a data source; and acquiring a module for using the target The vehicle data acquisition rules recorded in the data sub-list obtain vehicle data in the data source.
TW107213427U 2018-10-03 2018-10-03 Vehicle data acquisition automatic adaptation device TWM575160U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107213427U TWM575160U (en) 2018-10-03 2018-10-03 Vehicle data acquisition automatic adaptation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107213427U TWM575160U (en) 2018-10-03 2018-10-03 Vehicle data acquisition automatic adaptation device

Publications (1)

Publication Number Publication Date
TWM575160U true TWM575160U (en) 2019-03-01

Family

ID=66591515

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107213427U TWM575160U (en) 2018-10-03 2018-10-03 Vehicle data acquisition automatic adaptation device

Country Status (1)

Country Link
TW (1) TWM575160U (en)

Similar Documents

Publication Publication Date Title
CN108829825B (en) Automatic adaptation method and device for vehicle data acquisition
CN110515366B (en) Fault diagnosis method and device
CN112286171B (en) Remote diagnosis method, device, vehicle and storage medium
CN106708017B (en) Vehicle fault real-time monitoring and service system and monitoring method thereof
JP4622177B2 (en) Failure diagnosis system, vehicle management device, server device, and inspection diagnosis program
CN110162008B (en) CAN bus analysis method for new energy vehicle
US20150348339A1 (en) Vehicle diagnostic data collecting apparatus, vehicle diagnostic data collecting method, vehicle diagnostic machine, and vehicle diagnosing method
CN110233768B (en) UDS-based CAN bus test system and CAN bus test method
JP2015229364A (en) Vehicle diagnosis machine and vehicle diagnosis method
CN112367233A (en) Vehicle-mounted network ECU communication method and device based on service-oriented architecture
KR101060681B1 (en) Vehicle information transmission method, vehicle information receiving method and system performing the same
CN110989555A (en) Vehicle diagnosis and alarm method, device and system
CN112068536A (en) Universal self-adaptive vehicle remote diagnosis method, device and system
CN112003784A (en) Vehicle data transmission method, device, storage medium and device
CN112566061A (en) Internet of vehicles data transmission method and system and vehicle service cloud
CN112965463B (en) Remote diagnosis system and remote diagnosis method
TWM575160U (en) Vehicle data acquisition automatic adaptation device
TWI680376B (en) Automatic adaptation method and device for acquiring vehicle data
CN111880510A (en) New energy automobile data acquisition and transmission method and equipment
CN203882164U (en) OBD (on-board diagnostics) technology-based motor vehicle real-time monitoring system
CN111917692A (en) Fuzzy test method, device, equipment and computer readable storage medium
CN114625111A (en) Vehicle state monitoring method and system
CN113408755A (en) Automobile repair resource obtaining method, cloud platform and electronic equipment
CN109017556A (en) A kind of vehicle automatic reminding method and device
WO2015002023A1 (en) On-board device, method of controlling same, and control program

Legal Events

Date Code Title Description
MM4K Annulment or lapse of a utility model due to non-payment of fees