CN111787153A - Method, system, electronic device and storage medium for switching themes based on temperature - Google Patents

Method, system, electronic device and storage medium for switching themes based on temperature Download PDF

Info

Publication number
CN111787153A
CN111787153A CN202010585015.4A CN202010585015A CN111787153A CN 111787153 A CN111787153 A CN 111787153A CN 202010585015 A CN202010585015 A CN 202010585015A CN 111787153 A CN111787153 A CN 111787153A
Authority
CN
China
Prior art keywords
temperature
theme
equipment
external temperature
switching
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.)
Pending
Application number
CN202010585015.4A
Other languages
Chinese (zh)
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.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN202010585015.4A priority Critical patent/CN111787153A/en
Publication of CN111787153A publication Critical patent/CN111787153A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method based on a temperature switching theme, which comprises the following steps: triggering an automatic temperature-based theme switch; calling a background server to download a database, wherein the database stores themes corresponding to different temperature levels; and acquiring real-time external temperature of the equipment, judging whether the currently applied theme of the equipment corresponds to the temperature grade to which the current external temperature of the equipment belongs, if so, circulating the step, and otherwise, switching the theme applied by the equipment to the theme corresponding to the temperature grade to which the current external temperature of the equipment belongs. The intelligent device can change the application theme of the device in real time according to the change of the external environment temperature of the device, so that the situation that a user independently spends too much energy to browse and select the theme is avoided, the time of the user is greatly saved, and the device is more intelligent.

Description

Method, system, electronic device and storage medium for switching themes based on temperature
Technical Field
The present invention relates to a switching technology, and in particular, to a method, a system, an electronic device, and a storage medium for switching a theme based on temperature.
Background
Smart phones on the market, such as millet mobile phones, Huashi mobile phones and the like, are all provided with theme applications, and internal theme resources are various, so that users can select favorite themes to set according to preferences. However, because the theme resources are too much, the user often needs to spend too much effort to browse and select the theme works, and therefore the user does not have too much effort to frequently change the theme of the mobile phone, so that the mobile phone has more theme resources, but is changed into a decoration because of infrequent change and use.
Disclosure of Invention
In order to overcome the deficiencies of the prior art, it is an object of the present invention to provide a method for switching themes based on temperature, which solves the problem of lack of effort for the user to change themes in the prior art.
It is another object of the present invention to provide a system for switching themes based on temperature, which can solve the problem of lack of energy of users to change themes in the prior art.
It is a further object of the present invention to provide an electronic device that solves the problem of the prior art that users lack the effort to change themes.
It is a fourth object of the present invention to provide a storage medium which can solve the problem of the prior art that a user lacks the effort to change a theme.
One of the purposes of the invention is realized by adopting the following technical scheme:
a method for switching themes based on temperature, comprising the steps of:
triggering an automatic temperature-based theme switch;
calling a background server to download a database, wherein the database stores themes corresponding to different temperature levels;
and acquiring real-time external temperature of the equipment, judging whether the currently applied theme of the equipment corresponds to the temperature grade to which the current external temperature of the equipment belongs, if so, circulating the step, and otherwise, switching the theme applied by the equipment to the theme corresponding to the temperature grade to which the current external temperature of the equipment belongs.
Preferably, the "acquiring real-time external temperature of the device" specifically includes: and acquiring real-time external temperature of the equipment every preset time.
Preferably, the preset time period is 1 minute.
Preferably, the database stores at least five different levels of subject matter.
Preferably, the acquired external temperature of the equipment is subjected to weighted average processing to obtain a processed temperature value, whether the weight of the processed temperature value is higher than a set value or not is judged, if yes, when the theme currently applied to the equipment is judged not to correspond to the temperature grade to which the current external temperature of the equipment belongs, the theme is automatically switched, and otherwise, the currently applied theme is kept by the equipment.
Preferably, before triggering the theme switch automatically switched based on temperature, whether the device supports external temperature acquisition of the device is judged, if yes, the step of triggering the theme switch automatically switched based on temperature is executed, and if not, the process is ended.
Preferably, the background server is requested to be connected, and the background server is called to download the database after the connection is successful.
The second purpose of the invention is realized by adopting the following technical scheme:
the system based on the temperature switching theme comprises equipment and a background server, wherein a processing system is installed in the equipment and is connected with the background server through a wireless network, a temperature sensor used for acquiring the external temperature of the equipment is installed on the equipment, the processing system is used for downloading a database stored with themes corresponding to different temperature grades from the background server and receiving the real-time external temperature of the equipment acquired by the temperature sensor, and when the theme currently applied to the equipment is judged not to correspond to the temperature grade to which the external temperature of the current equipment belongs, the theme applied to the equipment is switched to the theme corresponding to the temperature grade to which the external temperature of the current equipment belongs.
The third purpose of the invention is realized by adopting the following technical scheme:
an electronic device comprising a processor, a memory, and a computer readable program stored in the memory and executable by the processor, the computer readable program when executed by the processor implementing the method according to any one of the objects of the invention.
The fourth purpose of the invention is realized by adopting the following technical scheme:
a storage medium having stored thereon a computer readable program executable by a processor, the computer readable program, when executed by the processor, implementing a method according to any one of the objects of the invention.
Compared with the prior art, the invention has the beneficial effects that:
the intelligent device can change the application theme of the device in real time according to the change of the external environment temperature of the device, so that the situation that a user independently spends too much energy to browse and select the theme is avoided, the time of the user is greatly saved, and the device is more intelligent.
Drawings
Fig. 1 is a flowchart of a first embodiment of the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and the detailed description below:
example one
The invention provides a method based on a temperature switching theme, which comprises the following steps as shown in figure 1:
s1: triggering an automatic theme switch based on temperature.
The invention is applied to equipment, including mobile phones, tablets and the like. The device is provided with a processing system, and the execution flow of the device is executed through the processing system. The theme switch is actually an executive program stored in the device, and can be an application program embodied on the device and actively set and started by a user.
In this embodiment, before triggering the theme switch automatically switched based on temperature, it is determined whether the device supports external temperature acquisition of the device, if so, the step of triggering the theme switch automatically switched based on temperature is executed, otherwise, the process is ended, that is, the device does not have a function of acquiring the temperature of the external environment of the device, and does not have a theme automatically switched for different environmental temperatures.
S2: a background server is invoked to download a database storing topics corresponding to different temperature levels.
The background server is connected with the equipment through a wireless network. The device actively sends out a connection request. Furthermore, before calling the background server, the device requests to connect to the acquired server, and calls the background server after the connection is successful. The reason for the connection failure is, for example, a network disconnection, and in the case of the connection failure, the background server cannot be called, and the database cannot be further downloaded.
And when the background server is successfully connected with the equipment, the equipment sends a downloading request, the background server receives a downloading request instruction, and after the instruction is agreed, the operation of the equipment is allowed, and the database is sent to the equipment. The equipment then selects a theme switch based on the theme in the database in combination with the temperature conditions.
In this embodiment, as a preferred implementation, the database stores at least five different levels of themes. For example, there are five levels, that is, the temperature is divided into five levels, for example, five levels of-30 ℃ or lower, -30 ℃ to-10 ℃, 10 ℃ to 5 ℃, 5 ℃ to 25 ℃, and 25 ℃ or higher, and the setting can be customized according to the actual application environment.
S3: real-time device external temperature is collected.
A temperature sensor is installed in the device. It should be noted that, as a mobile phone terminal or other intelligent devices, a temperature sensor for detecting the temperature of a CPU or a battery inside the device is often provided, and a corresponding instruction is adopted to avoid a fault occurring when the device operates at a high temperature mainly by detecting the temperature inside the device when the temperature of the CPU or the battery of the device is too high. While the temperature sensor of the present embodiment is used to detect the ambient temperature outside the device, not the temperature inside the device. The existing temperature sensor for detecting the CPU or the battery is embedded inside the device by using a passive temperature sensing element, and is usually in contact with the device to be detected through a heat conductive metal, so that the embedded temperature sensor is located close to the tombstone detecting device. In order to detect the temperature of the external environment of the device, avoid the interference with the internal environment, or avoid the interference of the internal temperature environment, the present embodiment may install the temperature sensor on the casing of the device or at a position close to the casing, and the temperature sensor is far away from the installation position of the CPU or the battery, avoiding the mutual interference. The device is provided with a shell, and a small hole can be formed in the position, far away from the CPU or the battery, of the shell, so that the temperature sensor is arranged near the small hole or on the small hole, and the external temperature can be sensed more conveniently and more accurately.
Further, the present embodiment sets the device external temperature for the acquisition implementation to acquire the real-time device external temperature every preset time.
In a more preferred embodiment, the preset time period is 1 minute. That is, the temperature sensor automatically collects the temperature of the external environment once every minute.
S4: and judging whether the theme currently applied by the equipment corresponds to the temperature grade to which the current external temperature of the equipment belongs, if so, circulating the step, and otherwise, switching the theme applied by the equipment into the theme corresponding to the temperature grade to which the current external temperature of the equipment belongs.
As a preferred embodiment, the embodiment performs weighted average processing on the acquired external temperature of the device to obtain a processed temperature value, and determines whether the weight of the processed temperature value is higher than a set value, if so, automatically switches the theme when it is determined that the currently applied theme of the device does not correspond to the temperature class to which the current external temperature of the device belongs, otherwise, the device maintains the currently applied theme.
Example two
The present embodiment is different from the first embodiment only in that the preset time period for "acquiring the real-time external temperature of the device" in the present embodiment is 2 minutes.
EXAMPLE III
The difference between the present embodiment and the first embodiment is that the present embodiment collects real-time external temperature of the device every preset time period, and then determines whether the time of last automatic theme switching and the current timestamp reach a set replacement time period, if yes, executes a step of determining whether a currently applied theme of the device corresponds to the temperature class to which the current external temperature of the device belongs, otherwise, keeps the current theme. The time period for replacement is, for example, half an hour, or other time period, which is set to prevent the subject from being replaced too frequently due to a detection error or other circumstances.
Example four
The embodiment discloses a system based on a temperature switching theme, which comprises equipment and a background server, wherein a processing system is installed in the equipment and is connected with the background server through a wireless network, a temperature sensor used for acquiring the external temperature of the equipment is installed on the equipment, the processing system is used for downloading a database stored with themes corresponding to different temperature grades from the background server and receiving the real-time external temperature of the equipment acquired by the temperature sensor, and when the theme currently applied by the equipment is judged not to correspond to the temperature grade to which the current external temperature of the equipment belongs, the theme applied by the equipment is switched to the theme corresponding to the temperature grade corresponding to the current external temperature of the equipment.
In this embodiment, the step of acquiring the real-time external temperature of the device "specifically includes: and acquiring real-time external temperature of the equipment every preset time. The preset time period is, for example, 1 minute. The database stores at least five different levels of themes.
Carrying out weighted average processing on the acquired external temperature of the equipment to obtain a processed temperature value, judging whether the weight of the processed temperature value is higher than a set value, if so, automatically switching the theme when judging that the currently applied theme of the equipment does not correspond to the temperature grade of the current external temperature of the equipment, and otherwise, keeping the currently applied theme by the equipment.
Before triggering the automatic theme switch switching based on temperature, judging whether the equipment supports external temperature acquisition, if so, executing the step of triggering the automatic theme switch switching based on temperature, otherwise, ending the process. And requesting to connect the background server, and calling the background server to download the database after the connection is successful.
EXAMPLE five
An electronic device comprising a processor, a memory, and a computer readable program stored in the memory and executable by the processor, the computer readable program when executed by the processor implementing the steps of:
triggering an automatic temperature-based theme switch;
calling a background server to download a database, wherein the database stores themes corresponding to different temperature levels; the database stores at least five different levels of themes.
And acquiring real-time external temperature of the equipment, judging whether the currently applied theme of the equipment corresponds to the temperature grade to which the current external temperature of the equipment belongs, if so, circulating the step, and otherwise, switching the theme applied by the equipment to the theme corresponding to the temperature grade to which the current external temperature of the equipment belongs.
The specific step of acquiring real-time equipment external temperature is as follows: and acquiring real-time external temperature of the equipment every preset time. The preset time is 1 minute.
As a preferred embodiment, the acquired external temperature of the device is subjected to weighted average processing to obtain a processed temperature value, whether the weight of the processed temperature value is higher than a set value is judged, if so, when the theme currently applied to the device is judged not to correspond to the temperature grade to which the current external temperature of the device belongs, the theme is automatically switched, and otherwise, the device maintains the currently applied theme.
EXAMPLE six
A storage medium having a computer readable program stored thereon for execution by a processor, wherein the computer readable program when executed by the processor implements a method for switching themes based on temperature according to any of the present invention.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (10)

1. The method for switching themes based on temperature is characterized by comprising the following steps of:
triggering an automatic temperature-based theme switch;
calling a background server to download a database, wherein the database stores themes corresponding to different temperature levels;
and acquiring real-time external temperature of the equipment, judging whether the currently applied theme of the equipment corresponds to the temperature grade to which the current external temperature of the equipment belongs, if so, circulating the step, and otherwise, switching the theme applied by the equipment to the theme corresponding to the temperature grade to which the current external temperature of the equipment belongs.
2. The method according to claim 1, wherein the step of acquiring the real-time external temperature of the equipment comprises the following steps: and acquiring real-time external temperature of the equipment every preset time.
3. The method of claim 2, wherein the predetermined period of time is 1 minute.
4. The method of claim 1, wherein the database stores at least five different levels of subject matter.
5. The method of claim 1, wherein the acquired external temperature of the device is weighted and averaged to obtain a processed temperature value, whether the weight of the processed temperature value is higher than a set value is judged, if yes, when the currently applied theme of the device is judged not to correspond to the temperature level to which the current external temperature of the device belongs, the theme is automatically switched, and otherwise, the currently applied theme is maintained by the device.
6. The method of claim 1, wherein before triggering the temperature-based automatic theme switch, determining whether the device supports external temperature collection, if so, performing the step of triggering the temperature-based automatic theme switch, otherwise, ending the process.
7. The method of claim 1, wherein the connection to the backend server is requested and the backend server is invoked to download the database when the connection is successful.
8. The system based on the temperature switching theme is characterized by comprising equipment and a background server, wherein a processing system is installed in the equipment and is connected with the background server through a wireless network, a temperature sensor used for acquiring the external temperature of the equipment is installed on the equipment, the processing system is used for downloading a database stored with themes corresponding to different temperature grades from the background server and receiving the real-time external temperature of the equipment acquired by the temperature sensor, and when the theme currently applied by the equipment is judged not to correspond to the temperature grade to which the current external temperature of the equipment belongs, the theme applied by the equipment is switched to the theme corresponding to the temperature grade to which the current external temperature of the equipment belongs.
9. An electronic device comprising a processor, a memory, and a computer readable program stored in the memory and executable by the processor, the computer readable program when executed by the processor implementing the method of any of claims 1-7.
10. A storage medium having a computer readable program stored thereon which is executable by a processor, wherein the computer readable program, when executed by the processor, implements the method of any one of claims 1-7.
CN202010585015.4A 2020-06-23 2020-06-23 Method, system, electronic device and storage medium for switching themes based on temperature Pending CN111787153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010585015.4A CN111787153A (en) 2020-06-23 2020-06-23 Method, system, electronic device and storage medium for switching themes based on temperature

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010585015.4A CN111787153A (en) 2020-06-23 2020-06-23 Method, system, electronic device and storage medium for switching themes based on temperature

Publications (1)

Publication Number Publication Date
CN111787153A true CN111787153A (en) 2020-10-16

Family

ID=72759719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010585015.4A Pending CN111787153A (en) 2020-06-23 2020-06-23 Method, system, electronic device and storage medium for switching themes based on temperature

Country Status (1)

Country Link
CN (1) CN111787153A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037923A (en) * 2021-05-12 2021-06-25 西安闻泰信息技术有限公司 Theme switching method and device for terminal equipment, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090309711A1 (en) * 2008-06-16 2009-12-17 Abhishek Adappa Methods and systems for configuring mobile devices using sensors
CN101707647A (en) * 2009-10-22 2010-05-12 中兴通讯股份有限公司 Mobile terminal and method for setting subject of mobile terminal
CN102761664A (en) * 2012-06-29 2012-10-31 惠州Tcl移动通信有限公司 Mobile-terminal-based method and system for automatic theme switching and mobile terminal
CN102932529A (en) * 2012-09-28 2013-02-13 广东欧珀移动通信有限公司 Method for automatically changing theme of mobile phone
US20140136827A1 (en) * 2012-11-15 2014-05-15 Eunseok Cho Mobile device and data communication method of semiconductor integrated circuit of mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090309711A1 (en) * 2008-06-16 2009-12-17 Abhishek Adappa Methods and systems for configuring mobile devices using sensors
CN101707647A (en) * 2009-10-22 2010-05-12 中兴通讯股份有限公司 Mobile terminal and method for setting subject of mobile terminal
CN102761664A (en) * 2012-06-29 2012-10-31 惠州Tcl移动通信有限公司 Mobile-terminal-based method and system for automatic theme switching and mobile terminal
CN102932529A (en) * 2012-09-28 2013-02-13 广东欧珀移动通信有限公司 Method for automatically changing theme of mobile phone
US20140136827A1 (en) * 2012-11-15 2014-05-15 Eunseok Cho Mobile device and data communication method of semiconductor integrated circuit of mobile device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037923A (en) * 2021-05-12 2021-06-25 西安闻泰信息技术有限公司 Theme switching method and device for terminal equipment, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
US10135923B2 (en) Data transfer method and system
CN102455925B (en) Method, device and terminal for software automatic deployment
CN104750589B (en) A kind of memory parameter adjusting method and mobile terminal
CN105630594A (en) Terminal control method, terminal control device and terminal
CN107148072B (en) Method and system for acquiring target resource parameters of intelligent terminal application
CN104184907B (en) The detection method and terminal of the wake-up data of terminal application software in the standby state
CN111787153A (en) Method, system, electronic device and storage medium for switching themes based on temperature
CN114257474B (en) Power utilization control method and device for intelligent gateway, computer equipment and storage medium
CN106686627B (en) WiFi/hotspot starting method and device
CN112714368A (en) Method and device for prompting abnormal electricity consumption, computer equipment and storage medium
CN109729159B (en) Method and device for reminding loss of network equipment
CN107203455B (en) Method and system for preventing over-discharge of standby power module when power-down fan of storage system is hung up
CN112858902B (en) Miniature circuit breaker monitoring method and device, computer equipment and storage medium
CN105988835B (en) Software upgrading method and terminal
CN107357555B (en) Configuration pushing method, device and system
CN103902312A (en) Method and device for transmitting application programs
CN113825191A (en) Subscription method and device for equipment information
CN109639822B (en) Data processing method, system, device and medium
CN111385859A (en) Terminal power consumption detection optimization method and device
CN111619402A (en) Power battery health assessment method based on electric vehicle charging pile management platform
WO2022188553A1 (en) Control method and control apparatus for washing machine, and electronic device and storage medium
CN112015486A (en) Application program loading method, smart television and readable storage medium
CN111984286A (en) APP classified upgrading method
CN111469710A (en) Battery management system and method
CN210072364U (en) Control structure and control system of semiconductor switch panel

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