CN106506764B - multi-mobile-phone remote control system and method - Google Patents

multi-mobile-phone remote control system and method Download PDF

Info

Publication number
CN106506764B
CN106506764B CN201610883712.1A CN201610883712A CN106506764B CN 106506764 B CN106506764 B CN 106506764B CN 201610883712 A CN201610883712 A CN 201610883712A CN 106506764 B CN106506764 B CN 106506764B
Authority
CN
China
Prior art keywords
mobile phone
controlled
module
master control
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610883712.1A
Other languages
Chinese (zh)
Other versions
CN106506764A (en
Inventor
丁鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201610883712.1A priority Critical patent/CN106506764B/en
Publication of CN106506764A publication Critical patent/CN106506764A/en
Application granted granted Critical
Publication of CN106506764B publication Critical patent/CN106506764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

the invention discloses a multi-mobile phone remote control system, which relates to the technical field of mobile phone remote control, and is used for mutual control among a plurality of mobile phones provided with the multi-mobile phone remote control system in the same local area network, wherein one mobile phone in the plurality of mobile phones is a master control mobile phone; the other mobile phones are controlled mobile phones and comprise a master control module arranged on the master control mobile phone and a controlled module arranged on the controlled mobile phone. When the master control mobile phone receives the clicking operation of the user, the master control module collects operation data of the clicking operation of the user and sends the operation data to the controlled module of the controlled mobile phone, and the controlled module of the controlled mobile phone converts the operation data into a simulation operation command and executes the simulation operation command, so that the situation that only one mobile phone is required to be operated and all other mobile phones can simulate the same operation. The invention also discloses a multi-mobile-phone remote control method.

Description

Multi-mobile-phone remote control system and method
Technical Field
The invention relates to the technical field of remote control of mobile phones, in particular to a multi-mobile-phone remote control system and a multi-mobile-phone remote control method.
Background
in the rapid development of the current mobile internet, the Android mobile phone is updated very quickly. Therefore, the Android mobile phones in the market are various in types, and system fragmentation is serious. A good Android application needs to be adapted to a plurality of models if the application needs to enter the market. In the black box test of the mobile phone, a tester can only test the mobile phones individually, so that the efficiency is low, and the tester needs to repeat a large number of same test operations. There is a need for a solution that when testing, a tester only needs to operate one mobile phone, and all other mobile phones can follow the same operation scheme, so as to solve the problems of low efficiency and repeated testing of mobile phone testers during testing.
disclosure of Invention
aiming at the defects in the prior art, the invention aims to provide a multi-mobile-phone remote control system and a multi-mobile-phone remote control method, which can realize that only one mobile phone is required to be operated, and all other mobile phones can follow the simulation of the same operation.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: a multi-mobile phone remote control system is used for mutual control among a plurality of mobile phones provided with the multi-mobile phone remote control system in the same local area network, wherein one mobile phone in the plurality of mobile phones is a master control mobile phone; other mobile phones are controlled mobile phones, including:
The master control module is arranged on the master control mobile phone and used for acquiring an ip address list of all controlled mobile phones in a local area network; sending a control request and an ip address of the master control mobile phone to a controlled module of the controlled mobile phone corresponding to all ip addresses in the ip address list, and receiving an ID and the ip address of the controlled mobile phone returned by the controlled module of the controlled mobile phone; collecting operation data when the master control mobile phone is operated and sending the operation data to a controlled module of the controlled mobile phone;
the controlled module is arranged on the controlled mobile phone and used for receiving the control request sent by the main control module of the main control mobile phone and returning the ID and the ip address of the controlled mobile phone; receiving a control command sent by a main control module of a main control mobile phone and executing the control command; converting the operation data sent by the main control module of the main control mobile phone into a simulation operation command and executing the simulation operation command on the controlled mobile phone.
On the basis of the technical scheme, the method comprises the following steps:
The IP address acquisition unit is used for acquiring an IP address list of the controlled mobile phone in the local area network;
the control request sending unit is used for sending a control request and the ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all the ip addresses in the ip address list, and receiving the ID and the ip address of the controlled mobile phone returned by the controlled modules of the controlled mobile phones;
The control command sending unit is used for sending a control command to the controlled subunit;
and the operation data acquisition unit is used for acquiring operation data when the master control mobile phone is operated and sending the operation data to a controlled module of the controlled mobile phone.
On the basis of the above technical solution, the controlled module includes:
the control request receiving unit is used for receiving a control request sent by a main control module of the main control mobile phone and an ip address of the main control mobile phone and returning an ID (identity) and the ip address of the controlled mobile phone;
The control command execution unit receives a control command sent by a main control module of the main control mobile phone and executes the control command;
And the operation data processing unit is used for converting the operation data sent by the main control module of the main control mobile phone into a simulation operation command and executing the simulation operation command on the controlled mobile phone.
On the basis of the technical scheme, the main control module further comprises an RSA encryption unit which is used for encrypting an RSA certificate for the control request, the control command and the operation data sent by the main control module; the controlled module also comprises an RSA verification unit which is used for verifying the RSA certificate in the control request, the control command and the operation data sent by the main control module.
On the basis of the technical scheme, each mobile phone is provided with a master control module and a controlled module, any one mobile phone can be a master control mobile phone, and the master control mobile phone only starts the master control module; and the other mobile phones are controlled mobile phones, and the controlled mobile phones only start the controlled main module.
the invention also discloses a multi-mobile phone remote control method adopting the multi-mobile phone remote control system, which comprises the following steps:
Step S1, establishing a local area network with a plurality of mobile phones equipped with mobile phone remote control modules; the mobile phone remote control module comprises a main control module and a controlled module; one of the mobile phones is a master control mobile phone; the other mobile phones are controlled mobile phones;
step S2, the main control module of the main control mobile phone obtains the mobile phone ID and the ip address of all the controlled mobile phones in the local area network;
Step S3, the master control module of the master control mobile phone sends a control request and an ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all ip addresses in the ip address list, and receives the ID and the ip address of the controlled mobile phone returned by the controlled modules of the controlled mobile phones;
Step S4, the master control module of the master control mobile phone sends a control command for opening the socket port long link to the controlled module of the controlled mobile phone; receiving a control command for opening a socket port long link sent by a main control module of a main control mobile phone, and opening the socket port long link;
Step S5, the master control module of the master control mobile phone collects the operation data when the master control mobile phone is operated and sends the operation data to the controlled module of the controlled mobile phone;
step S6, the controlled module of the master control mobile phone receives the operation data sent by the master control module of the master control mobile phone and converts the operation data into a simulation operation command; and executing the simulation operation command on the controlled mobile phone, and ending.
on the basis of the above technical solution, after step S6 is finished, the master control module of the master control mobile phone sends a control command for closing the socket port long link to the controlled module of the controlled mobile phone, and the controlled module of the controlled mobile phone closes the socket port, thereby ending the operation of the mobile phone.
on the basis of the above technical solution, the specific process of step S2 includes:
A master control module of the master control mobile phone opens a socket port of the master control mobile phone, and a controlled module of the controlled mobile phone opens a socket port of the controlled mobile phone;
A main control module of the main control mobile phone sends an inquiry request to all ip addresses of the local area network;
a controlled module of the controlled mobile phone receives the inquiry request and returns a response to the main control module;
And the master control module of the master control mobile phone counts the returned ip address list.
on the basis of the above technical solution, the specific process of step S3 includes:
the master control module of the master control mobile phone sends a control request and the ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all the ip addresses in the ip address list;
the ID and the ip address of the controlled mobile phone returned to the main control module by the controlled module of the controlled mobile phone;
And the master control module of the master control mobile phone receives the ID and the ip address of the controlled mobile phone returned by the controlled module.
on the basis of the above technical solution, the specific process of step S6 includes: and the simulation operation command generated by the controlled module of the controlled mobile phone is a shell command, and the shell command is executed for simulating click operation.
compared with the prior art, the invention has the advantages that:
1. the invention establishes a local area network comprising a plurality of mobile phones, and each mobile phone is provided with a mobile phone remote control module; one mobile phone in the plurality of mobile phones is a master control mobile phone; the other mobile phones are controlled mobile phones; the mobile phone remote control module comprises a master control module and a controlled module, wherein the master control mobile phone only starts the master control module, and the controlled mobile phone only starts the controlled module. When the master control mobile phone receives the clicking operation of the user, the master control module collects operation data of the clicking operation of the user and sends the operation data to the controlled module of the controlled mobile phone, and the controlled module of the controlled mobile phone converts the operation data into a simulation operation command and executes the simulation operation command, so that the situation that only one mobile phone is required to be operated and all other mobile phones can simulate the same operation.
2. In order to prevent other malicious control devices, the RSA certificate needs to be verified when the master control module and the controlled module perform communication including a control request, a control command and operation data through a socket port on the mobile phone, so as to ensure the security of the mobile phone.
Drawings
fig. 1 is a schematic structural diagram of a multi-handset remote control system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a multi-cell phone remote control method according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
referring to fig. 1, an embodiment of the present invention provides a multi-cell phone remote control system, which is used for mutual control between a plurality of cell phones equipped with the multi-cell phone remote control system in a same local area network, where one of the plurality of cell phones is a master control cell phone; other mobile phones are controlled mobile phones, including:
The master control module is arranged on the master control mobile phone and used for acquiring an ip address list of all controlled mobile phones in a local area network; sending a control request and an ip address of the master control mobile phone to a controlled module of the controlled mobile phone corresponding to all ip addresses in the ip address list, and receiving an ID and the ip address of the controlled mobile phone returned by the controlled module of the controlled mobile phone; collecting operation data when the master control mobile phone is operated and sending the operation data to a controlled module of the controlled mobile phone;
The controlled module is arranged on the controlled mobile phone and used for receiving the control request sent by the main control module of the main control mobile phone and returning the ID and the ip address of the controlled mobile phone; receiving a control command sent by a main control module of a main control mobile phone and executing the control command; and converting the operation data sent by the main control module of the main control mobile phone into a simulation operation command and executing the simulation operation command on the controlled mobile phone.
Each mobile phone is provided with a master control module and a controlled module, any one mobile phone can be a master control mobile phone, and the master control mobile phone only starts the master control module; and the other mobile phones are controlled mobile phones, and the controlled mobile phones only start the controlled main module.
the control command sent by the master control module to the controlled module includes three types:
opening a control command of a socket port long link; transmitting a control command of the operation data; and closing the control command of the long link of the socket port.
The control command comprises command parameters, data and verification information:
Command parameters: the character string is a character string negotiated in the patent and has the function of enabling the main control module and the controlled module to recognize the current command or data.
data: and after the socket port long link is communicated, the collected operation data is sent to the controlled module by the control command.
and (3) verifying information: and verifying the validity of the current command. Since timely transmission is required, the validity verification is only to encrypt the RSA key by the MD5 and determine whether the encrypted data are consistent.
the command parameters in this patent are shown in the following table:
The master control module includes:
the IP address acquisition unit is used for acquiring an IP address list of the controlled mobile phone in the local area network;
the control request sending unit is used for sending a control request and the ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all the ip addresses in the ip address list, and receiving the ID and the ip address of the controlled mobile phone returned by the controlled modules of the controlled mobile phones;
The control command sending unit is used for sending a control command to the controlled subunit;
and the operation data acquisition unit is used for acquiring operation data when the master control mobile phone is operated and sending the operation data to the controlled module of the controlled mobile phone.
a controlled module comprising:
The control request receiving unit is used for receiving a control request sent by a main control module of the main control mobile phone and an ip address of the main control mobile phone and returning an ID (identity) and the ip address of the controlled mobile phone;
The control command execution unit receives a control command sent by a main control module of the main control mobile phone and executes the control command;
and the operation data processing unit is used for converting the operation data sent by the main control module of the main control mobile phone into a simulation operation command and executing the simulation operation command on the controlled mobile phone.
The main control module also comprises an RSA encryption unit which is used for encrypting the RSA certificate of the control request, the control command and the operation data sent by the RSA encryption unit; the controlled module also comprises an RSA verification unit which is used for verifying the RSA certificate in the control request, the control command and the operation data sent by the main control module. The main control module and the controlled module communicate through a socket port on the mobile phone. In order to prevent other malicious control devices, the RSA certificate needs to be verified when the master control module and the controlled module perform communication including a control request, a control command, and operation data through a socket port on the mobile phone, so as to ensure the security of the mobile phone.
All data of the main control module and the controlled module are encrypted and decrypted by an RSA algorithm. And the data sent by the main control module is encrypted by the RSA public key to form a ciphertext, and the ciphertext is sent to the controlled module. The controlled module decrypts the ciphertext into identifiable data through the secret key, and then the data encryption performance in the whole process can be guaranteed. The public key and the secret key are generated well in the development stage, and if someone tampers with the soft key, the secret key will be invalid. The principle is that a secret key and a signature file using the software are generated, according to the Android system installation package generation rule, once someone tampers with the installation package, the signature file is inconsistent, data formed by using a wrong signature cannot be analyzed into correct data, and a controlled module cannot manage the wrong data. By using the verification method, the safety of the controlled module can be ensured to the maximum extent.
the invention establishes a local area network comprising a plurality of mobile phones, and each mobile phone is provided with a mobile phone remote control module; one mobile phone in the plurality of mobile phones is a master control mobile phone; the other mobile phones are controlled mobile phones; the mobile phone remote control module comprises a master control module and a controlled module, wherein the master control mobile phone only starts the master control module, and the controlled mobile phone only starts the controlled module. When the master control mobile phone receives the clicking operation of the user, the master control module collects operation data of the clicking operation of the user and sends the operation data to the controlled module of the controlled mobile phone, and the controlled module of the controlled mobile phone converts the operation data into a simulation operation command and executes the simulation operation command, so that the situation that only one mobile phone is required to be operated and all other mobile phones can simulate the same operation.
Referring to fig. 2, the present invention also discloses a multi-phone remote control method using a multi-phone remote control system:
step S1, establishing a local area network with a plurality of mobile phones equipped with a multi-mobile phone remote control system; one mobile phone in the plurality of mobile phones is a master control mobile phone; the other mobile phones are controlled mobile phones; the master control mobile phone is provided with a master control module, and the controlled mobile phone is provided with a controlled module;
Step S2, the main control module of the main control mobile phone obtains the mobile phone ID and ip address of all the controlled mobile phones in the local area network;
step S3, the master control module of the master control mobile phone sends a control request and the ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all the ip addresses in the ip address list, and receives the ID and the ip address of the controlled mobile phone returned by the controlled modules of the controlled mobile phones;
Step S4, the master control module of the master control mobile phone sends a control command for opening the socket port long link to the controlled module of the controlled mobile phone; receiving a control command for opening a socket port long link sent by a main control module of a main control mobile phone, and opening the socket port long link;
Step S5, the master control module of the master control mobile phone collects the operation data when the master control mobile phone is operated, and sends the operation data to the controlled module of the controlled mobile phone;
Step S6, the controlled module of the controlled mobile phone receives the operation data sent by the main control module of the main control mobile phone and converts the operation data into a simulation operation command; and executing the simulation operation command on the controlled mobile phone.
Step S7, after step S6 is finished, the master control module of the master control mobile phone sends a control command for closing the long link of the socket port to the controlled module of the controlled mobile phone, and the controlled module of the controlled mobile phone closes the socket port, thereby ending the operation of the mobile phone.
After the master control module requests the master control module to open the long link of the socket port, the master control module opens the long link of the socket port before the use, and after the successful opening is returned, the master control module waits for the sending of the operation data. If the opening fails, the main control module returns to fail to open the long link.
After the socket port of one device in the list is received by the main control module and the long-chain connection is opened, the main control module waits. All device socket port long links in the wait list have been started. But if all the devices in the list have finished requesting, and if some devices return to the socket port and the long-link connection fails to be opened, the user can select whether to continue. And if the user selects not to continue, terminating all the requests, and sending a command for closing the long link to all the devices which open the long link of the socket port. If the user chooses to continue, the operational data collection phase is initiated.
the specific process of step S2 includes:
a master control module of the master control mobile phone opens a socket port of the master control mobile phone, and a controlled module of the controlled mobile phone opens a socket port of the controlled mobile phone;
A main control module of the main control mobile phone sends an inquiry request to all ip addresses of the local area network;
A controlled module of the controlled mobile phone receives the inquiry request and returns a response to a main control module of the main control mobile phone;
and the master control module of the master control mobile phone counts the returned ip address list.
for example: the domain of the ip address where the master mobile phone is located is 192.168.1.1, and then the request can be sent to all the ip addresses in the local area network only by changing the last bit. Namely 192.168.1.1 to 192.168.1.254. When the request is sent, only the port number of the master control mobile phone needs to be sent to the ip address needing to be scanned through the socket port. The port number is used for the verification of the controlled mobile phone, and the controlled mobile phone can return a response to the master control mobile phone only if the port numbers of the master control mobile phone and the controlled mobile phone are consistent, namely the port numbers of the master control mobile phone and the controlled mobile phone which can be controlled by the master control mobile phone are consistent. If the batch of mobile phones need to be tested in the same local area network, the number of the port of each batch of mobile phones can be preset to avoid mutual interference.
The specific process of step S3 includes:
the master control module of the master control mobile phone sends a control request and the ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all the ip addresses in the ip address list;
The ID and the ip address of the controlled mobile phone are returned to the master control module of the master control mobile phone by the controlled module of the controlled mobile phone;
And the master control module of the master control mobile phone receives the ID and the ip address of the controlled mobile phone returned by the controlled module of the controlled mobile phone.
The specific process of step S5 includes:
The method comprises the following steps that a master control module of a master control mobile phone monitors that the master control mobile phone is clicked by a user; a main control module of a main control mobile phone acquires operation data of a functional key clicked by a user or a relative position of a clicked coordinate; and the master control module of the master control mobile phone sends the operation data to the controlled module of the controlled mobile phone.
The operation data is coordinate information of the relative position of the coordinate clicked by the user. The method comprises the steps of obtaining width and height pixels of the mobile phone, obtaining pixel coordinates of a click position of a user when the user clicks one position, and obtaining the relative proportion of the click position of the user in the whole user screen through calculation. In order to achieve an accurate value, the value is defined as floating point type data, the data is the width of a user clicking position divided by the width of a mobile phone screen, and the height of the user clicking position divided by the height of the mobile phone screen. The obtained data can be in the same position on mobile phones with different screen sizes, and misoperation can be avoided.
When the user clicks, the user behavior situation code defined in the invention is brought in the transmission data, and the code defines the function of the coordinate. The code is represented using 16-ary code.
the user behavior code table is as follows:
User behavior code description of the invention
user clicks on the screen 0x010
User clicks return key 0x020
user clicks menu key 0x030
when the user clicks the screen, data are collected, and at the moment, the data only contain coordinate information of the relative position of the coordinate clicked by the user.
When the user clicks the return key or menu key, whether the user clicks can be monitored, and only the operation data of the user clicking the return key or menu key is needed to be acquired.
The specific process of step S6 includes: and the simulation operation command generated by the controlled module of the controlled mobile phone is a shell command, and the shell command is executed for simulating click operation.
before a controlled module of the controlled mobile phone executes a shell command, the software needs to obtain the root permission of the controlled mobile phone. And executing a su command in the shell command to acquire the root permission of the controlled mobile phone. The purpose of simulating a click operation is achieved by executing the shell command of exec ("inputkeyent" + keyCode + "\ n").
if the key that needs to be clicked is the return key, the key code needs to be executed as 4, the number of the menu key is 69, and the values are specified by the Android system.
if the screen is simulated to be clicked, after the operation data sent by the control submodule is obtained, the numerical value of the relative position of the coordinates is taken out, the width and the height of the current mobile phone screen are obtained at the same time, and the two sets of data are used for obtaining the x and y data of the current real position needing to be clicked. x is the width of the current mobile phone screen multiplied by the wide floating point number of the relative position, y is the height of the current mobile phone screen honestly, and the following codes are executed to execute the simulated click screen:
inst.sendPointerSync(MotionEvent.obtain(SystemClock.uptimeMilli s();
Systemclock. uptimemis (), motionevent. action _ DOWN, x, y, 0)); v/send press;
sleep (500); v/press and lift intermediate dwell 500 milliseconds;
inst.sendPointerSync(MotionEvent.obtain(SystemClock.uptimeMilli s();
Systemclock. uptimemis (), motionevent. action _ UP, x, y, 0)); v/press-and-raise;
And according to the code, the controlled mobile phone simulates the same area to be clicked to trigger the click event of the mobile phone. The code comprises 3 steps:
requiring the pressing of the click area: since the click screen in the android system is pressed down and the operation of lifting up can be calculated as a click event, the pressing operation needs to be executed first and the xy value is transmitted.
wait 500 milliseconds: because the press-down and the lift-up need to be distinguished, 500 milliseconds are needed in the middle to make the current click of the system task be the click of the user.
The area needing clicking is pressed down and then lifted up: after stopping for 500 milliseconds, the lifting operation is executed again, and after the whole process is finished, the android system can be considered as a user click event.
After the operations are executed, the controlled mobile phone starts to operate the clicked function.
The whole operation needs to be kept through the long link of the continuous socket port between the control mobile phone and the controlled mobile phone. Therefore, the local area network cannot be shut down during the entire operation.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (10)

1. A multi-mobile phone remote control system is used for mutual control among a plurality of mobile phones provided with the multi-mobile phone remote control system in the same local area network, wherein one mobile phone in the plurality of mobile phones is a master control mobile phone; other cell-phones are controlled cell-phones, its characterized in that includes:
The master control module is arranged on the master control mobile phone and used for acquiring an ip address list of all controlled mobile phones in a local area network; sending a control request and an ip address of the master control mobile phone to a controlled module of the controlled mobile phone corresponding to all ip addresses in the ip address list, and receiving an ID and the ip address of the controlled mobile phone returned by the controlled module of the controlled mobile phone; collecting operation data when the master control mobile phone is operated and sending the operation data to a controlled module of the controlled mobile phone; the operation data is coordinate information of a coordinate relative position clicked by a user; when a user clicks, a user behavior condition code is carried in the transmitted operation data, and the user behavior condition code is used for defining the action of the coordinate;
the controlled module is arranged on the controlled mobile phone and used for receiving the control request sent by the main control module of the main control mobile phone and returning the ID and the ip address of the controlled mobile phone; receiving a control command sent by a main control module of a main control mobile phone and executing the control command; converting the operation data sent by the main control module of the main control mobile phone into a simulation operation command and executing the simulation operation command on the controlled mobile phone.
2. a multi-handset remote control system according to claim 1, wherein: the master control module comprises:
the IP address acquisition unit is used for acquiring an IP address list of the controlled mobile phone in the local area network;
The control request sending unit is used for sending a control request and the ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all the ip addresses in the ip address list, and receiving the ID and the ip address of the controlled mobile phone returned by the controlled modules of the controlled mobile phones;
the control command sending unit is used for sending a control command to the controlled subunit;
and the operation data acquisition unit is used for acquiring operation data when the master control mobile phone is operated and sending the operation data to a controlled module of the controlled mobile phone.
3. a multi-handset remote control system according to claim 1, wherein: the controlled module comprises:
The control request receiving unit is used for receiving a control request sent by a main control module of the main control mobile phone and an ip address of the main control mobile phone and returning an ID (identity) and the ip address of the controlled mobile phone;
the control command execution unit receives a control command sent by a main control module of the main control mobile phone and executes the control command;
and the operation data processing unit is used for converting the operation data sent by the main control module of the main control mobile phone into a simulation operation command and executing the simulation operation command on the controlled mobile phone.
4. a multi-handset remote control system according to claim 1, wherein:
the main control module also comprises an RSA encryption unit which is used for encrypting an RSA certificate for the control request, the control command and the operation data sent by the main control module; the controlled module also comprises an RSA verification unit which is used for verifying the RSA certificate in the control request, the control command and the operation data sent by the main control module.
5. a multi-handset remote control system according to claim 1, wherein:
each mobile phone is provided with a master control module and a controlled module, any one mobile phone can be a master control mobile phone, and the master control mobile phone only starts the master control module; and the other mobile phones are controlled mobile phones, and the controlled mobile phones only start the controlled main module.
6. A multi-handset remote control method using the multi-handset remote control system according to any one of claims 1 to 5, characterized in that:
Step S1, establishing a local area network with a plurality of mobile phones equipped with a multi-mobile phone remote control system; one mobile phone in the plurality of mobile phones is a master control mobile phone; the other mobile phones are controlled mobile phones; the master control mobile phone is provided with a master control module, and the controlled mobile phone is provided with a controlled module;
Step S2, the main control module of the main control mobile phone obtains the mobile phone ID and the ip address of all the controlled mobile phones in the local area network;
step S3, the master control module of the master control mobile phone sends a control request and an ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all ip addresses in the ip address list, and receives the ID and the ip address of the controlled mobile phone returned by the controlled modules of the controlled mobile phones;
Step S4, the master control module of the master control mobile phone sends a control command for opening the socket port long link to the controlled module of the controlled mobile phone; receiving a control command for opening a socket port long link sent by a main control module of a main control mobile phone, and opening the socket port long link;
step S5, the master control module of the master control mobile phone collects the operation data when the master control mobile phone is operated and sends the operation data to the controlled module of the controlled mobile phone;
step S6, the controlled module of the master control mobile phone receives the operation data sent by the master control module of the master control mobile phone and converts the operation data into a simulation operation command; and executing the simulation operation command on the controlled mobile phone, and ending.
7. a multi-handset remote control method according to claim 6, wherein: after step S6 is finished, the master control module of the master control mobile phone sends a control command for closing the socket port long link to the controlled module of the controlled mobile phone, and the controlled module of the controlled mobile phone closes the socket port, thereby finishing the mobile phone control.
8. A multi-handset remote control method according to claim 6, wherein:
the specific process of step S2 includes:
a master control module of the master control mobile phone opens a socket port of the master control mobile phone, and a controlled module of the controlled mobile phone opens a socket port of the controlled mobile phone;
a main control module of the main control mobile phone sends an inquiry request to all ip addresses of the local area network;
A controlled module of the controlled mobile phone receives the inquiry request and returns a response to the main control module;
and the master control module of the master control mobile phone counts the returned ip address list.
9. a multi-handset remote control method according to claim 6, wherein:
the specific process of step S3 includes:
The master control module of the master control mobile phone sends a control request and the ip address of the master control mobile phone to the controlled modules of the controlled mobile phones corresponding to all the ip addresses in the ip address list;
the ID and the ip address of the controlled mobile phone returned to the main control module by the controlled module of the controlled mobile phone;
And the master control module of the master control mobile phone receives the ID and the ip address of the controlled mobile phone returned by the controlled module.
10. a multi-handset remote control method according to claim 6, wherein:
The specific process of step S6 includes: and the simulation operation command generated by the controlled module of the controlled mobile phone is a shell command, and the shell command is executed for simulating click operation.
CN201610883712.1A 2016-10-10 2016-10-10 multi-mobile-phone remote control system and method Active CN106506764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610883712.1A CN106506764B (en) 2016-10-10 2016-10-10 multi-mobile-phone remote control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610883712.1A CN106506764B (en) 2016-10-10 2016-10-10 multi-mobile-phone remote control system and method

Publications (2)

Publication Number Publication Date
CN106506764A CN106506764A (en) 2017-03-15
CN106506764B true CN106506764B (en) 2019-12-10

Family

ID=58293511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610883712.1A Active CN106506764B (en) 2016-10-10 2016-10-10 multi-mobile-phone remote control system and method

Country Status (1)

Country Link
CN (1) CN106506764B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107508854A (en) * 2017-07-12 2017-12-22 武汉卡比特信息有限公司 Method and system that are a kind of while controlling multiple mobile phone screens
CN112260882B (en) * 2019-07-02 2022-06-24 北京融核科技有限公司 Mobile application and network service integrated test device capable of being deployed rapidly and method thereof
CN110381063A (en) * 2019-07-22 2019-10-25 秒针信息技术有限公司 A kind of method and device of determining cheating flow
CN114064447B (en) * 2020-08-05 2024-05-31 腾讯科技(深圳)有限公司 Interface testing method and device, storage medium and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222740A (en) * 2008-01-25 2008-07-16 深圳华为通信技术有限公司 Method, device and system for controlling and configuring equipment with multi-version under testing
CN104468915A (en) * 2013-09-24 2015-03-25 卓望数码技术(深圳)有限公司 Device for testing mobile terminal and system for testing mobile terminals
CN105338545A (en) * 2015-12-10 2016-02-17 广东欧珀移动通信有限公司 Method and device for simultaneously testing multiple mobile terminals through one mobile terminal
CN105915628A (en) * 2016-05-31 2016-08-31 珠海金山网络游戏科技有限公司 Mobile phone system remote-controlled debugging method, mobile phone system remote-controlled debugging system and mobile phone system remote-controlled debugging device
CN105959174A (en) * 2016-04-13 2016-09-21 青岛海信传媒网络技术有限公司 Testing method and testing device for intelligent equipment platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079368B (en) * 2013-03-26 2019-03-01 腾讯科技(深圳)有限公司 A kind of the test data transmission method and server of application software
CN104281518B (en) * 2013-07-02 2018-05-15 腾讯科技(深圳)有限公司 Terminal applies test method, device, system, platform and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222740A (en) * 2008-01-25 2008-07-16 深圳华为通信技术有限公司 Method, device and system for controlling and configuring equipment with multi-version under testing
CN104468915A (en) * 2013-09-24 2015-03-25 卓望数码技术(深圳)有限公司 Device for testing mobile terminal and system for testing mobile terminals
CN105338545A (en) * 2015-12-10 2016-02-17 广东欧珀移动通信有限公司 Method and device for simultaneously testing multiple mobile terminals through one mobile terminal
CN105959174A (en) * 2016-04-13 2016-09-21 青岛海信传媒网络技术有限公司 Testing method and testing device for intelligent equipment platform
CN105915628A (en) * 2016-05-31 2016-08-31 珠海金山网络游戏科技有限公司 Mobile phone system remote-controlled debugging method, mobile phone system remote-controlled debugging system and mobile phone system remote-controlled debugging device

Also Published As

Publication number Publication date
CN106506764A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106506764B (en) multi-mobile-phone remote control system and method
CN110601853B (en) Block chain private key generation method and equipment
CN103905451B (en) System and method for trapping network attack of embedded device of smart power grid
US8004491B2 (en) System for and methods of storing and comparing computer generated continuous vector lines through a non-secure or a secure communication channel
CN101873331B (en) Safety authentication method and system
CN112291230A (en) Data security authentication transmission method and device for terminal of Internet of things
CN104363236A (en) Automatic vulnerability validation method
CN104735065A (en) Data processing method, electronic device and server
CN111209558B (en) Internet of things equipment identity authentication method and system based on block chain
CN107872447A (en) Electronic device, server, communication system and communication method
CN110430280B (en) Account automatic login method and system, storage medium and cloud desktop server
CN107979467A (en) Verification method and device
CN105100123A (en) Application registration method and system
CN106209811A (en) Bluetooth equipment secure log auth method and device
CN110505116A (en) Power information acquisition system and penetration test method, device, readable storage medium storing program for executing
CN106878336A (en) A kind of data interactive method and device
CN104994115B (en) A kind of login authentication method and system
CN107124715B (en) Safety protection performance evaluation method suitable for electric power wireless private network terminal
CN104219208A (en) Method and device for data input
CN105704133A (en) Method, terminal and server for data synchronism
CN104837159A (en) OAuth protocol misuse security detection method on Android platform
CN109495500A (en) A kind of double factor authentication method based on smart phone
CN106130864A (en) A kind of privately owned cloud access method and apparatus based on VPN
CN106569907A (en) System start-up file verifying and compiling method
CN105577657A (en) SSL/TLS algorithm suite expansion method

Legal Events

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