US 11,733,693 B2
Data acquisition method and apparatus
Houqiang Zhu, Beijing (CN); Pengfei Wei, Beijing (CN); Jia Song, Beijing (CN); and Jingang Yan, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed on Jun. 4, 2021, as Appl. No. 17/338,979.
Claims priority of application No. 202011500117.8 (CN), filed on Dec. 18, 2020.
Prior Publication US 2021/0294320 A1, Sep. 23, 2021
Int. Cl. G05D 1/00 (2006.01); G05D 1/02 (2020.01)
CPC G05D 1/0022 (2013.01) [G05D 1/028 (2013.01); G05D 1/0212 (2013.01); G05D 1/0285 (2013.01)] 14 Claims
OG exemplary drawing
 
1. A data acquisition method applied to a vehicle, the method comprising:
obtaining, by a processor of the vehicle, indication information sent by a server, the indication information comprising: a data type to be acquired during a driving process of the vehicle and at least one acquisition condition triggering an acquisition of data corresponding to the data type; and
according to the indication information, when a state of the vehicle meets any one of the at least one acquisition condition, automatically acquiring, by the processor of the vehicle, first data corresponding to the data type;
wherein the indication information is stored in a task table, and the task table has corresponding identification information; and
the obtaining, by the processor of the vehicle, indication information sent by a server comprises:
sending, by the processor of the vehicle, check information to the server according to a preset period, wherein the check information is used to determine whether identification information of a first task table of the server is consistent with identification information of a second task table of the vehicle acquired from the server and then stored in the vehicle, wherein the first task table is a latest task table;
when the identification information of the first task table is inconsistent with the identification information of the second task table, obtaining, by the processor of the vehicle, the first task table sent by the server,
when the first task table of the server is obtained successfully, deleting, by the processor of the vehicle, the second task table, and
when the first task table of the server fails to be obtained, repeatedly executing, by the processor of the vehicle, an operation of obtaining the first task table of the server, and when the repeated execution times reach a preset number and the first task table of the server still fails to be obtained, executing, by the processor of the vehicle, data acquisition according to the second task table;
wherein the first task table and the second task table both comprises at least one data acquisition task;
wherein the indication information further comprises: a weight corresponding to each of the at least one acquisition condition;
the method further comprises:
packaging, by the processor of the vehicle, at least one first data meeting the acquisition condition respectively to obtain at least one data packet, wherein each of the at least one data packet corresponds to its own acquisition condition;
when network strength of the vehicle is greater than or equal to a first threshold, sending, by the processor of the vehicle, each of the at least one data packet to the server; and
when the network strength of the vehicle is less than the first threshold, determining, by the processor of the vehicle, a target data packet according to the weight of the acquisition condition corresponding to each of the at least one data packet and sending, by the processor of the vehicle, the target data packet to the server.