CN111611573B - Data processing method, related equipment and medium for realizing terminal equipment switching - Google Patents

Data processing method, related equipment and medium for realizing terminal equipment switching Download PDF

Info

Publication number
CN111611573B
CN111611573B CN202010432773.2A CN202010432773A CN111611573B CN 111611573 B CN111611573 B CN 111611573B CN 202010432773 A CN202010432773 A CN 202010432773A CN 111611573 B CN111611573 B CN 111611573B
Authority
CN
China
Prior art keywords
terminal device
terminal
equipment
devices
application program
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
CN202010432773.2A
Other languages
Chinese (zh)
Other versions
CN111611573A (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.)
Shenzhen Mirror Play Technology Co ltd
Original Assignee
Shenzhen Mirror Play 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 Shenzhen Mirror Play Technology Co ltd filed Critical Shenzhen Mirror Play Technology Co ltd
Priority to CN202010432773.2A priority Critical patent/CN111611573B/en
Publication of CN111611573A publication Critical patent/CN111611573A/en
Application granted granted Critical
Publication of CN111611573B publication Critical patent/CN111611573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/41User authentication where a single sign-on provides access to a plurality of computers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The embodiment of the application discloses a data processing method for realizing switching of terminal equipment, which comprises the following steps: when the terminal equipment needs to be switched, switching and logging in and running a target application program on the first terminal equipment through a first account; the first account is an account which is logged in and runs a target application program on the second terminal equipment before the terminal equipment needs to be switched; the method comprises the steps that a first terminal device obtains first access information of a target access device from a server; the target access equipment records user behavior data corresponding to the target application program; the user behavior data comprise operation data in a target application program which is run on the second terminal device and registered with the first account before the terminal device is switched; and the first terminal equipment establishes communication connection with the target access equipment according to the first access information, and acquires user behavior data from the target access equipment. By implementing the application, the technical problems caused by too small and too large interaction period between the terminal equipment and the server in the prior art are avoided.

Description

Data processing method, related equipment and medium for realizing terminal equipment switching
Technical Field
The present application relates to the field of internet technologies, and in particular, to a data processing method for implementing terminal device switching, a terminal device, a server, and a computer readable storage medium.
Background
With the rapid development of computer network computing, especially the development of the mobile internet, the mobile internet is gradually penetrating into various fields of people's life and work. The user can complete various transactions by only installing various application programs on the electronic equipment according to the own requirements.
When a user uses an application, the terminal device often records user behavior data. For example, when a user registers an account and uses a video live broadcast or plays a related application program, a terminal device running the application program can record user behavior data including a page stay time, a video play time and the like in real time.
In order to view user behavior data when a user needs to view the data, and the data is not lost after the user switches to log in the terminal device. In the prior art, a server corresponding to an application program can be used as a storage medium, and the real-time performance of data is realized through frequent interaction between terminal equipment and the server. The method is concretely realized as follows: when the user generates the data using the user behavior, the terminal device records the data, the terminal device uploads the data in a mode of requesting the server after a period of time T, and the server receives the data, performs statistical calculation and stores the data into a data disk. When the terminal equipment enters a page for displaying behavior data, the terminal equipment requests a server, and the server inquires a data disk and returns data to the terminal equipment for displaying.
However, in the interaction process between the terminal device and the server, if the period T becomes smaller, the burden of the server is greatly increased; if the period T becomes large, the real-time performance of the data will be seriously affected.
Disclosure of Invention
The embodiment of the application provides a data processing method, terminal equipment, a server and a computer readable storage medium for realizing terminal equipment switching, which avoid the technical problems caused by too small and too large interaction period between the terminal equipment and the server in the prior art, ensure that the terminal equipment can acquire user behavior data in time during switching login, and greatly reduce the burden of the server.
In a first aspect, an embodiment of the present application provides a data processing method for implementing handover of a terminal device, where the method includes:
when the terminal equipment needs to be switched, switching and logging in and running a target application program on the first terminal equipment through a first account; the first account is an account which is logged in and runs the target application program on the second terminal equipment before the terminal equipment needs to be switched;
the first terminal equipment acquires first access information of target access equipment from a server; the target access device comprises one or more access devices, and user behavior data corresponding to the target application program are recorded in the target access device; the user behavior data comprise operation data in the target application program which is run on the second terminal device and registered with the first account before the terminal device is switched;
And the first terminal equipment establishes communication connection with the target access equipment according to the first access information, and acquires the user behavior data from the target access equipment.
In one possible implementation manner, the target access device is one or more third terminal devices in the case that the user behavior data cannot be obtained from the second terminal device after the login is switched on the first terminal device through the first account and the target application program is operated; wherein,
the third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule; and the third terminal equipment stores part or all of the user behavior data which are sent in real time by the second terminal equipment when the target application program logged in the first account is operated.
In one possible implementation manner, the first access information of the target access device may be generated by the server according to a preset processing policy and sent to the first terminal device.
The processing policy of the embodiment of the application can include that the server determines the target access device according to whether the user behavior data can be acquired from the second terminal device after switching to log in and running the target application program on the first terminal device through the first account. And if the user behavior data can be acquired from the second terminal equipment, the target access equipment is the second terminal equipment. If the user behavior data cannot be obtained from the second terminal equipment, the target access equipment is further determined according to the condition that the second terminal equipment sends the user behavior data when logging in and running the target application program through the first account.
If the second terminal equipment logs in through the first account and runs the target application program, the server determines one or more third terminal equipment according to the geographic position information of the second terminal equipment; the second terminal device will obtain the second access address of the determined one or more third terminal devices from the server, then establish a connection with the one or more third terminal devices according to the second access address, and send the user behavior data to the one or more third terminal devices in real time. The one or more third terminal devices store part or all of the user behavior data sent by the second terminal device in real time when the target application program logged in the first account is operated. And then, in the case that the user behavior data cannot be acquired from the second terminal device, the server determines that the one or more third terminal devices are target access devices.
If the second terminal device logs in and runs the target application program through the first account, the server does not determine the third terminal device according to the geographic position information of the second terminal device, then the second terminal device knows that the server is the target access device, the second terminal device sends user behavior data to the server in real time, and the server stores all the user behavior data sent by the second terminal device in real time when running the target application program logged in the first account. And then, under the condition that the user behavior data cannot be acquired from the second terminal equipment, the server determines that the server is the target access equipment.
In a second aspect, an embodiment of the present application provides a data processing method for implementing handover of a terminal device, including:
logging in and running a target application program on the second terminal equipment through the first account;
after the second terminal equipment acquires second access information of one or more third terminal equipment from the server, the second terminal equipment establishes communication connection with the one or more third terminal equipment according to the second access information, and sends user behavior data to the one or more third terminal equipment in real time; the user behavior data comprise operation data in the target application program which logs in the first account on the second terminal equipment; wherein,
the third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule.
In one possible implementation manner, if the second terminal device logs in through the first account and runs the target application program, the server determines one or more third terminal devices according to the geographic position information of the second terminal device; the second terminal device will obtain the second access address of the determined one or more third terminal devices from the server, then establish a connection with the one or more third terminal devices according to the second access address, and send the user behavior data to the one or more third terminal devices in real time.
If the second terminal device logs in and runs the target application program through the first account, the server does not determine the third terminal device according to the geographic position information of the second terminal device, then the second terminal device knows that the server is the target access device, the second terminal device sends user behavior data to the server in real time, and the server stores all the user behavior data sent by the second terminal device in real time when running the target application program logged in the first account. And then, under the condition that the user behavior data cannot be acquired from the second terminal equipment, the server determines that the server is the target access equipment.
In a third aspect, an embodiment of the present application provides a data processing method for implementing handover of a terminal device, including:
the server determines one or more third terminal devices according to the geographic position information of the second terminal devices; the method comprises the steps that a target application program is logged in and operated on second terminal equipment through a first account; the third terminal device runs the target application program;
the server sends second access information corresponding to the one or more third terminal devices to the second terminal device;
The server receives a data request of first terminal equipment; the first terminal equipment is the terminal equipment for switching and logging in the first account;
the server determines first access information of target access equipment according to the data request; and transmitting the first access information to the first terminal device.
In one possible implementation manner, in a case that the user behavior data cannot be acquired from the second terminal device, the server determines, according to the data request, first access information of a target access device, including:
the server determines the one or more third terminal devices as target access devices according to the data request;
the server determines the second access information as the first access information.
In one possible implementation, the server first determines the synchronous storage device according to the geographical location information of the second terminal device. If the server finds other terminal devices within a preset geographic range according to the geographic position information of the second terminal device, one or more third terminal devices can be determined as synchronous storage devices according to the found other terminal devices; if the server does not find other terminal equipment in the preset geographical range according to the geographical position information of the second terminal equipment, the server determines the server as synchronous storage equipment. And then the server sends the access information corresponding to the synchronous storage device to the second terminal device, the second terminal device establishes communication connection with the synchronous storage device according to the access information, and then sends user behavior data to the synchronous storage device in real time.
In one possible implementation manner, in a case that the server finds other terminal devices within a preset geographical range according to the geographical position information of the second terminal device, for example, in a case that the server finds a plurality of fourth terminal devices within the preset geographical range according to the geographical position information of the second terminal device; the fourth terminal device runs the target application program; and determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding online rate z, the corresponding offline rate d and the routing length u between the second terminal device and the third terminal device.
In one possible implementation, the server determines the target geographic range in advance according to the geographic location information of the second terminal device. The server determines the distance L between the second terminal equipment and the fourth terminal equipment farthest from the server according to the geographic position information of the second terminal equipment; and then taking the distance L which is one n times as a radius R, wherein a circular area formed by the radius R is the determined target geographic range. N is a positive integer of 1 or more.
In one possible implementation manner, the determining, according to the distance k between the fourth terminal device and the second terminal device, the corresponding line rate z, the drop rate d, and the routing length u between the second terminal device and the third terminal device, of the fourth terminal device, may include:
the value w corresponding to each fourth terminal device is calculated according to the following formula,
w i =αk i +βz i +γd i +δu i
wherein w is i The value w, k of the fourth terminal i i Refers to the distance z between the fourth terminal device i and the second terminal device i The line rate z corresponding to the fourth terminal device i, the line drop rate d corresponding to the fourth terminal device i, and the route length u between the fourth terminal device i and the third terminal device.
According to the value w, confirming that the first m largest corresponding fourth terminal devices are third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
The method of the first aspect, the second aspect, or the third aspect of the embodiments of the present application determines, through a set processing policy, a target access device, and if the user behavior data can be obtained from a second terminal device, the target access device is the second terminal device; if the user behavior data cannot be acquired from the second terminal equipment, and the second terminal equipment sends the user behavior data to one or more third terminal equipment in real time before, the one or more third terminal equipment is the target access equipment; if the user behavior data cannot be acquired from the second terminal device, and the second terminal device previously sends the user behavior data to the server in real time, the server is the target access device. Therefore, the embodiment of the application does not directly interact with the server through the terminal equipment, and the server is used as a storage medium to process the data, so that the technical problems caused by too small and too large interaction period of the terminal equipment and the server in the prior art are avoided, the terminal equipment is ensured to acquire the user behavior data in time when switching login, and the burden of the server is greatly reduced.
In a fourth aspect, an embodiment of the present application provides a terminal device, where the terminal device is used as a first terminal device, and includes:
the first processing unit is used for switching and logging in and running the target application program through the first account number under the condition that the terminal equipment needs to be switched; the first account is an account which is logged in and runs the target application program on the second terminal equipment before the terminal equipment needs to be switched;
a first receiving unit for acquiring first access information of a target access device from a server; the target access device comprises one or more access devices, and user behavior data corresponding to the target application program are recorded in the target access device; the user behavior data comprise operation data in the target application program which is run on the second terminal device and registered with the first account before the terminal device is switched;
the first receiving unit is further configured to establish a communication connection with the target access device according to the first access information, and acquire the user behavior data from the target access device.
In a fifth aspect, an embodiment of the present application provides a terminal device, where the terminal device is used as a second terminal device, and includes:
The second processing unit is used for logging in and running a target application program through the first account;
a second receiving unit, configured to obtain second access information of one or more third terminal devices from the server;
the second sending unit is used for establishing communication connection with the one or more third terminal devices according to the second access information and sending user behavior data to the one or more third terminal devices in real time; the user behavior data comprise operation data in the target application program which logs in the first account on the second terminal equipment; wherein,
the third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule.
In a sixth aspect, an embodiment of the present application provides a server, including:
a third processing unit, configured to determine one or more third terminal devices according to the geographical location information of the second terminal device; the method comprises the steps that a target application program is logged in and operated on second terminal equipment through a first account; the third terminal device runs the target application program;
a third sending unit, configured to send second access information corresponding to the one or more third terminal devices to the second terminal device;
A third receiving unit, configured to receive a data request of the first terminal device; the first terminal equipment is the terminal equipment for switching and logging in the first account;
the third processing unit is further configured to determine first access information of a target access device according to the data request;
the third sending unit is further configured to send the first access information to the first terminal device.
In a possible implementation manner, in a case that the user behavior data cannot be acquired from the second terminal device, the third processing unit is specifically configured to, when determining the first access information of the target access device according to the data request:
determining the one or more third terminal devices as target access devices according to the data request;
and determining the second access information as the first access information.
In a seventh aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processor and a memory, where the memory stores a computer program, and the processor executes the computer program stored in the memory, so that the terminal device executes a data processing method for implementing a handover of a terminal device provided in any one of the implementation manners of the first aspect or the second aspect.
In an eighth aspect, an embodiment of the present application provides a server, where the server includes a processor and a memory, where the memory stores a computer program, and the processor executes the computer program stored in the memory, so that the server executes a data processing method for implementing a handover of a terminal device provided in any one of the implementation manners of the third aspect.
In a ninth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first, second, or third aspects described above.
In a tenth aspect, embodiments of the present application also provide a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first, second, or third aspects described above.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described.
Fig. 1 is a schematic diagram of a data processing method for implementing terminal device switching according to an embodiment of the present application;
fig. 2 is a flow chart of a data processing method for implementing terminal device switching according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of determining a synchronous storage device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another embodiment of a terminal device provided by the present application;
fig. 8 is a schematic structural diagram of another embodiment of a terminal device provided by the present application;
fig. 9 is a schematic structural diagram of another embodiment of a server provided by the present application.
Detailed Description
The following description of the technical solutions according to the embodiments of the present application will be given with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
The principle architecture diagram of the data processing method for implementing terminal device switching provided in the embodiment of the present application as shown in fig. 1 includes a first terminal device, a second terminal device, one or more third terminal devices (including a plurality of examples in the figure), and a server. The terminal equipment can be in communication connection with the server, and the communication connection between the terminal equipment can also be established directly through a network. Wherein,
a user first registers his own account, e.g. a first account, in a target application. The user then generates or generates user behavior data by logging in and running the target application with the first account number on the second terminal device. The second terminal device needs to upload the user behavior data in real time, so the server determines a target access device storing the user behavior data on the second terminal device according to the second terminal device, and sends the determined access information (including address information) of the target access device to the second terminal device. The second terminal device can establish a connection with the target access device according to the access information and then transmit the user behavior data to the target access device in real time.
When a user switches from a second terminal device to a first terminal device to log in with the first account and run the target application, the first terminal device may send a data request to a server to request user behavior data on the second terminal device prior to the switch. The server provides the access information of the target access device to the first terminal device, and finally the first terminal device can establish a connection with the target access device and then acquire the user behavior data from the target access device.
In any embodiment of the present application, the target application may be a video live broadcast or play related application, or may be a game application, or a social communication application, a sports health application, or the like, which is not limited by the present application. The application program can be the target application program of the application as long as the application program runs on the terminal equipment and depends on the service provided by the back-end server.
The terminal device according to the embodiment of the present application may also be referred to as a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), etc., and is a device that provides voice/data connectivity to a user, for example, a handheld device with a wireless connection function, a vehicle-mounted device, etc. Examples of some terminal devices are: a mobile phone, a tablet, a notebook, a palm, a mobile internet device (mobile internet device, MID), a wearable device, a Virtual Reality (VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned (self driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), a vehicle containing a cockpit domain controller, and the like.
The following is a schematic flow chart of a data processing method for implementing terminal device handover according to an embodiment of the present application shown in fig. 2, to illustrate how the present application performs data processing, and may include the following steps:
step S200: the second terminal equipment logs in and runs a target application program through the first account;
specifically, the user logs in the target application program through the second terminal equipment by using the first account number registered before, and runs the target application program.
Step S201: the server confirms the synchronous storage device according to the geographic position information of the second terminal device;
specifically, the backend server corresponding to the target application program acquires the geographic position information of the second terminal device, and can determine the synchronous storage device for synchronously storing the user behavior data according to the geographic position of the second terminal device. The identified synchronous storage device may be one or more third terminal devices, or may be the server itself, and the specific step of identifying the synchronous storage device may refer to the embodiment of fig. 3.
Step S202: the server sends the confirmed access information of the synchronous storage device to the second terminal device;
specifically, the access information in the embodiments of the present application may include network address information of the device, and other devices may directly establish a communication connection with the device according to the network address information.
In a possible implementation manner, after step S200, before step S201 or step S202, the method may further include that the second terminal device requests the server to obtain the access information of the synchronous storage device, and then the server sends the access information of the synchronous storage device to the second terminal device after receiving the request sent by the second terminal device.
Step S203: the second terminal equipment receives the access information of the synchronous storage equipment, establishes communication connection with the synchronous storage equipment according to the access information, and sends the user behavior data to the synchronous storage equipment in real time;
specifically, the user behavior data in the embodiment of the present application includes operation data in the target application running on the second terminal device and logged in the first account before the terminal device is switched. Taking a video live broadcast or play related application program as an example, the user behavior data is the user behavior data including page stay time, video play time and the like recorded in real time by the terminal equipment running the application program.
It should be noted that the second terminal device itself also records and stores the user behavior data in real time.
In fig. 2, the synchronous storage device is taken as an example of a third terminal device.
Step S204: the synchronous storage device receives and stores the user behavior data;
specifically, the synchronous storage device of the application is also a device provided with and running a target application program, and allows or authorizes to agree to receive and store user behavior data sent by other devices according to the negotiated rules.
Step S205: the first terminal equipment logs in and runs a target application program by the first account;
specifically, when the user switches the terminal device according to the own requirement, the first terminal device can switch the login and run the target application program by the first account.
Step S206: the first terminal equipment sends a data request to a server;
specifically, the data request is user behavior data for requesting to run the target application on the second terminal device before switching the login.
Step S207: the server receives the data request and determines first access information of the target access device according to the data request and a preset processing strategy;
specifically, after receiving the data request, the server first determines whether the user behavior data can be directly obtained from the second terminal device according to a preset processing policy.
For example, if the first account is logged on to the second terminal device to run the target application program before, and the user switches to log on to the first terminal device, the first account is forced to be offline on the second terminal device, that is, is normally extruded to be offline, then the target application program on the second terminal device is still running in the background, and at this time, other terminal devices can directly obtain the user behavior data from the second terminal device. That is, the server may determine that the user behavior data may be directly obtained from the second terminal device.
For another example, if the target application program is run by logging in the first account on the second terminal device before, the operation of the target application program is stopped suddenly by the operating system of the second terminal device, or the target application program crashes and exits from running, or the target application program cannot run normally due to network abnormality, then other terminal devices cannot directly obtain the user behavior data from the second terminal device. The server can judge that the user behavior data cannot be directly obtained from the second terminal device.
If it is determined that the user behavior data can be directly obtained from the second terminal device, it can be determined that the second terminal device is the target access device according to the preset processing policy. If it is determined that the user behavior data cannot be directly obtained from the second terminal device, the synchronous storage device determined in step S201 is used as the target access device according to the preset processing policy.
Step S208: the server sends the first access information to the first terminal equipment;
specifically, the first access information includes network address information of the target access device.
Step S209: the first terminal equipment establishes communication connection with the target access equipment according to the first access information;
specifically, the first terminal device may establish a communication connection with the target access device according to the network address information of the target access device by means of its own networking function.
The target access device in fig. 3 is also described by way of example as a third terminal device.
Step S210: the first terminal device obtains the user behavior data from the target access device.
The following schematic flow chart for determining the synchronous storage device according to the embodiment of the present application shown in fig. 3 is illustrative of how the synchronous storage device is determined according to the present application, and also illustrates what a preset rule that a distance between a third terminal device and a second terminal device satisfies specifically refers to, and may include the following steps:
step S300: the server searches whether other terminal equipment exists in a preset geographic range according to the geographic position information of the second terminal equipment;
specifically, the other terminal device is a terminal device in which the target application program is installed and operated. The preset geographic range is related to the geographic location of the second terminal device, for example, the preset geographic range of the present application may be a range of a city area where the second terminal device is located, or may be a range of a provincial area where the second terminal device is located, or the like. If other terminal equipment is found, executing step S301, and if other terminal equipment is not found, executing step S302;
Step S301: determining one or more third terminal devices as synchronous storage devices according to the found other terminal devices;
specifically, step S301 may be implemented by at least one of the following ways or a combination of the ways:
mode one:
the server acquires the geographic position of the second terminal equipment according to the geographic position information of the second terminal equipment, and then determines the distance L between the second terminal equipment and the fourth terminal equipment which is farthest away from the server; and then taking the distance L which is one n times as a radius R, wherein a circular area formed by the radius R is the determined target geographic range. N is a positive integer of 1 or more. The terminal equipment within the target geographic range is the third terminal equipment, one or more terminal equipment can be provided, and the third terminal equipment is used as synchronous storage equipment.
Further, if it is determined that no terminal device exists in the target geographic area, the radius R may be adjusted, for example, by increasing to a distance L of two n-thirds, and increasing by one n-th each time until a terminal device exists in the target geographic area.
Mode two:
the server searches a plurality of fourth terminal devices in a preset geographic range according to the geographic position information of the second terminal device; and determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding online rate z, the corresponding offline rate d and the routing length u between the second terminal device and the third terminal device.
Where the presence rate z may refer to the duration of the presence per unit time. The disconnection rate d may refer to the percentage of the disconnection time in the login state to the total time. The routing length u may refer to the number of routing nodes included in the path routed by the terminal device.
For example, the value w corresponding to each fourth terminal device may be calculated according to the following formula,
w i =αk i +βz i +γd i +δu i
wherein w is i The value w, k of the fourth terminal i i Refers to the distance z between the fourth terminal device i and the second terminal device i The line rate z corresponding to the fourth terminal device i, the line drop rate d corresponding to the fourth terminal device i, and the route length u between the fourth terminal device i and the third terminal device. Alpha, beta, gamma, delta are weighting factors, wherein the addition of the four weighting factors of alpha, beta, gamma, delta can be 1.
Then, according to the value w, the first m largest corresponding fourth terminal devices can be confirmed to be third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
Through extensive data analysis and statistics, α may preferably be 0.53, β may be 0.18, γ may be 0.08, and δ may be 0.21. The third terminal equipment can be determined more accurately, and the switched terminal equipment can acquire the user behavior data more efficiently, so that the system consisting of the terminal equipment and the server in the application is well balanced.
Mode three:
the server or the second terminal device presets the number Q of the third terminal devices. The Q value may be a fixed value (preferably Q may take the value [5,10 ]), or may be determined by searching for the number of fourth terminal devices within a preset geographical range according to the geographical location information of the second terminal device, for example, the more the number of fourth terminal devices are searched for, the greater the Q value, the Q value is less than or equal to the number of fourth terminal devices are searched for, and so on.
And then directly analyzing the geographical position information of the second terminal equipment within a preset geographical range, and determining Q fourth terminal equipment closest to the second terminal equipment as third terminal equipment. Or Q fourth terminal devices with the minimum routing length u are determined as third terminal devices. Or Q fourth terminal devices with highest linear rate z are determined as third terminal devices. Or determining Q fourth terminal devices with the largest value w as third terminal devices. Etc.
Step S302: the server determines itself as a synchronous storage device.
In a possible implementation manner, after determining the synchronous storage devices, when the storage space of one of the synchronous storage devices is insufficient, or one of the synchronous storage devices exits from running the target application program, the second terminal device or the server may re-find the other terminal device as the synchronous storage device in the manner of the embodiment of fig. 3.
In a possible implementation manner, when determining a plurality of synchronous storage devices (i.e., a plurality of third terminal devices), the present application can control the plurality of synchronous storage devices to store all user behavior data sent by the second terminal device, respectively, so that when the terminal device is switched, the first terminal device only needs to acquire access information of one synchronous storage device from the first terminal device and establish connection with the first terminal device, and then the user behavior data can be acquired.
In addition, when determining a plurality of synchronous storage devices (namely a plurality of third terminal devices), the application can also control the plurality of synchronous storage devices to cooperatively store the user behavior data sent by the second terminal device. For example, the P synchronous storage devices each store the user behavior data sent by the second terminal device in a proportion of one-P, i.e. each synchronous storage device stores only a part of the user behavior data. And combining partial user behavior data stored by the P synchronous storage devices to form complete and complete user behavior data. That is, the second terminal device may proportionally send the user behavior data to each of the synchronous storage devices. When the terminal device is switched, the first terminal device needs access information of each synchronous storage device, and establishes connection with all synchronous storage devices to acquire the user behavior data.
Still further, the proportion of the P synchronous storage devices storing the user behavior data may be related to the data amount of the user behavior data generated by the second terminal device, and the size of P. For example, in the case that the data amount of the user behavior data is smaller than the threshold value and P is 10, 2 groups of synchronous storage devices may be set for storage, where each group has 5 synchronous storage devices, and each synchronous storage device in each group stores the user behavior data sent by the second terminal device in a proportion of one fifth. Each group is combined to store a complete and complete set of user behavior data. Then after the terminal device is switched, the first terminal device needs access information of one group of synchronous storage devices, and establishes connection with the synchronous storage devices of the group to acquire the user behavior data.
The embodiment of the application determines the target access equipment through the set processing strategy, and if the user behavior data can be acquired from the second terminal equipment, the target access equipment is the second terminal equipment; if the user behavior data cannot be acquired from the second terminal equipment, and the second terminal equipment sends the user behavior data to one or more third terminal equipment in real time before, the one or more third terminal equipment is the target access equipment; if the user behavior data cannot be acquired from the second terminal device, and the second terminal device previously sends the user behavior data to the server in real time, the server is the target access device. Therefore, the embodiment of the application does not directly interact with the server through the terminal equipment, and the server is used as a storage medium to process the data, so that the technical problems caused by too small and too large interaction period of the terminal equipment and the server in the prior art are avoided, the terminal equipment is ensured to acquire the user behavior data in time when switching login, and the burden of the server is greatly reduced.
In order to facilitate better implementation of the above method according to the embodiment of the present application, the embodiment of the present application further describes a schematic structural diagram of a terminal device under the same application concept as the embodiment of the method described in fig. 2. The following detailed description is made with reference to the accompanying drawings:
as shown in fig. 4, the structure schematic diagram of the terminal device provided in the embodiment of the present application, where the terminal device 40 is the first terminal device in the above method embodiment, may include: a first processing unit 400 and a first receiving unit 402; wherein,
the first processing unit 400 is configured to switch to log in and run a target application through a first account when the terminal device needs to be switched; the first account is an account which is logged in and runs the target application program on the second terminal equipment before the terminal equipment needs to be switched;
the first receiving unit 402 is configured to obtain, from a server, first access information of a target access device; the target access device comprises one or more access devices, and user behavior data corresponding to the target application program are recorded in the target access device; the user behavior data comprise operation data in the target application program which is run on the second terminal device and registered with the first account before the terminal device is switched;
The first receiving unit 402 is further configured to establish a communication connection with the target access device according to the first access information, and obtain the user behavior data from the target access device.
In one possible implementation manner, the target access device is one or more third terminal devices in the case that the user behavior data cannot be obtained from the second terminal device after the login is switched on the first terminal device through the first account and the target application program is operated; wherein,
the third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule; and the third terminal equipment stores part or all of the user behavior data which are sent in real time by the second terminal equipment when the target application program logged in the first account is operated.
It will be appreciated that the descriptions of the respective units in the terminal device 40 may also correspond to the descriptions related to the first terminal device in the embodiments of fig. 2-3 with reference to the foregoing data processing method for implementing the terminal device handover, which will not be described in detail here.
As shown in fig. 5, a schematic structural diagram of a terminal device according to another embodiment of the present application, where a terminal device 50 is a second terminal device in the foregoing method embodiment, may include: a second processing unit 500, a second receiving unit 502, and a second transmitting unit 504; wherein,
The second processing unit 500 is configured to log in and run a target application through the first account;
the second receiving unit 502 is configured to obtain second access information of one or more third terminal devices from the server;
the second sending unit 504 is configured to establish a communication connection with the one or more third terminal devices according to the second access information, and send user behavior data to the one or more third terminal devices in real time; the user behavior data comprise operation data in the target application program which logs in the first account on the second terminal equipment; wherein,
the third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule.
In one possible implementation manner, if the terminal device 50 logs in through the first account and runs the target application program, the server determines one or more third terminal devices according to the geographic location information of the second terminal device; the terminal device 50 will obtain the second access address of the determined one or more third terminal devices from the server, then establish a connection with the one or more third terminal devices according to the second access address, and send the user behavior data to the one or more third terminal devices in real time.
If the server does not determine the third terminal device according to the geographical location information of the terminal device 50 when the terminal device 50 logs in and runs the target application program through the first account, the terminal device 50 will know that the server is the target access device, the terminal device 50 sends the user behavior data to the server in real time, and the server stores all the user behavior data sent by the terminal device 50 in real time when running the target application program logged in the first account. Then, in the case where the user behavior data cannot be acquired from the terminal device 50, the server determines that the server itself is the target access device.
It will be appreciated that the descriptions of the respective units in the terminal device 50 may also correspond to the descriptions of the second terminal device referred to in the embodiments of fig. 2-3 of the foregoing data processing method for implementing the terminal device handover, which will not be described in detail here.
As shown in fig. 6, a schematic structural diagram of a server provided in the embodiment of the present application, where a server 60 is a server in the above method embodiment, may include: a third processing unit 600, a third transmitting unit 602, and a third receiving unit 604; wherein,
The third processing unit 600 is configured to determine one or more third terminal devices according to the geographical location information of the second terminal device; the method comprises the steps that a target application program is logged in and operated on second terminal equipment through a first account; the third terminal device runs the target application program;
the third sending unit 602 is configured to send second access information corresponding to the one or more third terminal devices to the second terminal device;
the third receiving unit 604 is configured to receive a data request of the first terminal device; the first terminal equipment is the terminal equipment for switching and logging in the first account;
the third processing unit 600 is further configured to determine, according to the data request, first access information of a target access device;
the third sending unit 602 is further configured to send the first access information to the first terminal device.
In a possible implementation manner, in a case that the user behavior data cannot be acquired from the second terminal device, the third processing unit 600 is specifically configured to, when determining the first access information of the target access device according to the data request:
determining the one or more third terminal devices as target access devices according to the data request;
And determining the second access information as the first access information.
In a possible implementation, the third processing unit 600 of the server 60 determines the synchronous storage device first by determining the geographical location information of the second terminal device. If the third processing unit 600 finds other terminal devices within the preset geographical range according to the geographical location information of the second terminal device, one or more third terminal devices may be determined as synchronous storage devices according to the found other terminal devices; if the third processing unit 600 does not find other terminal devices within the preset geographical range according to the geographical location information of the second terminal device, the server 60 determines itself as the synchronous storage device. The server 60 then transmits the access information corresponding to the synchronous storage device to the second terminal device through the third transmitting unit 602, where the second terminal device establishes a communication connection with the synchronous storage device according to the access information, and then transmits the user behavior data to the synchronous storage device in real time.
In a possible implementation manner, in a case where the third processing unit 600 of the server 60 finds other terminal devices within a preset geographical range according to the geographical location information of the second terminal device, for example, in a case where the third processing unit 600 finds a plurality of fourth terminal devices within a preset geographical range according to the geographical location information of the second terminal device; the fourth terminal device runs the target application program; and determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding online rate z, the corresponding offline rate d and the routing length u between the second terminal device and the third terminal device.
In a possible implementation manner, the third processing unit 600 determines the target geographic range in advance according to the geographic location information of the second terminal device. Specifically, the third processing unit 600 may determine, according to the geographical location information of the second terminal device, a distance L between the second terminal device and a fourth terminal device that is farthest from the second terminal device; and then taking the distance L which is one n times as a radius R, wherein a circular area formed by the radius R is the determined target geographic range. N is a positive integer of 1 or more.
In a possible implementation manner, the third processing unit 600 determines one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding line rate z, the drop rate d, and the routing length u between the second terminal device and the third terminal device of the fourth terminal device, and may include:
the value w corresponding to each fourth terminal device is calculated according to the following formula,
w i =αk i +βz i +γd i +δu i
wherein w is i The value w, k of the fourth terminal i i Refers to the distance z between the fourth terminal device i and the second terminal device i The line rate z corresponding to the fourth terminal device i, the line drop rate d corresponding to the fourth terminal device i, and the route length u between the fourth terminal device i and the third terminal device.
According to the value w, confirming that the first m largest corresponding fourth terminal devices are third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
It will be appreciated that the description of the various units in the server 60 may also correspond to the description of the server referred to in the embodiments of fig. 2-3 of the data processing method for implementing the terminal device handover, which is not described in detail here.
As shown in fig. 7, a schematic structural diagram of another embodiment of a terminal device provided by the present application, where the terminal device 70 is the first terminal device in the above embodiment of the method, may include a processor 700, a memory 702, and a transceiver 704.
The processor 700 may be a general purpose Central Processing Unit (CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program schemes.
The Memory 702 may be, but is not limited to, read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, random access Memory (random access Memory, RAM) or other type of dynamic storage device that can store information and instructions, but may also be electrically erasable programmable read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), compact disc read-Only Memory (Compact Disc Read-Only Memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code or computer programs in the form of instructions or data structures and that can be accessed by a computer. The memory 702 may be separate and coupled to the processor 700 via a bus. Memory 702 may also be integrated with processor 700.
A transceiver 704 is coupled to the processor 700 for receiving and transmitting information.
The memory 702 is used for storing a computer program for executing the above scheme, and is controlled by the processor 70 to execute the program. The processor 700 is configured to execute a computer program stored in the memory 702.
The code stored by the memory 702 may be used to perform the steps of the data processing method provided above in fig. 2-3 involving a first terminal device in implementing a terminal device handover. Reference may be made specifically to the implementation manner of the above method embodiment, and details are not repeated here.
As shown in fig. 8, a schematic structural diagram of another embodiment of a terminal device provided by the present application, where a terminal device 80 is a second terminal device in the foregoing method embodiment, may include a processor 800, a memory 802, and a transceiver 804.
Processor 800 may be a general purpose Central Processing Unit (CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above-described program schemes.
The Memory 802 may be, but is not limited to, a read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a random access Memory (random access Memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a compact disc (Compact Disc Read-Only Memory) or other optical disk storage, a compact disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code or computer programs in the form of instructions or data structures and that can be accessed by a computer. The memory 802 may be stand alone and coupled to the processor 800 via a bus. Memory 802 may also be integrated with processor 800.
A transceiver 804 is coupled to the processor 800 for receiving and transmitting information.
The memory 802 is used for storing a computer program for executing the above scheme, and is controlled to execute by the processor 80. The processor 800 is configured to execute a computer program stored in the memory 802.
The code stored in the memory 802 may be used to perform the steps of the data processing method provided above in fig. 2-3 involving a second terminal device in implementing a terminal device handover. Reference may be made specifically to the implementation manner of the above method embodiment, and details are not repeated here.
As shown in fig. 9, a schematic structural diagram of another embodiment of a server provided by the present application, where a server 90 is a server in the above embodiment of a method, may include a processor 900, a memory 902, and a transceiver 904.
Processor 900 may be a general purpose Central Processing Unit (CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above-described program schemes.
The Memory 902 may be, but is not limited to, read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, random access Memory (random access Memory, RAM) or other type of dynamic storage device that can store information and instructions, but may also be electrically erasable programmable read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), compact disc read-Only Memory (Compact Disc Read-Only Memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code or computer programs in the form of instructions or data structures and that can be accessed by a computer. The memory 902 may be self-contained and coupled to the processor 900 via a bus. Memory 902 may also be integrated with processor 900.
A transceiver 904 is coupled to the processor 900 for receiving and transmitting information.
The memory 902 is used for storing a computer program for executing the above scheme, and is controlled by the processor 90 to execute the program. The processor 900 is configured to execute a computer program stored in the memory 902.
The code stored in the memory 902 may be used to perform the steps related to the server in the data processing method for implementing a handover of a terminal device provided in fig. 2-3 above. Reference may be made specifically to the implementation manner of the above method embodiment, and details are not repeated here.
Embodiments of the present application also provide a computer storage medium having instructions stored therein which, when executed on a computer or processor, cause the computer or processor to perform one or more steps of a method as described in any of the embodiments above. The individual constituent modules of the apparatus described above, if implemented in the form of software functional units and sold or used as separate products, can be stored in the computer-readable storage medium, and based on such understanding, the technical solution of the present application may be embodied essentially or partly or wholly or partly in the form of a software product, which is stored in the computer-readable storage medium.
The computer readable storage medium may be an internal storage unit of the apparatus according to the foregoing embodiment, such as a hard disk or a memory. The computer-readable storage medium may be an external storage device of the above device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like. Further, the computer-readable storage medium may include both an internal storage unit and an external storage device of the above device. The computer-readable storage medium is used to store the computer program and other programs and data required by the apparatus. The above-described computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program, which may be stored in a computer-readable storage medium and which, when executed, may comprise the steps of the embodiments of the methods described above. And the aforementioned storage medium includes: various media capable of storing program code, such as ROM, RAM, magnetic or optical disks.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
It will be appreciated by those of ordinary skill in the art that the various exemplary elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Those of skill in the art will appreciate that the functions described in connection with the various illustrative logical blocks, modules, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware, software, firmware, or any combination thereof. If implemented in software, the functions described by the various illustrative logical blocks, modules, and steps may be stored on a computer readable medium or transmitted as one or more instructions or code and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media, such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another (e.g., according to a communication protocol). In this manner, a computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementing the techniques described in this disclosure. The computer program product may include a computer-readable medium.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A data processing method for implementing handover of a terminal device, comprising:
when the terminal equipment needs to be switched, switching and logging in and running a target application program on the first terminal equipment through a first account; the first account is an account which is logged in and runs the target application program on the second terminal equipment before the terminal equipment needs to be switched;
the first terminal equipment acquires first access information of target access equipment from a server; the target access device comprises one or more access devices, and user behavior data corresponding to the target application program are recorded in the target access device; the user behavior data comprise operation data in the target application program which is run on the second terminal device and registered with the first account before the terminal device is switched;
the first terminal equipment establishes communication connection with the target access equipment according to the first access information, and acquires the user behavior data from the target access equipment;
the target access device is one or more third terminal devices when the user behavior data cannot be acquired from the second terminal device after the target application program is switched and logged on and operated on the first terminal device through the first account; wherein,
The third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule; the third terminal device stores part or all of the user behavior data which are sent in real time by the second terminal device when the target application program logged in the first account is operated;
the third terminal device is used for searching a plurality of fourth terminal devices in a preset geographic range according to the geographic position information of the second terminal device by the server; determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding line rate z, the corresponding line drop rate d and the corresponding routing length u between the second terminal device and the fourth terminal device;
wherein, the online rate z can refer to the online time length in unit time; the disconnection rate d refers to the percentage of the disconnection time length in the login state to the total time length; the routing length u may refer to the number of routing nodes included in a path routed by the terminal device;
specifically, the value w corresponding to each fourth terminal device is calculated according to the following formula:
Wherein, the value w, # denotes the fourth terminal i>Refers to the distance between the fourth terminal device i and the second terminal device, +.>Indicating the corresponding presence z,/of said fourth terminal device i>The corresponding drop rate d, + of the fourth terminal device i>Refers to a routing length u between the fourth terminal device i and the second terminal device; />、/>、/>、/>Is a weighting factor, wherein->、/>、/>The four weighting factors are added to 1;
according to the value w, confirming that the first m largest corresponding fourth terminal devices are the third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
2. A data processing method for implementing handover of a terminal device, comprising:
logging in and running a target application program on the second terminal equipment through the first account;
after the second terminal equipment acquires second access information of one or more third terminal equipment from the server, the second terminal equipment establishes communication connection with the one or more third terminal equipment according to the second access information, and sends user behavior data to the one or more third terminal equipment in real time; the user behavior data comprise operation data in the target application program which logs in the first account on the second terminal equipment; wherein,
The third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule;
the third terminal device is used for searching a plurality of fourth terminal devices in a preset geographic range according to the geographic position information of the second terminal device by the server; determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding line rate z, the corresponding line drop rate d and the corresponding routing length u between the second terminal device and the fourth terminal device;
wherein, the online rate z can refer to the online time length in unit time; the disconnection rate d refers to the percentage of the disconnection time length in the login state to the total time length; the routing length u may refer to the number of routing nodes included in a path routed by the terminal device;
specifically, the value w corresponding to each fourth terminal device is calculated according to the following formula:
wherein, the value w, # denotes the fourth terminal i>Refers to the distance between the fourth terminal device i and the second terminal device, +.>Indicating the corresponding presence z,/of said fourth terminal device i >The corresponding drop rate d, + of the fourth terminal device i>Refers to a routing length u between the fourth terminal device i and the second terminal device; />、/>、/>、/>Is a weighting factor, wherein->、/>、/>The four weighting factors are added to 1;
according to the value w, confirming that the first m largest corresponding fourth terminal devices are the third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
3. A data processing method for implementing handover of a terminal device, comprising:
the server determines one or more third terminal devices according to the geographic position information of the second terminal devices; the method comprises the steps that a target application program is logged in and operated on second terminal equipment through a first account; the third terminal device runs the target application program;
the server sends second access information corresponding to the one or more third terminal devices to the second terminal device;
the server receives a data request of first terminal equipment; the first terminal equipment is the terminal equipment for switching and logging in the first account;
the server determines first access information of target access equipment according to the data request; and transmitting the first access information to the first terminal device;
The third terminal device is used for searching a plurality of fourth terminal devices in a preset geographic range according to the geographic position information of the second terminal device by the server; determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding line rate z, the corresponding line drop rate d and the corresponding routing length u between the second terminal device and the fourth terminal device;
wherein, the online rate z can refer to the online time length in unit time; the disconnection rate d refers to the percentage of the disconnection time length in the login state to the total time length; the routing length u may refer to the number of routing nodes included in a path routed by the terminal device;
specifically, the value w corresponding to each fourth terminal device is calculated according to the following formula:
wherein, the value w, # denotes the fourth terminal i>Refers to the distance between the fourth terminal device i and the second terminal device, +.>Indicating the corresponding presence z,/of said fourth terminal device i>Indicating that the fourth terminal device i corresponds toIs d, & gt>Refers to a routing length u between the fourth terminal device i and the second terminal device; / >、/>、/>、/>Is a weighting factor, wherein->、/>、/>The four weighting factors are added to 1;
according to the value w, confirming that the first m largest corresponding fourth terminal devices are the third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
4. A method according to claim 3, wherein in case user behavior data cannot be obtained from the second terminal device, the server determines the first access information of the target access device from the data request, comprising:
the server determines the one or more third terminal devices as target access devices according to the data request;
the server determines the second access information as the first access information.
5. A terminal device, characterized in that the terminal device is a first terminal device, comprising:
the first processing unit is used for switching and logging in and running the target application program through the first account number under the condition that the terminal equipment needs to be switched; the first account is an account which is logged in and runs the target application program on the second terminal equipment before the terminal equipment needs to be switched;
A first receiving unit for acquiring first access information of a target access device from a server; the target access device comprises one or more access devices, and user behavior data corresponding to the target application program are recorded in the target access device; the user behavior data comprise operation data in the target application program which is run on the second terminal device and registered with the first account before the terminal device is switched;
the first receiving unit is further configured to establish a communication connection with the target access device according to the first access information, and acquire the user behavior data from the target access device;
the target access device is one or more third terminal devices when the user behavior data cannot be acquired from the second terminal device after the target application program is switched and logged on and operated on the first terminal device through the first account; wherein,
the third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule; the third terminal device stores part or all of the user behavior data which are sent in real time by the second terminal device when the target application program logged in the first account is operated;
The third terminal device is used for searching a plurality of fourth terminal devices in a preset geographic range according to the geographic position information of the second terminal device by the server; determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding line rate z, the corresponding line drop rate d and the corresponding routing length u between the second terminal device and the fourth terminal device;
wherein, the online rate z can refer to the online time length in unit time; the disconnection rate d refers to the percentage of the disconnection time length in the login state to the total time length; the routing length u may refer to the number of routing nodes included in a path routed by the terminal device;
specifically, the value w corresponding to each fourth terminal device is calculated according to the following formula:
wherein, the value w, # denotes the fourth terminal i>Refers to the distance between the fourth terminal device i and the second terminal device, +.>Indicating the corresponding presence z,/of said fourth terminal device i>The corresponding drop rate d, + of the fourth terminal device i>Refers to a routing length u between the fourth terminal device i and the second terminal device; / >、/>、/>、/>Is a weighting factor, wherein->、/>、/>The four weighting factors are added to 1;
according to the value w, confirming that the first m largest corresponding fourth terminal devices are the third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
6. A terminal device, characterized in that the terminal device is a second terminal device, comprising:
the second processing unit is used for logging in and running a target application program through the first account;
a second receiving unit, configured to obtain second access information of one or more third terminal devices from the server;
the second sending unit is used for establishing communication connection with the one or more third terminal devices according to the second access information and sending user behavior data to the one or more third terminal devices in real time; the user behavior data comprise operation data in the target application program which logs in the first account on the second terminal equipment; wherein,
the third terminal device runs the target application program; the distance between the third terminal device and the second terminal device meets a preset rule;
The third terminal device is used for searching a plurality of fourth terminal devices in a preset geographic range according to the geographic position information of the second terminal device by the server; determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding line rate z, the corresponding line drop rate d and the corresponding routing length u between the second terminal device and the fourth terminal device;
wherein, the online rate z can refer to the online time length in unit time; the disconnection rate d refers to the percentage of the disconnection time length in the login state to the total time length; the routing length u may refer to the number of routing nodes included in a path routed by the terminal device;
specifically, the value w corresponding to each fourth terminal device is calculated according to the following formula:
wherein, the value w, # denotes the fourth terminal i>Refers to the distance between the fourth terminal device i and the second terminal device, +.>Indicating the corresponding presence z,/of said fourth terminal device i>The corresponding drop rate d, + of the fourth terminal device i>Refers to a routing length u between the fourth terminal device i and the second terminal device; / >、/>、/>、/>Is a weighting factor, wherein->、/>、/>The four weighting factors are added to 1;
according to the value w, confirming that the first m largest corresponding fourth terminal devices are the third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
7. A server, comprising:
a third processing unit, configured to determine one or more third terminal devices according to the geographical location information of the second terminal device; the method comprises the steps that a target application program is logged in and operated on second terminal equipment through a first account; the third terminal device runs the target application program;
a third sending unit, configured to send second access information corresponding to the one or more third terminal devices to the second terminal device;
a third receiving unit, configured to receive a data request of the first terminal device; the first terminal equipment is the terminal equipment for switching and logging in the first account;
the third processing unit is further configured to determine first access information of a target access device according to the data request;
the third sending unit is further configured to send the first access information to the first terminal device;
The third terminal device is used for searching a plurality of fourth terminal devices in a preset geographic range according to the geographic position information of the second terminal device by the server; determining one or more third terminal devices from the fourth terminal device according to the distance k between the fourth terminal device and the second terminal device, the corresponding line rate z, the corresponding line drop rate d and the corresponding routing length u between the second terminal device and the fourth terminal device;
wherein, the online rate z can refer to the online time length in unit time; the disconnection rate d refers to the percentage of the disconnection time length in the login state to the total time length; the routing length u may refer to the number of routing nodes included in a path routed by the terminal device;
specifically, the value w corresponding to each fourth terminal device is calculated according to the following formula:
wherein, the value w, # denotes the fourth terminal i>Refers to the distance between the fourth terminal device i and the second terminal device, +.>Indicating the corresponding presence z,/of said fourth terminal device i>The corresponding drop rate d, + of the fourth terminal device i>Refers to a routing length u between the fourth terminal device i and the second terminal device; / >、/>、/>、/>Is a weighting factor, wherein->、/>、/>The four weighting factors are added to 1;
according to the value w, confirming that the first m largest corresponding fourth terminal devices are the third terminal devices; or according to the value w, confirming that the fourth terminal equipment larger than the threshold value is the third terminal equipment.
8. The server according to claim 7, wherein in case that the user behavior data cannot be acquired from the second terminal device, the third processing unit is specifically configured to, when determining the first access information of the target access device according to the data request:
determining the one or more third terminal devices as target access devices according to the data request;
and determining the second access information as the first access information.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-4.
CN202010432773.2A 2020-05-20 2020-05-20 Data processing method, related equipment and medium for realizing terminal equipment switching Active CN111611573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010432773.2A CN111611573B (en) 2020-05-20 2020-05-20 Data processing method, related equipment and medium for realizing terminal equipment switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010432773.2A CN111611573B (en) 2020-05-20 2020-05-20 Data processing method, related equipment and medium for realizing terminal equipment switching

Publications (2)

Publication Number Publication Date
CN111611573A CN111611573A (en) 2020-09-01
CN111611573B true CN111611573B (en) 2023-10-03

Family

ID=72198734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010432773.2A Active CN111611573B (en) 2020-05-20 2020-05-20 Data processing method, related equipment and medium for realizing terminal equipment switching

Country Status (1)

Country Link
CN (1) CN111611573B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112245902A (en) * 2020-09-29 2021-01-22 西安万像电子科技有限公司 Switching method and device of terminal equipment
CN112488964B (en) * 2020-12-18 2024-04-16 深圳市镜玩科技有限公司 Image processing method, related device, equipment and medium for sliding list
CN112822170A (en) * 2020-12-30 2021-05-18 安徽鸿程光电有限公司 Application program login method, device, equipment and medium
CN114245370B (en) * 2021-12-24 2024-04-16 深圳市潮流网络技术有限公司 Communication management method, device, server and computer storage medium
CN114760346A (en) * 2022-03-14 2022-07-15 浙江毫微米科技有限公司 Equipment switching method, device and system and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984226A (en) * 2012-11-15 2013-03-20 北京奇虎科技有限公司 Terminal devices and application program switching method between terminal devices
CN105872625A (en) * 2015-12-11 2016-08-17 乐视致新电子科技(天津)有限公司 Method for switching video playing terminal and terminal equipment
CN108134785A (en) * 2017-12-18 2018-06-08 广州市壹软网络科技有限公司 A kind of switching method of server, device, terminal device and storage medium
CN108804507A (en) * 2018-04-16 2018-11-13 北京嘀嘀无限科技发展有限公司 The address location determining method and system of user
WO2019109976A1 (en) * 2017-12-08 2019-06-13 腾讯科技(深圳)有限公司 Multimedia file play record saving method, terminal and storage medium
CN110389821A (en) * 2019-07-24 2019-10-29 广州小鹏汽车科技有限公司 More account processing methods, processing unit, application program and electronic device
CN110704566A (en) * 2019-09-30 2020-01-17 深圳前海环融联易信息科技服务有限公司 Data acquisition method and device based on geographic position and computer equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430487A (en) * 2015-11-30 2016-03-23 小米科技有限责任公司 Multimedia data playing method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984226A (en) * 2012-11-15 2013-03-20 北京奇虎科技有限公司 Terminal devices and application program switching method between terminal devices
CN105872625A (en) * 2015-12-11 2016-08-17 乐视致新电子科技(天津)有限公司 Method for switching video playing terminal and terminal equipment
WO2019109976A1 (en) * 2017-12-08 2019-06-13 腾讯科技(深圳)有限公司 Multimedia file play record saving method, terminal and storage medium
CN108134785A (en) * 2017-12-18 2018-06-08 广州市壹软网络科技有限公司 A kind of switching method of server, device, terminal device and storage medium
CN108804507A (en) * 2018-04-16 2018-11-13 北京嘀嘀无限科技发展有限公司 The address location determining method and system of user
CN110389821A (en) * 2019-07-24 2019-10-29 广州小鹏汽车科技有限公司 More account processing methods, processing unit, application program and electronic device
CN110704566A (en) * 2019-09-30 2020-01-17 深圳前海环融联易信息科技服务有限公司 Data acquisition method and device based on geographic position and computer equipment

Also Published As

Publication number Publication date
CN111611573A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN111611573B (en) Data processing method, related equipment and medium for realizing terminal equipment switching
CN110611723B (en) Scheduling method and device of service resources
CN109451002B (en) CDN node selection method and equipment
CN110839084B (en) Session management method, device, equipment and medium
CN104980416A (en) Data access method, device and system in content distribution network
CN104955095A (en) Communication network detection method and communication network detection device
CN104796391A (en) Check-in verification method, check-in verification client, server, system and device
EP3226510A1 (en) Gis based compression and reconstruction of gps data for transmission from a vehicular edge platform to the cloud
CN112770129B (en) Live broadcast-based group chat establishing method, device, server and medium
CN112203231A (en) Infectious disease tracking method, infectious disease tracking device, electronic equipment and storage medium
CN109450669A (en) A kind of method of abnormal alarm, equipment and computer storage medium
CN105306202A (en) Identity verification method and device, server
CN106293996B (en) Method of data synchronization, main equipment, alternate device and system
CN110972071A (en) Multi-mode positioning method, positioning server, terminal and storage medium
US20220382821A1 (en) Method for recommending social user, electronic device and non-transitory computer-readable storage medium
CN108259340B (en) Topology information transmission method and device
CN108494700B (en) Cross-link data transmission method and device, computer equipment and storage medium
US20150172371A1 (en) Method and device for providing communication connection for a plurality of candidate applications in a mobile device
WO2014155699A1 (en) Communication control apparatus, communication control method, communication system, program, and recording medium
CN113840313B (en) Network mode control method and device of mobile terminal and computer equipment
CN113055350B (en) Data transmission method, device, equipment and readable storage medium
CN112866897B (en) Positioning measurement method, terminal and network node
CN107622195B (en) Processing method and terminal equipment
CN113726608A (en) Data processing method and device
KR102004503B1 (en) Notification method about game, client, server and iot apparatus for performing the method

Legal Events

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