CN113076051A - Slave control terminal synchronization method, device, terminal and storage medium - Google Patents

Slave control terminal synchronization method, device, terminal and storage medium Download PDF

Info

Publication number
CN113076051A
CN113076051A CN202110450439.4A CN202110450439A CN113076051A CN 113076051 A CN113076051 A CN 113076051A CN 202110450439 A CN202110450439 A CN 202110450439A CN 113076051 A CN113076051 A CN 113076051A
Authority
CN
China
Prior art keywords
information
control terminal
terminal
resolution
mapping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110450439.4A
Other languages
Chinese (zh)
Inventor
董瑞烽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN202110450439.4A priority Critical patent/CN113076051A/en
Publication of CN113076051A publication Critical patent/CN113076051A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Abstract

The embodiment of the application discloses a slave control terminal synchronization method, a slave control terminal synchronization device, a slave control terminal and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: responding to a trigger operation in a display interface of a main control terminal, and acquiring first position information of a first position where the trigger operation is located; acquiring mapping information of first position information, wherein the mapping information is information which is mapped from the display content of the first position to the same display content in a display interface of a slave control terminal of a master control terminal; and the slave control terminal can determine the display content identical to the display content of the first position according to the mapping information of the first position, so that the trigger positions of the master control terminal and the slave control terminal correspond to the same display content, the slave control terminal executes the steps identical to those of the master control terminal, and the synchronization success rate is improved.

Description

Slave control terminal synchronization method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a slave control terminal synchronization method, a slave control terminal synchronization device, a slave control terminal and a storage medium.
Background
At present, a great number of terminals are available in the terminal market, the terminals may have different system versions and different resolutions, and in the process of testing the application programs, testers need to test the application programs on the terminals respectively, which results in a large workload. Therefore, the scheme of one machine with multiple controls is provided, one of the multiple terminals is used as the master control terminal, the other terminals are used as the slave control terminals, the test is carried out in the master control terminal, and the slave control terminals are controlled to synchronously execute the test steps, so that the effect of controlling the multiple terminals through one terminal is realized, and the workload of the test on the multiple terminals is reduced.
In the related technology, a tester performs a click operation on a master control terminal, the master control terminal obtains a coordinate of a trigger position of the click operation, the coordinate is sent to a slave control terminal, and the slave control terminal executes a step corresponding to the click operation according to the coordinate.
But the contents displayed at the same coordinate on different terminals may not be the same, so that some slave terminals perform different steps from those performed by the master terminal, and the compatibility of the scheme is poor.
Disclosure of Invention
The embodiment of the application provides a slave control terminal synchronization method, a slave control terminal synchronization device, a slave control terminal and a storage medium, and the success rate of slave control terminal synchronization is improved. The technical scheme is as follows:
in one aspect, a slave control terminal synchronization method is provided, and the method includes:
responding to a trigger operation in a display interface of a main control terminal, and acquiring first position information of a first position where the trigger operation is located;
acquiring mapping information of the first position information, wherein the mapping information is information which is mapped from the display content of the first position to the same display content in a display interface of a slave control terminal of the master control terminal;
and sending a synchronization request carrying the mapping information to the slave control terminal, wherein the synchronization request is used for indicating the slave control terminal to execute the step corresponding to the triggering operation according to the mapping information.
In one aspect, a slave control terminal synchronization method is provided, and the method includes:
responding to a trigger operation in a display interface of a main control terminal, and acquiring first position information of a first position where the trigger operation is located;
acquiring mapping information of the first position information, wherein the mapping information is information which is mapped from the display content of the first position to the same display content in a display interface of a slave control terminal of the master control terminal;
and sending a synchronization request carrying the mapping information to the slave control terminal, wherein the synchronization request is used for indicating the slave control terminal to execute the step corresponding to the triggering operation according to the mapping information.
In another aspect, a slave control terminal synchronization apparatus is provided, the apparatus including:
the device comprises a position information acquisition module, a position information acquisition module and a position information acquisition module, wherein the position information acquisition module is used for responding to a trigger operation in a display interface of a main control terminal and acquiring first position information of a first position of the trigger operation;
the mapping information acquisition module is used for acquiring mapping information of the first position information, wherein the mapping information is information which is mapped from the display content of the first position to the same display content in a display interface of a slave control terminal of the master control terminal;
and a request sending module, configured to send a synchronization request carrying the mapping information to the slave control terminal, where the synchronization request is used to instruct the slave control terminal to execute a step corresponding to the trigger operation according to the mapping information.
In another aspect, a slave control terminal synchronization apparatus is provided, the apparatus including:
the device comprises a receiving module, a synchronization module and a processing module, wherein the receiving module is used for receiving a synchronization request of mapping information carrying first position information, the synchronization request is sent after a trigger operation in a display interface of a corresponding main control terminal is carried out, the first position information is information of a first position where the trigger operation is located, and the mapping information is information which is mapped from display content of the first position to the same display content in the display interface of a local terminal;
and the execution module is used for executing the step corresponding to the trigger operation according to the mapping information.
In another aspect, a terminal is provided, which includes a processor and a memory, where at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the operations performed in the slave terminal synchronization method according to the above aspect.
In another aspect, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the operations performed in the slave terminal synchronization method according to the above aspect.
In still another aspect, a computer program is provided, where at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the operations performed in the slave terminal synchronization method according to the foregoing embodiments.
According to the slave control terminal synchronization method, the slave control terminal synchronization device, the slave control terminal and the storage medium, after the trigger operation is performed on the display interface of the master control terminal, the first position information of the first position where the trigger operation is located is not directly sent to the slave control terminal, but the mapping information of the first position information is sent to the slave control terminal. The slave control terminal can determine the display content identical to the display content of the first position according to the mapping information, so that the trigger position determined by the slave control terminal corresponds to the same display content as the trigger position of the master control terminal, the slave control terminal is ensured to execute the same steps as the master control terminal, and the success rate of synchronization is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an implementation environment provided in an embodiment of the present application.
Fig. 2 is a schematic structural diagram of another implementation environment provided in the embodiment of the present application.
Fig. 3 is a flowchart of a slave control terminal synchronization method according to an embodiment of the present application.
Fig. 4 is a flowchart of another slave control terminal synchronization method according to an embodiment of the present application.
Fig. 5 is a flowchart of another slave control terminal synchronization method according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a slave terminal synchronization apparatus according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of another slave terminal synchronization apparatus according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a slave terminal synchronization apparatus according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
It will be understood that, as used herein, the terms "first," "second," "third," "fourth," "fifth," "sixth," and the like may be used herein to describe various concepts, which are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, a first location may be referred to as a second location, and a second location may be referred to as a first location, without departing from the scope of the present application.
As used herein, the terms "each," "plurality," "at least one," "any," and the like, at least one of which comprises one, two, or more than two, and a plurality of which comprises two or more than two, each refer to each of the corresponding plurality, and any refer to any one of the plurality. For example, the plurality of controls includes 3 controls, each of which refers to each of the 3 controls, and any one of the 3 controls refers to any one of the 3 controls, which may be the first one, the second one, or the third one.
The slave control terminal synchronization method provided by the embodiment of the application is executed by the terminal. In one possible implementation, the terminal is any type of terminal such as a mobile phone, a tablet, a computer, or the like.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes a master control terminal 101 and a plurality of slave control terminals 102 (3 are illustrated in fig. 1 as an example), and the master control terminal 101 establishes communication connections with the plurality of slave control terminals 102, respectively.
Optionally, a synchronization tool is installed on the master control terminal 101 and the slave control terminal 102, and the master control terminal 101 can implement functions such as data transmission and message interaction through the synchronization tool. Optionally, the synchronization tool is an application in the operating systems of the master control terminal 101 and the slave control terminal 102; or an application provided for a third party. For example, the synchronization tool has a synchronization function, and currently, the synchronization function can also have other functions, such as a capture function, a game function, a sharing function, and the like.
Optionally, in response to the trigger operation in the display interface, the master control terminal 101 acquires first location information of a first location where the trigger operation is located, acquires mapping information of the first location information, and sends a synchronization request carrying the mapping information to the slave control terminal 102, so that the slave control terminal 102 executes a step corresponding to the trigger operation according to the mapping information, and the slave control terminal 102 executes a step identical to that of the master control terminal 101.
Fig. 2 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes a master control terminal 101, a plurality of slave control terminals 102, and a control terminal 103 (3 are illustrated in fig. 1 as an example), where the master control terminal 101 establishes a communication connection with the control terminal 103, and the control terminal 103 establishes a communication connection with the plurality of slave control terminals 102 respectively.
Optionally, synchronization tools are installed on the master control terminal 101, the slave control terminal 102 and the control terminal 103, the master control terminal 101 and the slave control terminal 102 project a current display interface into the control terminal 103 through the synchronization tools, the display interface of the control terminal 103 includes the display interfaces of the master control terminal 101 and the slave control terminal, a tester performs a trigger operation on the display interface of the master control terminal, the control terminal 103 responds to the trigger operation in the display interface of the master control terminal, acquires first position information of a first position where the trigger operation is located, and sends the first position information to the master control terminal 101; in addition, mapping information of the first position information is acquired, and the mapping information is sent to the slave control terminal 102, so that the master control terminal 101 and the slave control terminal 102 execute a step corresponding to the trigger operation based on the information acquired from the slave control terminal 103.
After the master control terminal 101 and the slave control terminal 102 execute the step corresponding to the trigger operation, the display interfaces of the master control terminal 101 and the slave control terminal 102 are changed, and because the master control terminal 101 and the slave control terminal 102 project the display interfaces to the control terminal 103, a tester can know the condition of the step corresponding to the trigger operation executed by the master control terminal 101 and the slave control terminal 102 only by watching the display interface of the control terminal 103.
The slave control terminal synchronization method provided by the embodiment of the application can be applied to any scene with one machine and multiple controls:
for example: the method is applied to a scene of testing the application program.
Due to the fact that the terminals on the market are of various types, in order to guarantee that the application program can run smoothly on any one terminal, the application program needs to be tested on the terminals of different types, if the method provided by the embodiment of the application is adopted, the slave control terminal can be accurately controlled to execute the same steps as the master control terminal, the success rate of synchronization is improved, testing personnel do not need to test on the various terminals one by one, and the testing efficiency of the application program is improved.
Fig. 3 is a flowchart of a slave control terminal synchronization method according to an embodiment of the present application. The execution main body of this embodiment may be a main control terminal, or may also be a control terminal, and this embodiment of the present application is not limited herein.
Referring to fig. 3, the method includes:
301. and responding to the trigger operation in the display interface of the main control terminal, and acquiring first position information of a first position where the trigger operation is located.
In a possible implementation manner, the master control terminal is a terminal directly controlled by a tester, the slave control terminal is a terminal controlled by the master control terminal, the tester operates on the master control terminal, and the master control terminal sends a synchronization request to the slave control terminal according to the operation of the tester, so that the master control terminal and the slave control terminal execute the same steps.
In another possible implementation manner, the control terminal displays display interfaces of multiple terminals, a tester can operate the display interface of any terminal, the terminal to which the triggered display interface belongs is the master control terminal, and the other terminals are slave control terminals.
For example, the control terminal displays display interfaces of the terminals 1 to 10, a tester firstly performs a trigger operation on a first control in the display interface of the terminal 1, at this time, the terminal 1 is a master control terminal, and the other terminals are slave control terminals. And the tester performs trigger operation on the second control in the display interface of the terminal 2, at this time, the terminal 2 is a master control terminal, and the other terminals are slave control terminals.
The triggering operation in the display interface of the main control terminal comprises the following steps: the trigger position of the trigger operation is any position in the display interface of the main control terminal, for example, the trigger operation is a trigger operation on a certain control in the display interface of the main control terminal.
The first position is a position where the trigger operation is located, namely a trigger position of the trigger operation in the display interface. The first position information is information used for indicating a unique first position, optionally, the first position information is coordinates of the first position, and the first position information is not limited in this embodiment of the application.
302. And acquiring mapping information of the first position information, wherein the mapping information is information which is mapped from the display content of the first position to the same display content in a display interface of the slave control terminal of the master control terminal.
Because the master control terminal and the slave control terminal may be different types of terminals, the display content at the first position in the display interface of the master control terminal may not be the same as the display content at the same position in the display interface of the slave control terminal, and if the first position information is directly sent to the slave control terminal, the operation executed by the slave control terminal may not be the same as the operation executed by the master control terminal. Therefore, in the embodiment of the present application, mapping information of the first location information is obtained, and since the mapping information is information in which the display content of the first location is mapped to the same display content in the display interface of the slave control terminal of the master control terminal, the slave control terminal can determine the display content the same as the display content of the first location according to the mapping information, that is, determine the corresponding trigger location of the trigger operation in the slave control terminal.
303. And sending a synchronization request carrying mapping information to the slave control terminal, wherein the synchronization request is used for indicating the slave control terminal to execute a step corresponding to the triggering operation according to the mapping information.
It should be noted that, in response to a trigger operation in the display interface of the main control terminal, the main control terminal may execute a step corresponding to the trigger operation. In order to synchronize the master control terminal with the slave control terminal, a synchronization request is also sent to the slave control terminal, and the synchronization request carries mapping information of the first position information. And after receiving the synchronization request, the slave control terminal executes a step corresponding to the trigger operation according to the mapping information.
According to the video playing method provided by the embodiment of the application, when a user listens to audio, the video submitted for the audio by the user can be played in the video playing interface, so that the video corresponding to the audio is richer, the video made by a music producer is not required to be played, the flexibility of video playing is improved, the video submitted by the user can be played to bring satisfaction for the user, and the enthusiasm of the user for submitting the audio is stimulated.
According to the slave control terminal synchronization method provided by the embodiment of the application, after the trigger operation is performed on the display interface of the master control terminal, the first position information of the first position where the trigger operation is located is not directly sent to the slave control terminal, but the mapping information of the first position information is sent to the slave control terminal. The slave control terminal can determine the display content identical to the first display content at the first position according to the mapping information, so that the trigger position determined by the slave control terminal corresponds to the same display content as the trigger position of the master control terminal, the slave control terminal is ensured to execute the same steps as the master control terminal, and the success rate of synchronization is improved.
Fig. 4 is a flowchart of a slave control terminal synchronization method according to an embodiment of the present application. Referring to fig. 4, an execution subject of the embodiment of the present application is a slave control terminal, and the method includes:
401. and receiving a synchronous request carrying mapping information of the first position information from the slave control terminal.
The synchronization request is sent after a trigger operation in a display interface of a corresponding main control terminal, the first position information is information of a first position where the trigger operation is located, and the mapping information is information which is mapped from the display content of the first position to the same display content in the display interface of the local terminal.
The slave control terminal is a terminal which executes the step corresponding to the trigger operation according to the synchronization request sent by other terminals.
The triggering operation in the display interface of the main control terminal is as follows: the trigger position of the trigger operation is any position in the display interface of the main control terminal, for example, the trigger operation is a trigger operation on a certain control in the display interface of the main control terminal.
The first position is a position where the trigger operation is located, namely a trigger position of the trigger operation in the display interface. The first position information is information used for indicating a unique first position, optionally, the first position information is coordinates of the first position, and the first position information is not limited in this embodiment of the application.
402. And the slave control terminal executes the step corresponding to the triggering operation according to the mapping information.
Since the mapping information is information that is mapped from the display content at the first position to the same display content in the display interface of the home terminal, the slave control terminal can determine the display content that is the same as the display content at the first position according to the mapping information, that is, the corresponding trigger position of the trigger operation in the slave control terminal is determined. Therefore, when the slave control terminal executes the step corresponding to the trigger operation according to the mapping information, the success rate of synchronization between the slave control terminal and the master control terminal is improved.
According to the slave control terminal synchronization method provided by the embodiment of the application, after the trigger operation is performed on the display interface of the master control terminal, the first position information of the first position where the trigger operation is located is not directly sent to the slave control terminal, but the mapping information of the first position information is sent to the slave control terminal. The slave control terminal can determine the display content identical to the display content of the first position according to the mapping information, so that the trigger position determined by the slave control terminal corresponds to the same display content as the trigger position of the master control terminal, the slave control terminal is ensured to execute the same steps as the master control terminal, and the success rate of synchronization is improved.
Fig. 5 is a flowchart of a slave control terminal synchronization method according to an embodiment of the present application. Referring to fig. 5, the interaction subject of the embodiment of the present application is a master control terminal and a slave control terminal, and the method includes:
501. the main control terminal responds to the trigger operation in the display interface and acquires first position information of a first position where the trigger operation is located.
In a possible implementation manner, the master control terminal is a terminal directly controlled by a tester, the slave control terminal is a terminal controlled by the master control terminal, the tester operates on the master control terminal, and the master control terminal sends a synchronization request to the slave control terminal according to the operation of the tester, so that the master control terminal and the slave control terminal execute the same steps.
Optionally, before the tester performs the test, the master control terminal needs to be set from the plurality of terminals, and the rest terminals are defaulted as slave control terminals. Optionally, the terminal identifiers of the terminals in the terminal group are displayed in a setting interface of any terminal, in response to a selection operation of any terminal identifier, a terminal corresponding to the terminal identifier is determined as a master control terminal, and other terminals are determined as slave control terminals.
The setting interface is used for determining a main control terminal from a plurality of terminals, the terminal group comprises a plurality of terminals, and the terminals participate in a one-machine multi-control scheme.
The triggering operation in the display interface of the main control terminal comprises the following steps: the trigger position of the trigger operation is any position in the display interface of the main control terminal, for example, the trigger operation is a trigger operation on a certain control in the display interface of the main control terminal.
The first position is a position where the trigger operation is located, namely a trigger position of the trigger operation in the display interface. The first position information is information used for indicating a unique first position, optionally, the first position information is coordinates of the first position, and the first position information is not limited in this embodiment of the application.
502. The main control terminal obtains control information of a first control located at a first position.
The control information of the first control is used to indicate a unique control, and the control information may be a control identifier, a control serial number, and the like.
In a possible implementation manner, the main control terminal displays the display interface according to the display parameters corresponding to the display interface. The display parameters include display sub-parameters of each control displayed in the display interface, for example, a display position, a size, and the like of the control. And the main control terminal determines whether the control is located at the first position according to the first position where the trigger operation is located and the display sub-parameters of each control in the display interface in the display parameters.
For example, the first position where the trigger operation is located is (5, 6), the display sub-parameter of the first control indicates that the center display position of the first control is (5, 5), the first control is rectangular, the length of the first control is 3, and the width of the first control is 2, because the area where the first control is located includes the first position, the first control can be considered as the control located at the first position, and performing the trigger operation at the first position actually performs the trigger operation on the first control.
The slave control terminal can determine a control corresponding to the control information at the local terminal according to the control information of the first control, and the control information is used for indicating the only control, so that the control determined by the slave control terminal and the first control are the same, and the control information of the first control can indicate the display content, which is the same as the display content at the first position, in the display interface of the slave control terminal.
503. And the main control terminal determines mapping information based on the control information.
The main control terminal determines the mapping information based on the control information, and may directly determine the control information as the mapping information, process the control information, determine the processed information as the mapping information, or determine the control information and other information together as the mapping information.
In one possible implementation manner, the determining, by the master control terminal, mapping information based on the control information includes: and the master control terminal takes the control information as mapping information.
In another possible implementation manner, due to some unexpected circumstances, after the slave control terminal acquires the control information, the corresponding control may not be found according to the control information. For example, an advertisement pops up from the slave control terminal, a partial region of the display interface is blocked, the control in the partial region cannot be displayed in the display interface, and the display parameters of the display interface also do not include the display sub-parameters of the control in the partial region, so that the slave control terminal may not find the corresponding control according to the control information.
Therefore, other information capable of determining the same display content can be sent to the slave control terminal. Optionally, the determining, by the master control terminal, mapping information based on the control information includes: acquiring a first resolution of a main control terminal; based on the control information, the first position information, and the first resolution, mapping information is determined.
The main control terminal and the slave control terminal display the same display content at different positions, which is caused by different resolutions of the main control terminal and the slave control terminal, so that the position of the display content is related to the resolution of the terminal, and the position relation of the display content in the interface when the two terminals display the same interface can be determined according to the resolutions of the two terminals.
Optionally, the determining, by the master control terminal, mapping information based on the control information, the first location information, and the first resolution includes: and the main control terminal forms mapping information by the control information, the first position information and the first resolution. The master control terminal sends the first position information and the first resolution to the slave control terminal, the slave control terminal can map the first position information according to the proportion of the second resolution and the first resolution of the master control terminal to obtain second position information with the same display content in a display interface of the slave control terminal, and the control information and the second position information form mapping information.
In addition, an embodiment of the present application further provides a method for performing mapping processing according to resolutions of a master control terminal and a slave control terminal, where the first location information is a first coordinate, the second location information is a second coordinate, and the master control terminal performs mapping processing on the first location information according to the first resolution and the second resolution to obtain the second location information, including: acquiring the ratio of the first resolution to the first coordinate; and determining the product of the ratio and the second resolution as the second coordinate.
It should be noted that in some embodiments, the trigger operation is some type of operation, for example, when a tester tests an application, the control in the application is clicked one by one. At this time, the trigger operations are click operations, when the master control terminal sends a synchronization request to the slave control terminal, the synchronization request may not carry operation information of the trigger operations, and the slave control terminal defaults the trigger operations to be click operations.
In some embodiments, the trigger operation in the display interface of the master control terminal may be any type of operation, such as a click operation, a long-press operation, a sliding operation, and so on, in order to enable the slave control terminal to perform the step corresponding to the trigger operation, the same step as the step corresponding to the master control terminal performing the trigger operation is performed, and the synchronization request further carries operation information of the trigger operation, before the synchronization request carrying the mapping information is sent to the slave control terminal, the method further includes: operation information of the trigger operation is acquired, and the operation information at least indicates an operation type of the trigger operation.
Optionally, the operation information may further include some other content, for example, if the trigger operation is a long-press operation, the operation information may further include a duration of the long-press operation; for another example, the trigger operation is a sliding operation, and the operation information further includes a start position point, an end position point, and a sliding trajectory of the sliding operation.
It should be noted that, in the embodiment of the present application, taking the example that the mapping information includes control information of a first control located at a first position, an example of the mapping information of the first position information acquired by the main control terminal is described. In yet another embodiment, the mapping information does not include control information for a first control located in the first position.
It should be noted that the resolutions of the master control terminal and the slave control terminal may not be the same, which may cause the display content at a certain position on the master control terminal to be different from the display content at the same position on the slave control terminal, and if the master control terminal directly sends the first position information to the slave control terminal, the slave control terminal and the master control terminal may execute different steps. Because the position of the display content is related to the resolution of the terminal, the embodiment of the application can send the first position information and the first resolution of the master control terminal to the slave control terminal, so that the slave control terminal performs position mapping; or the master control terminal performs position mapping and sends the mapped position information to the slave control terminal.
In one possible implementation manner, the mapping information includes first position information and a first resolution of the master control terminal; or the mapping information comprises second position information of the same display content in the display interface of the slave control terminal.
Optionally, the acquiring, by the master control terminal, mapping information of the first location information includes: the main control terminal obtains the first resolution of the local terminal, and determines the mapping information based on the first position information and the first resolution. Wherein, based on the first position information and the first resolution, the mapping information is determined, and the first position information and the first resolution may be directly combined into the mapping information; the first position information and the first resolution may be processed, and the processed information may be used as the mapping information.
In one possible implementation, determining the mapping information based on the first location information and the first resolution includes: acquiring a second resolution of the slave control terminal; mapping the first position information according to the first resolution and the second resolution to obtain second position information of the same display content in a display interface of the slave control terminal; and using the second position information as mapping information.
Wherein, first position information is the first coordinate, and second position information is the second coordinate, and main control terminal carries out mapping process to first position information according to first resolution and second resolution, obtains second position information, includes: acquiring the ratio of the first resolution to the first coordinate; the product of the ratio and the second resolution is determined as a second coordinate.
504. And the master control terminal sends a synchronization request carrying mapping information to the slave control terminal.
And the synchronization request is used for indicating the slave control terminal to execute the step corresponding to the triggering operation according to the mapping information, so that the slave control terminal and the master control terminal are synchronized.
Optionally, the master control terminal is connected to the slave control terminal through a data line, and the master control terminal sends a synchronization request carrying mapping information to the slave control terminal through the data line. Optionally, the master control terminal and the slave control terminal are provided with a synchronization tool, and the master control terminal sends a synchronization request carrying mapping information to the synchronization tool of the slave control terminal through a local synchronization tool. The communication mode of the master control terminal and the slave control terminal is not limited in the embodiment of the application.
505. And receiving a synchronization request carrying mapping information from the slave control terminal.
Optionally, the master control terminal is connected to the slave control terminal through a data line, and the slave control terminal receives the synchronization request carrying the mapping information through the data line. Optionally, the master control terminal and the slave control terminal are provided with a synchronization tool, and the slave control terminal receives a synchronization request sent by the master control terminal through a local synchronization tool. The communication mode of the master control terminal and the slave control terminal is not limited in the embodiment of the application.
506. And the slave control terminal executes the step corresponding to the triggering operation according to the mapping information.
As can be seen from the descriptions in step 402 and step 403, in one possible implementation manner, the mapping information at least includes control information of a first control located at a first position, and the slave control terminal performs a step corresponding to a trigger operation according to the mapping information, including: and calling the corresponding control according to the control information, and executing the step corresponding to the trigger operation.
For example, the display interface of the main control terminal is an audio playing interface, the first control is used for switching audio, and after the user clicks the first control, the main control terminal executes the step of switching audio; the master control terminal sends the control information of the first control to the slave control terminal, the slave control terminal determines a corresponding control according to the control information, the corresponding control is the same as the first control and is used for switching audio, and the step of switching the audio is executed by calling the control.
Optionally, the mapping information further includes first location information and a first resolution of the main control terminal. The slave control terminal can map the first position information according to the first resolution and the second resolution of the home terminal to obtain second position information of the same display content in the slave control terminal, and the step corresponding to the trigger operation is executed based on the second position information.
The slave control terminal can call a corresponding control according to the control information and execute the step corresponding to the triggering operation; or determining second position information according to the first position information and the first resolution, and executing the step corresponding to the trigger operation according to the second position information. Therefore, the slave control terminal can implement the step corresponding to the trigger operation only according to the control information or the first position information and the first resolution.
Therefore, in the embodiment of the application, the step corresponding to the trigger operation may be executed according to the control information, and if the corresponding control is not called based on the control information, the step corresponding to the trigger operation may be executed based on the first position information and the first resolution.
The slave control terminal executes the corresponding step of the triggering operation according to the mapping information, and the step comprises the following steps: if the corresponding control is not called based on the control information, mapping the first position information according to the first resolution and the second resolution of the home terminal to obtain second position information of the same display content in the display interface of the home terminal; and executing the step corresponding to the trigger operation according to the second position information.
Optionally, the slave control terminal executes a step corresponding to the trigger operation according to the mapping information, and the step includes: mapping the first position information according to the first resolution and the second resolution of the home terminal to obtain second position information of the same display content in the display interface of the home terminal; and executing the step corresponding to the trigger operation according to the second position information.
The second position information may be regarded as position information of a trigger position of the trigger operation, and the step corresponding to the trigger operation is executed according to the display content of the trigger position. For example, a "next" option is displayed at the second position, and the slave control terminal performs an operation of switching the next audio according to the second position information.
Optionally, the manner in which the slave control terminal processes the first location information is the same as the manner in which the master control terminal processes the first location information. The first position information is a first coordinate, the second position information is a second coordinate, the slave control terminal performs mapping processing on the first position information according to the first resolution and the second resolution of the local terminal to obtain second position information, and the method comprises the following steps: acquiring the ratio of the first resolution to the first coordinate; and determining the product of the ratio and the second resolution as the second coordinate.
Optionally, the mapping information further includes second location information, and the slave control terminal performs a step corresponding to the trigger operation according to the mapping information, including: and the slave control terminal executes a step corresponding to the trigger operation according to the second position information.
In addition, since the slave control terminal can implement the step corresponding to the trigger operation based on the control information and also implement the step corresponding to the trigger operation based on the second position information, the step corresponding to the trigger operation may be implemented according to the control information first, and if no corresponding control is called based on the control information, the step corresponding to the trigger operation may be implemented based on the first position information and the first-resolution second position information.
In another possible implementation manner, the mapping information does not include control information, the mapping information includes first position information and first resolution of the master control terminal, and the slave control terminal performs a step corresponding to the trigger operation according to the mapping information, including: the slave control terminal carries out mapping processing on the first position information according to the first resolution and the second resolution of the home terminal to obtain second position information of the same display content in a display interface of the home terminal; and executing the step corresponding to the trigger operation according to the second position information.
The process of mapping the first location information by the slave control terminal is the same as the process of mapping the first location information by the master control terminal, and is not described herein any more.
For example, the first position information is a first coordinate, the second position information is a second coordinate, and the slave control terminal performs mapping processing on the first position information according to the first resolution and the second resolution of the home terminal to obtain second position information of the same display content in the display interface of the home terminal, including: acquiring the ratio of the first resolution to the first coordinate; and determining the product of the ratio and the second resolution as the second coordinate.
In another possible implementation manner, the mapping information includes second location information of the same display content in the display interface of the home terminal, and the slave control terminal executes a step corresponding to the trigger operation according to the mapping information, including: and the slave control terminal executes a step corresponding to the trigger operation according to the second position information.
In some embodiments, the trigger operation may be any type of operation, such as a click operation, a long-press operation, a sliding operation, and the like, and in order to enable the slave control terminal to correctly execute the step corresponding to the trigger operation, the operation information of the trigger operation may also be sent to the slave control terminal. Optionally, the synchronization request comprises mapping information and operation information. The operation information indicates at least an operation type of the trigger operation. The slave control terminal executes the corresponding step of the trigger operation according to the mapping information, and the step comprises the following steps: and the slave control terminal executes the step corresponding to the triggering operation according to the mapping information and the operation information.
For example, the mapping information is control information of a first control, the operation information indicates that the trigger operation is a sliding operation, a starting trigger point of the sliding operation is a first position, an ending trigger point of the sliding operation is a third position, and a sliding track is a curve from the first position to the third position; and the slave control terminal controls the first control to move from the first position to the third position according to the mapping information and the operation information.
It should be noted that, in the embodiment of the present application, only the interaction subject is taken as the master control terminal and the slave control terminal as an example, and the synchronization method of the slave control terminal is exemplarily described. In some embodiments, the interaction subject is a control terminal, a master control terminal and a slave control terminal. In a possible implementation manner, the control terminal displays display interfaces of a plurality of terminals, a tester can operate the display interface of any terminal, the terminal to which the triggered display interface belongs is the master control terminal, and the other terminals are slave control terminals.
For example, the control terminal displays display interfaces of the terminals 1 to 10, a tester firstly performs a trigger operation on a first control in the display interface of the terminal 1, at this time, the terminal 1 is a master control terminal, and the other terminals are slave control terminals. And the tester performs trigger operation on the second control in the display interface of the terminal 2, at this time, the terminal 2 is a master control terminal, and the other terminals are slave control terminals.
It should be noted that, the interaction subject is a control terminal, a master control terminal and a slave control terminal, and the difference from the interaction subject being the master control terminal and the slave control terminal is only that:
(1) if the interaction main body is a master control terminal and a slave control terminal, the master control terminal directly responds to the trigger operation in the display interface and executes the step corresponding to the trigger operation; and if the interaction main body is a control terminal, a master control terminal and a slave control terminal, the control terminal acquires first position information of a first position where the trigger operation is located, and sends a synchronization request carrying the first position information to the master control terminal, so that the master control terminal executes a step corresponding to the trigger operation according to the first position information.
(2) If the interaction main body is a master control terminal and a slave control terminal, the master control terminal sends a synchronization request to the slave control terminal; and if the interaction main body is a control terminal, a master control terminal and a slave control terminal, the control terminal sends a synchronization request to the slave control terminal.
It should be noted that the synchronization request sent by the control terminal is similar to the synchronization request sent by the main control terminal, and is not described in detail here.
According to the slave control terminal synchronization method provided by the embodiment of the application, after the trigger operation is performed on the display interface of the master control terminal, the first position information of the first position where the trigger operation is located is not directly sent to the slave control terminal, but the mapping information of the first position information is sent to the slave control terminal. The slave control terminal can determine the display content identical to the first display content at the first position according to the mapping information, so that the trigger position determined by the slave control terminal corresponds to the same display content as the trigger position of the master control terminal, the slave control terminal is ensured to execute the same steps as the master control terminal, and the success rate of synchronization is improved.
And the mapping information comprises control information of the first control at the first position, so that the slave control terminal and the master control terminal trigger the same control to execute the same step, the synchronism of the slave control terminal and the master control terminal is ensured, the mapping information is not influenced by the resolution of the terminals, the mapping information can be suitable for a plurality of terminals with different resolutions, and the scheme has stronger compatibility.
And the mapping information comprises first position information of a first position and first resolution of the master control terminal, so that the slave control terminal can map the first position information according to the first resolution and second resolution of the local terminal to obtain second position information mapped at the slave control terminal, and execute a step corresponding to the trigger operation according to the second position information, thereby avoiding the influence of the resolution of the terminal, being applicable to a plurality of terminals with different resolutions, and having stronger scheme compatibility.
And when the slave control terminal determines that the control corresponding to the control information does not exist according to the control information, mapping the first position information according to the first resolution and the second resolution of the local terminal to obtain second position information mapped on the slave control terminal, and executing the step corresponding to the trigger operation according to the second position information, so that the slave control terminal is ensured to successfully execute the step.
Fig. 6 is a schematic structural diagram of a slave terminal synchronization apparatus provided in the present application. Referring to fig. 6, the apparatus includes:
the position information acquiring module 601 is configured to respond to a trigger operation in a display interface of a main control terminal, and acquire first position information of a first position where the trigger operation is located;
a mapping information obtaining module 602, configured to obtain mapping information of the first location information, where the mapping information is information that is mapped from the display content of the first location to the same display content in a display interface of a slave terminal of the master terminal;
a request sending module 603, configured to send a synchronization request carrying the mapping information to the slave control terminal, where the synchronization request is used to instruct the slave control terminal to execute a step corresponding to the trigger operation according to the mapping information.
As shown in fig. 7, in one possible implementation manner, the mapping information obtaining module 602 includes:
an obtaining unit 6021, configured to obtain control information of a first control located at the first position;
a determining unit 6022 configured to determine the mapping information based on the control information.
In a possible implementation manner, the determining unit 6022 is configured to take the control information as the mapping information; or acquiring a first resolution of the main control terminal, and determining the mapping information based on the control information, the first position information and the first resolution.
In one possible implementation, the determining unit 6022 is configured to compose the control information, the first position information, and the first resolution into the mapping information; alternatively, the first and second electrodes may be,
the determining unit 6022 is configured to obtain a second resolution of the slave terminal; mapping the first position information according to the first resolution and the second resolution to obtain second position information of the same display content in a display interface of the slave control terminal; and forming the mapping information by the control information and the second position information.
In one possible implementation manner, the mapping information obtaining module 602 includes:
an obtaining unit 6021, configured to obtain a first resolution of the master control terminal;
a determining unit 6022 configured to determine the mapping information based on the first position information and the first resolution.
In one possible implementation, the determining unit 6022 is configured to compose the first position information and the first resolution into the mapping information; alternatively, the first and second electrodes may be,
the determining unit 6022 is configured to obtain a second resolution of the slave terminal; mapping the first position information according to the first resolution and the second resolution to obtain second position information of the same display content in a display interface of the slave control terminal; and taking the second position information as the mapping information.
In a possible implementation manner, the first position information is a first coordinate, the second position information is a second coordinate, and the determining unit 6022 is configured to obtain a ratio of the first resolution to the first coordinate; determining a product of the ratio and the second resolution as the second coordinate.
In one possible implementation manner, the synchronization request further carries operation information of the trigger operation, and the apparatus further includes:
an operation information obtaining module 604, configured to obtain operation information of the trigger operation, where the operation information at least indicates an operation type of the trigger operation.
Fig. 8 is a schematic structural diagram of a slave terminal synchronization apparatus provided in the present application. Referring to fig. 8, the apparatus includes:
a receiving module 801, configured to receive a synchronization request carrying mapping information of first position information, where the synchronization request is sent after a trigger operation is performed on a display interface of a corresponding master control terminal, the first position information is information of a first position where the trigger operation is located, and the mapping information is information that is mapped from display content of the first position to the same display content in a display interface of a home terminal;
an executing module 802, configured to execute, according to the mapping information, a step corresponding to the triggering operation.
In a possible implementation manner, the mapping information at least includes control information of a first control located at the first position, and the execution module 802 is configured to invoke a corresponding control according to the control information, and execute a step corresponding to the trigger operation.
In a possible implementation manner, the mapping information further includes the first location information and a first resolution of the main control terminal, and the execution module 802 is configured to, if a corresponding control is not called based on the control information, map the first location information according to the first resolution and a second resolution of the home terminal to obtain second location information of the same display content in the display interface of the home terminal; and executing the step corresponding to the trigger operation according to the second position information.
In a possible implementation manner, the mapping information further includes second position information of the same display content in the display interface of the home terminal;
the executing module 802 is configured to execute the step corresponding to the trigger operation according to the second location information if the corresponding control is not called based on the control information.
In a possible implementation manner, the mapping information includes first position information and a first resolution of the main control terminal, and the execution module 802 is configured to perform mapping processing on the first position information according to the first resolution and a second resolution of the home terminal to obtain second position information of the same display content in a display interface of the home terminal; and executing the step corresponding to the trigger operation according to the second position information.
In one possible implementation manner, the first position information is a first coordinate, and the second position information is a second coordinate;
the executing module 802 is configured to obtain a ratio of the first resolution to the first coordinate; determining a product of the ratio and the second resolution as the second coordinate.
In a possible implementation manner, the mapping information includes second position information of the same display content in the display interface of the local terminal, and the executing module 802 is configured to obtain a ratio of the first resolution to the first coordinate; determining a product of the ratio and the second resolution as the second coordinate.
Fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 900 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 900 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
The terminal 900 includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 902 is used for storing at least one program code for execution by the processor 901 to implement the slave terminal synchronization method provided by the method embodiments in the present application.
In some embodiments, terminal 900 can also optionally include: a peripheral interface 903 and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a display screen 905, a camera assembly 906, an audio circuit 907, a positioning assembly 908, and a power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 20G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 904 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one, disposed on the front panel of the terminal 900; in other embodiments, the number of the display panels 905 may be at least two, and each of the display panels is disposed on a different surface of the terminal 900 or is in a foldable design; in other embodiments, the display 905 may be a flexible display disposed on a curved surface or a folded surface of the terminal 900. Even more, the display screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 906 is used to capture images or video. Optionally, camera assembly 906 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for realizing voice communication. For stereo sound acquisition or noise reduction purposes, the microphones may be multiple and disposed at different locations of the terminal 900. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate the current geographic Location of the terminal 900 for navigation or LBS (Location Based Service). The Positioning component 908 can be based on the Global Positioning System (GPS) in the united states, the beidou System in china or the graves Positioning System in russia, and the galileo Positioning System in the european union.
Power supply 909 is used to provide power to the various components in terminal 900. The power source 909 may be alternating current, direct current, disposable or rechargeable. When the power source 909 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 900 can also include one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 90. For example, the acceleration sensor 911 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the display screen 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the terminal 900, and the gyro sensor 912 may cooperate with the acceleration sensor 911 to acquire a 3D motion of the user on the terminal 900. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 913 may be disposed on a side bezel of the terminal 900 and/or underneath the display 905. When the pressure sensor 913 is disposed on the side frame of the terminal 900, the user's holding signal of the terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the display screen 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 905. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 914 is used for collecting a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the terminal 900. When a physical key or vendor Logo is provided on the terminal 900, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the display screen 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the display screen 905 is reduced. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
A proximity sensor 916, also referred to as a distance sensor, is provided on the front panel of the terminal 900. The proximity sensor 916 is used to collect the distance between the user and the front face of the terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the terminal 900 gradually decreases, the processor 901 controls the display 905 to switch from the bright screen state to the dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal 900 gradually becomes larger, the display 905 is controlled by the processor 901 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of terminal 900, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
The embodiment of the present application further provides a computer-readable storage medium, where at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to implement the operations executed in the slave control terminal synchronization method of the foregoing embodiment.
The embodiment of the present application further provides a computer program, where at least one program code is stored in the computer program, and the at least one program code is loaded and executed by a processor, so as to implement the operations executed in the slave control terminal synchronization method according to the foregoing embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only an alternative embodiment of the present application and is not intended to limit the present application, and any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (19)

1. A slave control terminal synchronization method is characterized by comprising the following steps:
responding to a trigger operation in a display interface of a main control terminal, and acquiring first position information of a first position where the trigger operation is located;
acquiring mapping information of the first position information, wherein the mapping information is information which is mapped from the display content of the first position to the same display content in a display interface of a slave control terminal of the master control terminal;
and sending a synchronization request carrying the mapping information to the slave control terminal, wherein the synchronization request is used for indicating the slave control terminal to execute the step corresponding to the triggering operation according to the mapping information.
2. The method of claim 1, wherein the obtaining the mapping information of the first location information comprises:
acquiring control information of a first control located at the first position;
determining the mapping information based on the control information.
3. The method of claim 2, wherein determining the mapping information based on the control information comprises:
taking the control information as the mapping information; alternatively, the first and second electrodes may be,
acquiring a first resolution of the master control terminal; determining the mapping information based on the control information, the first position information, and the first resolution.
4. The method of claim 3, wherein determining the mapping information based on the control information, the first position information, and the first resolution comprises:
composing the control information, the first position information, and the first resolution into the mapping information; alternatively, the first and second electrodes may be,
acquiring a second resolution of the slave control terminal; mapping the first position information according to the first resolution and the second resolution to obtain second position information of the same display content in a display interface of the slave control terminal; and forming the mapping information by the control information and the second position information.
5. The method of claim 1, wherein the obtaining the mapping information of the first location information comprises:
acquiring a first resolution of the master control terminal;
determining the mapping information based on the first location information and the first resolution.
6. The method of claim 5, wherein determining the mapping information based on the first location information and the first resolution comprises:
composing the first location information and the first resolution into the mapping information; alternatively, the first and second electrodes may be,
acquiring a second resolution of the slave control terminal; mapping the first position information according to the first resolution and the second resolution to obtain second position information of the same display content in a display interface of the slave control terminal; and taking the second position information as the mapping information.
7. The method according to claim 4 or 6, wherein the first position information is a first coordinate, the second position information is a second coordinate, and the mapping processing on the first position information according to the first resolution and the second resolution to obtain the second position information of the same display content in the display interface of the slave control terminal includes:
acquiring the ratio of the first resolution to the first coordinate;
determining a product of the ratio and the second resolution as the second coordinate.
8. The method according to claim 1, wherein the synchronization request further carries operation information of the trigger operation, and before the synchronization request carrying the mapping information is sent to the slave control terminal, the method further comprises:
and acquiring operation information of the trigger operation, wherein the operation information at least indicates the operation type of the trigger operation.
9. A slave control terminal synchronization method is characterized by comprising the following steps:
receiving a synchronization request carrying mapping information of first position information, wherein the synchronization request is sent after a trigger operation is performed on a display interface of a corresponding main control terminal, the first position information is information of a first position where the trigger operation is located, and the mapping information is information of the same display content which is mapped from the display content of the first position to the display interface of a local terminal;
and executing the step corresponding to the trigger operation according to the mapping information.
10. The method according to claim 9, wherein the mapping information at least includes control information of a first control located at the first position, and the step of executing the corresponding trigger operation according to the mapping information includes:
and calling the corresponding control according to the control information, and executing the step corresponding to the trigger operation.
11. The method according to claim 10, wherein the mapping information further includes the first location information and a first resolution of the main control terminal, and the step of executing the triggering operation according to the mapping information includes:
if the corresponding control is not called based on the control information, mapping the first position information according to the first resolution and the second resolution of the home terminal to obtain second position information of the same display content in a display interface of the home terminal;
and executing the step corresponding to the trigger operation according to the second position information.
12. The method according to claim 10, wherein the mapping information further includes second location information of the same display content in the display interface of the home terminal, and the step of executing the trigger operation according to the mapping information includes:
and if the corresponding control is not called based on the control information, executing the step corresponding to the trigger operation according to the second position information.
13. The method according to claim 9, wherein the mapping information includes first location information and a first resolution of the main control terminal, and the step of executing the triggering operation according to the mapping information includes:
mapping the first position information according to the first resolution and the second resolution of the home terminal to obtain second position information of the same display content in the display interface of the home terminal;
and executing the step corresponding to the trigger operation according to the second position information.
14. The method according to claim 11 or 13, wherein the first position information is a first coordinate, the second position information is a second coordinate, and the mapping processing on the first position information according to the first resolution and the second resolution of the home terminal to obtain the second position information of the same display content in the display interface of the home terminal includes:
acquiring the ratio of the first resolution to the first coordinate;
determining a product of the ratio and the second resolution as the second coordinate.
15. The method according to claim 9, wherein the mapping information includes second location information of the same display content in the display interface of the home terminal, and the step corresponding to the trigger operation is executed according to the mapping information, and includes:
and executing the step corresponding to the trigger operation according to the second position information.
16. A slave terminal synchronization apparatus, characterized in that the apparatus comprises:
the device comprises a position information acquisition module, a position information acquisition module and a position information acquisition module, wherein the position information acquisition module is used for responding to a trigger operation in a display interface of a main control terminal and acquiring first position information of a first position of the trigger operation;
the mapping information acquisition module is used for acquiring mapping information of the first position information, wherein the mapping information is information which is mapped from the display content of the first position to the same display content in a display interface of a slave control terminal of the master control terminal;
and a request sending module, configured to send a synchronization request carrying the mapping information to the slave control terminal, where the synchronization request is used to instruct the slave control terminal to execute a step corresponding to the trigger operation according to the mapping information.
17. A slave terminal synchronization apparatus, characterized in that the apparatus comprises:
the device comprises a receiving module, a synchronization module and a processing module, wherein the receiving module is used for receiving a synchronization request of mapping information carrying first position information, the synchronization request is sent after a trigger operation in a display interface of a corresponding main control terminal is carried out, the first position information is information of a first position where the trigger operation is located, and the mapping information is information which is mapped from display content of the first position to the same display content in the display interface of a local terminal;
and the execution module is used for executing the step corresponding to the trigger operation according to the mapping information.
18. A terminal, characterized in that the terminal comprises a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations executed in the slave terminal synchronization method according to any one of claims 1 to 8; or to implement the operations performed in the slave terminal synchronization method according to any of claims 9 to 15.
19. A computer-readable storage medium, having at least one program code stored therein, the at least one program code being loaded and executed by a processor to implement the operations performed in the slave terminal synchronization method according to any one of claims 1 to 8; or to implement the operations performed in the slave terminal synchronization method according to any of claims 9 to 15.
CN202110450439.4A 2021-04-25 2021-04-25 Slave control terminal synchronization method, device, terminal and storage medium Pending CN113076051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110450439.4A CN113076051A (en) 2021-04-25 2021-04-25 Slave control terminal synchronization method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110450439.4A CN113076051A (en) 2021-04-25 2021-04-25 Slave control terminal synchronization method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113076051A true CN113076051A (en) 2021-07-06

Family

ID=76618771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110450439.4A Pending CN113076051A (en) 2021-04-25 2021-04-25 Slave control terminal synchronization method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113076051A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113581711A (en) * 2021-08-04 2021-11-02 北京建筑大学 Small-size storage warehouse-in and warehouse-out guide system
CN113760750A (en) * 2021-08-13 2021-12-07 深圳Tcl新技术有限公司 Intelligent equipment testing method and device, electronic equipment and storage medium
CN113806236A (en) * 2021-10-29 2021-12-17 建信金融科技有限责任公司 Method and system for one-machine multi-control of cloud machine in mobile test field

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140004495A (en) * 2012-07-03 2014-01-13 삼성전자주식회사 Method for testing application program automatically and an electronic device thereof
CN103631551A (en) * 2012-08-27 2014-03-12 深圳市蓝韵网络有限公司 Local display method for remote desktop in medical consultation system
CN105912317A (en) * 2016-03-31 2016-08-31 深圳市益光实业有限公司 In-vehicle entertainment equipment and method of controlling terminal through in-vehicle entertainment equipment
CN109324741A (en) * 2018-09-30 2019-02-12 广州云测信息技术有限公司 A kind of method of controlling operation thereof, device and system
CN110456927A (en) * 2019-08-13 2019-11-15 腾讯科技(深圳)有限公司 Operation mapping method, device and the computer equipment of equipment room

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140004495A (en) * 2012-07-03 2014-01-13 삼성전자주식회사 Method for testing application program automatically and an electronic device thereof
CN103631551A (en) * 2012-08-27 2014-03-12 深圳市蓝韵网络有限公司 Local display method for remote desktop in medical consultation system
CN105912317A (en) * 2016-03-31 2016-08-31 深圳市益光实业有限公司 In-vehicle entertainment equipment and method of controlling terminal through in-vehicle entertainment equipment
CN109324741A (en) * 2018-09-30 2019-02-12 广州云测信息技术有限公司 A kind of method of controlling operation thereof, device and system
CN110456927A (en) * 2019-08-13 2019-11-15 腾讯科技(深圳)有限公司 Operation mapping method, device and the computer equipment of equipment room

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113581711A (en) * 2021-08-04 2021-11-02 北京建筑大学 Small-size storage warehouse-in and warehouse-out guide system
CN113760750A (en) * 2021-08-13 2021-12-07 深圳Tcl新技术有限公司 Intelligent equipment testing method and device, electronic equipment and storage medium
CN113760750B (en) * 2021-08-13 2024-04-02 深圳Tcl新技术有限公司 Intelligent device testing method and device, electronic device and storage medium
CN113806236A (en) * 2021-10-29 2021-12-17 建信金融科技有限责任公司 Method and system for one-machine multi-control of cloud machine in mobile test field
CN113806236B (en) * 2021-10-29 2023-06-09 建信金融科技有限责任公司 Method and system for one-machine multi-control of cloud real machine in mobile test field

Similar Documents

Publication Publication Date Title
CN109348247B (en) Method and device for determining audio and video playing time stamp and storage medium
CN110308956B (en) Application interface display method and device and mobile terminal
CN110278464B (en) Method and device for displaying list
CN110740340B (en) Video live broadcast method and device and storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN113076051A (en) Slave control terminal synchronization method, device, terminal and storage medium
CN110659127A (en) Method, device and system for processing task
CN108897659B (en) Method, device and storage medium for modifying log level
CN110288689B (en) Method and device for rendering electronic map
CN111752666A (en) Window display method and device and terminal
CN110784370B (en) Method and device for testing equipment, electronic equipment and medium
CN111177013A (en) Log data acquisition method and device, computer equipment and storage medium
CN115378900A (en) Song list sharing method, device, terminal and storage medium
CN111897465B (en) Popup display method, device, equipment and storage medium
CN112256320A (en) Version number generation method, device, terminal and storage medium
CN111045945B (en) Method, device, terminal, storage medium and program product for simulating live broadcast
CN109783176B (en) Page switching method and device
CN108401194B (en) Time stamp determination method, apparatus and computer-readable storage medium
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN111008083A (en) Page communication method and device, electronic equipment and storage medium
CN111464829B (en) Method, device and equipment for switching media data and storage medium
CN114594885A (en) Application icon management method, device and equipment and computer readable storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN109275015B (en) Method, device and storage medium for displaying virtual article
CN112015612B (en) Method and device for acquiring stuck information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210706