Disclosure of Invention
The embodiment of the application provides a terminal remote control method, a device, electronic equipment and a storage medium, which aim to solve the problem of how to realize one-to-one control of a plurality of terminal equipment in the same area through a single remote controller.
An embodiment of the present application provides a terminal remote control method, where the method includes:
Determining a display state of the terminal equipment;
When the display state is a locking state, different combination key information is displayed on a display interface of each terminal device in response to a control instruction sent by a remote controller, and the combination key information is used for representing key position combinations of unlocking each terminal device by the remote controller;
Receiving an unlocking instruction sent by the remote controller, and matching the unlocking instruction with the combination key information;
and when the unlocking instruction is successfully matched with the combination key information, switching the display state of the terminal equipment corresponding to the successfully matched combination key information from the locking state to the unlocking state.
In an alternative embodiment, in response to a control instruction sent by the remote controller, different combined key information is displayed on a display interface of each terminal device, including:
responding to the control instruction, and acquiring key position information of the remote controller;
Based on the key position information, a plurality of key positions of a target number are randomly acquired, and the plurality of key positions are combined according to a random sequence to obtain a plurality of combined key information, wherein any two key positions in the plurality of key positions are the same or different;
and randomly distributing the plurality of combined key information to each terminal device, and displaying the combined key information on a display interface of each terminal device.
In an alternative embodiment, the target number is obtained as follows:
acquiring the number of the terminal devices in a remote control range of the remote controller;
determining equipment probabilities corresponding to different key numbers based on the number of the terminal equipment, wherein the equipment probabilities are probabilities that the combined key information corresponding to at least two terminal equipment is identical when the combined key information is obtained by combining the plurality of key positions according to a random sequence;
and taking the minimum value in at least one key number with the equipment probability smaller than or equal to a probability threshold value as the target number.
In an alternative embodiment, when the unlocking instruction fails to match the combination key information, the method further includes:
the display state of the terminal equipment corresponding to the combination key information with failed matching is kept in the locking state;
updating the combination key information which fails to be matched to obtain updated combination key information;
and replacing the updated combined key information with the combined key information with failed matching, and displaying the combined key information on the display interface.
In an alternative embodiment, updating the combination key information of the matching failure includes:
randomly rearranging the order of the key combinations in the combination key information of the failed match, or
Based on the key position information, a plurality of key positions of a target number are randomly acquired, and the plurality of key positions are combined according to a random sequence, so that updated combined key information is obtained.
In an alternative embodiment, the terminal device includes a first terminal and a second terminal, and the method further includes:
When the unlocking instruction fails to be matched with the combination key information of the first terminal and the second terminal respectively, keeping the display states of the first terminal and the second terminal in the locking state;
receiving a new unlocking instruction sent by the remote controller, and respectively matching the new unlocking instruction with the combined key information of the first terminal and the second terminal;
And when the new unlocking instruction is successfully matched with the combination key information of the first terminal, switching the display state of the first terminal from the locking state to the unlocking state, and clearing the combination key information displayed on the display interface of the second terminal.
In an alternative embodiment, the combination key information is obtained according to the following procedure:
generating equipment identity certificates corresponding to each terminal equipment, wherein the equipment identity certificates corresponding to different terminal equipment are different;
And acquiring self-defined combination key information, and distributing the self-defined combination key information to the terminal equipment according to the equipment identity certificate to serve as combination key information corresponding to each terminal equipment.
In an optional implementation manner, generating the device identity credential corresponding to each terminal device includes:
generating an initial identity credential corresponding to each terminal device;
Enabling a credential update policy to modify the same initial identity credentials corresponding to different ones of the terminal devices;
repeating the credential updating strategy after modifying the initial identity credentials corresponding to any terminal equipment until all the initial identity credentials corresponding to the terminal equipment are different;
And taking the initial identity certificate corresponding to each terminal device as the device identity certificate corresponding to each terminal device.
In an alternative embodiment, the credential updating policy includes:
Broadcasting and transmitting the initial identity certificate corresponding to each terminal device to other terminal devices;
comparing an initial identity credential of a target terminal device with initial identity credentials broadcast by other terminal devices, wherein the target terminal device is any one of the terminal devices;
And modifying the initial identity credential of the target terminal under the condition that any one of the initial identity credentials broadcast by the other terminal equipment is identical to the initial identity credential of the target terminal.
In an optional embodiment, after generating the combination key information corresponding to each terminal device, the method further includes:
Responding to an unlocking instruction successfully matched with the combination key information of target terminal equipment, and switching the display state of the target terminal equipment from the locking state to the unlocking state, wherein the target terminal equipment is any one terminal equipment;
sequencing all terminal devices according to the device identity credentials corresponding to each terminal device to obtain a device sequence;
And switching the terminal equipment which is not unlocked from the locking state to the unlocking state in sequence according to the sequence of the terminal equipment in the equipment sequence.
In an alternative embodiment, the switching of the terminal devices that are not unlocked from the locked state to the unlocked state sequentially according to the order of the terminal devices in the device sequence includes:
Responding to a locking instruction sent by the remote controller, switching the display state of the target terminal equipment from the unlocking state to the locking state, and generating an equipment unlocking instruction;
transmitting the equipment unlocking instruction and the equipment sequence to terminal equipment in the next order of the target terminal equipment in the equipment sequence, wherein when the order of the target terminal equipment in the equipment sequence is the last order, the next order of the target terminal equipment is the first order in the equipment sequence;
And responding to the equipment unlocking instruction, and switching the display state of the next-order terminal equipment of the target terminal equipment from the locking state to the unlocking state.
A second aspect of an embodiment of the present application provides a terminal remote control device, including:
The display state module is used for determining the display state of the terminal equipment;
The combined key information module is used for responding to a control instruction sent by the remote controller when the display state is a locking state, displaying different combined key information on a display interface of each terminal device, wherein the combined key information is used for representing the key position combination of the remote controller for unlocking each terminal device;
The matching module is used for receiving an unlocking instruction sent by the remote controller and matching the unlocking instruction with the combination key information;
And the unlocking module is used for switching the display state of the terminal equipment corresponding to the successfully matched combination key information from the locking state to the unlocking state when the unlocking instruction is successfully matched with the combination key information.
In an alternative embodiment, the combination key information module includes:
the key information sub-module is used for responding to the control instruction and acquiring key information of the remote controller;
The combined key sub-module is used for randomly acquiring a plurality of key positions of a target number based on the key position information, and combining the plurality of key positions according to a random sequence to obtain a plurality of combined key information, wherein any two key positions in the plurality of key positions are the same or different;
And the display sub-module is used for randomly distributing the plurality of combined key information to each terminal device and displaying the combined key information on a display interface of each terminal device.
In an alternative embodiment, the combination key submodule includes:
the equipment number unit is used for acquiring the number of the terminal equipment in the remote control range of the remote controller;
The equipment probability unit is used for determining equipment probabilities corresponding to different key positions based on the number of the terminal equipment, wherein the equipment probabilities are probabilities that the combined key information corresponding to at least two terminal equipment is the same when the combined key information is obtained by combining the plurality of key positions according to a random sequence;
and the target number unit is used for taking the minimum value in at least one key number with the equipment probability smaller than or equal to a probability threshold value as the target number.
In an alternative embodiment, the apparatus further comprises:
A first locking state holding module, configured to hold the display state of the terminal device corresponding to the combination key information that fails to match in the locking state;
the combination key information updating module is used for updating the combination key information which is failed to be matched to obtain updated combination key information;
And the information replacing module is used for replacing the updated combined key information with the combined key information failed in matching and displaying the combined key information on the display interface.
In an alternative embodiment, the combined key information updating module includes:
A first updating sub-module, configured to randomly reorder the order of the key combinations in the combined key information;
and the second updating sub-module is used for randomly acquiring a plurality of key positions of a target number based on the key position information, and combining the plurality of key positions according to a random sequence to obtain the updated combined key information.
In an alternative embodiment, the apparatus further comprises:
the second locking state maintaining module is used for maintaining the display states of the first terminal and the second terminal in the locking state when the unlocking instruction fails to be matched with the combination key information of the first terminal and the combination key information of the second terminal respectively;
The second matching module is used for receiving a new unlocking instruction sent by the remote controller and respectively matching the new unlocking instruction with the combined key information of the first terminal and the second terminal;
And the second unlocking module is used for switching the display state of the first terminal from the locking state to the unlocking state when the new unlocking instruction is successfully matched with the combination key information of the first terminal, and clearing the combination key information displayed on the display interface of the second terminal.
In an alternative embodiment, the combination key information module includes:
an identity credential sub-module, configured to generate an equipment identity credential corresponding to each terminal device, where the equipment identity credentials corresponding to different terminal devices are different;
And the combined key information sub-module is used for acquiring the self-defined combined key information, distributing the self-defined combined key information to the terminal equipment according to the equipment identity certificate, and taking the self-defined combined key information as the combined key information corresponding to each terminal equipment.
In an alternative embodiment, the identity credential sub-module includes:
the initial identity credential unit is used for generating an initial identity credential corresponding to each terminal device;
the certificate updating unit is used for starting a certificate updating strategy so as to modify the same initial identity certificate corresponding to different terminal equipment;
the repeated updating unit is used for repeating the credential updating strategy after modifying the initial identity credentials corresponding to any terminal equipment until all the initial identity credentials corresponding to the terminal equipment are different;
And the identity credential unit is used for taking the initial identity credential corresponding to each terminal device as the equipment identity credential corresponding to each terminal device.
In an alternative embodiment, the credential updating unit comprises:
a broadcasting subunit, configured to broadcast and send the initial identity credential corresponding to each terminal device to other terminal devices;
a certificate comparing subunit, configured to compare an initial identity certificate of a target terminal device with initial identity certificates broadcast by other terminal devices, where the target terminal device is any one of the terminal devices;
And the modification subunit is used for modifying the initial identity certificate of the target terminal under the condition that any one of the initial identity certificates broadcast by the other terminal equipment is identical to the initial identity certificate of the target terminal.
In an alternative embodiment, the combination key information module further includes:
The unlocking sub-module is used for responding to an unlocking instruction successfully matched with the combination key information of the target terminal equipment, switching the display state of the target terminal equipment from the locking state to the unlocking state, wherein the target terminal equipment is any one of the terminal equipment;
The sequencing sub-module is used for sequencing all the terminal devices according to the device identity credentials corresponding to each terminal device to obtain a device sequence;
and the sequential unlocking sub-module is used for sequentially switching the terminal equipment which is not unlocked from the locking state to the unlocking state according to the sequence of the terminal equipment in the equipment sequence.
In an alternative embodiment, the sequential unlocking sub-module includes:
the device unlocking instruction unit is used for responding to the locking instruction sent by the remote controller, switching the display state of the target terminal device from the unlocking state to the locking state and generating a device unlocking instruction;
a sequential unlocking instruction sending unit, configured to send the device unlocking instruction and the device sequence to a terminal device next to the target terminal device in the device sequence, where when the next to the target terminal device in the device sequence is a last bit, the next to the target terminal device is a first bit in the device sequence;
And a sequential unlocking unit. And the display state of the terminal equipment next to the target terminal equipment is switched from the locking state to the unlocking state in response to the equipment unlocking instruction.
A third aspect of the embodiment of the present application provides an electronic device, including a memory, a processor and a computer program stored on the memory, where the processor executes the computer program to implement the steps in the terminal remote control method according to any one of the first aspect.
A fourth aspect of the embodiments of the present application provides a computer readable storage medium having stored thereon a computer program/instruction which, when executed by a processor, implements the steps of the terminal remote control method of any of the first aspects.
A fifth aspect of an embodiment of the application provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps in the terminal remote control method as set forth in any one of the first aspects.
The beneficial effects are that:
The application provides a terminal remote control method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of determining the display state of terminal equipment, responding to a control instruction sent by a remote controller when the display state is a locking state, displaying different combination key information on a display interface of each terminal equipment, wherein the combination key information is used for representing key position combinations of unlocking each terminal equipment by the remote controller, receiving an unlocking instruction sent by the remote controller, matching the unlocking instruction with the combination key information, and switching the display state of the terminal equipment corresponding to the successfully matched combination key information from the locking state to the unlocking state when the unlocking instruction is successfully matched with the combination key information. According to the application, different combination key information is displayed on different terminal equipment, so that the same remote controller can unlock and remotely control one terminal in the mode of inputting the unlocking instruction corresponding to the combination key information of different terminal equipment without misunderstanding other terminals, one-to-one control of a plurality of terminal equipment in the same area through a single remote controller is realized, and the use experience of a user is improved.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The large-size serial display product is a large-size display terminal supporting a remote controller without a touch screen, and the display terminal simultaneously supports a plurality of different display modes, such as HDMI, android intelligent application systems, a display, a screen throwing and the like. At present, a plurality of application scenes of large-size series products need to be provided with a plurality of terminal devices in the same area, and remote control is needed to be realized on the plurality of terminal devices in the same area through a remote controller.
In the related art, a conventional infrared remote controller or a bluetooth remote controller is generally adopted to control a plurality of terminal devices in the same area. However, if the traditional infrared remote controller is adopted, the remote control of one terminal device can cause a plurality of terminal devices to respond simultaneously, and if the Bluetooth remote controller is adopted, once Bluetooth pairing is finished, the same remote controller can only realize one-to-one control on the paired terminal device, and a plurality of different Bluetooth remote controllers are required for controlling different terminal devices in the same area, so that the user experience is reduced.
In view of this, an embodiment of the present application provides a terminal remote control method, and fig. 1 shows a flowchart of a terminal remote control method according to an embodiment of the present application, as shown in fig. 1, where the method includes the following steps:
s101, determining the display state of the terminal equipment.
And S102, when the display state is a locking state, different combination key information is displayed on the display interface of each terminal device in response to a control instruction sent by the remote controller.
When the display state is a locking state, different combination key information is displayed on a display interface of each terminal device in response to a control instruction sent by the remote controller, and the combination key information is used for representing that the remote controller unlocks the key position combination of each terminal device.
S103, receiving an unlocking instruction sent by the remote controller, and matching the unlocking instruction with the combination key information.
And S104, when the unlocking instruction is successfully matched with the combination key information, switching the display state of the terminal equipment corresponding to the successfully matched combination key information from the locking state to the unlocking state.
In the embodiment of the present application, the terminal device is a display terminal that can be remotely controlled by a remote controller, for example, the terminal device may be a television display, a screen display device, a computer display, etc. The display state of the terminal equipment at least comprises an unlocking state and a locking state, wherein the unlocking state is a state that the terminal equipment can respond to a control instruction sent by the remote controller through a remote controller key position to display and control corresponding functions of the terminal equipment, for example, in the unlocking state, the remote controller sends a volume reducing instruction through a volume reducing key position, the terminal equipment responds to the volume reducing instruction to directly display a function interface for adjusting the volume on the display interface and reduce the volume of the terminal equipment, the locking state is a state that the terminal equipment shields the control instruction sent by the remote controller, when the remote controller sends the control instruction through the remote controller key position, the terminal equipment only responds to the control instruction to display combined key information, so that a user can switch the current display state through the combined key information displayed on the display interface, for example, in the locking state, the remote controller sends the volume reducing instruction through the key position, and the terminal equipment responds to the volume reducing instruction, does not display the adjusted function interface on the display interface and the volume of the terminal equipment on the display interface, but displays the combined key information for prompting the user to display the combined key information for adjusting the volume through the display state.
In the embodiment of the application, the remote controller is a control terminal capable of performing remote control operation on a plurality of terminal devices within a remote control range, for example, the remote controller is an infrared remote controller, a 2.4GHz wireless remote controller and the like. The remote controller is provided with a plurality of remote controller keys, each remote controller key corresponds to a control instruction, in the unlocking state, the terminal equipment can be controlled through the remote controller keys, and in the locking state, unlocking instructions of key combination are continuously input through the remote controller keys, so that the locking state of the terminal equipment can be unlocked. The control instruction refers to an instruction corresponding to different key positions of the remote controller, such as an instruction of increasing volume corresponding to an increasing key position on the remote controller, an instruction of opening a menu corresponding to a menu key position, and the like, and the unlocking instruction refers to a control instruction corresponding to a key position combination sequentially input through a plurality of key positions of the remote controller when the remote controller is in a locking state, for example, a control instruction corresponding to an upper key position, a left key position, a right key position, and a menu key position is sequentially input, and is used as a group of unlocking instructions input to the terminal device by the remote controller in a locking state.
In the embodiment of the application, the combined key information is a key combination displayed on a display interface of different terminal devices, and is used for representing the key combination which is required to be input by using the key of the remote controller and is used for unlocking each terminal device by the remote controller, wherein the combined key information corresponding to the different terminal devices is different. Fig. 2 shows an exemplary diagram of displaying combined key information on a display interface according to an embodiment of the present application, as shown in fig. 2, on a display interface of a terminal device, displayed combined key information corresponding to the terminal device is a key position combination of "up key, down key, menu key", and when a remote controller sends a control instruction sequentially through corresponding key positions according to a key position sequence represented by the combined key information, the display state of the terminal device can be switched from a locked state to an unlocked state.
When a plurality of terminal devices capable of being remotely controlled exist in the remote control range of the remote controller, the traditional infrared remote controller cannot control a certain specific terminal device point to point under the premise of not controlling other terminal devices, for example, 10 terminal devices exist in the remote control range of the traditional infrared remote controller, when the traditional infrared remote controller sends a control instruction for closing a screen to one of the terminal devices, the other 9 terminal devices also receive the control instruction at the same time, so that under the control of the control instruction, all 10 terminal devices existing in the remote control range of the remote controller close the screen, control confusion in the remote control range of the remote controller is caused, the implementation accuracy of the user control instruction is reduced, and the user experience is poor. In the embodiment of the application, the terminal equipment in the locking state does not directly carry out corresponding operation according to the control instruction sent by the remote controller, but needs to confirm whether the control instruction sent by the remote controller is specific to the terminal equipment through the combined key information, and different combined key information is displayed on the display interface of the terminal equipment responding to the control instruction sent by the remote controller, so that a user can determine the combined key information corresponding to the terminal equipment needing to be remotely controlled, the terminal equipment is purposefully unlocked through the key position combination corresponding to the terminal equipment input by the remote controller, and other terminal equipment still is in the locking state which can not directly respond to the control instruction, thereby realizing one-to-one control of a plurality of terminal equipment in the same area through a single remote controller and improving the use experience of the user.
In order to enable those skilled in the art to better understand the scheme of the terminal remote control method provided by the embodiment of the present application, fig. 3 shows a flow chart of terminal remote control based on the combined key information according to an embodiment of the present application, and with reference to fig. 3, the following details of the scheme of the embodiment of the present application are described:
When the step S101 is concretely implemented, after the terminal equipment is started, the display state of the terminal equipment is determined, wherein the display state at least comprises a locking state and an unlocking state, the display state of the terminal equipment is determined to be the locking state under the condition that the locking condition is met, after the locking state is unlocked, the display state is switched to the unlocking state, and in the unlocking state, the terminal equipment can directly execute the operation corresponding to the control instruction in response to the control instruction sent by the remote controller. Specifically, the locking condition at least comprises that the control instruction sent by the remote controller is not received, the silent time after the control instruction sent by the remote controller is received and executed exceeds the preset duration, or the locking instruction sent by the remote controller is received. In order to avoid that the terminal device responds to the control instruction which is not specific to the terminal device to execute the operation, under the condition that the display state of the terminal device is determined to be the locking state, the terminal device can shield the control operation of the control instruction, but responds to the control instruction to execute the unlocking flow, and then after the subsequent unlocking flow is completed, the locking state can be switched to the unlocking state, and the corresponding control instruction is executed under the unlocking state.
That is, in the embodiment of the present application, the terminal device in the locked state may mask the control operation of the control command sent by the remote controller, and the terminal device in the unlocked state may normally execute the control operation corresponding to the control command. According to the embodiment of the application, by setting different display states, a plurality of different terminal devices are not simultaneously controlled by the same control instruction sent by the remote controller, so that one-to-one control of a single remote controller on the terminal devices in the unlocking state is realized, and the user experience is improved.
When step S102 is specifically implemented, after determining the display state of the terminal device, a plurality of terminal devices within the remote control range of the remote controller receive a control instruction sent by the remote controller through a remote controller key, and when the display state is characterized as a locked state, the control instruction is not directly executed in the locked state, but an unlocking process is performed first. Specifically, firstly, in response to the control instruction, all key position information which can be used for performing key position combination to generate combined key information on the remote controller is obtained, for example, the remote controller comprises an upper key position, a lower key position, a left key position, a right key position, a menu key position, a volume lifting key position, a volume descending key position, a startup key position, a mode key position and the like, wherein the upper key position, the lower key position, the left key position, the right key position and the menu key position are preset key positions which can be used for performing key position combination to generate combined key information, and then the control instruction corresponding to the key positions is used as the key position information.
Then, the number of the terminal devices in the remote controllable range of the remote controller is obtained, the number of the combined key information which can be formed by combining according to a random sequence based on the number of the key devices which can be combined according to different key positions is obtained, the probability that the combined key information corresponding to at least two terminal devices is the same is determined based on the number of the terminal devices and the number of the combined key information, and as the device probability, in order to ensure that one combined key information cannot unlock more than two terminal devices, the device probability is required to be ensured to be very small, and as the device probability is related to the number of the terminal devices which can be controlled and the number of the key positions of the combined key information, the number of the terminal devices which can be controlled is smaller, the number of the terminal devices which can be controlled is larger to generate the combined key information is smaller, and conversely, the number of the terminal devices which can be controlled is larger to generate the combined key information is smaller. Therefore, in order to ensure that the probability of the equipment is in a smaller range and simultaneously reduce the number of key positions as much as possible, on the premise that the combination key information corresponding to at least two terminal equipment is different from each other, the key positions of the combination key information input by a user through a remote controller are fewer, and the unlocking experience of the user is improved.
For example, if the number of key positions is 5, the key position information corresponds to 5 different key positions, including an upper key position, a lower key position, a left key position, a right key position, and a menu key position, the number of combined key information that can be formed by combining the 5 different key positions according to a random order based on the number of key positions is 3125 calculated, the device probability is 1.4% in the case of 10 terminal devices, and is 32% in the case of 50 terminal devices, and if the number of key positions is 6 calculated, the number of combined key information that can be formed by combining the 5 different key positions according to a random order based on the number of key positions is 15625 calculated, and if the number of terminal devices is 10, the device probability is 2 per mill, and if the number of terminal devices is 50, the device probability is 7.5%. Therefore, when the number of terminal devices is 10 and the probability threshold is 2%, the device probabilities corresponding to the key number of 5 or 6 are smaller than the probability threshold, so that the situation that the combined key information corresponding to at least two terminal devices is the same can be avoided (the probability is smaller than the probability threshold and can not be considered to be generated) under the condition of 10 terminal devices, at the moment, the smaller key number can be selected as the target number, a user can input key combinations in the fewer combined key information, the input efficiency of unlocking of the user is improved, and the unlocking experience of the user is improved. It should be noted that the foregoing examples are merely illustrative of an alternative implementation case provided for a person skilled in the art to better understand the solution of the present application, and the specific number of terminal devices is determined according to actual situations, and the specific number of keys is determined according to the device probability that is correspondingly determined by the number of terminal devices, which is not limited herein.
After determining the target number, based on the key information, randomly acquiring a plurality of keys of the target number in all remote controller keys corresponding to the key information which can be used for performing key combination to generate combined key information, and combining the plurality of keys according to a random sequence to obtain a plurality of combined key information, wherein any two keys in the plurality of keys can be identical or different, namely, the plurality of keys can be randomly combined in a replaceable mode to obtain the plurality of combined key information. And finally, randomly distributing the plurality of combined key information to each terminal device, enabling each terminal device to randomly acquire one combined key information from the plurality of combined key information in a remote control range, and displaying the combined key information acquired by each terminal device on a display interface of each terminal device. For example, the target number is 3, and the available remote control keys include an upper key, a lower key, a left key, a right key and a menu key, so that 3 keys are randomly selected in a replaced manner to form a piece of combined key information according to a random sequence, for example, the combined key information is distributed to one of the terminal devices to be displayed on a display interface of the terminal device, and the combined key information is used for unlocking the terminal device. It should be noted that the foregoing examples are only given as an alternative embodiment for better understanding of the present application by those skilled in the art, and specific combination key information may be determined according to practical situations, and the present application is not limited herein.
In an alternative embodiment, after determining the combined key information corresponding to each terminal device, the combined key information is displayed in a target display area of a display interface, and in order to avoid adverse effects of the target display area on the display of other function interfaces normally displayed in the display interface, the target display area is set to be non-overlapping with the function interface area in the display interface. Preferably, in order to further improve the display effect, the foreground area of the target display area is the combined key information, and the background area is the background area in the screen locking state, so that the target area does not cause shielding to the foreground and the background of the original display interface.
In an alternative implementation manner, fig. 4 shows a schematic flow chart of terminal remote control based on equipment identity credentials and a combination key according to an embodiment of the present application, as shown in fig. 4, in order to facilitate a user to distinguish different terminal devices, after the terminal devices are started, each terminal device is assigned with a corresponding equipment identity credential for characterizing different number information between different terminal devices, the equipment identity credentials corresponding to different terminal devices are different, and sequence information exists between the equipment identity credentials corresponding to different terminal devices, for example, the equipment identity credentials may be equipment IDs, and ID numbers with different sizes between different equipment identity credentials. The equipment identity credential can be generated according to user-defined credential information input by a user, or can be automatically and randomly generated after the terminal equipment is started.
The automatic random generation of the equipment identity credential is carried out by randomly generating an initial identity credential corresponding to each terminal equipment by each terminal equipment after the terminal equipment is started, and because information interaction is not carried out among the terminal equipment at the moment, repeated conditions possibly exist among the initial identity credentials corresponding to a plurality of terminal equipment, so that different terminal equipment corresponds to the same identity credential, and then modifying and updating the repeated identity credential through a credential updating strategy are needed, so that the identity credentials corresponding to all the terminal equipment are different.
FIG. 5 shows a schematic flow chart of a credential updating policy according to an embodiment of the present application, as shown in FIG. 5, specifically, the initial identity credential corresponding to each terminal device is broadcasted and sent to other terminal devices, any one of the terminal devices is used as a target terminal device, for the target device, the initial identity credential corresponding to the target terminal device is sent to other terminal devices, while all the initial identity credentials sent by other terminal devices are received, the target terminal device compares the initial identity credential of the target terminal device with the initial identity credential broadcasted by the other terminal devices, the same condition exists after the initial identity credential corresponding to the other terminal devices and the initial identity credential corresponding to the target terminal device are determined, if any one of the initial identity credentials broadcasted by the other terminal devices is the same as the initial identity credential of the target terminal device, the initial identity credential of the target terminal device is modified and broadcasted again, the broadcast and the updated policy is repeated again between the modified initial identity credentials until there is no repeated initial identity credential after comparison, and the initial identity credential corresponding to the other terminal devices is different, and the initial identity credential corresponding to the terminal device is used as each of the terminal devices.
In an alternative embodiment, the combination key information needs to be randomly generated once every time the terminal device is unlocked, so that the user cannot fix the terminal device with the known device identity, and the combination key information which is fixed or convenient for the user to memorize is adopted for unlocking. Therefore, in order to further enhance the user experience, after determining the device identity credential corresponding to each terminal device, the combination key information may be unlocked according to the user-defined combination key information input by the user. Specifically, after determining the equipment identity credential corresponding to each terminal equipment, the method first obtains the self-defined combined key information, and distributes the self-defined combined key information to the terminal equipment according to the equipment identity credential to serve as the combined key information corresponding to each terminal equipment. For example, the remote control range includes three terminal devices, and the device identity credentials of the terminal devices are respectively set as the device 1, the device 2 and the device 3 in advance, user-defined combined key information input by a user is obtained, if the combined key information of the device 1 is left and left, the combined key information of the device 2 is right and right, and the combined key information of the device 3 is up and down, the user-defined combined key information is respectively distributed to corresponding device terminals according to the device credentials to serve as the combined key information corresponding to each of the terminal devices, and when each device terminal is unlocked later, updated combined key information is not randomly generated any more, and the unlocking of the terminal devices is realized according to the user-defined combined key information.
When step S103 is specifically implemented, after the display interface of each terminal device displays the corresponding combined key information, the user controls the remote controller to sequentially press different key positions to input key position combinations, and uses the control instruction sequentially input based on the key position combinations as a group of unlocking instructions to match with the combined key information of each terminal device, so as to determine whether the unlocking instruction sent by the remote controller is consistent with the combined key information corresponding to any one terminal device. For example, if the combination key information of the device 1 is "left", the combination key information of the device 2 is "right and left", the combination key information of the device 3 is "up and down", the user controls the remote controller to press the left key, the left key and the left key in sequence, the unlocking instruction is determined to be "left and left", after the device 1, the device 2 and the device 3 receive the unlocking instruction, the unlocking instruction is respectively matched with the corresponding combination key information, the device 1 is successfully matched with the unlocking instruction, the device 2 and the device 3 are failed to be matched with the unlocking instruction, and the terminal device which is intended to be controlled by the remote controller is considered as the device 1, and the misoperation on the device 2 and the device 3 is not expected. It should be noted that the foregoing examples are merely an alternative embodiment given by a person skilled in the art to better understand the solution of the present application, and the specific unlocking instruction may be determined according to the actual situation, and the present application is not limited herein.
When step S104 is specifically implemented, when the unlocking instruction is successfully matched with the combination key information, the terminal device that the remote controller intends to control is considered to be the terminal device corresponding to the successfully matched combination key information, and at this time, the control permission of the remote controller on the terminal device needs to be started. Specifically, when the unlocking instruction is successfully matched with the combination key information, the display state of the terminal device corresponding to the successfully matched combination key information is switched from the locking state to the unlocking state, and in the unlocking state, the control instruction sent by the remote controller can be directly executed by the terminal device in the unlocking state. And then updating the combination key information which fails to match to obtain updated combination key information, wherein the updating mode can randomly rearrange the sequence of key position combinations in the combination key information which fails to match, or randomly acquire a plurality of key positions of a target number based on the key position information, and combine the plurality of key positions according to a random sequence to obtain the updated combination key information. And finally, replacing the updated combined key information with the combined key information which fails to be matched, and displaying the combined key information on the display interface so that new combined key information is adopted when the terminal devices are unlocked subsequently.
In an alternative embodiment, if the unlocking instruction input by the remote controller fails to match all the terminal devices, the user is considered to input the unlocking instruction corresponding to the combination key information of the terminal device to be unlocked by mistake, and then a new unlocking instruction sent by the user again needs to be received. Specifically, the terminal device comprises a first terminal and a second terminal, the first terminal and the second terminal are any terminal devices in the terminal device, when the unlocking instruction is failed to be matched with the combination key information of the first terminal and the combination key information of the second terminal respectively, the display states of the first terminal and the second terminal are kept in the locking state, the combination key information corresponding to the first terminal and the second terminal is updated at the same time, a new unlocking instruction sent by the remote controller is received, the new unlocking instruction is matched with the combination key information updated by the first terminal and the second terminal respectively again, and when the new unlocking instruction is successfully matched with the combination key information of the first terminal, the display state of the first terminal is switched from the locking state to the unlocking state. At this time, the first terminal is determined to be the terminal equipment which is intended to be controlled by the user, in order to ensure that the display interfaces of other equipment are not blocked by the combined key information, the combined key information displayed on the display interface is cleared, and the display interface in a locking state is returned.
In an optional embodiment, after determining the combination key information based on the device identity credential corresponding to each terminal device, because the user has set the device identity credential corresponding to each terminal device, in order to further improve user experience, the user may unlock and operate other terminal devices in sequence automatically after unlocking and operating one terminal device, so as to avoid that each unlocking needs to input an unlocking instruction corresponding to the combination key information of different terminal devices.
Fig. 6 shows a continuous unlocking flow chart of a terminal device according to an embodiment of the present application, as shown in fig. 6, firstly, in response to an unlocking instruction of a first terminal device within a remote control range, the first terminal device is used as a target terminal device to be matched, in case of successful matching, the display state of the target terminal device is switched from the locking state to the unlocking state, a corresponding control instruction is sent to the target terminal device in the unlocking state until the operation of the target terminal device is completed, meanwhile, after the matching is successful, the target terminal device sorts all terminal devices according to the device identity credentials corresponding to each terminal device to obtain a device sequence, and due to the existence sequence information of the device identity credentials of the terminal device, the sequence information of the device identity credentials can be given to the first terminal device in the process of generating the device identity credentials, for example, the sequence information is represented by the user-defined identity ID or the randomly generated identity ID number.
After the operation on the target terminal equipment is completed, the remote controller sends a locking instruction to the target equipment, wherein the locking instruction is used for ending the unlocking state of the target terminal equipment, the target terminal equipment responds to the locking instruction sent by the remote controller, the display state of the target terminal equipment is switched from the unlocking state to the locking state, and an equipment unlocking instruction is generated, and is used for directly unlocking the next terminal equipment in place of the matching process of the combination key information and the unlocking instruction.
And finally, sending the equipment unlocking instruction and the equipment sequence to the next-order terminal equipment of the target terminal equipment in the equipment sequence, enabling the next-order terminal equipment to respond to the equipment unlocking instruction, switching the display state from the locking state to the unlocking state, and repeating the processes until the terminal equipment which is not unlocked is sequentially switched from the locking state to the unlocking state according to the sequence of the terminal equipment in the equipment sequence, so as to complete the sequential automatic unlocking and operation of all the terminal equipment. It should be noted that, because the target terminal device is any one of all the terminal devices, the order of the corresponding device identity credential in the device sequence may not be the first, and when the order is not the first, in order to ensure that the terminal devices before the order are unlocked in sequence according to the sequence of the device sequence, the terminal devices before the order are also unlocked in sequence, and when the order of the target terminal device in the device sequence is the last, the next order of the target terminal device is the first in the device sequence is set. At each completion of an apparatus
The remote control range includes four terminal devices, and the device identity credentials of the terminal devices are respectively device 1, device 2, device 3 and device 4, a user firstly unlocks and operates the device 3 through the combined key information of the device 3, in the operation process of the device 3, a device sequence is generated to be the terminal devices (namely, device 1-device 2-device 3-device 4) with the device identity credentials sequenced from small to large, after the operation of the device 3 is completed, a device unlocking instruction is generated, the device unlocking instruction and the device sequence are sent to the device 4, the device 4 directly enters an unlocking state in response to the device unlocking instruction, after the operation of the device 4 is completed, a new device unlocking instruction is generated, and the new device unlocking instruction and the device sequence are sent to the device 1, and the above processes are repeated until all four terminal devices complete one unlocking operation. It should be noted that the foregoing examples are merely an alternative embodiment given for better understanding of the present application by those skilled in the art, and the specific device identity credential and device sequence may be determined according to the actual situation, and the present application is not limited herein.
The embodiment of the application provides a terminal remote control method, which comprises the steps of determining a display state of terminal equipment, responding to a control instruction sent by a remote controller when the display state is a locking state, displaying different combination key information on a display interface of each terminal equipment, wherein the combination key information is used for representing key position combination of unlocking each terminal equipment by the remote controller, receiving an unlocking instruction sent by the remote controller, matching the unlocking instruction with the combination key information, and switching the display state of the terminal equipment corresponding to the successfully matched combination key information from the locking state to the unlocking state when the unlocking instruction is successfully matched with the combination key information. According to the application, different combination key information is displayed on different terminal equipment, so that the same remote controller can unlock and remotely control one terminal in the mode of inputting the unlocking instruction corresponding to the combination key information of different terminal equipment without misunderstanding other terminals, one-to-one control of a plurality of terminal equipment in the same area through a single remote controller is realized, and the use experience of a user is improved.
Based on the same inventive concept, an embodiment of the present application discloses a terminal remote control device, fig. 7 shows a schematic architecture diagram of a terminal remote control device according to an embodiment of the present application, as shown in fig. 7, where the device includes:
The display state module is used for determining the display state of the terminal equipment;
The combined key information module is used for responding to a control instruction sent by the remote controller when the display state is a locking state, displaying different combined key information on a display interface of each terminal device, wherein the combined key information is used for representing the key position combination of the remote controller for unlocking each terminal device;
The matching module is used for receiving an unlocking instruction sent by the remote controller and matching the unlocking instruction with the combination key information;
And the unlocking module is used for switching the display state of the terminal equipment corresponding to the successfully matched combination key information from the locking state to the unlocking state when the unlocking instruction is successfully matched with the combination key information.
In an alternative embodiment, the combination key information module includes:
the key information sub-module is used for responding to the control instruction and acquiring key information of the remote controller;
The combined key sub-module is used for randomly acquiring a plurality of key positions of a target number based on the key position information, and combining the plurality of key positions according to a random sequence to obtain a plurality of combined key information, wherein any two key positions in the plurality of key positions are the same or different;
And the display sub-module is used for randomly distributing the plurality of combined key information to each terminal device and displaying the combined key information on a display interface of each terminal device.
In an alternative embodiment, the combination key submodule includes:
the equipment number unit is used for acquiring the number of the terminal equipment in the remote control range of the remote controller;
The equipment probability unit is used for determining equipment probabilities corresponding to different key positions based on the number of the terminal equipment, wherein the equipment probabilities are probabilities that the combined key information corresponding to at least two terminal equipment is the same when the combined key information is obtained by combining the plurality of key positions according to a random sequence;
and the target number unit is used for taking the minimum value in at least one key number with the equipment probability smaller than or equal to a probability threshold value as the target number.
In an alternative embodiment, the apparatus further comprises:
A first locking state holding module, configured to hold the display state of the terminal device corresponding to the combination key information that fails to match in the locking state;
the combination key information updating module is used for updating the combination key information which is failed to be matched to obtain updated combination key information;
And the information replacing module is used for replacing the updated combined key information with the combined key information failed in matching and displaying the combined key information on the display interface.
In an alternative embodiment, the combined key information updating module includes:
A first updating sub-module, configured to randomly reorder the order of the key combinations in the combined key information;
and the second updating sub-module is used for randomly acquiring a plurality of key positions of a target number based on the key position information, and combining the plurality of key positions according to a random sequence to obtain the updated combined key information.
In an alternative embodiment, the apparatus further comprises:
the second locking state maintaining module is used for maintaining the display states of the first terminal and the second terminal in the locking state when the unlocking instruction fails to be matched with the combination key information of the first terminal and the combination key information of the second terminal respectively;
The second matching module is used for receiving a new unlocking instruction sent by the remote controller and respectively matching the new unlocking instruction with the combined key information of the first terminal and the second terminal;
And the second unlocking module is used for switching the display state of the first terminal from the locking state to the unlocking state when the new unlocking instruction is successfully matched with the combination key information of the first terminal, and clearing the combination key information displayed on the display interface of the second terminal.
In an alternative embodiment, the combination key information module includes:
an identity credential sub-module, configured to generate an equipment identity credential corresponding to each terminal device, where the equipment identity credentials corresponding to different terminal devices are different;
And the combined key information sub-module is used for acquiring the self-defined combined key information, distributing the self-defined combined key information to the terminal equipment according to the equipment identity certificate, and taking the self-defined combined key information as the combined key information corresponding to each terminal equipment.
In an alternative embodiment, the identity credential sub-module includes:
the initial identity credential unit is used for generating an initial identity credential corresponding to each terminal device;
the certificate updating unit is used for starting a certificate updating strategy so as to modify the same initial identity certificate corresponding to different terminal equipment;
the repeated updating unit is used for repeating the credential updating strategy after modifying the initial identity credentials corresponding to any terminal equipment until all the initial identity credentials corresponding to the terminal equipment are different;
And the identity credential unit is used for taking the initial identity credential corresponding to each terminal device as the equipment identity credential corresponding to each terminal device.
In an alternative embodiment, the credential updating unit comprises:
a broadcasting subunit, configured to broadcast and send the initial identity credential corresponding to each terminal device to other terminal devices;
a certificate comparing subunit, configured to compare an initial identity certificate of a target terminal device with initial identity certificates broadcast by other terminal devices, where the target terminal device is any one of the terminal devices;
And the modification subunit is used for modifying the initial identity certificate of the target terminal under the condition that any one of the initial identity certificates broadcast by the other terminal equipment is identical to the initial identity certificate of the target terminal.
In an alternative embodiment, the combination key information module further includes:
The unlocking sub-module is used for responding to an unlocking instruction successfully matched with the combination key information of the target terminal equipment, switching the display state of the target terminal equipment from the locking state to the unlocking state, wherein the target terminal equipment is any one of the terminal equipment;
The sequencing sub-module is used for sequencing all the terminal devices according to the device identity credentials corresponding to each terminal device to obtain a device sequence;
and the sequential unlocking sub-module is used for sequentially switching the terminal equipment which is not unlocked from the locking state to the unlocking state according to the sequence of the terminal equipment in the equipment sequence.
In an alternative embodiment, the sequential unlocking sub-module includes:
the device unlocking instruction unit is used for responding to the locking instruction sent by the remote controller, switching the display state of the target terminal device from the unlocking state to the locking state and generating a device unlocking instruction;
a sequential unlocking instruction sending unit, configured to send the device unlocking instruction and the device sequence to a terminal device next to the target terminal device in the device sequence, where when the next to the target terminal device in the device sequence is a last bit, the next to the target terminal device is a first bit in the device sequence;
And a sequential unlocking unit. And the display state of the terminal equipment next to the target terminal equipment is switched from the locking state to the unlocking state in response to the equipment unlocking instruction.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment of the application. Those of ordinary skill in the art will understand and implement the present application without undue burden.
Based on the same inventive concept, an embodiment of the present application discloses an electronic device, and fig. 8 shows a schematic diagram of an electronic device provided by the embodiment of the present application, as shown in fig. 8, the electronic device 100 includes a memory 110 and a processor 120, where the memory 110 is connected to the processor 120 through a bus communication, and at least one instruction, at least one section of program, a code set, or an instruction set is stored in the memory 110, and the at least one instruction, the at least one section of program, the code set, or the instruction set can be loaded and executed on the processor 120, so as to implement steps in a terminal remote control method disclosed in the embodiment of the present application.
Based on the same inventive concept, an embodiment of the present application discloses a computer readable storage medium having stored thereon at least one instruction, at least one section of program, a code set or an instruction set, which is loaded and executed by a processor to implement the steps in the terminal remote control method disclosed in the embodiment of the present application.
Based on the same inventive concept, an embodiment of the present application discloses a computer program product comprising a computer program/instruction which, when executed by a processor, implements the steps in the terminal remote control method disclosed in the embodiment of the present application.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, electronic devices, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While 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. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing describes the principles and embodiments of the present application in detail using specific examples, and the description of the foregoing examples is only for aiding in understanding of the method and core concept of the present application, and meanwhile, to those skilled in the art, according to the concept of the present application, there are variations in the specific embodiments and application ranges, so the disclosure should not be construed as limiting the application.