CROSS REFERENCE TO RELATED APPLICATIONS

The present application is a United States National Stage Application filed under 35 U.S.C. § 371 of PCT Patent Application Serial No. PCT/CN2019/101879, filed Aug. 22, 2019, which claims priority to Chinese Patent Application No. CN201811023395.1, entitled “DEVICE-TO-DEVICE SERVICE RESTRICTION METHOD, TERMINAL AND STORAGE MEDIUM,” filed Sep. 3, 2018, each of which is incorporated by reference herein in its entirety.

TECHNICAL FIELD

The present disclosure relates to the field of communication technologies, and in particular to a device-to-device service restriction method and a computer-readable storage medium.

BACKGROUND

Along with development of wireless multimedia services, people have an increasing demand for high data rate and user experiences, which increases the requirements for system capacity and coverage of a traditional cellular network. On the other hand, with the popularity of applications such as social network, short-range data sharing, and local advertising, people have a gradually-increasing demand for knowing nearby interesting person or object and communicating with it (referred to as Proximity Service, ProSe). There is obvious limitation with a traditional cell-based cellular network in support of high data rate service and proximity service. In such demand, a device-to-device (D2D) communication technology representing a new development of future communication technology emerges. The application of the D2D technology can reduce the burden of the cellular network, lower batter power consumption of a user device, increase data transmission rate and improve the robustness of network infrastructure, thereby better satisfying the requirements of the high data rate service and the proximity service.

During the implementation of the present disclosure, the inventor finds that the following problems in some cases. In a scenario where a service of a terminal needs to be restricted, a huge potential security hazard may easily occur due to lack of security confidentiality awareness in a terminal user while high cost and low efficiency may be caused in a case of manual restrictions, resulting in inability to satisfy security requirements.

SUMMARY

In view of this, some embodiments of the present disclosure are intended to provide a device-to-device service restriction method and a computer readable storage medium so as to solve the problem that potential security hazards are easily caused and security requirements cannot be satisfied where a service of a terminal needs to be restricted.

In order to solve the above technical problem, certain embodiments of the present disclosure adopt the following technical solution. According to an aspect of certain embodiments of the present disclosure, provided is a device-to-device service restriction method. The method is applicable to a first terminal and includes: receiving a service restriction instruction sent by a second terminal; obtaining access class information of the second terminal when receiving the service restriction instruction sent by the second terminal; determining whether a service restriction authority of the second terminal is correct according to the access class information of the second terminal; restricting a function of the first terminal according to the service restriction instruction sent by the second terminal in response to that the service restriction authority of the second terminal is correct.

According to another aspect of certain embodiments of the present disclosure, provided is a first terminal. The first terminal includes a memory, a processor and a device-to-device service restriction program stored on the memory and run on the processor, where the device-to-device service restriction program is executed by the processor to perform the steps in the above device-to-device service restriction method. According to another aspect of certain embodiments of the present disclosure, provided is a device-to-device service restriction method. The method is applicable to a second terminal and includes the following: sending a service restriction instruction to a first terminal; sending access class information to the first terminal, responsive to that the first terminal receives the service restriction instruction; so that the first terminal determines whether a service restriction authority of the second terminal is correct according to the access class information, and restricts a function corresponding to the first terminal according to the service restriction instruction when the service restriction authority of the second terminal is correct.

According to another aspect of certain embodiments of the present disclosure, provided is a second terminal. The second terminal includes a memory, a processor and a device-to-device service restriction program stored on the memory and run on the processor, where the device-to-device service restriction program is executed by the processor to perform the steps in the above device-to-device service restriction method.

According to another aspect of certain embodiments of the present disclosure, provided is a computer readable storage medium. The computer readable storage medium stores a device-to-device service restriction program which is executed by a processor to perform the steps in the above device-to-device service restriction method.

In a device-to-device service restriction method, a terminal and a computer readable storage medium of the embodiments of the present disclosure, a function corresponding to the first terminal may be restricted according to the service restriction instruction sent by the second terminal. In a scenario where a service of a terminal needs to be restricted, information security of a security zone is guaranteed and user experience is improved.

