Mobile device online control method and system, mobile device, and server
By notifying the second mobile device and triggering a server request when the mobile device does not send a heartbeat data stream, the network online recovery of the mobile device is realized, the problem of disconnection under abnormal circumstances is solved, and the network online rate and user experience are improved.
Patent Information
- Application Number
- CN202110915539.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-10
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-08-10
AI Technical Summary
Under abnormal circumstances (such as data services being unavailable or TCP link abnormalities), the mobile device causes the network connection to be disconnected, affecting the network online rate, and it is difficult to effectively restore the connection with existing technology.
When the heartbeat data stream is not received within a preset period, a data stream is sent to the second mobile device to indicate that the device is offline, and recovery request information is sent through the server to trigger the first mobile device to perform network online recovery.
It improves the network online rate of mobile devices, improves user experience, ensures that network connections can be restored in time under abnormal circumstances, and reduces the time waiting for restarting.
Smart Images

Figure CN115915031B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method and system for online control of a mobile device, a mobile device, and a server. Background Art
[0002] Sometimes, mobile devices (such as smart watches, etc.) have problems such as data services being unavailable or Transmission Control Protocol (TCP) link anomalies under abnormal circumstances, resulting in a long period of inability to log in to the server after disconnection. If the data service is unavailable, the mobile device cannot perform TCP / Internet Protocol (IP) requests normally, and in most cases can only wait to restart the mobile device, which will seriously affect the online rate of the mobile device; if the TCP link is abnormal, after multiple failed attempts, even if the surrounding network returns to normal, the mobile device generally will not or rarely make TCP connection requests to re-login to the server, which also affects the online rate of the mobile device. It can be seen that the above-mentioned data services being unavailable and TCP link anomalies will cause the network connection to be disconnected, thereby affecting the network online rate. Summary of the invention
[0003] The embodiment of the invention discloses a mobile device online control method and system, a mobile device and a server, which are used to improve the network online rate of a target mobile device.
[0004] A first aspect of an embodiment of the present invention discloses an online control method for a mobile device, which may include:
[0005] When the heartbeat data stream sent by the first mobile device is not received within a preset period, sending a first data stream to the second mobile device, wherein the first data stream is used to indicate that the first mobile device is in an offline state;
[0006] receiving a second data stream sent by the second mobile device, wherein the second data stream includes restoration request information for requesting the first mobile device to restore network online;
[0007] A third data stream is sent to the first server, wherein the third data stream includes the restore request information and the telephone number of the first mobile device.
[0008] As an optional implementation, in the first aspect of the embodiment of the present invention, when the heartbeat data stream sent by the first mobile device is not received within the preset period, before sending the first data stream to the second mobile device, the method further includes:
[0009] After the first mobile device logs in, detecting whether a heartbeat data stream sent by the first mobile device is received within a preset period;
[0010] If not received, the step of sending the first data stream to the second mobile device is performed.
[0011] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
[0012] If the heartbeat data stream is received within the preset period, a fourth data stream is sent to the second mobile device, where the fourth data stream is used to indicate that the first mobile device is in an online state.
[0013] A second aspect of an embodiment of the present invention discloses an online control method for a mobile device, which may include:
[0014] receiving a third data stream sent by the second server, wherein the third data stream includes restoration request information for requesting the first mobile device to restore the network online and a telephone number of the first mobile device;
[0015] A request text message is sent to the first mobile device according to the phone number, wherein the request text message includes the restoration request information.
[0016] A third aspect of an embodiment of the present invention discloses a method for online control of a mobile device, which may include:
[0017] receiving a first data stream sent by a second server, wherein the first data stream is used to indicate that the first mobile device is in an offline state;
[0018] A second data stream is sent to the second server, where the second data stream includes recovery request information for requesting the first mobile device to recover network online.
[0019] As an optional implementation manner, in the third aspect of the embodiment of the present invention, the method further includes:
[0020] A fourth data stream sent by the second server is received, and no processing is performed after receiving the fourth data stream, wherein the fourth data stream is used to indicate that the first mobile device is in an online state.
[0021] A fourth aspect of an embodiment of the present invention discloses a method for online control of a mobile device, which may include:
[0022] Receiving a request message sent by the first server, wherein the request message includes restoration request information for requesting restoration of the network online;
[0023] Perform online network recovery according to the preset network recovery strategy.
[0024] As an optional implementation, in a fourth aspect of the embodiment of the present invention, performing online network recovery according to a preset network recovery strategy includes:
[0025] Determine whether the sender of the request SMS is the first server;
[0026] If it is the first server and it is determined that the content of the request SMS is the recovery request information for restoring the network online, detecting the current offline reason;
[0027] If the current offline reason is a data service establishment problem, triggering a network scanning mechanism to perform a network scan, selecting a target network from the scan results to reset, and re-logging into the second server;
[0028] If the current offline reason is a TCP link establishment problem, execute the step of requesting to connect to the network.
[0029] As an optional implementation manner, in the fourth aspect of the embodiment of the present invention, the method further includes:
[0030] After the network connection is successful, a data stream containing login registration information is sent to the second server;
[0031] And, sending a heartbeat data stream to the second server when a preset period is met.
[0032] A fifth aspect of an embodiment of the present invention discloses an online control system for a mobile device, which may include: a first server, a second server, a first mobile device, and a second mobile device;
[0033] The second server is configured to send a first data stream to the second mobile device when the heartbeat data stream sent by the first mobile device is not received within a preset period, the first data stream is used to indicate that the first mobile device is in an offline state; and receive a second data stream sent by the second mobile device, the second data stream includes recovery request information for requesting the first mobile device to restore the network online; and send a third data stream to the first server, the third data stream includes the recovery request information and the telephone number of the first mobile device;
[0034] The first server is configured to receive the third data stream sent by the second server; and send a request SMS to the first mobile device according to the phone number, wherein the request SMS includes the recovery request information;
[0035] The first mobile device is configured to receive the first data stream sent by the second server; and send the second data stream to the second server;
[0036] The second mobile device is used to receive the request SMS message sent by the first server; and perform network online recovery according to a preset network recovery strategy.
[0037] A sixth aspect of an embodiment of the present invention discloses a server, which may include:
[0038] A memory storing executable program code;
[0039] a processor coupled to the memory;
[0040] The processor calls the executable program code stored in the memory to execute an online control method for a mobile device disclosed in the first aspect of an embodiment of the present invention or an online control method for a mobile device disclosed in the second aspect of an embodiment of the present invention.
[0041] A seventh aspect of an embodiment of the present invention discloses a mobile device, which may include:
[0042] A memory storing executable program code;
[0043] a processor coupled to the memory;
[0044] The processor calls the executable program code stored in the memory to execute an online control method for a mobile device disclosed in the third aspect of an embodiment of the present invention or an online control method for a mobile device disclosed in the fourth aspect of an embodiment of the present invention.
[0045] An eighth aspect of an embodiment of the present invention discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any method of the first aspect of the embodiment of the present invention, or the steps of any method of the second aspect of the embodiment of the present invention, or the steps of any method of the third aspect of the embodiment of the present invention, or the steps of any method of the fourth aspect of the embodiment of the present invention.
[0046] A fifth aspect of an embodiment of the present invention discloses a computer program product. When the computer program product runs on a computer, the computer executes the steps of any method of the first aspect of the embodiment of the present invention, or the steps of any method of the second aspect of the embodiment of the present invention, or the steps of any method of the third aspect of the embodiment of the present invention, or the steps of any method of the fourth aspect of the embodiment of the present invention.
[0047] A sixth aspect of an embodiment of the present invention discloses an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes the steps of any method of the first aspect of the embodiment of the present invention, or the steps of any method of the second aspect of the embodiment of the present invention, or the steps of any method of the third aspect of the embodiment of the present invention, or the steps of any method of the fourth aspect of the embodiment of the present invention.
[0048] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0049] In an embodiment of the present invention, when the second server does not receive the heartbeat data stream sent by the first mobile device within a preset period, it will send a first data stream to the second mobile device, and the first data stream is used to indicate that the first mobile device is in an offline state. Then, after receiving the first data stream, the second mobile device can understand that the first mobile device is in an offline state based on the first data stream, and then send a second data stream to the second server, the second data stream includes recovery request information requesting the first mobile device to restore the network online. According to the second data stream, a third data stream is then sent to the first server, and the third data stream includes recovery request information and the telephone number of the first mobile device. After receiving the third data stream, the first server sends a request SMS to the first mobile device based on the telephone number, and the request SMS includes recovery request information. After receiving the request SMS, the first mobile device After receiving the message, the network will be restored online according to the preset network recovery strategy; it can be seen that the implementation of the embodiment of the present invention can utilize the first mobile device (such as a watch) to periodically send a heartbeat data stream to maintain the keep-alive state, so that when the second server does not receive the heartbeat data stream within a preset period, it can be considered that the first mobile device is offline, and then notify the second mobile device (mobile phone), and the second mobile device can send a second data stream to the second server to request the first mobile device to restore the network online, and the second server needs to send the recovery request information and the phone number of the first mobile device to the first server (SMS server), the first server can send a request SMS to the first mobile device, and the special SMS sent by the first server triggers the first mobile device to restore the network online, so as to improve the network online rate of the first mobile device and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 A schematic diagram of an application scenario of the online control method for a mobile device disclosed in an embodiment of the present invention;
[0052] Figure 2 This is an interactive schematic diagram of the online control method for a mobile device disclosed in the first embodiment of the present invention;
[0053] Figure 3 This is an interactive schematic diagram of the online control method for a mobile device disclosed in the second embodiment of the present invention;
[0054] Figure 4 A schematic diagram of a process of performing online network recovery on a first mobile device disclosed in Embodiment 3 of the present invention;
[0055] Figure 5 A schematic diagram of a process of triggering a network scanning mechanism to perform network scanning by a first mobile device disclosed in an embodiment of the present invention;
[0056] Figure 6 This is a schematic diagram of the structure of a server disclosed in Embodiment 1 of the present invention;
[0057] Figure 7 This is a schematic diagram of the structure of a server disclosed in Embodiment 2 of the present invention;
[0058] Figure 8 A schematic diagram of the structure of a mobile device disclosed in Embodiment 1 of the present invention;
[0059] Fig. 9 This is a schematic diagram of the structure of a mobile device disclosed in Embodiment 2 of the present invention;
[0060] Fig.10 A schematic diagram of the structure of an online control system for a mobile device disclosed in an embodiment of the present invention;
[0061] Fig.11 This is a schematic diagram of the structure of a server disclosed in Embodiment 3 of the present invention;
[0062] Fig.12 This is a schematic diagram of the structure of a mobile device disclosed in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present invention and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0065] First, see Figure 1 , Figure 1 A schematic diagram of an application scenario of the online control method for a mobile device disclosed in an embodiment of the present invention; Figure 1 The application scenarios include: target mobile devices (such as smart watches among wearable devices), third-party devices (such as mobile phones used by parents), servers and SMS servers (or SMS service platforms), among which, data streams are transmitted between the target mobile device and the server, data streams are transmitted between the server and the third-party device, data streams are transmitted between the server and the SMS server, and SMS messages are transmitted between the SMS server and the target mobile device.
[0066] Specifically, based on Figure 1 In the application scenario, the target mobile device maintains the keep-alive state by sending a heartbeat data stream to the server. After the target mobile device has an abnormality such as the data service being unavailable or the TCP link connection problem, it will not be able to send the heartbeat data stream to the server on schedule. Therefore, the server will think that the target mobile device has a network abnormality and notify the third-party device of the information that the target mobile device is offline. If the third-party device needs the target mobile device to be online, it will send a recovery request to the server to restore the network of the target mobile device, and then the server will forward it to the SMS server, and the SMS server will send a special SMS to the target mobile device to notify the target mobile device to restore the network online. It is suitable for the smart watch worn by the student to be offline. The parent's mobile phone sends a special SMS through the SMS server to trigger the smart watch to restore the network online, so that the smart watch user can be contacted in real time or the smart watch user can be monitored in real time. While improving the online rate of the smart watch network, the personal safety of the smart watch is improved. Of course, it is also suitable for restoring the network of smart watches or mobile phones worn by people such as the elderly or mentally retarded, so as to improve the monitoring of the personal safety of these people. It is even suitable for scenarios where a mobile device uses another mobile device to control the mobile device while monitoring certain scenes. I will not list them one by one here.
[0067] Combination Figure 1The present invention discloses a method and system for controlling a mobile device online, a mobile device and a server, which are used to send a special SMS to a target mobile device through a SMS server to trigger the target mobile device to resume network online and improve the network online rate of the target mobile device.
[0068] The technical solution of the present invention will be described in detail below in conjunction with specific embodiments.
[0069] See also Figure 2 , Figure 2 FIG. 1 is an interactive schematic diagram of the online control method for a mobile device disclosed in the first embodiment of the present invention; Figure 2 As shown, the mobile device online control method may include:
[0070] 201. When the second server does not receive a heartbeat data stream sent by a first mobile device within a preset period, the second server sends a first data stream to a second mobile device, where the first data stream is used to indicate that the first mobile device is in an offline state.
[0071] Combination Figure 1 In the application scenario, the second server is a server for implementing data flow, such as an application server, for example, a server corresponding to the WeChat program, and the first mobile device is a smart watch among wearable devices. The smart watch can be bound to a mobile phone, and the mobile phone can be used as the second mobile device in the embodiment of the present invention.
[0072] In the embodiment of the present invention, after the first mobile device is turned on, it will send a data stream containing login registration information to the second server under normal network conditions to complete the login of the second server, and then periodically send a heartbeat data stream to the second server to maintain the keep-alive state in the second server. After the network of the first mobile device is abnormal, the heartbeat data stream is no longer sent to the second server. Therefore, if the second server no longer receives the heartbeat data stream of the first mobile device within a preset period, it can be considered that the network of the first mobile device is abnormal and is offline. It should be noted that what is transmitted between the first mobile device and the second server is a data stream.
[0073] For example, the reasons why the first mobile device has a network anomaly include but are not limited to: abnormal data service registration, the user actively closes the data, or the TCP link is abnormally disconnected.
[0074] 202. A second mobile device receives the first data stream.
[0075] The second mobile device may be a mobile phone. When the first mobile device is a smart watch, the mobile phone may be bound to the smart watch. The mobile phone is used by parents, and the smart watch is used by students.
[0076] 203. The second mobile device sends a second data stream to the second server, where the second data stream includes recovery request information for requesting the first mobile device to recover network online.
[0077] When the second mobile device receives the first data stream sent by the second server, it knows that the first mobile device is offline based on the first data stream. When the second mobile device needs the first mobile device to restore the network online, it sends a second data stream containing recovery request information to the second server.
[0078] 204. The second server receives a second data stream sent by a second mobile device.
[0079] 205. The second server sends a third data stream to the first server, where the third data stream includes restoration request information and a telephone number of the first mobile device.
[0080] The second server determines based on the second data stream that the second mobile device needs the first mobile device to restore the network online, and then sends a third data stream to the first server, which also includes restoration request information and the telephone number of the first mobile device.
[0081] Exemplarily, the first server may be a short message server (short message service platform), which is a server based on the circuit domain and provided by a third-party operator.
[0082] 206. The first server sends a request text message to the first mobile device according to the phone number, where the request text message includes restoration request information.
[0083] The first server sends a request SMS to the first mobile device according to the phone number, and the request SMS includes recovery request information. It can be seen that the first server sends a special SMS including recovery request information to the first mobile device, triggering the first mobile device to restore the network online.
[0084] 207. The first mobile device receives the request SMS and performs online network recovery according to a preset network recovery strategy.
[0085] In the embodiment of the present invention, after receiving the request SMS, the first mobile equipment will perform network online recovery according to a preset network recovery strategy, thereby maintaining the network online.
[0086] It can be seen that by implementing the embodiments of the present invention, the first mobile device (such as a watch) can be used to periodically send a heartbeat data stream to maintain a keep-alive state, so that when the second server does not receive the heartbeat data stream within a preset period, it can be considered that the first mobile device is in an offline state, and then the second mobile device (mobile phone) is notified. The second mobile device can then send a second data stream to the second server to request the first mobile device to restore the network online. The second server needs to send the recovery request information and the phone number of the first mobile device to the first server (SMS server). The first server can send a request SMS to the first mobile device, and the special SMS sent by the first server triggers the first mobile device to restore the network online, so as to improve the network online rate of the first mobile device and enhance the user experience.
[0087] See also Figure 3 , Figure 3 This is an interactive schematic diagram of the online control method for a mobile device disclosed in the second embodiment of the present invention; Figure 3 The mobile device online control method shown may include:
[0088] 301. After the network connection is successful, the first mobile device sends a data stream containing login registration information to the second server.
[0089] After the first mobile device is turned on and the network connection is successful (normally), the first mobile device sends the login registration information to the second server, thereby completing the login on the second server.
[0090] 302. When the network is normal and a preset period is met, the first mobile device sends a heartbeat data stream to the second server.
[0091] Among them, the first mobile device is preset with a preset period for sending a heartbeat data stream to the second server. The preset period can be set by the first mobile device itself and then informed to the second server, or the preset period can be set by negotiation between the first mobile device and the second server, or set by the second server itself and then informed to the first mobile device.
[0092] The first mobile device sends a heartbeat data stream to maintain a keep-alive state on the second server.
[0093] 303. The second server detects whether a heartbeat data stream is received within a preset period; if the heartbeat data stream is received within the preset period, go to steps 304-305; if the heartbeat data stream is not received within the preset period, go to steps 306-312.
[0094] 304. The second server sends a fourth data stream to the second mobile device, where the fourth data stream is used to indicate that the first mobile device is in an online state.
[0095] 305. The second mobile device receives the fourth data stream, does not perform any processing, and ends this process.
[0096] In the embodiment of the present invention, if the second server receives the heartbeat data stream within a preset period, it can determine that the first mobile device is online, and then send the fourth data stream to the second mobile device so that the second mobile device can timely grasp the online status of the first mobile device.
[0097] 306. The second server sends a first data stream to the second mobile device, where the first data stream is used to indicate that the first mobile device is in an offline state.
[0098] In an embodiment of the present invention, if a network abnormality occurs in the first mobile device and the second server does not receive a heartbeat data stream within a preset period, it can be determined that the first mobile device is in an offline state, and then the first data stream is sent to the second mobile device to inform the second mobile device that the first mobile device is in an offline state.
[0099] 307. The second mobile device receives the first data stream.
[0100] 308. The second mobile device sends a second data stream to the second server, where the second data stream includes recovery request information for requesting the first mobile device to recover network online.
[0101] When the second mobile device learns from the first data stream that the first mobile device is offline, if it needs to know the current location information of the first mobile device or other information of the first mobile device, it will send a second data stream to the second server so that the second server can trigger the first mobile device to restore the network online according to the recovery request information contained in the second data stream.
[0102] As an optional implementation, the second mobile device may negotiate with the first mobile device in advance to set a specific docking code, which is used to request the first mobile device to restore the network after the first mobile device goes offline, and is stored in the first mobile device and the second mobile device. Further, encryption and decryption keys are mutually negotiated for the specific docking code, the encryption key is stored in the second mobile device, and the decryption key is stored in the first mobile device. Then, the second mobile device sends a second data stream to the second server, and the second data stream includes recovery request information for requesting the first mobile device to restore the network online, and the recovery request information at least includes the specific docking code encrypted by the encryption key.
[0103] 309. The second server receives a second data stream sent by the second mobile device.
[0104] 310. The second server sends a third data stream to the first server, where the third data stream includes restoration request information and a telephone number of the first mobile device.
[0105] In the embodiment of the present invention, since the first mobile device is in an offline state, the second server notifies the first server by sending a third data stream, and the first server notifies the first mobile device by sending a special SMS.
[0106] 311. The first server sends a request SMS to the first mobile device according to the phone number, where the request SMS includes recovery request information.
[0107] The request SMS sent by the first server includes restoration request information.
[0108] 312. The first mobile device receives the request SMS and performs online network recovery according to a preset network recovery strategy.
[0109] Based on the optional implementation of step 308, step 312 may specifically include:
[0110] After receiving the above-mentioned request SMS, the first mobile device obtains the recovery request information contained in the request SMS, further extracts the encrypted specific docking code from the recovery request information, and decrypts it using the stored decryption key. If the decrypted specific docking code matches the stored specific docking code, network online recovery is performed according to the preset network recovery strategy to accurately identify whether it is a real online recovery request.
[0111] Exemplarily, after the watch is turned on, it logs in to the server under normal network conditions and periodically sends a heartbeat data stream to the server to maintain a keep-alive state. The server also sends a data stream containing an indication that the watch is online to the mobile phone so that the mobile phone can promptly understand the online status of the watch. In the case of abnormalities in the watch network, such as abnormal registration of data services, active closing of network data by the watch user, or abnormal disconnection of the TCP link, the server fails to receive the heartbeat data stream of the watch within a period of time, and sends a data stream containing an indication that the watch is offline to the mobile phone. After knowing that the watch is offline, the mobile phone can first send a recovery request message to the server for requesting the watch to resume online connection. The server then further sends the phone number of the watch and the recovery request message to the SMS server. The SMS server then sends a request SMS to the watch, thereby triggering the watch to resume online connection.
[0112] It can be seen that through the above embodiment, when no network anomaly occurs, the first mobile device (such as a watch) periodically sends a heartbeat data stream to maintain a keep-alive state. When a network anomaly occurs in the first mobile device, the second server does not receive the heartbeat data stream within a preset period, confirms that the first mobile device is in an offline state, and then notifies the second mobile device (mobile phone). If the second mobile device needs the first mobile device to restore the network online to obtain information such as the current location from the first mobile device, it can send a second data stream to the second server to request the first mobile device to restore the network online. The second server needs to send the recovery request information and the phone number of the first mobile device to the first server (SMS server), and the first server sends a request SMS to the first mobile device so that the first mobile device can perform network online recovery according to a preset network recovery strategy. In summary, in an embodiment of the present invention, since it has been determined that the first mobile device is in an offline state, the first server will send a special SMS to trigger the first mobile device to restore the network online, so as to improve the network online rate of the first mobile device and enhance the user experience.
[0113] See also Figure 4 , Figure 4 FIG. 1 is a flow chart of the first mobile device performing online network recovery disclosed in Embodiment 3 of the present invention; Figure 4 As shown, after receiving the request SMS, the first mobile device performs online network recovery according to a preset network recovery strategy, which specifically includes:
[0114] 401. The first mobile device determines whether the sender of the request SMS is the first server; if so, go to step 402; if not, go to step 409.
[0115] Exemplarily, the first mobile device detects whether the sender of the request SMS is a specific third party, which is the first server in the embodiment of the present invention. Specifically, it detects whether the sender of the request SMS is the number of the SMS server. If it is the number of the SMS server and the content of the SMS is to restore the network online, 403 will be further executed; if it is not the number of the SMS server, there is no need to restore the network online, that is, the first mobile device does not need to process it.
[0116] 402. The first mobile device determines whether the content of the request SMS is a recovery request message for restoring the network online. If so, go to step 403; if not, go to step 409.
[0117] 403. The first mobile equipment detects a current offline reason.
[0118] Optionally, the current offline reason includes but is not limited to: data service establishment problem (that is, data service registration abnormality), user actively closing data, or TCP link establishment problem (TCP link abnormal disconnection).
[0119] 404. The first mobile device determines whether the current offline reason is a data service establishment problem; if so, go to steps 408-406; if not, go to step 405.
[0120] 405 . The first mobile device determines whether the current offline reason is a TCP link establishment problem; if so, go to step 406 ; if not, go to step 407 .
[0121] 406. The first mobile device re-initiates a request to log in to the second server to log in to the second server.
[0122] 407. The first mobile device sends a heartbeat data stream.
[0123] 408 . The first mobile device triggers a network scanning mechanism to perform a network scan, selects a target network from the scan results to reset, and then goes to step 406 .
[0124] 409. The first mobile device does not need to restore the network online.
[0125] It can be seen that by implementing the above embodiment, after receiving the request SMS, the first mobile device can detect the reasons for its offlineness in turn, re-login to the network according to different offline reasons, and re-login to the second server to send a heartbeat data stream to maintain the keep-alive state, thereby improving the network online rate of the first mobile device.
[0126] See also Figure 5 , Figure 5 FIG. 1 is a flow chart of a first mobile device triggering a network scanning mechanism to perform network scanning disclosed in an embodiment of the present invention; Figure 5 As shown, the first mobile device triggers the network scanning mechanism to perform network scanning specifically including:
[0127] 501. A first mobile device detects a network scanning request.
[0128] 502. The first mobile device scans the 5G network.
[0129] 503. The first mobile device determines whether the 5G network signal meets the data communication conditions. If so, go to step 513; if not, go to step 504.
[0130] It can be understood that to determine whether the 5G network signal meets the data communication conditions, it is to detect whether the signal strength of the 5G network signal is not less than the threshold. The threshold can be pre-set according to actual conditions.
[0131] 504. The first mobile device scans the 4G network.
[0132] 505. The first mobile device determines whether the 4G network signal meets the data communication condition. If so, go to step 513; if not, go to step 506.
[0133] It can be understood that to determine whether the 4G network signal meets the data communication conditions, it is to detect whether the signal strength of the 4G network signal is not less than a threshold, and the threshold can be pre-set according to actual conditions.
[0134] 506. The first mobile device scans the 3G network.
[0135] 507 . The first mobile device determines whether the 3G network signal meets the data communication condition. If so, go to step 513 . If not, go to step 508 .
[0136] It can be understood that judging whether the 3G network signal meets the data communication condition is to detect whether the signal strength of the 3G network signal is not less than a threshold, and the threshold can be preset according to actual conditions.
[0137] 508. The first mobile device scans the 2G network.
[0138] 509. The first mobile device determines whether the 2G network signal meets the data communication condition. If so, go to step 513; if not, go to step 510.
[0139] It can be understood that to determine whether the 2G network signal meets the data communication conditions is to detect whether the signal strength of the 2G network signal is not less than a threshold, and the threshold can be pre-set according to actual conditions.
[0140] 510. The first mobile device scans WIFI networks.
[0141] 511. The first mobile device determines whether there is an available WIFI network. If yes, go to step 513; if not, go to step 512.
[0142] 512. The first mobile device outputs a result prompt indicating that the network is unavailable.
[0143] The scanning method is adopted from 5G-2G network to WIFI network. If any of the networks is unavailable, the scanning result of network unavailable will be obtained and the corresponding prompt will be output.
[0144] 513. The first mobile device outputs a scan result of available networks.
[0145] If an available network is scanned, the scanning result of the available network is output, and then the scanned network is connected, and the first server is logged in again.
[0146] It can be seen that by implementing the above embodiment, network scanning can be effectively performed to restore the network online of the first mobile device as soon as possible, thereby improving the network online rate.
[0147] See also Figure 6 , Figure 6 FIG. 1 is a schematic diagram of the structure of the server disclosed in the first embodiment of the present invention; Figure 6 As shown, the server includes:
[0148] The first transceiver module 610 is used to send a first data stream to the second mobile device when the heartbeat data stream sent by the first mobile device is not received within a preset period, and the first data stream is used to indicate that the first mobile device is in an offline state;
[0149] The first transceiver module 610 is further configured to receive a second data stream sent by a second mobile device, where the second data stream includes restoration request information for requesting the first mobile device to restore the network online;
[0150] The first transceiver module 610 is further configured to send a third data stream to the first server, where the third data stream includes the restoration request information and the telephone number of the first mobile device.
[0151] It can be seen that the implementation of the above-mentioned server can utilize the first mobile device (such as a watch) to periodically send a heartbeat data stream to maintain the keep-alive state, so that when the server does not receive the heartbeat data stream within a preset period, it can consider that the first mobile device is in an offline state, and then notify the second mobile device (mobile phone). The second mobile device can send a second data stream to the server to request the first mobile device to restore the network online. The server needs to send the recovery request information and the phone number of the first mobile device to the first server (SMS server). The first server can send a request SMS to the first mobile device, and the special SMS sent by the first server triggers the first mobile device to restore the network online, so as to improve the network online rate of the first mobile device and enhance the user experience.
[0152] Further integration Figure 6 The server further includes a first detection module 620, which is further configured to detect whether a heartbeat data stream sent by the first mobile device is received within a preset period after a mobile device logs in, before sending the first data stream to the second mobile device when the first transceiver module 610 does not receive the heartbeat data stream sent by the first mobile device within a preset period;
[0153] Specifically, if it is detected that the first transceiver module 610 does not receive the heartbeat data stream, the first transceiver module 610 sends the first data stream to the second mobile device.
[0154] As an optional implementation, the first transceiver module 610 receives the heartbeat data stream within a preset period and sends a fourth data stream to the second mobile device, where the fourth data stream is used to indicate that the first mobile device is in an online state.
[0155] See also Figure 7 , Figure 7 FIG. 1 is a schematic diagram of the structure of the server disclosed in Embodiment 2 of the present invention; Figure 7 As shown, the server includes:
[0156] The second transceiver module 710 is used to receive a third data stream sent by the second server, the third data stream including recovery request information for requesting the first mobile device to restore network online and the telephone number of the first mobile device; and to send a request SMS to the first mobile device according to the telephone number, the request SMS including the recovery request information.
[0157] See also Figure 8 , Figure 8 FIG. 1 is a schematic diagram of the structure of a mobile device disclosed in Embodiment 1 of the present invention; Figure 8 As shown, the mobile device includes:
[0158] A third transceiver module 810 is used to receive a first data stream sent by a second server, where the first data stream is used to indicate that the first mobile device is in an offline state;
[0159] The third transceiver module 810 is further used to send a second data stream to the second server, where the second data stream includes restoration request information for requesting the first mobile device to restore the network online.
[0160] Further optional, combined with the above Figure 8 The third transceiver module 810 is further used to receive a fourth data stream sent by the second server, and does not perform any processing after receiving the fourth data stream, where the fourth data stream is used to indicate that the first mobile device is in an online state.
[0161] See also Fig. 9 , Fig. 9 FIG. 1 is a schematic diagram of the structure of a mobile device disclosed in Embodiment 2 of the present invention; Fig. 9 As shown, the mobile device includes:
[0162] The fourth transceiver module 910 is used to receive a request message sent by the first server, where the request message includes restoration request information for requesting restoration of the network online;
[0163] The network recovery module 920 is used to perform online network recovery according to a preset network recovery strategy.
[0164] Optionally, the network recovery module 920 performs online network recovery according to a preset network recovery strategy in the following specific manners:
[0165] Determine whether the sender of the request SMS is the first server; if it is the first server and determine that the content of the request SMS is recovery request information for restoring the network online, detect the current offline reason; if the current offline reason is a problem in establishing data services, trigger the network scanning mechanism to perform a network scan, select the target network from the scan results to reset, and re-log in to the second server; if the current offline reason is a problem in establishing a TCP link, request to connect to the network.
[0166] Optionally, the fourth transceiver module 910 is further used to send a data stream containing login registration information to the second server after the network connection is successful; and to send a heartbeat data stream to the second server when a preset period is met.
[0167] See also Fig.10 , Fig.10 Schematic diagram of the structure of the online control system of the mobile device disclosed in the embodiment of the present invention; Fig.10 As shown, the system includes:
[0168] A first server 1001, a second server 1002, a first mobile device 1003, and a second mobile device 1004;
[0169] The second server 1002 is configured to send a first data stream to the second mobile device 1004 when the heartbeat data stream sent by the first mobile device 1003 is not received within a preset period, the first data stream is used to indicate that the first mobile device 1003 is in an offline state; and receive a second data stream sent by the second mobile device 1004, the second data stream includes recovery request information for requesting the first mobile device 1003 to restore the network online; and send a third data stream to the first server 1001, the third data stream includes the recovery request information and the telephone number of the first mobile device 1003;
[0170] The first server 1001 is configured to receive the third data stream sent by the second server 1002; and send a request SMS to the first mobile device 1003 according to the phone number, the request SMS including the recovery request information;
[0171] The first mobile device 1003 is configured to receive a first data stream sent by the second server 1002; and send a second data stream to the second server 1002;
[0172] The second mobile device 1004 is used to receive the request SMS message sent by the first server 1001; and perform network online recovery according to a preset network recovery strategy.
[0173] Among them, the description of the first server 1001 can refer to the introduction of the first server in the above method embodiment, the description of the second server 1002 can refer to the introduction of the second server in the above method embodiment, the description of the first mobile device 1003 can refer to the introduction of the first mobile device in the above method embodiment, and the description of the second mobile device 1004 can refer to the introduction of the second mobile device in the above method embodiment, which will not be repeated here.
[0174] See also Fig.11 , Fig.11 This is a schematic diagram of the structure of a server disclosed in Embodiment 3 of the present invention; Fig.11 The servers shown may include:
[0175] A memory 1101 storing executable program codes;
[0176] A processor 1102 coupled to the memory 1101;
[0177] The processor 1102 calls the executable program code stored in the memory 1101 to execute Figures 2 to 3 Partial steps of any method for online control of mobile device.
[0178] See also Fig.12 , Fig.12 This is a schematic diagram of the structure of a mobile device disclosed in Embodiment 3 of the present invention; Fig.12 The mobile device shown may include:
[0179] A memory 1201 storing executable program codes;
[0180] A processor 1202 coupled to the memory 1201;
[0181] The processor 1202 calls the executable program code stored in the memory 1201 to execute Figures 2 to 5 Partial steps or all steps of any mobile device online control method.
[0182] The embodiment of the present invention further discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute Figures 2 to 5 A method for online control of a mobile device is disclosed.
[0183] The embodiment of the present invention also discloses a computer program product, which, when executed on a computer, enables the computer to execute Figures 2 to 5 Part or all of the steps of any disclosed method.
[0184] The embodiment of the present invention further discloses an application publishing platform, which is used to publish a computer program product, wherein when the computer program product is run on a computer, the computer executes Figures 2 to 5 Part or all of the steps of any disclosed method.
[0185] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0186] The above is a detailed introduction to a mobile device online control method and system, a mobile device, and a server disclosed in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for online control of a mobile device, characterized in that: Applied to the second server, the method comprises: When the heartbeat data stream sent by the first mobile device is not received within a preset period, sending a first data stream to the second mobile device, wherein the first data stream is used to indicate that the first mobile device is in an offline state; receiving a second data stream sent by the second mobile device, wherein the second data stream includes restoration request information for requesting the first mobile device to restore network online; A third data stream is sent to the first server, wherein the third data stream includes the recovery request information and the telephone number of the first mobile device, so that the first server sends a request text message to the first mobile device according to the telephone number, and the request text message includes the recovery request information, so that the first server sends a request text message to the first mobile device according to the telephone number, and the request text message includes the recovery request information.
2. The method according to claim 1, characterized in that When the heartbeat data stream sent by the first mobile device is not received within the preset period, before sending the first data stream to the second mobile device, the method further includes: After the first mobile device logs in, detecting whether a heartbeat data stream sent by the first mobile device is received within a preset period; If not received, the step of sending the first data stream to the second mobile device is performed.
3. The method according to claim 2, characterized in that The method further comprises: If the heartbeat data stream is received within the preset period, a fourth data stream is sent to the second mobile device, where the fourth data stream is used to indicate that the first mobile device is in an online state.
4. A method for online control of a mobile device, characterized in that: Applied to a first server, the method comprises: receiving a third data stream sent by a second server, the third data stream comprising recovery request information for requesting the first mobile device to restore the network online and the telephone number of the first mobile device; the third data stream is sent by the second server when receiving a second data stream sent by the second mobile device, the second data stream comprising recovery request information for requesting the first mobile device to restore the network online, the second data stream is sent by the second mobile device when receiving a first data stream sent by the second server, and the first data stream is sent to the second mobile device when the second server does not receive a heartbeat data stream sent by the first mobile device within a preset period; A request text message is sent to the first mobile device according to the phone number, wherein the request text message includes the restoration request information.
5. A method for online control of a mobile device, characterized in that: Applied to a second mobile device, the method comprises: receiving a first data stream sent by a second server, wherein the first data stream is used to indicate that the first mobile device is in an offline state; the first data stream is sent to the second mobile device when the second server does not receive a heartbeat data stream sent by the first mobile device within a preset period; A second data stream is sent to the second server so that the second server sends a third data stream to the first server, wherein the second data stream includes recovery request information for requesting the first mobile device to restore network online, and the third data stream includes the recovery request information and the telephone number of the first mobile device; the third data stream is used to instruct the first server to send a request SMS to the first mobile device according to the telephone number, and the request SMS includes the recovery request information.
6. The method according to claim 5, characterized in that The method further comprises: A fourth data stream sent by the second server is received, and no processing is performed after receiving the fourth data stream, wherein the fourth data stream is used to indicate that the first mobile device is in an online state.
7. A method for online control of a mobile device, characterized in that: Applied to a first mobile device, the method comprises: Receive a request SMS sent by a first server, the request SMS containing recovery request information for requesting to restore the network online; the request SMS is sent by the first server when receiving a third data stream sent by a second server, the third data stream containing recovery request information for requesting the first mobile device to restore the network online and the telephone number of the first mobile device; the third data stream is sent by the second server when receiving a second data stream sent by a second mobile device, the second data stream is sent by the second mobile device when receiving a first data stream sent by the second server, the second data stream containing recovery request information for requesting the first mobile device to restore the network online, and the first data stream is sent by the second server to the second mobile device when the second server does not receive a heartbeat data stream sent by the first mobile device within a preset period; Perform online network recovery according to the preset network recovery strategy.
8. The method according to claim 7, characterized in that The performing of online network recovery according to a preset network recovery strategy includes: Determine whether the sender of the request SMS is the first server; If it is the first server and it is determined that the content of the request SMS is the recovery request information for restoring the network online, detecting the current offline reason; If the current offline reason is a data service establishment problem, triggering a network scanning mechanism to perform a network scan, selecting a target network from the scan results to reset, and re-logging into the second server; If the current offline reason is a TCP link establishment problem, execute the step of requesting to connect to the network.
9. The method according to claim 7 or 8, characterized in that: The method further comprises: After the network connection is successful, a data stream containing login registration information is sent to the second server; And, sending a heartbeat data stream to the second server when a preset period is met.
10. A mobile device online control system, characterized in that: include: a first server, a second server, a first mobile device, and a second mobile device; The second server is configured to send a first data stream to the second mobile device when the heartbeat data stream sent by the first mobile device is not received within a preset period, wherein the first data stream is used to indicate that the first mobile device is in an offline state; and receive a second data stream sent by the second mobile device, wherein the second data stream includes recovery request information for requesting the first mobile device to restore the network online; and, sending a third data stream to the first server, the third data stream including the restoration request information and the telephone number of the first mobile device; The first server is used to receive the third data stream sent by the second server; and, sending a request text message to the first mobile device according to the phone number, the request text message including the restoration request information; The first mobile device is configured to receive the first data stream sent by the second server; and, sending the second data stream to the second server; The second mobile device is used to receive the request SMS sent by the first server; And, perform network online recovery according to the preset network recovery strategy.
11. A server, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the online control method for a mobile device according to any one of claims 1 to 3, or executes the online control method for a mobile device according to claim 4.
12. A mobile device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute an online control method for a mobile device as described in any one of claims 5-6, or executes an online control method for a mobile device as described in any one of claims 7-9.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the program implements the steps of the method described in any one of claims 1 to 3, or the steps of the method described in claim 4, or the steps of the method described in any one of claims 5 to 6, or the steps of the method described in any one of claims 7 to 9.
