CN111125436A - Data management method, device and system - Google Patents

Data management method, device and system Download PDF

Info

Publication number
CN111125436A
CN111125436A CN201811289487.4A CN201811289487A CN111125436A CN 111125436 A CN111125436 A CN 111125436A CN 201811289487 A CN201811289487 A CN 201811289487A CN 111125436 A CN111125436 A CN 111125436A
Authority
CN
China
Prior art keywords
time
data
difference information
server
zone
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.)
Granted
Application number
CN201811289487.4A
Other languages
Chinese (zh)
Other versions
CN111125436B (en
Inventor
许爱秋
刘锋
李海燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201811289487.4A priority Critical patent/CN111125436B/en
Priority to PCT/CN2019/114426 priority patent/WO2020088542A1/en
Publication of CN111125436A publication Critical patent/CN111125436A/en
Application granted granted Critical
Publication of CN111125436B publication Critical patent/CN111125436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/732Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Abstract

The invention discloses a data management method, a device and a system, and belongs to the field of data processing. The method comprises the following steps: receiving a data query request of a terminal, wherein the data query request carries an identifier of front-end equipment, a first starting time and a first ending time, the time types of the first starting time and the first ending time are standard time, and the standard time is the time type of the starting time and the ending time of data stored by a server; acquiring target data, first time difference information and starting time and ending time of the target data, wherein the target data, the first time difference information and the starting time and the ending time of the target data are acquired by the front-end equipment according to the identifier, the first starting time and the first ending time of the front-end equipment, and the first time difference information is used for indicating the time difference between the time zone time of the front-end equipment in the first time period and the standard time; and transmitting the target data, the first time difference information and the start time and the end time of the target data to the terminal. The invention can meet the data management requirements of the front-end equipment in a plurality of time zones.

Description

Data management method, device and system
Technical Field
The present invention relates to the field of data processing, and in particular, to a data management method, apparatus, and system.
Background
In the field of video monitoring and storage, a multi-time zone scenario may occur, for example, a terminal used by a user, a server for providing a storage service, or a front-end device for acquiring video data in multiple time zones, regardless of which multi-time zone scenario, data management requirements in the multi-time zone scenario may be generated.
Currently, in the related art, the Time when the server stores the video data is standard Time, i.e., UTC (Coordinated Universal Time) Time or Unix timestamp. When the front-end equipment and the server are in the same time zone and the terminal performs query operation on the video data collected by the front-end equipment, a user can input the start time and the end time of the query on the terminal, wherein the time types of the start time and the end time are the time zone time of the server. And the terminal converts the starting time and the ending time into standard time according to the time zone time of the server and sends a data query request to the server, so that the server returns the queried data to the terminal.
In the above scheme, the front-end device needs to be in the same time zone as the server, and the data management requirements of the front-end device in multiple time zones cannot be met.
Disclosure of Invention
The embodiment of the invention provides a data management method, a device and a system, which can solve the problem that the related technology can not meet the data management requirements of front-end equipment in multiple time zones. The technical scheme is as follows:
in a first aspect, a data management method is provided, the method including:
receiving a data query request of a terminal, wherein the data query request carries an identifier of a front-end device, a first start time and a first end time, the time types of the first start time and the first end time are standard times, and the standard times are the time types of the start time and the end time of data stored by the server;
acquiring target data, first time difference information and start time and end time of the target data, which are acquired by the front-end device, according to the identifier of the front-end device, the first start time and the first end time, wherein a time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used for indicating a time difference between a time zone time of the front-end device in the first time period and the standard time;
and sending the target data, the first time difference information and the start time and the end time of the target data to the terminal.
In one possible implementation manner, acquiring target data, first time difference information, and a start time and an end time of the target data, which are acquired by the front-end device, according to the identifier of the front-end device, the first start time, and the first end time includes:
inquiring the stored data segments, the time difference information corresponding to each data segment and the starting time and the ending time of each data segment according to the identifier of the front-end equipment, the first starting time and the first ending time;
and when the time period between the start time and the end time of any inquired data segment is included in the time period between the first start time and the first end time, using the inquired data segment as the target data, using the time difference information corresponding to the inquired data segment as the first time difference information, and using the start time and the end time of the inquired data segment as the start time and the end time of the target data.
In a possible implementation manner, before the receiving the data query request of the terminal, the method further includes:
receiving a time difference query request of the terminal, wherein the time difference query request carries an identifier of the front-end device, a third starting time and a third ending time, and the time types of the third starting time and the third ending time are time zone time of the front-end device;
acquiring second time difference information of the front-end device in a second time period, wherein the second time period is a time period between the third starting time and the third ending time, and the second time difference information is used for indicating a time difference between time zone time of the front-end device in the second time period and the standard time;
and sending the second time difference information to the terminal.
In one possible implementation manner, the obtaining time difference information of the front-end device in the second time period includes:
and inquiring a time zone information table according to the third starting time and the third ending time to obtain the time difference information, wherein the time zone information table is used for recording the time difference information of the front-end equipment in at least one time period.
In a possible implementation manner, before the receiving the data query request of the terminal, the method further includes:
and acquiring and storing the data acquired by the front-end equipment according to a data acquisition plan, wherein the data acquisition plan comprises an identifier of the front-end equipment, a data acquisition time template and an identifier of a time zone strategy, the data acquisition time template is used for indicating a time period for the front-end equipment to acquire the data, and the time zone strategy comprises time zone information of the front-end equipment.
In one possible implementation, the method further includes:
obtaining a time zone policy table, where the time zone policy table includes time zone policies of the server and the front-end device and corresponding policy identifiers, each time zone policy includes a policy type, a time zone, a time when entering daylight saving time, a time when leaving daylight saving time, and a time difference between the daylight saving time and the winter time, and the policy types include a time zone policy of the server and a time zone policy of the front-end device.
In one possible implementation manner, the acquiring and storing the data acquired by the front-end device according to the data acquisition plan includes:
acquiring a time zone policy of the front-end equipment according to the identifier of the time zone policy of the front-end equipment in the data acquisition plan;
and according to the time zone strategy of the front-end equipment, storing the data acquired by the front-end equipment in a segmented manner to obtain a plurality of pieces of data, wherein the plurality of pieces of data are acquired by the front-end equipment in a plurality of time zones, the plurality of pieces of data correspond to a plurality of time difference information, and the time difference information corresponding to each piece of data is used for indicating the time difference between the time zone time of each piece of data acquired by the front-end equipment and the standard time.
In a second aspect, a data management method is provided, the method comprising:
sending a data query request to a server, wherein the data query request carries an identifier of front-end equipment, a first start time and a first end time, the time types of the first start time and the first end time are standard times, and the standard times are the time types of the start time and the end time of data stored by the server;
receiving target data, first time difference information and a start time and an end time of the target data, wherein the target data is sent by the server, the time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used for indicating the time difference between the time zone time of the front-end equipment in the first time period and the standard time;
converting the start time and the end time of the target data into a second start time and a second end time according to the first time difference information, wherein the time types of the second start time and the second end time are the time zone time of the front-end equipment;
displaying the target data and the second start time and the second end time.
In one possible implementation manner, the sending a data query request to a server includes:
and when the input identification, the start time and the end time of the front-end equipment are acquired and the time types of the input start time and the input end time are the standard time, taking the input start time and the input end time as the first start time and the first end time, and sending the data query request to the server.
In one possible implementation manner, before sending the data query request to the server, the method further includes:
when the input identifier of the front-end device, the input third starting time and the input third ending time are obtained, sending the time difference query request to a server, wherein the time types of the third starting time and the third ending time are the time zone time of the front-end device, and the time difference query request carries the identifier of the front-end device, the third starting time and the third ending time;
receiving second time difference information sent by a server, where the second time difference information is used to indicate a time difference between a time zone time of the front-end device in a second time period and the standard time, and the second time period is a time period between the third starting time and the third ending time;
and converting the third starting time and the third ending time into the first starting time and the first ending time according to the time difference information.
In a third aspect, there is provided a data management apparatus, the apparatus comprising:
a receiving module, configured to receive a data query request of a terminal, where the data query request carries an identifier of a front-end device, a first start time, and a first end time, and a time type of the first start time and the first end time is a standard time, and the standard time is a time type of a start time and an end time of data stored in the server;
an obtaining module, configured to obtain, according to an identifier of the front-end device, the first start time, and the first end time, target data acquired by the front-end device, first time difference information, and start time and end time of the target data, where a time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used to indicate a time zone time of the front-end device in the first time period and a time difference between the standard time;
and the sending module is used for sending the target data, the first time difference information and the start time and the end time of the target data to the terminal.
In one possible implementation, the obtaining module is configured to:
inquiring the stored data segments, the time difference information corresponding to each data segment and the starting time and the ending time of each data segment according to the identifier of the front-end equipment, the first starting time and the first ending time;
and when the time period between the start time and the end time of any inquired data segment is included in the time period between the first start time and the first end time, using the inquired data segment as the target data, using the time difference information corresponding to the inquired data segment as the first time difference information, and using the start time and the end time of the inquired data segment as the start time and the end time of the target data.
In a possible implementation manner, the receiving module is further configured to receive a time difference query request of the terminal, where the time difference query request carries an identifier of the front end device, a third start time, and a third end time, and a time type of the third start time and the third end time is a time zone time of the front end device;
the obtaining module is further configured to obtain second time difference information of the front end device in a second time period, where the second time period is a time period between the third starting time and the third ending time, and the second time difference information is used to indicate a time difference between a time zone time of the front end device in the second time period and the standard time;
the sending module is further configured to send the second time difference information to the terminal.
In a possible implementation manner, the obtaining module is configured to query a time zone information table according to the third starting time and the third ending time to obtain the time difference information, where the time zone information table is used to record the time difference information of the front-end device in at least one time period.
In a possible implementation manner, the obtaining module is further configured to obtain and store data collected by the front-end device according to a data collection plan, where the data collection plan includes an identifier of the front-end device, a data collection time template, and an identifier of a time zone policy, the data collection time template is used to indicate a time period for the front-end device to collect data, and the time zone policy includes time zone information of the front-end device.
In a possible implementation manner, the obtaining module is further configured to obtain a time zone policy table, where the time zone policy table includes time zone policies of the server and the front end device and corresponding policy identifiers, each time zone policy includes a policy type, a time zone, a time when entering daylight saving time, a time when leaving daylight saving time, and a time difference between daylight saving time and winter time, and the policy types include a time zone policy of the server and a time zone policy of the front end device.
In one possible implementation, the obtaining module is configured to:
acquiring a time zone policy of the front-end equipment according to the identifier of the time zone policy of the front-end equipment in the data acquisition plan;
and according to the time zone strategy of the front-end equipment, storing the data acquired by the front-end equipment in a segmented manner to obtain a plurality of pieces of data, wherein the plurality of pieces of data are acquired by the front-end equipment in a plurality of time zones, the plurality of pieces of data correspond to a plurality of time difference information, and the time difference information corresponding to each piece of data is used for indicating the time difference between the time zone time of each piece of data acquired by the front-end equipment and the standard time.
In a fourth aspect, there is provided a data management apparatus, the apparatus comprising:
a sending module, configured to send a data query request to a server, where the data query request carries an identifier of a front-end device, a first start time, and a first end time, and a time type of the first start time and the first end time is a standard time, and the standard time is a time type of a start time and an end time of data stored in the server;
a receiving module, configured to receive target data, first time difference information, and a start time and an end time of the target data, where a time period between the start time and the end time of the target data is a first time period, the first time period is included in a time period between the first start time and the first end time, and the first time difference information is used to indicate a time difference between a time zone time of the front-end device in the first time period and the standard time;
a conversion module, configured to convert a start time and an end time of the target data into a second start time and a second end time according to the first time difference information, where time types of the second start time and the second end time are time zone times of the front-end device;
and the display module is used for displaying the target data, the second starting time and the second ending time.
In a possible implementation manner, the sending module is configured to send the data query request to the server by using the input start time and end time as the first start time and the first end time when the input identification, start time, and end time of the front-end device are obtained and the time type of the input start time and end time is the standard time.
In a possible implementation manner, the sending module is further configured to send the time difference query request to a server when the input identifier of the front-end device, a third start time, and a third end time are obtained, where the time types of the third start time and the third end time are time zone times of the front-end device, and the time difference query request carries the identifier of the front-end device, the third start time, and the third end time;
the receiving module is further configured to receive second time difference information sent by the server, where the second time difference information is used to indicate a time difference between a time zone time of the front end device in a second time period and the standard time, and the second time period is a time period between the third starting time and the third ending time;
a conversion module, configured to convert the third starting time and the third ending time into the first starting time and the first ending time according to the time difference information.
In a fifth aspect, a data management system is provided, the system comprising a front-end device, a server and a terminal,
the front-end equipment is used for acquiring data and sending the acquired data to the server;
the server is used for storing the data acquired by the front-end equipment by adopting standard time;
the terminal is used for sending a data query request to a server, wherein the data query request carries an identifier of front-end equipment, a first starting time and a first ending time, the time types of the first starting time and the first ending time are standard times, and the standard times are the time types of the starting time and the ending time of data storage of the server;
the server is further configured to, when receiving a data query request of a terminal, obtain target data, first time difference information, and start time and end time of the target data, which are acquired by the front-end device, according to an identifier of the front-end device, the first start time, and the first end time, and send the target data to the terminal, where a time period between the start time and the end time of the target data is a first time period, the first time period is included in a time period between the first start time and the first end time, and the first time difference information is used to indicate a time difference between a time zone time of the front-end device in the first time period and the standard time;
the terminal is further configured to, when receiving target data, first time difference information, and start time and end time of the target data sent by the server, convert the start time and the end time of the target data into second start time and second end time according to the first time difference information, where the time types of the second start time and the second end time are time zone times of the front-end device, and display the target data, the second start time, and the second end time.
In a sixth aspect, a server is provided that includes a processor and a memory; the memory is used for storing at least one instruction; the processor is configured to execute at least one instruction stored in the memory to implement the method steps of any one of the implementation manners of the first aspect.
In a seventh aspect, a terminal is provided that includes a processor and a memory; the memory is used for storing at least one instruction; the processor is configured to execute at least one instruction stored in the memory to implement the method steps of any implementation manner of the second aspect.
In an eighth aspect, a computer-readable storage medium is provided, having at least one instruction stored therein, which when executed by a processor, implements the method steps of any of the above-mentioned implementations.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
when a data query request of a terminal is received, target data, first time difference information and start time and end time of the target data, which are acquired by front-end equipment, are acquired and returned to the terminal according to an identifier, first start time and first end time of the front-end equipment, which are carried in the data query request. The scheme supports the front-end equipment in different time zones to access the server, the front-end equipment can be in different time zones with the server, different front-end equipment can be in different time zones, the same front-end equipment can be in different time zones in different time periods, and the data management requirements of the front-end equipment in a plurality of time zones can be met.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a data management system according to an embodiment of the present invention.
Fig. 2 is a flowchart of a data management method according to an embodiment of the present invention.
Fig. 3 is a flowchart of a data management method according to an embodiment of the present invention.
Fig. 4 is a flowchart of a data management method according to an embodiment of the present invention.
FIG. 5 is a flowchart of configuring a time zone policy according to an embodiment of the present invention.
Fig. 6 is a flowchart of acquiring data according to an embodiment of the present invention.
Fig. 7 is a structural diagram of a data storage according to an embodiment of the present invention.
Fig. 8 is a flowchart of a data management method according to an embodiment of the present invention.
Fig. 9 is a flowchart of a data query according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a data management apparatus according to an embodiment of the present invention.
Fig. 11 is a schematic structural diagram of a data management apparatus according to an embodiment of the present invention.
Fig. 12 is a schematic structural diagram of a terminal 1200 according to an embodiment of the present invention.
Fig. 13 is a schematic structural diagram of a server 1300 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, some key terms related to the embodiments of the present invention are explained:
unix timestamp (Unix timestamp): or Unix time, POSIX time, is a time representation defined as the total number of seconds from greenwich mean time 1980, 00 hours 00 minutes 00 seconds on day 01, and now.
Summer time: summer time is called summer time, sunlight time saving and summer time, and is a local time system artificially specified for saving energy, and usually in summer with early day brightness, the time is artificially quickened by one hour, so that the difference between the local summer time and the winter time is one hour. The specific regulations of each country adopting the daylight saving system are different, and nearly 110 countries in the world currently implement daylight saving time every year.
UTC time: when coordinating the world, it is also called universal time, standard time of the world, and international coordination time. Because English (CUT) and French (TUC) have different abbreviations, UTC is abbreviated as a compromise. The coordinated universal time is a time metering system which is based on the length of atomic hour and second and is as close to the universal time as possible in time.
Fig. 1 is a schematic diagram of a data management system according to an embodiment of the present invention, where the data management system may include a front-end device 101, a server 102, and a terminal 103.
The front-end device 101 is configured to collect data, such as video data, and send the collected data to the server 102 for storage. The front-end device 101 may be an IPC (IP Camera) or other device having a data acquisition function.
The server 102 is configured to store data collected by the front-end device 101 at standard time. The server 102 is further configured to, when receiving a data query request from the terminal 103, obtain corresponding data, and send the obtained data to the terminal 103.
It should be noted that the server 102 may refer to one server or a server cluster composed of a plurality of servers, for example, the plurality of servers may include a data management server, a data collection plan management server, a video access server, and a video storage server. The server 102 may be a server in a cloud storage system.
The terminal 103 is configured to send a time difference query request to the server 102, and the terminal 103 is further configured to send a data query request to the server 102 after receiving the time difference information sent by the server 102, where the data query request is used to obtain data acquired by the front-end device 101. The terminal 103 may be a user device such as a smart phone, a tablet computer, a notebook computer, or a desktop computer.
Fig. 2 is a flowchart of a data management method according to an embodiment of the present invention. Referring to fig. 2, the method includes:
201. receiving a data query request of a terminal, wherein the data query request carries an identifier of a front-end device, a first start time and a first end time, the time types of the first start time and the first end time are standard times, and the standard times are the time types of the start time and the end time of data stored by the server.
202. Acquiring target data, first time difference information and start time and end time of the target data, wherein the target data, the first time difference information and the start time and the end time of the target data are acquired according to the identifier of the front-end device, the first start time and the first end time, the time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used for indicating the time difference between the time zone time of the front-end device in the first time period and the standard time.
203. And sending the target data, the first time difference information and the start time and the end time of the target data to the terminal.
In the method provided by the embodiment of the invention, when a data query request of a terminal is received, target data, first time difference information and start time and end time of the target data, which are acquired by front-end equipment, are acquired and returned to the terminal according to an identifier, first start time and first end time of the front-end equipment carried in the data query request. The scheme supports the front-end equipment in different time zones to access the server, the front-end equipment can be in different time zones with the server, different front-end equipment can be in different time zones, the same front-end equipment can be in different time zones in different time periods, and the data management requirements of the front-end equipment in a plurality of time zones can be met.
Fig. 3 is a flowchart of a data management method according to an embodiment of the present invention. Referring to fig. 3, the method includes:
301. sending a data query request to a server, wherein the data query request carries an identifier of front-end equipment, a first start time and a first end time, the time types of the first start time and the first end time are standard times, and the standard times are the time types of the start time and the end time of data stored by the server;
302. receiving target data, first time difference information and a start time and an end time of the target data, wherein the start time and the end time of the target data are first time periods, the first time periods are included in the time periods between the first start time and the first end time, and the first time difference information is used for indicating the time difference between the time zone time of the front-end equipment in the first time period and the standard time;
303. converting the start time and the end time of the target data into a second start time and a second end time according to the first time difference information, wherein the time types of the second start time and the second end time are the time zone time of the front-end equipment;
304. and displaying the target data and the second start time and the second end time.
According to the method provided by the embodiment of the invention, the data query request is sent to the server, and when the target data, the first time difference information and the start time and the end time of the target data returned by the server are received, the start time and the end time of the target data are converted into the time zone time of the front-end equipment according to the first time difference information and then displayed. The scheme supports the front-end equipment in different time zones to access the server, the front-end equipment can be in different time zones with the server, different front-end equipment can be in different time zones, the same front-end equipment can be in different time zones in different time periods, and the data management requirements of the front-end equipment in a plurality of time zones can be met.
Fig. 4 is a flowchart of a data management method according to an embodiment of the present invention. Referring to fig. 4, the method includes:
401. the server obtains a time zone policy of the server and a time zone policy of the front-end device.
In the embodiment of the present invention, the server may be configured with a plurality of time zone policies, and the time zone policies may be divided into two types, one type is a time zone policy of the server, and the other type is a time zone policy of the front-end device. The time zone strategy comprises a strategy type, a time zone, time entering summer time, time exiting summer time and time difference between summer time and winter time, wherein the strategy type is used for distinguishing the time zone strategy of the front-end equipment and the server. For example, the time zone may be the east two zone, the east eight zone, etc., and if the time zone in which the device is located is daylight savings time from 13:00 on 1/3/10 to 1/10/15: 00 on 1/3/year, the time to enter daylight savings time is 13:00 on 1/3/day, and the time to exit daylight savings time is 15:00 on 1/10/day.
In one possible implementation, the configuration of the time zone policy may be configured through a WEB page (WEB page) or an SDK (Software Development Kit) interface. In one possible implementation manner, the specific implementation flow for configuring the time zone policy may include the following three steps a to c:
step a, configuring a time zone strategy of a server through a webpage.
For example, a user may log in a configuration WEB page of a time zone policy on a terminal, the user may input and submit the time zone policy of the server on the WEB page, trigger the terminal to send the time zone policy of the server to the server, and the server stores the time zone policy, thereby completing configuration of the time zone policy of the server. The time zone policy of the server is a default time zone policy, and if the front-end device does not specify the time zone policy used by the front-end device, the server can default the time zone policy of the server adopted by the front-end device.
And step b, configuring the time zone strategy of the front-end equipment through the SDK interface.
The terminal can call a server SDK interface (cloud storage SDK interface) to connect with the server, add a time zone policy of the front-end device, and after the operation is successful, the SDK interface can return a unique policy ID (Identification) to the terminal, wherein the policy ID refers to the Identification of the time zone policy.
It should be noted that the server may access one or more front-end devices, and accordingly, in this step b, the time zone policy of at least one front-end device may be configured through the SDK interface.
And step c, the server acquires and stores the time zone policy table.
The time zone policy table includes time zone policies of the server and the front-end device and corresponding policy identifiers. Each time zone strategy comprises a strategy ID, a strategy type, a time zone, time entering summer time, time exiting summer time and time difference between summer time and winter time, wherein the strategy ID is used for distinguishing different time zone strategies, and the strategy type comprises a time zone strategy of a server and a time zone strategy of front-end equipment.
After the server obtains the time zone policies of the server and each front-end device through the steps a and b, an identifier of each time zone policy can be generated; and generating the time zone policy table according to the identifier of each time zone policy, the time zone policies of the server and the front-end equipment.
The server is configured with the time zone strategy of the server and the time zone strategies of the front-end devices, so that the server can store the acquired data according to the time zone strategies of the front-end devices and provide the data to the terminal for data query.
It should be noted that, the above manner is only described by taking the example of configuring the time zone policy of the server through the web page and configuring the time zone policy of the front-end device through the SDK interface, and it can be understood that the time zone policy of the server may also be configured through the SDK interface and the time zone policy of the front-end device may also be configured through the web page, which is not limited in the embodiment of the present invention.
Referring to fig. 5, fig. 5 is a flowchart of configuring a time zone policy according to an embodiment of the present invention, and as shown in fig. 5, taking data as video data as an example, a server may include a video management service module, a data collection plan management service module, a video access service module, and a video storage service module. The video management service module is used for managing the configuration of time zone policies and the storage of video data; the data acquisition plan management service module is used for configuring a data acquisition plan (video recording plan); the video access service module is used for receiving video data sent by the front-end equipment; the video storage service module is used for storing video data.
The data collection plan management service module can synchronize a time zone policy table including a time zone policy of the server and a time zone policy of the front-end device from the video management service module in time. For example, the video management service module may send the time zone policy table to the data collection plan management service module at regular time or in real time. In addition, the data collection plan management service module may synchronize the time zone policy table to the video access service module in time, for example, the data collection plan management service module may send the time zone policy table to the video access service module at regular time or in real time.
It should be noted that fig. 5 illustrates an example in which functions of four modules, namely a video management service module, a data collection plan management service module, a video access service module, and a video storage service module, are integrated on one server, and an interaction process of the four modules is an interaction process between modules in the same server. It should be understood that the functions of each of the modules may also be provided by one server, that is, the interaction process of the four modules is actually an interaction process between four servers, which is not limited in the embodiment of the present invention.
402. And the server acquires data from the front-end equipment for storage.
In the embodiment of the invention, the server can acquire and store the data acquired by the front-end equipment according to the data acquisition plan. The data acquisition plan comprises an identifier of the front-end equipment, a data acquisition time template and an identifier of a time zone strategy, wherein the data acquisition time template is used for indicating a time period for the front-end equipment to acquire data, and the time zone strategy comprises time zone information of the front-end equipment. The configuration process of the data acquisition plan is the same as the configuration process of the time zone policy, and the terminal may configure the data acquisition plan to the server through the SDK interface, and certainly, the data acquisition plan may also be configured through a WEB page, which is not limited in the embodiment of the present invention.
In one possible implementation manner, the way in which the server stores the data of any front-end device may be: acquiring the time zone strategy of the front-end equipment according to the identifier of the time zone strategy of the front-end equipment in the data acquisition plan; and according to the time zone strategy of the front-end equipment, storing the data acquired by the front-end equipment in a segmented manner to obtain a plurality of pieces of data, wherein the plurality of pieces of data are acquired by the front-end equipment in a plurality of time zones, the plurality of pieces of data correspond to a plurality of time difference information, and the time difference information corresponding to each piece of data is used for indicating the time difference between the time zone time for acquiring each piece of data by the front-end equipment and the standard time.
When receiving data collected by any front-end equipment, the server can query a time zone policy table according to the time zone policy identifier of the front-end equipment, and determine the time zone policy of the front-end equipment, so that the time difference information of the front-end equipment in each time period can be obtained.
By storing the data acquired by the front-end equipment in a segmented manner, the data acquired by the front-end equipment in each time zone in each time period can be better distinguished, and a user can conveniently perform query operation.
Referring to fig. 6, fig. 6 is a flowchart for acquiring data according to an embodiment of the present invention. As shown in fig. 6, the terminal may configure a data acquisition plan to a data acquisition plan management service module through the SDK interface, where the data acquisition plan management service module is configured to send the data acquisition plan to the video access service module, and the video access service module executes a task of acquiring a real-time data stream from the front-end device according to information in the data acquisition plan.
After the video access service module obtains the data, the video access service module may write the data into the video storage service module, and the video access service module needs to communicate with the video management service module first to apply for the storage resource, for example, the video access service module may send an application resource protocol to the video management service module, where the application resource protocol includes an encoder ID of the front-end device, start time of the video data, and time difference information of the front-end device (a time difference between time zone time of the front-end device and standard time). After receiving the resource application protocol, the video management service module can return the applied storage resource to the video access service module according to a resource allocation policy (load balancing policy), and meanwhile, the video management service module can record time zone information of the front-end device. For example, the video management service module may record the time zone information of the front-end device in a time zone information table. Referring to table 1, a time zone information table is provided, in which an encoder ID of a front end device and time difference information of the front end device for at least one period of time may be recorded as shown in table 1.
TABLE 1
Figure BDA0001849769600000151
If the time zone policy of the front-end device is changed, which causes the time difference between the time zone time of the front-end device and the standard time to be changed, the video management service module may add a record in the time zone information table every time the time difference is changed. As shown in table 1, the time zone of the front-end device with the encoder ID Test1 in the time period from 23:00 at 12/23/12/01/2018/04/2018/12/23: 00 is the east 3 zone, the time difference is 3 hours (hour), the front-end device changes the time zone from 23:00 at 12/23/2018/4/12/east 3 zone to east two zone, and the time difference is 2 hours, and then the server may add a new record in the video management service module. Since the time difference is changed from 3 hours to 2 hours, 12 days 04-2018 at 23:00 is changed to 12 days 04-2018 at 22:00, and if the time zone policy of the front-end equipment is changed from the change to the current time, the start time of the newly added record is 22:00 days 04-12-2018 at 12, and the end time is the current time.
Of course, in addition to the time zone policy of the front-end device being changed, which may result in the time difference information of the front-end device being changed, the reason for the time difference change may also be the change between daylight saving time and winter time, such as when the front-end device enters east time from daylight saving time, or when the front-end device enters daylight saving time from east time.
When the video access service module writes the video data into the video storage service module, the video access service module may provide the time difference information of the video data (the time difference information of the front-end device that sends the video data) to the video storage service module, and the video storage service module may store the information in the storage block device for backup.
And writing the video data into the block device of the bottom layer by the video storage service module for storage. Referring to fig. 7, fig. 7 is a structural diagram of a data storage according to an embodiment of the present invention, and as shown in fig. 7, when storing video data, a video storage service module may divide the video data into a plurality of video segments, such as video segment 1 and video segment 2. The segment information corresponding to each video segment includes the start time, the end time, and the time difference from the UTC time, and the video management service module may store data using standard time.
403. The terminal sends a data query request to the server, wherein the data query request carries an identifier of front-end equipment, a first starting time and a first ending time, the time types of the first starting time and the first ending time are standard time, and the standard time is the time types of the starting time and the ending time of data stored by the server.
In the embodiment of the present invention, after the server obtains the data from the front-end device and stores the data, the user may perform operations such as query, download or playback on the data collected by a certain front-end device, where query operations are required before download and playback, that is, the data collected by the front-end device needs to be queried first. Specifically, the user may input an identification of the front-end device to be queried and a query time period, including a start time and an end time, on the terminal. Since the time saved by the server bottom data is the standard time, in a possible implementation manner, when the terminal acquires the identifier, the start time, and the end time of the front-end device input by the user and the time type of the input start time and end time is the standard time, the terminal may send the data query request to the server by using the input start time and end time as the first start time and the first end time.
It should be noted that there may be two metering modes for the standard time, one is UTC time, one is UNIX timestamp, and the time used by the terminal is X years, X months, X days, X minutes and X seconds. If the time type of the start time and the end time of the server storage data is the UTC time and the time type of the start time and the end time input by the user on the terminal is also the UTC time, the terminal may directly take the start time and the end time input by the user as the first start time and the first end time, such that the time type of the first start time and the first end time is the UTC time.
If the time type of the start time and the end time of the server storage data is UNIX timestamp, and the time type of the start time and the end time input by the user on the terminal is UTC time, the terminal needs to convert the start time and the end time input by the user into UNIX timestamp first, for example, the terminal may convert the UTC time into UNIX timestamp through the SDK interface, and use the converted start time and end time as a first start time and a first end time, so that the time type of the first start time and the first end time is UNIX timestamp.
Compared with the prior art that data query is carried out only by supporting the time zone time of the front-end equipment input by the user, the data query method has the advantage that the flexibility of the data query is improved by providing the mode of carrying out the data query by inputting the standard time by the user.
404. When a data query request of a terminal is received, a server acquires target data, first time difference information, and start time and end time of the target data, which are acquired by front-end equipment, according to the identifier of the front-end equipment, the first start time and the first end time.
The time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used for indicating the time difference between the time zone time of the front-end device in the first time period and the standard time.
In the embodiment of the invention, when the server receives the data query request of the terminal, the stored data can be queried according to the first starting time and the first ending time carried in the data query request. Since the time type of the start time and the end time of the server stored data is the standard time, and the time type of the first start time and the first end time is also the standard time, in a possible implementation manner, the process of the server obtaining the target data, the first time difference information, and the start time and the end time of the target data includes:
inquiring the stored data segments, the time difference information corresponding to each data segment and the starting time and the ending time of each data segment according to the identifier of the front-end equipment, the first starting time and the first ending time;
and when the time period between the start time and the end time of any inquired data segment is included in the time period between the first start time and the first end time, the inquired data segment is used as the target data, the time difference information corresponding to the inquired data segment is used as the first time difference information, and the start time and the end time of the inquired data segment are used as the start time and the end time of the target data.
The server stores the data collected by the front-end device in a segmented manner in step 402, and when the target data is queried and the time period between the start time and the end time of any data segment is included in the time period between the first start time and the first end time, the server may return the data to the terminal as a query result. In addition, when the server inquires the target data, the server can simultaneously inquire the start time, the end time and the first time difference information recorded in the information of the target data.
405. The server transmits the target data, the first time difference information, and the start time and the end time of the target data to the terminal.
In the embodiment of the invention, when the server returns the target data to the terminal as the query result, the server can also return the start time and the end time of the target data and the corresponding first time difference information to the terminal.
406. When receiving the target data, the first time difference information and the start time and the end time of the target data, the terminal converts the start time and the end time of the target data into a second start time and a second end time according to the first time difference information, wherein the time types of the second start time and the second end time are the time zone time of the front-end equipment.
The second start time is the time when the front-end device starts to collect the target data, and the second end time is the time when the front-end device finishes collecting the target data.
In the embodiment of the invention, when the user inquires data, the user usually wants to see the data collected by the front-end equipment in the local time zone time so as to know the events occurring in different time zones in a certain time period. Since the time types of the starting time and the ending time of the target data returned by the server are standard time, in order to inform the local time zone time when the front-end equipment collects the target data to the user, after receiving the target data returned by the server, the terminal can also determine the local time zone time when the front-end equipment collects the target data. And the first time difference information indicates the time difference between the time zone time and the standard time when the front-end equipment collects the target data. Therefore, the terminal can convert the start time and the end time of the target data into the local time zone time of the front-end equipment according to the first time difference information corresponding to the target data.
If the start time and the end time of the data stored in the server are the UTC time, that is, the start time and the end time of the target data are the UTC time, the terminal needs to convert the UTC time into a time zone time of the front-end device.
If the start time and the end time of the server storage data are UNIX timestamps, that is, the start time and the end time of the target data are UNIX timestamps, the terminal needs to convert the UNIX timestamps to the time zone time of the front-end device, for example, the terminal may convert the UNIX timestamps to the time zone time of the front-end device through the SDK interface, so as to obtain a second start time and a second end time.
407. The terminal displays the target data and the second start time and the second end time.
In the embodiment of the invention, the terminal can display the target data after receiving the target data sent by the server. In addition, the terminal can also display the local time zone time when the front-end device collects the target data, namely the second start time and the second end time, so that the user can know the start time and the end time when the front-end device collects the data, and further know the events occurring in the collection range of the front-end device in the time period.
Optionally, when the terminal displays the target data, the second start time and the second end time, the terminal may also display first time difference information corresponding to the target data, so that a user may know a time difference between a time zone time when the front-end device collects the target data and a standard time.
The technical scheme provided by the embodiment of the invention simultaneously supports data management of the terminal, the server and the front-end equipment under different time zone strategies. In particular, the front-end equipment access supporting multiple time zones is realized, for example, the encoder 1 of the front-end equipment 1 is in the east two zone, and the encoder 2 of the front-end equipment 2 is in the east eight zone. When data control operation is carried out, the system automatically identifies local time of the Dongbei area adopted by the front-end equipment 1 to carry out query, playback and download operation, and automatically identifies local time of the Dongbei area adopted by the front-end equipment 2 to carry out query, playback and download operation.
In addition, the technical scheme also supports a data management method of multiple time zone strategies of the same front-end equipment. For example, the time zone of the encoder 1 of the front-end device 1 in month 1 is the east two zone, and in month 2, the time zone is changed into the east three zone due to human factors, so that when data control operation is performed, the time zone difference of different time periods is automatically identified in the system, and corresponding query, playback and download results are returned.
The technical scheme supports a mode of inquiring data according to standard time, and the server returns time zone information corresponding to the data besides the data.
In the method provided by the embodiment of the invention, when a data query request of a terminal is received, target data, first time difference information and start time and end time of the target data, which are acquired by front-end equipment, are acquired and returned to the terminal according to an identifier, first start time and first end time of the front-end equipment carried in the data query request. The scheme supports the front-end equipment in different time zones to access the server, the front-end equipment can be in different time zones with the server, different front-end equipment can be in different time zones, the same front-end equipment can be in different time zones in different time periods, and the data management requirements of the front-end equipment in a plurality of time zones can be met.
The embodiment corresponding to fig. 4 is a data query process for the case that the input query time is standard time (UTC time), and the query time input by the user on the terminal may also be time zone time of the front-end device, in which case the data query process will be explained in the embodiment corresponding to fig. 8.
Fig. 8 is a flowchart of a data management method according to an embodiment of the present invention. Referring to fig. 8, the method includes:
801. the server obtains a time zone policy of the server and a time zone policy of the front-end device.
802. And the server acquires data from the front-end equipment for storage.
The above steps 801 to 802 are similar to the steps 401 to 402, and are not described herein again.
803. When the input identifier of the front-end device, the third starting time and the third ending time are obtained, the terminal sends a time difference query request to the server, and the time types of the third starting time and the third ending time are the time zone time of the front-end device.
The time difference query request carries the identifier of the front-end device, the third start time and the third end time, the time difference query request is used for acquiring time difference information of the front-end device in a time period corresponding to the third start time and the third end time, and the time difference information is used for indicating the time difference between the time zone time of the front-end device in the time period and the standard time.
In the embodiment of the present invention, a user may input an identifier of a front-end device to be queried and a query time period on a terminal, where a start time and an end time of the query time period adopt a local time zone time of the front-end device, that is, a third start time and a third end time. Because the time saved by the server bottom data is standard time, the terminal needs to perform time conversion according to the time difference between the time zone time of the front-end device and the standard time, and perform data query operation after converting the start time and the end time of the query time period into the standard time. For this reason, the terminal may carry the identifier of the front-end device, the third start time, and the third end time in the time difference query request and send the time difference query request to the server, so that the server may return the time difference information of the front-end device to be queried in the query time period. For example, the terminal may call the SDK interface to communicate with the server, and send the time difference query request to the server.
804. When receiving a time difference query request of the terminal, the server obtains second time difference information of the front-end device in a second time period, and sends the second time difference information to the terminal, wherein the second time period is a time period between the third starting time and the third ending time, and the second time difference information is used for indicating the time difference between the time zone time of the front-end device in the second time period and the standard time.
In one possible implementation, the process of the server obtaining the second time difference information may include: and inquiring a time zone information table according to the third starting time and the third ending time to obtain the time difference information, wherein the time zone information table is used for recording the time difference information of the front-end equipment in at least one time period.
The time zone information table refers to table 1 in step 402, and the server may return the acquired time difference information to the terminal after acquiring the time difference information in the second time period by querying the time zone information table.
805. And when receiving the second time difference information sent by the server, the terminal converts the third starting time and the third ending time into the first starting time and the first ending time according to the time difference information and then sends a data query request to the server.
The data query request carries an identifier of a front-end device, a first start time and a first end time, the time types of the first start time and the first end time are standard times, and the standard times are the time types of the start time and the end time of the data stored by the server.
In a possible implementation manner, after the terminal receives the time difference information returned by the server, the third start time and the third end time may be converted into standard times, that is, the first start time and the first end time, according to the time difference information.
If the time type of the start time and the end time of the server-stored data is the UTC time, since the time type of the third start time and the third end time is the time zone time of the front-end device, the terminal needs to convert the start time and the end time input by the user into the UTC time.
If the time type of the start time and the end time of the server storage data is UNIX timestamp, since the time type of the third start time and the third end time is time zone time of the front-end device, the terminal needs to convert the start time and the end time input by the user into UNIX timestamp, for example, the terminal may convert the time zone time of the front-end device into UNIX timestamp through the SDK interface, and use the converted time as the first start time and the first end time.
Further, as the same as step 403, since the first start time and the first end time are standard times and are the same as the time types of data stored by the server, the terminal may carry the identifier of the front-end device, the first start time and the first end time in the data query request and send the data query request to the server for data query.
806. When a data query request of a terminal is received, a server acquires target data, first time difference information, and start time and end time of the target data, which are acquired by front-end equipment, according to the identifier of the front-end equipment, the first start time and the first end time.
807. The server transmits the target data, the first time difference information, and the start time and the end time of the target data to the terminal.
808. When receiving the target data, the first time difference information and the start time and the end time of the target data, the terminal converts the start time and the end time of the target data into a second start time and a second end time according to the first time difference information, wherein the time types of the second start time and the second end time are the time zone time of the front-end equipment.
809. The terminal displays the target data and the second start time and the second end time.
The above steps 806 to 809 are similar to the steps 404 to 407, and are not described herein.
It should be noted that, the above steps 803 to 809 are data query processes in the case that the input query time is the time zone time of the front-end device. Referring to fig. 9, fig. 9 is a flowchart of data query according to an embodiment of the present invention, as shown in fig. 9, a terminal first obtains time difference information of a front-end device in a query time period from a server, and after the server returns the time difference information to the terminal, the terminal performs a data query operation, and the server returns a data query result to the terminal.
In the technical solution provided in the embodiment of the present invention, the server may support access of a plurality of front-end devices, and the plurality of front-end devices may be in different time zones, and the time zones of the same front-end device in different time periods may also be different. The time difference information of each front-end device in each time period is pre-stored in the server, so that when the terminal needs to inquire the data of any front-end device, the time difference information of the front-end device in the time period input by the user can be acquired from the server, and then the time zone time of the front-end device is converted into the standard time according to the time difference information returned by the server, and then the inquiry operation of the data is carried out.
The technical scheme simultaneously supports data management of the terminal, the server and the front-end equipment under different time zone strategies. In particular, the front-end equipment access supporting multiple time zones is realized, for example, the encoder 1 of the front-end equipment 1 is in the east two zone, and the encoder 2 of the front-end equipment 2 is in the east eight zone. When data control operation is carried out, the system automatically identifies local time of the Dongbei area adopted by the front-end equipment 1 to carry out query, playback and download operation, and automatically identifies local time of the Dongbei area adopted by the front-end equipment 2 to carry out query, playback and download operation.
In addition, the technical scheme also supports a data management method of multiple time zone strategies of the same front-end equipment. For example, the time zone of the encoder 1 of the front-end device 1 in month 1 is the east two zone, and in month 2, the time zone is changed into the east three zone due to human factors, so that when data control operation is performed, the time zone difference of different time periods is automatically identified in the system, and corresponding query, playback and download results are returned.
It can be seen that the server can support two data query modes, one is that the user inputs standard time (UTC time) on the terminal, and the time of the data returned by the query result is the time zone time of the front-end device, and the specific process is shown in the embodiment corresponding to fig. 4. The other is that the user inputs the time zone time of the front-end device on the terminal, and the time of the data returned by the query result is the time zone time of the front-end device, and the specific process is as shown in the embodiment corresponding to fig. 8.
In the method provided by the embodiment of the invention, when a data query request of a terminal is received, target data, first time difference information and start time and end time of the target data, which are acquired by front-end equipment, are acquired and returned to the terminal according to an identifier, first start time and first end time of the front-end equipment carried in the data query request. The scheme supports the front-end equipment in different time zones to access the server, the front-end equipment can be in different time zones with the server, different front-end equipment can be in different time zones, the same front-end equipment can be in different time zones in different time periods, and the data management requirements of the front-end equipment in a plurality of time zones can be met.
Fig. 10 is a schematic structural diagram of a data management apparatus according to an embodiment of the present invention. Referring to fig. 10, the apparatus includes:
a receiving module 1001, configured to receive a data query request of a terminal, where the data query request carries an identifier of a front-end device, a first start time, and a first end time, and a time type of the first start time and the first end time is a standard time, and the standard time is a time type of a start time and an end time of data stored in the server;
an obtaining module 1002, configured to obtain, according to the identifier of the front end device, the first start time, and the first end time, target data acquired by the front end device, first time difference information, and start time and end time of the target data, where a time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used to indicate a time difference between a time zone time of the front end device in the first time period and the standard time;
a sending module 1003, configured to send the target data, the first time difference information, and the start time and the end time of the target data to the terminal.
In one possible implementation, the obtaining module 1002 is configured to:
inquiring the stored data segments, the time difference information corresponding to each data segment and the starting time and the ending time of each data segment according to the identifier of the front-end equipment, the first starting time and the first ending time;
and when the time period between the start time and the end time of any inquired data segment is included in the time period between the first start time and the first end time, the inquired data segment is used as the target data, the time difference information corresponding to the inquired data segment is used as the first time difference information, and the start time and the end time of the inquired data segment are used as the start time and the end time of the target data.
In a possible implementation manner, the receiving module 1001 is further configured to receive a time difference query request of the terminal, where the time difference query request carries an identifier of the front end device, a third start time and a third end time, and a time type of the third start time and the third end time is a time zone time of the front end device;
the obtaining module 1002 is further configured to obtain second time difference information of the front end device in a second time period, where the second time period is a time period between the third starting time and the third ending time, and the second time difference information is used to indicate a time difference between a time zone time of the front end device in the second time period and the standard time;
the sending module 1003 is further configured to send the second time difference information to the terminal.
In a possible implementation manner, the obtaining module 1002 is configured to query a time zone information table according to the third starting time and the third ending time, to obtain the time difference information, where the time zone information table is used to record the time difference information of the front end device in at least one time period.
In a possible implementation manner, the obtaining module 1002 is further configured to obtain and store the data collected by the front end device according to a data collection plan, where the data collection plan includes an identifier of the front end device, a data collection time template, and an identifier of a time zone policy, where the data collection time template is used to indicate a time period for the front end device to collect the data, and the time zone policy includes time zone information of the front end device.
In a possible implementation manner, the obtaining module 1002 is further configured to obtain a time zone policy table, where the time zone policy table includes time zone policies of the server and the front end device and corresponding policy identifiers, each time zone policy includes a policy type, a time zone, a time when entering daylight saving time, a time when leaving daylight saving time, and a time difference between daylight saving time and winter time, and the policy types include a time zone policy of the server and a time zone policy of the front end device.
In one possible implementation, the obtaining module 1002 is configured to:
acquiring the time zone strategy of the front-end equipment according to the identifier of the time zone strategy of the front-end equipment in the data acquisition plan;
and according to the time zone strategy of the front-end equipment, storing the data acquired by the front-end equipment in a segmented manner to obtain a plurality of pieces of data, wherein the plurality of pieces of data are acquired by the front-end equipment in a plurality of time zones, the plurality of pieces of data correspond to a plurality of time difference information, and the time difference information corresponding to each piece of data is used for indicating the time difference between the time zone time for acquiring each piece of data by the front-end equipment and the standard time.
According to the device provided by the embodiment of the invention, when a data query request of a terminal is received, target data, first time difference information and the start time and the end time of the target data, which are acquired by front-end equipment, are acquired according to the identifier, the first start time and the first end time of the front-end equipment carried in the data query request and then returned to the terminal. The scheme supports the front-end equipment in different time zones to access the server, the front-end equipment can be in different time zones with the server, different front-end equipment can be in different time zones, the same front-end equipment can be in different time zones in different time periods, and the data management requirements of the front-end equipment in a plurality of time zones can be met.
Fig. 11 is a schematic structural diagram of a data management apparatus according to an embodiment of the present invention. Referring to fig. 11, the apparatus includes:
a sending module 1101, configured to send a data query request to a server, where the data query request carries an identifier of a front-end device, a first start time and a first end time, and the time types of the first start time and the first end time are standard times, where the standard times are time types of start time and end time of data stored by the server;
a receiving module 1102, configured to receive target data, first time difference information, and a start time and an end time of the target data, where a time period between the start time and the end time of the target data is a first time period, the first time period is included in a time period between the first start time and the first end time, and the first time difference information is used to indicate a time difference between a time zone time of the front end device in the first time period and the standard time;
a converting module 1103, configured to convert the start time and the end time of the target data into a second start time and a second end time according to the first time difference information, where the time types of the second start time and the second end time are time zone times of the front end device;
a display module 1104, configured to display the target data and the second start time and the second end time.
In one possible implementation manner, the sending module 1101 is configured to send the data query request to the server by taking the input start time and end time as the first start time and the first end time when the input identification, start time, and end time of the front end device are obtained and the time type of the input start time and end time is the standard time.
In a possible implementation manner, the sending module 1101 is further configured to send the time difference query request to a server when the input identifier of the front end device, a third start time and a third end time are obtained, where the time types of the third start time and the third end time are time zone times of the front end device, and the time difference query request carries the identifier of the front end device, the third start time and the third end time;
the receiving module 1102 is further configured to receive second time difference information sent by the server, where the second time difference information is used to indicate a time difference between a time zone time of the front end device in a second time period and the standard time, and the second time period is a time period between the third starting time and the third ending time;
the converting module 1103 is further configured to convert the third starting time and the third ending time into the first starting time and the first ending time according to the time difference information.
According to the device provided by the embodiment of the invention, when a data query request of a terminal is received, target data, first time difference information and the start time and the end time of the target data, which are acquired by front-end equipment, are acquired according to the identifier, the first start time and the first end time of the front-end equipment carried in the data query request and then returned to the terminal. The scheme supports the front-end equipment in different time zones to access the server, the front-end equipment can be in different time zones with the server, different front-end equipment can be in different time zones, the same front-end equipment can be in different time zones in different time periods, and the data management requirements of the front-end equipment in a plurality of time zones can be met.
It should be noted that: in the data management apparatus provided in the foregoing embodiment, only the division of the functional modules is illustrated in the data management, and in practical applications, the functions may be distributed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the data management apparatus and the data management method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 12 is a schematic structural diagram of a terminal 1200 according to an embodiment of the present invention. The terminal 1200 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1200 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, terminal 1200 includes: a processor 1201 and a memory 1202.
The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1202 may include one or more computer-readable storage media, which may be non-transitory. Memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1202 is used to store at least one instruction for execution by processor 1201 to implement the data management methods provided by method embodiments herein.
In some embodiments, the terminal 1200 may further optionally include: a peripheral interface 1203 and at least one peripheral. The processor 1201, memory 1202, and peripheral interface 1203 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1204, display 1205, camera 1206, audio circuitry 1207, positioning components 1208, and power source 1209.
The peripheral interface 1203 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, memory 1202, and peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202 and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices by electromagnetic signals. The radio frequency circuit 1204 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1204 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1204 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1204 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to acquire touch signals on or over the surface of the display screen 1205. The touch signal may be input to the processor 1201 as a control signal for processing. At this point, the display 1205 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1205 may be one, providing the front panel of the terminal 1200; in other embodiments, the display 1205 can be at least two, respectively disposed on different surfaces of the terminal 1200 or in a folded design; in still other embodiments, the display 1205 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 1200. Even further, the display screen 1205 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display panel 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
Camera assembly 1206 is used to capture images or video. Optionally, camera assembly 1206 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1206 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1201 for processing or inputting the electric signals into the radio frequency circuit 1204 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided at different locations of terminal 1200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1207 may also include a headphone jack.
The positioning component 1208 is used to locate a current geographic location of the terminal 1200 to implement navigation or LBS (location based Service). The positioning component 1208 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 1209 is used to provide power to various components within the terminal 1200. The power source 1209 may be alternating current, direct current, disposable or rechargeable. When the power source 1209 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1200 also includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: acceleration sensor 1211, gyro sensor 1212, pressure sensor 1213, fingerprint sensor 1214, optical sensor 1215, and proximity sensor 1216.
The acceleration sensor 1211 can detect magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1200. For example, the acceleration sensor 1211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1201 may control the touch display 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1212 may detect a body direction and a rotation angle of the terminal 1200, and the gyro sensor 1212 may collect a 3D motion of the user on the terminal 1200 in cooperation with the acceleration sensor 1211. The processor 1201 can implement the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1213 may be disposed on a side bezel of terminal 1200 and/or an underlying layer of touch display 1205. When the pressure sensor 1213 is disposed on the side frame of the terminal 1200, the user's holding signal of the terminal 1200 can be detected, and the processor 1201 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1213. When the pressure sensor 1213 is disposed at a lower layer of the touch display screen 1205, the processor 1201 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1214 is used for collecting a fingerprint of the user, and the processor 1201 identifies the user according to the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1214 may be provided on the front, back, or side of the terminal 1200. When a physical button or vendor Logo is provided on the terminal 1200, the fingerprint sensor 1214 may be integrated with the physical button or vendor Logo.
The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 may control the display brightness of the touch display 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the touch display panel 1205 is increased; when the ambient light intensity is low, the display brightness of the touch display panel 1205 is turned down. In another embodiment, processor 1201 may also dynamically adjust the camera head 1206 shooting parameters based on the ambient light intensity collected by optical sensor 1215.
A proximity sensor 1216, also known as a distance sensor, is typically disposed on the front panel of the terminal 1200. The proximity sensor 1216 is used to collect a distance between the user and the front surface of the terminal 1200. In one embodiment, when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually decreases, the processor 1201 controls the touch display 1205 to switch from the bright screen state to the dark screen state; when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually becomes larger, the processor 1201 controls the touch display 1205 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 12 is not intended to be limiting of terminal 1200 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 13 is a schematic structural diagram of a server 1300 according to an embodiment of the present invention, where the server 1300 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1301 and one or more memories 1302, where the memory 1302 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1301 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, there is also provided a computer readable storage medium, such as a memory, having at least one instruction stored thereon, which when executed by a processor, implements the data management method in the above embodiments. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present invention and should not be taken as limiting the invention, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (24)

1. A data management method is applied to a server, and the method comprises the following steps:
receiving a data query request of a terminal, wherein the data query request carries an identifier of a front-end device, a first start time and a first end time, the time types of the first start time and the first end time are standard times, and the standard times are the time types of the start time and the end time of data stored by the server;
acquiring target data, first time difference information and start time and end time of the target data, which are acquired by the front-end device, according to the identifier of the front-end device, the first start time and the first end time, wherein a time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used for indicating a time difference between a time zone time of the front-end device in the first time period and the standard time;
and sending the target data, the first time difference information and the start time and the end time of the target data to the terminal.
2. The method according to claim 1, wherein the obtaining target data, first time difference information, and a start time and an end time of the target data collected by the front-end device according to the identifier of the front-end device, the first start time, and the first end time comprises:
inquiring the stored data segments, the time difference information corresponding to each data segment and the starting time and the ending time of each data segment according to the identifier of the front-end equipment, the first starting time and the first ending time;
and when the time period between the start time and the end time of any inquired data segment is included in the time period between the first start time and the first end time, using the inquired data segment as the target data, using the time difference information corresponding to the inquired data segment as the first time difference information, and using the start time and the end time of the inquired data segment as the start time and the end time of the target data.
3. The method of claim 1, wherein before the receiving the data query request of the terminal, the method further comprises:
receiving a time difference query request of the terminal, wherein the time difference query request carries an identifier of the front-end device, a third starting time and a third ending time, and the time types of the third starting time and the third ending time are time zone time of the front-end device;
acquiring second time difference information of the front-end device in a second time period, wherein the second time period is a time period between the third starting time and the third ending time, and the second time difference information is used for indicating a time difference between time zone time of the front-end device in the second time period and the standard time;
and sending the second time difference information to the terminal.
4. The method of claim 3, wherein the obtaining the time difference information of the front-end device in the second time period comprises:
and inquiring a time zone information table according to the third starting time and the third ending time to obtain the time difference information, wherein the time zone information table is used for recording the time difference information of the front-end equipment in at least one time period.
5. The method of claim 1, wherein before the receiving the data query request of the terminal, the method further comprises:
and acquiring and storing the data acquired by the front-end equipment according to a data acquisition plan, wherein the data acquisition plan comprises an identifier of the front-end equipment, a data acquisition time template and an identifier of a time zone strategy, the data acquisition time template is used for indicating a time period for the front-end equipment to acquire the data, and the time zone strategy comprises time zone information of the front-end equipment.
6. The method of claim 5, wherein prior to obtaining the data collected by the head-end equipment for storage according to the data collection plan, the method further comprises:
obtaining a time zone policy table, where the time zone policy table includes time zone policies of the server and the front-end device and corresponding policy identifiers, each time zone policy includes a policy type, a time zone, a time when entering daylight saving time, a time when leaving daylight saving time, and a time difference between the daylight saving time and the winter time, and the policy types include a time zone policy of the server and a time zone policy of the front-end device.
7. The method of claim 6, wherein the obtaining and storing the data collected by the front-end device according to the data collection plan comprises:
acquiring a time zone policy of the front-end equipment according to the identifier of the time zone policy of the front-end equipment in the data acquisition plan;
and according to the time zone strategy of the front-end equipment, storing the data acquired by the front-end equipment in a segmented manner to obtain a plurality of pieces of data, wherein the plurality of pieces of data are acquired by the front-end equipment in a plurality of time zones, the plurality of pieces of data correspond to a plurality of time difference information, and the time difference information corresponding to each piece of data is used for indicating the time difference between the time zone time of each piece of data acquired by the front-end equipment and the standard time.
8. A data management method is applied to a terminal, and the method comprises the following steps:
sending a data query request to a server, wherein the data query request carries an identifier of front-end equipment, a first start time and a first end time, the time types of the first start time and the first end time are standard times, and the standard times are the time types of the start time and the end time of data stored by the server;
receiving target data, first time difference information and a start time and an end time of the target data, wherein the target data is sent by the server, the time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used for indicating the time difference between the time zone time of the front-end equipment in the first time period and the standard time;
converting the start time and the end time of the target data into a second start time and a second end time according to the first time difference information, wherein the time types of the second start time and the second end time are the time zone time of the front-end equipment;
displaying the target data and the second start time and the second end time.
9. The method of claim 8, wherein sending a data query request to a server comprises:
and when the input identification, the start time and the end time of the front-end equipment are acquired and the time types of the input start time and the input end time are the standard time, taking the input start time and the input end time as the first start time and the first end time, and sending the data query request to the server.
10. The method of claim 8, wherein prior to sending the data query request to the server, the method further comprises:
when the input identifier of the front-end device, the input third starting time and the input third ending time are obtained, sending the time difference query request to a server, wherein the time types of the third starting time and the third ending time are the time zone time of the front-end device, and the time difference query request carries the identifier of the front-end device, the third starting time and the third ending time;
receiving second time difference information sent by a server, where the second time difference information is used to indicate a time difference between a time zone time of the front-end device in a second time period and the standard time, and the second time period is a time period between the third starting time and the third ending time;
and converting the third starting time and the third ending time into the first starting time and the first ending time according to the time difference information.
11. A data management apparatus, applied to a server, the apparatus comprising:
a receiving module, configured to receive a data query request of a terminal, where the data query request carries an identifier of a front-end device, a first start time, and a first end time, and a time type of the first start time and the first end time is a standard time, and the standard time is a time type of a start time and an end time of data stored in the server;
an obtaining module, configured to obtain, according to an identifier of the front-end device, the first start time, and the first end time, target data acquired by the front-end device, first time difference information, and start time and end time of the target data, where a time period between the start time and the end time of the target data is a first time period, the first time period is included in the time period between the first start time and the first end time, and the first time difference information is used to indicate a time zone time of the front-end device in the first time period and a time difference between the standard time;
and the sending module is used for sending the target data, the first time difference information and the start time and the end time of the target data to the terminal.
12. The apparatus of claim 11, wherein the obtaining module is configured to:
inquiring the stored data segments, the time difference information corresponding to each data segment and the starting time and the ending time of each data segment according to the identifier of the front-end equipment, the first starting time and the first ending time;
and when the time period between the start time and the end time of any inquired data segment is included in the time period between the first start time and the first end time, using the inquired data segment as the target data, using the time difference information corresponding to the inquired data segment as the first time difference information, and using the start time and the end time of the inquired data segment as the start time and the end time of the target data.
13. The apparatus of claim 11,
the receiving module is further configured to receive a time difference query request of the terminal, where the time difference query request carries an identifier of the front-end device, a third start time and a third end time, and the time types of the third start time and the third end time are time zone times of the front-end device;
the obtaining module is further configured to obtain second time difference information of the front end device in a second time period, where the second time period is a time period between the third starting time and the third ending time, and the second time difference information is used to indicate a time difference between a time zone time of the front end device in the second time period and the standard time;
the sending module is further configured to send the second time difference information to the terminal.
14. The apparatus of claim 13, wherein the obtaining module is configured to query a time zone information table according to the third start time and the third end time to obtain the time difference information, and the time zone information table is configured to record the time difference information of the front end device in at least one time period.
15. The apparatus according to claim 11, wherein the obtaining module is further configured to obtain and store the data collected by the front-end device according to a data collection plan, where the data collection plan includes an identifier of the front-end device, a data collection time template, and an identifier of a time zone policy, the data collection time template is used to indicate a time period for the front-end device to collect the data, and the time zone policy includes time zone information of the front-end device.
16. The apparatus of claim 15, wherein the obtaining module is further configured to obtain a time zone policy table, the time zone policy table includes time zone policies of the server and the front end device and corresponding policy identifiers, each time zone policy includes a policy type, a time zone, a time when entering daylight savings time, a time when exiting daylight savings time, and a time difference between daylight savings time and winter time, and the policy types include a time zone policy of the server and a time zone policy of the front end device.
17. The apparatus of claim 16, wherein the obtaining module is configured to:
acquiring a time zone policy of the front-end equipment according to the identifier of the time zone policy of the front-end equipment in the data acquisition plan;
and according to the time zone strategy of the front-end equipment, storing the data acquired by the front-end equipment in a segmented manner to obtain a plurality of pieces of data, wherein the plurality of pieces of data are acquired by the front-end equipment in a plurality of time zones, the plurality of pieces of data correspond to a plurality of time difference information, and the time difference information corresponding to each piece of data is used for indicating the time difference between the time zone time of each piece of data acquired by the front-end equipment and the standard time.
18. A data management apparatus, applied to a terminal, the apparatus comprising:
a sending module, configured to send a data query request to a server, where the data query request carries an identifier of a front-end device, a first start time, and a first end time, and a time type of the first start time and the first end time is a standard time, and the standard time is a time type of a start time and an end time of data stored in the server;
a receiving module, configured to receive target data, first time difference information, and a start time and an end time of the target data, where a time period between the start time and the end time of the target data is a first time period, the first time period is included in a time period between the first start time and the first end time, and the first time difference information is used to indicate a time difference between a time zone time of the front-end device in the first time period and the standard time;
a conversion module, configured to convert a start time and an end time of the target data into a second start time and a second end time according to the first time difference information, where time types of the second start time and the second end time are time zone times of the front-end device;
and the display module is used for displaying the target data, the second starting time and the second ending time.
19. The apparatus according to claim 18, wherein the sending module is configured to send the data query request to the server with the input start time and end time as the first start time and the first end time when the input identification, start time, and end time of the front-end device are obtained and the time type of the input start time and end time is the standard time.
20. The apparatus of claim 18,
the sending module is further configured to send the time difference query request to a server when the input identifier of the front-end device, the input third start time, and the input third end time are obtained, where the time types of the third start time and the third end time are time zone times of the front-end device, and the time difference query request carries the identifier of the front-end device, the third start time, and the third end time;
the receiving module is further configured to receive second time difference information sent by the server, where the second time difference information is used to indicate a time difference between a time zone time of the front end device in a second time period and the standard time, and the second time period is a time period between the third starting time and the third ending time;
the conversion module is further configured to convert the third starting time and the third ending time into the first starting time and the first ending time according to the time difference information.
21. A data management system is characterized in that the system comprises a front-end device, a server and a terminal,
the front-end equipment is used for acquiring data and sending the acquired data to the server;
the server is used for storing the data acquired by the front-end equipment by adopting standard time;
the terminal is used for sending a data query request to a server, wherein the data query request carries an identifier of front-end equipment, a first starting time and a first ending time, the time types of the first starting time and the first ending time are standard times, and the standard times are the time types of the starting time and the ending time of data storage of the server;
the server is further configured to, when receiving a data query request of a terminal, obtain target data, first time difference information, and start time and end time of the target data, which are acquired by the front-end device, according to an identifier of the front-end device, the first start time, and the first end time, and send the target data to the terminal, where a time period between the start time and the end time of the target data is a first time period, the first time period is included in a time period between the first start time and the first end time, and the first time difference information is used to indicate a time difference between a time zone time of the front-end device in the first time period and the standard time;
the terminal is further configured to, when receiving target data, first time difference information, and start time and end time of the target data sent by the server, convert the start time and the end time of the target data into second start time and second end time according to the first time difference information, where the time types of the second start time and the second end time are time zone times of the front-end device, and display the target data, the second start time, and the second end time.
22. A server, comprising a processor and a memory; the memory is used for storing at least one instruction; the processor, configured to execute at least one instruction stored on the memory to implement the method steps of any of claims 1-7.
23. A terminal comprising a processor and a memory; the memory is used for storing at least one instruction; the processor, configured to execute at least one instruction stored on the memory to implement the method steps of any of claims 8-10.
24. A computer-readable storage medium, having stored therein at least one instruction, which when executed by a processor, performs the method steps of any one of claims 1-10.
CN201811289487.4A 2018-10-31 2018-10-31 Data management method, device and system Active CN111125436B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811289487.4A CN111125436B (en) 2018-10-31 2018-10-31 Data management method, device and system
PCT/CN2019/114426 WO2020088542A1 (en) 2018-10-31 2019-10-30 Data management method, apparatus and system, and server, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811289487.4A CN111125436B (en) 2018-10-31 2018-10-31 Data management method, device and system

Publications (2)

Publication Number Publication Date
CN111125436A true CN111125436A (en) 2020-05-08
CN111125436B CN111125436B (en) 2023-08-08

Family

ID=70462990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811289487.4A Active CN111125436B (en) 2018-10-31 2018-10-31 Data management method, device and system

Country Status (2)

Country Link
CN (1) CN111125436B (en)
WO (1) WO2020088542A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818029A (en) * 2021-01-13 2021-05-18 远景智能国际私人投资有限公司 Method, device and equipment for querying time sequence data and readable storage medium
CN115174292A (en) * 2022-05-25 2022-10-11 青岛海尔科技有限公司 Equipment data management platform
WO2023024073A1 (en) * 2021-08-27 2023-03-02 Oppo广东移动通信有限公司 Wireless communication method, terminal device and network device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683215B (en) * 2020-06-05 2023-03-24 杭州海康威视数字技术股份有限公司 Video playback method and device, electronic equipment and computer readable storage medium

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174982A (en) * 2007-11-16 2008-05-07 华为技术有限公司 Method, device and system for implementing multi-time zone data information unification
US20080126408A1 (en) * 2006-06-23 2008-05-29 Invensys Systems, Inc. Presenting continuous timestamped time-series data values for observed supervisory control and manufacturing/production parameters
CN101630426A (en) * 2008-07-18 2010-01-20 株式会社山武 Process monitoring system and method
JP2010230341A (en) * 2009-03-26 2010-10-14 Mizuho Information & Research Institute Inc Information processing system, method of control and program, and global cash management system
CN101873456A (en) * 2009-04-24 2010-10-27 上海乐金广电电子有限公司 Video recording data reproduction device on digital video recorder and method thereof
CN102244758A (en) * 2011-07-08 2011-11-16 杭州华三通信技术有限公司 Video-recording-file-based data acquisition method and equipment
CN102982226A (en) * 2007-08-10 2013-03-20 施曼信医疗Asd公司 Method and system of communication between server and a plurality of medical devices
CN103092959A (en) * 2013-01-18 2013-05-08 中兴通讯股份有限公司 Processing method and device for task time zone
US20140089719A1 (en) * 2012-09-24 2014-03-27 Andreas Daum Planning unambiguously across multiple time zones
CN103986944A (en) * 2014-06-05 2014-08-13 西安诺瓦电子科技有限公司 Display terminal cluster broadcast control method, display terminal and display terminal cluster management end
JP2015014515A (en) * 2013-07-05 2015-01-22 キヤノン株式会社 Cycle time zone setting method when site cycle time is acquired from user
CN105338297A (en) * 2014-08-11 2016-02-17 杭州海康威视系统技术有限公司 Video data storage and playback system, device and method
CN105989048A (en) * 2015-02-05 2016-10-05 浙江大华技术股份有限公司 Data record processing method, equipment and system
CN106487895A (en) * 2016-10-14 2017-03-08 深圳市欧瑞博电子有限公司 Time control method and device
US20170201606A1 (en) * 2014-10-31 2017-07-13 Splunk Inc. Automatically adjusting timestamps from remote systems based on time zone differences
CN107657058A (en) * 2017-10-19 2018-02-02 上海大汉三通数据通信有限公司 The querying method and relevant apparatus of a kind of data
CN107919933A (en) * 2017-11-17 2018-04-17 深圳市泉眼网络科技有限公司 A kind of method, apparatus, mobile terminal and the storage medium of time renewal
CN108206933A (en) * 2016-12-16 2018-06-26 杭州海康威视数字技术股份有限公司 A kind of video data acquisition methods and device based on video cloud storage system
CN108495183A (en) * 2018-04-09 2018-09-04 广州酷狗计算机科技有限公司 The method and apparatus for showing album information

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080126408A1 (en) * 2006-06-23 2008-05-29 Invensys Systems, Inc. Presenting continuous timestamped time-series data values for observed supervisory control and manufacturing/production parameters
CN102982226A (en) * 2007-08-10 2013-03-20 施曼信医疗Asd公司 Method and system of communication between server and a plurality of medical devices
CN101174982A (en) * 2007-11-16 2008-05-07 华为技术有限公司 Method, device and system for implementing multi-time zone data information unification
CN101630426A (en) * 2008-07-18 2010-01-20 株式会社山武 Process monitoring system and method
JP2010230341A (en) * 2009-03-26 2010-10-14 Mizuho Information & Research Institute Inc Information processing system, method of control and program, and global cash management system
CN101873456A (en) * 2009-04-24 2010-10-27 上海乐金广电电子有限公司 Video recording data reproduction device on digital video recorder and method thereof
CN102244758A (en) * 2011-07-08 2011-11-16 杭州华三通信技术有限公司 Video-recording-file-based data acquisition method and equipment
US20140089719A1 (en) * 2012-09-24 2014-03-27 Andreas Daum Planning unambiguously across multiple time zones
CN103092959A (en) * 2013-01-18 2013-05-08 中兴通讯股份有限公司 Processing method and device for task time zone
JP2015014515A (en) * 2013-07-05 2015-01-22 キヤノン株式会社 Cycle time zone setting method when site cycle time is acquired from user
CN103986944A (en) * 2014-06-05 2014-08-13 西安诺瓦电子科技有限公司 Display terminal cluster broadcast control method, display terminal and display terminal cluster management end
CN105338297A (en) * 2014-08-11 2016-02-17 杭州海康威视系统技术有限公司 Video data storage and playback system, device and method
US20170201606A1 (en) * 2014-10-31 2017-07-13 Splunk Inc. Automatically adjusting timestamps from remote systems based on time zone differences
CN105989048A (en) * 2015-02-05 2016-10-05 浙江大华技术股份有限公司 Data record processing method, equipment and system
CN106487895A (en) * 2016-10-14 2017-03-08 深圳市欧瑞博电子有限公司 Time control method and device
CN108206933A (en) * 2016-12-16 2018-06-26 杭州海康威视数字技术股份有限公司 A kind of video data acquisition methods and device based on video cloud storage system
CN107657058A (en) * 2017-10-19 2018-02-02 上海大汉三通数据通信有限公司 The querying method and relevant apparatus of a kind of data
CN107919933A (en) * 2017-11-17 2018-04-17 深圳市泉眼网络科技有限公司 A kind of method, apparatus, mobile terminal and the storage medium of time renewal
CN108495183A (en) * 2018-04-09 2018-09-04 广州酷狗计算机科技有限公司 The method and apparatus for showing album information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐卫军;焦蓉;: "无线网状网信标时钟同步系统设计", 计算机工程与设计, no. 12 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818029A (en) * 2021-01-13 2021-05-18 远景智能国际私人投资有限公司 Method, device and equipment for querying time sequence data and readable storage medium
WO2023024073A1 (en) * 2021-08-27 2023-03-02 Oppo广东移动通信有限公司 Wireless communication method, terminal device and network device
CN115174292A (en) * 2022-05-25 2022-10-11 青岛海尔科技有限公司 Equipment data management platform
CN115174292B (en) * 2022-05-25 2024-03-22 青岛海尔科技有限公司 Equipment data management platform

Also Published As

Publication number Publication date
CN111125436B (en) 2023-08-08
WO2020088542A1 (en) 2020-05-07

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
CN110278464B (en) Method and device for displaying list
CN111125436B (en) Data management method, device and system
CN112751679B (en) Instant messaging message processing method, terminal and server
CN108831513B (en) Method, terminal, server and system for recording audio data
CN111083516A (en) Live broadcast processing method and device
CN107896337B (en) Information popularization method and device and storage medium
CN111913679A (en) Method, device, equipment and storage medium for establishing wireless screen projection connection
CN115378900A (en) Song list sharing method, device, terminal and storage medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN110471614B (en) Method for storing data, method and device for detecting terminal
CN108401194B (en) Time stamp determination method, apparatus and computer-readable storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN111008083A (en) Page communication method and device, electronic equipment and storage medium
CN112995587B (en) Electronic equipment monitoring method, system, computer equipment and storage medium
CN113099378B (en) Positioning method, device, equipment and storage medium
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN112669884B (en) Audio data processing method, device, equipment and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN112988254B (en) Method, device and equipment for managing hardware equipment
CN110336881B (en) Method and device for executing service processing request
CN113935678A (en) Method, device, equipment and storage medium for determining multiple distribution terminals held by distributor
CN107948171B (en) User account management method and device
CN110971692A (en) Method and device for opening service and computer 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
GR01 Patent grant
GR01 Patent grant