Disclosure of Invention
In order to better meet the diversified requirements of mobile applications on spatial information, the embodiment of the invention provides a method, a system, equipment and a device for end cloud cooperation, so that an end cloud platform can natively support user spatial data.
One aspect of the present invention provides a method for end cloud coordination, where the method includes:
the cloud platform obtains current spatial information of each target terminal; the spatial information is used for indicating the position of the target terminal; the target terminal is in communication connection with the cloud platform; the target terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the target terminal;
tracking the change of the spatial information of each target terminal to obtain the change condition of the spatial information of each target terminal;
and determining whether to trigger subsequent operations related to different target mobile applications according to a preset arbitration condition based on spatial information of different target mobile applications and spatial information change conditions of the target terminals corresponding to the different target mobile applications.
In another aspect, the present invention provides a peer cloud collaboration platform, where the platform includes: the system comprises a cloud platform and a plurality of target terminals;
each terminal in the plurality of target terminals is used for obtaining respective current spatial information; the spatial information is used for indicating the position of the target terminal; the target terminal is in communication connection with the cloud platform; the target terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the target terminal;
the cloud platform is used for tracking the change of the spatial information of each target terminal so as to obtain the change condition of the spatial information of each target terminal; and determining whether to trigger subsequent operations related to different target mobile applications according to a preset arbitration condition based on spatial information of different target mobile applications and spatial information change conditions of target terminals corresponding to the different target mobile applications.
In another aspect, the present invention provides a cloud platform, including:
the spatial information acquisition module is used for acquiring the current spatial information of each target terminal; the spatial information is used for indicating the position of the target terminal; the target terminal is in communication connection with the cloud platform; the target terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the target terminal;
the spatial information change tracking module is used for tracking the current spatial information of each target terminal obtained by the spatial information obtaining module so as to obtain the change condition of the spatial information of each target terminal;
and the spatial information change arbitration module is used for determining whether to trigger subsequent operations related to different target mobile applications according to the preset spatial information-based arbitration conditions of the different target mobile applications and the spatial information change conditions of the target terminals respectively corresponding to the different target mobile applications, which are obtained by the spatial information change tracking module.
Another aspect of the present invention provides a terminal, including:
the spatial information acquisition module is used for acquiring the current spatial information of the spatial information acquisition module; the spatial information is used for indicating the position of the terminal;
the terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the terminal;
the spatial information change tracking module is used for tracking the current spatial information of the terminal, which is obtained by the spatial information obtaining module, so as to obtain the change condition of the spatial information of the terminal;
and the spatial information change arbitration module is used for determining whether to trigger subsequent operations related to different target mobile applications according to the preset spatial information-based arbitration conditions of the different target mobile applications and the spatial information change condition of the terminal.
Optionally, the terminal may further include a persistent query module;
the spatial information change arbitration module is specifically configured to: determining whether to trigger the continuous query module according to a judgment condition based on spatial information respectively preset by different target mobile applications and a spatial information change condition of the terminal obtained by the spatial information change tracking module; and the continuous query module is used for triggering query on the relevant information of the target mobile application in the database by taking the spatial information of the terminal as a variable query condition after being triggered by the spatial information change arbitration module, and pushing a query result to the terminal when the change of the query condition meets a preset condition.
Another aspect of the present invention provides a terminal, including:
the spatial information acquisition module is used for acquiring the current spatial information of the spatial information acquisition module; the spatial information is used for indicating the position of the terminal;
the terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the terminal;
the spatial information synchronization module is used for synchronizing the obtained spatial information to the cloud platform;
the spatial information change tracking module is used for tracking the current spatial information of the terminal, which is obtained by the spatial information obtaining module, so as to obtain the change condition of the spatial information of the terminal;
and the spatial information change arbitration module is used for determining whether to trigger subsequent operations related to different target mobile applications on the terminal or the cloud platform according to the preset arbitration conditions based on the spatial information and the spatial information change condition of the terminal respectively for the different target mobile applications.
Optionally, the spatial information change arbitration module includes a determining unit and a triggering unit:
for each target mobile application, the judging unit is used for judging whether the spatial information change condition of the terminal meets a judgment condition preset by the target mobile application and based on spatial information;
the triggering unit is used for triggering subsequent operations related to the target mobile application if the judgment result of the judging unit is satisfied; and if the judgment result of the judgment unit is not satisfied, not triggering the subsequent operation related to the target mobile application.
Optionally, the terminal or the cloud platform further includes a pushing module, and the spatial information change arbitration module is specifically configured to: determining whether to trigger the push module according to a judgment condition based on spatial information respectively preset by different target mobile applications and a spatial information change condition of the terminal obtained by the spatial information change tracking module;
and the pushing module is used for notifying the target mobile application of the change condition of the spatial information of the terminal after being triggered by the spatial information change arbitration module.
Optionally, the terminal or the cloud platform further includes a right management module;
the spatial information change arbitration module is specifically configured to: determining whether to trigger the authority management module according to a judgment condition based on spatial information respectively preset by different target mobile applications and a spatial information change condition of the terminal obtained by the spatial information change tracking module; and the authority management module is used for judging whether the terminal is allowed to operate or access the data with the preset authority or not based on the preset data access authority after being triggered by the space information change arbitration module.
Optionally, the terminal or the cloud platform may further include a persistent query module;
the spatial information change arbitration module is specifically configured to: determining whether to trigger the continuous query module according to a judgment condition based on spatial information respectively preset by different target mobile applications and a spatial information change condition of the terminal obtained by the spatial information change tracking module; and the continuous query module is used for triggering query on the relevant information of the target mobile application in the database by taking the spatial information of the terminal as a variable query condition after being triggered by the spatial information change arbitration module, and pushing a query result to the terminal when the change of the query condition meets a preset condition.
In another aspect, the present invention provides a cloud platform, where the cloud platform includes:
a processor and a readable storage medium, the readable storage medium storing a program, the processor being configured to execute the program, when executed, performing the steps of: obtaining current spatial information of each target terminal; the spatial information is used for indicating the position of the target terminal; the target terminal is in communication connection with the cloud platform; the target terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the target terminal;
tracking the change of the spatial information of each target terminal to obtain the change condition of the spatial information of each target terminal;
and determining whether to trigger subsequent operations related to different target mobile applications according to a preset arbitration condition based on spatial information of different target mobile applications and spatial information change conditions of the target terminals corresponding to the different target mobile applications.
Optionally, in the cloud platform, the determining whether to trigger subsequent operations related to the different target mobile applications according to the preset arbitration conditions based on the spatial information for the different target mobile applications and the spatial information change conditions of the target terminals corresponding to the different target mobile applications respectively includes: for each target mobile application, judging whether the spatial information change condition of a target terminal corresponding to the target mobile application meets a judgment condition preset by the target mobile application and based on spatial information;
if yes, triggering subsequent operations related to the target mobile application;
if not, not triggering the subsequent operation related to the target mobile application.
Optionally, the tracking, in the cloud platform, the change of the spatial information of each target terminal to obtain a change condition of the spatial information of each target terminal includes:
comparing the current spatial information of each target terminal with the spatial information of each target terminal obtained before a preset time interval to obtain a change increment of the spatial information of each target terminal;
for each target mobile application, judging whether the spatial information change condition of the target terminal corresponding to the target mobile application meets a preset arbitration condition based on spatial information of the target mobile application includes:
and for each target mobile application, judging whether the space information change increment of a target terminal corresponding to the target mobile application is larger than or equal to a preset space information change threshold of the target mobile application.
Optionally, the tracking, in the processor program, the change of the spatial information of each target terminal to obtain a change condition of the spatial information of each target terminal includes:
tracking the current space information change of each target terminal to obtain the position area of each target terminal;
for each target mobile application, judging whether the spatial information change condition of the target terminal corresponding to the target mobile application meets a preset arbitration condition based on spatial information of the target mobile application includes:
and for each target mobile application, judging whether a position area entered by a target terminal corresponding to the target mobile application belongs to a position area preset by the target mobile application.
Optionally, the triggering of the subsequent operations related to the different target mobile applications in the processor program includes:
and informing the change condition of the spatial information of the target terminal corresponding to the target mobile application.
Optionally, the triggering of the subsequent operations related to the different target mobile applications in the processor program includes: taking the space information of a target terminal corresponding to the target mobile application as a variable query condition, and triggering query of the relevant information of the target mobile application when the change of the query condition meets a preset condition; and pushing the query result to the mobile application.
Optionally, the triggering of the subsequent operations related to the different target mobile applications in the processor program includes:
and judging whether the target terminal corresponding to the target mobile application is allowed to operate or access the data with the preset authority or not based on the preset data access authority.
Another aspect of the present invention provides an end cloud coordination apparatus, where the apparatus includes:
a processor and a readable storage medium, the readable storage medium storing a program, the processor being configured to execute the program, when executed, performing the steps of:
obtaining current spatial information of the device itself; the spatial information is used for indicating the position of the device;
wherein the device is communicatively coupled with the cloud platform; the device is installed with a target mobile application; the target mobile application needs to acquire spatial information of the device;
tracking current spatial information of the device to obtain the change condition of the spatial information of the device; and determining whether to trigger subsequent operations related to different target mobile applications according to the preset arbitration conditions based on the spatial information and the spatial information change condition of the device.
Another aspect of the present invention provides an end cloud coordination apparatus, where the apparatus includes:
a processor and a readable storage medium, the readable storage medium storing a program, the processor being configured to execute the program, when executed, performing the steps of:
obtaining current spatial information of the device itself; the spatial information is used for indicating the position of the device;
the device is in communication connection with the cloud platform and synchronizes spatial information to the cloud platform; the device is installed with a target mobile application; the target mobile application needs to acquire spatial information of the device;
tracking current spatial information of the device to obtain the change condition of the spatial information of the device; and determining whether to trigger subsequent operations related to different target mobile applications on the device or the cloud platform according to the preset arbitration conditions based on the spatial information and the spatial information change condition of the device.
Optionally, in the processor program, the determining whether to trigger a subsequent operation related to the different target mobile applications according to the preset arbitration condition based on the spatial information for the different target mobile applications and the spatial information change condition of the device includes:
for each target mobile application, judging whether the change condition of the spatial information of the terminal meets a preset arbitration condition based on the spatial information of the target mobile application;
if yes, triggering subsequent operations related to the target mobile application;
if not, not triggering the subsequent operation related to the target mobile application.
Optionally, the tracking, in the processor program, a change in spatial information of the device to obtain a change in spatial information of the device includes:
comparing the current spatial information of the device with spatial information of the device obtained before a preset time interval to obtain a change increment of the spatial information of the device;
the judging whether the spatial information change condition of the device meets the arbitration condition preset by the target mobile application and based on the spatial information or not for each target mobile application comprises the following steps:
and for each target mobile application, judging whether the space information change increment of the device is larger than or equal to a preset space information change threshold of the target mobile application.
Optionally, the tracking, in the processor program, a change in spatial information of the device to obtain a change in spatial information of the device includes:
tracking current spatial information changes of the device to obtain a location area entered by the device;
the judging whether the spatial information change condition of the device meets the arbitration condition preset by the target mobile application and based on the spatial information or not for each target mobile application comprises the following steps:
and for each target mobile application, judging whether the position area entered by the device belongs to the position area preset by the target mobile application.
Optionally, the triggering of the subsequent operations related to the different target mobile applications in the processor program includes:
and informing the target mobile application of the change of the spatial information of the device.
Optionally, the triggering of the subsequent operations related to the different target mobile applications in the processor program includes: taking the spatial information of the device as a variable query condition, and triggering query on the relevant information of the target mobile application when the change of the query condition meets a preset condition; and pushing the query result to the mobile application.
Optionally, the triggering of the subsequent operations related to the different target mobile applications in the processor program includes:
and judging whether the device is allowed to operate or access the data with the preset authority or not based on the preset data access authority.
The invention also provides a terminal cloud cooperation method, which comprises the following steps:
the cloud platform obtains time information and current spatial information of each target terminal; the time information indicates the current system time of the target terminal; the spatial information indicates a position of the target terminal; the target terminal is in communication connection with the cloud platform; the target terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the target terminal;
tracking the change of the spatial information of each target terminal to obtain the change condition of the spatial information of each target terminal;
and determining whether to trigger subsequent operations related to different target mobile applications according to arbitration conditions based on spatial information and time information respectively preset by the different target mobile applications, and spatial information change conditions and time information of target terminals respectively corresponding to the different target mobile applications.
Optionally, the determining, according to the preset arbitration conditions based on the spatial information and the time information respectively for different target mobile applications and the spatial information change conditions and the time information of the target terminals respectively corresponding to the different target mobile applications, whether to trigger the subsequent operations related to the different target mobile applications includes:
for each target mobile application, judging whether the spatial information change condition of a target terminal corresponding to the target mobile application meets a judgment condition preset by the target mobile application and based on spatial information;
for each target mobile application, judging whether the time information of a target terminal corresponding to the target mobile application is in a preset time range;
if both are satisfied, triggering a subsequent operation related to the target mobile application;
if either is not satisfied, no subsequent operations related to the target mobile application are triggered.
Optionally, the tracking spatial information change of each target terminal to obtain a change condition of the spatial information of each target terminal includes:
comparing the current spatial information of each target terminal with the spatial information of each target terminal obtained before a preset time interval to obtain a change increment of the spatial information of each target terminal;
for each target mobile application, judging whether the spatial information change condition of the target terminal corresponding to the target mobile application meets a preset arbitration condition based on spatial information of the target mobile application includes:
and for each target mobile application, judging whether the space information change increment of a target terminal corresponding to the target mobile application is larger than or equal to a preset space information change threshold of the target mobile application.
Optionally, the tracking spatial information change of each target terminal to obtain a change condition of the spatial information of each target terminal includes:
tracking the current space information change of the target terminal to obtain a position area where the target terminal enters;
for each target mobile application, judging whether the spatial information change condition of the target terminal corresponding to the target mobile application meets a preset arbitration condition based on spatial information of the target mobile application includes:
and for each target mobile application, judging whether a position area entered by a target terminal corresponding to the target mobile application belongs to a position area preset by the target mobile application.
Optionally, the triggering subsequent operations related to the different target mobile applications includes:
and informing the change condition of the spatial information of the target terminal corresponding to the target mobile application.
Optionally, the triggering subsequent operations related to the different target mobile applications includes: taking the space information of a target terminal corresponding to the target mobile application as a variable query condition, and triggering query of the relevant information of the target mobile application when the change of the query condition meets a preset condition; and pushing the query result to a target terminal corresponding to the target mobile application.
Optionally, the triggering subsequent operations related to the different target mobile applications includes:
and judging whether the target terminal corresponding to the target mobile application is allowed to operate or access the data with the preset authority or not based on the preset data access authority.
In another aspect, the present invention further provides a peer cloud collaboration platform, where the platform includes: the system comprises a cloud platform and a plurality of target terminals;
the target terminals are used for obtaining respective current spatial information and synchronizing the obtained spatial information to the cloud platform; the spatial information is used for indicating the position of the target terminal; the target terminal is in communication connection with the cloud platform; the target terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the target terminal;
the cloud platform is used for acquiring time information and acquiring the space information from each target terminal; the time information indicates the current system time of the target terminal; tracking the change of the spatial information of each target terminal to obtain the change condition of the spatial information of each target terminal;
and determining whether to trigger subsequent operations related to different target mobile applications according to arbitration conditions which are preset by different target mobile applications and are based on spatial information and time information, spatial information change conditions of target terminals corresponding to the different target mobile applications and the time information.
Optionally, the cloud platform determines whether to trigger subsequent operations related to the different target mobile applications according to a decision condition based on spatial information and time information respectively preset by the different target mobile applications, a spatial information change condition of a target terminal respectively corresponding to the different target mobile applications, and the time information, where the decision condition includes:
for each target mobile application, the cloud platform judges whether the spatial information change condition of a target terminal corresponding to the target mobile application meets a judgment condition which is preset by the target mobile application and is based on spatial information;
for each target mobile application, the cloud platform judges whether the time information of the target terminal corresponding to the target mobile application is within a preset time range;
if both are satisfied, triggering a subsequent operation related to the target mobile application;
if either is not satisfied, no subsequent operations related to the target mobile application are triggered.
Optionally, the tracking, by the cloud platform, the change of the spatial information of each target terminal to obtain the change condition of the spatial information of each target terminal includes:
the cloud platform compares the current spatial information of each target terminal with the spatial information of each target terminal obtained before a preset time interval so as to obtain the change increment of the spatial information of each target terminal;
for each target mobile application, the cloud platform judging whether the spatial information change condition of the target terminal corresponding to the target mobile application meets a judgment condition preset by the target mobile application and based on spatial information includes:
for each target mobile application, the cloud platform judges whether a space information change increment of a target terminal corresponding to the target mobile application is larger than or equal to a preset space information change threshold of the target mobile application.
Optionally, the tracking, by the cloud platform, the change of the spatial information of each target terminal to obtain the change condition of the spatial information of each target terminal includes:
tracking the current space information change of each target terminal to obtain the position area of each target terminal;
for each target mobile application, the cloud platform judging whether the spatial information change condition of the target terminal corresponding to the target mobile application meets a judgment condition preset by the target mobile application and based on spatial information includes:
for each target mobile application, the cloud platform judges whether a position area, into which a target terminal corresponding to the target mobile application enters, belongs to a position area preset by the target mobile application.
Optionally, the cloud platform triggers subsequent operations related to each target mobile application, including:
and the cloud platform informs the target mobile application of the change condition of the spatial information of the target terminal corresponding to the target mobile application.
Optionally, the cloud platform triggers subsequent operations related to each target mobile application, including: the method comprises the steps that a cloud platform takes spatial information of a target terminal corresponding to a target mobile application as a variable query condition, and when the change of the query condition meets a preset condition, the query of relevant information of the target mobile application is triggered;
and pushing the query result to a target terminal corresponding to the target mobile application.
Optionally, the cloud platform triggers subsequent operations related to each target mobile application, including:
and judging whether the target terminal corresponding to the target mobile application is allowed to operate or access the data with the preset authority.
Another aspect of the present invention further provides a cloud platform, including:
the spatial information synchronization module is used for acquiring the current spatial information of each target terminal; the spatial information indicates a position of the target terminal;
the target terminal is in communication connection with the cloud platform; the target terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the target terminal;
the space-time information change tracking module is used for tracking the current space information of each target terminal obtained by the space information obtaining module so as to obtain the change condition of the space information of each target terminal;
the spatial information change arbitration module is used for acquiring the system time information of the target terminal, and the time information indicates the current system time of the target terminal; the system comprises a space information change tracking module, a time information change tracking module and a judgment module, wherein the space information change tracking module is used for judging whether to trigger subsequent operations related to different target mobile applications according to preset judgment conditions based on space information and time information of the different target mobile applications, the space information change tracking module obtains space information change conditions of target terminals corresponding to the different target mobile applications, and the time information.
Optionally, the space-time information change arbitration module includes a determining unit and a triggering unit:
for each target mobile application, the judging unit is configured to judge whether a change condition of spatial information of a target terminal corresponding to the target mobile application meets a preset arbitration condition based on spatial information for the target mobile application;
for each target mobile application, the judging unit is further configured to judge, by the space-time information change arbitration module, whether time information of the target terminal corresponding to the target mobile application is within a preset time range;
a triggering unit, configured to trigger an operation related to the target mobile application when the result determined by the determining unit is that both are satisfied; and if the judgment result of the judgment unit is that either one of the mobile applications is not satisfied, not triggering the operation related to the target mobile application.
Optionally, the spatial information change tracking module is configured to compare the current spatial information of each target terminal with spatial information of each target terminal obtained before a preset time interval, and obtain a change increment of the spatial information of each target terminal;
the space-time information change arbitration module is specifically configured to: and for each target mobile application, judging whether the space information change increment of a target terminal corresponding to the target mobile application is larger than or equal to a preset space information change threshold of the target mobile application.
Optionally, the spatial information change tracking module is specifically configured to:
tracking the current space information change of each terminal to obtain the position area of each terminal;
the space-time information change arbitration module is specifically configured to:
and for each target mobile application, judging whether a position area entered by a target terminal corresponding to the target mobile application belongs to a position area preset by the target mobile application.
Optionally, the cloud platform further includes a pushing module, and the space-time information change arbitration module is specifically configured to: determining whether to trigger the pushing module according to a judgment condition based on spatial information and time information respectively preset by different target mobile applications, spatial information change conditions of target terminals respectively corresponding to the different target mobile applications obtained by the spatial information change tracking module, and the obtained time information;
and the pushing module is used for notifying the space information change condition of the target terminal corresponding to the target mobile application after being triggered by the space-time information change arbitration module.
Optionally, the cloud platform further includes a persistent query module;
the spatial information change arbitration module is specifically configured to: the space-time information change arbitration module is specifically configured to: determining whether to trigger the continuous query module according to a judgment condition based on spatial information and time information respectively preset by different target mobile applications, spatial information change conditions of target terminals respectively corresponding to the different target mobile applications obtained by the spatial information change tracking module, and the obtained time information; and the continuous query module is used for triggering query on the relevant information of the target mobile application in a database by taking the space information of the target terminal corresponding to the target mobile application as a variable query condition after being triggered by the space-time information change arbitration module, and pushing a query result to the target terminal corresponding to the target mobile application when the change of the query condition meets a preset condition.
Optionally, the cloud platform further includes a rights management module;
the spatial information change arbitration module is specifically configured to: the space-time information change arbitration module is specifically configured to: determining whether to trigger the authority management module according to a judgment condition based on spatial information and time information respectively preset by different target mobile applications, spatial information change conditions of target terminals respectively corresponding to the different target mobile applications obtained by the spatial information change tracking module, and the obtained time information; and the authority management module is used for judging whether the target terminal corresponding to the target mobile application is allowed to operate or access the data with the preset authority or not based on the preset data access authority after being triggered by the space-time information change arbitration module.
Another aspect of the present invention further provides a terminal, including:
the space-time information acquisition module is used for acquiring the current space information of the terminal; the spatial information is used for indicating the position of the terminal;
the terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the terminal;
the spatial information change tracking module is used for tracking the current spatial information of the terminal, which is obtained by the spatial information obtaining module, so as to obtain the change condition of the spatial information of the target terminal;
the space-time information change arbitration module is used for acquiring the system time information of the terminal, and the time information indicates the current system time of the terminal; and determining whether to trigger subsequent operations related to the plurality of target mobile applications according to arbitration conditions respectively preset by different target mobile applications and based on spatial information and time information, the spatial information change condition of the terminal and the time information.
Another aspect of the present invention further provides a terminal, including:
the space-time information acquisition module is used for acquiring the current space information of the terminal; the spatial information is used for indicating the position of the terminal;
the terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the terminal; the terminal is in communication connection with the cloud platform, and the spatial information is synchronized to the cloud platform;
the spatial information change tracking module is used for tracking the current spatial information of the terminal, which is obtained by the spatial information obtaining module, so as to obtain the change condition of the spatial information of the target terminal;
the space-time information change arbitration module is used for acquiring the system time information of the terminal, and the time information indicates the current system time of the terminal; and determining whether to trigger subsequent operations related to the plurality of target mobile applications on the terminal or the cloud platform according to a preset arbitration condition based on spatial information and time information of different target mobile applications, a spatial information change condition of the terminal and the time information.
Optionally, the terminal or the cloud platform further includes a push module, and the space-time information change arbitration module is specifically configured to: determining whether to trigger the push module according to a judgment condition respectively preset by different target mobile applications based on spatial information and time information and a spatial information change condition of the terminal obtained by the spatial information change and time information tracking module;
and the pushing module is used for notifying the space information change condition of the terminal to the target mobile application after being triggered by the space-time information change arbitration module.
Optionally, the terminal or the cloud platform further includes a right management module;
the space-time information change arbitration module is specifically configured to: determining whether to trigger the authority management module according to a judgment condition respectively preset by different target mobile applications and based on spatial information and time information, and a spatial information change condition and time information of the terminal obtained by the spatial information change tracking module; and the authority management module is used for judging whether the terminal is allowed to operate or access the data with the preset authority or not based on the preset data access authority after being triggered by the space information change arbitration module.
Optionally, the terminal or the cloud platform may further include a persistent query module;
the space-time information change arbitration module is specifically configured to: determining whether to trigger the continuous query module according to a judgment condition based on spatial information and time information respectively preset by different target mobile applications and a spatial information change condition and time information of the terminal obtained by the spatial information change tracking module; and the continuous query module is used for triggering query on the relevant information of the target mobile application in the database by taking the spatial information of the terminal as a variable query condition after being triggered by the spatial information change arbitration module, and pushing a query result to the terminal when the change of the query condition meets a preset condition.
In another aspect, the present invention further provides a cloud platform, where the cloud platform includes:
a processor and a readable storage medium, the readable storage medium storing a program, the processor being configured to execute the program, when executed, performing the steps of:
obtaining system time information of each target terminal and current space information of each target terminal; the spatial information indicates a position of the target terminal; the target terminal is in communication connection with the end cloud platform; the target terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the target terminal;
tracking the change of the spatial information of each target terminal to obtain the change condition of the spatial information of each target terminal;
and determining whether to trigger subsequent operations related to different target mobile applications according to arbitration conditions based on spatial information and time information respectively preset by the different target mobile applications, and spatial information change conditions and time information of target terminals respectively corresponding to the different target mobile applications.
Optionally, determining whether to trigger subsequent operations related to different target mobile applications according to a preset arbitration condition based on spatial information and time information for different target mobile applications and spatial information change conditions and time information of target terminals corresponding to the different target mobile applications, respectively, includes:
for each target mobile application, judging whether the spatial information change condition of a target terminal corresponding to the target mobile application meets a judgment condition preset by the target mobile application and based on spatial information;
for each target mobile application, judging whether the time information of a target terminal corresponding to the target mobile application is in a preset time range;
if both are satisfied, triggering an operation related to the target mobile application;
if either is not satisfied, no action associated with the target mobile application is triggered.
The invention also provides a terminal cloud coordination device, which comprises:
a processor and a readable storage medium, the readable storage medium storing a program, the processor being configured to execute the program, when executed, performing the steps of:
obtaining time information and current spatial information of the device; the time information indicates a current system time of the apparatus; the spatial information is used for indicating the position of the device;
wherein the device is in communication connection with a cloud platform; the device is installed with a target mobile application; the target mobile application needs to acquire spatial information of the device;
tracking current spatial information of the device to obtain the change condition of the spatial information of the device; and determining whether to trigger subsequent operations related to different target mobile applications according to the preset arbitration conditions based on the spatial information and the time information of different target mobile applications, the spatial information change condition of the device and the time information.
Yet another aspect of the present invention provides a terminal comprising a radio frequency RF circuit, an input unit, a readable memory, a processor, a power supply, and a global positioning system GPS module, wherein:
the RF circuit is used for transceiving communication signals;
the display unit is used for displaying a user interaction interface;
the input unit is used for receiving input numeric or character information;
the readable storage medium is used for storing programs and interface information of the preset number of the terminals;
the power supply is used for supplying power to the terminal;
the GPS module is used for acquiring the spatial information of the terminal;
the processor is used for executing the program, and when the program is executed, the following steps are completed:
obtaining current spatial information of the terminal; the spatial information is used for indicating the position of the terminal;
the terminal is in communication connection with the cloud platform; the terminal is provided with a target mobile application; the target mobile application needs to acquire the spatial information of the terminal;
tracking the current spatial information of the terminal to obtain the change condition of the spatial information of the terminal; and determining whether to trigger subsequent operations related to different target mobile applications according to the preset arbitration conditions based on the spatial information of the different target mobile applications and the spatial information change condition of the terminal.
Optionally, the determining, according to a preset arbitration condition based on spatial information for different target mobile applications and a spatial information change condition of the terminal, whether to trigger a subsequent operation related to the different target mobile applications includes:
for each target mobile application, judging whether the change condition of the spatial information of the terminal meets a preset arbitration condition based on the spatial information of the target mobile application;
if yes, triggering subsequent operations related to the target mobile application;
if not, not triggering the subsequent operation related to the target mobile application.
According to the technical scheme, the terminal cloud cooperation platform obtains the spatial information of the connected terminals, so that the terminal cloud cooperation platform can support the user spatial data originally, and conducts arbitration according to the change of the spatial information and arbitration conditions based on the spatial information and corresponding to different target mobile applications to shield uninteresting changes, and therefore relevant subsequent operations of the mobile applications are triggered, diversified requirements of the mobile applications on the spatial information are better met, and the mobile applications are relatively simple to develop.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. It should be noted that, based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without any inventive step are within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a system application scenario provided by an embodiment of the present invention, as shown in fig. 1, in the end cloud collaboration platform of the present invention, an end is a mobile end, and a cloud is a cloud end, a basic idea of the end cloud collaboration platform is that data synchronization between the mobile end and the cloud end (cloud platform) is automatically processed by the platform, a typical data consistency model in mobile application, a concurrency control and transaction model are supported, a complex data flow and software and hardware configuration process are hidden from a mobile application developer, and a purpose of greatly simplifying mobile application development is achieved.
The method aims at the problems that in the prior art, the support of a terminal cloud cooperation platform on the spatial data of a user is very small, the terminal cloud cooperation platform stays at an application layer, and no native support exists at all, so that the mobile application is complex, inefficient and lack of optimization when acquiring, storing, inquiring and managing the information. The specific embodiment of the invention aims to provide a convenient, flexible and efficient application development platform based on user space information for mobile application developers through cooperative work among end cloud platforms.
The end cloud platform of the embodiment of the invention provides a plurality of modules aiming at the spatial information of the user for a mobile application developer, and when the specific mobile application is deployed on the platform, the modules can be called according to the implementation logic of the application to form a unique data path of each mobile application.
Fig. 1 is a schematic diagram of an application scenario of a cloud platform at a mobile terminal according to an embodiment of the present invention, as shown in fig. 1, an a. mobile terminal system spatial information input is newly added at the mobile terminal; B. the system comprises a mobile terminal space information change arbitration module, a data authority management module and a C-based authority management component, wherein the data authority management module is added with the space data;
a D-user historical space information database is added at the cloud end; E. the cloud space information change arbitration module; F. the system comprises a continuous query management module of a cloud database, and a G-authority management component based on spatial data is added in a data authority management module;
in the end cloud cooperation platform assembly, an existing end cloud data synchronization module is improved, and an H-optimized spatial data synchronization accessory is added.
The functions of the newly added modules are roughly introduced as follows:
A. acquiring space information or time information of a mobile end system, namely seamlessly introducing the current space information or time information of a user into an end cloud cooperation platform system and delivering the current space information or time information to a mobile application on a platform for use;
a (mobile terminal) space information or time information change arbitration module: receiving the setting of the mobile application, tracking the input of the spatial change information of the mobile end system, shielding the uninterested (too small, too large or other reasons) spatial change of each specific mobile application on the platform, and providing the appropriate spatial information or time information change for the mobile application or the corresponding authority management component;
the authority management based on the space data of the mobile terminal receives the current space information or time information of the user and judges whether the current user has authority to access the data or not according to the current space information or time information;
D. user historical spatial database: a historical space database of a user is maintained at the cloud and is automatically synchronized with the space information or time information data of the mobile terminal user, historical data are provided for mobile application which is allowed by the user to be used for inquiring and data mining, and the value of a terminal cloud cooperation platform is improved;
a (cloud) space information or time information change arbitration module, which receives current space information or time information (the time information can also be obtained by the cloud according to the current system time in the network) of a user sent by a mobile terminal, shields uninteresting (too small, too large or other reasons) space changes of each specific mobile application on the platform, and provides proper space information or time information change for a cloud database corresponding to the mobile application for further processing (such as continuous query or cloud data authority management);
a continuous query management module (of the cloud database) for managing continuous query of the mobile application to the cloud database by taking current spatial information or time information (arbitrated) of a user as input;
(cloud) spatial data-based rights management: receiving current space information or time information of a user, and judging whether the current user has the authority to access cloud data or not according to the current space information or time information;
H. the optimized spatial data synchronization accessory utilizes the specific properties of user spatial data, such as orderliness, continuity and the like, and improves the data synchronization technology and consistency model of the existing end cloud coordination platform aiming at the special data, so that the user spatial data of a mobile end and a cloud end can be more effectively and automatically synchronized.
A possible connection between them is schematically shown in fig. 1.
It should be noted that the above modules are functional modules added to the end cloud collaboration platform for user space data. When the end cloud cooperation platform is constructed, only parts of the end cloud cooperation platform can be selected to be deployed, and flexible and various implementation modes can be provided for mobile application development due to diversified module settings. When a specific mobile application is developed on the platform, an application developer can call the modules according to requirements to form a unique data path of the application developer. In one embodiment, for better usability, a default spatial information or temporal information path may be provided, which is described in the following, when the mobile application is deployed in the mobile terminal, if a user authorizes the terminal cloud collaboration platform and allows access to user spatial data, the terminal cloud collaboration platform automatically configures input of spatial information or temporal information, synchronizes the spatial information or temporal information with the cloud terminal, and automatically synchronizes to the cloud terminal user historical spatial database (spatial information storage in fig. 1), so as to form a data path.
The cloud, the terminal and the whole system mentioned in fig. 1 are described in detail below.
Fig. 2a is a system structure diagram of a terminal cloud collaboration platform corresponding to the present invention, which includes a 200 terminal side and a 110 cloud platform, the 200 terminal side includes a plurality of terminals for constructing the terminal cloud collaboration platform system, where the terminals are mobile devices of various forms, including mobile phones, tablets, PDAs (Personal Digital assistants), vehicle-mounted terminals, wearable devices, smart terminals, and the like. Theterminals 11, 12, 13 are only exemplarily shown in fig. 2 a. In one embodiment, the 110 cloud platform may be implemented by a computer server or a cluster server composed of a plurality of servers.
Corresponding to the first embodiment of the present invention, theterminals 11, 12, and 13 are configured to obtain respective current spatial information; the spatial information here may be the positioning information of the user acquired by the terminal, or may be other information related to the user position. And synchronizing the spatial information of the user to the cloud platform, wherein the synchronization process can be that the terminal periodically acquires and sends the spatial information to the 110 cloud platform, or the spatial information can be actively acquired by the 110 cloud platform, or the spatial information can be actively provided by the user.
The terminal can be respectively connected with the cloud platform through a wireless network; as shown in fig. 2a, the terminals in the first embodiment of the present invention are all installed or can be used to install the terminal cloud collaboration platform development mobile application based on the present invention, and the types and the number of the mobile applications installed on the terminals may be different.
The system comprises a 110 cloud platform, a service center and a service center, wherein the 110 cloud platform is used for tracking the change of the spatial information of each terminal in the system so as to obtain the change condition of the spatial information of each terminal; the spatial information change condition can be various, and can be tracking the current spatial information change of the terminal to obtain the position area where the terminal enters; for example, the current location may be a city where the terminal is located, or a street where the terminal is located, and it is determined whether the terminal user is at home or at school.
The spatial information change can also be the change range of the spatial information of each target terminal obtained by comparing the current spatial information of the terminal with the spatial information of the terminal obtained before the preset time interval; in one embodiment may be: as compared with the last time position information, the time interval is moved by 5 km, wherein the preset time interval is a space information acquisition interval set by a mobile application developer, because the time interval for acquiring space information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included.
The 110 cloud platform determines whether to trigger subsequent operations related to the mobile application based on the arbitration condition of the spatial information and the spatial information change condition of the terminal.
The determination condition of the spatial information is a spatial information determination condition set by a mobile developer according to the characteristics of a mobile application to be developed, so that different mobile applications can have different spatial determination conditions, if the determination condition can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the determination condition does not exceed the threshold, changes of the spatial information are shielded, and other related operations are not triggered, the granularity of the determination condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute or one hour or one week.
The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of.
The subsequent operation is executed according to the setting of the application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different.
The subsequent operation may be triggering rights management: the system is used for receiving the current space information of the user and judging whether the user has the authority to access or operate the data or not according to the current space information. The authority can be a user access authority defined by the mobile application according to the user classification, and can also be a user authority set by the user. The authority data, such as where and when the user can access or operate the data, can be set by the user in the mobile application.
The follow-up action may be to trigger a persistent query: and taking the current spatial information of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile terminal. Optionally, the system allows the mobile application to set a continuous query trigger frequency or duration, and the continuous query is ended after a certain duration is reached or the upper limit of the continuous query times is reached, so as to provide more flexibility for mobile application development. For example, when it is determined that the terminal has entered a preset tourist attraction, the current position of the terminal is obtained every ten minutes within a certain time, and information related to the tourist attraction is pushed to the user based on the tourist attraction near the terminal position.
The subsequent operation may also be triggering pushing, and is used for notifying the mobile application of the situation of the change of the spatial information of the terminal corresponding to the mobile application after the change of the spatial information meets the preset condition.
The subsequent triggering process is set by a mobile application developer according to the developed mobile application characteristics, and the implementation position of the subsequent operation can be set at different positions of the system according to requirements, such as being executed on a cloud platform or a terminal. Furthermore, the tracking of the spatial information change and the arbitration of the spatial information change can also be performed at the terminal, which is generally suitable for performing some simple arbitration of the change with a small amount of data required.
The 110 cloud platform can also be used for storing user historical spatial information. Specifically, the history record is saved for the user space information obtained each time. The storage location may also be stored at the terminal, or both sides, for example, the terminal stores a small amount of recent history data, and the cloud may be used to store a large amount of user history data. The storage of the user historical space information is an optional function of the cloud or the terminal.
Besides the current spatial information, the mobile application may need incremental comparison or analysis of the historical spatial information of the user, and perform data analysis or even data mining on the historical spatial information of the user, so that the historical spatial information of the user is stored, historical data is provided for the mobile application which obtains permission of the user for query and data mining, the value of a cloud collaborative platform at the end is improved, and the mobile application can be used for assisting in more complex spatial information change judgment; the historical space information is used for recording the historical space data of the user, so that the historical time can be combined for storage and recording.
Fig. 2b is a schematic structural diagram of a terminal cloud platform according to an embodiment of the present invention, which includes aterminal side 200 and acloud platform 110, where theterminal side 200 may be one or more terminal devices with different forms, and theterminal side 200 and thecloud platform 110 together form the terminal cloud platform, where the terminal is a mobile device with various forms, including a mobile phone, a tablet, a PDA (Personal Digital Assistant), a vehicle-mounted terminal, a wearable device, an intelligent terminal, and the like. In one embodiment, the 110 cloud platform may be implemented by a computer server or a cluster server composed of a plurality of servers.
The terminals of theterminal side 200 are all installed or can be used for installing terminal cloud collaboration platforms based on the invention to develop mobile applications, and the types and the number of the mobile applications installed on the terminals can be different. The terminals of theterminal side 200 are each provided with: 1204 spatial information acquisition module, 1206 spatial information synchronization module; besides the above modules, the terminal may further optionally include: 1208 a space information change tracking module, 1203a space information change arbitration module, 1201 a space information authority management module, 1202 a continuous query module, 1206 a space information optimization module, 1207 a space information storage database and 1209 a pushing module.
Thecloud platform 110 is provided with the following modules: 1105 spatial information synchronization module, 1107 spatial information change tracking module, 1103 spatial information change arbitration module; in addition to the above modules, thecloud platform 110 may optionally set 1101 a rights management module, 1106 a spatial information storage database, 1102 a continuous query module, 1104 a spatial information optimization module, 1108 a push module.
The functions of the modules are as follows:
and a 1204 spatial information acquisition module, which seamlessly introduces the current spatial information of the terminal user into the cloud collaborative platform system, wherein the spatial information acquisition mode can be that the user actively submits, or that the mobile terminal periodically extracts through a certain frequency, or that the cloud terminal actively acquires according to a certain frequency. The spatial information is information related to the position of the user, and may be latitude and longitude information, or map coordinate information, etc. The acquired spatial information is provided to other modules.
And a 1206 spatial information synchronization module for acquiring the spatial information of the terminal from the 1204 spatial information acquisition module, and synchronizing the spatial data of the user between the mobile terminal and the cloud terminal to keep the spatial information consistency between the cloud terminal and the mobile terminal.
1208 spatial information change tracking module: and receiving 1204 the terminal space information sent by the space information acquisition module or acquiring the space information of the terminal from the space information acquisition module 1204, and tracking the change of the space information of the mobile terminal based on the obtained terminal space information. The terminal space information change can be various, the current space information change of the tracking terminal can be obtained, the position area where the terminal enters can be the city where the terminal is located, or the street where the terminal is located is obtained, and whether the terminal user is at home or at school at the moment is judged. The spatial information change may also be a comparison between the current spatial information of the terminal and the spatial information of the terminal obtained before a preset time interval, to obtain a change range of the spatial information of each target terminal, for example, the change range is moved by 5 km compared with the previous positional information, where the preset time interval is a spatial information acquisition interval set by a mobile application developer, because the time intervals for acquiring the spatial information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included.
1203 spatial information change arbitration module: determining whether to trigger subsequent operations related to the mobile application based on the arbitration condition of the spatial information and the spatial information change condition of the terminal obtained from the spatial information change tracking module 1208; the 1203 spatial information change arbitration module may be further divided into 1203a determining unit and 1203b triggering unit as shown in fig. 3a, where the 1203a determining unit is configured to determine whether a spatial information change condition of a target terminal corresponding to the target mobile application meets a preset spatial information-based arbitration condition for the target mobile application; 1203b triggering unit, configured to trigger subsequent operations related to the target mobile application if the result determined by the 1203a determining unit is satisfied; and if the judging result of the 1203a judging unit is not satisfied, not triggering subsequent operations related to the target mobile application.
When a mobile developer calls 1203a spatial information change arbitration module, a decision condition of spatial information is set according to the characteristics of a mobile application to be developed, so that different mobile applications can have different spatial decision conditions, if the decision condition can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the decision condition does not exceed the threshold, the change of the spatial information is shielded, other related operations are not triggered, the granularity of the decision condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute, one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of.
The subsequent operations triggered by the 1203b triggering unit are executed according to the settings of the application developer, so that the subsequent operations triggered after the spatial information change arbitration is performed by different mobile applications are different. The subsequent operation may be triggering the call of other modules on the peer cloud platform, such as 1201 space information authority management module, 1202 continuous query module, 1209 push module, or triggering the mobile application to query the data in the cloud database and push the data to the terminal, or triggering corresponding modules of other clouds, such as 1101 authority management module, 1106 space information storage database, 1102 continuous query module, 1108 push module; the 1203 space information change arbitration module of the mobile terminal is an optional module of the terminal cloud platform, when the cloud is provided with the 1103 space information change arbitration module, the terminal can be not provided with the above modules, space information change arbitration is placed at the cloud to be executed, the terminal and the cloud can also be provided with the above modules, 1203 space information change arbitration module of the terminal is used for executing simple change arbitration with small required data volume, 1103 space information change arbitration module of the cloud is used for executing complex change arbitration with large required computation amount or change arbitration with more related historical data, or the cloud terminal can be provided with the above modules, mobile application developers can select the modules according to needs when calling, and different requirements of different mobile application developers can be met. 1208, the space information change tracking module is used for providing arbitration information for the 1203 space information change arbitration module, and therefore, the space information change tracking module is generally configured to match the 1203 space information change arbitration module, that is, the terminal is provided with the 1203 space information change arbitration module, and the space information change tracking module is also provided 1208 at the same time.
The 1201 authority management module is used for receiving current spatial information of a user and judging whether the user has authority to access or operate data or not according to the current spatial information, wherein the judgment can be carried out based on the setting of an application developer on access authority, such as only allowing the access to specific data at a specific position, only allowing the access to specific data at a specific time period, and only allowing the access to data when the specific time is at the specific position; the data can be cloud data or application related data, and when the user does not have the application data access right, the application cannot be triggered. The 1201 right management module can trigger the call after the 1203 spatial information change arbitration module or 1103 spatial information change arbitration module arbitrates the spatial information change. The above-mentioned call is not necessarily a triggering step after the 1203 spatial information change arbitration module or 1103 spatial information change arbitration module arbitrates the spatial information change, but can be flexibly selected according to the requirements of different mobile application developers.
1207 spatial information storage database: except for the requirement of current spatial information, the mobile application may need incremental comparison or analysis of the historical spatial information of the user, and perform data analysis or even data mining on the historical spatial information of the user, so that a 1207 spatial information storage database of one user may be maintained at the mobile terminal, historical data is provided for the mobile application which obtains user permission for query and data mining, and the value of the terminal cloud cooperative platform is improved, and the spatial information change tracking module 1208/1107 may also be assisted in judgment of more complex user spatial information change, because the storage capacity of the mobile terminal is limited, the spatialinformation storage database 1207 of the mobile terminal may only store a small amount of historical spatial information according to actual needs, and is used for meeting the requirement of small amount of data processing at the mobile terminal side of the terminal cloud cooperative platform; the historical space information is used for recording the historical space data of the user, so that the historical time can be combined for storage and recording.
And the 1202 continuous query module is used for triggering and calling after the 1203 spatial information change arbitration module or the 1103 spatial information change arbitration module decides the spatial information change, and the calling is not necessarily a triggering step after the 1203 spatial information change arbitration module or the 1103 spatial information change arbitration module decides the spatial information change, but can be flexibly selected according to the requirements of different mobile application developers. And taking the current spatial information of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile terminal. The platform simultaneously allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility.
The 1205 optimized spatial information synchronization module utilizes the specific properties of the real spatial information of the user, such as sequence, continuity and the like, and improves the data synchronization technology and consistency model of the existing end cloud cooperation platform aiming at the special data, so that the spatial data of the user at the mobile end and the cloud end can be more effectively and automatically synchronized.
1209, a push module, configured to trigger a call after the 1203 space information change arbitration module or 1103 space information change arbitration module decides a space information change, where the call is not necessarily a step triggered after the 1203 space information change arbitration module or 1103 space information change arbitration module decides a space information change, but may be flexibly selected according to requirements of different mobile application developers. The space information change arbitration module is used for notifying the mobile application of the change situation of the space information of the terminal corresponding to the mobile application after being triggered, that is, when the space informationchange arbitration module 1203 or 1103 space information change arbitration module judges that the space information change meets the preset condition, the 1209 push module is triggered, and the 1209 push module notifies the corresponding mobile application of the change situation of the space information of the terminal.
1105 a space information synchronization module, configured to obtain space information of the user sent by the terminal, so as to maintain consistency of the space information between the cloud and the mobile terminal, where the obtained user space information may be the received user space information sent by the terminal 1206 space information synchronization module.
1107 spatial information change tracking module: and receiving 1105 terminal space information sent by the space information synchronization module or acquiring 1204 space information from the space information acquisition module, and tracking the change of the mobile terminal space information based on the acquired terminal space information. Wherein 1107 spatial information changes tracking module and tracks terminal spatial information and changes can have the multiple, can be that the current spatial information who tracks the terminal changes, acquires the position region that the terminal got into can be the city that the acquisition terminal was located, perhaps acquires the street that the terminal was located, judges whether terminal user is at home or at school etc. this moment. The 1107 spatial information change tracking module may also compare the current spatial information of the terminal with the spatial information of the terminal obtained before the preset time interval, and obtain the change range of the spatial information of each target terminal, for example, the change range is moved by 5 km compared with the previous position information, where the preset time interval is a spatial information acquisition interval set by a mobile application developer, because the time intervals for acquiring the spatial information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included.
1103 space information change arbitration module: whether to trigger a subsequent operation related to the mobile application is determined based on the arbitration condition of the spatial information and the spatial information change condition of the terminal obtained from the 1107 spatial information change tracking module.
The 1103 spatial information change arbitration module may be further divided into a 1103a determination unit and a 1103b trigger unit as shown in fig. 3b, where the 1103a determination unit is configured to determine whether a spatial information change condition of a target terminal corresponding to the target mobile application satisfies a preset spatial information-based arbitration condition for the target mobile application; 1103b trigger unit, configured to trigger, if the result determined by the 1103a determining unit is satisfied, a subsequent operation related to the target mobile application; and if the judgment result of the 1103a judgment unit is not satisfied, not triggering the subsequent operation related to the target mobile application.
Optionally, in an embodiment, the change arbitration modules of the cloud and the mobile terminal may cooperate with each other or may work independently, depending on the application scenario. For example, "you move 1000 meters and me triggers", this condition is very simple, and can be put at the mobile terminal; however, for example, "you move to the place that has passed 1 year ago and i trigger", this condition is complicated, and it is necessary to obtain spatial data of you a year ago, and it is likely that this data is in the cloud, so we should use the arbitration module in the cloud accordingly. If the condition is "you moved 1000 meters and this was over 1 year ago", then it is likely that the two modules need to cooperate. Of course, under this condition, the arbitration may be performed completely by the cloud according to the strength of the computing power of the cloud.
Colloquially, the 1103 spatial information change arbitration module is a general gate, and the change that does not meet the condition is filtered out, and the change that meets the condition is guided to be executed, for example, to trigger 1102 the continuous query module to perform continuous query.
When the mobile developer calls 1103 the arbitration module for determining the change of the spatial information, the mobile developer sets a condition for determining the change of the spatial information according to the characteristics of the mobile application to be developed, so that different mobile applications can have different conditions for determining the spatial information, if the condition for determining the change of the spatial information is that the user and the position recorded last time exceed a threshold of 10 kilometers, the subsequent operation is triggered, if the condition for determining the change of the spatial information does not exceed the threshold, the change of the spatial information is shielded, and other related operations are not triggered, the granularity of the condition for determining the change of the spatial information can be set by the mobile application developer according to the characteristics of the mobile application, and can be 10 kilometers or one hundred meters, and the change interval can be one minute, one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of.
The subsequent operations triggered by the trigger unit 1103b are executed according to the settings of the application developer, so that the subsequent operations triggered by different mobile applications after the spatial information change is arbitrated are different. The subsequent operation may be triggering the call of other modules on the peer cloud platform, such as 1101 an authority management module, 1106 a spatial information storage database, 1102 a continuous query module, 1108 a push module or triggering the mobile application to query data in the cloud database and push the data to the terminal, or triggering a corresponding module of the terminal, 1201 a spatial information authority management module, 1202 a continuous query module, 1209 a push module; when the cloud is provided with a 1103 space information change arbitration module, 1203 space information change arbitration module can be selectively arranged on the terminal, 1203 space information change arbitration module of the terminal is used for executing simple change arbitration with small required data volume, 1103 space information change arbitration module of the cloud is used for executing complex change arbitration with large required computation volume or change arbitration with more related historical data, or all space information change arbitration can be completely placed in the cloud for execution. When the cloud terminal is provided with 1103/1203 space information change arbitration modules, mobile application developers select the modules according to the requirements when calling, so that different requirements of different mobile application developers are met. The 1107 spatial information change tracking module is used for providing arbitration information for the 1103 spatial information change arbitration module, and therefore the 1107 spatial information change tracking module is usually configured in cooperation with the 1103 spatial information change arbitration module, that is, the terminal is provided with the 1103 spatial information change arbitration module, and the 1107 spatial information change tracking module is also provided at the same time.
And the 1101 authority management module is used for receiving the current space information of the user and judging whether the user has authority to access or operate the data according to the current space information. The received spatial information may come from 1103 spatial information change arbitration module, 1107 spatial information change tracking module, 1105 spatial information synchronization module, or other modules that may provide user location information. The authority can be a user access authority defined by the mobile application according to the user classification, and can also be a user authority set by the user. The authority data, such as where and when the user can access or operate the data, can be set by the user in the mobile application.
The determination here may be based on the setting of access rights by the application developer, such as allowing access to specific data only at a specific location, or allowing access to specific data only for a specific period of time, or allowing access to data only at a specific location at a specific time; the data can be cloud data or application related data, and when the user does not have the application data access right, the application cannot be triggered. The 1101 authority management module can trigger the call after the 1103 space information change arbitration module or 1203 space information change arbitration module arbitrates the space information change. The above-mentioned call is not necessarily a triggering step after the 1103 space information change arbitration module or 1203 space information change arbitration module arbitrates the space information change, but can be flexibly selected according to the requirements of different mobile application developers.
1106 spatial information storage database: in addition to the current spatial information, the mobile application may need incremental comparison or analysis of the historical spatial information of the user, and perform data analysis or even data mining on the historical spatial information of the user, so a cloud 1106 spatial information storage database needs to be set, historical data is provided for the mobile application which obtains user permission for query and data mining, the value of a cloud collaboration platform at the end is improved, and a 1208/1107 spatial information change tracking module can be assisted to judge the change of the more complex user spatial information; the historical space information is used for recording the historical space data of the user, so that the historical time can be combined for storage and recording.
And a 1102 continuous query module, configured to trigger a call after the 1103 space information change arbitration module or the 1203 space information change arbitration module arbitrates the space information change, where the call is not necessarily a triggering step after the 1103 space information change arbitration module or the 1203 space information change arbitration module arbitrates the space information change, but may be flexibly selected according to the requirements of different mobile application developers. The current spatial information (arbitrated) of the user is used as input, the spatial information can be from a 1103 spatial information change arbitration module, a 1107 spatial information change tracking module or a 1105 spatial information synchronization module, or other modules capable of providing user position information, continuous query of the mobile application to a mobile terminal database or a cloud database is managed, and the obtained data is returned to the mobile terminal. The platform allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application.
In an application scenario, a query is registered from a client to a database (i.e., a specific frame of the query is set up), and spatial information is set as a variable query condition, when the query condition changes, the 1103 spatial information change arbitration module finds that the change meets the condition (e.g., is large enough), and triggers middleware (e.g., the persistent query module 1102 in the cloud platform in the embodiment of the present invention) to re-trigger the query. Each change is queried only once, but for the user, a change that meets the conditions will trigger a query that appears to be persistent, requiring no triggering by the user, and is therefore referred to as a persistent query.
In one application scenario, a continuous query is made to find restaurants within 1 km of the square circle of the position of me after me moves 10 km. Then the arbitration condition for the variable query condition being "my location" arbitration is "whether the current location is greater than 10 kilometers from the location triggered by the last query". The 1103 spatial information change arbitration module compares the subsequent position change with the previous position change every time, and when the position change exceeds 10 kilometers, the position change is pushed to the continuous query module, namely the continuous query module is triggered to perform query.
In an application scenario, the 1103 spatial information change arbitration module determines that the mobile user has moved 10 kilometers, and the change of the location meets the trigger condition, and then triggers the continuous query module to perform continuous query. The continuous query module can continuously track the position change of the user within a certain time or frequency and correspondingly push the position change. For example, the position decision judges that you arrive in the west security, triggers the continuous query, and then the continuous query is that you arrive at which street and pushes corresponding contents, such as nearby related special snacks, special scenic spots and the like.
The 1104 optimized spatial information synchronization module utilizes the specific properties of the real spatial information of the user, such as ordering, continuity and the like, and improves the data synchronization technology and consistency model of the existing end cloud cooperation platform aiming at the special data, so that the spatial data of the user at the mobile end and the cloud end can be more effectively and automatically synchronized.
And the pushingmodule 1108 is used for triggering and calling after the 1103 space information change arbitration module or the 1203 space information change arbitration module decides the space information change, and the calling is not necessarily a triggering step after the 1103 space information change arbitration module or the 1203 space information change arbitration module decides the space information change, but can be flexibly selected according to the requirements of different mobile application developers. The space information change arbitration module is used for notifying the mobile application of the change situation of the space information of the terminal corresponding to the mobile application after being triggered by the space information change arbitration module, that is, when the 1103 space information change arbitration module or 1203 space information change arbitration module judges that the space information change meets the preset condition, the 1108 pushing module is triggered, and the 1108 pushing module notifies the corresponding mobile application of the change situation of the space information of the terminal.
It should be noted that the foregoing embodiments of the present invention are intended to provide an end cloud collaboration platform for providing native support for user space information for mobile application developers, and provide related modules for the user space information, and when a specific mobile application is deployed on the platform, the modules can be selectively invoked according to specific requirements of the application developer to form a unique data path of the application developer. Therefore, when designing the end cloud platform, the deployment position of the modules and which modules are deployed can be selected to deploy some or all of the modules according to the performance of the end cloud platform or the type of the application developer to be served, and the deployment position can also be selected to deploy some modules at both the mobile end and the cloud end, or only at the cloud end or only at the terminal for the flexibility of application development.
Fig. 4 is a flowchart of a method according to a first embodiment of the present invention, where the method according to the first embodiment of the present invention is as shown in the figure:
s101: acquiring current spatial information of each terminal in the system; the spatial information here may be the positioning information of the user acquired by the terminal, or may be other information related to the user position.
The main body for acquiring the information of the user space is an end cloud platform, namely, the terminal acquires the user space information, and synchronizes the space information to a cloud end after space information is acquired and optimized, or directly synchronizes the space information of the user to the cloud platform, the space information acquisition process can be that the terminal periodically acquires and synchronizes, and also can be that the cloud end actively acquires according to a certain frequency, or various information acquisition modes such as active submission by the user and the like.
S102: and tracking the change of the spatial information of each terminal in the system to obtain the change condition of the spatial information of each terminal.
The space information change condition can be various, the current space information change of the tracking terminal can be obtained, the position area where the terminal enters can be the city where the acquisition terminal is located, or the street where the acquisition terminal is located, and whether the terminal user is at home or at school at the moment is judged. The spatial information change may also be a comparison between the current spatial information of the terminal and the spatial information of the terminal obtained before a preset time interval, to obtain a change range of the spatial information of each target terminal, for example, the change range is moved by 5 km compared with the previous positional information, where the preset time interval is a spatial information acquisition interval set by a mobile application developer, because the time intervals for acquiring the spatial information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included. S102 may be executed at the cloud or at the terminal.
S103: and determining whether to trigger subsequent operations related to the mobile application based on the arbitration condition of the spatial information and the spatial information change condition of the terminal.
The determination condition of the spatial information is a spatial information determination condition set by a mobile developer according to the characteristics of a mobile application to be developed, so that different mobile applications can have different spatial determination conditions, if the determination condition can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the determination condition does not exceed the threshold, changes of the spatial information are shielded, and other related operations are not triggered, the granularity of the determination condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute or one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of. S103 may be executed at the cloud or at the terminal.
The subsequent operations are executed according to the settings of the application developer, so that the subsequent operations triggered after the spatial information change arbitration of different mobile applications may be different.
The subsequent operation may be S104: and pushing the spatial information, namely notifying the mobile application of the situation of the spatial information change of the terminal corresponding to the mobile application after the spatial information change meets a preset condition.
The subsequent operation may be S105: and triggering continuous query, taking the current spatial information (arbitrated) of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile terminal. The system allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application. For example, when it is determined that the terminal has entered a preset tourist attraction, the current position of the terminal is obtained every ten minutes within a certain time, and related information of the tourist attraction is queried based on the tourist attractions near the terminal position, and then the related information of the tourist attraction is pushed to the user.
In one embodiment, a query is registered from a client to a database (i.e., a specific frame of the query is constructed), and spatial information is set as a variable query condition, when the query condition changes, the 1103 spatial information change arbitration module determines that the change meets the condition (e.g., is large enough), and triggers middleware (e.g., the persistent query module 1102 in the cloud platform in the embodiment of the present invention) to re-trigger the query. Each change is queried only once, but for the user, a change that meets the conditions will trigger a query that appears to be persistent, requiring no triggering by the user, and is therefore referred to as a persistent query.
In one application scenario, a continuous query is made to find restaurants within 1 km of the square circle of the position of me after me moves 10 km. Then the arbitration condition for the variable query condition being "my location" arbitration is "whether the current location is greater than 10 kilometers from the location triggered by the last query". Each time the subsequent position change is judged to be compared with the previous time, and when the position change exceeds 10 kilometers, the position change is pushed to the continuous query module, namely the continuous query is triggered.
Optionally, in an application scenario, it is determined that the mobile user moves 10 km, and the change in location meets the trigger condition, and then the continuous query is triggered. And continuously tracking the position change of the user within a certain time or frequency, and correspondingly pushing. For example, it is determined that you have arrived in west 'an', a continuous query is triggered, and then the continuous query is that you have arrived at which street and then have corresponding content pushed to you, such as nearby related special snacks, special scenic spots, and the like.
The subsequent operation may be S106: and triggering authority management, wherein the authority management is used for receiving the current space information of the user and judging whether the user has authority to access or operate data according to the current space information.
Other operations, such as directly triggering the mobile application to query and access the cloud or terminal data and pushing information to the user according to the query result, may also be performed.
The subsequent triggering process is set by a mobile application developer according to the characteristics of the developed mobile application, and the execution position of the subsequent operation can be set at different positions of the system according to requirements, such as the execution on a cloud platform or the execution on a terminal.
Optionally, as shown by a dashed box S107 in the figure, the method may further include: and storing the user historical space information. Specifically, the history record is saved for the user space information obtained each time. The storage position can be stored at the terminal or at the cloud, or both sides of the terminal can be stored, for example, the terminal stores a small amount of recent historical data, and the cloud can be used for storing a large amount of user historical data.
Besides the current spatial information, the mobile application may need to perform incremental comparison or analysis on the historical spatial information of the user, perform data analysis or even data mining on the historical spatial information of the user, so that the historical spatial information of the user is stored, historical data is provided for the mobile application which obtains user permission for query and data mining, the value of a cloud collaborative platform at the end is improved, and the mobile application can also assist the S102 in more complex spatial information change judgment; the historical space information is used for recording the historical space data of the user, so that the historical time can be combined for storage and recording.
Fig. 2a is a system structure diagram of an end cloud collaboration platform corresponding to the present invention, and corresponding to the second embodiment of the present invention, theterminals 11, 12, and 13 are configured to obtain current spatial information of each terminal; the spatial information here may be the positioning information of the user acquired by the terminal, or may be other information related to the user position. And synchronizing the spatial information of the user to the cloud platform, wherein the synchronization process can be that the terminal periodically acquires and sends the spatial information to the 110 cloud platform, or the spatial information can be actively acquired by the 110 cloud platform, or the spatial information can be actively provided by the user.
The terminal can be respectively connected with the cloud platform through a wireless network; as shown in fig. 2a, the terminals in the second embodiment of the present invention are all installed or can be used to install the terminal cloud collaboration platform development mobile application based on the present invention, and the types and the number of the mobile applications installed on the terminals may be different.
The 110 cloud platform acquires system time information of each terminal, wherein the time information can be acquired by the 110 cloud platform from the terminal or system time information in a network; tracking the change of the spatial information of each terminal in the system to obtain the change condition of the spatial information of each terminal; the spatial information change condition can be various, and can be tracking the current spatial information change of the terminal to obtain the position area where the terminal enters; for example, the current location may be a city where the terminal is located, or a street where the terminal is located, and it is determined whether the terminal user is at home or at school.
The spatial information change can also be the change range of the spatial information of each target terminal obtained by comparing the current spatial information of the terminal with the spatial information of the terminal obtained before the preset time interval; in one embodiment may be: as compared with the last time position information, the time interval is moved by 5 km, wherein the preset time interval is a space information acquisition interval set by a mobile application developer, because the time interval for acquiring space information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included.
And the 110 cloud platform determines whether to trigger subsequent operations related to the mobile application based on the arbitration condition of the spatial information and the time information and the spatial information change condition and the time information of the terminal.
The condition for deciding the spatial information and the time information is the condition for deciding the spatial information and the time information set by a mobile developer according to the characteristics of the mobile application to be developed, so that different mobile applications can have different conditions for deciding the spatial information and the time information.
The granularity of the judgment condition can be set by a mobile application developer according to the characteristics of the mobile application, and can be 10 kilometers or one hundred meters, and the change interval can be one minute, one hour or one week.
The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of.
The time information arbitration condition may be a preset time period, that is, it is determined whether the current time of the user is within the preset time period, for example, some specific operations or information push of the mobile application can only be triggered on a holiday or a holiday, or some mobile applications do not allow operations or information push at night, it is necessary to determine whether the current time is within a preset allowed time range when the user initiates operations or the mobile application needs to push information to the user.
Triggering subsequent operations related to the mobile application when the conditions for arbitration of the temporal information and the spatial information are both satisfied. If any one of the operation conditions is not met, triggering of subsequent operation is not carried out.
The subsequent operation is executed according to the setting of the application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different.
The subsequent operation may be triggering rights management: the system is used for receiving the current space information of the user and judging whether the user has the authority to access or operate the data or not according to the current space information, wherein the authority can be the user access authority specified by the mobile application according to the user classification or the user authority set by the user. The authority data, such as where and when the user can access or operate the data, can be set by the user in the mobile application.
The follow-up action may be to trigger a persistent query: and taking the current spatial information of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile terminal. Optionally, the system allows the mobile application to set a continuous query trigger frequency or duration, and the continuous query is ended after a certain duration is reached or the upper limit of the continuous query times is reached, so as to provide more flexibility for mobile application development. For example, when it is determined that the terminal has entered a preset tourist attraction, the current position of the terminal is obtained every ten minutes within a certain time, and information related to the tourist attraction is pushed to the user based on the tourist attraction near the terminal position.
The subsequent operation may also be triggering pushing, and is used for notifying the mobile application of the situation of the change of the spatial information of the terminal corresponding to the mobile application after the change of the spatial information and the time information meets the preset condition.
The subsequent triggering process is set by a mobile application developer according to the developed mobile application characteristics, and the implementation position of the subsequent operation can be set at different positions of the system according to requirements, such as being executed on a cloud platform or a terminal. Furthermore, the tracking of the spatial information change and the arbitration of the spatial information change can also be performed at the terminal, which is generally suitable for performing some simple arbitration of the change with a small amount of data required.
The 110 cloud platform can also be used for storing user historical space and time information. Specifically, the historical record is saved by combining the user space information obtained each time with the time information. The storage location may also be stored at the terminal, or both sides, for example, the terminal stores a small amount of recent history data, and the cloud may be used to store a large amount of user history data. The storage of the user historical space and the time information is optional functions of the cloud or the terminal.
Besides the current spatial information, the mobile application may need incremental comparison or analysis of the historical spatial information of the user, and perform data analysis or even data mining on the historical spatial information of the user, so that the historical spatial information of the user is stored, historical data is provided for the mobile application which obtains permission of the user for query and data mining, the value of a cloud collaborative platform at the end is improved, and the mobile application can be used for assisting in more complex spatial information change judgment; the historical space information is used for recording the historical space data of the user, so that the historical time can be combined for storage and recording.
In order to provide a more flexible and diversified mobile application development environment for mobile developers, the above-mentioned change arbitration of space and time can also be set to be executable on the terminal side of the end cloud cooperation platform. The mobile application developer can flexibly set the mobile application execution logic according to the needs of the developer.
Fig. 2c is a schematic structural diagram of a terminal cloud platform according to a second embodiment of the present invention, which includes aterminal side 200 and acloud platform 110, where theterminal side 200 may be one or more terminal devices with different forms, and theterminal side 200 and thecloud platform 110 together form the terminal cloud platform, where the terminal is a mobile device with various forms, including a mobile phone, a tablet, a PDA (Personal Digital Assistant), a vehicle-mounted terminal, a wearable device, an intelligent terminal, and the like. In one embodiment, the 110 cloud platform may be implemented by a computer server or a cluster server composed of a plurality of servers.
The terminals of theterminal side 200 are all installed or can be used for installing terminal cloud collaboration platforms based on the invention to develop mobile applications, and the types and the number of the mobile applications installed on the terminals can be different. The terminals of theterminal side 200 are each provided with: 2204 space information acquisition module, 2206 space information synchronization module; besides the above modules, the terminal may further optionally include: the system comprises a 2208 space information change tracking module, a 2203 space-time information change arbitration module, a 2201 space information authority management module, a 2202 continuous query module, a 2206 space information optimization module, a 2207 space information storage database and a 2209 pushing module.
Thecloud platform 110 is provided with the following modules: 2105 a space information synchronization module, 2107 a space information change tracking module and 2103a space-time information change arbitration module; in addition to the above modules, thecloud platform 110 may optionally set 2101 a rights management module, 2106 a spatial information storage database, 2102 a persistent query module, 2104 a spatial information optimization module, 2108 a push module.
The functions of the modules are as follows:
2204, the space information acquisition module seamlessly introduces the current space information of the terminal user into the cloud collaborative platform system, and the space information acquisition mode can be that the user actively submits the space information, or the mobile terminal periodically extracts the space information through a certain frequency, or the cloud actively acquires the space information according to a certain frequency. The spatial information is information related to the user position, and may be latitude and longitude information, or map coordinate information. The acquired spatial information is provided to other modules.
2206 the spatial information synchronization module acquires the spatial information of the terminal from the 2204 spatial information acquisition module, and synchronizes the spatial data of the user between the mobile terminal and the cloud terminal so as to maintain the consistency of the spatial information between the cloud terminal and the mobile terminal.
2208 and the spatial information change tracking module: and receiving 2204 terminal space information sent by the space information acquisition module or acquiring space information of the terminal from the 2204 space information acquisition module, and tracking the change of the space information of the mobile terminal based on the obtained terminal space information. The terminal space information change can be various, the current space information change of the tracking terminal can be obtained, the position area where the terminal enters can be the city where the terminal is located, or the street where the terminal is located is obtained, and whether the terminal user is at home or at school at the moment is judged. The spatial information change may also be a comparison between the current spatial information of the terminal and the spatial information of the terminal obtained before a preset time interval, to obtain a change range of the spatial information of each target terminal, for example, the change range is moved by 5 km compared with the previous positional information, where the preset time interval is a spatial information acquisition interval set by a mobile application developer, because the time intervals for acquiring the spatial information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included.
2203, the space-time information change arbitration module: acquiring system time information of the terminal, and determining whether to trigger subsequent operations related to the mobile application based on the spatial information, the arbitration condition of the time information, the spatial information change condition of the terminal acquired from the 2208 spatial information change tracking module, and the acquired time information; the 2203 space-time information change arbitration module may be further divided into a 2203a judgment unit and a 2203b trigger unit as shown in fig. 7a, where the 2203a judgment unit is configured to judge whether the space information change condition and the time information of the target terminal corresponding to the target mobile application satisfy the arbitration condition preset by the target mobile application based on the space information and the time information; 2203b triggering unit, for triggering the subsequent operation related to the target mobile application if the result judged by the 2203a judging unit is satisfied at the same time; if any one of the judgment results of the 2203a judgment unit is not satisfied, the subsequent operation related to the target mobile application is not triggered.
When a mobile developer calls 2203 space-time information change arbitration module, the mobile developer sets arbitration conditions of space information and time information according to the characteristics of a mobile application to be developed, so that different mobile applications can have different space and time information arbitration conditions, if the arbitration conditions can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the user and the last recorded position do not exceed the threshold, the change of the space information is shielded, other related operations are not triggered, the granularity of the arbitration conditions can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute, one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of. The time information arbitration condition may be a preset time period, that is, it is determined whether the current time of the user is within the preset time period, for example, some specific operations or information push of the mobile application can only be triggered on a holiday or a holiday, or some mobile applications do not allow operations or information push at night, it is necessary to determine whether the current time is within a preset allowed time range when the user initiates operations or the mobile application needs to push information to the user.
The subsequent operation triggered by the 2203b trigger unit is executed according to the setting of an application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different. The subsequent operation can be triggering the calling of other modules on the opposite-end cloud platform, such as a 2201 space information authority management module, a 2202 continuous query module, a 2209 push module or triggering the mobile application to query the data in the cloud database and push the data to the terminal, or triggering corresponding modules of other clouds, such as a 2101 authority management module, a 2106 space information storage database, a 2102 continuous query module and a 2108 push module; the 2203 space-time information change arbitration module of the mobile terminal is an optional module of the terminal cloud platform, when the cloud terminal is provided with a 2103 space-time information change arbitration module, the terminal can be not provided with the modules, space information change arbitration is placed at the cloud terminal to be executed, the modules can be arranged at the terminal and the cloud terminal, the 2203 space-time information change arbitration module of the terminal is used for executing simple change arbitration with small required data volume, the 2103 space-time information change arbitration module of the cloud terminal is used for executing complex change arbitration with large required computation amount or related change arbitration with more historical data, the cloud terminal can also be provided with the modules, and mobile application developers can select the modules according to needs when calling the modules by themselves to meet different requirements of different mobile application developers. The 2208 space information change tracking module is used for providing arbitration information for the 2203 space-time information change arbitration module, and therefore the tracking module is usually configured to be matched with the 2203 space-time information change arbitration module, that is, the 2208 space information change tracking module is also configured when the terminal is provided with the 2203 space-time information change arbitration module.
2201 a rights management module for receiving the current spatial information of the user and determining whether the user has rights to access or operate the data according to the current spatial information, wherein the determination may be based on the setting of the access rights by the application developer, such as allowing only specific data to be accessed at a specific location, allowing only specific data to be accessed at a specific time period, and allowing only data to be accessed at a specific location at a specific time; the authority may also be an authority parameter set by the user. The data can be cloud data or application related data, and when the user does not have the application data access right, the application cannot be triggered. The 2201 authority management module can trigger calling after the 2203 space-time information change arbitration module or the 2103 space-time information change arbitration module arbitrates space information change. The above-mentioned call is not necessarily a triggering step after the 2203 space-time information change arbitration module or the 2103 space-time information change arbitration module arbitrates the space information change, but can be flexibly selected according to the requirements of different mobile application developers.
2207 spatial information storage database: except for the requirement of current spatial information, the mobile application may need incremental comparison or analysis of historical spatial information of a user, and perform data analysis or even data mining on the historical spatial information of the user, so that a 2207 spatial information storage database of the user can be maintained at a mobile terminal, historical data is provided for the mobile application which is allowed by the user to be used for query and data mining, the value of a terminal cloud cooperative platform is improved, and the judgment of the terminal cloud cooperative platform by a spatial information change tracking module for more complicated spatial information change of the user can be assisted 2208/2107; the historical space information is used for recording the historical space data of the user, so that the historical time can be combined for storage and recording.
And 2202 a continuous query module, configured to trigger a call after the 2203 space-time information change arbitration module or the 2103 space-time information change arbitration module arbitrates a change of the spatial information, where the call is not necessarily a trigger step after the 1203 space-time information change arbitration module or the 2103 space-time information change arbitration module arbitrates a change of the spatial information, but may be flexibly selected according to requirements of different mobile application developers. And taking the current spatial information of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile terminal. The platform simultaneously allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility.
2205 the optimized spatial information synchronization module utilizes the specific properties of the real spatial information of the user, such as ordering, continuity and the like, to improve the data synchronization technology and consistency model of the existing end cloud cooperation platform, so that the spatial information of the user at the mobile end and the cloud end can be synchronized more effectively and automatically.
The 2209 pushing module is used for triggering and calling after the 2203 space-time information change arbitration module or the 2103 space-time information change arbitration module performs space and time information change arbitration, and the calling is not necessary triggering step after the 2203 space-time information change arbitration module or the 2103 space-time information change arbitration module performs space and time information change arbitration, but can be flexibly selected according to the requirements of different mobile application developers. The space-time informationchange arbitration module 2203/2103 is used for notifying the mobile application of the change situation of the space information of the terminal corresponding to the mobile application after being triggered by the space-time information change arbitration module, that is, the space-time informationchange arbitration module 2203 or the space-time informationchange arbitration module 2103 triggers the 2209 push module when judging that the change of the space information and the time information meets the preset conditions, and the 2209 push module notifies the corresponding mobile application of the change situation of the space information of the terminal.
2105 the spatial information synchronization module obtains the spatial information of the user sent by the terminal to maintain the consistency of the spatial information between the cloud and the mobile terminal, where the obtained spatial information of the user may be the received spatial information of the user sent by the spatialinformation synchronization module 2206 of the terminal.
2107 spatial information change tracking module: and receiving 2105 the terminal space information sent by the space information synchronization module or acquiring the space information of the terminal from the 2204 space information acquisition module, and tracking the change of the space information of the mobile terminal based on the acquired space information of the terminal. The 2107 space information change tracking module can track the change of the space information of the terminal, can track the change of the current space information of the terminal, acquires the position area where the terminal enters, can acquire the city where the terminal is located, or can acquire the street where the terminal is located, and judges whether the terminal user is at home or at school at the moment. 2107 the tracking of the change of the spatial information by the spatial information change tracking module may also be comparing the current spatial information of the terminal with the spatial information of the terminal obtained before a preset time interval, and obtaining the change range of the spatial information of each target terminal, for example, the change range is moved by 5 km compared with the last time position information, where the preset time interval is a spatial information obtaining interval set by a mobile application developer, because the time intervals for obtaining the spatial information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included.
2103a space-time information change arbitration module: acquiring terminal system time information, and determining whether to trigger subsequent operations related to the mobile application based on the spatial information, the arbitration condition of the time information, the spatial information change condition of the terminal acquired from the 2107 spatial information change tracking module, and the terminal system time information. The time information may be acquired by the 110 cloud platform from a terminal, or may be acquired by the system time information in the network.
The 2103 space-time information change arbitration module can be further divided into 2103a determining unit and 2103b triggering unit as shown in fig. 7b, wherein the 1103a determining unit is configured to determine whether the space information change condition and the time information of the target terminal corresponding to the target mobile application satisfy the arbitration condition preset by the target mobile application based on the space and time information; 2103b triggering unit, for triggering the subsequent operation related to the target mobile application when the results judged by the 2103a judging unit are all satisfied; if any one of the judgment results of the 2103a judgment unit is not satisfied, the subsequent operation related to the target mobile application is not triggered.
When a mobile developer calls 2103a space-time information change arbitration module, the mobile developer sets a judgment condition of space and time information according to the characteristics of a mobile application to be developed, so that different mobile applications can have different space judgment conditions, if the judgment condition is that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the judgment condition does not exceed the threshold, the change of the space information is shielded, other related operations are not triggered, the granularity of the judgment condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute, one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of. The time information arbitration condition may be a preset time period, that is, it is determined whether the current time of the user is within the preset time period, for example, some specific operations or information push of the mobile application can only be triggered on a holiday or a holiday, or some mobile applications do not allow operations or information push at night, it is necessary to determine whether the current time is within a preset allowed time range when the user initiates operations or the mobile application needs to push information to the user.
The subsequent operation triggered by the 2103b trigger unit is executed according to the setting of an application developer, so that the subsequent operation triggered after the spatial information change arbitration is performed by different mobile applications is different. The subsequent operation may be triggering the call of other modules on the peer cloud platform, such as 2101 authority management module, 2106 spatial information storage database, 2102 continuous query module, 2108 push module, or triggering the mobile application to query the data in the cloud database and push the data to the terminal, or triggering a corresponding module of the terminal, 2201 spatial information authority management module, 2202 continuous query module, 2209 push module; when the cloud is provided with a 2103 space-time information change arbitration module, the terminal can be selectively provided with a 2203 space-time information change arbitration module, the 2203 space-time information change arbitration module of the terminal is used for executing simple change arbitration with small required data amount, the 2103 space-time information change arbitration module of the cloud is used for executing complex change arbitration with large required operation amount or related change arbitration with more historical data, and all space information change arbitration can be completely placed in the cloud for execution. When the cloud terminals are all provided with 2103/2203 space-time information change arbitration modules, mobile application developers select the modules according to the requirements when calling, so that different requirements of different mobile application developers are met. The 2107 space information change tracking module is used for providing arbitration information for the 2103 space-time information change arbitration module, and therefore the 2107 space information change tracking module is usually configured in a matching manner with the 2103 space-time information change arbitration module, namely the terminal is provided with the 2103 space-time information change arbitration module and is also provided with the 2107 space information change tracking module.
2101 authority management module for receiving the current spatial information of the user and determining whether the user has authority to access or operate the data according to the current spatial information. The received spatial information may come from 2103 space-time information change arbitration module, 2107 spatial information change tracking module, 2105 spatial information synchronization module, or other modules that can provide user location information.
The permission judgment here may be a judgment based on the setting of the access permission by the application developer, such as allowing access to specific data only at a specific location, or allowing access to specific data only for a specific period of time, or allowing access to data only when the specific location is at a specific time; the data can be cloud data or application related data, and when the user does not have the application data access right, the application cannot be triggered. The 2101 authority management module can be triggered and called after a 2103 space-time information change arbitration module or a 2203 space-time information change arbitration module arbitrates space information change. The above-mentioned call is not necessarily a triggering step after the 2103 space-time information change arbitration module or 2203 space-time information change arbitration module arbitrates the space information change, but can be flexibly selected according to the requirements of different mobile application developers.
2106 spatial information storage database: except for the need of current spatial information, the mobile application may need incremental comparison or analysis of historical spatial information of the user, and perform data analysis or even data mining on the historical spatial information of the user, so a cloud 2106 spatial information storage database needs to be set to provide historical data for the mobile application which obtains user permission for query and data mining, thereby improving the value of a cloud collaborative platform at the end, and also assisting 2208/2107 a spatial information change tracking module in judgment of more complex spatial information change of the user; the historical space information is used for recording the historical space data of the user, so that the historical time can be combined for storage and recording.
A 2102 continuous query module, configured to trigger a call after a time information change is arbitrated at 2103 space-time information change arbitration module or 2203 space-time information change arbitration module, where the call is not necessarily a trigger step after the 2103 space-time information change arbitration module or 2203 space-time information change arbitration module performs the space information change arbitration, but may be flexibly selected according to the requirements of different mobile application developers. The current spatial information (arbitrated) of the user is used as input, the spatial information can be from a 2103 space-time information change arbitration module, a 2107 spatial information change tracking module or a 2105 spatial information synchronization module, or other modules capable of providing user position information, continuous query of the mobile application to a mobile terminal database or a cloud database is managed, and obtained data are returned to the mobile terminal. The platform allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application.
In one embodiment, a query is registered from a client to a database (i.e., a specific frame of the query is constructed), and spatial information is set as a variable query condition, when the query condition changes, the 1103 spatial information change arbitration module determines that the change meets the condition (e.g., is large enough), and triggers middleware (e.g., the persistent query module 1102 in the cloud platform in the embodiment of the present invention) to re-trigger the query. Each change is queried only once, but for the user, a change that meets the conditions will trigger a query that appears to be persistent, requiring no triggering by the user, and is therefore referred to as a persistent query.
In one application scenario, a continuous query is made to find restaurants within 1 km of the square circle of the position of me after me moves 10 km. Then the arbitration condition for the variable query condition being "my location" arbitration is "whether the current location is greater than 10 kilometers from the location triggered by the last query". Each time the subsequent position change is judged to be compared with the previous time, and when the position change exceeds 10 kilometers, the position change is pushed to the continuous query module, namely the continuous query is triggered.
Optionally, in an application scenario, it is determined that the mobile user moves 10 km, and the change in location meets the trigger condition, and then the continuous query is triggered. And continuously tracking the position change of the user within a certain time or frequency, and correspondingly pushing. For example, it is determined that you have arrived in west 'an', a continuous query is triggered, and then the continuous query is that you have arrived at which street and then have corresponding content pushed to you, such as nearby related special snacks, special scenic spots, and the like.
2104 optimized space information synchronization module, by using the specific properties of the real space information of the user, such as order, continuity and the like, is improved on the data synchronization technology and consistency model of the existing end cloud cooperation platform, so that the user space data of the mobile end and the cloud end can be synchronized more effectively and automatically.
The 2108 pushing module is used for triggering and calling after the 2103 space-time information change arbitration module or the 2203 space-time information change arbitration module judges the change of the space information and the time information, and the calling is not necessarily a triggering step after the 2103 space-time information change arbitration module or the 2203 space-time information change arbitration module judges the change of the space information, but can be flexibly selected according to the requirements of different mobile application developers. The space information change arbitration module is used for notifying the mobile application of the space information change condition of the terminal corresponding to the mobile application after being triggered by the space information change arbitration module, namely when the 2103 space-time information change arbitration module or the 2203 space-time information change arbitration module judges that the space information change meets the preset condition, the 2108 push module is triggered, and the 2108 push module notifies the corresponding mobile application of the space information change condition of the terminal.
It should be noted that the foregoing embodiments of the present invention are intended to provide an end cloud collaboration platform for providing native support for user space information for mobile application developers, and provide related modules for the user space information, and when a specific mobile application is deployed on the platform, the modules can be selectively invoked according to specific requirements of the application developer to form a unique data path of the application developer. Therefore, when designing the end cloud platform, the deployment position of the modules and which modules are deployed can be selected to deploy some or all of the modules according to the performance of the end cloud platform or the type of the application developer to be served, and the deployment position can also be selected to deploy some modules at both the mobile end and the cloud end, or only at the cloud end or only at the terminal for the flexibility of application development.
Fig. 8 is a flowchart of a method according to a second embodiment of the present invention, where the method according to the second embodiment of the present invention is as shown in the figure:
s201: acquiring current spatial information of each terminal in the system; the spatial information here may be the positioning information of the user acquired by the terminal, or may be other information related to the user position.
The main body for acquiring the information of the user space is an end cloud platform, namely, the terminal acquires the user space information, and synchronizes the space information to a cloud end after space information is acquired and optimized, or directly synchronizes the space information of the user to the cloud platform, the space information acquisition process can be that the terminal periodically acquires and synchronizes, and also can be that the cloud end actively acquires according to a certain frequency, or various information acquisition modes such as active submission by the user and the like.
S202: and tracking the change of the spatial information of each terminal in the system to obtain the change condition of the spatial information of each terminal.
The space information change condition can be various, the current space information change of the tracking terminal can be obtained, the position area where the terminal enters can be the city where the acquisition terminal is located, or the street where the acquisition terminal is located, and whether the terminal user is at home or at school at the moment is judged. The spatial information change may also be a comparison between the current spatial information of the terminal and the spatial information of the terminal obtained before a preset time interval, to obtain a change range of the spatial information of each target terminal, for example, the change range is moved by 5 km compared with the previous positional information, where the preset time interval is a spatial information acquisition interval set by a mobile application developer, because the time intervals for acquiring the spatial information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included. S102 may be executed at the cloud or at the terminal.
S203: and acquiring system time information of the terminal, and determining whether to trigger subsequent operations related to the mobile application or not based on the arbitration condition of the spatial information, the spatial information change condition of the terminal and the system time information of the terminal. Triggering subsequent operations related to the mobile application when the conditions for arbitration of the temporal information and the spatial information are both satisfied. If any one of the operation conditions is not met, triggering of subsequent operation is not carried out. The time information may be acquired by the cloud platform from the terminal, or may be acquired by the cloud platform from system time information in the network.
The determination condition of the spatial information is a spatial information determination condition set by a mobile developer according to the characteristics of a mobile application to be developed, so that different mobile applications can have different spatial determination conditions, if the determination condition can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the determination condition does not exceed the threshold, changes of the spatial information are shielded, and other related operations are not triggered, the granularity of the determination condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute or one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of. The time information arbitration condition may be a preset time period, that is, it is determined whether the current time of the user is within the preset time period, for example, some specific operations or information push of the mobile application can only be triggered on a holiday or a holiday, or some mobile applications do not allow operations or information push at night, it is necessary to determine whether the current time is within a preset allowed time range when the user initiates operations or the mobile application needs to push information to the user. S203 may be executed at the cloud or at the terminal.
The subsequent operations are executed according to the settings of the application developer, so that the subsequent operations triggered after the spatial information change arbitration of different mobile applications may be different.
The subsequent operation may be S204: and pushing the spatial information, namely notifying the mobile application of the change condition of the spatial information of the terminal corresponding to the mobile application after the change of the spatial information and the time information meets preset conditions.
The subsequent operation may be S205: and triggering continuous query, taking the current spatial information (arbitrated) of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile terminal. The system allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application. For example, when it is determined that the terminal has entered a preset tourist attraction, the current position of the terminal is obtained every ten minutes within a certain time, and related information of the tourist attraction is queried based on the tourist attractions near the terminal position, and then the related information of the tourist attraction is pushed to the user.
In one embodiment, a query is registered from a client to a database (i.e., a specific frame of the query is constructed), and spatial information is set as a variable query condition, when the query condition changes, the 1103 spatial information change arbitration module determines that the change meets the condition (e.g., is large enough), and triggers middleware (e.g., the persistent query module 1102 in the cloud platform in the embodiment of the present invention) to re-trigger the query. Each change is queried only once, but for the user, a change that meets the conditions will trigger a query that appears to be persistent, requiring no triggering by the user, and is therefore referred to as a persistent query.
In one application scenario, a continuous query is made to find restaurants within 1 km of the square circle of the position of me after me moves 10 km. Then the arbitration condition for the variable query condition being "my location" arbitration is "whether the current location is greater than 10 kilometers from the location triggered by the last query". Each time the subsequent position change is judged to be compared with the previous time, and when the position change exceeds 10 kilometers, the position change is pushed to the continuous query module, namely the continuous query is triggered.
Optionally, in an application scenario, it is determined that the mobile user moves 10 km, and the change in location meets the trigger condition, and then the continuous query is triggered. And continuously tracking the position change of the user within a certain time or frequency, and correspondingly pushing. For example, it is determined that you have arrived in west 'an', a continuous query is triggered, and then the continuous query is that you have arrived at which street and then have corresponding content pushed to you, such as nearby related special snacks, special scenic spots, and the like.
The subsequent operation may be S206: and triggering authority management, wherein the authority management is used for receiving the current space information of the user and judging whether the user has authority to access or operate data according to the current space information.
The permission judgment here may be a judgment based on the setting of the access permission by the application developer, such as allowing access to specific data only at a specific location, or allowing access to specific data only for a specific period of time, or allowing access to data only when the specific location is at a specific time; the data can be cloud data or application related data, and when the user does not have the application data access right, the application cannot be triggered.
Other operations, such as directly triggering the mobile application to query and access the cloud or terminal data and pushing information to the user according to the query result, may also be performed.
The subsequent triggering process is set by a mobile application developer according to the characteristics of the developed mobile application, and the execution position of the subsequent operation can be set at different positions of the system according to requirements, such as the execution on a cloud platform or the execution on a terminal.
Optionally, as shown by the dashed box S207 in the figure, the method may further include: and storing the user historical space information. Specifically, the history record is saved for the user space information obtained each time. The storage position can be stored at the terminal or at the cloud, or both sides of the terminal can be stored, for example, the terminal stores a small amount of recent historical data, and the cloud can be used for storing a large amount of user historical data.
Besides the current spatial information, the mobile application may need to perform incremental comparison or analysis on the historical spatial information of the user, perform data analysis or even data mining on the historical spatial information of the user, so that the historical spatial information of the user is stored, historical data is provided for the mobile application which obtains user permission for query and data mining, the value of a cloud collaborative platform at the end is improved, and the mobile application can also assist the S202 in more complex spatial information change judgment; the historical space information is used for recording the historical space data of the user, so that the historical time can be combined for storage and recording.
Fig. 5 is a structural diagram of the cloud-side coordination apparatus 400 according to the first embodiment and the second embodiment of the present invention. Thedevice 400 is a mobile terminal with various forms, including a mobile phone, a tablet, a PDA (Personal Digital Assistant), a vehicle-mounted terminal, a wearable device, an intelligent terminal, and the like. Theapparatus 400 includes hardware modules such as anRF circuit 401, a Wi-Fi module 402, adisplay unit 403, aninput unit 404, afirst memory 405, asecond memory 406, aprocessor 407, apower supply 408, and aGPS module 409.
TheRF circuit 401 is used to transmit and receive communication signals, and can perform data interaction and spatial information synchronization with the cloud platforms via a wireless network. And obtaining the spatial information of the user through the base station and sending the spatial information to the cloud platform.
Thecommunication module 402 may be a Wi-Fi module, and is configured to communicate with the cloud platform through a Wi-Fi connection network, and to obtain location information of the user through the AP. Or a bluetooth module, for performing bluetooth positioning. Or other short-range wireless communication module. The location information of the user may also be sent to the cloud platform through thecommunication module 402.
Thedisplay unit 1203 is used to display a user interaction interface through which a user can access the mobile application and actively acquire or manually input the user's current spatial information. TheDisplay unit 403 may include a Display panel, and optionally, the Display panel may be configured in the form of an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode). In a specific implementation, the touch panel covers the display panel to form a touch display screen, and theprocessor 407 provides a corresponding visual output on the touch display screen according to the type of the touch instruction. Specifically, in the embodiment of the present invention, theinput unit 404 may include a touch panel, also referred to as a touch screen, which may collect touch operations of a user on or near the touch panel (for example, the user operates on the touch panel by using any suitable object or accessory such as a finger, a stylus pen, etc.), and the touch panel may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, a surface acoustic wave, etc. In addition to a touch panel, theinput unit 404 may also include other input devices including, but not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Wherein, thefirst memory 405 stores a preset number of APPs and interface information of the apparatus; it is understood that thesecond storage 406 may be an external storage of thecloud coordination apparatus 400, and thefirst storage 405 may be an internal storage of the smart device. Thefirst memory 405 may be one of a NVRAM nonvolatile memory, a DRAM dynamic random access memory, a SRAM static random access memory, a Flash memory, and the like; the operating system running on the smart device is typically installed on thefirst memory 405. Thesecondary storage 406 may be a hard disk, optical disk, USB disk, floppy disk or tape drive, cloud server, or the like. Optionally, some third party APPs may now be installed on thesecond memory 406. In the first embodiment of the present invention, the program of the terminal portion of the two-end cloud collaboration platform may be stored in thefirst memory 405, and may also be stored in thesecond memory 406.
Theprocessor 407 is a control center of the apparatus, connects various parts of the entire apparatus using various interfaces and lines, performs various functions of the apparatus and processes data by operating or executing software programs and/or modules stored in thefirst memory 405 and calling data stored in thesecond memory 406. Optionally, theprocessor 407 may include one or more processing units.
Power supply 408 can provide power to the entire device, including various types of lithium batteries.
TheGPS module 409 is used to acquire spatial information of the device, such as location coordinates.
When a program installed in thefirst memory 405 or thesecond memory 406 receives an instruction of the processor, the following steps are performed:
1. acquiring current spatial information of a device; the spatial information here may be the positioning information of the user acquired by the apparatus, or may be other information related to the position of the user. And after obtaining the spatial information, the spatial information is optimized and then the spatial information is synchronized to the cloud end, or the spatial information of the user is directly synchronized to the cloud platform, the spatial information can be obtained and sent periodically by the device, or can be obtained after receiving a cloud platform instruction, or can be obtained in various information obtaining modes such as active submission by the user.
2. And tracking the change of the spatial information of the device to obtain the change condition of the spatial information of the device.
The change condition of the spatial information can be various, the current spatial information of the tracking device can be changed, the position area where the device enters is obtained, the city where the obtaining device is located or the street where the obtaining device is located is obtained, and whether the device user is at home or at school at the moment is judged. The spatial information change may also be a comparison between current spatial information of the device and spatial information of the device obtained before a preset time interval, where the preset time interval is a spatial information obtaining interval set by a mobile application developer, and the time interval for obtaining the spatial information may be different, and the change range of the spatial information of each target device is obtained, for example, the change range is moved by 5 kilometers compared with the previous positional information. In addition to the above examples, other spatial information related variations may be included.
3. And determining whether to trigger subsequent operations related to the mobile application based on the arbitration condition of the spatial information and the spatial information change condition of the device.
The determination condition of the spatial information is a spatial information determination condition set by a mobile developer according to the characteristics of a mobile application to be developed, so that different mobile applications can have different spatial determination conditions, if the determination condition can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the determination condition does not exceed the threshold, changes of the spatial information are shielded, and other related operations are not triggered, the granularity of the determination condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute or one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the device has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
The subsequent operation is executed according to the setting of the application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different. The subsequent operation may be:
and 4a, pushing the spatial information, namely notifying the mobile application of the spatial information change condition of the device corresponding to the mobile application after the spatial information change meets a preset condition.
And 4b, triggering continuous query, taking the current spatial information (arbitrated) of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile device. The system allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application. For example, when it is determined that the device has entered a preset tourist attraction, the current position of the device is obtained every ten minutes within a certain time, and information related to the tourist attraction is pushed to the user based on the tourist attraction near the device position.
And 4c, triggering authority management, receiving the current spatial information of the user, and judging whether the user has the authority to access or operate the data according to the current spatial information.
And 4d, other operations, such as directly triggering the mobile application to inquire and access the cloud or device data and pushing information to the user according to the inquiry result.
The device may further be configured to store the user historical space information in thesecond storage 405 according to the design requirement of the end cloud collaboration platform.
When a program installed in thefirst memory 1205 or thesecond memory 406 receives an instruction of the processor, the following steps may be further performed:
1. acquiring current spatial information of a device; the spatial information here may be the positioning information of the user acquired by the apparatus, or may be other information related to the position of the user. And after obtaining the spatial information, the spatial information is optimized and then the spatial information is synchronized to the cloud end, or the spatial information of the user is directly synchronized to the cloud platform, the spatial information can be obtained and sent periodically by the device, or can be obtained after receiving a cloud platform instruction, or can be obtained in various information obtaining modes such as active submission by the user.
2. And tracking the change of the spatial information of the device to obtain the change condition of the spatial information of the device.
The change condition of the spatial information can be various, the current spatial information of the tracking device can be changed, the position area where the device enters is obtained, the city where the obtaining device is located or the street where the obtaining device is located is obtained, and whether the device user is at home or at school at the moment is judged. The spatial information change may also be a comparison between current spatial information of the device and spatial information of the device obtained before a preset time interval, where the preset time interval is a spatial information obtaining interval set by a mobile application developer, and the time interval for obtaining the spatial information may be different, and the change range of the spatial information of each target device is obtained, for example, the change range is moved by 5 kilometers compared with the previous positional information. In addition to the above examples, other spatial information related variations may be included.
3. And acquiring system time information of the device, and determining whether to trigger subsequent operations related to the mobile application or not based on the spatial information, the arbitration condition of the time information, and the spatial information change condition and the time information of the device.
The method includes the steps that a mobile developer sets a judgment condition according to characteristics of a mobile application to be developed, so that different mobile applications can have different judgment conditions of space and time information, if the judgment condition is that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operation is triggered, if the judgment condition does not exceed the threshold, change of the space information is shielded, other related operation is not triggered, granularity of the judgment condition can be set by the mobile application developer according to the characteristics of the mobile application, the judgment condition can be 10 kilometers or one hundred meters, and a change interval can be one minute, one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the device has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of. The time information arbitration condition may be a preset time period, that is, it is determined whether the current time of the user is within the preset time period, for example, some specific operations or information push of the mobile application can only be triggered on a holiday or a holiday, or some mobile applications do not allow operations or information push at night, it is necessary to determine whether the current time is within a preset allowed time range when the user initiates operations or the mobile application needs to push information to the user.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
The subsequent operation is executed according to the setting of the application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different. The subsequent operation may be:
and 4a, pushing the spatial information, namely notifying the mobile application of the change condition of the spatial information of the device corresponding to the mobile application after the change of the spatial information and the inter-spatial information meets a preset condition.
And 4b, triggering continuous query, taking the current spatial information (arbitrated) of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile device. The system allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application. For example, when it is determined that the device has entered a preset tourist attraction, the current position of the device is obtained every ten minutes within a certain time, and information related to the tourist attraction is pushed to the user based on the tourist attraction near the device position.
And 4c, triggering authority management, receiving the current spatial information of the user, and judging whether the user has the authority to access or operate the data according to the current spatial information.
And 4d, other operations, such as directly triggering the mobile application to inquire and access the cloud or device data and pushing information to the user according to the inquiry result.
The device may further be configured to store the user historical space information in thesecond storage 405 according to the design requirement of the end cloud collaboration platform.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
Fig. 11 is a structural diagram of another end cloud coordination apparatus according to the first embodiment and the second embodiment of the present invention.
Thedevice 600 may be a chip or a data processing device of other forms. Theapparatus 600 includes areadable storage medium 601, aprocessor 602.
Thereadable storage medium 601 may be used for storing various packages of the cloud collaboration platform. In the first embodiment of the present invention, the program of the terminal portion of the two-end cloud collaboration platform may be stored in thefirst memory 405, and may also be stored in thesecond memory 406.
Theprocessor 602 is a control center of the apparatus, connects various parts of the entire apparatus using various interfaces and lines, performs various functions of the apparatus and processes data by running or executing software programs and/or modules stored in thereadable storage medium 601. Optionally, theprocessor 602 may include one or more processing units.
When a program installed in thereadable storage medium 601 receives instructions of the processor, the following steps are performed:
1. acquiring current spatial information of a device; the spatial information here may be the positioning information of the user acquired by the apparatus, or may be other information related to the position of the user. And after obtaining the spatial information, the spatial information is optimized and then the spatial information is synchronized to the cloud end, or the spatial information of the user is directly synchronized to the cloud platform, the spatial information can be obtained and sent periodically by the device, or can be obtained after receiving a cloud platform instruction, or can be obtained in various information obtaining modes such as active submission by the user.
2. And tracking the change of the spatial information of the device to obtain the change condition of the spatial information of the device.
The change condition of the spatial information can be various, the current spatial information of the tracking device can be changed, the position area where the device enters is obtained, the city where the obtaining device is located or the street where the obtaining device is located is obtained, and whether the device user is at home or at school at the moment is judged. The spatial information change may also be a comparison between current spatial information of the device and spatial information of the device obtained before a preset time interval, where the preset time interval is a spatial information obtaining interval set by a mobile application developer, and the time interval for obtaining the spatial information may be different, and the change range of the spatial information of each target device is obtained, for example, the change range is moved by 5 kilometers compared with the previous positional information. In addition to the above examples, other spatial information related variations may be included.
3. And determining whether to trigger subsequent operations related to the mobile application based on the arbitration condition of the spatial information and the spatial information change condition of the device.
The determination condition of the spatial information is a spatial information determination condition set by a mobile developer according to the characteristics of a mobile application to be developed, so that different mobile applications can have different spatial determination conditions, if the determination condition can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the determination condition does not exceed the threshold, changes of the spatial information are shielded, and other related operations are not triggered, the granularity of the determination condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute or one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the device has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
The subsequent operation is executed according to the setting of the application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different. The subsequent operation may be:
and 4a, pushing the spatial information, namely notifying the mobile application of the spatial information change condition of the device corresponding to the mobile application after the spatial information change meets a preset condition.
And 4b, triggering continuous query, taking the current spatial information (arbitrated) of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile device. The system allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application. For example, when it is determined that the device has entered a preset tourist attraction, the current position of the device is obtained every ten minutes within a certain time, and information related to the tourist attraction is pushed to the user based on the tourist attraction near the device position.
And 4c, triggering authority management, receiving the current spatial information of the user, and judging whether the user has the authority to access or operate the data according to the current spatial information.
And 4d, other operations, such as directly triggering the mobile application to inquire and access the cloud or device data and pushing information to the user according to the inquiry result.
The device may further be configured to store the user historical space information in thesecond storage 405 according to the design requirement of the end cloud collaboration platform.
When a program installed in thereadable storage medium 601 receives instructions of the processor, the following steps may be further performed:
1. acquiring current spatial information of a device; the spatial information here may be the positioning information of the user acquired by the apparatus, or may be other information related to the position of the user. And after obtaining the spatial information, the spatial information is optimized and then the spatial information is synchronized to the cloud end, or the spatial information of the user is directly synchronized to the cloud platform, the spatial information can be obtained and sent periodically by the device, or can be obtained after receiving a cloud platform instruction, or can be obtained in various information obtaining modes such as active submission by the user.
2. And tracking the change of the spatial information of the device to obtain the change condition of the spatial information of the device.
The change condition of the spatial information can be various, the current spatial information of the tracking device can be changed, the position area where the device enters is obtained, the city where the obtaining device is located or the street where the obtaining device is located is obtained, and whether the device user is at home or at school at the moment is judged. The spatial information change may also be a comparison between current spatial information of the device and spatial information of the device obtained before a preset time interval, where the preset time interval is a spatial information obtaining interval set by a mobile application developer, and the time interval for obtaining the spatial information may be different, and the change range of the spatial information of each target device is obtained, for example, the change range is moved by 5 kilometers compared with the previous positional information. In addition to the above examples, other spatial information related variations may be included.
3. And acquiring system time information of the device, and determining whether to trigger subsequent operations related to the mobile application or not based on the spatial information, the arbitration condition of the time information, and the spatial information change condition and the time information of the device.
The method includes the steps that a mobile developer sets a judgment condition according to characteristics of a mobile application to be developed, so that different mobile applications can have different judgment conditions of space and time information, if the judgment condition is that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operation is triggered, if the judgment condition does not exceed the threshold, change of the space information is shielded, other related operation is not triggered, granularity of the judgment condition can be set by the mobile application developer according to the characteristics of the mobile application, the judgment condition can be 10 kilometers or one hundred meters, and a change interval can be one minute, one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the device has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of. The time information arbitration condition may be a preset time period, that is, it is determined whether the current time of the user is within the preset time period, for example, some specific operations or information push of the mobile application can only be triggered on a holiday or a holiday, or some mobile applications do not allow operations or information push at night, it is necessary to determine whether the current time is within a preset allowed time range when the user initiates operations or the mobile application needs to push information to the user.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
The subsequent operation is executed according to the setting of the application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different. The subsequent operation may be:
and 4a, pushing the spatial information, namely notifying the mobile application of the change condition of the spatial information of the device corresponding to the mobile application after the change of the spatial information and the inter-spatial information meets a preset condition.
And 4b, triggering continuous query, taking the current spatial information (arbitrated) of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile device. The system allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application. For example, when it is determined that the device has entered a preset tourist attraction, the current position of the device is obtained every ten minutes within a certain time, and information related to the tourist attraction is pushed to the user based on the tourist attraction near the device position.
And 4c, triggering authority management, receiving the current spatial information of the user, and judging whether the user has the authority to access or operate the data according to the current spatial information.
And 4d, other operations, such as directly triggering the mobile application to inquire and access the cloud or device data and pushing information to the user according to the inquiry result.
The device may further be configured to store the user historical space information in thesecond storage 405 according to the design requirement of the end cloud collaboration platform.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
Fig. 6 is a structural diagram of a cloud platform according to the first embodiment and the second embodiment of the present invention. Wherein the cloud platform 500 includes a readable storage medium 501, aprocessor 502, and adatabase 503.
In the first embodiment of the present invention, a program of the cloud part of the two-end cloud coordination system may be stored in the readable storage medium 501.
Theprocessor 502 performs data processing of the cloud platform by running or executing software programs and/or modules stored in the readable storage medium 501. Optionally, the processor 501 may include one or more processing units.
A program installed in the readable storage medium 501 receives instructions from theprocessor 502 and performs the following steps:
1. acquiring current spatial information of each terminal in the system; the spatial information here may be the positioning information of the user acquired by the terminal, or may be other information related to the user position.
The acquisition process can be that the terminal periodically acquires and synchronizes to the cloud end, or the cloud end actively acquires according to a certain frequency, or a user actively submits and other various information acquisition modes.
2. And tracking the change of the spatial information of each terminal in the system to obtain the change condition of the spatial information of each terminal.
The space information change condition can be various, the current space information change of the tracking terminal can be obtained, the position area where the terminal enters can be the city where the acquisition terminal is located, or the street where the acquisition terminal is located, and whether the terminal user is at home or at school at the moment is judged. The spatial information change may also be a comparison between the current spatial information of the terminal and the spatial information of the terminal obtained before a preset time interval, to obtain a change range of the spatial information of each target terminal, for example, the change range is moved by 5 km compared with the previous positional information, where the preset time interval is a spatial information acquisition interval set by a mobile application developer, because the time intervals for acquiring the spatial information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included.
3. And determining whether to trigger subsequent operations related to the mobile application based on the arbitration condition of the spatial information and the spatial information change condition of the terminal.
The determination condition of the spatial information is a spatial information determination condition set by a mobile developer according to the characteristics of a mobile application to be developed, so that different mobile applications can have different spatial determination conditions, if the determination condition can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the determination condition does not exceed the threshold, changes of the spatial information are shielded, and other related operations are not triggered, the granularity of the determination condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute or one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
The subsequent operation is executed according to the setting of the application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different. The triggering operation comprises the following steps:
and 4a, pushing the spatial information, namely notifying the mobile application of the situation of the spatial information change of the terminal corresponding to the mobile application after the spatial information change meets a preset condition.
And 4b, triggering continuous query, taking the current spatial information (arbitrated) of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile terminal. The system allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application. For example, when it is determined that the terminal has entered a preset tourist attraction, the current position of the terminal is obtained every ten minutes within a certain time, and information related to the tourist attraction is pushed to the user based on the tourist attraction near the terminal position.
And 4c, triggering authority management, receiving the current spatial information of the user, and judging whether the user has the authority to access or operate the data according to the current spatial information.
And 4d, other operations, such as directly triggering the mobile application to inquire and access the cloud or terminal data and pushing information to the user according to the inquiry result.
The cloud platform may further select to store the user historical space information in thecloud platform database 503 according to the design requirement of the platform. Specifically, the history record is saved for the user space information obtained each time.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
Alternatively, in another embodiment, a program installed in the readable storage medium 501 receives the instructions of theprocessor 502, and may further perform the following steps:
1. acquiring current spatial information of each terminal in the system; the spatial information here may be the positioning information of the user acquired by the terminal, or may be other information related to the user position.
The acquisition process can be that the terminal periodically acquires and synchronizes to the cloud end, or the cloud end actively acquires according to a certain frequency, or a user actively submits and other various information acquisition modes.
2. And tracking the change of the spatial information of each terminal in the system to obtain the change condition of the spatial information of each terminal.
The space information change condition can be various, the current space information change of the tracking terminal can be obtained, the position area where the terminal enters can be the city where the acquisition terminal is located, or the street where the acquisition terminal is located, and whether the terminal user is at home or at school at the moment is judged. The spatial information change may also be a comparison between the current spatial information of the terminal and the spatial information of the terminal obtained before a preset time interval, to obtain a change range of the spatial information of each target terminal, for example, the change range is moved by 5 km compared with the previous positional information, where the preset time interval is a spatial information acquisition interval set by a mobile application developer, because the time intervals for acquiring the spatial information may be different for different mobile applications. In addition to the above examples, other spatial information related variations may be included.
3. And acquiring system time information of the terminal, and determining whether to trigger subsequent operations related to the mobile application or not by the terminal time information based on the arbitration condition of the space and time information and the space information change condition of the terminal.
The determination condition of the spatial information is a spatial information determination condition set by a mobile developer according to the characteristics of a mobile application to be developed, so that different mobile applications can have different spatial determination conditions, if the determination condition can be that a user and a last recorded position exceed a threshold of 10 kilometers, subsequent operations are triggered, if the determination condition does not exceed the threshold, changes of the spatial information are shielded, and other related operations are not triggered, the granularity of the determination condition can be set by the mobile application developer according to the characteristics of the mobile application, can be 10 kilometers or one hundred meters, and the change interval can be one minute or one hour or one week. The above-mentioned space information adjudication condition may also be a plurality of preset position areas, and according to the obtained space information, it is judged whether the terminal has entered a certain preset position area, and if it has entered the preset position area, the corresponding subsequent operation is executed, where the preset position area is set by the mobile application developer according to the development requirement of the mobile application during application development, and may be one or a plurality of. The time information arbitration condition may be a preset time period, that is, it is determined whether the current time of the user is within the preset time period, for example, some specific operations or information push of the mobile application can only be triggered on a holiday or a holiday, or some mobile applications do not allow operations or information push at night, it is necessary to determine whether the current time is within a preset allowed time range when the user initiates operations or the mobile application needs to push information to the user.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
The subsequent operation is executed according to the setting of the application developer, so that the subsequent operation triggered after the spatial information change arbitration is carried out by different mobile applications is different. The triggering operation comprises the following steps:
and 4a, pushing the spatial information, namely notifying the mobile application of the change condition of the spatial information of the terminal corresponding to the mobile application after the change of the spatial information and the time information meets the preset conditions.
And 4b, triggering continuous query, taking the current spatial information (arbitrated) of the user as input, managing the continuous query of the mobile application to the mobile terminal database or the cloud database, and returning the obtained data to the mobile terminal. The system allows the mobile application to set the continuous query triggering frequency or duration to reach a certain duration, or to finish the continuous query after reaching the upper limit of the continuous query times, so as to provide more flexibility for the development of the mobile application. For example, when it is determined that the terminal has entered a preset tourist attraction, the current position of the terminal is obtained every ten minutes within a certain time, and information related to the tourist attraction is pushed to the user based on the tourist attraction near the terminal position.
And 4c, triggering authority management, receiving the current spatial information of the user, and judging whether the user has the authority to access or operate the data according to the current spatial information.
And 4d, other operations, such as directly triggering the mobile application to inquire and access the cloud or terminal data and pushing information to the user according to the inquiry result.
The cloud platform may further select to store the user historical space information in thecloud platform database 503 according to the design requirement of the platform. Specifically, the history record is saved for the user space information obtained each time.
The above steps have been described in detail in the foregoing method embodiments, and detailed implementation of each step in the method embodiments may also be applied to this, which is not described herein again.
The embodiment of the invention further greatly reduces the workload of processing and managing the spatio-temporal data by providing the native support for the spatio-temporal data of the user. The advantages of a traditional time-space database and a terminal cloud cooperation platform are integrated, and the blank that the current terminal cloud cooperation platform has no native support of time-space data is filled; the processing and management of the time-space data are integrated under the framework of the end cloud cooperation platform, and a mobile user developer can simply call an API (application programming interface), so that the interested user time-space information and increment thereof are obtained according to reasonable frequency and mode; accessing and analyzing historical spatiotemporal data of a user upon user authorization; registering continuous query aiming at a cloud database, and updating triggered by user time-space data change; managing data according to the user's temporal-spatial information; the normalized framework facilitates global optimization and intelligent tuning.
The following are specific implementation manners and calling manners that may be adopted in implementing the above embodiments of the present invention.
And (3) acquiring information between real spaces of users, keeping a space variable such as hwb _ currloc and a public access function thereof in the end cloud cooperation platform, and storing the current position information. The platform keeps accessing and synchronizing the current position information of the system through a system position interface function, for example, periodically calling a LocationManager class and a GPSTRacker class of an Android system, or calling a locationListener class to monitor the current position of a user returned by a positioning module such as a GPS/GSM/Wi-Fi system. It is also possible to keep two variables (e.g., hwb _ curroc and hwb _ current) and their common access function at the same time, storing the current time and current location information, respectively. The platform keeps accessing and synchronizing the current time and the position information of the system through a system position and time interface function, for example, periodically calling a LocationManager class and a GPSTRacker class of an Android system, or calling a locationListener class to monitor the current position of a user returned by a positioning module such as a GPS/GSM/Wi-Fi system. It is also possible to maintain only one spatial position variable, with time being captured by other means.
For the storage and calling mode of the historical spatial information of the user, on the premise that the user gives permission, if the platform can automatically synchronize and store the historical spatial information of the user at the cloud end and store the spatial information and the time information related to the spatial information in a combined manner, the mobile application development can be greatly simplified. For example, the current position information can be pushed to a cloud-end database for storage through automatic data synchronization of the end cloud cooperation platform. Since this is an inherent property of the end cloud collaboration platform, good performance can be expected and transparent to mobile application developers. According to different examples of the CLOUD database and the storage, the implementation method is different, for example, if the mobile terminal-to-CLOUD communication supports SQL, the mobile terminal spatial information can be written INTO the CLOUD database by using INSERT intort intohwb _ CLOUD _ USER1_ TIME _ SPACE (HWB _ current ), and since the storage capacity of the CLOUD is nearly infinite compared with that of the mobile terminal, the historical position and TIME information of the USER can be well stored. The mobile application may simply use SELECT FROM HWB _ cluster _ USER1_ TIME _ SPACE WHERE … to extract data for query and analysis if it is to be read and analyzed. The end cloud cooperation platform can also realize a more complex analysis module or a UDF interface as a predicate for being called by the mobile application.
For the judgment of the change of the spatial information, the mobile application can manage the own spatial information strategy in the module by setting a parameter threshold value through a platform interface, can control the own spatial information strategy in the module in other modes, can select to closely follow the change of the real-time spatial information of the system, can also not control the change at all, and is divided by an arbitration module. For example, a mobile application developer may define a time (hwb _ interval) and location change (hwb _ introc _ interval) threshold of interest to an application. This value (hwb _ intuc _ interval) and (hwb _ time _ interval) is specified by the mobile application while the platform maintains a private variable hwb _ prevloc for the mobile application to keep track of the user's last location, the arbitration module takes the threshold and last location variables and keeps track of the policy selected by the application, either to synchronize data or to notify the mobile application when the distance between the current location hwb _ currloc and the last location hwb _ prevloc exceeds the threshold. The spatial information change arbitration is beneficial to reducing unnecessary updating and calculation amount, improving the performance of the platform for supporting the mobile application and greatly supporting the performance and the realization of continuous inquiry and authority management.
For continuous queries, the spatial information variation of the mobile application varies greatly depending on the nature of the application itself. Most of the spatially continuous queries currently exist for a particular situation. For example, there may be mobile queries directed primarily to stationary objects (e.g., smart dream), aggregation function queries directed primarily to aggregate functions (e.g., statistical number of nearby friends in social applications), k-NN type queries directed primarily to closer restaurants, and so on. Although the requirements of mobile applications are different, as an end cloud collaborative data platform, we need to have the ability to support continuous queries related to most common spatial data. The main difference between these successive queries is the sensitivity to spatial data variations. Therefore, in the specific implementation process, the mobile application can set methods such as a spatial change interest threshold value through the spatial information change arbitration module, and the triggering of continuous query is effectively controlled, so that most common continuous queries related to spatial information are supported. The platform also allows the mobile application to set a continuous query trigger frequency to reach a trigger time period, and the platform automatically triggers the query to provide more flexibility.
If the user does not set an interest threshold or trigger frequency for continuous queries, the platform may also provide intelligent optimization as follows: the most conservative update strategy was adopted first: and restarting the query if the condition is updated, then comparing the result sets of the two queries, automatically setting a larger continuous query trigger period for the arbitration module if the difference between the result sets is small, and reducing the continuous query trigger period if the difference between the result sets is large, so that the dynamic balance of the continuous query accuracy and the platform performance is achieved in a feedback mode.
Two other problems that need to be solved by continuous queries are Scalability (Scalability) and high concurrency characteristics. An application supported by a cloud-end platform may have thousands of clients, and simultaneously, many different applications may be run on the same platform. In order to support the specific expansibility and high concurrency of the end cloud platform, the platform provided by the invention provides an extensible computing algorithm. There are several main methods: 1) performing shared execution, similar queries can be put together, and results can be shared; 2) in cases where some deviation is allowed, an approximate query (approximate query) approach may be used, providing fast results, and continually improving until the user is satisfied.
For the authority management, the specific implementation can be determined by the adopted data storage format, but the basic idea is as follows: at each node where data is stored, such as at all non-leaf nodes of a tree-like data structure (json or xml), or at each record (tuple) of a tabular structure, or at other nodes, a permission record is placed containing permission information. The authority record contains the authority of each user for data, wherein, it is emphasized that a rule function/method is simultaneously associated with each authority of each user for defining the limit calculation of the authority according to the time and space information. When a user needs to open an application or access data, the platform firstly refers to the authority record of the user to the application/data, if the authority record contains time and space constraints, the time and space information of the current user is pulled, the comparison is carried out by utilizing the associated rule, and the application/data is opened to the user after the user is confirmed to have the authority.
Fig. 9 is a flowchart of a method for implementing an intelligent tour shot application according to an embodiment of the present invention.
The application method of the embodiment of the present invention is described in detail by taking the application of "smart travel racket" as an example. The mass data of the scenic spots stored in the cloud end needs to be called in real time, but the current spatial information of the user can be accurately acquired only by the mobile end, so that the spatial data needs to be closely matched with the cloud end at the mobile end. In addition, only when the spatial information of the user changes by more than a dozen or even dozens of kilometers, the surrounding scenic spots need to be searched again and pushed to the user.
With the above features of the application taken into consideration, in combination with the core method flow, under the end cloud collaboration platform architecture of the embodiment of the present invention, an implementation method flow of the application is as follows:
A. the end cloud cooperation platform closely tracks the change of the spatial information of the mobile end system all the time, and pulls the real-time spatial information of the mobile end into the platform at a high frequency.
B. And the terminal cloud cooperation platform pulls the real-time spatial information into a cloud terminal.
C. The user gives the authority to the platform to store the historical spatial information of the user, and spatial data is stored in a user historical spatial data database special for the cloud;
D. and the latest current spatial data is simultaneously sent to the cloud spatial information change arbitration module. When the mobile application is already set during deployment, the user and the position recorded last time exceed a threshold value of 10 kilometers, and then query and scenic spot information of the cloud scenic spot database and pushing photographing information are triggered.
E. The change arbitration module judges whether the incremental change between the current spatial data of the user and the last record meets the threshold condition, and if not, the process is ended (G).
F. If the condition is satisfied, the arbitration module sends the spatial information to a registered response module, such as a persistent query module.
H. A continuous query trigger. The continuous query module queries the cloud scenic spot database by taking the current spatial information as a condition predicate, and the obtained data is returned to the mobile terminal (subjected to data processing and screening by the cloud terminal or the mobile terminal) and pushed to the user.
FIG. 10 illustrates an application scenario of the rights management module of the present invention. As shown in fig. 10, the tree structure in the figure represents the entertainment application at the mobile end, and the specific application and the application data thereof, wherein each node may be a folder, a file or data of the android system, or may be an application collection, an application and data of the iOS system. The grid diagram represents relational tabular data of the mobile terminal and the cloud terminal, such as personal medical data. The authority management module of the embodiment of the invention sets the authority related to the spatial information at the data node and manages the authority by the end cloud cooperation platform, thereby being more convenient for mobile application to carry out fine management on the user authority of the data. For example, in fig. 10, parents have complete authority to all applications and data, judge the position of a daughter based on a spatial information change arbitration, limit the daughter user from being able to use entertainment and application boards at a predetermined time and place (school time), easily realize parental control (parent control), judge the position of a grandpa based on a spatial information change arbitration, and limit the medical data of the grandpa to be open to young nurses only during hospitalization and in a hospital area.
Further, in the product implementation form of the embodiment of the present invention, one possible implementation manner is to add a cloud and a mobile software module, that is, program codes deployed on mobile hardware and a cloud hardware system, on a popular end cloud cooperation platform.
Taking the architectural application scenario diagram shown in fig. 1 as an example, the program code of the embodiment of the present invention exists in the mobile database, the cloud database, the end cloud data coordination module of the platform software, and outside the existing module. The program code of the embodiment of the invention runs in the memory of the mobile terminal or the memory of the cloud platform.
In summary, the embodiment of the invention solves the problem that the end cloud platform in the prior art does not have special support for acquisition, storage, query and management of the spatial data of the user because the end cloud platform ignores the importance of the spatial information of the user, the complexity of spatial information processing and the particularity of the spatial information of the user. That is to say, according to the technical solution of the embodiment of the present invention, the cloud platform obtains the spatial information of the connected terminals, so that the cloud platform can support the user spatial data as it is, and arbitrates the spatial information and the arbitration conditions based on the spatial information corresponding to different target mobile applications according to the change of the spatial information to shield the uninteresting change, thereby triggering the related subsequent operations of the mobile applications, better meeting the diversified requirements of the mobile applications on the spatial information, and making the development of the mobile applications relatively simple.
In summary, the embodiment of the invention solves the problem that the end cloud platform in the prior art does not have special support for acquisition, storage, query and management of the spatial data of the user because the end cloud platform ignores the importance of the spatial information of the user, the complexity of spatial information processing and the particularity of the spatial information of the user. That is to say, according to the technical solution of the embodiment of the present invention, the cloud platform obtains the spatial information of the connected terminals, so that the cloud platform can support the user spatial data as it is, and arbitrates the spatial information and the arbitration conditions based on the spatial information corresponding to different target mobile applications according to the change of the spatial information to shield the uninteresting change, thereby triggering the related subsequent operations of the mobile applications, better meeting the diversified requirements of the mobile applications on the spatial information, and making the development of the mobile applications relatively simple.
Specifically, compared with the prior art, the embodiment of the invention has the following beneficial effects:
1. by synchronizing the user space data between the mobile terminal and the cloud terminal, the current position and time information of the user can be automatically stored, and the change of the information can be accurately tracked; the historical position and time information of the user can be saved in a certain range, and meanwhile, the user can access and quote at any time under the condition that the user gives authority.
2. By screening the spatial information change of the user, the spatial information change which is not interested can be effectively shielded, and only the spatial change which is interested in the application is pushed. The method can provide an interface for the application, and flexibly arbitrate the spatial information change by a module in a control platform in the modes of defining rules, setting condition predicates, setting change thresholds or defining control logic and the like, so that the spatial information change is screened, only the information change which is interested in the application is pushed out for subsequent processing, and the spatial change which is not interested in the application is shielded; frequent data operation or information push is effectively avoided.
3. Through continuous inquiry and authority management, more flexible and various application development modes can be provided for mobile application development related to spatial information. Continuous inquiry and user authorization verification based on real space information are supported: native support can be provided for a series of typical data operations with varying real-time spatial information as input to better support typical mobile applications. For example, the changing real-time spatial information is used as a predicate, and continuous retrieval and comparison are performed on a database at the cloud end, so that automatic and continuous related information pushing is performed according to the current spatial information of the user; and setting user permission with fine granularity for the data according to the user space information, and judging whether the user has permission or not according to the current space information. The function does not limit whether the specific position of deployment is a cloud end or a mobile end, the mobile end or the cloud end of the platform can be deployed, and the deployment can also be selectively performed, so that abundant callable modules are provided for application development of mobile application developers, and the mobile application developers can more conveniently develop diversified mobile applications according to different requirements.
The architecture and components of the cloud-side collaboration platform of the present invention can constitute a large number of different product structures and process flows, and only a few typical core product structures and process flows are listed above. It should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.