CN115550206A - Automatic point inspection method and system for vehicle-mounted Ethernet service - Google Patents
Automatic point inspection method and system for vehicle-mounted Ethernet service Download PDFInfo
- Publication number
- CN115550206A CN115550206A CN202211064513.XA CN202211064513A CN115550206A CN 115550206 A CN115550206 A CN 115550206A CN 202211064513 A CN202211064513 A CN 202211064513A CN 115550206 A CN115550206 A CN 115550206A
- Authority
- CN
- China
- Prior art keywords
- service
- ethernet
- point inspection
- message
- result
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000007689 inspection Methods 0.000 title claims abstract description 107
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000004458 analytical method Methods 0.000 claims description 17
- 238000000605 extraction Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 3
- 230000002159 abnormal effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 13
- 238000004590 computer program Methods 0.000 description 10
- 239000000284 extract Substances 0.000 description 6
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000000275 quality assurance Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及车载以太网测试领域,更具体地,涉及一种车载以太网服务自动点检方法及系统。The present invention relates to the field of vehicle-mounted Ethernet testing, and more particularly, to a method and system for automatic point-checking of vehicle-mounted Ethernet services.
背景技术Background technique
在车载以太网测试项目中,为了保障发布版本的质量,会对以太网服务逐个进行点检。其中主要涉及对每个服务的发布订阅流程,以及相关周期事件的检查,而点检方式主要是依靠人工分析以太网报文。但是车载以太网服务一般数量较多,动辄上百个,点检时需要分析的以太网报文一般也在几十万条以上,导致人工点检耗时较长,而且容易发生漏测误测的情况。In the automotive Ethernet test project, in order to ensure the quality of the released version, Ethernet services will be checked one by one. It mainly involves the publishing and subscribing process of each service and the inspection of related periodic events, and the inspection method mainly relies on manual analysis of Ethernet packets. However, the number of vehicle-mounted Ethernet services is generally large, often hundreds, and the number of Ethernet packets that need to be analyzed during point inspection is generally more than hundreds of thousands, resulting in a long time-consuming manual point inspection, and prone to missed detection Case.
发明内容Contents of the invention
本发明为了解决车载以太网服务人工点检效率低、质量难以保障的问题,提供一种车载以太网服务自动点检方法及系统,以提高车载以太网服务的点检效率,确保点检质量。In order to solve the problems of low efficiency and difficult quality assurance of manual inspection of vehicle-mounted Ethernet services, the present invention provides a method and system for automatic inspection of vehicle-mounted Ethernet services, so as to improve the efficiency of inspection of vehicle-mounted Ethernet services and ensure the quality of inspections.
根据本发明的第一方面,提供了一种车载以太网服务自动点检方法,包括:According to a first aspect of the present invention, a method for automatic check-up of vehicle-mounted Ethernet services is provided, including:
基于CANoe软件录制需要点检的以太网报文;Based on CANoe software, record Ethernet messages that need to be inspected;
基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表;Parse the Ethernet message based on the Python program, and store the parsed Ethernet message as a corresponding two-dimensional data table according to the message type;
基于Python程序解析以太网服务模板表,提取所有需要点检的服务信息;Parse the Ethernet service template table based on the Python program, and extract all service information that needs to be checked;
基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果;Based on the service information of any service that needs to be checked, check the check item corresponding to the current service in the two-dimensional data table, and obtain the check result of each check item;
将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应。Write the inspection result into the Ethernet service template table, the inspection result corresponding to the service information.
在上述技术方案的基础上,本发明还可以作出如下改进。On the basis of the above technical solution, the present invention can also make the following improvements.
可选的,所述报文类型包括Offer Service、Subscribe和Event Notification;Optionally, the message type includes Offer Service, Subscribe and Event Notification;
所述基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表,包括:The said Ethernet message is parsed based on the Python program, and the parsed Ethernet message is stored as a corresponding two-dimensional data table according to the message type, including:
根据不同的报文类型将所述以太网报文存储在不同的二维数据表,所述二维数据表包括时间戳字段和服务信息字段。The Ethernet message is stored in different two-dimensional data tables according to different message types, and the two-dimensional data table includes a time stamp field and a service information field.
可选的,还包括:Optionally, also include:
根据车载以太网的服务表,整理出以太网服务模板表,所述以太网服务模板表中包括所有需要点检的服务的服务信息以及每一个服务的每一个点检项的预期结果。According to the service table of the vehicle-mounted Ethernet, an Ethernet service template table is sorted out, and the Ethernet service template table includes service information of all services that need to be inspected and expected results of each inspection item of each service.
可选的,所述基于Python程序解析以太网服务模板表,提取所有需要点检的服务的服务信息,包括:Optionally, the Python-based program parses the Ethernet service template table to extract service information of all services that need to be checked, including:
基于Python程序解析以太网服务模板表,提取其中所有的服务信息以及每一个服务的每一个点检项的预期结果。Parse the Ethernet service template table based on the Python program, extract all the service information and the expected results of each check item of each service.
可选的,所述基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果,包括:Optionally, based on the service information of any service that needs to be checked, the check item corresponding to the current service is checked in the two-dimensional data table, and the check result of each check item is obtained, including:
根据任一个需要点检的服务的点检类型,找到相应类型的二维数据表;According to the inspection type of any service that needs inspection, find the corresponding type of two-dimensional data table;
基于所述任一个需要点检的服务的服务信息,在相应的所述二维数据表中找到对应的所有的点检项;Find all the corresponding check items in the corresponding two-dimensional data table based on the service information of any service that needs to be checked;
对每一个点检项的以太网报文进行分析,得出分析结果;Analyze the Ethernet message of each inspection item to obtain the analysis result;
将每一个点检项的分析结果与对应的预期结果比较,若一致,则点检结果为成功;若不一致,则点检结果为失败。Compare the analysis results of each inspection item with the corresponding expected results. If they are consistent, the inspection result is successful; if they are inconsistent, the inspection result is failure.
可选的,若所述点检类型为点检服务发送,则获取Offer Service类型的二维数据表;Optionally, if the inspection type is sent by inspection service, obtain a two-dimensional data table of the Offer Service type;
检查Offer Service类型的二维数据表中Offer Service报文的周期,以及每条报文的Socket信息是否正确,得到分析结果。Check the period of the Offer Service message in the two-dimensional data table of the Offer Service type, and whether the Socket information of each message is correct, and obtain the analysis result.
可选的,所述将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应,包括:Optionally, writing the checking result into the Ethernet service template table, where the checking result corresponds to the service information, includes:
将点检结果写入所述太网服务模板表,对于失败的点检结果,表明异常原因。Write the check results into the Ethernet service template table, and indicate the abnormal reason for the failed check results.
根据本发明的第二方面,提供一种车载以太网服务自动点检系统,包括:According to a second aspect of the present invention, there is provided a vehicle-mounted Ethernet service automatic spot check system, comprising:
录制模块,用于基于CANoe软件录制需要点检的以太网报文;Recording module, used to record Ethernet messages that need to be checked based on CANoe software;
解析模块,用于基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表;The analysis module is used to analyze the Ethernet message based on the Python program, and stores the analyzed Ethernet message as a corresponding two-dimensional data table according to the message type;
提取模块,用于基于Python程序解析以太网服务模板表,提取所有需要点检的服务信息;The extraction module is used to parse the Ethernet service template table based on the Python program and extract all service information that needs to be checked;
点检模块,用于基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果;The check module is used to check the check item corresponding to the current service in the two-dimensional data table based on the service information of any service that needs to be checked, and obtain the check result of each check item;
写入模块,用于将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应。A writing module, configured to write the checking result into the Ethernet service template table, the checking result corresponding to the service information.
根据本发明的第三方面,提供了一种电子设备,包括存储器、处理器,所述处理器用于执行存储器中存储的计算机管理类程序时实现车载以太网服务自动点检方法的步骤。According to a third aspect of the present invention, an electronic device is provided, including a memory and a processor, and the processor is configured to implement the steps of the method for automatic on-vehicle Ethernet service inspection when executing a computer management program stored in the memory.
根据本发明的第四方面,提供了一种计算机可读存储介质,其上存储有计算机管理类程序,所述计算机管理类程序被处理器执行时实现车载以太网服务自动点检方法的步骤。According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer management program is stored, and when the computer management program is executed by a processor, the steps of the method for automatic inspection of vehicle-mounted Ethernet services are realized.
本发明提供的一种车载以太网服务自动点检方法及系统,可以通过python程序分析繁杂的以太网报文,然后结合以太网服务点检表模板,大幅提高点检效率,保障点检质量。The present invention provides a vehicle-mounted Ethernet service automatic inspection method and system, which can analyze complicated Ethernet messages through a python program, and then combine the Ethernet service inspection table template to greatly improve the inspection efficiency and ensure the inspection quality.
附图说明Description of drawings
图1为本发明提供的一种车载以太网服务自动点检方法流程图;Fig. 1 is the flow chart of a kind of vehicle Ethernet service automatic check method provided by the present invention;
图2为车载以太网服务自动点检方法的整体流程示意图;Fig. 2 is a schematic diagram of the overall process of the automatic spot check method for the vehicle-mounted Ethernet service;
图3为本发明提供的一种车载以太网服务自动点检系统的结构示意图;Fig. 3 is a schematic structural diagram of a vehicle-mounted Ethernet service automatic point inspection system provided by the present invention;
图4为本发明提供的一种可能的电子设备的硬件结构示意图;FIG. 4 is a schematic diagram of a hardware structure of a possible electronic device provided by the present invention;
图5为本发明提供的一种可能的计算机可读存储介质的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a possible computer-readable storage medium provided by the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。另外,本发明提供的各个实施例或单个实施例中的技术特征可以相互任意结合,以形成可行的技术方案,这种结合不受步骤先后次序和/或结构组成模式的约束,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时,应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention. In addition, the technical features in each embodiment or a single embodiment provided by the present invention can be combined arbitrarily with each other to form a feasible technical solution. This combination is not restricted by the sequence of steps and/or structural composition mode, but it must be Based on the ability of those skilled in the art to realize, when the combination of technical solutions is contradictory or unrealizable, it should be considered that such combination of technical solutions does not exist and is not within the protection scope of the present invention.
为了解决现有车载以太网服务人工点检效率低、质量难以保障的问题,本发明提出了一种方法,可以通过python程序分析繁杂的以太网报文,然后结合以太网服务点检表模板,大幅提高点检效率,保障点检质量。In order to solve the problems of low efficiency and difficult quality guarantee of the existing vehicle-mounted Ethernet service manual inspection, the present invention proposes a method that can analyze complicated Ethernet messages through a python program, and then combine the Ethernet service inspection table template, Significantly improve the efficiency of spot inspection and ensure the quality of spot inspection.
图1为本发明提供的一种车载以太网服务自动点检方法流程图,如图1所示,该自动点检方法主要包括以下步骤:Fig. 1 is the flow chart of a kind of vehicle-mounted Ethernet service automatic check method flow chart provided by the present invention, as shown in Fig. 1, this automatic check method mainly comprises the following steps:
S1,基于CANoe软件录制需要点检的以太网报文。S1, based on CANoe software, records Ethernet packets that need to be inspected.
可以理解的是,对于需要点检的以太网报文,使用CANoe软件录制需要点检的以太网报文,并导出保存成asc格式文件。It can be understood that, for the Ethernet messages that need to be checked, the CANoe software is used to record the Ethernet messages that need to be checked, and exported and saved as an asc format file.
S2,基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表。S2. Parse the Ethernet message based on the Python program, and store the parsed Ethernet message as a corresponding two-dimensional data table according to the message type.
作为实施例,所述报文类型包括Offer Service、Subscribe和EventNotification;所述基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表,包括:根据不同的报文类型将所述以太网报文存储在不同的二维数据表,所述二维数据表包括时间戳字段和服务信息字段。As an embodiment, the message type includes Offer Service, Subscribe and EventNotification; the Python-based program parses the Ethernet message, and stores the parsed Ethernet message as a corresponding two-dimensional data table according to the message type The method includes: storing the Ethernet message in different two-dimensional data tables according to different message types, and the two-dimensional data table includes a time stamp field and a service information field.
可以理解的是,编写Python程序解析上面生成的以太网报文文件,按报文类型将解析后的报文存储成不同的二维数据表,即不同的二维数据表存储不同类型的以太网报文。根据点检需求,一般需要存储的报文类型有Offer Service、Subscribe、EventNotification等;而二维数据表的数据,除了有时间戳、Service ID(服务信息)等基本字段外,还有每个报文类型特有的属性。It is understandable that writing a Python program to parse the Ethernet message file generated above, and storing the parsed message into different two-dimensional data tables according to the message type, that is, different two-dimensional data tables store different types of Ethernet message. According to the inspection requirements, the types of messages that generally need to be stored include Offer Service, Subscribe, EventNotification, etc.; and the data of the two-dimensional data table, in addition to basic fields such as time stamp and Service ID (service information), there are also Properties specific to the text type.
S3,基于Python程序解析以太网服务模板表,提取所有需要点检的服务信息。S3, parses the Ethernet service template table based on the Python program, and extracts all service information that needs to be checked.
作为实施例,根据车载以太网的服务表,整理出以太网服务模板表,所述以太网服务模板表中包括所有需要点检的服务的服务信息以及每一个服务的每一个点检项的预期结果。As an embodiment, according to the service table of the vehicle-mounted Ethernet, the Ethernet service template table is sorted out, and the Ethernet service template table includes service information of all services that need to be checked and the expected value of each check item of each service. result.
其中,所述基于Python程序解析以太网服务模板表,提取所有需要点检的服务的服务信息,包括:基于Python程序解析以太网服务模板表,提取其中所有的服务信息以及每一个服务的每一个点检项的预期结果。Wherein, the Python program-based parsing of the Ethernet service template table, and extracting service information of all services that need to be checked include: parsing the Ethernet service template table based on the Python program, extracting all the service information and each service information of each service. The expected result of the check item.
可以理解的是,预先建立以太网服务模板表,以太网服务模板表中包括所有需要点检的服务的服务信息(服务唯一标识ID)以及每一个服务的每一个点检项的预期结果。It can be understood that the Ethernet service template table is pre-established, and the Ethernet service template table includes service information (service unique identification ID) of all services to be checked and the expected result of each check item of each service.
在后续需要对以太网服务进行点检时,从以太网服务模板表中提取出其中所有需要点检的服务的服务信息以及每一个服务的每一个点检项的预期结果。When the Ethernet service needs to be inspected subsequently, the service information of all the services that need to be inspected and the expected result of each inspection item of each service are extracted from the Ethernet service template table.
S4,基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果。S4. Based on the service information of any service that needs to be checked, check the check item corresponding to the current service in the two-dimensional data table, and obtain the check result of each check item.
作为实施例,所述基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果,包括:根据任一个需要点检的服务的点检类型,找到相应类型的二维数据表;基于所述任一个需要点检的服务的服务信息,在相应的所述二维数据表中找到对应的所有的点检项;对每一个点检项的以太网报文进行分析,得出分析结果;将每一个点检项的分析结果与对应的预期结果比较,若一致,则点检结果为成功;若不一致,则点检结果为失败。As an embodiment, the checking of the check items corresponding to the current service in the two-dimensional data table based on the service information of any service that needs to be checked, and obtaining the check result of each check item includes: according to any requirement Find the corresponding type of two-dimensional data table based on the inspection type of the service to be inspected; find all the corresponding inspection items in the corresponding two-dimensional data table based on the service information of any service that needs to be inspected ;Analyze the Ethernet message of each check item to obtain the analysis result; compare the analysis result of each check item with the corresponding expected result, if they are consistent, the check result is successful; if not, then The check result is failed.
其中,若所述点检类型为点检服务发送,则获取Offer Service类型的二维数据表;检查Offer Service类型的二维数据表中Offer Service报文的周期,以及每条报文的Socket信息是否正确,得到分析结果。Wherein, if the spot check type is sent by spot check service, then obtain the two-dimensional data table of the Offer Service type; check the period of the Offer Service message in the two-dimensional data table of the Offer Service type, and the Socket information of each message If it is correct, get the analysis result.
可以理解的是,根据提取的服务信息和点检项预期结果,分析相应的二维数据表,例如需要点检服务发送,就分析Offer Service二维表,检查Offer Service报文的周期,以及每条报文的Socket信息是否正确。It is understandable that according to the extracted service information and the expected results of the check items, analyze the corresponding two-dimensional data table. For example, if the check service needs to be sent, analyze the Offer Service two-dimensional table, check the period of the Offer Service message, and Check whether the Socket information of each message is correct.
S5,将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应。S5. Write the inspection result into the Ethernet service template table, where the inspection result corresponds to the service information.
作为实施例,所述将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应,包括:将点检结果写入所述太网服务模板表,对于失败的点检结果,表明异常原因。As an embodiment, the writing the checking result into the Ethernet service template table, the checking result corresponding to the service information includes: writing the checking result into the Ethernet service template table, and for failure The result of the check indicates the cause of the abnormality.
参见图2,为本发明提供的一种车载以太网服务自动点检方法的整体流程图,首先,基于CANoe录制所需要点检的以太网报文,导出成ASC格式文件,解析以太网报文,按照报文类型的不同将以太网报文存储于不同的二维数据表中。然后解析以太网服务模板表,从中提取出所有需要点检的服务的服务信息和每一个服务的每一个点检项的预期结果。将提取出的需要点检的服务的服务信息和每一个点检项的预期结果均存储于服务队列中。Referring to Fig. 2, it is an overall flow chart of a kind of vehicle-mounted Ethernet service automatic inspection method provided by the present invention, at first, based on the Ethernet message of CANoe recording needing inspection, export into ASC format file, analyze Ethernet message , and store the Ethernet messages in different two-dimensional data tables according to different message types. Then parse the Ethernet service template table to extract the service information of all services that need to be checked and the expected results of each check item of each service. The extracted service information of the service to be checked and the expected result of each checked item are stored in the service queue.
在对服务进行点检时,从服务队列中取出需要点检的服务(待点检服务)和该服务的每一个点检项的预期结果,根据待点检服务的点检类型,找到对应的二维数据表,并根据待点检服务的服务信息,从二维数据表中找到给服务的所有点检项,对每一个点检项的以太网报文进行分析,得到分析结果,将每一个点检项的分析结果与预期结果进行对比,得到点检结果,最后将得到的点检结果写入以太网服务模板表。When checking a service, take out the service that needs to be checked (service to be checked) and the expected result of each check item of the service from the service queue, and find the corresponding service according to the check type of the service to be checked Two-dimensional data table, and according to the service information of the service to be checked, find all the check items for the service from the two-dimensional data table, analyze the Ethernet message of each check item, and obtain the analysis result, and divide each The analysis result of an inspection item is compared with the expected result to obtain the inspection result, and finally the obtained inspection result is written into the Ethernet service template table.
图3为本发明实施例提供的一种车载以太网服务自动点检系统结构图,如图3所示,一种车载以太网服务自动点检系统,包括录制模块301、解析模块302、提取模块303、点检模块304和写入模块305,其中:Fig. 3 is a structural diagram of a vehicle-mounted Ethernet service automatic point inspection system provided by an embodiment of the present invention. As shown in Fig. 3, a vehicle-mounted Ethernet service automatic point-check system includes a recording module 301, an analysis module 302, and an extraction module 303, checking module 304 and writing module 305, wherein:
录制模块301,用于基于CANoe软件录制需要点检的以太网报文;解析模块302,用于基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表;提取模块303,用于基于Python程序解析以太网服务模板表,提取所有需要点检的服务信息;点检模块304,用于基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果;写入模块305,用于将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应。Recording module 301, is used for recording the Ethernet message that needs spot check based on CANoe software; Parsing module 302, is used for analyzing described Ethernet message based on Python program, stores the Ethernet message after the analysis by message type as Corresponding two-dimensional data table; extraction module 303, used for parsing the Ethernet service template table based on Python program, and extracting all service information that needs to be checked; check module 304, used for service information based on any service that needs to be checked , check the check item corresponding to the current service in the two-dimensional data table, and obtain the check result of each check item; the writing module 305 is used to write the check result into the Ethernet service template table, and the The checking result corresponds to the service information.
可以理解的是,本发明提供的一种车载以太网服务自动点检系统与前述各实施例提供的车载以太网服务自动点检方法相对应,车载以太网服务自动点检系统的相关技术特征可参考车载以太网服务自动点检方法的相关技术特征,在此不再赘述。It can be understood that the automatic on-vehicle Ethernet service inspection system provided by the present invention corresponds to the automatic on-vehicle Ethernet service inspection methods provided in the foregoing embodiments, and the relevant technical features of the on-board Ethernet service automatic inspection system can be Refer to the relevant technical features of the method for automatic spot check of the vehicle Ethernet service, which will not be repeated here.
请参阅图4,图4为本发明实施例提供的电子设备的实施例示意图。如图4所示,本发明实施例提了一种电子设备400,包括存储器410、处理器420及存储在存储器410上并可在处理器420上运行的计算机程序411,处理器420执行计算机程序411时实现以下步骤:基于CANoe软件录制需要点检的以太网报文;基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表;基于Python程序解析以太网服务模板表,提取所有需要点检的服务信息;基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果;将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应。Please refer to FIG. 4 . FIG. 4 is a schematic diagram of an embodiment of an electronic device provided by an embodiment of the present invention. As shown in FIG. 4 , an embodiment of the present invention provides an
请参阅图5,图5为本发明提供的一种计算机可读存储介质的实施例示意图。如图5所示,本实施例提供了一种计算机可读存储介质500,其上存储有计算机程序511,该计算机程序511被处理器执行时实现如下步骤:基于CANoe软件录制需要点检的以太网报文;基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表;基于Python程序解析以太网服务模板表,提取所有需要点检的服务信息;基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果;将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应。Please refer to FIG. 5 , which is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in Figure 5, the present embodiment provides a computer-
本发明实施例提供的一种车载以太网服务自动点检方法及系统,基于CANoe软件录制需要点检的以太网报文;基于Python程序解析所述以太网报文,按报文类型将解析后的以太网报文存储为相应的二维数据表;基于Python程序解析以太网服务模板表,提取所有需要点检的服务信息;基于任一个需要点检的服务的服务信息,在二维数据表中检验当前服务对应的点检项,得到每一个点检项的点检结果;将点检结果写入所述太网服务模板表,所述点检结果与所述服务信息对应。本发明可以通过python程序分析繁杂的以太网报文,然后结合以太网服务点检表模板,大幅提高点检效率,保障点检质量。The embodiment of the present invention provides a method and system for automatic point inspection of vehicle-mounted Ethernet services, recording Ethernet messages that need to be checked based on CANoe software; parsing the Ethernet messages based on the Python program, and analyzing them according to the message type The Ethernet packets are stored as the corresponding two-dimensional data table; the Ethernet service template table is parsed based on the Python program, and all service information that needs to be checked is extracted; based on the service information of any service that needs to be checked, in the two-dimensional data table Inspect the check items corresponding to the current service to obtain the check results of each check item; write the check results into the Ethernet service template table, and the check results correspond to the service information. The invention can analyze complicated Ethernet messages through a python program, and then combine the template of the Ethernet service inspection table to greatly improve the efficiency of inspection and ensure the quality of inspection.
需要说明的是,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其它实施例的相关描述。It should be noted that, in the foregoing embodiments, descriptions of each embodiment have their own emphases, and for parts that are not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式计算机或者其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce a machine for A device for realizing the functions specified in one or more procedures of a flowchart and/or one or more blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is understood. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包括这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211064513.XA CN115550206A (en) | 2022-08-31 | 2022-08-31 | Automatic point inspection method and system for vehicle-mounted Ethernet service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211064513.XA CN115550206A (en) | 2022-08-31 | 2022-08-31 | Automatic point inspection method and system for vehicle-mounted Ethernet service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115550206A true CN115550206A (en) | 2022-12-30 |
Family
ID=84725787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211064513.XA Pending CN115550206A (en) | 2022-08-31 | 2022-08-31 | Automatic point inspection method and system for vehicle-mounted Ethernet service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115550206A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112615850A (en) * | 2020-12-15 | 2021-04-06 | 广州橙行智动汽车科技有限公司 | Vehicle-mounted service authorization anti-counterfeiting monitoring method and vehicle |
CN113468070A (en) * | 2021-07-23 | 2021-10-01 | 上海英恒电子有限公司 | Consistency test method for vehicle-mounted Ethernet |
-
2022
- 2022-08-31 CN CN202211064513.XA patent/CN115550206A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112615850A (en) * | 2020-12-15 | 2021-04-06 | 广州橙行智动汽车科技有限公司 | Vehicle-mounted service authorization anti-counterfeiting monitoring method and vehicle |
WO2022127145A1 (en) * | 2020-12-15 | 2022-06-23 | 广州橙行智动汽车科技有限公司 | Method for anti-counterfeiting monitoring of vehicle-mounted service license, and vehicle |
CN113468070A (en) * | 2021-07-23 | 2021-10-01 | 上海英恒电子有限公司 | Consistency test method for vehicle-mounted Ethernet |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002391B (en) | Method for automatically detecting embedded software interface test data | |
CN107798047B (en) | Repeated work order detection method, device, server and medium | |
CN112256581B (en) | Log playback test method and device for high-simulation securities trade trading system | |
CN111767350B (en) | Data warehouse testing method, device, terminal equipment and storage medium | |
US20190114246A1 (en) | Method for replicating production behaviours in a development environment | |
CN105068935B (en) | Method and device for processing software test result | |
CN114489766A (en) | A method, device, medium and device for verifying version information of an on-board controller | |
CN115328784A (en) | Agile interface-oriented automatic testing method and system | |
CN109284331B (en) | Certificate making information acquisition method based on service data resources, terminal equipment and medium | |
CN113971031A (en) | Software package dependency relationship checking method and device | |
CN107632909B (en) | Method and system for automatically testing device functions | |
CN112486841B (en) | Method and device for verifying buried point acquisition data | |
CN112632330A (en) | Method and device for routing inspection of ATM equipment, computer equipment and storage medium | |
CN115550206A (en) | Automatic point inspection method and system for vehicle-mounted Ethernet service | |
CN114297074A (en) | Method for realizing automatic testing of functions, interfaces and performances based on dynamic configuration | |
CN117973361A (en) | Method and system for analyzing DSA (digital subscriber line) log of vehicle-mounted electronic control unit | |
CN110851323A (en) | Data backup method and device and electronic equipment | |
CN111240882B (en) | Method and system for detecting abnormal state | |
JP2005276040A (en) | Degrade confirming examining method and system, and program for the same | |
CN116680106A (en) | Abnormality locating method, device, equipment and storage medium | |
CN116932379A (en) | Page multidimensional detection method and system based on puppeter | |
CN110618943B (en) | Security service test method and device, electronic equipment and readable storage medium | |
CN105765908B (en) | A kind of multi-site automatic update method, client and system | |
CN111930606B (en) | Automatic generation method and related device for data processing flow test report | |
CN112131611A (en) | Data correctness verification method, device, equipment, system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |