技术领域Technical Field
本发明涉及车载设备技术领域,特别是涉及一种用于车载智能天线设备的可靠性测试方法及系统。The present invention relates to the technical field of vehicle-mounted equipment, and in particular to a reliability testing method and system for vehicle-mounted intelligent antenna equipment.
背景技术Background technique
5G车载智能天线(Telematics Connectivity Antenna Module,TCAM)设备作为5G与车联网结合的新兴产品,集中了最新的5G通讯技术、车载高速以太网技术,并融和了传统的车载WIFI无线热点功能,其所含技术均较前沿且功能配置丰富,因市场无对应产品形态,其中所含的5G驻网检测、WIFI互通性检测、车载以太网互通性检测、时钟同步等给常规的可靠性测试带来挑战。常规的可靠性测试中,单纯使用功能轮询自动化方式进行可靠性试验,在5GTCAM设备产品形态中,会导致5G驻网形态维持不变,一旦产生测试错误,则后序测试无法正常进行,有测试配置的依赖性;且WIFI和车载以太网(Physical,PHY)的驱动加载状态也会保持不变,则如果时钟同步错乱,后序实验也无法得到精准的结果。As an emerging product combining 5G and IoV, 5G vehicle-mounted intelligent antenna (Telematics Connectivity Antenna Module, TCAM) equipment integrates the latest 5G communication technology, vehicle-mounted high-speed Ethernet technology, and integrates the traditional vehicle-mounted WIFI wireless hotspot function. Its technologies are cutting-edge and its functional configuration is rich. Since there is no corresponding product form in the market, the 5G network detection, WIFI interoperability detection, vehicle-mounted Ethernet interoperability detection, clock synchronization, etc. contained in it bring challenges to conventional reliability testing. In conventional reliability testing, reliability tests are conducted using only functional polling automation. In the 5GTCAM device product form, the 5G network form will remain unchanged. Once a test error occurs, the subsequent test cannot be carried out normally, and there is a dependency on the test configuration; and the driver loading status of WIFI and vehicle-mounted Ethernet (Physical, PHY) will also remain unchanged. If the clock synchronization is disordered, the subsequent experiment will not be able to obtain accurate results.
发明内容Summary of the invention
鉴于上述技术问题,提出了一种解决上述问题或者至少部分解决上述问题的用于车载智能天线设备的可靠性测试方法及系统。In view of the above technical problems, a reliability testing method and system for a vehicle-mounted smart antenna device are proposed to solve the above problems or at least partially solve the above problems.
本发明第一方面的一个目的是要提供一种用于车载智能天线设备的可靠性测试方法,以便对TCAM设备进行自动化测试遍历循环实验,从而达到验证TCAM设备软硬件功能可靠性的目的。An object of the first aspect of the present invention is to provide a reliability testing method for a vehicle-mounted smart antenna device, so as to perform an automated test traversal cycle experiment on the TCAM device, thereby achieving the purpose of verifying the reliability of the software and hardware functions of the TCAM device.
本发明第一方面的一个进一步的目的是要解耦新一轮的自动化实验基础与上一轮的测试环境,从而提高测试过程的稳定性和测试结果的准确性。A further object of the first aspect of the present invention is to decouple a new round of automated experimental basis from the previous round of test environment, thereby improving the stability of the test process and the accuracy of the test results.
本发明第二方面的一个目的要提供一种用于车载智能天线设备的可靠性测试系统。An object of the second aspect of the present invention is to provide a reliability testing system for a vehicle-mounted smart antenna device.
特别地,根据本发明的第一方面,本发明提供了一种用于车载智能天线设备的可靠性测试方法,车载智能天线设备经由休眠唤醒模块连接至个人计算机,该方法包括:In particular, according to a first aspect of the present invention, the present invention provides a reliability testing method for a vehicle-mounted smart antenna device, wherein the vehicle-mounted smart antenna device is connected to a personal computer via a sleep wake-up module, the method comprising:
在车载智能天线设备、休眠唤醒模块以及个人计算机上电后,通过车载智能天线设备开始运行可靠性测试脚本,以对车载智能天线设备执行可靠性测试检查项;After the vehicle-mounted smart antenna device, the sleep and wake-up module, and the personal computer are powered on, the reliability test script is started to be run through the vehicle-mounted smart antenna device to perform reliability test check items on the vehicle-mounted smart antenna device;
在持续上电第一预设时长后,对休眠唤醒模块进行下电,以控制车载智能天线设备与个人计算机断开连接,使车载智能天线设备进入休眠状态;After the power-on is continuously turned on for a first preset time, the sleep wake-up module is powered off to control the vehicle-mounted smart antenna device to be disconnected from the personal computer, so that the vehicle-mounted smart antenna device enters a sleep state;
在持续下电第二预设时长后,对休眠唤醒模块进行上电,以控制车载智能天线设备与个人计算机进入连接状态,使车载智能天线设备被唤醒;After the power is continuously turned off for a second preset time, the sleep wake-up module is powered on to control the vehicle-mounted smart antenna device and the personal computer to enter a connection state, so that the vehicle-mounted smart antenna device is awakened;
以第一预设时长与第二预设时长之和为循环周期,对休眠唤醒模块进行周期性下电和上电,以定时休眠、唤醒车载智能天线设备;The sum of the first preset time and the second preset time is used as a cycle period, and the sleep and wake-up module is periodically powered off and on to time the sleep and wake-up of the vehicle-mounted smart antenna device;
其中,在车载智能天线设备每次进入休眠状态时,通过可靠性测试脚本将可靠性测试检查项均重置为初始状态,且在车载智能天线设备每次被唤醒后,均又开始运行可靠性测试脚本。Each time the vehicle-mounted smart antenna device enters a dormant state, the reliability test check items are reset to an initial state through a reliability test script, and each time the vehicle-mounted smart antenna device is awakened, the reliability test script is run again.
可选地,在每一个循环周期内,前述方法包括:Optionally, in each cycle, the method includes:
在车载智能天线设备进入休眠状态时,在车载智能天线设备的内核日志中打印休眠唤醒标志位;When the vehicle-mounted smart antenna device enters the sleep state, the sleep wake-up flag is printed in the kernel log of the vehicle-mounted smart antenna device;
在车载智能天线设备被唤醒后,通过可靠性测试脚本,从内核日志中获取休眠唤醒标志位;After the vehicle-mounted smart antenna device is awakened, the sleep wake-up flag is obtained from the kernel log through the reliability test script;
检查车载智能天线设备的休眠唤醒标志位配置文件中是否记录有休眠唤醒标志位;Check whether the sleep wake-up flag is recorded in the sleep wake-up flag configuration file of the vehicle-mounted smart antenna device;
若休眠唤醒标志位配置文件中未记录休眠唤醒标志位,基于车载智能天线设备的SD卡路径判断车载智能天线设备是主设备还是从设备;If the sleep wake-up flag is not recorded in the sleep wake-up flag configuration file, determine whether the vehicle-mounted smart antenna device is a master device or a slave device based on the SD card path of the vehicle-mounted smart antenna device;
若车载智能天线设备为主设备,则控制主设备运行主设备逻辑,以对主设备执行可靠性测试检查项,并在执行完毕后,将休眠唤醒标志位写入休眠唤醒标志位配置文件中;If the vehicle-mounted intelligent antenna device is the master device, the master device is controlled to run the master device logic to perform reliability test check items on the master device, and after the execution is completed, the sleep wake-up flag is written into the sleep wake-up flag configuration file;
若车载智能天线设备为从设备,则控制从设备运行从设备逻辑,以对从设备执行可靠性测试检查项,并在执行完毕后,将休眠唤醒标志位写入休眠唤醒标志位配置文件中。If the vehicle-mounted smart antenna device is a slave device, the slave device is controlled to run the slave device logic to perform reliability test check items on the slave device, and after the execution is completed, the sleep wake-up flag is written into the sleep wake-up flag configuration file.
可选地,基于车载智能天线设备的SD卡路径判断车载智能天线设备是主设备还是从设备,包括:Optionally, judging whether the vehicle-mounted smart antenna device is a master device or a slave device based on the SD card path of the vehicle-mounted smart antenna device includes:
通过可靠性测试脚本检查车载智能天线设备的SD卡路径下是否存在从设备标志位文件;Use the reliability test script to check whether there is a slave device flag file in the SD card path of the vehicle-mounted smart antenna device;
若SD卡路径下不存在从设备标志位文件,判断车载智能天线设备为主设备;If there is no slave device flag file in the SD card path, the vehicle-mounted smart antenna device is determined to be the master device;
若SD卡路径下存在从设备标志位文件,判断车载智能天线设备为从设备。If there is a slave device flag file in the SD card path, it is determined that the vehicle-mounted smart antenna device is a slave device.
可选地,控制主设备运行主设备逻辑,包括:Optionally, controlling the master device to run the master device logic includes:
通过可靠性测试脚本调用测试程序,并在运行测试程序过程中,对主设备执行以下可靠性测试检查项:The reliability test script calls the test program, and during the test program execution, the following reliability test check items are performed on the main device:
进行数据业务拨号;Perform data service dialing;
进行网络时间同步;Perform network time synchronization;
进行网络模式检查,将对应的第一测试结果加时间戳后,记录至第一日志文件;Perform a network mode check, add a timestamp to the corresponding first test result, and record it in a first log file;
进行数据业务PING检查,将对应的第二测试结果加时间戳后,记录至第二日志文件;Perform a data service PING check, add a timestamp to the corresponding second test result, and record it in a second log file;
启动并设置WIFI热点,将对应的第三测试结果加时间戳后,记录至第三日志文件;Start and set up a WIFI hotspot, add a timestamp to the corresponding third test result, and record it in a third log file;
进行车载以太网业务PING检查,将对应的第四测试结果加时间戳后,记录至第四日志文件。Perform a PING check on the in-vehicle Ethernet service, add a timestamp to the corresponding fourth test result, and record it in the fourth log file.
可选地,进行数据业务拨号,包括:Optionally, data service dialing is performed, including:
检查主设备是否已注册5G网络;Check whether the main device has registered the 5G network;
若已注册,则直接进行数据业务拨号,并在拨号后进行下一步动作;If it has been registered, the data service dial-up is performed directly, and the next step is performed after dialing;
若未注册,则以第三预设时长为周期,循环检查主设备是否已注册5G网络,并在循环检查次数达到第一预设次数后进行下一步动作。If not registered, the main device is cyclically checked to see if it has registered the 5G network with a third preset time period as a cycle, and the next step is taken after the number of cyclic checks reaches the first preset number of times.
可选地,进行网络时间同步,包括:Optionally, perform network time synchronization, including:
检查主设备的数据业务是否已经可用;Check whether the data service of the main device is available;
若已可用,则直接进行网络时间同步,并在同步后进行下一步动作;If it is available, the network time is directly synchronized, and the next step is taken after synchronization;
若不可用,则以第四预设时长为周期,循环检查主设备的数据业务是否已经可用,并在循环检查次数达到第二预设次数后进行下一步动作。If it is not available, a fourth preset time length is used as a period to cyclically check whether the data service of the main device is available, and the next step is performed after the number of cyclic checks reaches a second preset number of times.
可选地,控制从设备运行从设备逻辑,包括:Optionally, control the slave device to run the slave device logic, including:
通过可靠性测试脚本调用测试程序,并在运行测试程序过程中,对从设备执行以下可靠性测试检查项:The reliability test script calls the test program, and during the test program execution, the following reliability test check items are performed on the slave device:
配置从设备的车载以太网地址;Configure the onboard Ethernet address of the slave device;
进行第五预设时长的超时后,将从设备连接至主设备的WIFI热点;After the fifth preset time has expired, the slave device is connected to the WIFI hotspot of the master device;
进行网络时间同步;Perform network time synchronization;
进行WIFI业务PING检查,将对应的第五测试结果加时间戳后,记录至第五日志文件;Perform a WIFI service PING check, add a timestamp to the corresponding fifth test result, and record it in the fifth log file;
进行车载以太网业务PING检查,将对应的第六测试结果加时间戳后,记录至第六日志文件。Perform a PING check on the in-vehicle Ethernet service, add a timestamp to the corresponding sixth test result, and record it in the sixth log file.
可选地,进行网络时间同步,包括:Optionally, perform network time synchronization, including:
检查从设备的数据业务是否已经可用;Check whether the data service of the slave device is available;
若已可用,则直接进行网络时间同步,并在同步后进行下一步动作;If it is available, the network time is directly synchronized, and the next step is taken after synchronization;
若不可用,则以第五预设时长为周期,循环检查从设备的数据业务是否已经可用,并在循环检查次数达到第三预设次数后进行下一步动作。If it is not available, a fifth preset time length is used as a period to cyclically check whether the data service of the slave device is available, and the next step is performed after the number of cyclic checks reaches the third preset number of times.
根据本发明的第二方面,还提供了一种用于车载智能天线设备的可靠性测试系统,包括:休眠唤醒模块以及经由休眠唤醒模块连接在一起的车载智能天线设备和个人计算机;其中According to a second aspect of the present invention, a reliability test system for a vehicle-mounted smart antenna device is also provided, comprising: a sleep-wake-up module and a vehicle-mounted smart antenna device and a personal computer connected together via the sleep-wake-up module;
车载智能天线设备包括控制器,控制器用于执行前述中任一项的用于车载智能天线设备的可靠性测试方法。The vehicle-mounted smart antenna device comprises a controller, and the controller is used to execute any one of the aforementioned reliability testing methods for the vehicle-mounted smart antenna device.
可选地,休眠唤醒模块设置为可编程继电器。Optionally, the sleep wake-up module is configured as a programmable relay.
本发明通过对休眠唤醒模块进行周期性下电和上电,以定时休眠唤醒TCAM设备,从而对TCAM设备进行自动化测试遍历循环实验,达到了验证TCAM设备软硬件功能可靠性的目的。并且,在TCAM设备每次休眠后,均会通过可靠性测试脚本将可靠性测试检查项均重置为初始状态,在TCAM设备每次被唤醒后,均又开始运行可靠性测试脚本,以重新执行可靠性测试检查项,使得新一轮的自动化实验基础不与上一轮的测试环境耦合,从而提高测试过程的稳定性和测试结果的准确性。The present invention periodically powers off and on the sleep and wake-up module to periodically sleep and wake up the TCAM device, thereby performing an automated test traversal cycle experiment on the TCAM device, thereby achieving the purpose of verifying the reliability of the software and hardware functions of the TCAM device. In addition, after each sleep of the TCAM device, the reliability test check items are reset to the initial state through the reliability test script, and after each wake-up of the TCAM device, the reliability test script is started again to re-execute the reliability test check items, so that the basis of a new round of automated experiments is not coupled with the test environment of the previous round, thereby improving the stability of the test process and the accuracy of the test results.
根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
后文将参照附图以示例性而非限制性的方式详细描述本发明的一些具体实施例。附图中相同的附图标记标示了相同或类似的部件或部分。本领域技术人员应该理解,这些附图未必是按比例绘制的。附图中:Hereinafter, some specific embodiments of the present invention will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:
图1是根据本发明一个实施例的用于车载智能天线设备的可靠性测试系统的示意性框图;FIG1 is a schematic block diagram of a reliability testing system for a vehicle-mounted smart antenna device according to an embodiment of the present invention;
图2是根据本发明一个实施例的用于车载智能天线设备的可靠性测试方法的示意性流程图;FIG2 is a schematic flow chart of a reliability testing method for a vehicle-mounted smart antenna device according to an embodiment of the present invention;
图3是根据本发明一个实施例的用于车载智能天线设备的可靠性测试方法的示意性详细流程图。FIG3 is a schematic detailed flow chart of a reliability testing method for a vehicle-mounted smart antenna device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
图1是根据本发明一个实施例的用于车载智能天线设备110的可靠性测试系统100的示意性框图。参见图1,可靠性测试系统100可以包括:休眠唤醒模块120、车载智能天线(Telematics Connectivity Antenna Module,TCAM)设备110、个人计算机(PersonalComputer,PC)130。Fig. 1 is a schematic block diagram of a reliability test system 100 for a vehicle-mounted smart antenna device 110 according to an embodiment of the present invention. Referring to Fig. 1 , the reliability test system 100 may include: a sleep wake-up module 120, a vehicle-mounted smart antenna (Telematics Connectivity Antenna Module, TCAM) device 110, and a personal computer (PC) 130.
在该实施例中,TCAM设备110和PC 130可以经由休眠唤醒模块120连接在一起,也就是说,休眠唤醒模块120设置在TCAM设备110与PC 130之间。具体的,休眠唤醒模块120可以通过USB线分别与TCAM设备110和PC130连接在一起。In this embodiment, the TCAM device 110 and the PC 130 can be connected together via the sleep wake-up module 120, that is, the sleep wake-up module 120 is arranged between the TCAM device 110 and the PC 130. Specifically, the sleep wake-up module 120 can be connected to the TCAM device 110 and the PC 130 respectively through a USB cable.
休眠唤醒模块120可配置为周期性下电和上电,以定时休眠唤醒TCAM设备110。这里可以按照预设周期进行下电和上电的循环。预设周期为每一循环周期内持续上电的第一预设时长与持续下电的第二预设时长之和。第一预设时长优选为略大于第二预设时长。具体的,可根据实际应用需求设置,例如,可设置第一预设时长为3分钟,第二预设时长30秒,即TCAM设备110与PC 130的连接为断开30秒,连接3分钟,并按此周期一直循环。The sleep and wake-up module 120 can be configured to periodically power off and on to periodically sleep and wake up the TCAM device 110. Here, the power-off and power-on cycle can be performed according to a preset period. The preset period is the sum of the first preset duration of continuous power-on and the second preset duration of continuous power-off in each cycle. The first preset duration is preferably slightly greater than the second preset duration. Specifically, it can be set according to actual application requirements. For example, the first preset duration can be set to 3 minutes and the second preset duration can be set to 30 seconds, that is, the connection between the TCAM device 110 and the PC 130 is disconnected for 30 seconds and connected for 3 minutes, and this cycle is repeated.
在测试角度来看,TCAM设备110可以是主设备110,也可以是从设备110。在对TCAM设备110进行可靠性测试过程中,可以对主设备110或从设备110进行可靠性测试,还可以对主设备110以及从设备110进行同步的可靠性测试。From a testing perspective, the TCAM device 110 can be a master device 110 or a slave device 110. During the reliability test of the TCAM device 110, the reliability test can be performed on the master device 110 or the slave device 110, and the master device 110 and the slave device 110 can also be synchronously tested for reliability.
TCAM设备110内部可集成有多种网络模块。例如,WIFI模块111、5G通信模块112、和/或车载以太网(Physical,PHY)模块113等。示意性的,在主设备110以及从设备110均集成有WIFI模块111、5G通信模块112和PHY模块113时,主设备110的WIFI模块111与从设备110的WIFI模块111可通过2.4G/5G wifi链路连接。主设备110的5G通信模块112与从设备110的5G通信模块112可分别通过5G通讯链路连接至5G基站200。主设备110的PHY模块113与从设备110的PHY模块113可通过物理双绞线连接。A variety of network modules may be integrated inside the TCAM device 110. For example, a WIFI module 111, a 5G communication module 112, and/or an in-vehicle Ethernet (Physical, PHY) module 113, etc. Schematically, when the master device 110 and the slave device 110 are both integrated with a WIFI module 111, a 5G communication module 112 and a PHY module 113, the WIFI module 111 of the master device 110 and the WIFI module 111 of the slave device 110 may be connected via a 2.4G/5G wifi link. The 5G communication module 112 of the master device 110 and the 5G communication module 112 of the slave device 110 may be connected to the 5G base station 200 via a 5G communication link, respectively. The PHY module 113 of the master device 110 and the PHY module 113 of the slave device 110 may be connected via a physical twisted pair.
此外,在对主设备110以及从设备110进行主从同步可靠性测试时,主设备110和从设备110可分别通过USB线经由休眠唤醒模块120串联至PC 130。测试开始后,PC 130、主设备110以及从设备110均配置为长上电,休眠唤醒模块120配置为周期性下电和上电,以定时断开和连接主设备110、从设备110的USB,从而使主设备110、从设备110进行短暂休眠后唤醒,主设备110、从设备110同时被唤醒后,时钟会再次同步,5G网络会再次驻网,WIFI和PHY的驱动也会再次加载,从而新一轮的自动化实验基础不与上一轮的测试环境耦合,从而提高测试过程的稳定性和测试结果的准确性。In addition, when the master-slave synchronization reliability test is performed on the master device 110 and the slave device 110, the master device 110 and the slave device 110 can be connected in series to the PC 130 via the USB cable via the sleep wake-up module 120. After the test starts, the PC 130, the master device 110 and the slave device 110 are configured to be powered on for a long time, and the sleep wake-up module 120 is configured to be powered off and powered on periodically to disconnect and connect the USB of the master device 110 and the slave device 110 at a time, so that the master device 110 and the slave device 110 are awakened after a short sleep. After the master device 110 and the slave device 110 are awakened at the same time, the clock will be synchronized again, the 5G network will be stationed again, and the WIFI and PHY drivers will be loaded again, so that the basis of the new round of automated experiments is not coupled with the test environment of the previous round, thereby improving the stability of the test process and the accuracy of the test results.
为了方便控制TCAM设备110的定时休眠和唤醒,在一些实施例中,休眠唤醒模块120可设置为继电器。继电器优选为可编程继电器。通过可编程继电器可以方便控制TCAM设备110的休眠唤醒,从而简化控制逻辑,提高控制效率。In order to facilitate the control of the scheduled sleep and wake-up of the TCAM device 110, in some embodiments, the sleep and wake-up module 120 can be set as a relay. The relay is preferably a programmable relay. The sleep and wake-up of the TCAM device 110 can be conveniently controlled by the programmable relay, thereby simplifying the control logic and improving the control efficiency.
进一步的,TCAM设备110可以包括控制器。控制器可用于执行下述任意一个实施例或多个实施例的组合的用于车载智能天线设备110的可靠性测试方法。Furthermore, the TCAM device 110 may include a controller. The controller may be used to execute the reliability testing method for the vehicle-mounted smart antenna device 110 of any one or a combination of the following embodiments.
图2是根据本发明一个实施例的用于车载智能天线设备110的可靠性测试方法的示意性流程图。该实施例的可靠性测试方法可应用于前述实施例中的可靠性测试系统100。参见图2,可靠性测试方法可包括步骤S202至步骤S208。Fig. 2 is a schematic flow chart of a reliability test method for a vehicle-mounted smart antenna device 110 according to an embodiment of the present invention. The reliability test method of this embodiment can be applied to the reliability test system 100 in the above-mentioned embodiment. Referring to Fig. 2, the reliability test method may include steps S202 to S208.
步骤S202,在TCAM设备110、休眠唤醒模块120以及PC 130上电后,通过TCAM设备110开始运行可靠性测试脚本,以对TCAM设备110执行可靠性测试检查项。Step S202 , after the TCAM device 110 , the sleep/wake-up module 120 , and the PC 130 are powered on, the reliability test script is started to be run through the TCAM device 110 to perform reliability test check items on the TCAM device 110 .
步骤S204,在持续上电第一预设时长后,对休眠唤醒模块120进行下电,以控制TCAM设备110与PC 130断开连接,使TCAM设备110进入休眠状态。Step S204 , after being powered on for a first preset time period, the sleep and wake-up module 120 is powered off to control the TCAM device 110 to be disconnected from the PC 130 , so that the TCAM device 110 enters a sleep state.
步骤S206,在持续下电第二预设时长后,对休眠唤醒模块120进行上电,以控制TCAM设备110与PC 130进入连接状态,使TCAM设备110被唤醒。Step S206 , after the power is turned off for the second preset time period, the sleep awakening module 120 is powered on to control the TCAM device 110 and the PC 130 to enter a connection state, so that the TCAM device 110 is awakened.
步骤S208,以第一预设时长与第二预设时长之和为循环周期,对休眠唤醒模块120进行周期性下电和上电,以定时休眠、唤醒TCAM设备110。其中,在TCAM设备110每次进入休眠状态时,均通过可靠性测试脚本将可靠性测试检查项均重置为初始状态,且在TCAM设备110每次被唤醒后,均又开始运行可靠性测试脚本。Step S208, with the sum of the first preset time and the second preset time as the cycle period, the sleep and wake-up module 120 is periodically powered off and on to regularly sleep and wake up the TCAM device 110. Each time the TCAM device 110 enters the sleep state, the reliability test check items are reset to the initial state through the reliability test script, and each time the TCAM device 110 is woken up, the reliability test script is started again.
本发明实施例通过对休眠唤醒模块120进行周期性下电和上电,以定时休眠唤醒TCAM设备110,从而对TCAM设备110进行自动化测试遍历循环实验,达到了验证TCAM设备110软硬件功能可靠性的目的。并且,在TCAM设备110每次休眠后,均会通过可靠性测试脚本将可靠性测试检查项均重置为初始状态,在TCAM设备110每次被唤醒后,均又开始运行可靠性测试脚本,以重新执行可靠性测试检查项,使得新一轮的自动化实验基础不与上一轮的测试环境耦合,从而提高测试过程的稳定性和测试结果的准确性。The embodiment of the present invention periodically powers off and on the sleep and wake-up module 120 to periodically sleep and wake up the TCAM device 110, thereby performing an automated test traversal cycle experiment on the TCAM device 110, thereby achieving the purpose of verifying the reliability of the software and hardware functions of the TCAM device 110. In addition, after each sleep of the TCAM device 110, the reliability test check items are reset to the initial state through the reliability test script, and after each wake-up of the TCAM device 110, the reliability test script is started to run again to re-execute the reliability test check items, so that the new round of automated experiment foundation is not coupled with the previous round of test environment, thereby improving the stability of the test process and the accuracy of the test results.
在一些实施例中,可靠性测试检查项可包括数据业务拨号、网络时间同步、网络模式检查、数据业务PING检查、WIFI服务设置、PHY业务PING检查等的任一种或多种。In some embodiments, the reliability test check items may include any one or more of data service dialing, network time synchronization, network mode check, data service PING check, WIFI service setting, PHY service PING check, etc.
在每一循环周期内,在TCAM设备110进入休眠状态时,可以在TCAM设备110的内核日志中打印休眠唤醒标志位,然后在TCAM设备110被唤醒后,通过可靠性测试脚本,从内核日志中获取打印的休眠唤醒标志位,进而检查TCAM设备110的休眠唤醒标志位配置文件中是否记录有该休眠唤醒标志位。若休眠唤醒标志位配置文件中未记录休眠唤醒标志位,则基于TCAM设备110的SD卡路径判断TCAM设备110是主设备110还是从设备110,若TCAM设备110为主设备110,则控制主设备110运行主设备逻辑,以便对主设备110执行可靠性测试检查项,并在执行完毕后,将休眠唤醒标志位写入休眠唤醒标志位配置文件中。若TCAM设备110为从设备110,则控制从设备110运行从设备逻辑,以便对从设备110执行可靠性测试检查项,并在执行完毕后,将休眠唤醒标志位写入休眠唤醒标志位配置文件中。采用本实施例,能够确定出当前被唤醒的TCAM设备110是主设备110还是从设备110,进而对主设备110执行主设备逻辑,对从设备110执行从设备逻辑,有效提升了可靠性测试的针对性,避免测试出错影响测试结果的精确性。In each cycle, when the TCAM device 110 enters the sleep state, the sleep wake-up flag can be printed in the kernel log of the TCAM device 110, and then after the TCAM device 110 is awakened, the printed sleep wake-up flag is obtained from the kernel log through the reliability test script, and then the sleep wake-up flag configuration file of the TCAM device 110 is checked whether the sleep wake-up flag is recorded. If the sleep wake-up flag is not recorded in the sleep wake-up flag configuration file, it is determined whether the TCAM device 110 is a master device 110 or a slave device 110 based on the SD card path of the TCAM device 110. If the TCAM device 110 is the master device 110, the master device 110 is controlled to run the master device logic so as to perform the reliability test check item on the master device 110, and after the execution is completed, the sleep wake-up flag is written into the sleep wake-up flag configuration file. If the TCAM device 110 is a slave device 110, the slave device 110 is controlled to run the slave device logic so as to perform the reliability test check item on the slave device 110, and after the execution is completed, the sleep wake-up flag is written into the sleep wake-up flag configuration file. By adopting this embodiment, it is possible to determine whether the currently awakened TCAM device 110 is a master device 110 or a slave device 110, and then execute the master device logic on the master device 110 and the slave device logic on the slave device 110, thereby effectively improving the targetedness of the reliability test and avoiding test errors that affect the accuracy of the test results.
进一步的,在多个循环周期内,TCAM设备110每次进入休眠状态时,均可在TCAM设备110的内核日志中打印一个休眠唤醒标志位。也就是说,在TCAM设备110被唤醒后,当TCAM设备110下一次休眠后,内核日志中将会打印新的休眠唤醒标志位,从而TCAM设备110下一次被唤醒后,新的休眠唤醒标志位必然不会出现在休眠唤醒标志位配置文件中,从而TCAM设备110又开始执行可靠性检查项,如此即可实现对TCAM设备110的自动化循环测试试验。Furthermore, in multiple cycles, each time the TCAM device 110 enters the sleep state, a sleep wakeup flag may be printed in the kernel log of the TCAM device 110. That is, after the TCAM device 110 is awakened, when the TCAM device 110 goes to sleep next time, a new sleep wakeup flag will be printed in the kernel log, so that after the TCAM device 110 is awakened next time, the new sleep wakeup flag will definitely not appear in the sleep wakeup flag configuration file, so that the TCAM device 110 starts to execute the reliability check item again, so that the automated cycle test experiment of the TCAM device 110 can be realized.
需要说明的是,当主设备110和从设备110与PC 130均为连接状态时,主设备110和从设备110被同时唤醒,开始运行同一套可靠性测试脚本。It should be noted that when the master device 110 and the slave device 110 are both in a connected state with the PC 130 , the master device 110 and the slave device 110 are awakened at the same time and start to run the same set of reliability test scripts.
在一些实施例中,当基于TCAM设备110的SD卡路径判断TCAM设备110是主设备110还是从设备110时,可靠性测试脚本可以以TCAM设备110的SD路径下的从设备标志位文件或主设备标志位文件做二分判断。在以从设备标志位文件做二分判断时,可通过可靠性测试脚本检查TCAM设备110的SD卡路径下是否存在从设备标志位文件,如果SD卡路径下不存在从设备标志位文件,则可判断TCAM设备110为主设备110。反之,如果SD卡路径下存在从设备标志位文件,则可判断TCAM设备110为从设备110。In some embodiments, when determining whether the TCAM device 110 is a master device 110 or a slave device 110 based on the SD card path of the TCAM device 110, the reliability test script may make a binary determination based on the slave device flag file or the master device flag file under the SD path of the TCAM device 110. When making a binary determination based on the slave device flag file, the reliability test script may be used to check whether there is a slave device flag file under the SD card path of the TCAM device 110. If there is no slave device flag file under the SD card path, the TCAM device 110 may be determined to be a master device 110. Conversely, if there is a slave device flag file under the SD card path, the TCAM device 110 may be determined to be a slave device 110.
在一些进一步的实施例中,当控制主设备110运行主设备逻辑时,首先可通过可靠性测试脚本调用测试程序,并在运行测试程序过程中,对主设备110执行以下可靠性测试检查项:In some further embodiments, when the master device 110 is controlled to run the master device logic, the test program may be first called through the reliability test script, and during the running of the test program, the following reliability test check items may be performed on the master device 110:
进行数据业务拨号。在进行数据业务拨号过程中,可首先检查主设备110是否已注册5G网络,若已注册5G网络,则可直接进行数据业务拨号,并在拨号后进行下一步动作。若未注册5G网络,则可以第三预设时长为周期,循环检查主设备110是否已注册5G网络,并在循环检查次数达到第一预设次数后进行下一步动作,也就是说,循环检查次数达到第二预设次数后,无论是否已注册5G网络,均进行下一步动作。如此可保证测试继续向下进行,避免出现异常导致测试停止。第三预设时长和第一预设次数均可根据实际应用需求预设。例如,可设置第三预设时长为0.5秒,第一预设次数为60次。Perform data service dialing. During the data service dialing process, you can first check whether the main device 110 has registered the 5G network. If it has registered the 5G network, you can directly perform data service dialing and perform the next step after dialing. If the 5G network is not registered, the third preset time length can be used as a period to cyclically check whether the main device 110 has registered the 5G network, and perform the next step after the number of cyclic checks reaches the first preset number, that is, after the number of cyclic checks reaches the second preset number, regardless of whether the 5G network has been registered, the next step is performed. This ensures that the test continues to proceed and avoids abnormalities that cause the test to stop. The third preset time length and the first preset number of times can be preset according to actual application requirements. For example, the third preset time length can be set to 0.5 seconds, and the first preset number of times can be set to 60 times.
进行网络时间同步。在进行网络时间同步过程中,可检查主设备110的数据业务是否已可用,若已可用,则直接进行网络时间同步,并在同步后进行下一步动作。反之,若不可用,则以第四预设时长为周期,循环检查主设备110的数据业务是否已经可用,并在循环检查次数达到第二预设次数后进行下一步动作,也就是说,循环检查次数达到第二预设次数后,无论数据业务是否可用,均进行下一步动作。如此可保证测试继续向下进行,避免数据业务的异常导致测试异常,有利于提高测试的稳定性和测试结果的准确性。第四预设时长和第二预设次数均可根据实际应用需求预设。例如,可设置第四预设时长为0.5秒,第二预设次数为60次。Perform network time synchronization. During the network time synchronization process, it is possible to check whether the data service of the main device 110 is available. If it is available, the network time synchronization is performed directly, and the next step is performed after synchronization. On the contrary, if it is not available, the fourth preset time length is used as a period to cyclically check whether the data service of the main device 110 is available, and the next step is performed after the number of cyclic checks reaches the second preset number, that is, after the number of cyclic checks reaches the second preset number, the next step is performed regardless of whether the data service is available. This ensures that the test continues to proceed downward, avoids test abnormalities caused by abnormalities in the data service, and is beneficial to improving the stability of the test and the accuracy of the test results. The fourth preset time length and the second preset number of times can be preset according to actual application requirements. For example, the fourth preset time length can be set to 0.5 seconds, and the second preset number of times can be set to 60 times.
进行网络模式检查,将对应的第一测试结果加时间戳后,记录至第一日志文件。具体的,可通过network接口(网络接口)获取当前设备注册的网络模式并加时间戳后记录至第一日志文件。Perform a network mode check, add a timestamp to the corresponding first test result, and record it in the first log file. Specifically, the network mode registered by the current device can be obtained through the network interface (network interface) and recorded in the first log file after adding a timestamp.
进行数据业务PING检查,将对应的第二测试结果加时间戳后,记录至第二日志文件。具体的,通过PING外网网址(如8.8.8.8)获取PING网结果并加时间戳后记录至第二日志文件。Perform a data service PING check, add a timestamp to the corresponding second test result, and record it in the second log file. Specifically, obtain the PING network result by PINGing the external network address (such as 8.8.8.8) and record it in the second log file after adding a timestamp.
启动并设置WIFI热点,将对应的第三测试结果加时间戳后,记录至第三日志文件。Start and set the WIFI hotspot, add a timestamp to the corresponding third test result, and record it in the third log file.
进行PHY业务PING检查,将对应的第四测试结果加时间戳后,记录至第四日志文件。具体的,通过PING从设备110PHY地址(如198.18.32.16)获取PING网结果并加时间戳后记录至第四日志文件。Perform a PHY service PING check, add a timestamp to the corresponding fourth test result, and record it in the fourth log file. Specifically, obtain the PING network result through PING from the PHY address of the device 110 (such as 198.18.32.16) and add a timestamp to record it in the fourth log file.
需要说明的是,在进行以上可靠性测试检查项时,第一日志文件、第二日志文件、第三日志文件、第四日志文件均可被存放在主设备110的SD路径。可靠性测试阶段进行或整体完成后,可检查主设备110SD存储的第一日志文件、第二日志文件、第三日志文件、第四日志文件,进而可以通过时间戳+业务执行结果确认测试过程的每一个时间段中各业务的具体执行结果。It should be noted that when performing the above reliability test check items, the first log file, the second log file, the third log file, and the fourth log file can all be stored in the SD path of the main device 110. After the reliability test phase is carried out or completed as a whole, the first log file, the second log file, the third log file, and the fourth log file stored in the SD of the main device 110 can be checked, and then the specific execution results of each business in each time period of the test process can be confirmed through the timestamp + business execution result.
此外,为了方便存储以及后续检查,可使用指定字符对各日志文件进行命名,如可以stabilitytest.network.log作为第一日志文件名,以stabilitytest.data.log作为第二日志文件名,以stabilitytest.wifi_ap.log作为第三日志文件名,以stabilitytest.phy_server.log作为第四日志文件名。In addition, to facilitate storage and subsequent inspection, you can use specified characters to name each log file, such as stabilitytest.network.log as the first log file name, stabilitytest.data.log as the second log file name, stabilitytest.wifi_ap.log as the third log file name, and stabilitytest.phy_server.log as the fourth log file name.
在另一些进一步的实施例中,在控制从设备110运行从设备逻辑时,可首先通过可靠性测试脚本调用测试程序,并在运行测试程序过程中,对从设备110执行以下可靠性测试检查项:In some further embodiments, when controlling the slave device 110 to run the slave device logic, the test program may be first called through the reliability test script, and during the running of the test program, the following reliability test check items may be performed on the slave device 110:
配置从设备110的PHY地址。因为TCAM设备110开机时,会默认配置PHY地址,例如,默认配置PHY地址为198.18.32.17,此时,从测试角度来讲,主设备110默认PHY地址已经为198.18.32.17,因此需要每一轮测试开始时,将从设备110PHY地址重新配置为和默认配置不一样的地址,例如可配置从设备110的PHY地址为198.18.32.16。Configure the PHY address of the slave device 110. Because the PHY address will be configured by default when the TCAM device 110 is powered on, for example, the default configured PHY address is 198.18.32.17. At this time, from the test perspective, the default PHY address of the master device 110 is already 198.18.32.17. Therefore, at the beginning of each round of testing, the PHY address of the slave device 110 needs to be reconfigured to an address different from the default configuration, for example, the PHY address of the slave device 110 can be configured to 198.18.32.16.
进行第五预设时长的超时后,将从设备110连接至主设备110的WIFI热点。这里进行第五预设时长是为了等待主设备110WIFI热点建立成功,从而在主设备110WIFI热点建立成功后,将从设备110连接到主设备110的WIFI热点。After the fifth preset time expires, the slave device 110 is connected to the WIFI hotspot of the master device 110. The fifth preset time is performed here to wait for the master device 110 WIFI hotspot to be successfully established, so that after the master device 110 WIFI hotspot is successfully established, the slave device 110 is connected to the WIFI hotspot of the master device 110.
进行网络时间同步。具体的,可检查从设备110的数据业务是否已经可用,如果可用,则直接进行网络时间同步,并在同步后进行下一步动作,若不可用,则以第五预设时长为周期,循环检查从设备110的数据业务是否已经可用,并在循环检查次数达到第三预设次数后进行下一步动作,也就是说,当循环检查次数达到第三预设次数后,无论数据业务是否可用,均进行下一步。如此可保证测试继续向下进行,避免数据业务的异常导致测试异常,有利于提高测试的稳定性和测试结果的准确性。第五预设时长和第三预设次数均可根据实际应用需求预设。例如,可设置第五预设时长为0.5秒,第三预设次数为60次。Perform network time synchronization. Specifically, it is possible to check whether the data service of the slave device 110 is already available. If it is available, the network time synchronization is performed directly, and the next step is performed after synchronization. If it is not available, the fifth preset duration is used as a period to cyclically check whether the data service of the slave device 110 is already available, and the next step is performed after the number of cyclic checks reaches the third preset number. That is to say, when the number of cyclic checks reaches the third preset number, regardless of whether the data service is available, the next step is performed. In this way, it can be ensured that the test continues to proceed downward, and the abnormality of the data service is avoided, which leads to abnormal test, which is conducive to improving the stability of the test and the accuracy of the test results. The fifth preset duration and the third preset number of times can be preset according to actual application requirements. For example, the fifth preset duration can be set to 0.5 seconds, and the third preset number of times can be set to 60 times.
进行WIFI业务PING检查,将对应的第五测试结果加时间戳后,记录至第五日志文件。具体的,通过PING外网地址(如8.8.8.8)获取第五测试结果,然后以时间戳+第五测试结果的形式记录至第五日志文件。Perform a WIFI service PING check, add a timestamp to the corresponding fifth test result, and record it in the fifth log file. Specifically, obtain the fifth test result by PINGing the external network address (such as 8.8.8.8), and then record it in the fifth log file in the form of timestamp + fifth test result.
进行PHY业务PING检查,将对应的第六测试结果加时间戳后,记录至第六日志文件。具体的,通过PING从设备110的PHY地址(例如,198.18.32.16)获取第六测试结果,然后以时间戳+第六测试结果的形式记录至第六日志文件。Perform a PHY service PING check, add a timestamp to the corresponding sixth test result, and record it in the sixth log file. Specifically, obtain the sixth test result through PING from the PHY address of the device 110 (for example, 198.18.32.16), and then record it in the sixth log file in the form of timestamp + sixth test result.
需要说明的是,在进行以上可靠性测试检查项时,第五日志文件、第六日志文件均可被存放在从设备110的SD路径。可靠性测试阶段进行或整体完成后,可检查从设备110的SD存储的第五日志文件、第六日志文件,进而可以通过时间戳+业务执行结果确认测试过程的每一个时间段中各业务的具体执行结果。It should be noted that when performing the above reliability test check items, the fifth log file and the sixth log file can be stored in the SD path of the slave device 110. After the reliability test phase is carried out or completed as a whole, the fifth log file and the sixth log file stored in the SD of the slave device 110 can be checked, and then the specific execution results of each business in each time period of the test process can be confirmed through the timestamp + business execution result.
此外,为了方便存储以及后续检查,可使用指定字符对各日志文件进行命名,如可以stabilitytest.wifi_sta.log作为第五日志文件名,以stabilitytest.phy_slave.log作为第六日志文件名。In addition, to facilitate storage and subsequent inspection, each log file may be named using designated characters, such as stabilitytest.wifi_sta.log as the fifth log file name and stabilitytest.phy_slave.log as the sixth log file name.
为了能够更清楚了解本发明的技术手段,下面在本发明的一些可选实施例中对用于车载智能天线设备110的可靠性测试方法的具体实施方式进行详细介绍。在该实施例中,休眠唤醒模块120设置为可编程继电器120。In order to more clearly understand the technical means of the present invention, the specific implementation of the reliability test method for the vehicle-mounted smart antenna device 110 is described in detail in some optional embodiments of the present invention. In this embodiment, the sleep wake-up module 120 is configured as a programmable relay 120 .
图3是根据本发明一个实施例的用于车载智能天线设备110的可靠性测试方法的示意性详细流程图。参见图3,本实施例的用于车载智能天线设备110的可靠性测试方法可包括步骤S302至步骤S340。Fig. 3 is a schematic detailed flow chart of a reliability test method for a vehicle-mounted smart antenna device 110 according to an embodiment of the present invention. Referring to Fig. 3 , the reliability test method for a vehicle-mounted smart antenna device 110 of this embodiment may include steps S302 to S340.
步骤S302,对各单元进行上电,TCAM设备110开始运行可靠性测试脚本。其中,各单元为用于TCAM设备110的可靠性测试系统的各单元,包括TCAM设备110、可编程继电器120以及PC 130。Step S302 , each unit is powered on, and the TCAM device 110 starts to run the reliability test script. The units are units of the reliability test system for the TCAM device 110 , including the TCAM device 110 , the programmable relay 120 , and the PC 130 .
步骤S304,判断持续上电时长是否达到第一预设时长。若是,执行步骤S306;若否,继续执行步骤S304。Step S304, determine whether the continuous power-on time reaches a first preset time. If yes, execute step S306; if no, continue to execute step S304.
步骤S306,对可编程继电器120进行下电,控制TCAM设备110与PC 130断开连接,TCAM设备110进入休眠状态。Step S306 , power off the programmable relay 120 , control the TCAM device 110 to be disconnected from the PC 130 , and the TCAM device 110 enters a dormant state.
步骤S308,TCAM设备110休眠时,在TCAM设备110的内核日志中打印休眠唤醒标志位,并将可靠性测试检查项均重置为初始状态。Step S308 , when the TCAM device 110 is in sleep mode, a sleep/wake-up flag is printed in the kernel log of the TCAM device 110 , and all reliability test check items are reset to an initial state.
步骤S310,判断持续下电时长是否达到第二预设时长。若是,执行步骤S312;若否,继续执行步骤S310。Step S310, determining whether the continuous power-off duration reaches a second preset duration. If yes, executing step S312; if no, continuing to execute step S310.
步骤S312,对可编程继电器120进行上电,控制TCAM设备110与PC 130进入连接状态,TCAM设备110被唤醒。Step S312 , power on the programmable relay 120 , control the TCAM device 110 and the PC 130 to enter a connection state, and the TCAM device 110 is awakened.
步骤S314,TCAM设备110被唤醒后,TCAM设备110重新开始运行可靠性测试脚本。Step S314: After the TCAM device 110 is awakened, the TCAM device 110 restarts running the reliability test script.
步骤S316,从内核日志中读取新打印的休眠唤醒标志位,检查到休眠唤醒标志位配置文件中未记录该新的休眠唤醒标志位,执行步骤S318。Step S316, read the newly printed sleep wake-up flag from the kernel log, check that the sleep wake-up flag configuration file does not record the new sleep wake-up flag, and execute step S318.
步骤S318,检查TCAM设备110的SD卡路径下是否存在从设备标志位文件。若不存在,执行步骤S320;若存在,执行步骤S332。Step S318, check whether there is a slave device flag file in the SD card path of the TCAM device 110. If not, execute step S320; if so, execute step S332.
步骤S320,判定TCAM设备110为主设备110,通过可靠性测试脚本调用测试程序,进行数据业务拨号、同步网络时间动作。Step S320 , determining that the TCAM device 110 is the master device 110 , calling the test program through the reliability test script, and performing data service dialing and network time synchronization actions.
步骤S322,进行网络模式检查,将对应的第一测试结果加时间戳后,记录至第一日志文件。Step S322, perform a network mode check, add a timestamp to the corresponding first test result, and record it in a first log file.
步骤S324,进行数据业务PING检查,将对应的第二测试结果加时间戳后,记录至第二日志文件。Step S324, perform a data service PING check, add a timestamp to the corresponding second test result, and record it in the second log file.
步骤S326,启动并设置主设备110WIFI热点,将对应的第三测试结果加时间戳后,记录至第三日志文件。Step S326, start and set the WIFI hotspot of the main device 110, add a timestamp to the corresponding third test result, and record it in the third log file.
步骤S328,进行PHY业务PING检查,将对应的第四测试结果加时间戳后,记录至第四日志文件。Step S328, perform a PHY service PING check, add a timestamp to the corresponding fourth test result, and record it in a fourth log file.
步骤S330,等待各业务检查结束后,将该新打印的休眠唤醒标志位写入休眠唤醒标志位配置文件中。然后返回步骤S306,以进入下一轮休眠。Step S330, after waiting for each service check to be completed, the newly printed sleep wake-up flag is written into the sleep wake-up flag configuration file, and then the process returns to step S306 to enter the next sleep round.
步骤S332,判定TCAM设备110为从设备110,通过可靠性测试脚本调用测试程序,并进行第五预设时间的超时。Step S332 , determining that the TCAM device 110 is a slave device 110 , calling a test program through a reliability test script, and performing a timeout of a fifth preset time.
步骤S334,配置从设备110的PHY地址、对从设备110进行WIFI连接操作,将从设备110连接至主设备110的WIFI热点。Step S334 , configuring the PHY address of the slave device 110 , performing a WIFI connection operation on the slave device 110 , and connecting the slave device 110 to the WIFI hotspot of the master device 110 .
步骤S336,进行网络时间同步动作。Step S336, perform network time synchronization.
步骤S338,进行WIFI业务PING检查,将对应的第五测试结果加时间戳后,记录至第五日志文件。Step S338, perform a WIFI service PING check, add a timestamp to the corresponding fifth test result, and record it in the fifth log file.
步骤S340,进行PHY业务PING检查,将对应的第六测试结果加时间戳后,记录至第六日志文件。然后执行步骤S330。Step S340, perform a PHY service PING check, add a timestamp to the corresponding sixth test result, and record it in a sixth log file. Then execute step S330.
根据上述任意一个实施例或多个实施例的组合,本发明实施例能够达到如下有益效果:According to any one of the above embodiments or a combination of multiple embodiments, the embodiments of the present invention can achieve the following beneficial effects:
本发明实施例能够针对5G TCAM设备包含的5G驻网、PHY互相PING,车载WIFI热点及WIFI接入设备互相PING等核心功能进行主从设备同步自动化测试遍历循环实验。同时,针对驻网形态和时钟同步在长时间测试中可能发生异常而导致每轮测试结果耦合性强的问题,利用TCAM设备110的休眠唤醒机制,引入可编程继电器120定时断开和连接主从设备110的USB,从而使主从设备进行短暂休眠后唤醒,主从设备同时唤醒后,时钟会再次同步,5G网络会再次驻网,WIFI和PHY的驱动也会再次加载,从而新一轮的自动化实验基础不与上一轮的测试环境耦合,从而提高测试过程的稳定性和测试结果的准确性。The embodiment of the present invention can perform master-slave device synchronization automatic test traversal cycle experiments for core functions such as 5G network stationing, PHY mutual PING, vehicle-mounted WIFI hotspot and WIFI access device mutual PING, etc. included in the 5G TCAM device. At the same time, in order to solve the problem that the network stationing form and clock synchronization may be abnormal during long-term testing, resulting in strong coupling of each round of test results, the sleep and wake-up mechanism of the TCAM device 110 is used to introduce a programmable relay 120 to disconnect and connect the USB of the master and slave devices 110 at a time, so that the master and slave devices are awakened after a short sleep. After the master and slave devices are awakened at the same time, the clocks will be synchronized again, the 5G network will be stationed again, and the drivers of WIFI and PHY will be loaded again, so that the basis of a new round of automated experiments is not coupled with the test environment of the previous round, thereby improving the stability of the test process and the accuracy of the test results.
至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。At this point, those skilled in the art should recognize that, although multiple exemplary embodiments of the present invention have been shown and described in detail herein, many other variations or modifications that conform to the principles of the present invention can still be directly determined or derived based on the content disclosed in the present invention without departing from the spirit and scope of the present invention. Therefore, the scope of the present invention should be understood and identified as covering all such other variations or modifications.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110661964.0ACN113391936B (en) | 2021-06-15 | 2021-06-15 | Reliability test method and system for vehicle-mounted intelligent antenna equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110661964.0ACN113391936B (en) | 2021-06-15 | 2021-06-15 | Reliability test method and system for vehicle-mounted intelligent antenna equipment |
| Publication Number | Publication Date |
|---|---|
| CN113391936A CN113391936A (en) | 2021-09-14 |
| CN113391936Btrue CN113391936B (en) | 2024-07-02 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110661964.0AActiveCN113391936B (en) | 2021-06-15 | 2021-06-15 | Reliability test method and system for vehicle-mounted intelligent antenna equipment |
| Country | Link |
|---|---|
| CN (1) | CN113391936B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114827330A (en)* | 2022-03-15 | 2022-07-29 | 西安广和通无线通信有限公司 | Test system and test method |
| CN115576808A (en)* | 2022-09-28 | 2023-01-06 | 科东(广州)软件科技有限公司 | Automatic test system and method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111474865A (en)* | 2020-03-31 | 2020-07-31 | 北京经纬恒润科技有限公司 | Dormancy awakening test system for intelligent vehicle-mounted terminal controller |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102609356B (en)* | 2012-01-19 | 2014-12-10 | 福建升腾资讯有限公司 | Terminal product driver loading stability testing method |
| KR20130131959A (en)* | 2012-05-25 | 2013-12-04 | 삼성전자주식회사 | Method and apparatus for controlling dormancy mode in portable terminal |
| CN109257249A (en)* | 2018-08-20 | 2019-01-22 | 郑州云海信息技术有限公司 | A kind of network interface card stability test method, apparatus, terminal and storage medium |
| CN109921915B (en)* | 2019-01-08 | 2021-04-23 | 百富计算机技术(深圳)有限公司 | Method, device and electronic device for testing wake-up function of real-time clock module |
| CN111246200A (en)* | 2020-01-17 | 2020-06-05 | 四川长虹电器股份有限公司 | Automatic test method for awakening rate and false awakening of smart television |
| CN112463508B (en)* | 2020-11-13 | 2023-01-10 | 苏州浪潮智能科技有限公司 | Server dormancy state testing method, system, terminal and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111474865A (en)* | 2020-03-31 | 2020-07-31 | 北京经纬恒润科技有限公司 | Dormancy awakening test system for intelligent vehicle-mounted terminal controller |
| Publication number | Publication date |
|---|---|
| CN113391936A (en) | 2021-09-14 |
| Publication | Publication Date | Title |
|---|---|---|
| CN113391936B (en) | Reliability test method and system for vehicle-mounted intelligent antenna equipment | |
| US7987389B2 (en) | System and method for testing sleep and wake functions of computer | |
| WO2016090908A1 (en) | Memory simulation testing board system and testing method for embedded application of intelligent electric meter | |
| CN103179241A (en) | Method and system for automatically testing power consumption of mobile terminal | |
| CN110489287B (en) | Method, system and storage medium for testing hot plug through Ipomitool | |
| WO2016115801A1 (en) | Method and device for replaying user operation | |
| JP7493871B2 (en) | Electronic device and method for responding to a wake-up trigger - Patents.com | |
| CN111831495A (en) | Production automation testing method and system | |
| CN104317685A (en) | Starting method of calculator system | |
| CN114660436A (en) | Chip testing equipment and chip testing method | |
| CN111338698A (en) | A kind of method and system for BIOS to accurately guide server to start | |
| CN112599179B (en) | Parallel flash life testing device | |
| CN108121842A (en) | The verification method and device of the low energy consumption operation mode of multiprocessor system chip | |
| CN115494335A (en) | Wearable device function testing method and device, computer device and storage medium | |
| CN111338862A (en) | A GPU mode switching stability test method, system, terminal and storage medium | |
| CN112463508B (en) | Server dormancy state testing method, system, terminal and storage medium | |
| CN110990260B (en) | Automatic verification method and system for Extended APIC option function | |
| CN106603526B (en) | WiFi/hotspot starting method and device | |
| JP4940757B2 (en) | Mobile radio communication terminal, information collecting method and program when abnormality occurs | |
| CN113900875B (en) | Startup test method and device, computer equipment and storage medium | |
| CN101751064B (en) | Automatic start-up control system and method thereof | |
| CN115086997A (en) | Off-line testing method and device for T-BOX | |
| CN102567159B (en) | Memory detecting method | |
| CN118260131B (en) | Method and device for testing operation performance of expansion module | |
| CN114553737B (en) | Method and device for testing computer network wakeup and electronic equipment |
| 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 | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | Address after:Room 603, 6th Floor, No. 78 Shaxian Street East, Zhifang Street, Jiangxia District, Wuhan City, Hubei Province 430200 Patentee after:Hubei Liancheng Intelligent Technology Co.,Ltd. Country or region after:China Address before:C301, block C, main building, Zhongxing Industrial Park, No.10, Tangyan South Road, high tech Zone, Xi'an City, Shaanxi Province, 710000 Patentee before:Xi'an Liancheng Intelligent Technology Co.,Ltd. Country or region before:China | |
| CP03 | Change of name, title or address |