Method for location service control and communications unit
A method for location service control and a communications unit are provided. The method includes: transmitting information related to a first valid time and/or control information, where the control information is used to control related behavior of obtaining location of a terminal.
1. A method for location service control, applied to a first communications unit including a terminal, and comprising:
transmitting control information and time period information for the control information to a second communications unit;
wherein the control information comprises:
first indication information, wherein the first indication information indicates at least one of the following: whether subsequent related behavior of obtaining location of the terminal is allowed by the terminal, whether a subsequent location service request specific to the terminal is allowed, that a subsequent location service request specific to the terminal is allowed, or that a subsequent location service request specific to the terminal is not allowed; and
the time period information for the control information is used to indicate a valid time period for the control information;
the second communications unit comprises a radio access network (RAN) network element, a core network (CN) network element, a location service client, or an application function (AF).
2. The method according to claim 1 , wherein the control information is used to control related behavior of obtaining location of the terminal;
the control information comprises at least one of the following:
control information per terminal or control information per location service client.
3. The method according to claim 2 , wherein the control information further comprises:
second indication information, wherein the second indication information indicates at least one of the following: whether the first indication information is applicable to all location service clients; information related to a location service client to which the control information is applicable; or information related to a location service client for which the control information is not applicable;
and/or,
the control information per location service client comprises at least one of the following:
information related to a location service client;
the time period information for the control information; or,
third indication information, wherein the third indication information indicates: whether a subsequent location service request specific to the terminal is allowed, wherein the location service request comes from the location service client.
4. The method according to claim 1 , wherein the time period information for the control information comprises at least one of the following:
a validity start time for the control information, a validity end time for the control information, or a loss-of-validity time for the control information.
5. The method according to claim 2 , wherein the controlling related behavior of obtaining location of a terminal comprises at least one of the following:
whether a location service request specific to the terminal is allowed;
whether a location service request specific to the terminal is allowed, wherein the location service request comes from a location service client;
whether to transmit to the terminal a privacy verification request in response to a location service request;
whether to obtain the location of the terminal;
whether to trigger the terminal to perform location measurement; or,
whether to transmit an obtained location of the terminal to the location service client.
6. A method for location service control, applied to a second communications unit and comprising:
receiving control information and time period information for the control information from a first communications unit including a terminal; and
performing, based on the control information and the time period information for the control information, a location service related operation;
wherein the control information comprises:
first indication information, wherein the first indication information indicates at least one of the following: whether subsequent related behavior of obtaining location of the terminal is allowed by the terminal, whether a subsequent location service request specific to the terminal is allowed, that a subsequent location service request specific to the terminal is allowed, or that a subsequent location service request specific to the terminal is not allowed; and
the time period information for the control information is used to indicate a valid time period for the control information;
the second communications unit comprises a radio access network (RAN) network element, a core network (CN) network element, a location service client, or an application function (AF);
wherein the location service related operation comprises at least one of the following:
transmitting the time period information for the control information and the control information to another communication network element and/or location service client;
storing the time period information for the control information and the control information;
starting a timer based on the time period information for the control information;
determining a valid time period for the control information based on the time period information for the control information;
during the valid time period for the control information, controlling, based on the control information, related behavior of obtaining location of the terminal;
deleting the control information when a valid time for the control information expires or a loss-of-validity time arrives; or
controlling related behavior of obtaining location of the terminal.
7. A communications unit, comprising a processor, a memory, and a program stored in the memory and capable of running on the processor, wherein when the program is executed by the processor, the steps of a method for location service control are implemented, and the method for location service control comprises:
transmitting control information and time period information for the control information to a second communications unit;
wherein the communications unit includes a terminal;
wherein the control information comprises:
first indication information, wherein the first indication information indicates at least one of the following: whether subsequent related behavior of obtaining location of the terminal is allowed by the terminal, whether a subsequent location service request specific to the terminal is allowed, that a subsequent location service request specific to the terminal is allowed, or that a subsequent location service request specific to the terminal is not allowed; and
the time period information for the control information is used to indicate a valid time period for the control information;
the second communications unit comprises a radio access network (RAN) network element, a core network (CN) network element, a location service client, or an application function (AF).
8. The communications unit according to claim 7 , wherein the control information is used to control related behavior of obtaining location of the terminal;
the control information comprises at least one of the following:
control information per terminal or control information per location service client.
9. The communications unit according to claim 8 , wherein the control information further comprises:
second indication information, wherein the second indication information indicates at least one of the following: whether the first indication information is applicable to all location service clients; information related to a location service client to which the control information is applicable; or information related to a location service client for which the control information is not applicable;
and/or,
the control information per location service client comprises at least one of the following:
information related to a location service client;
the time period information for the control information; or,
third indication information, wherein the third indication information indicates: whether a subsequent location service request specific to the terminal is allowed, wherein the location service request comes from the location service client.
10. The communications unit according to claim 7 , wherein the time period information for the control information comprises at least one of the following:
a validity start time for the control information, a validity end time for the control information, or a loss-of-validity time for the control information.
11. The communications unit according to claim 8 , wherein the controlling related behavior of obtaining location of a terminal comprises at least one of the following:
whether a location service request specific to the terminal is allowed;
whether a location service request specific to the terminal is allowed, wherein the location service request comes from a location service client;
whether to transmit to the terminal a privacy verification request in response to a location service request;
whether to obtain the location of the terminal;
whether to trigger the terminal to perform location measurement; or,
whether to transmit an obtained location of the terminal to the location service client.