Detailed Description
In order to make the purpose, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
In view of the problem that the protective housing of the terminal in the prior art is relatively single in function and cannot meet more requirements of a user, in the embodiment of the Application, from the perspective of enhancing the functionality of the protective housing, a series of effect display elements are designed on the protective housing and are matched with Applications (APPs) in the terminal to display different display effects, and a series of functional devices are correspondingly designed. Based on the consideration, the embodiment of the application provides the terminal shell, and the terminal shell can interact with the terminal, so that different display effects can be displayed. Particularly, the terminal can be based on the triggering of application or operating system in this terminal, send control signal to the terminal casing, thereby make the terminal casing can be according to the show mode action that effect display element on the control signal control terminal casing corresponds with control signal, thus, the effect of terminal casing is not limited to and can play certain guard action to the terminal, can also respond to the state of using in the terminal, show with different show modes, thereby produce different bandwagon effects, thereby strengthen the perception in the terminal casing vision that brings the user, the functionality of terminal casing has been promoted, and based on the show effect on the terminal casing, can make the user know current application state, and then strengthened user's application and used experience.
In addition, a system service component is designed in the terminal aiming at the terminal shell and used for receiving state data sent by the application or detecting the state data of the operating system, so that the state of the application or the operating system is determined based on the state data, and the terminal shell is controlled correspondingly. Since the state data is directly provided by the application or the operating system, and is not obtained by the system service component in other manners, such as data obtained by analyzing the application screenshot, the accuracy of the state data can be ensured, so that the subsequent control on the terminal shell is more accurate.
After the design idea of the embodiment of the present application is introduced, some simple descriptions are given below to application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiment of the present application and are not limited. In a specific implementation process, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Please refer to fig. 1, which is a schematic view of a scenario to which the embodiment of the present invention is applicable, and the scenario may include a terminal 101, a terminal housing 102, and a server 103.
The terminal 101 may be specifically a mobile phone, a Personal Computer (PC) or a tablet computer, and the terminal 101 may include one or more processors 1011, a memory 1012, an I/O interface 1013 interacting with the terminal housing 102, an I/O interface 1014 interacting with the server 103, and the like. The terminal 101 may include a system service component and at least one application, and the memory 1012 may store program instructions of the system service component and the at least one application, which when executed by the processor 1011 can be used to implement the functions of the system service component or each application. Of course, the terminal 101 may further include an input component such as a microphone, a touch panel or a key, and an output component such as a speaker and a display panel, which is not limited in this embodiment of the present application.
The terminal housing 102 may include one or more processors 1021, memory 1022, and I/O interface 1023 to interact with the terminal 101, I/O interface 1024 to interact with the server 103, and so on. The memory 1022 of the terminal housing 102 may store program instructions of the control module, and the program instructions can be used to implement the functions of the control module when executed by the processor 1021.
The server 103 may be a background server corresponding to the terminal housing 102, and the server 103 may also be the same device as a server of a certain application. In particular, server 103 may include one or more processors 1031, memory 1032, and I/O interface 1033 for interacting with terminal 101 and I/O interface 1034 for interacting with terminal housing 102, among other things. The server 101 may also be configured with a database 1035 for storing information about each terminal housing 102, and information about the service components of the system.
The terminals 101, the terminal housing 102, and the server 103 may be communicatively coupled to each other via one or more networks 104. The network 104 may be a wired network, or a WIreless network, for example, the WIreless network may be a mobile cellular network, or may be a WIreless-Fidelity (WIFI) network, or may also be other possible networks, which is not limited in this embodiment of the present invention.
Specifically, when the user mounts the terminal housing 102 to the terminal 101, the terminal 101 may acquire information related to the terminal housing 102, such as authentication information of the terminal housing 102, a pattern printed on the terminal housing 102, and the like, and the terminal 101 may transmit the authentication information of the terminal housing 102 to the server 103 through the system service component to request the server 103 to authenticate the terminal housing 102. Of course, in addition to requesting the server 103 to authenticate the terminal housing 102, the terminal 102 may also use the system service component to perform authentication, for example, the authentication information may be an identification ID of the terminal housing, the system service component matches the identification ID with an ID library stored in the system service component, if the matching is successful, the authentication is passed, otherwise, the authentication is not passed. After the authentication is completed, the terminal 101 can perform subsequent interaction with the terminal 102. The system service component in the terminal 101 may receive state data sent by the application, or detect state data of the operating system, so as to determine the state of the application or the operating system based on the state data, thereby generating a control signal for correspondingly controlling the terminal housing 102, and after the terminal housing 102 acquires the control signal, the terminal housing 102 may control the effect display element on the terminal housing 102 to operate in a display mode corresponding to the control signal based on the control signal.
In addition, the program version in the terminal 101 or the terminal 102 may also be upgraded through the server 103, for example, when the system service component installed in the terminal 101 has an updated version, the server 103 may push the latest version to the terminal for upgrading, or let the user select upgrading or not upgrading.
Of course, the method provided in the embodiment of the present application is not limited to be used in the application scenario shown in fig. 1, and may also be used in other possible application scenarios, and the embodiment of the present application is not limited thereto. The functions that can be implemented by each device in the application scenario shown in fig. 1 will be described in the following embodiments, and will not be described in detail herein.
Referring to fig. 2, a schematic structural diagram of a terminal housing control system provided in the embodiment of the present application may include a terminal 20 and a terminal housing 21, where the terminal 20 may be, for example, the terminal 101 shown in fig. 1, and the terminal housing 21 may be, for example, the terminal housing 102 shown in fig. 1.
As shown in fig. 1, the terminal housing 21 may include a housing body 210 detachably connected to the terminal 20. For example, when terminal 20 is the cell-phone, terminal housing 21 is the cell-phone shell, then can overlap the cell-phone shell on the cell-phone, and make the cell-phone shell can not drop easily through the cell-phone of adaptation and the size of dimensions of cell-phone shell, with the connection of realization cell-phone and cell-phone shell, or, can also design spout or buckle etc. on the terminal 20, design corresponding spout coupling assembling or buckle subassembly on the terminal housing 21, thereby realize dismantling the connection, of course, can also dismantle the connection through other possible modes realization, this application embodiment does not restrict to this.
The terminal housing 21 may further include at least one effect displaying element provided on the housing body 210. Wherein the at least one effect displaying member may include a printed pattern (not shown in fig. 1) provided on the housing body 210 and at least one light emitting device 212, each of which may be provided at a set position of the printed pattern, so as to exhibit a specific exhibition effect in cooperation with a printed pattern, as shown in fig. 3, which is a schematic view of a terminal housing 21 provided with an effect exhibiting member, wherein one side of the terminal housing 21, generally the side away from the terminal when mounted, is provided with a printed pattern, in the case where a specific region of the printed pattern is a light emitting device region, as shown by a dotted line region in fig. 3, some regions of the clothing and accessories of the character in the printed pattern are set as the light emitting device region, and thus, when the light effect is generated by the light emitting device, the areas can be more prominent, so that people can be defensed to be more three-dimensional and vivid, and the visual effect of a user is enhanced.
Specifically, in addition to the light emitting device 212, a driving device of the light emitting device 212 may be disposed in the light emitting device region. For example, when the Light Emitting device 212 is a Light Emitting Diode (LED), it is generally required to be driven by an LED driver (LED driver).
The terminal housing 21 may further include a control module (not shown in fig. 1) and a first communication module 211 provided on the housing body 210. The first communication module 211 and the control module can be embedded into the housing body 210, and are prevented from being exposed outside, and are easily damaged and affect the beauty of the terminal housing 21.
Specifically, the first communication module 211 may be adapted to the second communication module 200 included in the terminal 20, so that the communication between the terminal 20 and the terminal housing 21 may be achieved through the first communication module 211 and the second communication module 200. The first communication module 211 may be one of the communication modules in the terminal housing 21, and the communication module included in the terminal housing 21 may be one or a combination of at least two of the following communication modules:
(1) if the first Communication module 211 is an NFC module, the second Communication module 200 in the terminal 20 may also be an NFC module, which is specifically illustrated in fig. 2 by taking this as an example.
(2) If the first communication module 211 is a Bluetooth (BT) module, the second communication module 200 in the terminal 20 may also be a BT module.
(3) If the first communication module 211 is a USB data transmission module, the second communication module 200 in the terminal 20 may also be a USB data transmission module, and data transmission between the terminal 20 and the terminal housing 21 may be performed through a USB data line.
Of course, the communication module may also be other possible communication modules, which is not limited in this embodiment of the present application.
In the embodiment of the present application, when data transmission is performed between the terminal 20 and the terminal housing 21 in an NFC manner or a BT manner or other wireless transmission manners, the data interface of the terminal 20 does not need to be occupied, and for a mobile phone or a PAD or other terminals, the general data interface is the same as the charging interface, so that even when the terminal housing 21 is used, the terminal 20 can still be charged, thereby avoiding an embarrassing situation that the terminal housing 21 needs to be stopped due to insufficient electric quantity, and improving the use experience of the user.
In the embodiment of the present application, the control module may be a processing chip embedded in the housing body 210, and for the control module, compared with the terminal 20, the processing logic is much simpler, so that the processing chip with relatively smaller computing capability may be selected, thereby reducing the cost of the terminal housing.
Specifically, the first communication module 211 of the terminal housing 21 may receive a control signal from the terminal 20 and forward the control signal to the control module, and the control module controls at least one effect displaying element to act in response to the control signal, where the control signal is triggered by an application or an operating system on the terminal running to a set state.
In the embodiment of the present application, as shown in fig. 2, the housing body 210 of the terminal housing 21 includes a transparent portion a and a non-transparent portion B surrounding the transparent portion a, and the print pattern is disposed in an area where the transparent portion a is located. Transparent part A can be made of transparent Polycarbonate (PC) materials, non-transparent part B can be made of opaque plastic materials, and certainly, other possible materials can be adopted to make the shell body 210, and the embodiment of the application is not limited to this.
Specifically, in order to enhance the display effect of the printed pattern, the transparency of the overlapping area of the printed pattern and the transparent portion may be set to a value not less than 20% and not more than 80%, for example, 60% or 65%.
In the embodiment of the present application, as shown in fig. 2, the terminal housing 21 may further include a power supply module 213 disposed on the housing body 210, where the power supply module 213 is configured to supply power to the terminal housing 21. Correspondingly, the terminal 20 may also be provided with a power supply module 201, so that the terminal housing 21 is supplied with power through the power supply module 201 and the power supply module 213.
Specifically, power module 213 may be a first wireless charging coil, and correspondingly, power module 201 may be a second wireless charging coil adapted to the first wireless charging coil, so that power may be supplied to terminal housing 21 through the cooperation of the first wireless charging coil and the second wireless charging coil by terminal 20. Like this, adopt the wireless power supply mode, can need not to set up the solid interface that charges on terminal housing 21, and also occupy terminal 20's the interface that charges, and to terminals such as present cell-phone or PAD, the interface that charges not only is used for charging, can also be used for multiple functions such as data interface and earphone interface, consequently, through the wireless charging mode, the weight and the thickness of terminal housing 21 can be saved, and simultaneously, the interface that charges can also be used for other functions, for example, the user can use the terminal while charging, or can connect wired earphone, thereby promote user's use experience.
In the embodiment of the present application, as shown in fig. 2, the terminal housing 21 may further include a trigger 214 disposed on the housing body 210, and correspondingly, the hall element 202 adapted to the trigger 214 may be disposed on the terminal 20, so that, when the terminal housing 21 is mounted to the terminal 20, the trigger 214 may trigger the hall element 202 on the terminal 20 to generate a signal indicating that the terminal housing 21 is mounted, and transmits the installation signal to the control module, which may instruct the second communication module 200 to read the relevant information of the terminal housing 21 through the first communication module 211, such as authentication information or character information of a printed pattern, and transmits the read information to the control module, so that the control module can perform subsequent processing logic, such as authentication of the terminal housing 21 or the like, and the information exchange and control of the terminal 20 and the terminal housing 21 are realized according to the task information.
Specifically, the trigger 214 may be a magnet block.
In the embodiment of the present application, as shown in fig. 2, a light-transmitting area 216 may be further disposed on the housing body 210 of the terminal housing 21, and the light-transmitting area 216 may be made of a transparent material by painting a pattern. The light emitting device 212 may be disposed under the transparent region 216, and the position of the transparent region 216 may be specifically set according to a printing pattern, so as to achieve a better display effect through the inter-matching.
Since the terminal housing 21 may also be used as a protective housing of the terminal, the terminal housing also has the features of the protective housing, for example, one or more hollow areas matched with the terminal 20 are provided on the housing body 210, and the hollow areas may correspond to the positions of the cameras 203 or the positions of the physical keys on the terminal 20, for example.
In this embodiment, a driving module may be further disposed on the housing body 210 of the terminal housing 21, and the driving module is configured to drive at least one effect displaying element to perform an action.
Specifically, after the control module obtains the control signal sent by the terminal 20, if the control signal carries indication information of the display mode, the control module may directly generate a driving signal according to the indicated display mode, and send the driving signal to the driving module, so that the driving module drives at least one effect display element to act in the display mode.
Or, if the control signal does not carry indication information of the display mode but carries state data of the application or the operating system, the control module may determine a current state of the application or the operating system according to the state data, and when it is determined that the application or the operating system runs to a set state, determine a display mode corresponding to the set state indicated by the control signal according to a mapping relationship between the pre-stored set state and the display mode, generate a driving signal according to the determined display mode, and send the driving signal to the driving module, so that the driving module drives at least one effect display element to operate in the display mode.
Or the control signal carries indication information indicating that the application or the operating system runs to the set state, and the control module can determine the display mode corresponding to the set state indicated by the control signal according to a pre-stored mapping relationship between the set state and the display mode, generate a driving signal according to the determined display mode, and send the driving signal to the driving module, so that the driving module drives at least one effect display element to act in the display mode.
In particular, the driving module may include, for example, a switch connected to each light emitting device. The display mode may be, for example, a control parameter value indicating on-time, off-time, or on-frequency of a switch connected to each light emitting device, and the control module may control the on and off of the switch connected to each light emitting device based on the indication of the display mode, so that each light emitting device displays different effects, and a desired display effect is achieved through cooperation of a plurality of light emitting devices.
The switch can be a diode, for example, and the control module can control the conduction and the disconnection of the diode by outputting signals with different electric potentials to realize the function of the switch; alternatively, the switch may be a transistor (transistor), for example, and the control module may control the on/off and the brightness of the light emitting device by controlling the voltage or the current of the signal.
Or, the driving module may also be an Integrated Circuit (IC), the driving IC is connected to each light emitting device, and the driving IC may analyze the driving signal output by the control module to obtain control parameter values such as on-time, off-time, or on-frequency corresponding to each light emitting device, so as to generate a corresponding signal to drive the light emitting device to achieve a corresponding effect. The driving IC can control the light emitting device to exhibit different effects by controlling parameters such as the amplitude and frequency of the output signal.
It should be noted that the positions of some of the components on the terminals 20 and 21 shown in the positions in fig. 2 appear to correspond, but in essence the positions of these elements may not completely correspond, as long as both components are located in an area where the corresponding functions can be achieved. For example, the positions of the trigger 214 and the hall element 202 may be completely corresponding, or the trigger 214 may be located in an area that can be sensed by the hall element 202; alternatively, the positions of the first communication module 211 and the second communication module 200 may correspond to each other, and the first communication module 211 may be located in an area that can be sensed by the second communication module 200.
Please refer to fig. 4, which is a schematic diagram of an interaction manner of the terminal housing control system according to the embodiment of the present application.
Specifically, the communication module in fig. 4 specifically takes a communication module such as NFC or BT that adopts a wireless communication manner as an example, the charging module also takes a wireless charging manner as an example, the light emitting device on the terminal housing specifically takes an LED group as an example, and the control module and the driving module may be the same module, for example, specifically, an LED driver IC in fig. 4.
The solid line in fig. 4 is used to indicate the supply of the electric energy, that is, the second wireless charging coil on the terminal supplies the electric energy to the first wireless charging coil on the terminal housing in a wireless power supply manner, and the first wireless charging coil directly supplies the electric energy to other modules needing power supply, such as a communication module, a control module or a driving module, such as NFC or BT.
The dotted line in fig. 4 represents data transmission, that is, the terminal and the communication module on the terminal housing can communicate with each other, and the communication module on the terminal housing can also send a control signal transmitted by the terminal to the LED driver IC, and then, after analysis by the LED driver IC, the LED is driven to operate in a corresponding display mode.
In the embodiment of the present application, before the terminal shell is used, the validity of the terminal shell needs to be verified, so please refer to fig. 5, which is a schematic flow diagram of an authentication process of the terminal shell provided in the embodiment of the present application.
Step 501: the system service assembly acquires the installation signal through the Hall element.
In the embodiment of the application, the terminal is provided with the system service component, the system service component can run together with an operating system of the terminal, and can serve a plurality of applications and operating systems in a unified manner through the system service component and be in butt joint with the terminal shell, so that a corresponding display effect is achieved. The system service component may be installed in the terminal when the terminal leaves a factory, or may be installed by downloading an installation program by the user, for example, after the user acquires the terminal housing, the user may download a corresponding installation program under the guidance of a specification of the terminal housing, and install the installation program, thereby installing the system service component in the terminal.
In practical applications, when a user mounts the terminal housing on the terminal, the trigger on the terminal housing triggers the hall element on the terminal to generate a mounting signal, and the mounting signal is reported to the system service component on the terminal, and the mounting signal is used for indicating that the terminal housing is mounted on the terminal.
Step 502: the system service assembly sends an authentication information reading signal to the terminal shell, and the control module of the terminal shell receives the authentication information reading signal.
In the embodiment of the application, in order to determine the validity of the terminal shell, the system service component can generate the authentication information reading signal when knowing that the terminal shell is installed on the terminal, and call the second communication module on the terminal to send the authentication information reading signal to the terminal shell, and correspondingly, the first communication module on the terminal shell can receive the authentication information reading signal and forward the authentication information reading signal to the control module. The authentication information reading signal is used to read the authentication information of the terminal housing, and certainly, in practical applications, not only the authentication information but also other information, such as a pattern of a printed pattern on the terminal housing or character information, may be read.
Of course, in actual use, besides the process of step 502, the system service component may also perform other necessary processes, for example, a charging module on the terminal may be invoked to supply power to the terminal housing.
Step 503: the control module returns the authentication information to the terminal, and the system service assembly receives the authentication information.
In the embodiment of the application, the control module can acquire the authentication information stored in the terminal shell and call the first communication module to send the authentication information to the terminal, and correspondingly, the second communication module on the terminal can receive the authentication information and report the authentication information to the system service assembly.
Step 504: the system service component sends an authentication request to the server, and the server receives the authentication request.
In the embodiment of the application, after the system service component acquires the authentication information, an authentication request can be generated based on the authentication information, and the authentication request is sent to the server so as to perform authentication through the server.
Certainly, the system service component may also authenticate the terminal housing directly according to the authentication information without performing authentication through the server, for example, the authentication information may be an identification ID of the terminal housing, the identification ID may uniquely identify one terminal housing, the system service component may match the acquired identification ID of the terminal housing with an identification ID included in an identification ID library, if the identification ID can be successfully matched, the authentication of the terminal housing passes, indicating that the terminal housing is legal, otherwise, if the identification ID cannot be successfully matched, the authentication of the terminal housing does not pass, indicating that the terminal housing is illegal, the system service component may cut off power supply to the terminal housing, and output prompt information to the user.
Step 505: and the server authenticates the terminal shell based on the authentication information.
Similarly, for example, the authentication information may be an identification ID of the terminal housing, the identification ID may uniquely identify one terminal housing, the server may match the identification ID of the terminal housing with the identification ID included in the identification ID library, if the matching is successful, the authentication of the terminal housing passes, indicating that the terminal housing is legal, otherwise, if the matching is not successful, the authentication of the terminal housing does not pass, indicating that the terminal housing is illegal, the system service component may cut off power supply to the terminal housing, and output prompt information to the user.
Step 506: the server returns an authentication response message to the terminal, and the system service component receives the authentication response message.
After the server completes authentication, the authentication result can be carried in an authentication response message and returned to the terminal, and in response, a system service component in the terminal can receive the authentication response message.
In the embodiment of the present application, after the authentication is passed, the terminal and the terminal shell may perform information interaction and control, as shown in fig. 6, which is a schematic flow diagram of a terminal shell control method provided in the embodiment of the present application, and the method may be cooperatively executed by the terminal, the terminal shell, and the server in fig. 1 or fig. 2, and a flow of the method is described as follows.
Step 601: the system service component of the terminal obtains the status data.
In the embodiment of the application, one or more applications may be installed in the terminal, and part or all of the applications installed in the terminal may provide a status data interface for the system service component, so as to provide status data to the system service component in real time.
Generally, since a terminal can run multiple applications simultaneously, but there is usually only one application being used by a user, it can be set that only the application currently being used can send status data to the system service component through the status data interface. The application currently in use is an application displayed on a current display interface of the terminal, or if there are multiple applications displayed on the current display interface, for example, when the screen is split, the application currently in use may be an application being operated by a user, or if there are multiple applications displayed on the current display interface, the application currently in use may be an application with the highest priority. Of course, it is also possible that a plurality of applications may send status data to the system service component at the same time, and then priorities may be set for different applications, so that the system service component may control the terminal housing based on only the status data of the application with the highest priority.
The state data interface of the system service component can be predefined in the application used by the user, and then the state data can be sent to the system service component in real time through the state data interface. The number of the status data interfaces may be one or more, and when the number is more than one, different status data interfaces may be defined according to the type of the transmission data.
For example, when the application is a game application, the state data may be a current game scene of the game, an event occurring at a target object in the game, a current state of the target object in the game, or a property of the target object in the game, and the game scene data interface, the event data interface, the target object data interface, and the property data interface may be respectively set correspondingly. In practical application, if all the state data are sent to the system service component, the analysis of the data by the system service component occupies too much resources and time, so the application can selectively send the state data to the system component, for example, when a game scene changes, a target object in a game has a set event, the state of the target object in the game changes, or a prop of the target object in the game changes, the state data is sent to the system service component once, so that a lot of unchanged data can be filtered, the processing pressure of the system service component is reduced, and the performance of the terminal is improved. The target object may be, for example, a Player Character or a Non-Player Character (NPC) in the game.
The application can be a call application, and accordingly, the call application can send state data to the system service component once when an incoming call exists, so as to indicate that the incoming call exists; or, the application may also be a music application, and accordingly, the state data sent by the music application to the system service component may be a melody or a note of the currently played music; of course, the application in the terminal may also be other possible applications, and this is not limited in this embodiment of the application.
In addition, the system service component can monitor the state of the operating system to acquire the state data of the operating system.
Step 602: the system services component determines whether the application or operating system is running to a set state based on the state data.
In the embodiment of the application, the system service component can check the validity of the received state data. For example, when the system service component receives the status data sent for the application, it may check whether the value of each parameter in the status data is within the normal range, and if the value is beyond the normal range, it indicates that the status data is obviously illegal. For example, for a game application, the injury value of a skill of a player character in the game is 1000 carried in the state data, but the injury value of the skill ranges from 300 to 500, and the value carried in the state data is obviously not game logic and is illegal data. For illegal status data, the system service component may disregard or output a prompt to prompt the user.
In the embodiment of the application, the system service component can analyze the state data, so as to identify the content expressed by the state data.
In the following, the content available for analyzing the status data will be described by taking the application sending the status data as an example of the game application.
(1) Analyzing a game scene: for the state data related to the game scene, the system service component can analyze the name of the game currently played by the player and the game scene currently in the game, for example, the game scene can be a 3Vs3 battle scene, etc.
(2) Event analysis: for the state data related to the events occurring on the target object in the game, the system service component analyzes the name of the game currently played by the player and the events occurring on the target object, such as a continuous enemy killing event, a weapon picking-up event, a crash event, a gun driving event, a driving acceleration event and the like.
(3) Target object state analysis: for state data related to the state of a target object in a game, the system service component parses the name of the game currently being played by the player, and the state of the target object, such as the state where the blood volume of the player character is less than 20%, the player character is stunned, the player character is electrocuted, the player character is applying a certain skill, the level of the player character, and the like.
(4) Analyzing the target object prop: for the state data related to the props of the target objects in the game, the system service component analyzes the name of the game currently played by the player and the props of the target objects, such as the player character replacing a certain fashion, the weapon strengthening level of the player character, the player character having a certain ride, the player character getting a certain equipment, and the player character getting a certain pet.
Specifically, the system service component may determine whether the application or the operating system is running to a set state based on the parsed data. The setting state is predefined, for example, when the application is a game application, the setting state may include one or a combination of at least two of the following:
(1) and (5) switching game scenes.
(2) The target object in the game generates a setting event.
(3) The state of the target object changes.
(4) The prop of the target object changes.
Similarly, the process of determining whether the application is in the set state is described by taking the application as a game application and taking the set state as a game scene switching example. After the system service component analyzes the state data, the current game scene in the game can be known, and then the game scene is compared with the previously acquired game scene, so that whether the game scene is switched or not can be known, if yes, the game is operated to the designated state, otherwise, if no, the game is not operated to the designated state; or if the game setting is triggered to send the state data to the system service component only when the game scene is switched, the game can be known to be operated to the setting state based on the received state data. The same is true when the setting state is other, and therefore, redundant description is not repeated.
Step 603: if the determination of step 603 is yes, the system service component generates a control signal.
In the embodiment of the present application, a control signal generated by a system service component may carry a setting state determined by content expressed by the system service component based on state data obtained by analysis, where the setting state carried in the control signal may be an identifier of the state, or may be state data representing the state, that is, content expressed by the state data obtained by analysis by the system service component; or, the system service component may further determine the corresponding display mode based on a mapping relationship between a preset state and the display mode, and then the control signal generated by the system service component may carry the determined display mode, where the display mode carried in the control signal may also be an identifier of the display mode, and may also be specific content of the display mode.
Specifically, the mapping relationship between the setting state and the display mode may be predefined. For example, for a game application, a display mode of a corresponding light emitting device may be predefined when all game scenes, events, states of a target object, and properties of the target object change, where, for each light emitting device, the display mode includes, but is not limited to, the following:
(1) a single flashing mode in which the light emitting device can be single flashed at various set frequencies.
(2) A breathing mode in which the light emitting device may exhibit a progression of light from dark to light, or a progression of light from light to dark.
(3) And a double flashing mode in which the light emitting device can perform double flashing at various set frequencies, the double flashing is that two flashes in succession are regarded as one action of the light emitting device, and a time interval of the two flashes in succession in one action is short.
(4) And a triple flash mode in which the light emitting device can perform triple flashes at various set frequencies, triple flashes being regarded as one operation of the light emitting device, and a time interval of the triple flashes in one operation is short.
(5) A color changing mode in which the color of the light emitting device may be changed, for example, two colors may be changed alternately, or a plurality of colors may be changed alternately.
Specifically, the flashing of the light emitting device can be realized by controlling the on and off of a switch connected with the light emitting device to adjust the time interval between the off of the switch and the next on of the switch, or the on and off and flashing frequency of the light emitting device can be controlled by controlling the high and low levels and the frequency of a signal output by a driving IC; the breathing mode can be adjusted by controlling the voltage or current output to the light-emitting device; a multi-color light emitting device is generally composed of light emitting devices including three primary colors of red (red), yellow (yellow), and blue (blue), and thus different colors can be represented by controlling the on and off combinations of the light emitting devices of the three primary colors.
In the above-mentioned display mode for a single light emitting device, in practical applications, the number of the light emitting devices is large, so that the display mode sent to the terminal housing may obtain more display effects through cooperation among a plurality of light emitting devices in addition to the mode in which a single light emitting device needs to be set, for example, the lighting direction of the light emitting devices may be set, that is, each light emitting device may be sequentially lit according to a certain sequence, or a combination of the light emitting devices may be lit.
In practical applications, the display mode corresponding to each setting state may be factory set, or may be adjusted by a user according to preferences of the user, for example, by an application corresponding to the terminal housing, or may be set in real time in the background when the light emitting device is displayed.
In the embodiment of the application, when the display mode is determined, the content of the printed pattern on the terminal shell can be considered in combination, for example, the character printed on the printed pattern is a certain role in the game, so when the scene, event, state, character, prop and the like in the game are matched with the character printed on the printed pattern one by one, a specific display effect can be displayed, for example, a transparent area can be reserved in a certain prop area of the printed character for setting a light-emitting device, and only when a player has the prop of the character transparent area in the game, the corresponding display effect is displayed.
Step 604: the system service assembly sends the control signal to the terminal shell, and a control module of the terminal shell receives the control signal.
Specifically, the system service component may call a second communication module in the terminal to send the control information to the terminal housing, and correspondingly, the first communication module on the terminal housing may receive the control signal and forward the control signal to the control module.
Step 605: the control module controls the action of the effect display element based on the control signal.
In the embodiment of the application, after the control module obtains the control signal, the control module may control the action of the effect displaying element based on the control signal.
Specifically, when the control signal carries indication information indicating a display mode, the control module may generate a driving signal based on the indicated display mode, and send the driving signal to the driving module included in the terminal housing, so that the driving module drives the at least one effect displaying element to operate in the display mode. For example, the driving module may be an LED driver IC, and then the LED driver IC may drive a corresponding LED lamp according to the driving signal to display a corresponding lamp effect.
Or, if the control signal does not carry indication information of the display mode but carries state data of the application or the operating system, the control module may determine a current state of the application or the operating system according to the state data, and when it is determined that the application or the operating system runs to a set state, determine a display mode corresponding to the set state indicated by the control signal according to a mapping relationship between the pre-stored set state and the display mode, generate a driving signal according to the determined display mode, and send the driving signal to the driving module, so that the driving module drives the at least one effect display element to operate in the display mode.
Or the control signal carries indication information indicating that the application or the operating system runs to the set state, and the control module can determine the display mode corresponding to the set state indicated by the control signal according to a pre-stored mapping relationship between the set state and the display mode, generate a driving signal according to the determined display mode, and send the driving signal to the driving module, so that the driving module drives at least one effect display element to act in the display mode.
For example, the set state of the operating system may be, for example, the operating system is started, that is, when the terminal is powered on, a corresponding presentation effect may be presented to enhance the visual experience of the user. As shown in fig. 7, the left drawing is a boot interface of the terminal, the operating system of the terminal is already started as shown in fig. 7, and specifically, an Android operating system is taken as an example in fig. 7, because the system service component is embedded in the operating system, the system service component is also started when the operating system is started, so that the system service component can detect the start of the operating system, and thus control the terminal shell to display a corresponding display effect, for example, the light emitting device corresponding to the dotted line area in fig. 7 can display a flickering effect of a specific color, for example, a blue flickering effect.
For example, when the application is a game application and a set event occurs to a target object in a game, the system service component may also control the terminal shell to display a corresponding display effect. As shown in fig. 8, a schematic view of a display effect corresponding to a set event occurring in a target object in a game is shown, where the left view is a game application interface, where it can be seen that the target object kills an enemy target and a five-click killing event is completed, so that after the system service component learns that the five-click killing event occurs in the target object, the terminal housing can be controlled to display the corresponding display effect, for example, a light-emitting device corresponding to a dotted line area in fig. 8 can display a flickering effect of a specific color, for example, a flickering effect of red, so as to meet a current exciting mood of a user.
In practical application, a target object, a prop, a game scene or an event in a game can be uniquely bound with a terminal shell, for example, only when a user owns a specific target object, a game prop, a game scene or an event in the game and is consistent with related information of the terminal shell, such as printed pattern content, a specific special display effect can be displayed, for example, only after the user owns a specific decoration of a game role, the user owns a display effect matched with the specific decoration, and the user who does not own the specific decoration does not have a corresponding display effect; or, when the character in the game has a rare prop, the corresponding prop position of the printed pattern of the shell can display a special prop color.
In summary, by the terminal housing and the terminal housing control method provided by the embodiment of the application, the visual effect of the user on the terminal and the application in use can be improved, and the functionality of the terminal housing is improved. For example, when a user plays a game, when a predefined game scene, event or game role state changes, the user can intuitively feel the change of the display effect, and because the game client directly provides state data to the system service component, compared with a mode of indirectly identifying the current game scene, event and state by capturing the current generated picture and sound of the game through other means, such as an image recognition technology or a sound recognition technology, the mode of the embodiment of the application can enable the display of the display effect to be more real-time and efficient, the display effect and the game picture to be more synchronous, and excessive occupation of computing resources of the terminal is not needed. And the mapping relation between the display effect and the states of the application and the operating system is preset, so that misjudgment can not occur generally, and the display effect is more accurate. Meanwhile, the recognition degree of the game state is higher based on the change of the display effect, and the printed patterns of the middle terminal shell can be combined with the game role, so that the attraction to the user is improved, and the use frequency of the user can be promoted.
Referring to fig. 9, based on the same inventive concept, an embodiment of the present application further provides a terminal casing control device 90, which may be applied in a terminal, for example, a system service component of the terminal, and the device includes:
a data acquisition unit 901 for acquiring status data; the state data is state data sent by an application currently used in at least one application, or the state data is detected state data of an operating system of the terminal;
a signal generating unit 902, configured to generate a control signal when it is determined that the application or the operating system runs to a set state according to the state data;
a signal sending unit 903, configured to send a control signal to a terminal housing of the terminal, so that the terminal housing controls at least one effect displaying element included in the terminal housing to act according to the control signal.
Optionally, the at least one application includes a game-like application, and the setting state includes one or a combination of at least two of the following:
switching game scenes;
a target object in the game generates a set event;
a state change of the target object;
the prop of the target object changes.
Optionally, the signal generating unit 902 is specifically configured to:
determining a display mode corresponding to the set state indicated by the state data according to a mapping relation between the pre-stored set state and the display mode;
and generating a control signal based on the determined display mode, so that the terminal shell controls at least one effect display element included in the terminal shell to act in the display mode corresponding to the control signal according to the control signal.
Optionally, the apparatus further comprises an authentication unit 904;
the signal sending unit 903 is further configured to send an authentication information reading signal to the terminal housing based on the triggering of the installation signal, where the installation signal is used to indicate that the terminal housing is installed on the terminal, and the authentication information reading signal is used to read the authentication information of the terminal housing;
and an authentication unit 904, configured to authenticate the terminal housing based on the authentication information returned by the terminal housing.
The apparatus may be configured to execute a method that needs to be executed by the terminal side in the embodiments shown in fig. 5 and fig. 6, and therefore, for functions and the like that can be realized by each functional module of the apparatus, reference may be made to the description of the embodiments shown in fig. 5 and fig. 6, which is not repeated here. Wherein the authentication unit 904 is not a necessary functional unit and is therefore shown in dashed lines in fig. 9.
Referring to fig. 10, based on the same inventive concept, an embodiment of the present application further provides a terminal housing control apparatus 100, which may be applied in a terminal housing, for example, a control module of the terminal housing, and the apparatus includes:
a receiving unit 1001, configured to receive a control signal sent by a terminal, where the control signal is triggered when an application or an operating system on the terminal runs to a set state;
an execution unit 1002 for controlling at least one effect presentation element action based on the control signal.
Optionally, the terminal housing further includes a driving module, and the executing unit 1002 is specifically configured to:
determining a display mode corresponding to the setting state indicated by the control signal based on a mapping relation between the pre-stored setting state and the display mode;
generating a driving signal based on the determined exhibition mode and sending the driving signal to the driving module so that the driving module drives the at least one effect exhibition element to act in the exhibition mode.
The apparatus may be configured to execute a method required to be executed by the terminal housing shown in the embodiment shown in fig. 5 and fig. 6, and therefore, for functions and the like that can be realized by each functional module of the apparatus, reference may be made to the description of the embodiment shown in fig. 5 and fig. 6, which is not repeated.
Based on the same inventive concept, the embodiment of the application also provides a terminal shell control system, which comprises a terminal and a terminal shell, wherein the terminal shell comprises a control module, a first communication module and at least one effect display element, and the terminal comprises a system service assembly and a second communication module;
the system service component is configured to execute a method to be executed by the terminal side in fig. 5 or fig. 6, send a control signal to the first communication module through the second communication module, and forward the control signal to the control module by the first communication module, so that the control module executes the method to be executed by the terminal housing side in fig. 5 or fig. 6, and controls the at least one effect display element to operate in a display mode corresponding to the control signal according to the control signal.
Referring to fig. 11, based on the same technical concept, the embodiment of the present application further provides a computer device 110, which may include a memory 1101 and a processor 1102.
The memory 1101 is used for storing computer programs executed by the processor 1102. The memory 1101 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the computer device, and the like. The processor 1102 may be a Central Processing Unit (CPU), a digital processing unit, or the like. The specific connection medium between the memory 1101 and the processor 1102 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 1101 and the processor 1102 are connected by a bus 1103 in fig. 11, the bus 1103 is indicated by a thick line in fig. 11, and the connection manner between other components is merely illustrative and not limited thereto. The bus 1103 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but it is not intended that there be only one bus or one type of bus.
The memory 1101 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 1101 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD), or any other medium which can be used to carry or store desired program code in the form of instructions or data structures and which can be accessed by a computer. The memory 1101 may be a combination of the above memories.
A processor 1102 for executing the method performed by the terminal or terminal housing in the embodiments as shown in fig. 5 or fig. 6 when invoking the computer program stored in the memory 1101.
In some possible embodiments, various aspects of the methods provided by this application may also be implemented in the form of a program product comprising program code for causing a computer device to perform the steps in the methods according to various exemplary embodiments of this application described above in this specification when the program product is run on the computer device, for example, the computer device may perform the methods performed by the devices in the embodiments shown in fig. 5 or fig. 6.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include such modifications and variations.