Mobile terminal management and control method, device, storage medium and equipment

By obtaining the device serial number and the ownership of the mobile terminal, the UI automation service is used to realize the management and control of mobile terminals of different device types, which solves the problem of increased testing costs caused by the limitations of device types in the existing technology, and realizes the test without increasing the cost. Multi-device type management and control.

CN115714733BActive Publication Date: 2024-09-20HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211391219.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-08
Publication Date
2024-09-20
Estimated Expiration
2042-11-08

AI Technical Summary

Technical Problem

Existing mobile management platforms can only manage and control specific device types, resulting in increased testing costs and making it difficult to control mobile devices of different device types without increasing costs.

Method used

By obtaining the ownership relationship between the device serial number and the mobile terminal, the UI automation service is used to send query commands through the preset interface, determine the target mobile terminal, obtain its usage status and IP address, generate a remote connection IP, and control the mobile terminal to achieve Control of different equipment types.

Benefits of technology

There is no need for a professional mobile terminal management platform to achieve mobile terminal management and control of different device types, reducing costs and improving testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115714733B
    Figure CN115714733B
Patent Text Reader

Abstract

The present application discloses a mobile terminal management and control method, device, storage medium and equipment, the method is: obtaining the ownership relationship between the device serial number and the mobile terminal; determining the target mobile terminal based on the query command sent by the UI automation service through the preset interface and the ownership relationship; accessing the target mobile terminal to obtain the use status of the target mobile terminal; when the use status is idle, obtaining the IP address of the target mobile terminal; controlling the target mobile terminal to open its own port to obtain the port number of the target mobile terminal; generating the remote connection IP of the target mobile terminal based on the IP address and port number; sending the remote connection IP to the UI automation service; updating the use status of the target mobile terminal to in use. Compared with the prior art, this method does not need to adopt a professional mobile terminal management platform, and is not limited to a specific device type, so that it can achieve the management and control of mobile terminals of different device types without increasing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile terminal software testing, and in particular to a mobile terminal management and control method, device, storage medium and equipment. Background Art

[0002] With the rapid development of mobile Internet, most enterprises have developed their own mobile clients. In order to ensure that the mobile clients can be put into use normally, it is usually necessary to perform UI automation testing on the mobile clients. The UI automation testing process needs to cover scenarios of mobile terminals of different device types. In order to save a lot of testing manpower and material resources, it is necessary to control each mobile terminal, so as to achieve the purpose of controlling the mobile terminal to complete the test according to the test requirements.

[0003] At present, most of them use public mobile terminal management platforms (such as openstf) to control various mobile terminals. Due to the limitations of the platform itself, it can only control the device types specified by the platform. If a mobile terminal of a special device type is required during the test, it is necessary to specifically request platform development, which increases the testing cost.

[0004] Therefore, how to achieve the control of mobile terminals of different device types without increasing costs has become an urgent problem to be solved in this field. Summary of the invention

[0005] The present application provides a mobile terminal management method, apparatus, storage medium and device for implementing management and control of mobile terminals of different device types without increasing costs.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] A mobile terminal management and control method, applied to a server, comprising:

[0008] Get the relationship between the device serial number and the mobile terminal;

[0009] Determine the target mobile terminal based on the query command sent by the UI automation service through the preset interface and the belonging relationship;

[0010] Accessing the target mobile terminal to obtain the usage status of the target mobile terminal;

[0011] When the usage state is an idle state, obtaining an IP address of the target mobile terminal;

[0012] Controlling the target mobile terminal to open its own port so that the server obtains the port number of the target mobile terminal;

[0013] Based on the IP address and the port number, generate a remote connection IP of the target mobile terminal;

[0014] Sending the remote connection IP to the UI automation service, so that the UI automation service accesses and controls the target mobile terminal based on the remote connection IP;

[0015] The use status of the target mobile terminal is updated to in use, and the use status, device serial number and remote connection IP of the target mobile terminal are saved in a preset data table.

[0016] Optionally, obtaining the relationship between the device serial number and the mobile terminal includes:

[0017] Calling a preset remote connection tool to establish a communication connection between the server and multiple mobile terminals;

[0018] After determining that a communication connection is successfully established between the server and each of the mobile terminals, sending a first instruction to each of the mobile terminals to obtain a device serial number of each of the mobile terminals;

[0019] Based on the device serial numbers of the mobile terminals, the relationship between the device serial numbers and the mobile terminals is obtained.

[0020] Optionally, determining the target mobile terminal based on the query command sent by the UI automation service through a preset interface and the belonging relationship includes:

[0021] After receiving the query command sent by the UI automation service through the preset interface, determining whether the query command includes the device serial number;

[0022] In the case that the query command includes a device serial number, the mobile terminal to which the device serial number indicated in the query command belongs is identified as the target mobile terminal.

[0023] Optionally, also include:

[0024] When the query command does not include a device serial number, all mobile terminals connected to the server are identified as the target mobile terminals.

[0025] Optionally, after accessing the target mobile terminal and obtaining the usage status of the target mobile terminal, the method further includes:

[0026] When the usage status is in use, generating a device occupied prompt based on the device serial number of the target mobile terminal;

[0027] Sending a prompt indicating that the device is occupied to the UI automation service.

[0028] Optionally, also include:

[0029] Determine the mobile terminal to be released based on the release command sent by the UI automation service through the preset interface and the belonging relationship;

[0030] Control the mobile terminal to be released to close its own port, so that the UI automation service cannot access the mobile terminal to be released;

[0031] Updating the usage status of the to-be-released mobile terminal in a preset database so that the usage status of the to-be-released mobile terminal is changed to an idle state;

[0032] A release success prompt is sent to the UI automation service.

[0033] Optionally, the determining the mobile terminal to be released based on the release command sent by the UI automation service through the preset interface and the belonging relationship includes:

[0034] After receiving the release command sent by the UI automation service through the preset interface, determining whether the release command includes a device serial number;

[0035] In the case that the release command includes a device serial number, the mobile terminal to which the device serial number indicated in the release command belongs is identified as the mobile terminal to be released.

[0036] A mobile terminal control device, comprising:

[0037] A relationship acquisition unit, used to acquire the relationship between the device serial number and the mobile terminal;

[0038] A determination unit, configured to determine a target mobile terminal based on a query command sent by the UI automation service through a preset interface and the belonging relationship;

[0039] A status acquisition unit, used to access the target mobile terminal and acquire the usage status of the target mobile terminal;

[0040] An address acquisition unit, configured to acquire the IP address of the target mobile terminal when the usage state is an idle state;

[0041] A port number acquisition unit, used to control the target mobile terminal to open its own port and obtain the port number of the target mobile terminal;

[0042] An IP generation unit, configured to generate a remote connection IP of the target mobile terminal based on the IP address and the port number;

[0043] An IP sending unit is used to send the remote connection IP to the UI automation service, so that the UI automation service accesses and controls the target mobile terminal based on the remote connection IP;

[0044] The status updating unit is used to update the usage status of the target mobile terminal to in use, and save the usage status, device serial number and remote connection IP of the target mobile terminal into a preset data table.

[0045] A computer-readable storage medium includes a stored program, wherein the program executes the mobile terminal management and control method when executed by a processor.

[0046] A mobile terminal management and control device comprises: a processor, a memory and a bus; the processor and the memory are connected via the bus;

[0047] The memory is used to store programs, and the processor is used to run programs, wherein the program executes the mobile terminal management and control method when the processor runs it.

[0048] The technical solution provided by the present application obtains the ownership relationship between the device serial number and the mobile terminal. Based on the query command sent by the UI automation service through the preset interface and the ownership relationship, the target mobile terminal is determined. The target mobile terminal is accessed to obtain the usage status of the target mobile terminal. When the usage status is idle, the IP address of the target mobile terminal is obtained. The target mobile terminal is controlled to open its own port so that the server obtains the port number of the target mobile terminal. Based on the IP address and port number, the remote connection IP of the target mobile terminal is generated. The remote connection IP is sent to the UI automation service so that the UI automation service can access and control the target mobile terminal based on the remote connection IP. The usage status of the target mobile terminal is updated to in use, and the usage status, device serial number and remote connection IP of the target mobile terminal are saved in the preset data table. Compared with the prior art, the present application assists the UI automation service through a preset interface to realize the management and control of each mobile terminal, without the need to adopt a professional mobile terminal management platform, and is not limited to a specific device type, so that the management and control of mobile terminals of different device types can be realized without increasing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1a A flowchart of a mobile terminal management and control method provided in an embodiment of the present application;

[0051] Figure 1bA flowchart of a mobile terminal management and control method provided in an embodiment of the present application;

[0052] Figure 2 A flowchart of another mobile terminal management and control method provided in an embodiment of the present application;

[0053] Figure 3 A schematic diagram of the architecture of a mobile terminal control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] like Figure 1a and Figure 1b As shown, it is a flow chart of a mobile terminal management and control method provided in an embodiment of the present application, which is applied in a server and includes the following steps.

[0056] S101: Pre-calling a preset remote connection tool to establish a communication connection between a server and multiple mobile terminals.

[0057] The preset remote connection tool includes but is not limited to Android Debug Bridge (ADB). In the embodiment of the present application, the device type of each mobile terminal can be set by a technician according to actual conditions.

[0058] The so-called ADB is a tool in the Android SDK. This tool can be used to directly operate Android devices (that is, a specific form of mobile terminals). The main functions of ADB are: running the command line of the mobile terminal, managing the port mapping of the mobile terminal, and realizing file transfer between the server and the mobile terminal.

[0059] In addition, the mobile terminal shown in this embodiment is connected to the server via a USB connection.

[0060] S102: After determining that a communication connection is successfully established between the server and each mobile terminal, a device serial number of each mobile terminal is obtained, and based on the device serial number of each mobile terminal, an ownership relationship between the device serial number and the mobile terminal is obtained.

[0061] The device serial number of each mobile terminal can be obtained by sending a first instruction to each mobile terminal. The first instruction can be specifically expressed in the form of adb devices, where adb represents a command line and devices represents a device serial number.

[0062] S103: After receiving the query command sent by the UI automation service through the preset interface, determine whether the query command contains the device serial number.

[0063] If the query command includes the device serial number, execute S104, otherwise execute S105.

[0064] Among them, the preset interface can be constructed using the web.py framework.

[0065] S104: Identify the mobile terminal to which the device serial number indicated in the query command belongs as the target mobile terminal.

[0066] After executing S104 , continue to execute S106 .

[0067] S105: All mobile terminals connected to the server are identified as target mobile terminals.

[0068] After executing S105 , continue to execute S106 .

[0069] S106: Access the target mobile terminal and obtain the usage status of the target mobile terminal.

[0070] S107: Determine whether the usage status is an idle status.

[0071] If the usage state is the idle state, execute S108, otherwise execute S113.

[0072] S108: Obtain the IP address of the target mobile terminal.

[0073] The IP address of the target mobile terminal can be obtained by sending a second instruction to the target mobile terminal. The second instruction can be specifically expressed in the form of adb -s devices shell ipaddr show wlan0, where devices represents the device serial number of the target mobile terminal.

[0074] S109: Control the target mobile terminal to open its own port, so that the server obtains the port number of the target mobile terminal.

[0075] The target mobile terminal may be controlled to open its own port by sending a third instruction to the target mobile terminal. The third instruction may be expressed in the form of adb -s devices tcpip 5577, where 5577 represents the port number of the mobile terminal.

[0076] S110: Generate a remote connection IP of the target mobile terminal based on the IP address and port number of the target mobile terminal.

[0077] The specific form of the remote connection IP is "IP address: debugging port". Specifically, assuming that the IP address is 192.168.1.123 and the port number is 5577, the remote connection IP of the target mobile terminal is 192.168.1.123:5577.

[0078] S111: Send the remote connection IP of the target mobile terminal to the UI automation service, so that the UI automation service accesses and controls the target mobile terminal based on the remote connection IP.

[0079] Among them, the remote connection IP of the target mobile terminal is sent to the UI automation service, so that the UI automation service can access and control the target mobile terminal based on the remote connection IP, which can help the UI automation service to achieve effective control of the mobile terminal.

[0080] S112: Update the usage status of the target mobile terminal to in use, and save the usage status, device serial number, and remote connection IP of the target mobile terminal into a preset data table.

[0081] The storage format of the preset data table can be seen in Table 1.

[0082] Table 1

[0083]

[0084] In the above Table 1, id represents the index of the target mobile terminal, sn represents the device serial number, devicesid represents the remote connection IP, and status represents the usage status (0 represents idle state and 1 represents in use).

[0085] It should be noted that the usage status, device serial number and remote connection IP of the target mobile terminal are saved in the preset data table, which can be convenient for users to query at any time.

[0086] S113: Generate a device occupied prompt based on the device serial number of the target mobile terminal.

[0087] S114: Sending a device occupied prompt to the UI automation service.

[0088] S115: After receiving the release command sent by the UI automation service through the preset interface, determine whether the release command includes the device serial number.

[0089] If the query command includes the device serial number, execute S116, otherwise execute S117.

[0090] S116: Mark the mobile terminal to which the device serial number indicated in the release command belongs as the mobile terminal to be released.

[0091] After executing S116 , continue to execute S118 .

[0092] S117: All mobile terminals connected to the server are marked as mobile terminals to be released.

[0093] After executing S117, continue to execute S118.

[0094] S118: Control the mobile terminal to be released to close its own port, so that the UI automation service cannot access the mobile terminal to be released.

[0095] S119: updating the usage status of the mobile terminal to be released in the preset database, so that the usage status of the mobile terminal to be released is changed to an idle state.

[0096] S120: Send a release success prompt to the UI automation service.

[0097] To sum up, compared with the prior art, this embodiment realizes the management and control of each mobile terminal through a preset interface assisted by UI automation service, without the need to adopt a professional mobile terminal management platform, and is not limited to specific device types, thereby being able to achieve management and control of mobile terminals of different device types without increasing costs.

[0098] It should be noted that S101 mentioned in the above embodiment is a specific manifestation of the mobile terminal control method shown in the embodiment of the present application. In addition, S120 mentioned in the above embodiment is also a specific manifestation of the mobile terminal control method shown in the embodiment of the present application. To this end, the process mentioned in the above embodiment can be summarized as follows: Figure 2 The method shown.

[0099] like Figure 2 As shown, it is a flow chart of another mobile terminal management and control method provided in an embodiment of the present application, including the following steps.

[0100] S201: Obtain the relationship between the device serial number and the mobile terminal.

[0101] S202: Determine the target mobile terminal based on the query command sent by the UI automation service through the preset interface and the belonging relationship.

[0102] S203: Access the target mobile terminal and obtain the usage status of the target mobile terminal.

[0103] S204: When the usage state is an idle state, obtain the IP address of the target mobile terminal.

[0104] S205: Control the target mobile terminal to open its own port, so that the server obtains the port number of the target mobile terminal.

[0105] S206: Generate a remote connection IP of the target mobile terminal based on the IP address and port number.

[0106] S207: Send the remote connection IP to the UI automation service, so that the UI automation service accesses and controls the target mobile terminal based on the remote connection IP.

[0107] S208: Update the usage status of the target mobile terminal to in use, and save the usage status, device serial number, and remote connection IP of the target mobile terminal into a preset data table.

[0108] To sum up, compared with the prior art, this embodiment realizes the management and control of each mobile terminal through a preset interface assisted by UI automation service, without the need to adopt a professional mobile terminal management platform, and is not limited to specific device types, thereby being able to achieve management and control of mobile terminals of different device types without increasing costs.

[0109] Corresponding to the mobile terminal control method provided in the above-mentioned embodiment of the present application, the embodiment of the present application also provides a mobile terminal control device.

[0110] like Figure 3 As shown, it is a schematic diagram of the architecture of a mobile terminal management and control device provided in an embodiment of the present application, including the units shown below.

[0111] The relationship acquisition unit 100 is used to acquire the relationship between the device serial number and the mobile terminal.

[0112] Optionally, the relationship acquisition unit 100 is specifically used to: call a preset remote connection tool to establish a communication connection between the mobile terminal control device and multiple mobile terminals; after determining that a communication connection is successfully established between the mobile terminal control device and each mobile terminal, send a first instruction to each mobile terminal to obtain the device serial number of each mobile terminal; based on the device serial number of each mobile terminal, obtain the relationship between the device serial number and the mobile terminal.

[0113] The determination unit 200 is used to determine the target mobile terminal based on the query command sent by the UI automation service through the preset interface and the belonging relationship.

[0114] Optionally, the determination unit 200 is specifically used to: after receiving a query command sent by the UI automation service through a preset interface, determine whether the query command contains a device serial number; if the query command contains the device serial number, identify the mobile terminal to which the device serial number shown in the query command belongs as the target mobile terminal.

[0115] The determination unit 200 is further used to: when the query command does not include a device serial number, identify all mobile terminals connected to the mobile terminal management and control device as target mobile terminals.

[0116] The status acquisition unit 300 is used to access the target mobile terminal and acquire the usage status of the target mobile terminal.

[0117] The prompt unit 400 is further used to: generate a device occupied prompt based on the device serial number of the target mobile terminal when the usage status is in use; and send the device occupied prompt to the UI automation service.

[0118] The address acquisition unit 500 is used to acquire the IP address of the target mobile terminal when the usage state is the idle state.

[0119] The port number acquisition unit 600 is used to control the target mobile terminal to open its own port and obtain the port number of the target mobile terminal.

[0120] The IP generation unit 700 is used to generate a remote connection IP of the target mobile terminal based on the IP address and port number.

[0121] The IP sending unit 800 is used to send the remote connection IP to the UI automation service, so that the UI automation service accesses and controls the target mobile terminal based on the remote connection IP.

[0122] The status updating unit 900 is used to update the usage status of the target mobile terminal to in use, and save the usage status, device serial number and remote connection IP of the target mobile terminal into a preset data table.

[0123] The release unit 1000 is used to: determine the mobile terminal to be released based on the release command sent by the UI automation service through the preset interface and the belonging relationship; control the mobile terminal to be released to close its own port so that the UI automation service cannot access the mobile terminal to be released; update the usage status of the mobile terminal to be released in the preset database so that the usage status of the mobile terminal to be released is changed to an idle state; and send a release success prompt to the UI automation service.

[0124] Optionally, the release unit 1000 is specifically used to: after receiving a release command sent by the UI automation service through a preset interface, determine whether the release command contains a device serial number; if the release command contains the device serial number, identify the mobile terminal to which the device serial number shown in the release command belongs as the mobile terminal to be released.

[0125] To sum up, compared with the prior art, this embodiment realizes the management and control of each mobile terminal through a preset interface assisted by UI automation service, without the need to adopt a professional mobile terminal management platform, and is not limited to specific device types, thereby being able to achieve management and control of mobile terminals of different device types without increasing costs.

[0126] The present application also provides a computer-readable storage medium, which includes a stored program, wherein the program executes the mobile terminal management and control method provided by the present application.

[0127] The present application also provides a mobile terminal management and control device, including: a processor, a memory and a bus. The processor and the memory are connected via a bus, the memory is used to store programs, and the processor is used to run programs, wherein when the program is running, the mobile terminal management and control method provided by the present application is executed, including the following steps:

[0128] Get the relationship between the device serial number and the mobile terminal;

[0129] Determine the target mobile terminal based on the query command sent by the UI automation service through the preset interface and the belonging relationship;

[0130] Accessing the target mobile terminal to obtain the usage status of the target mobile terminal;

[0131] When the usage state is an idle state, obtaining an IP address of the target mobile terminal;

[0132] Controlling the target mobile terminal to open its own port so that the server obtains the port number of the target mobile terminal;

[0133] Based on the IP address and the port number, generate a remote connection IP of the target mobile terminal;

[0134] Sending the remote connection IP to the UI automation service, so that the UI automation service accesses and controls the target mobile terminal based on the remote connection IP;

[0135] The use status of the target mobile terminal is updated to in use, and the use status, device serial number and remote connection IP of the target mobile terminal are saved in a preset data table.

[0136] Specifically, based on the above embodiment, the obtaining of the relationship between the device serial number and the mobile terminal includes:

[0137] Calling a preset remote connection tool to establish a communication connection between the server and multiple mobile terminals;

[0138] After determining that a communication connection is successfully established between the server and each of the mobile terminals, sending a first instruction to each of the mobile terminals to obtain a device serial number of each of the mobile terminals;

[0139] Based on the device serial numbers of the mobile terminals, the relationship between the device serial numbers and the mobile terminals is obtained.

[0140] Specifically, based on the above embodiment, the query command sent by the UI automation service through the preset interface and the belonging relationship are used to determine the target mobile terminal, including:

[0141] After receiving the query command sent by the UI automation service through the preset interface, determining whether the query command includes the device serial number;

[0142] In the case that the query command includes a device serial number, the mobile terminal to which the device serial number indicated in the query command belongs is identified as the target mobile terminal.

[0143] Specifically, based on the above embodiment, it also includes:

[0144] When the query command does not include a device serial number, all mobile terminals connected to the server are identified as the target mobile terminals.

[0145] Specifically, based on the above embodiment, after accessing the target mobile terminal and obtaining the usage status of the target mobile terminal, the method further includes:

[0146] When the usage status is in use, generating a device occupied prompt based on the device serial number of the target mobile terminal;

[0147] Sending a prompt indicating that the device is occupied to the UI automation service.

[0148] Specifically, based on the above embodiment, it also includes:

[0149] Determine the mobile terminal to be released based on the release command sent by the UI automation service through the preset interface and the belonging relationship;

[0150] Control the mobile terminal to be released to close its own port, so that the UI automation service cannot access the mobile terminal to be released;

[0151] Updating the usage status of the to-be-released mobile terminal in the preset database so that the usage status of the to-be-released mobile terminal is changed to an idle state;

[0152] A release success prompt is sent to the UI automation service.

[0153] Specifically, based on the above embodiment, the determining the mobile terminal to be released based on the release command sent by the UI automation service through the preset interface and the belonging relationship includes:

[0154] After receiving the release command sent by the UI automation service through the preset interface, determining whether the release command includes a device serial number;

[0155] In the case that the release command includes a device serial number, the mobile terminal to which the device serial number indicated in the release command belongs is identified as the mobile terminal to be released.

[0156] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks or optical disks.

[0157] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0158] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A mobile terminal management and control method, characterized in that: Applicable to servers, including: Get the relationship between the device serial number and the mobile terminal; Determine the target mobile terminal based on the query command sent by the UI automation service through the preset interface and the belonging relationship; Accessing the target mobile terminal to obtain the usage status of the target mobile terminal; When the usage state is an idle state, obtaining an IP address of the target mobile terminal; Controlling the target mobile terminal to open its own port so that the server obtains the port number of the target mobile terminal; Based on the IP address and the port number, generate a remote connection IP of the target mobile terminal; Sending the remote connection IP to the UI automation service, so that the UI automation service accesses and controls the target mobile terminal based on the remote connection IP; The use status of the target mobile terminal is updated to in use, and the use status, device serial number and remote connection IP of the target mobile terminal are saved in a preset data table.

2. The method according to claim 1, characterized in that: The obtaining of the relationship between the device serial number and the mobile terminal includes: Calling a preset remote connection tool to establish a communication connection between the server and multiple mobile terminals; After determining that a communication connection is successfully established between the server and each of the mobile terminals, sending a first instruction to each of the mobile terminals to obtain a device serial number of each of the mobile terminals; Based on the device serial numbers of the mobile terminals, the relationship between the device serial numbers and the mobile terminals is obtained.

3. The method according to claim 1, characterized in that The step of determining the target mobile terminal based on the query command sent by the UI automation service through the preset interface and the belonging relationship includes: After receiving the query command sent by the UI automation service through the preset interface, determining whether the query command includes the device serial number; In the case where the query command includes a device serial number, the mobile terminal to which the device serial number indicated in the query command belongs is identified as the target mobile terminal.

4. The method according to claim 3, characterized in that Also includes: When the query command does not include a device serial number, all mobile terminals connected to the server are identified as the target mobile terminals.

5. The method according to claim 1, characterized in that After accessing the target mobile terminal and obtaining the usage status of the target mobile terminal, the method further includes: When the usage status is in use, generating a device occupied prompt based on the device serial number of the target mobile terminal; Sending a prompt indicating that the device is occupied to the UI automation service.

6. The method according to claim 1, characterized in that Also includes: Determine the mobile terminal to be released based on the release command sent by the UI automation service through the preset interface and the belonging relationship; Control the mobile terminal to be released to close its own port, so that the UI automation service cannot access the mobile terminal to be released; Updating the usage status of the to-be-released mobile terminal in a preset database so that the usage status of the to-be-released mobile terminal is changed to an idle state; A release success prompt is sent to the UI automation service.

7. The method according to claim 6, characterized in that The determining the mobile terminal to be released based on the release command sent by the UI automation service through the preset interface and the belonging relationship includes: After receiving the release command sent by the UI automation service through the preset interface, determining whether the release command includes a device serial number; In the case that the release command includes a device serial number, the mobile terminal to which the device serial number indicated in the release command belongs is identified as the mobile terminal to be released.

8. A mobile terminal control device, characterized in that: include: A relationship acquisition unit, used to acquire the relationship between the device serial number and the mobile terminal; A determination unit, configured to determine a target mobile terminal based on a query command sent by the UI automation service through a preset interface and the belonging relationship; A status acquisition unit, used to access the target mobile terminal and acquire the usage status of the target mobile terminal; An address acquisition unit, configured to acquire the IP address of the target mobile terminal when the usage state is an idle state; A port number acquisition unit, used to control the target mobile terminal to open its own port and obtain the port number of the target mobile terminal; An IP generation unit, configured to generate a remote connection IP of the target mobile terminal based on the IP address and the port number; An IP sending unit is used to send the remote connection IP to the UI automation service, so that the UI automation service accesses and controls the target mobile terminal based on the remote connection IP; The status updating unit is used to update the usage status of the target mobile terminal to in use, and save the usage status, device serial number and remote connection IP of the target mobile terminal into a preset data table.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program, when executed by a processor, executes the mobile terminal management and control method described in any one of claims 1 to 7.

10. A mobile terminal control device, characterized in that: include: processor, memory, and bus; The processor is connected to the memory via the bus; The memory is used to store programs, and the processor is used to run programs, wherein the program, when run by the processor, executes the mobile terminal management and control method described in any one of claims 1-7.