CN106776228B - Safety protection method of mobile terminal and mobile terminal - Google Patents

Safety protection method of mobile terminal and mobile terminal Download PDF

Info

Publication number
CN106776228B
CN106776228B CN201611261606.6A CN201611261606A CN106776228B CN 106776228 B CN106776228 B CN 106776228B CN 201611261606 A CN201611261606 A CN 201611261606A CN 106776228 B CN106776228 B CN 106776228B
Authority
CN
China
Prior art keywords
parameter
interface
pin
type
humidity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611261606.6A
Other languages
Chinese (zh)
Other versions
CN106776228A (en
Inventor
尹全喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611261606.6A priority Critical patent/CN106776228B/en
Publication of CN106776228A publication Critical patent/CN106776228A/en
Application granted granted Critical
Publication of CN106776228B publication Critical patent/CN106776228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供了一种移动终端的安全保护方法和移动终端,所述移动终端包括Type‑C接口,所述Type‑C接口包括SBU1管脚和SBU2管脚,所述方法包括:采用所述SBU1管脚和所述SBU2管脚获取所述Type‑C接口的特征使用参数;判断所述特征使用参数是大于预设阈值;当所述特征使用参数是大于预设阈值时,执行安全保护操作。采用自定义的SBU1管脚和所述SBU2管脚连接多个传感器,提高了Type‑C接口的管脚的复用程序,节约资源,可以准确判断Type‑C接口的使用情况,及根据使用情况执行安全保护操作,提高了Type‑C接口的可靠性及稳定性,进而提升移动终端的使用寿命及使用质量。

Figure 201611261606

Embodiments of the present invention provide a security protection method for a mobile terminal and a mobile terminal. The mobile terminal includes a Type-C interface, and the Type-C interface includes an SBU1 pin and an SBU2 pin. The method includes: using the Described SBU1 pin and described SBU2 pin obtain the feature usage parameter of described Type-C interface; Judge that described feature usage parameter is greater than preset threshold; When described feature usage parameter is greater than preset threshold, execute security protection operate. The custom SBU1 pin and the SBU2 pin are used to connect multiple sensors, which improves the multiplexing procedure of the pins of the Type-C interface, saves resources, and can accurately determine the usage of the Type-C interface, and according to the usage The security protection operation is performed to improve the reliability and stability of the Type-C interface, thereby improving the service life and quality of the mobile terminal.

Figure 201611261606

Description

一种移动终端的安全保护方法和移动终端A kind of security protection method of mobile terminal and mobile terminal

技术领域technical field

本发明涉及移动终端的技术领域,特别是涉及一种移动终端的安全保护的方法和一种移动终端。The present invention relates to the technical field of mobile terminals, and in particular, to a method for security protection of a mobile terminal and a mobile terminal.

背景技术Background technique

Type-C接口是依据USB(Universal Serial Bus,通用串行总线)3.1标准推出的新一代产品,与Type-A接口、Type-B接口不同的是,其支持正反插,可以用于移动终端的大电流供电,高速数据传输,视频、音频连接等功能。现在,很多厂家已经推出了支持Type-C接口的电子设备,Type-C有一统接口的发展趋势。The Type-C interface is a new generation product based on the USB (Universal Serial Bus) 3.1 standard. Unlike the Type-A interface and the Type-B interface, it supports positive and negative insertion and can be used in mobile terminals. High-current power supply, high-speed data transmission, video, audio connection and other functions. Now, many manufacturers have launched electronic equipment that supports Type-C interface, and Type-C has a development trend of unified interface.

Type-C协议规定的保护功能不够全面,虽然定义了双排共24pin脚,但是很多现有设计并没有全部使用这些pin脚。这些pin脚可以复用做其他用途,为Type-C接口带来更多丰富多彩的设计和功能,例如,可以将Type-C接口的pin脚复用,增加移动终端的使用过程的安全性。The protection function specified by the Type-C protocol is not comprehensive enough. Although a double row of 24 pins is defined, many existing designs do not use all these pins. These pins can be reused for other purposes, bringing more colorful designs and functions to the Type-C interface. For example, the pins of the Type-C interface can be reused to increase the security of the use process of the mobile terminal.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种移动终端的安全保护方法和相应的一种移动终端。In view of the above problems, embodiments of the present invention are proposed to provide a security protection method for a mobile terminal and a corresponding mobile terminal that overcome the above problems or at least partially solve the above problems.

为了解决上述问题,本发明实施例公开了一种移动终端的安全保护方法,所述移动终端包括Type-C接口,所述Type-C接口包括SBU1管脚和SBU2管脚,所述方法包括:In order to solve the above problem, an embodiment of the present invention discloses a security protection method for a mobile terminal. The mobile terminal includes a Type-C interface, and the Type-C interface includes an SBU1 pin and an SBU2 pin. The method includes:

采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数;Use the SBU1 pin and the SBU2 pin to obtain the characteristic usage parameters of the Type-C interface;

判断所述特征使用参数是大于预设阈值;Judging that the feature usage parameter is greater than a preset threshold;

当所述特征使用参数是大于预设阈值时,执行安全保护操作。When the feature usage parameter is greater than a preset threshold, a security protection operation is performed.

本发明实施例还公开了一种移动终端,所述移动终端包括Type-C接口,所述Type-C接口包括SBU1管脚和SBU2管脚,所述终端包括:An embodiment of the present invention further discloses a mobile terminal, the mobile terminal includes a Type-C interface, the Type-C interface includes an SBU1 pin and an SBU2 pin, and the terminal includes:

特征使用参数获取模块,用于采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数;A feature usage parameter acquisition module, used for acquiring the feature usage parameters of the Type-C interface by using the SBU1 pin and the SBU2 pin;

预设阈值判断模块,用于判断所述特征使用参数是大于预设阈值;a preset threshold judgment module, configured to judge that the feature usage parameter is greater than a preset threshold;

安全保护操作执行模块,用于当所述特征使用参数是大于预设阈值时,执行安全保护操作。A security protection operation execution module, configured to perform a security protection operation when the feature usage parameter is greater than a preset threshold.

本发明实施例包括以下优点:The embodiments of the present invention include the following advantages:

本发明实施例中,采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数,判断所述特征使用参数是大于预设阈值,当所述特征使用参数是大于预设阈值时,执行安全保护操作。采用自定义的SBU1管脚和所述SBU2管脚连接多个传感器,提高了Type-C接口的管脚的复用程序,节约资源,为Type-C接口带来更多丰富多彩的设计和功能,获得Type-C接口的特征使用参数,可以准确判断Type-C接口的使用情况,及根据使用情况执行安全保护操作,提高了Type-C接口的可靠性及稳定性。In the embodiment of the present invention, the SBU1 pin and the SBU2 pin are used to obtain the feature usage parameter of the Type-C interface, and it is determined that the feature usage parameter is greater than a preset threshold, and when the feature usage parameter is greater than When the threshold is preset, the security protection operation is performed. The custom SBU1 pin and the SBU2 pin are used to connect multiple sensors, which improves the pin multiplexing procedure of the Type-C interface, saves resources, and brings more colorful designs and functions to the Type-C interface. , obtain the characteristic usage parameters of the Type-C interface, can accurately judge the usage of the Type-C interface, and perform security protection operations according to the usage, which improves the reliability and stability of the Type-C interface.

本发明实施例中,采用自定义的SBU1管脚和所述SBU2管脚连接温度传感器、湿度传感器及电压传感器,获取Type-C接口的温度参数、湿度参数或电压参数,检测并防止移动终端的Type-C接口进水,及检测并防止移动终端的温度过高,进一步检测并防止移动终端的浪涌静电,增强移动终端的使用稳定性,提高移动终端的使用寿命。In the embodiment of the present invention, a user-defined SBU1 pin and the SBU2 pin are used to connect a temperature sensor, a humidity sensor and a voltage sensor to obtain the temperature parameter, humidity parameter or voltage parameter of the Type-C interface, and detect and prevent the mobile terminal from being damaged. Water enters the Type-C interface, detects and prevents the temperature of the mobile terminal from being too high, further detects and prevents the surge of static electricity of the mobile terminal, enhances the use stability of the mobile terminal, and improves the service life of the mobile terminal.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明实施例的一种移动终端的安全保护方法实施例的步骤流程图;FIG. 1 is a flowchart of steps in an embodiment of a security protection method for a mobile terminal according to an embodiment of the present invention;

图2是现有技术的一种Type-C接口的管脚示意图;Fig. 2 is the pin schematic diagram of a kind of Type-C interface of the prior art;

图3是本发明实施例的一种移动终端的安全保护方法实施例的步骤流程图;FIG. 3 is a flow chart of steps in an embodiment of a security protection method for a mobile terminal according to an embodiment of the present invention;

图4是本发明实施例中装置实施例三的一种移动终端的结构框图;FIG. 4 is a structural block diagram of a mobile terminal according to device embodiment 3 in an embodiment of the present invention;

图5是本发明实施例中装置实施例四的一种移动终端的结构框图;FIG. 5 is a structural block diagram of a mobile terminal according to the fourth embodiment of the device in the embodiment of the present invention;

图6是本发明实施例中装置实施例五的一种移动终端的结构框图。FIG. 6 is a structural block diagram of a mobile terminal according to Embodiment 5 of the apparatus in the embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明实施例所解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明实施例进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects solved by the embodiments of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

方法实施例一Method Embodiment 1

参照图1,示出了本发明实施例的一种移动终端的安全保护方法实施例一的步骤流程图,所述移动终端包括Type-C接口,所述Type-C接口包括SBU(Side band use,边带通道)1管脚和SBU2管脚,具体可以包括如下步骤:Referring to FIG. 1, a flow chart of steps of Embodiment 1 of a security protection method for a mobile terminal according to an embodiment of the present invention is shown. The mobile terminal includes a Type-C interface, and the Type-C interface includes an SBU (Side Band Use , sideband channel) 1 pin and SBU2 pin, which may include the following steps:

步骤101,采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数;Step 101, using the SBU1 pin and the SBU2 pin to obtain the characteristic usage parameters of the Type-C interface;

本发明实施例中,所述移动终端配置有USB3.1标准的Type-C接口,所述Type-C接口共有24只管脚,参照图2,示出了现有技术的一种的Type-C接口的管脚示意图,图2中的SBU1管脚和SBU2管脚为自定义功能的管脚,用户可以通过SBU1管脚和SBU2管脚设计自定义的功能,如,充电温度的检测,充电电流的检测等,本发明实施例中,采用温度传感器、湿度传感器及电压传感器连接所述SBU1管脚和所述SBU2管脚,获取Type-C接口的特征使用参数,例如:移动终端的温度、湿度及充电电压。In the embodiment of the present invention, the mobile terminal is configured with a USB3.1 standard Type-C interface, and the Type-C interface has a total of 24 pins. Referring to FIG. 2 , a Type-C interface of the prior art is shown. Schematic diagram of the pins of the C interface. The SBU1 and SBU2 pins in Figure 2 are pins with custom functions. Users can design custom functions through the SBU1 pins and SBU2 pins, such as charging temperature detection, charging Current detection, etc. In the embodiment of the present invention, a temperature sensor, a humidity sensor and a voltage sensor are used to connect the SBU1 pin and the SBU2 pin to obtain the characteristic usage parameters of the Type-C interface, such as: the temperature of the mobile terminal, humidity and charging voltage.

需要说明的是,上述的传感器仅仅本发明实施例中的牧举,还可以包括电压传感器、压力传感器及重力传感器等,对于传感器的种类,本发明实施例对此不作限制。进一步地,可以采用上述的传感器连接所述SBU1管脚和所述SBU2管脚,获取Type-C接口的特征使用参数,此时,所述特征使用参数可以是上述传感器测量得到的参数,可以包括Type-C接口的温度参数、湿度参数、电流参数、电压参数、承受的压力、跌落情况等参数,对于传感器的对应参数的类型,本发明实施例对此不作限制。It should be noted that the above-mentioned sensors are only the sensors in the embodiments of the present invention, and may also include voltage sensors, pressure sensors, and gravity sensors, etc. The types of sensors are not limited in the embodiments of the present invention. Further, the above-mentioned sensor can be used to connect the SBU1 pin and the SBU2 pin to obtain the characteristic usage parameter of the Type-C interface. At this time, the characteristic usage parameter can be the parameter measured by the above-mentioned sensor, which can include For parameters such as temperature parameters, humidity parameters, current parameters, voltage parameters, withstand pressure, and drop conditions of the Type-C interface, the types of corresponding parameters of the sensor are not limited in this embodiment of the present invention.

步骤102,判断所述特征使用参数是大于预设阈值;Step 102, judging that the feature usage parameter is greater than a preset threshold;

应用于本发明实施例,所述特征使用参数是采用传感器连接所述SBU1管脚和所述SBU2管脚获取到有关Type-C接口的参数,反映了Type-C接口的使用情况,可以判断步骤101获得的特征使用参数是否大于预设阈值,判断出Type-C接口的使用情况是否超出合理范围,以此作为发出安全提醒或其他必要的安全操作的依据。例如,判断温度传感器的获得的温度参数是否大于温度阈值,或者判断湿度传感器的获得的湿度参数是否大于湿度阈值,或者判断所述电压参数是否大于电压阈值。Applied to the embodiment of the present invention, the feature usage parameter is to use a sensor to connect the SBU1 pin and the SBU2 pin to obtain the parameters related to the Type-C interface, which reflects the usage of the Type-C interface, and can determine the steps 101 Whether the obtained feature usage parameter is greater than a preset threshold, it is determined whether the usage of the Type-C interface exceeds a reasonable range, and this is used as a basis for issuing a security reminder or other necessary security operations. For example, it is judged whether the obtained temperature parameter of the temperature sensor is greater than the temperature threshold, or whether the obtained humidity parameter of the humidity sensor is greater than the humidity threshold, or whether the voltage parameter is greater than the voltage threshold.

步骤103,当所述特征使用参数是大于预设阈值时,执行安全保护操作。Step 103, when the feature usage parameter is greater than a preset threshold, perform a security protection operation.

实际应用于本发明实施例中,当所述特征使用参数大于预设阈值,执行安全保护操作,其中,所述安全保护操作可以包括:当用户正在充电时,切断供电,或者发送安全提醒消息至移动终端的主屏幕,对于安全保护操作,还可以包括自动关机,自动预警等操作,本发明实施例对此不作限制。Practically applied to this embodiment of the present invention, when the feature usage parameter is greater than a preset threshold, a security protection operation is performed, where the security protection operation may include: when the user is charging, cutting off the power supply, or sending a security reminder message to The home screen of the mobile terminal may further include operations such as automatic shutdown, automatic warning, and other operations for security protection operations, which are not limited in this embodiment of the present invention.

本发明实施例中,采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数,判断所述特征使用参数是大于预设阈值,当所述特征使用参数是大于预设阈值时,执行安全保护操作。采用自定义的SBU1管脚和所述SBU2管脚连接多个传感器,提高了Type-C接口的管脚的复用程序,节约资源,为Type-C接口带来更多丰富多彩的设计和功能,获得Type-C接口的特征使用参数,可以准确判断Type-C接口的使用情况,及根据使用情况执行安全保护操作,提高了Type-C接口的可靠性及稳定性,进而提升移动终端的使用寿命及使用质量。In the embodiment of the present invention, the SBU1 pin and the SBU2 pin are used to obtain the feature usage parameter of the Type-C interface, and it is determined that the feature usage parameter is greater than a preset threshold, and when the feature usage parameter is greater than When the threshold is preset, the security protection operation is performed. The custom SBU1 pin and the SBU2 pin are used to connect multiple sensors, which improves the pin multiplexing procedure of the Type-C interface, saves resources, and brings more colorful designs and functions to the Type-C interface. , Obtain the characteristic usage parameters of the Type-C interface, can accurately judge the usage of the Type-C interface, and perform security protection operations according to the usage, improve the reliability and stability of the Type-C interface, and then improve the use of mobile terminals. life and quality of use.

方法实施例二Method Embodiment 2

参照图3,示出了本发明实施例的一种移动终端的安全保护方法实施例二的步骤流程图,所述移动终端包括Type-C接口,所述Type-C接口包括SBU1管脚和SBU2管脚,具体可以包括如下步骤:Referring to FIG. 3 , it shows a flowchart of steps of Embodiment 2 of a security protection method for a mobile terminal according to an embodiment of the present invention. The mobile terminal includes a Type-C interface, and the Type-C interface includes SBU1 pins and SBU2 pin, which may include the following steps:

步骤201,采用所述SBU1管脚和所述SBU2管脚连接温度传感器和/或湿度传感器和/或电压传感器;Step 201, using the SBU1 pin and the SBU2 pin to connect a temperature sensor and/or a humidity sensor and/or a voltage sensor;

本发明实施例中,移动终端采用Type-C接口的SBU1管脚和SBU2管脚连接温度传感器和/或湿度传感器和/或电压传感器,以温度和/或湿度传感器和/或电压传感器作为检测模块,检测Type-C接口的温度参数及湿度参数及电压参数,需要说明的是,本发明实施例对传感器的种类不作限制。In this embodiment of the present invention, the mobile terminal uses the SBU1 pin and the SBU2 pin of the Type-C interface to connect the temperature sensor and/or the humidity sensor and/or the voltage sensor, and the temperature and/or humidity sensor and/or the voltage sensor are used as the detection module , to detect temperature parameters, humidity parameters and voltage parameters of the Type-C interface. It should be noted that the embodiment of the present invention does not limit the types of sensors.

步骤202,从所述温度传感器和/或所述湿度传感器和/或所述电压传感器获取所述Type-C接口的所述温度参数、湿度参数或电压参数;Step 202: Acquire the temperature parameter, humidity parameter or voltage parameter of the Type-C interface from the temperature sensor and/or the humidity sensor and/or the voltage sensor;

具体而言,当移动终端采用Type-C接口的SBU1管脚和SBU2管脚连接温度传感器和/或湿度传感器和/或电压传感器,在一定的相同时间间隔内,检测Type-C接口的温度参数、湿度参数或电压参数,上述的参数用于检测Type-C接口的使用状况,例如:是否进水,是否温度过高,是否发生浪涌静电。Specifically, when the mobile terminal uses the SBU1 pin and SBU2 pin of the Type-C interface to connect the temperature sensor and/or the humidity sensor and/or the voltage sensor, the temperature parameter of the Type-C interface is detected within a certain same time interval. , humidity parameters or voltage parameters, the above parameters are used to detect the usage status of the Type-C interface, such as whether water enters, whether the temperature is too high, and whether there is a surge of static electricity.

步骤203,判断所述温度参数是否大于温度阈值;Step 203, judging whether the temperature parameter is greater than a temperature threshold;

步骤204,判断所述湿度参数是否大于湿度阈值;Step 204, judging whether the humidity parameter is greater than a humidity threshold;

步骤205,判断所述电压参数是否大于电压阈值;Step 205, judging whether the voltage parameter is greater than a voltage threshold;

本发明实施例中,所述移动终端判断温度参数是否大于温度阈值;以及,判断所述湿度参数是否大于湿度阈值;以及判断所述电压参数是否大于电压阈值,举例而言,所述温度阈值可以40摄氏度,所述湿度阈值可以为80%,电压阈值可以为3.8V;需要说明的是,对于所述温度阈值、湿度阈值及电压阈值,本领域技术人员可以根据实际情况而设定,本发明实施例对此不作限制。In this embodiment of the present invention, the mobile terminal judges whether the temperature parameter is greater than a temperature threshold; and judges whether the humidity parameter is greater than a humidity threshold; and judges whether the voltage parameter is greater than a voltage threshold, for example, the temperature threshold may be 40 degrees Celsius, the humidity threshold can be 80%, and the voltage threshold can be 3.8V; it should be noted that, for the temperature threshold, humidity threshold and voltage threshold, those skilled in the art can set according to the actual situation, the present invention The embodiment does not limit this.

步骤206,当所述特征使用参数是大于预设阈值时,切断所述VBUS管脚的供电操作。Step 206, when the feature usage parameter is greater than a preset threshold, cut off the power supply operation of the VBUS pin.

本发明实施例中,移动终端正在充电时,检测到特征使用参数(可以包括温度参数、湿度参数或电压参数)大于预设阈值时,切断所述VBUS(Voltage Bus,电源接线)管脚的供电操作,当上述的任一个的特征使用参数超过阈值时,可以认为移动终端的充电安全性受到威胁,切断BUS管脚的供电操作,停止充电操作,保证移动终端的安全使用性。In this embodiment of the present invention, when the mobile terminal is charging and detects that a feature usage parameter (which may include a temperature parameter, a humidity parameter, or a voltage parameter) is greater than a preset threshold, the power supply to the VBUS (Voltage Bus, power supply wiring) pin is cut off. Operation, when any of the above feature usage parameters exceeds the threshold, it can be considered that the charging safety of the mobile terminal is threatened, the power supply operation of the BUS pin is cut off, and the charging operation is stopped to ensure the safe use of the mobile terminal.

本发明实施例的一种优选实施例中,所述移动终端包括屏幕,所述当所述特征使用参数是大于预设阈值时,执行安全保护操作的步骤还包括:当所述特征使用参数是大于预设阈值时,在所述屏幕显示安全提醒消息。In a preferred embodiment of the embodiment of the present invention, the mobile terminal includes a screen, and when the feature usage parameter is greater than a preset threshold, the step of performing a security protection operation further includes: when the feature usage parameter is When the value is greater than the preset threshold, a safety reminder message is displayed on the screen.

进一步地,移动终端检测到所述特征使用参数(可以包括温度参数、湿度参数或电压参数)大于预设阈值时,在移动终端的屏幕显示安全提醒消息,其中,安全提醒消息的内容可以包括提示用户“移动终端进水,请送检”或“移动终端温度过高,请暂停使用”等,本发明实施例对此不作限制。Further, when the mobile terminal detects that the feature usage parameter (which may include a temperature parameter, a humidity parameter or a voltage parameter) is greater than a preset threshold, a safety reminder message is displayed on the screen of the mobile terminal, wherein the content of the safety reminder message may include a reminder This is not limited in this embodiment of the present invention when the user "enters the mobile terminal with water, please submit it for inspection" or "the temperature of the mobile terminal is too high, please suspend use".

本发明实施例中,采用所述SBU1管脚和所述SBU2管脚连接温度传感器和/或湿度传感器和/或电压传感器;从所述温度传感器和/或所述湿度传感器和/或所述电压传感器获取所述Type-C接口的所述温度参数、湿度参数或电压参数。判断所述温度参数是否大于温度阈值;和/或,判断所述湿度参数是否大于湿度阈值;和/或,判断所述电压参数是否大于电压阈值,当所述使用参数是大于预设阈值时,切断所述VBUS管脚的供电操作,还可以在所述屏幕显示安全提醒消息,本发明实施例中,采用自定义的SBU1管脚和所述SBU2管脚连接温度传感器、湿度传感器及电压传感器,获取Type-C接口的温度参数、湿度参数或电压参数,检测并防止移动终端的Type-C接口进水,及检测并防止移动终端的温度过高,进一步检测并防止移动终端的浪涌静电,增强移动终端的使用稳定性,提高移动终端的使用寿命。In this embodiment of the present invention, the SBU1 pin and the SBU2 pin are used to connect a temperature sensor and/or a humidity sensor and/or a voltage sensor; from the temperature sensor and/or the humidity sensor and/or the voltage The sensor acquires the temperature parameter, humidity parameter or voltage parameter of the Type-C interface. judging whether the temperature parameter is greater than a temperature threshold; and/or, judging whether the humidity parameter is greater than a humidity threshold; and/or judging whether the voltage parameter is greater than a voltage threshold, when the use parameter is greater than a preset threshold, The power supply operation of the VBUS pin is cut off, and a safety reminder message can also be displayed on the screen. In the embodiment of the present invention, the user-defined SBU1 pin and the SBU2 pin are used to connect the temperature sensor, the humidity sensor and the voltage sensor, Obtain the temperature parameters, humidity parameters or voltage parameters of the Type-C interface, detect and prevent the Type-C interface of the mobile terminal from entering water, detect and prevent the temperature of the mobile terminal from being too high, and further detect and prevent the surge static electricity of the mobile terminal, The use stability of the mobile terminal is enhanced, and the service life of the mobile terminal is improved.

需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the sake of simple description, the method embodiments are described as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because According to embodiments of the present invention, certain steps may be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

装置实施例三Device Embodiment 3

图4是本发明一个实施例的移动终端的结构框图。所述移动终端300包括Type-C接口,所述Type-C接口包括SBU1管脚和SBU2管脚,图4所示的移动终端300包括特征使用参数获取模块301、预设阈值判断模块302和安全保护操作执行模块303。FIG. 4 is a structural block diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal 300 includes a Type-C interface, and the Type-C interface includes an SBU1 pin and an SBU2 pin. The mobile terminal 300 shown in FIG. 4 includes a feature usage parameter acquisition module 301, a preset threshold judgment module 302, and a security The protection operation executes the module 303 .

特征使用参数获取模块301,用于采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数;The feature usage parameter acquisition module 301 is used to obtain the feature usage parameters of the Type-C interface by using the SBU1 pin and the SBU2 pin;

预设阈值判断模块302,用于判断所述特征使用参数是大于预设阈值;A preset threshold value judgment module 302, configured to judge that the feature usage parameter is greater than a preset threshold value;

安全保护操作执行模块303,用于当所述特征使用参数是大于预设阈值时,执行安全保护操作。The security protection operation execution module 303 is configured to perform a security protection operation when the feature usage parameter is greater than a preset threshold.

优选地,所述特征使用参数包括温度参数、湿度参数及电压参数,所述特征使用参数获取模块301包括:Preferably, the feature usage parameters include temperature parameters, humidity parameters and voltage parameters, and the feature usage parameter acquisition module 301 includes:

传感器连接子模块,用于采用所述SBU1管脚和所述SBU2管脚连接温度传感器和/或湿度传感器和/或电压传感器;a sensor connection sub-module for connecting a temperature sensor and/or a humidity sensor and/or a voltage sensor by using the SBU1 pin and the SBU2 pin;

参数获取子模块,用于从所述温度传感器和/或所述湿度传感器和/或所述电压传感器获取所述Type-C接口的所述温度参数、湿度参数或电压参数。A parameter acquisition submodule, configured to acquire the temperature parameter, humidity parameter or voltage parameter of the Type-C interface from the temperature sensor and/or the humidity sensor and/or the voltage sensor.

优选地,所述预设阈值包括温度阈值、湿度阈值及电压阈值,所述预设阈值判断模块302包括:Preferably, the preset threshold includes a temperature threshold, a humidity threshold and a voltage threshold, and the preset threshold determination module 302 includes:

温度阈值判断子模块,用于判断所述温度参数是否大于温度阈值;a temperature threshold judgment sub-module for judging whether the temperature parameter is greater than the temperature threshold;

和/或,湿度阈值判断子模块,用于判断所述湿度参数是否大于湿度阈值;And/or, a humidity threshold judgment sub-module for judging whether the humidity parameter is greater than the humidity threshold;

和/或,电压阈值判断子模块,用于判断所述电压参数是否大于电压阈值。And/or, a voltage threshold judgment sub-module for judging whether the voltage parameter is greater than the voltage threshold.

优选地,所述Type-C接口包括VBUS管脚,所述安全保护操作执行模块303包括:Preferably, the Type-C interface includes VBUS pins, and the security protection operation execution module 303 includes:

供电操作切断子模块,用于当所述使用参数是大于预设阈值时,切断所述VBUS管脚的供电操作。The power supply operation cut-off sub-module is configured to cut off the power supply operation of the VBUS pin when the use parameter is greater than a preset threshold.

优选地,所述移动终端包括屏幕,所述安全保护操作执行模块303还包括:Preferably, the mobile terminal includes a screen, and the security protection operation execution module 303 further includes:

安全提醒消息显示子模块,用于当所述使用参数是大于预设阈值时,在所述屏幕显示安全提醒消息。A safety reminder message display sub-module is configured to display a safety reminder message on the screen when the usage parameter is greater than a preset threshold.

装置实施例四Device Embodiment Four

图5是本发明另一个实施例的移动终端的结构框图。图5所示的移动终端400包括:至少一个处理器401、存储器402、至少一个网络接口404和其他用户接口403和拍照组件406,所述移动终端400包括Type-C接口,所述Type-C接口包括SBU1管脚和SBU2管脚。移动终端400中的各个组件通过总线系统405耦合在一起。可理解,总线系统405用于实现这些组件之间的连接通信。总线系统405除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统405拍照组件406包括摄像头。FIG. 5 is a structural block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 400 shown in FIG. 5 includes: at least one processor 401, a memory 402, at least one network interface 404 and other user interfaces 403 and a photographing component 406, the mobile terminal 400 includes a Type-C interface, the Type-C interface The interface includes SBU1 pins and SBU2 pins. The various components in the mobile terminal 400 are coupled together by a bus system 405 . It can be understood that the bus system 405 is used to implement the connection communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in FIG. 5, various buses are labeled as bus system 405. The camera component 406 includes a camera.

其中,用户接口403可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Among them, the user interface 403 may include a display, a keyboard or a pointing device (eg, a mouse, a trackball, a touch pad or a touch screen, etc.).

可以理解,本发明实施例中的存储器402可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器402旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 402 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (ErasablePROM, EPROM), Electrically Erasable Program read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be Random Access Memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access Memory (DirectRambusRAM, DRRAM). The memory 402 of the systems and methods described in embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.

在一些实施方式中,存储器402存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统4021和应用程序4022。In some embodiments, memory 402 stores the following elements, executable modules or data structures, or subsets thereof, or extended sets of them: operating system 4021 and applications 4022 .

其中,操作系统4021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序4022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序4022中。The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 4022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., for implementing various application services. A program for implementing the method of the embodiment of the present invention may be included in the application program 4022 .

在本发明实施例中,通过调用存储器402存储的程序或指令,具体的,可以是应用程序4022中存储的程序或指令,处理器401用于采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数;判断所述特征使用参数是大于预设阈值;当所述特征使用参数是大于预设阈值时,执行安全保护操作。In this embodiment of the present invention, by calling the program or instruction stored in the memory 402, specifically, the program or instruction stored in the application program 4022, the processor 401 is configured to use the SBU1 pin and the SBU2 pin to obtain The feature usage parameter of the Type-C interface; it is judged that the feature usage parameter is greater than a preset threshold; when the feature usage parameter is greater than the preset threshold, a security protection operation is performed.

上述本发明实施例揭示的方法可以应用于处理器401中,或者由处理器401实现。处理器401可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器401中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器401可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecific IntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器402,处理器401读取存储器402中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the processor 401 or implemented by the processor 401 . The processor 401 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 401 or an instruction in the form of software. The above-mentioned processor 401 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (FieldProgrammableGateArray, FPGA) or other programmable logic devices, discrete gates. Or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402, and completes the steps of the above method in combination with its hardware.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD) ), a Field-Programmable Gate Array (FPGA), a general-purpose processor, a controller, a microcontroller, a microprocessor, other electronic units for performing the functions described herein, or a combination thereof.

对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present invention. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

可选地,所述特征使用参数包括温度参数、湿度参数及电压参数。Optionally, the feature usage parameters include temperature parameters, humidity parameters and voltage parameters.

可选地,处理器401还用于:采用所述SBU1管脚和所述SBU2管脚连接温度传感器和/或湿度传感器和/或电压传感器;Optionally, the processor 401 is further configured to: use the SBU1 pin and the SBU2 pin to connect a temperature sensor and/or a humidity sensor and/or a voltage sensor;

可选地,处理器401还用于:从所述温度传感器和/或所述湿度传感器和/或所述电压传感器获取所述Type-C接口的所述温度参数、湿度参数或电压参数。Optionally, the processor 401 is further configured to: acquire the temperature parameter, the humidity parameter or the voltage parameter of the Type-C interface from the temperature sensor and/or the humidity sensor and/or the voltage sensor.

可选地,所述预设阈值包括温度阈值、湿度阈值及电压阈值。Optionally, the preset threshold includes a temperature threshold, a humidity threshold and a voltage threshold.

可选地,处理器401还用于:判断所述温度参数是否大于温度阈值;Optionally, the processor 401 is further configured to: determine whether the temperature parameter is greater than a temperature threshold;

和/或,可选地,处理器401还用于:判断所述湿度参数是否大于湿度阈值;And/or, optionally, the processor 401 is further configured to: determine whether the humidity parameter is greater than a humidity threshold;

和/或,可选地,处理器401还用于:判断所述电压参数是否大于电压阈值。And/or, optionally, the processor 401 is further configured to: determine whether the voltage parameter is greater than a voltage threshold.

可选地,所述Type-C接口包括VBUS管脚。Optionally, the Type-C interface includes VBUS pins.

可选地,处理器401还用于:当所述使用参数是大于预设阈值时,切断所述VBUS管脚的供电操作。Optionally, the processor 401 is further configured to: cut off the power supply operation of the VBUS pin when the usage parameter is greater than a preset threshold.

可选地,处理器401还用于:当所述使用参数是大于预设阈值时,在所述屏幕显示安全提醒消息。Optionally, the processor 401 is further configured to: display a safety reminder message on the screen when the usage parameter is greater than a preset threshold.

移动终端400能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 400 can implement each process implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, details are not repeated here.

本发明实施例中,采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数,判断所述特征使用参数是大于预设阈值,当所述特征使用参数是大于预设阈值时,执行安全保护操作。采用自定义的SBU1管脚及所述SBU2管脚连接多个传感器,提高了Type-C接口的管脚的复用程序,节约资源,为Type-C接口带来更多丰富多彩的设计和功能,获得Type-C接口的特征使用参数,可以准确判断Type-C接口的使用情况,及根据使用情况执行安全保护操作,提高了Type-C接口的可靠性及稳定性,进而提升移动终端的使用寿命及使用质量。In the embodiment of the present invention, the SBU1 pin and the SBU2 pin are used to obtain the feature usage parameter of the Type-C interface, and it is determined that the feature usage parameter is greater than a preset threshold, and when the feature usage parameter is greater than When the threshold is preset, the security protection operation is performed. The custom SBU1 pin and the SBU2 pin are used to connect multiple sensors, which improves the pin multiplexing procedure of the Type-C interface, saves resources, and brings more colorful designs and functions to the Type-C interface. , Obtain the characteristic usage parameters of the Type-C interface, can accurately judge the usage of the Type-C interface, and perform security protection operations according to the usage, improve the reliability and stability of the Type-C interface, and then improve the use of mobile terminals. life and quality of use.

装置实施例五Device Embodiment 5

图6是本发明另一个实施例的移动终端的结构示意图。具体地,图6中的移动终端500可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。FIG. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 500 in FIG. 6 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图6中的移动终端500包括射频(RadioFrequency,RF)电路510、存储器520、输入单元530、显示单元540、处理器560、音频电路570、WiFi(WirelessFidelity)模块580和电源590和拍照组件5100,所述移动终端500包括Type-C接口,所述Type-C接口包括SBU1管脚及SBU2管脚。The mobile terminal 500 in FIG. 6 includes a radio frequency (Radio Frequency, RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a processor 560, an audio circuit 570, a WiFi (Wireless Fidelity) module 580, a power supply 590 and a camera assembly 5100, The mobile terminal 500 includes a Type-C interface, and the Type-C interface includes an SBU1 pin and an SBU2 pin.

其中,输入单元530可用于接收用户输入的数字或字符信息,以及产生与移动终端500的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元530可以包括触控面板531。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器560,并能接收处理器560发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 530 may be used to receive numerical or character information input by the user, and generate signal input related to user settings and function control of the mobile terminal 500 . Specifically, in this embodiment of the present invention, the input unit 530 may include a touch panel 531 . The touch panel 531, also known as a touch screen, can collect the user's touch operations on or near it (such as the user's operations on the touch panel 531 using any suitable objects or accessories such as a finger, a stylus, etc.) The specified program drives the corresponding connection device. Optionally, the touch panel 531 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 560, and can receive commands sent by the processor 560 and execute them. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 531, the input unit 530 may also include other input devices 532, and the other input devices 532 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元540可用于显示由用户输入的信息或提供给用户的信息以及移动终端500的各种菜单界面。显示单元540可包括显示面板541,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板541。The display unit 540 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 500 . The display unit 540 may include a display panel 541, and optionally, the display panel 541 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板531可以覆盖显示面板541,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器560以确定触摸事件的类型,随后处理器560根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 531 may cover the display panel 541 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is transmitted to the processor 560 to determine the type of the touch event, and then the processor 560 provides corresponding visual output on the touch display screen according to the type of touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch screen includes the application program interface display area and the commonly used controls display area. The arrangement of the application program interface display area and the common control display area is not limited, and may be an arrangement that can distinguish the two display areas, such as up-down arrangement, left-right arrangement, or the like. The application program interface display area can be used to display the interface of the application program. Each interface may contain at least one application icon and/or interface elements such as widget desktop controls. The application program interface display area can also be an empty interface that does not contain any content. The commonly used control display area is used to display controls with high usage rate, such as setting buttons, interface numbers, scroll bars, phonebook icons and other application icons.

拍照组件5100包括摄像头。The camera assembly 5100 includes a camera.

其中处理器560是移动终端500的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器521内的软件程序和/或模块,以及调用存储在第二存储器522内的数据,执行移动终端500的各种功能和处理数据,从而对移动终端500进行整体监控。可选的,处理器560可包括一个或多个处理单元。The processor 560 is the control center of the mobile terminal 500, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the first memory 521, and calling the software programs and/or modules stored in the second memory 521. The data in the memory 522 executes various functions of the mobile terminal 500 and processes data, so as to monitor the mobile terminal 500 as a whole. Optionally, processor 560 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器521内的软件程序和/或模块和/或该第二存储器522内的数据,处理器560用于采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数;判断所述特征使用参数是大于预设阈值;当所述特征使用参数是大于预设阈值时,执行安全保护操作。In this embodiment of the present invention, by calling and storing software programs and/or modules in the first memory 521 and/or data in the second memory 522, the processor 560 is configured to use the SBU1 pin and the SBU2 The pin obtains the feature usage parameter of the Type-C interface; judges that the feature usage parameter is greater than a preset threshold; when the feature usage parameter is greater than the preset threshold, a security protection operation is performed.

可选地,所述特征使用参数包括温度参数、湿度参数及电压参数。Optionally, the feature usage parameters include temperature parameters, humidity parameters and voltage parameters.

可选地,处理器560还用于:采用所述SBU1管脚和所述SBU2管脚连接温度传感器和/或湿度传感器和/或电压传感器;Optionally, the processor 560 is further configured to: use the SBU1 pin and the SBU2 pin to connect a temperature sensor and/or a humidity sensor and/or a voltage sensor;

可选地,处理器560还用于:从所述温度传感器和/或所述湿度传感器和/或所述电压传感器获取所述Type-C接口的所述温度参数、湿度参数或电压参数。Optionally, the processor 560 is further configured to: acquire the temperature parameter, humidity parameter or voltage parameter of the Type-C interface from the temperature sensor and/or the humidity sensor and/or the voltage sensor.

可选地,所述预设阈值包括温度阈值、湿度阈值及电压阈值。Optionally, the preset threshold includes a temperature threshold, a humidity threshold and a voltage threshold.

可选地,处理器560还用于:判断所述温度参数是否大于温度阈值;Optionally, the processor 560 is further configured to: determine whether the temperature parameter is greater than a temperature threshold;

和/或,可选地,处理器560还用于:判断所述湿度参数是否大于湿度阈值;And/or, optionally, the processor 560 is further configured to: determine whether the humidity parameter is greater than a humidity threshold;

和/或,可选地,处理器560还用于:判断所述电压参数是否大于电压阈值。And/or, optionally, the processor 560 is further configured to: determine whether the voltage parameter is greater than a voltage threshold.

可选地,所述Type-C接口包括VBUS管脚。Optionally, the Type-C interface includes VBUS pins.

可选地,处理器560还用于:当所述使用参数是大于预设阈值时,切断所述VBUS管脚的供电操作。Optionally, the processor 560 is further configured to: cut off the power supply operation of the VBUS pin when the usage parameter is greater than a preset threshold.

可选地,处理器560还用于:当所述使用参数是大于预设阈值时,在所述屏幕显示安全提醒消息。Optionally, the processor 560 is further configured to: display a safety reminder message on the screen when the usage parameter is greater than a preset threshold.

可见,本发明实施例中,采用所述SBU1管脚和所述SBU2管脚连接温度传感器和/或湿度传感器和/或电压传感器;从所述温度传感器和/或所述湿度传感器和/或所述电压传感器获取所述Type-C接口的所述温度参数、湿度参数或电压参数。判断所述温度参数是否大于温度阈值;和/或,判断所述湿度参数是否大于湿度阈值;和/或,判断所述电压参数是否大于电压阈值,当所述使用参数是大于预设阈值时,切断所述VBUS管脚的供电操作,还可以在所述屏幕显示安全提醒消息,本发明实施例中,采用自定义的SBU1管脚及所述SBU2管脚连接温度传感器、湿度传感器及电压传感器,获取Type-C接口的温度参数、湿度参数或电压参数,检测并防止移动终端的Type-C接口进水,及检测并防止移动终端的温度过高,进一步检测并防止移动终端的浪涌静电,增强移动终端的使用稳定性,提高移动终端的使用寿命。It can be seen that, in this embodiment of the present invention, the SBU1 pin and the SBU2 pin are used to connect the temperature sensor and/or the humidity sensor and/or the voltage sensor; The voltage sensor acquires the temperature parameter, the humidity parameter or the voltage parameter of the Type-C interface. judging whether the temperature parameter is greater than a temperature threshold; and/or, judging whether the humidity parameter is greater than a humidity threshold; and/or judging whether the voltage parameter is greater than a voltage threshold, when the use parameter is greater than a preset threshold, The power supply operation of the VBUS pin is cut off, and a safety reminder message can also be displayed on the screen. In the embodiment of the present invention, the user-defined SBU1 pin and the SBU2 pin are used to connect the temperature sensor, the humidity sensor and the voltage sensor, Obtain the temperature parameters, humidity parameters or voltage parameters of the Type-C interface, detect and prevent the Type-C interface of the mobile terminal from entering water, detect and prevent the temperature of the mobile terminal from being too high, and further detect and prevent the surge static electricity of the mobile terminal, The use stability of the mobile terminal is enhanced, and the service life of the mobile terminal is improved.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (8)

1.一种移动终端的安全保护方法,其特征在于,所述移动终端包括Type-C接口,所述Type-C接口包括SBU1管脚和SBU2管脚,所述方法包括:1. a security protection method of a mobile terminal, is characterized in that, described mobile terminal comprises Type-C interface, and described Type-C interface comprises SBU1 pin and SBU2 pin, and described method comprises: 采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数;其中,所述特征使用参数是通过连接在所述SBU1管脚和所述SBU2管脚的传感器在相同时间间隔内获取的;Use the SBU1 pin and the SBU2 pin to obtain the feature usage parameter of the Type-C interface; wherein, the feature usage parameter is obtained through the sensor connected to the SBU1 pin and the SBU2 pin in the same obtained within the time interval; 判断所述特征使用参数是否大于预设阈值;judging whether the feature usage parameter is greater than a preset threshold; 当所述特征使用参数是大于预设阈值时,执行安全保护操作;When the feature usage parameter is greater than a preset threshold, perform a security protection operation; 其中,所述特征使用参数包括Type-C接口的湿度参数、电流参数、电压参数、承受的压力、跌落情况其中至少一种;Wherein, the feature usage parameters include at least one of humidity parameters, current parameters, voltage parameters, withstand pressure, and drop conditions of the Type-C interface; 所述Type-C接口包括VBUS管脚,所述当所述特征使用参数是大于预设阈值时,执行安全保护操作的步骤包括:The Type-C interface includes a VBUS pin, and when the feature usage parameter is greater than a preset threshold, the step of performing a security protection operation includes: 当所述特征使用参数是大于预设阈值时,切断所述VBUS管脚的供电操作。When the feature usage parameter is greater than a preset threshold, the power supply operation of the VBUS pin is cut off. 2.根据权利要求1所述的方法,其特征在于,所述特征使用参数包括湿度参数及电压参数,所述采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数的步骤包括:2. The method according to claim 1, wherein the feature usage parameters include a humidity parameter and a voltage parameter, and the SBU1 pin and the SBU2 pin are used to obtain the feature of the Type-C interface Steps to use parameters include: 采用所述SBU1管脚和所述SBU2管脚连接湿度传感器和/或电压传感器;Use the SBU1 pin and the SBU2 pin to connect a humidity sensor and/or a voltage sensor; 从所述湿度传感器和/或所述电压传感器获取所述Type-C接口的所述湿度参数和/或电压参数。The humidity parameter and/or the voltage parameter of the Type-C interface is acquired from the humidity sensor and/or the voltage sensor. 3.根据权利要求1或2所述的方法,其特征在于,所述预设阈值包括湿度阈值及电压阈值,所述判断所述特征使用参数是否大于预设阈值的步骤包括:3. The method according to claim 1 or 2, wherein the preset threshold includes a humidity threshold and a voltage threshold, and the step of judging whether the feature usage parameter is greater than the preset threshold comprises: 判断所述湿度参数是否大于湿度阈值;Judging whether the humidity parameter is greater than a humidity threshold; 和/或,判断所述电压参数是否大于电压阈值。and/or, determine whether the voltage parameter is greater than a voltage threshold. 4.根据权利要求1所述的方法,其特征在于,所述移动终端包括屏幕,所述当所述特征使用参数是大于预设阈值时,执行安全保护操作的步骤还包括:4. The method according to claim 1, wherein the mobile terminal comprises a screen, and when the feature usage parameter is greater than a preset threshold, the step of performing a security protection operation further comprises: 当所述特征使用参数是大于预设阈值时,在所述屏幕显示安全提醒消息。When the feature usage parameter is greater than a preset threshold, a safety reminder message is displayed on the screen. 5.一种移动终端,其特征在于,所述移动终端包括Type-C接口,所述Type-C接口包括SBU1管脚和SBU2管脚,所述终端包括:5. A mobile terminal, characterized in that the mobile terminal comprises a Type-C interface, the Type-C interface comprises an SBU1 pin and an SBU2 pin, and the terminal comprises: 特征使用参数获取模块,用于采用所述SBU1管脚和所述SBU2管脚获取所述Type-C接口的特征使用参数;其中,所述特征使用参数是通过连接在所述SBU1管脚和所述SBU2管脚的传感器在相同时间间隔内获取的;The feature usage parameter acquisition module is used to obtain the feature usage parameter of the Type-C interface by using the SBU1 pin and the SBU2 pin; wherein, the feature usage parameter is obtained by connecting the SBU1 pin and the SBU2 pin. The sensor of the SBU2 pin is obtained within the same time interval; 预设阈值判断模块,用于判断所述特征使用参数是否大于预设阈值;a preset threshold judgment module, configured to judge whether the feature usage parameter is greater than a preset threshold; 安全保护操作执行模块,用于当所述特征使用参数是大于预设阈值时,执行安全保护操作;a security protection operation execution module, configured to perform a security protection operation when the feature usage parameter is greater than a preset threshold; 其中,所述特征使用参数包括Type-C接口的湿度参数、电流参数、电压参数、承受的压力、跌落情况其中至少一种;Wherein, the feature usage parameters include at least one of humidity parameters, current parameters, voltage parameters, withstand pressure, and drop conditions of the Type-C interface; 所述Type-C接口包括VBUS管脚,所述安全保护操作执行模块,具体用于:The Type-C interface includes VBUS pins, and the security protection operation execution module is specifically used for: 当所述特征使用参数是大于预设阈值时,切断所述VBUS管脚的供电操作。When the feature usage parameter is greater than a preset threshold, the power supply operation of the VBUS pin is cut off. 6.根据权利要求5所述的终端,其特征在于,所述特征使用参数包括湿度参数及电压参数,所述特征使用参数获取模块包括:6. The terminal according to claim 5, wherein the feature usage parameters include humidity parameters and voltage parameters, and the feature usage parameter acquisition module comprises: 传感器连接子模块,用于采用所述SBU1管脚和所述SBU2管脚连接湿度传感器和/或电压传感器;A sensor connection sub-module for connecting a humidity sensor and/or a voltage sensor by using the SBU1 pin and the SBU2 pin; 参数获取子模块,用于从所述湿度传感器和/或所述电压传感器获取所述Type-C接口的所述湿度参数和/或电压参数。A parameter acquisition sub-module, configured to acquire the humidity parameter and/or the voltage parameter of the Type-C interface from the humidity sensor and/or the voltage sensor. 7.根据权利要求5或6所述的终端,其特征在于,所述预设阈值包括湿度阈值及电压阈值,所述预设阈值判断模块包括:7. The terminal according to claim 5 or 6, wherein the preset threshold includes a humidity threshold and a voltage threshold, and the preset threshold determination module comprises: 湿度阈值判断子模块,用于判断所述湿度参数是否大于湿度阈值;a humidity threshold judgment sub-module for judging whether the humidity parameter is greater than the humidity threshold; 和/或,电压阈值判断子模块,用于判断所述电压参数是否大于电压阈值。And/or, a voltage threshold judgment sub-module for judging whether the voltage parameter is greater than the voltage threshold. 8.根据权利要求5所述的终端,其特征在于,所述移动终端包括屏幕,所述安全保护操作执行模块还包括:8. The terminal according to claim 5, wherein the mobile terminal comprises a screen, and the security protection operation execution module further comprises: 安全提醒消息显示子模块,用于当所述特征使用参数是大于预设阈值时,在所述屏幕显示安全提醒消息。A safety reminder message display sub-module is configured to display a safety reminder message on the screen when the feature usage parameter is greater than a preset threshold.
CN201611261606.6A 2016-12-30 2016-12-30 Safety protection method of mobile terminal and mobile terminal Active CN106776228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611261606.6A CN106776228B (en) 2016-12-30 2016-12-30 Safety protection method of mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611261606.6A CN106776228B (en) 2016-12-30 2016-12-30 Safety protection method of mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN106776228A CN106776228A (en) 2017-05-31
CN106776228B true CN106776228B (en) 2020-09-01

Family

ID=58954743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611261606.6A Active CN106776228B (en) 2016-12-30 2016-12-30 Safety protection method of mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN106776228B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111030226B (en) * 2019-12-20 2021-08-24 维沃移动通信有限公司 A device detection method and electronic device
WO2022068004A1 (en) * 2020-09-30 2022-04-07 深圳市联新移动医疗科技有限公司 Terminal humidity detection method and system
CN112186855A (en) * 2020-09-30 2021-01-05 深圳市联新移动医疗科技有限公司 Intelligent humidity detection charging device and humidity detection method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105958579A (en) * 2016-05-27 2016-09-21 乐视控股(北京)有限公司 Over-temperature protection method and over-temperature protection device for Type-C interface
CN205790839U (en) * 2016-05-30 2016-12-07 歌尔股份有限公司 A kind of earphone joint

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105958579A (en) * 2016-05-27 2016-09-21 乐视控股(北京)有限公司 Over-temperature protection method and over-temperature protection device for Type-C interface
CN205790839U (en) * 2016-05-30 2016-12-07 歌尔股份有限公司 A kind of earphone joint

Also Published As

Publication number Publication date
CN106776228A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN107832190B (en) A method for diagnosing abnormal power consumption, mobile terminal and storage medium
CN107562345B (en) Information storage method and mobile terminal
CN108268388B (en) A kind of Type-C interface protective circuit and method, mobile terminal
CN107566622B (en) Temperature control method and mobile terminal
CN105468217A (en) A mobile terminal that replaces a power button with a capacitive sensor and its implementation method
CN106502461B (en) Method, device and mobile terminal for restoring touch screen state before electrostatic reset
CN106454456A (en) Video playing control method and mobile terminal
CN106648857B (en) A kind of open method and mobile terminal of the OTG function of mobile terminal
CN106557240A (en) A kind of detection method and mobile terminal
CN106844265A (en) The control method and mobile terminal of a kind of general-purpose serial bus USB interface
CN106055301A (en) Volume setting method and mobile terminal
CN108268389A (en) The insertion detection method and mobile terminal of a kind of equipment
CN106776228B (en) Safety protection method of mobile terminal and mobile terminal
CN106527802A (en) Detection method and mobile terminal
CN106055455A (en) Anti-interference method and device for key
CN105893130A (en) Mobile terminal application program processing method and mobile terminal
CN202748769U (en) Terminal for quickly switching applications
CN108268403A (en) A kind of Type-C interface protective circuits and method, mobile terminal
CN107329586A (en) A kind of data inputting method, mobile terminal and computer-readable recording medium
CN107562262B (en) Method for responding touch operation, terminal and computer readable storage medium
CN106055296A (en) Control method for display brightness of terminal screen and terminal
CN106385508A (en) Information display method and mobile terminal
CN106227612B (en) A word processing method and mobile terminal
CN106375591A (en) A device for detecting audio input devices and a mobile terminal
CN108268405A (en) Protection circuit, guard method and the mobile terminal of Type-C interfaces

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant