WO2020043209A1 - 断网状态的上报方法、装置及存储介质 - Google Patents

断网状态的上报方法、装置及存储介质 Download PDF

Info

Publication number
WO2020043209A1
WO2020043209A1 PCT/CN2019/103873 CN2019103873W WO2020043209A1 WO 2020043209 A1 WO2020043209 A1 WO 2020043209A1 CN 2019103873 W CN2019103873 W CN 2019103873W WO 2020043209 A1 WO2020043209 A1 WO 2020043209A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
message
communication
preset
server
Prior art date
Application number
PCT/CN2019/103873
Other languages
English (en)
French (fr)
Inventor
纪永亮
李建梅
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020043209A1 publication Critical patent/WO2020043209A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • MDM mobile terminal management control system
  • another method for reporting a network disconnection state including:
  • Another method for reporting a network disconnection state including:
  • another apparatus for reporting a disconnection state including:
  • the monitoring module is configured to monitor whether the first terminal enables a preset communication method; the determination module is configured to determine that the communication identifier of the preset communication method meets a preset rule when the first terminal is monitored to enable the preset communication method, wherein The rule is set such that the second terminal senses that the first terminal is in a disconnected state and the second terminal is currently in a networked state; the first reporting module is configured to report the disconnected state of the first terminal to the server.
  • a computer-readable storage medium stores a computer program, and the computer program is configured to execute any one of the foregoing method embodiments when running. Steps.
  • the terminal since the terminal is in a disconnected state, it can actively report the current status of the lost terminal to the service center through a non-direct connection, so that the service center can adopt more technologies. Measures to achieve the management and control of the lost terminal, instead of just adopting the strategy of giving up the management and control, which can solve the problem that the service center in the related technology can usually only give up the management and control of the lost terminal, resulting in the loss of control of the terminal.
  • the server can accurately determine the cause of the terminal's disconnection and the current status, thereby eliminating the service center or the frequently connected service failure, and performing the technical effect of further controlling the network disconnection equipment.
  • FIG. 1 is a schematic diagram of an operating environment of a method for reporting a disconnected state according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for reporting a disconnected state according to one embodiment of the present disclosure
  • FIG. 3 is a flowchart of another method for reporting a network disconnection status according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of a terminal reporting a state of disconnection from the network by turning on a Wi-Fi hotspot function in a network disconnection environment according to an optional embodiment of the present disclosure
  • FIG. 6 is a flowchart of a disconnected terminal connected to a surrounding networked terminal in a disconnected environment to report its disconnected state according to an optional embodiment of the present disclosure
  • FIG. 7 is a flowchart of a service center maintaining a terminal password and performing a password update interaction with the terminal according to an optional embodiment of the present disclosure
  • FIG. 10 is a structural block diagram of another apparatus for reporting a disconnected state according to an embodiment of the present disclosure.
  • FIG. 12 is a structural block diagram of another apparatus for reporting a disconnected state according to an embodiment of the present disclosure.
  • FIG. 13 is a structural block diagram of another apparatus for reporting a disconnected state according to an optional embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram of an operating environment of a method for reporting a disconnected state according to an embodiment of the present disclosure.
  • the method for reporting a disconnected state according to the present disclosure may be run on the first terminal 1 shown in FIG. 1. (That is, the network disconnection terminal), on the second terminal 2 (that is, the network connection terminal) or on the server 3 (hereinafter also referred to as a service center).
  • the interaction between the first terminal 1, the second terminal 2, and the server 3 as shown in FIG. 1 is used to report the disconnection status of the first terminal 1.
  • each device in the first terminal 1, the second terminal 2, and the server 3 may include: one or more processors (the processor may include, but is not limited to, a microprocessor (MCU) or programmable logic A processing device such as a device (FPGA) and a memory provided to store data.
  • the processor may include, but is not limited to, a microprocessor (MCU) or programmable logic A processing device such as a device (FPGA) and a memory provided to store data.
  • each of the devices described above may further include a transmission device and an input / output device configured as a communication function.
  • the memory may be configured to store a computer program, for example, a software program and module of application software, such as a computer program corresponding to the method for reporting a disconnection state in the embodiment of the present disclosure.
  • the processor executes the computer program stored in the memory to execute the computer program.
  • Various functional applications and data processing that is, the above-mentioned method for reporting the disconnected state is implemented.
  • the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory.
  • the memory may further include a memory remotely disposed with respect to the processor, and these remote memories may be connected to each of the above devices through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the transmission device is configured to receive or transmit data via a network.
  • the foregoing specific network examples may include a wireless network provided by a communication provider of a terminal or a server.
  • the transmission device includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network equipment through a base station so as to communicate with the Internet.
  • the transmission device may be a radio frequency (RF) module, which is configured to communicate with the Internet in a wireless manner.
  • RF radio frequency
  • a service center system deployed on a computer network cloud and an application installed on a mobile terminal need to be deployed.
  • the main functions of the service center system include the following aspects:
  • the unique identifier can be the International Mobile Equipment Identity (IMEI), Mobile Equipment Identifier (MEID), International Mobile Subscriber Identification Number (IMSI) One or more combinations that can uniquely identify the identity of the terminal.
  • the communication key can be a password set to a local area network or near field communication function, such as a terminal Wi-Fi hotspot, Bluetooth, and near field communication (NFC).
  • the main functions of the terminal application may include the following aspects:
  • the computer network refers to the computer network where the service center is located. Only the terminal and the service center in the same network environment are considered to be connected.
  • the terminal finds that the network is disconnected, it actively turns on its own network or near field communication function, which can include but is not limited to: Wi-Fi hotspot, Bluetooth, NFC. These features that are turned on have certain characteristics, such as: Wi-Fi hotspot
  • Wi-Fi hotspot The name meets the preset rules.
  • All networked terminals monitor whether there are other terminals with Wi-Fi hotspots, Bluetooth, NFC and other networks or near field communication functions enabled, and whether the names meet the network disconnection naming rules formulated by the service center. If so, the service center is requested to connect with the password of the lost terminal in order to initiate the connection actively.
  • the disconnected online reporting method described in the present disclosure is suitable for a scenario where the terminal is connected to the cloud service center. Due to business requirements, the terminal needs to maintain a constant connection with the cloud service center. When the regular connection is disconnected, the service center can receive the network disconnection information reported by the terminal to accurately determine the reason and current status of the terminal's disconnection, thereby excluding the fault of the service center or the frequently connected service, and the network disconnection. The device performs further control operations.
  • Specific application scenarios may include, but are not limited to, one of the following: (1) Bring your own device (Bring, Your, Own, Device, or BYOD for short) applications, that is, mobile office, this scenario includes mobile phones, tablets, and communication with the office Other terminals of the module; (2) All kinds of intelligent hardware in the smart home are interconnected through home Wi-Fi, which helps to monitor and locate the status of the home network and the connection status of each intelligent terminal to strengthen the management and troubleshooting of the intelligent terminal; (3) Internet of vehicles; (4) Industrial Internet, for example: water and electricity monitoring terminal with wireless communication module.
  • FIG. 2 is a flowchart of a method for reporting a network disconnection state according to one embodiment of the present disclosure, as shown in FIG. 2, The process includes the following steps:
  • step S202 when it is determined that the first terminal is in a disconnected state, a preset communication method is started, wherein the communication identifier of the preset communication method meets a preset rule, and the preset rule is set so that the second terminal currently in the networked state perceives the A terminal is currently in a disconnected state, so as to report the disconnected state of the first terminal to the server through the second terminal.
  • the terminal since the terminal is in a disconnected state, it can actively report the current status of the lost terminal to the service center through a non-direct connection, so that the service center can take more technical measures to achieve
  • the management and control of the disconnected terminal instead of only adopting the strategy of giving up the control, can solve the problem that the service center in the related technology can usually only give up the management and control of the lost terminal, which leads to the loss of the ability to control and control the terminal.
  • the technical effect of the server being able to accurately determine the cause of the terminal's disconnection and the current status, thereby excluding the failure of the service center or frequently connected service, and performing further management and control operations on the disconnected equipment.
  • an execution subject of the method steps involved in the method embodiment may be a network disconnection terminal, etc., but is not limited thereto.
  • step numbers of the method steps involved in the method embodiments do not represent the order of execution.
  • the preset rule includes: a first part and a second part, wherein the first part is designated by the server, and the second part is identification information of the first terminal, so that the second terminal uses the identification information to Report the disconnected status to the server.
  • the preset rule further includes one of the following: a third part, where the third part is a password for the preset communication function; a third part and a fourth part, where the fourth part is the preset communication function The password update cycle.
  • Random password generation strategies include, but are not limited to, one of the following:
  • this timestamp can be the Wi-Fi hotspot on time or other attributes related time of the current device;
  • the current device attributes may include but is not limited to: some hardware attributes (for example: Mac address);
  • the preset rule includes: a first part, wherein the first part is specified by a server.
  • the disconnected terminal listens to the network disconnection and confirms, and opens a preset Wi-Fi hotspot.
  • This Wi-Fi hotspot is automatically turned on by the software after the terminal is disconnected, and the Wi-Fi hotspot name meets
  • the preset rule requires that the rule be specified by the service center, for example: a fixed string (equivalent to the first part above).
  • the method may further include the following execution steps:
  • Step S204 monitoring the connection request to the second terminal through the preset communication function
  • Step S206 In response to the connection request, send a first message to the second terminal, so that the second terminal reports the first message to the server, where the first message is set to indicate that the first terminal is currently disconnected from the network, and the first message includes : Identification information of the first terminal.
  • a terminal with a normal network connection monitors the surrounding Wi-Fi hotspots. If the hotspot name is found to meet the rules set by the service center, the hotspot name is sent to the service center in a specific format message, and the service center is requested to return this Wi-Fi hotspot password.
  • the message contains the Wi-Fi hotspot name and the request message ID for this Wi-Fi hotspot password.
  • the service center maintains the correspondence between Wi-Fi hotspot names and Wi-Fi hotspot passwords of all terminals.
  • the service center parses all the messages reported by the terminal. If the type of the parsed message is a Wi-Fi hotspot password request message, it searches for the corresponding password based on the Wi-Fi hotspot name in the message and returns it.
  • the connected terminal uses the password returned by the service center to connect to the Wi-Fi hotspot of the disconnected terminal.
  • the disconnected terminal monitors the Wi-Fi hotspot connection event, and sends a disconnected online report message (equivalent to the above-mentioned first message) to the connected terminal after the connection is successful, where the message contains the unique identifier of the disconnected terminal.
  • the first message further includes at least one of the following: the network disconnection time of the first terminal, and the geographic location of the first terminal.
  • the network disconnection message sent by the network disconnected terminal to the networked terminal may be supplemented with other additional information, such as: additional network disconnection time, additional geographical location, and simultaneous network disconnection time and geographical position.
  • the method may further include the following execution steps:
  • Step S208 receiving a second message from the second terminal, where the second message is set to indicate that the server has learned that the first terminal is currently in a disconnected state;
  • Step S210 In response to the second message, perform one of the following operations:
  • the service center After the service center confirms the network disconnection terminal, it returns a message confirming the network disconnection to the networked terminal.
  • the network-connected terminal forwards the network disconnection confirmation message returned by the service center to the network-disconnected terminal.
  • the disconnected terminal can implement one of the following actions:
  • the disconnection terminal has completed the report of disconnection and disconnection. In order to reduce power consumption or prevent other devices from discovering, the Wi-Fi hotspot is actively closed;
  • the disconnected terminal has completed the report of disconnection and disconnection. However, in order to maintain subsequent communication with the service center and maintain the current connection with the networked terminal, and to prevent other devices from connecting to increase power consumption, the disconnected terminal will use Wi -Fi hotspot hiding;
  • the disconnected terminal In order to avoid the disconnection of the network terminal and the disconnection of the terminal from the service center again, the disconnected terminal always keeps the Wi-Fi hotspot turned on and allows other devices to connect. Avoid power consumption caused by excessive terminal connections.
  • FIG. 3 is a flowchart of another method for reporting a disconnected state according to an embodiment of the present disclosure, as shown in FIG. 3 As shown, the process includes the following steps:
  • Step S302 monitoring whether the first terminal enables a preset communication mode
  • step S304 when it is monitored that the first terminal starts the preset communication method, it is determined that the communication identifier of the preset communication method meets a preset rule, wherein the preset rule is set so that the second terminal perceives that the first terminal is currently in a disconnected state.
  • the two terminals are currently in a networked state;
  • Step S306 Report the disconnected state of the first terminal to the server.
  • an execution subject of the method steps involved in the method embodiment may be a networked terminal or the like, but is not limited thereto.
  • step numbers of the method steps involved in the method embodiments do not represent the order of execution.
  • step S304 determining that the communication identifier satisfies a preset rule may include the following execution steps:
  • Step S3041 it is determined that the communication identifier includes a first part and a second part of a preset rule, wherein the first part is designated by the server and the second part is identification information of the first terminal.
  • the network disconnection terminal monitors the network disconnection and confirms, and turns on the preset Wi-Fi hotspot.
  • This Wi-Fi hotspot is automatically turned on by the software after the terminal is disconnected.
  • the Wi-Fi hotspot name meets the requirements of preset rules: [PREFIX] [SUFFIX], where [PREFIX] (equivalent to the first part above) is specified by the service center. For example: a fixed string, [SUFFIX] (equivalent to the second part above) is the unique identifier of each terminal, for example: the unique identifier of the terminal generated by IMEI, MEID, IMSI, or the service center. All terminals with normal networking status monitor the surrounding Wi-Fi hotspots. If the hotspot names are found to include [PREFIX] and [SUFFIX], make sure that the hotspot names meet the [PREFIX] [SUFFIX] rule.
  • Step S422 if the confirmation reply from the first terminal is not received within the preset time range, the mapping relationship between the identification information of the first terminal and the first communication key is restored to the identification information of the first terminal and Mapping relationship between the second communication keys.
  • step S503 all terminals with normal networking status monitor the surrounding Wi-Fi hotspots. If the hotspot name is found to meet the [PREFIX] [SUFFIX] rule, the [SUFFIX] is resolved from the hotspot name and reported to the service center in a specific format message, where , The message contains the [SUFFIX] and the disconnected online report message identifier, for example: ⁇ "type”: “disconnect”, "device”: "[SUFFIX]” ⁇ ;
  • step S504 the service center parses the message reported by the terminal. If the type of the parsed message is a disconnected online report message, the unique identifier of the disconnected device is extracted from the message body and the device is further processed.
  • step S604 the service center maintains the correspondence between Wi-Fi hotspot names and Wi-Fi hotspot passwords of all terminals.
  • the service center parses all the messages reported by the terminal. If the type of the parsed message is a Wi-Fi hotspot password request message, it searches for the corresponding password based on the Wi-Fi hotspot name in the message and returns it.
  • Step S605 The networked terminal connects to the Wi-Fi hotspot of the disconnected terminal using the password returned by the service center.
  • Step S606 The disconnected terminal monitors the Wi-Fi hotspot connection event, and sends a disconnected online report message to the networked terminal after the connection is successful, where the message includes: the unique identifier of the disconnected terminal, and other additional information can be attached, for example: Additional offline time, additional geographic location, and simultaneously additional offline time and geographic location.
  • step S607 the network-connected terminal forwards the network disconnection message sent by the network-disconnected terminal to the service center. Before forwarding, the network-connected terminal may add other additional information to the message sent by the network-disconnected terminal.
  • Step S609 The service center returns a message confirming the disconnection to the network terminal.
  • Step S610 The networked terminal forwards the network disconnection confirmation message returned by the service center to the network disconnected terminal.
  • Step S611 The network disconnection terminal may implement one of the following actions according to the actual situation:
  • the disconnected terminal has completed the report of disconnection and disconnection. However, in order to maintain subsequent communication with the service center and maintain the current connection with the networked terminal, and to prevent other devices from connecting to increase power consumption, the disconnected terminal will use Wi -Fi hotspot hiding;
  • Step S701 The service center updates the password of the terminal, which may include but is not limited to one of the following methods:
  • Method 1 The terminal requests the service center to update the password, which can be triggered periodically or by specific events, for example, the terminal is triggered after the network is disconnected and reconnected.
  • Method 2 The service center periodically triggers the terminal password update operation.
  • step S704 after receiving the password update success information reported by the terminal, the service center establishes a mapping relationship between the new password and the terminal.
  • Step S705 After the mapping center is successfully updated, the service center sends a confirmation of the mapping relationship modification success to the terminal, and starts a timer to wait for a response from the terminal.
  • step S708 if the service center does not receive a terminal confirmation response within the timeout period, the service center restores the mapping relationship between the terminal and the new password to the mapping relationship between the terminal and the old password.
  • the technical solution of the present disclosure that is essentially or contributes to the existing technology can be embodied in the form of a software product that is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present disclosure.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.
  • a device for reporting a disconnected state is also provided.
  • the device is configured to implement the foregoing embodiments and preferred implementations, and the descriptions will not be repeated.
  • the term "module” may implement a combination of software and / or hardware for a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and conceived.
  • FIG. 8 is a structural block diagram of a device for reporting a disconnected state according to one embodiment of the present disclosure.
  • the device includes a startup module 100 configured to enable a pre-connection when it is determined that a first terminal is in a disconnected state.
  • a communication method is set, wherein the communication identifier of the preset communication method satisfies a preset rule, and the preset rule is set so that the second terminal currently in the networked state perceives that the first terminal is currently in the disconnected state, so that the first terminal is The network disconnection status of the terminal is reported to the server.
  • the preset rule includes: a first part, wherein the first part is specified by a server.
  • the preset rule further includes one of the following: a second part, wherein the second part is identification information of the first terminal; a second part and a third part, wherein the third part is a preset communication function Password; the second, third, and fourth sections, where the fourth section is the password update cycle of the preset communication function.
  • FIG. 9 is a structural block diagram of a device for reporting a disconnection status according to an optional embodiment of the present disclosure.
  • the device includes all modules shown in FIG. 8 and includes :
  • the monitoring module 102 is configured to monitor the connection request to the second terminal through a preset communication function;
  • the sending module 104 is configured to send a second message to the second terminal in response to the connection request, so that the second terminal reports the first to the server Two messages, where the second message is set to indicate that the first terminal is currently disconnected from the network, and the second message includes identification information of the first terminal.
  • the second message further includes at least one of the following: the network disconnection time of the first terminal, and the geographical location of the first terminal.
  • the above device further includes a receiving module 106 configured to receive a third message from the second terminal, where the third message is set to indicate that the server has learned that the first terminal is currently in Network disconnected state; the execution module 108 is set to perform one of the following operations in response to the third message: close the preset communication method; maintain the communication connection with the second terminal and hide the preset communication method; keep the preset communication method open ; Keep the preset communication method open and limit the number of terminals accessed through the preset communication method.
  • a receiving module 106 configured to receive a third message from the second terminal, where the third message is set to indicate that the server has learned that the first terminal is currently in Network disconnected state
  • the execution module 108 is set to perform one of the following operations in response to the third message: close the preset communication method; maintain the communication connection with the second terminal and hide the preset communication method; keep the preset communication method open ; Keep the preset communication method open and limit the number of terminals accessed through the preset communication method.
  • another device for reporting a disconnection state is also provided.
  • the device is configured to implement the foregoing embodiments and preferred implementation manners, and the descriptions will not be repeated.
  • the term "module” may implement a combination of software and / or hardware for a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and conceived.
  • FIG. 10 is a structural block diagram of another device for reporting a disconnected state according to an embodiment of the present disclosure.
  • the device includes: a monitoring module 200 configured to monitor whether a first terminal enables a preset communication method; Module 202 is configured to determine that the communication identifier of the preset communication method satisfies a preset rule when it is monitored that the first terminal starts the preset communication method, wherein the preset rule is set so that the second terminal perceives that the first terminal is disconnected from the network, The second terminal is currently in a networked state; the first reporting module 204 is configured to report the disconnected state of the first terminal to the server.
  • the determining module 202 is configured to determine that the communication identifier includes a first part and a second part of a preset rule, wherein the first part is specified by the server and the second part is identification information of the first terminal.
  • the first reporting module 204 includes: a parsing unit (not shown in the figure) configured to parse the identification information of the first terminal from the communication identifier; and a packaging unit (not shown in the figure) configured to The identification information of the first terminal and the report identification of the disconnected message are encapsulated into a first message; a reporting unit (not shown in the figure) is configured to report the first message to the server.
  • the determining module 202 is configured to determine that the communication identifier includes a first part of a preset rule, wherein the first part is specified by the server.
  • FIG. 11 is a structural block diagram of another network disconnection reporting device according to an optional embodiment of the present disclosure.
  • the device includes all modules shown in FIG. 10 And further includes: an encapsulation module 206 configured to encapsulate the communication identifier and a communication password message identifier into a second message; a second reporting module 208 configured to report the second message to the server; and a first receiving module 210 configured to receive a message from The communication password corresponding to the preset communication method on the server; the sending module 212 is configured to use the communication password to send a connection request to the first terminal; and the second receiving module 214 is configured to receive the connection from the first terminal after the connection is successfully established.
  • a third message wherein the third message is set to indicate that the first terminal is currently in a disconnected state, and the third message includes identification information of the first terminal.
  • the first reporting module 204 is configured to forward the third message to the server.
  • the above device further includes: a third receiving module 216 configured to receive a fourth message from the server, wherein the fourth message is set to indicate that the server has learned that the first terminal is currently in Network disconnection state; the forwarding module 218 is configured to forward the fourth message to the first terminal.
  • This embodiment further provides another device for reporting a disconnected state.
  • the device is configured to implement the foregoing embodiments and preferred implementations, and the descriptions will not be repeated.
  • the term "module” may implement a combination of software and / or hardware for a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and conceived.
  • FIG. 12 is a structural block diagram of another apparatus for reporting a disconnected state according to an embodiment of the present disclosure.
  • the apparatus includes a first receiving module 300 configured to receive a second established communication with a first terminal. The first message reported by the terminal, wherein the second terminal is currently in a networked state; the parsing module 302 is configured to parse the first message to obtain the first message type identifier and the identification information of the first terminal; the determination module 304 is configured to A message type identifier and identification information of the first terminal determine that the first terminal is in a disconnected state.
  • the determining module 304 includes: a first determining unit (not shown in the figure), configured to determine that the first message is a message reporting a network disconnection status according to the first message type identifier; and a second determining unit (in the figure) (Not shown), configured to determine that the first terminal is in a disconnected state according to the identification information of the first terminal.
  • FIG. 13 is a structural block diagram of another device for reporting a disconnected state according to an optional embodiment of the present disclosure.
  • the device includes all modules shown in FIG. 12 And further includes: a second receiving module 306 configured to receive a second message reported by the second terminal, wherein the second message includes: a second message type identifier and a communication identifier of a preset communication method adopted by the first terminal; an acquisition module 308, configured to obtain a communication password corresponding to the communication identifier according to the second message type identifier and communication identifier; the first feedback module 310 is configured to return the communication password to the second terminal, wherein the communication password is set to obtain the first terminal's Identification information.
  • the obtaining module 308 includes: a third determining unit (not shown in the figure) configured to determine that the second message is a message for obtaining a communication password according to the second message type identifier; and an obtaining unit (not shown in the figure) ) Is set to find a corresponding communication password from a preset correspondence relationship according to the communication identifier.
  • the above device further includes: a sending module 312 configured to generate a first communication key and send the first communication key to the first terminal; and a third receiving module 314 to set
  • the update result is obtained after the first terminal uses the first communication key to update the existing second communication key locally
  • the update module 316 is configured to update the result if the update result indicates an update If successful, update the mapping relationship between the identification information of the first terminal and the second communication key to the mapping relationship between the identification information of the first terminal and the first communication key
  • the second feedback module 318 is configured to The first terminal returns a third message, where the third message is set to indicate that the mapping relationship between the identification information of the first terminal and the first communication key has been updated successfully
  • the restoration module 320 is set to be within the preset time range If no confirmation reply is received from the first terminal, the mapping relationship between the identification information of the first terminal and the first communication key is restored to the identification information of the first terminal and the second terminal.
  • the above device further includes a third feedback module 322 configured to return a fourth message to the second terminal, where the fourth message is set to indicate that the server has learned that the first terminal is currently in Network disconnected status.
  • the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to the above: the above modules are located in the same processor; or the above modules are arbitrarily combined The forms are located in different processors.
  • the storage medium may be configured to store a computer program configured to perform the following steps:
  • a preset communication method is turned on, wherein the communication identifier of the preset communication method satisfies a preset rule, and the preset rule is set so that the second terminal currently in the networked state perceives the first The terminal is currently in a disconnected state, so as to report the disconnected state of the first terminal to the server through the second terminal.
  • the storage medium is further configured to store a computer program configured to perform the following steps:
  • the storage medium is further configured to store a computer program configured to perform the following steps:
  • the storage medium may include, but is not limited to, a USB flash drive, a read-only memory (ROM), and a random access memory (RAM) ), Mobile hard disks, magnetic disks, or compact discs, which can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • An embodiment of the present disclosure further provides an electronic device including a memory and a processor.
  • the memory stores a computer program
  • the processor is configured to run the computer program to perform the steps in any one of the method embodiments described above.
  • the electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the processor, and the input-output device is connected to the processor.
  • the processor may be configured to execute the following steps by a computer program:
  • a preset communication method is turned on, wherein the communication identifier of the preset communication method satisfies a preset rule, and the preset rule is set so that the second terminal currently in the networked state perceives the first The terminal is currently in a disconnected state, so as to report the disconnected state of the first terminal to the server through the second terminal.
  • the foregoing processor may be further configured to execute the following steps by a computer program:
  • the method, device, and storage medium for reporting the disconnected state provided by the embodiments of the present disclosure have the following beneficial effects: It solves that the service center in the related art usually can only give up the management of the lost terminal, so that This leads to the loss of the ability to control and control the terminal, so that the server can accurately determine the cause of the terminal's disconnection and the current status, thereby troubleshooting the service center or the frequently connected service, and performing further management and control operations on the disconnected equipment. Technical effects.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本公开提供了一种断网状态的上报方法、装置及存储介质,该方法包括:当确定第一终端处于断网状态时,开启预设通讯方式,其中,预设通讯方式的通讯标识满足预设规则,预设规则设置为使得当前处于联网状态的第二终端感知第一终端当前处于断网状态,以通过第二终端将第一终端的断网状态上报至服务器。通过本公开,解决了相关技术中服务中心对失联终端通常只能采取放弃管控失联终端,从而导致失去对该终端的管控能力的问题,达到服务器能够准确地判断出终端的失联原因和当前状态,从而据此排除服务中心或常连接服务的故障,以及对断网设备执行进一步管控操作的技术效果。

Description

断网状态的上报方法、装置及存储介质 技术领域
本公开涉及通信领域,具体而言,涉及一种断网状态的上报方法、装置及存储介质。
背景技术
在研发移动终端管理控制系统(MDM)功能过程中,存在一个特殊场景亟待重点关注和解决。即,移动终端处于失联状态时的管控。
相关技术中的移动终端应用大多需要与各自的云服务中心进行交互。服务中心判断移动终端是否处于失联状态通常是依据心跳(Heart Beat)机制。心跳机制是指服务中心与移动终端之间通过计算机网络在传输控制协议(TCP)层建立一个长连接,每隔预设时间间隔便会向对方发送一个消息(即数据包)来表明终端当前状态。服务中心可以通过是否能够接收到移动终端发送的稳定心跳消息判断该终端是否失联。
由此可见,服务中心主要通过网络与移动终端之间保持心跳(Heart Beat)连接。如果服务中心的驻网状态正常,但是心跳连接断开,则说明移动终端此时处于失联状态,那么服务中心也将失去对该终端的管控能力,这也是本领域同类产品对失联终端的通用处理方案。
然而,上述通过心跳或定时发送业务数据判断终端失联的方案存在一个明显的缺陷:服务中心无法精确定位移动终端的失联原因。终端失联在很大程度上可能是由于该终端自身异常处于断网状态,但也无法排除因为服务中心功能异常、软件故障、心跳服务异常等原因导致终端失联。因此,服务中心对失联终端通常只能采取放弃管控失联终端的方案。
发明内容
本公开至少部分实施例提供了一种断网状态的上报方法、装置及存储介质,以至少解决相关技术中服务中心对失联终端通常只能采取放弃管控 失联终端,从而导致失去对该终端的管控能力的问题。
根据本公开的一个实施例,提供了一种断网状态的上报方法,包括:
当确定第一终端处于断网状态时,开启预设通讯方式,其中,预设通讯方式的通讯标识满足预设规则,预设规则设置为使得当前处于联网状态的第二终端感知第一终端当前处于断网状态,以通过第二终端将第一终端的断网状态上报至服务器。
根据本公开的另一个实施例,提供了另一种断网状态的上报方法,包括:
监听第一终端是否开启预设通讯方式;当监听到第一终端开启预设通讯方式时,确定预设通讯方式的通讯标识满足预设规则,其中,预设规则设置为第二终端感知第一终端当前处于断网状态,第二终端当前处于联网状态;将第一终端的断网状态上报至服务器。
根据本公开的又一个实施例,提供了又一种断网状态的上报方法,包括:
接收与第一终端建立通讯的第二终端上报的第一消息,其中,第二终端当前处于联网状态;解析第一消息,得到第一消息类型标识和第一终端的标识信息;根据第一消息类型标识和第一终端的标识信息确定第一终端处于断网状态。
根据本公开的又一个实施例,提供了一种断网状态的上报装置,包括:
启动模块,设置为当确定第一终端处于断网状态时,开启预设通讯方式,其中,预设通讯方式的通讯标识满足预设规则,预设规则设置为使得当前处于联网状态的第二终端感知第一终端当前处于断网状态,以通过第二终端将第一终端的断网状态上报至服务器。
根据本公开的又一个实施例,提供了另一种断网状态的上报装置,包括:
监听模块,设置为监听第一终端是否开启预设通讯方式;确定模块, 设置为当监听到第一终端开启预设通讯方式时,确定预设通讯方式的通讯标识满足预设规则,其中,预设规则设置为第二终端感知第一终端处于断网状态,第二终端当前处于联网状态;第一上报模块,设置为将第一终端的断网状态上报至服务器。
根据本公开的又一个实施例,提供了又一种断网状态的上报装置,包括:
第一接收模块,设置为接收与第一终端建立通讯的第二终端上报的第一消息,其中,第二终端当前处于联网状态;解析第一消息,得到第一消息类型标识和第一终端的标识信息;确定模块,设置为根据第一消息类型标识和第一终端的标识信息确定第一终端处于断网状态。
根据本公开的又一个实施例,还提供了一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。
通过本公开至少部分实施例,由于在终端处于断网状态的情况下,能够通过非直连的途径主动上报向服务中心上报失联终端的当前状态,以便于服务中心便可以采取更多的技术措施来实现对失联终端的管控,而非仅仅采取放弃管控的策略,由此可以解决相关技术中服务中心对失联终端通常只能采取放弃管控失联终端,从而导致失去对该终端的管控能力的问题,达到服务器能够准确地判断出终端的失联原因和当前状态,从而据此排除服务中心或常连接服务的故障,以及对断网设备执行进一步管控操作的技术效果。
附图说明
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明设置为解释本公开,并不构成对本 公开的不当限定。在附图中:
图1是根据本公开其中一实施例的断网状态的上报方法运行环境示意图;
图2是根据本公开其中一实施例的断网状态的上报方法的流程图;
图3是根据本公开其中一实施例的另一种断网状态的上报方法的流程图;
图4是根据本公开其中一实施例的又一种断网状态的上报方法的流程图;
图5是根据本公开其中一可选实施例的终端在断网环境下通过开启Wi-Fi热点功能上报其断网失联状态的流程图;
图6是根据本公开其中一可选实施例的断网终端在断网环境下连接周围联网终端上报其断网失联状态的流程图;
图7是根据本公开其中一可选实施例的服务中心维护终端密码及和终端进行密码更新交互的流程图;
图8是根据本公开其中一实施例的断网状态的上报装置的结构框图;
图9是根据本公开其中一可选实施例的断网状态的上报装置的结构框图;
图10是根据本公开实施例的另一种断网状态的上报装置的结构框图;
图11是根据本公开其中一可选实施例的另一种断网状态的上报装置的结构框图;
图12是根据本公开实施例的又一种断网状态的上报装置的结构框图;
图13是根据本公开其中一可选实施例的又一种断网状态的上报装置的结构框图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是, 在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是设置为区别类似的对象,而不必设置为描述特定的顺序或先后次序。
实施例1
本申请所提供的方法实施例可以运行于服务器和/或终端上。图1是根据本公开其中一实施例的断网状态的上报方法运行环境示意图,如图1所示,本公开所述的断网状态的上报方法可以运行于图1所示的第一终端1(即断网终端)上,第二终端2(即联网终端)上或服务器3上(在下文中又称服务中心)。在一实施方式中,利用如图1所示的第一终端1、第二终端2及服务器3之间的交互来实现针对第一终端1的断网状态进行上报。在一实施方式中,第一终端1、第二终端2和服务器3中每个设备均可以包括:一个或多个处理器(处理器可以包括但不限于微处理器(MCU)或可编程逻辑器件(FPGA)等的处理装置)和设置为存储数据的存储器。在一实施方式中,上述每个设备还可以包括设置为通信功能的传输装置以及输入输出设备。本领域普通技术人员可以理解,图1所示的图片仅为示意,其并不对本公开的实现造成限定。
存储器可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的断网状态的上报方法对应的计算机程序,处理器通过运行存储在存储器内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的断网状态的上报方法。存储器可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至上述各个设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置设置为经由一个网络接收或者发送数据。上述的网络具体实 例可包括终端或服务器的通信供应商提供的无线网络。在一个实例中,传输装置包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置可以为射频(Radio Frequency,简称为RF)模块,其设置为通过无线方式与互联网进行通讯。
为了实现终端在断网环境中主动上报失联状态,需要部署在计算机网络云端的服务中心系统和安装在移动终端上的应用。
当本申请所提供的方法实施例运行于服务器上时,服务中心系统主要职能包括以下几个方面:
(1)通过计算机网络接收来自于终端应用上报的特定格式数据,并解析这些数据以判断其是否为移动终端上报的断网失联信息。
(2)存储每个终端的特征信息,其可以包括但不限于:终端的唯一标识和通讯密钥。唯一标识可以是国际移动设备识别码(International Mobile Equipment Identity,简称为IMEI)、移动设备识别码(Mobile Equipment Identifier,简称为MEID)、国际移动用户识别码(International Mobile Subscriber Identification Number,简称为IMSI)等可以唯一标识终端身份的一种或多种组合。通讯密钥可以是终端Wi-Fi热点、蓝牙和近场通讯(NFC)等设置为局域网络或近场通讯功能的密码。
(3)制定每个终端Wi-Fi热点、蓝牙和NFC的命名规则。
(4)对联网中的终端下发命令,其可以包括但不限于:终端在断网状态下开启的Wi-Fi热点名称(或蓝牙、NFC等近场通讯标识)、Wi-Fi热点密码(或蓝牙、NFC等近场通讯功能密码)、终端上报断网消息格式等。
当本申请所提供的方法实施例运行于终端上时,终端应用主要职能可以包括以下几个方面:
(1)监听本终端的计算机网络状态,其中,计算机网络是指服务中心所在的计算机网络,只有处在同一网络环境中的终端和服务中心才被认 定处于连接状态。当终端发现网络断开,则主动开启自身网络或近场通讯功能,其可以包括但不限于:Wi-Fi热点、蓝牙、NFC,开启的这些功能拥有一定特征标识,例如:Wi-Fi热点的名称满足预设规则。下文中主要将以预设通讯方式是Wi-Fi热点为例,对本公开的具体实施过程作进一步地详细描述。
(2)所有联网终端监听周围是否存在开启Wi-Fi热点、蓝牙、NFC等网络或近场通讯功能的其它终端,且名称是否满足服务中心制定的断网命名规则。如果满足,则请求服务中心连接失联终端的密码,以便主动发起连接。
(3)在断网状态下接收其它终端发起的连接请求,将断网失联消息按照预定格式发送给请求建立成功的其它终端。
(4)将接收到的断网终端发送的数据通过计算机网络发送给服务中心。
本公开所述的断网上报方法适设置为终端与云服务中心连接交互场景,因业务需求终端需要与云服务中心保持常连接。当常连接断开时,服务中心可以接收到终端上报的断网信息,以准确地判断出终端的失联原因和当前状态,从而据此排除服务中心或常连接服务的故障,以及对断网设备执行进一步管控操作。
具体应用场景可以包括但不限于以下之一:(1)携带自己的设备办公(Bring Your Own Device,简称为BYOD)应用,即移动办公,这种场景包括办公中使用的手机、平板及带通讯模块的其它终端;(2)智能家居中各类智能硬件都是通过家庭Wi-Fi互联互通,有助于监控定位家庭网络状态以及各智能终端联网状态,以加强对智能终端管理和故障排查;(3)车联网;(4)工业互联网,例如:带有无线通讯模块的水电气监控终端。
在本实施例中提供了一种运行于上述断网终端的断网状态的上报方法,图2是根据本公开其中一实施例的断网状态的上报方法的流程图,如图2所示,该流程包括如下步骤:
步骤S202,当确定第一终端处于断网状态时,开启预设通讯方式,其中,预设通讯方式的通讯标识满足预设规则,预设规则设置为使得当前处于联网状态的第二终端感知第一终端当前处于断网状态,以通过第二终端将第一终端的断网状态上报至服务器。
通过上述步骤,由于在终端处于断网状态的情况下,能够通过非直连的途径主动上报向服务中心上报失联终端的当前状态,以便于服务中心便可以采取更多的技术措施来实现对失联终端的管控,而非仅仅采取放弃管控的策略,由此可以解决相关技术中服务中心对失联终端通常只能采取放弃管控失联终端,从而导致失去对该终端的管控能力的问题,达到服务器能够准确地判断出终端的失联原因和当前状态,从而据此排除服务中心或常连接服务的故障,以及对断网设备执行进一步管控操作的技术效果。
在一实施方式中,在该方法实施例中所涉及到的方法步骤的执行主体可以为断网终端等,但不限于此。
在一实施方式中,在该方法实施例中所涉及到的方法步骤的步骤序号并不代表执行的先后顺序。
在一实施方式中,预设规则包括:第一部分和第二部分,其中,第一部分由服务器指定,第二部分为第一终端的标识信息,以使第二终端通过标识信息将第一终端的断网状态上报至服务器。
在一个可选实施例中,断网终端监听到网络断开并确认,开启预置的Wi-Fi热点。此Wi-Fi热点在终端断网后被软件自动开启,Wi-Fi热点名称满足预设规则要求:[PREFIX][SUFFIX],其中,[PREFIX](相当于上述第一部分)由服务中心指定,例如:一个固定的字符串,[SUFFIX](相当于上述第二部分)为每个终端的唯一标识,例如:IMEI、MEID、IMSI或服务中心生成的终端唯一标识。
在一实施方式中,预设规则还包括以下之一:第三部分,其中,第三部分为预设通讯功能的密码;第三部分和第四部分,其中,第四部分为预设通讯功能的密码的更新周期。
此外,在预设规则中,还可以选择性设置Wi-Fi热点密码(相当于上述第三部分),在开启Wi-Fi热点时随机生成,选择性按照一定时间间隔(相当于上述第四部分)动态更新,防止任何其它设备接入。
随机密码生成策略包括但不限于以下之一:
(1)基于时间戳生成,此时间戳可以是Wi-Fi热点开启时间或当前设备其它属性相关时间;
(2)基于当前设备属性,其可以包括但不限于:一些硬件属性(例如:Mac地址);
(3)多种信息组合,例如:时间戳+设备属性;
(4)在以上(1)-(3)所列举各种信息基础上编码或加密。
在一实施方式中,预设规则包括:第一部分,其中,第一部分由服务器指定。
在另一个可选实施例中,断网终端监听到网络断开并确认,开启预置的Wi-Fi热点,此Wi-Fi热点在终端断网后被软件自动开启,Wi-Fi热点名称满足预设规则要求,该规则由服务中心指定,例如:一个固定的字符串(相当于上述第一部分)。
在一实施方式中,在步骤S202,开启预设通讯方式之后,还可以包括以下执行步骤:
步骤S204,通过预设通讯功能监听到第二终端的连接请求;
步骤S206,响应于连接请求,向第二终端发送第一消息,以使第二终端向服务器上报第一消息,其中,第一消息设置为表示第一终端当前处于断网状态,第一消息包括:第一终端的标识信息。
联网状态正常的终端监听周围Wi-Fi热点,如果发现热点名称满足服务中心制定的规则,则将热点名称以特定格式消息发送给服务中心,请求服务中心返回此Wi-Fi热点密码,其中,该消息包含Wi-Fi热点名称和请求此Wi-Fi热点密码消息标识。服务中心维护所有终端的Wi-Fi热点名 称与Wi-Fi热点密码的对应关系。服务中心解析终端上报的所有消息,如果解析出的消息类型是请求Wi-Fi热点密码消息,则根据消息中Wi-Fi热点名称查找对应密码并返回。联网终端使用服务中心返回的密码连接断网终端的Wi-Fi热点。断网终端监听Wi-Fi热点连接事件,在连接成功后向联网终端发送断网上报消息(相当于上述第一消息),其中,该消息包含:断网终端的唯一标识。
在一实施方式中,第一消息还包括以下至少之一:第一终端的断网时间、第一终端的地理位置。
在一个可选实施例中,断网终端在连接成功后向联网终端发送的断网上报消息中还可以附加其他额外信息,例如:附加断网时间、附加地理位置、同时附加断网时间和地理位置。
在一实施方式中,在步骤S202,开启预设通讯方式之后,还可以包括以下执行步骤:
步骤S208,接收来自于第二终端的第二消息,其中,第二消息设置为表示服务器已获知第一终端当前处于断网状态;
步骤S210,响应于第二消息,执行以下操作之一:
(1)关闭预设通讯方式;
(2)保持与第二终端的通讯连接,并隐藏预设通讯方式;
(3)保持开启预设通讯方式;
(4)保持开启预设通讯方式并限制通过预设通讯方式接入的终端数量。
在一个可选实施例中,待服务中心确认断网终端之后,将确认断网失联的消息回复给联网终端。联网终端将服务中心回复的确认断网失联消息转发给断网终端。断网终端根据实际情况可以实施以下行为之一:
(1)断网终端已完成断网失联上报操作,为了降低功耗或避免其他设备发现,主动关闭Wi-Fi热点;
(2)断网终端已完成断网失联上报操作,但是为了保持与服务中心的后续通讯,保持当前与联网终端的连接,而且,为了避免其他设备连入增加功耗,断网终端将Wi-Fi热点隐藏;
(3)为了避免联网终端断网导致断网终端再次与服务中心失联,断网终端始终保持Wi-Fi热点的开启状态,并允许其他设备连入,可以选择性设置连入终端数目上限以避免过多终端连接造成的功耗。
在本实施例中还提供了另一种运行于联网终端的断网状态的上报方法,图3是根据本公开其中一实施例的另一种断网状态的上报方法的流程图,如图3所示,该流程包括如下步骤:
步骤S302,监听第一终端是否开启预设通讯方式;
步骤S304,当监听到第一终端开启预设通讯方式时,确定预设通讯方式的通讯标识满足预设规则,其中,预设规则设置为第二终端感知第一终端当前处于断网状态,第二终端当前处于联网状态;
步骤S306,将第一终端的断网状态上报至服务器。
在一实施方式中,在该方法实施例中所涉及到的方法步骤的执行主体可以为联网终端等,但不限于此。
在一实施方式中,在该方法实施例中所涉及到的方法步骤的步骤序号并不代表执行的先后顺序。
在一实施方式中,在步骤S304中,确定通讯标识满足预设规则可以包括以下执行步骤:
步骤S3041,确定通讯标识包括预设规则的第一部分和第二部分,其中,第一部分由服务器指定,第二部分为第一终端的标识信息。
在一个可选实施例中,断网终端监听到网络断开并确认,开启预置的Wi-Fi热点。此Wi-Fi热点在终端断网后被软件自动开启,Wi-Fi热点名称满足预设规则要求:[PREFIX][SUFFIX],其中,[PREFIX](相当于上述第一部分)由服务中心指定,例如:一个固定的字符串,[SUFFIX](相 当于上述第二部分)为每个终端的唯一标识,例如:IMEI、MEID、IMSI或服务中心生成的终端唯一标识。所有联网状态正常的终端监听周围Wi-Fi热点,如果发现热点名称中包含[PREFIX]和[SUFFIX],则确定热点名称满足[PREFIX][SUFFIX]规则。
在一实施方式中,在步骤S306中,将第一终端的断网状态上报至服务器可以包括以下处理步骤:
步骤S3061,从通讯标识中解析出第一终端的标识信息;
步骤S3062,将第一终端的标识信息和断网消息上报标识封装成第一消息;
步骤S3063,将第一消息上报至服务器。
如果联网终端发现热点名称满足[PREFIX][SUFFIX]规则,则将[SUFFIX]从热点名称中解析出来以特定格式消息(相当于上述第一消息)上报给服务中心,其中,该消息包含[SUFFIX]和断网上报消息标识。
在一实施方式中,在步骤S304中,确定通讯标识满足预设规则可以包括以下执行步骤:
步骤S3042,确定通讯标识包括预设规则的第一部分,其中,第一部分由服务器指定。
断网终端监听到网络断开并确认,开启预置的Wi-Fi热点,此Wi-Fi热点在终端断网后被软件自动开启,Wi-Fi热点名称满足预设规则要求,该规则由服务中心指定,例如:一个固定的字符串(相当于上述第一部分)。如果联网终端从Wi-Fi热点名称中发现该固定的字符串,则确定Wi-Fi热点名称满足预设规则要求。
在一实施方式中,在步骤S306,将第一终端的断网状态上报至服务器之前,还可以包括以下执行步骤:
步骤S308,将通讯标识和通讯密码消息标识封装成第二消息;
步骤S310,将第二消息上报至服务器;
步骤S312,接收来自于服务器的与预设通讯方式对应的通讯密码;
步骤S314,采用通讯密码向第一终端发送连接请求;
步骤S316,在连接建立成功之后,接收来自于第一终端的第三消息,其中,第三消息设置为表示第一终端当前处于断网状态,第三消息包括:第一终端的标识信息。
如果联网终端发现热点名称满足服务中心制定的规则,则将热点名称以特定格式消息(相当于上述第二消息)发送给服务中心,请求服务中心返回此Wi-Fi热点密码,其中,该消息包含Wi-Fi热点名称和请求此Wi-Fi热点密码消息标识。服务中心维护所有终端的Wi-Fi热点名称与Wi-Fi热点密码的对应关系。服务中心解析终端上报的所有消息,如果解析出的消息类型是请求Wi-Fi热点密码消息,则根据消息中Wi-Fi热点名称查找对应密码并返回。联网终端使用服务中心返回的密码连接断网终端的Wi-Fi热点。断网终端监听Wi-Fi热点连接事件,在连接成功后向联网终端发送断网上报消息(相当于上述第三消息),其中,该消息包含:断网终端的唯一标识,此外还可以附加其他额外信息,例如:附加断网时间、附加地理位置、同时附加断网时间和地理位置。
在一实施方式中,在步骤S306中,将第一终端的断网状态上报至服务器可以包括以下执行步骤:
步骤S3064,将第三消息转发至服务器。
联网终端将断网终端发送的断网上报消息转发给服务中心,转发前联网终端可以在断网终端发送的消息中添加其它额外信息。
在一实施方式中,在步骤S306,将第一终端的断网状态上报至服务器之后,还可以包括以下执行步骤:
步骤S318,接收来自于服务器的第四消息,其中,第四消息设置为表示服务器已获知第一终端当前处于断网状态;
步骤S320,将第四消息转发至第一终端。
服务中心解析终端上报的所有消息,如果解析出的消息类型是断网上报消息,则从消息体中提取断网设备唯一标识并对此设备做进一步处理。然后,服务中心将确认断网失联的消息(相当于上述第四消息)回复给联网终端。联网终端将服务中心回复的确认断网失联消息转发给断网终端。
在本实施例中还提供了又一种运行于上述服务器的上报方法,图4是根据本公开其中一实施例的又一种断网状态的上报方法的流程图,如图4所示,该流程包括如下步骤:
步骤S402,接收与第一终端建立通讯的第二终端上报的第一消息,其中,第二终端当前处于联网状态;
步骤S404,解析第一消息,得到第一消息类型标识和第一终端的标识信息;
步骤S406,根据第一消息类型标识和第一终端的标识信息确定第一终端处于断网状态。
在一实施方式中,在该方法实施例中所涉及到的方法步骤的执行主体可以为服务器等,但不限于此。
在一实施方式中,在该方法实施例中所涉及到的方法步骤的步骤序号并不代表执行的先后顺序。
在一实施方式中,在步骤S406中,根据第一消息类型标识和第一终端的标识信息确定第一终端处于断网状态可以包括以下执行步骤:
步骤S4061,根据第一消息类型标识确定第一消息为上报断网状态的消息;
步骤S4062,根据第一终端的标识信息确定第一终端处于断网状态。
服务中心解析联网终端上报的所有消息,如果解析出的消息类型是断网上报消息(相当于上述第一消息),则服务中心从消息体中提取断网设备唯一标识并对此设备做进一步处理。
在一实施方式中,在步骤S402,接收第二终端上报的第一消息之前, 还可以包括以下执行步骤:
步骤S408,接收第二终端上报的第二消息,其中,第二消息包括:第二消息类型标识和第一终端采用的预设通讯方式的通讯标识;
步骤S410,根据第二消息类型标识和通讯标识获取与通讯标识对应的通讯密码;
步骤S412,将通讯密码返回至第二终端,其中,通讯密码设置为获取第一终端的标识信息。
联网状态正常的终端监听周围Wi-Fi热点,如果发现热点名称满足服务中心制定的规则,则将热点名称以特定格式消息(相当于上述第二消息)发送给服务中心,请求服务中心返回此Wi-Fi热点密码,其中,该消息包含Wi-Fi热点名称和请求此Wi-Fi热点密码消息标识。服务中心维护所有终端的Wi-Fi热点名称与Wi-Fi热点密码的对应关系。
在一实施方式中,在步骤S410中,根据第二消息类型标识和通讯标识获取与通讯标识对应的通讯密码可以包括以下执行步骤:
步骤S4101,根据第二消息类型标识确定第二消息为获取通讯密码的消息;
步骤S4102,根据通讯标识从预设的对应关系中查找对应的通讯密码。
服务中心解析联网终端上报的所有消息,如果解析出的消息类型是请求Wi-Fi热点密码消息,则服务中心根据消息中Wi-Fi热点名称查找对应密码并返回密码。
在一实施方式中,在步骤S402,接收第二终端上报的第一消息之前,还可以包括以下执行步骤:
步骤S414,生成第一通讯密钥并向第一终端下发第一通讯密钥;
步骤S416,接收第一终端上报的更新结果,其中,更新结果由第一终端采用第一通讯密钥对本地已有的第二通讯密钥进行更新后得到;
步骤S418,如果更新结果表示更新成功,则将第一终端的标识信息 与第二通讯密钥之间的映射关系更新为第一终端的标识信息与第一通讯密钥之间的映射关系;
步骤S420,向第一终端返回第三消息,其中,第三消息设置为表示第一终端的标识信息与第一通讯密钥之间的映射关系已更新成功;
步骤S422,如果在预设时间范围内未接收到来自于第一终端的确认回复,则将第一终端的标识信息与第一通讯密钥之间的映射关系还原为第一终端的标识信息与第二通讯密钥之间的映射关系。
服务中心生成新密码并下发给终端,此时并未更新终端与原密码之间的映射关系。终端接收到服务中心下发的新密码后更新到本地,并记录原密码,再将更新结果上报给服务中心,并开启定时器等待服务中心回复。服务中心接收到终端上报的密码更新成功信息后,在新密码与终端之间建立映射关系。服务中心在成功更新映射关系之后,向终端发送映射关系修改成功确认(相当于上述第三消息),并开启定时器等待终端回复。终端如果在超时时间范围内未接收到服务中心的修改回复,则将本地密码从新密码还原为原密码。终端在超时时间范围内接收到服务中心的修改回复,则丢弃原密码的记录,并再次向服务中心发送一条确认已收到的回复。服务中心如果在超时时间范围内未收到终端确认回复,则将终端与新密码之间的映射关系还原为终端与旧密码之间的映射关系。
在一实施方式中,在步骤S406,根据第一消息类型标识和第一终端的标识信息确定第一终端处于断网状态之后,还可以包括以下执行步骤:
步骤S424,向第二终端返回第四消息,其中,第四消息设置为表示服务器已获知第一终端当前处于断网状态。
服务中心将确认断网失联的消息(相当于上述第四消息)回复给联网终端。联网终端将服务中心回复的确认断网失联消息转发给断网终端。
下面将结合图5至图7所示的示例性实施方式对上述实施过程作进一步详细描述。
图5是根据本公开其中一可选实施例的终端在断网环境下通过开启 Wi-Fi热点功能上报其断网失联状态的流程图,如图5所示,该流程可以包括以下执行步骤:
步骤S501,断网终端监听自身的联网状态,其中,网络是指与服务中心所在的同一计算机网络。
步骤S502,断网终端监听到网络断开并确认,开启预置的Wi-Fi热点。此Wi-Fi热点在终端断网后被软件自动开启,Wi-Fi热点名称满足预设规则要求:[PREFIX][SUFFIX],其中,[PREFIX]由服务中心指定,例如:一个固定的字符串,[SUFFIX]为每个终端的唯一标识,例如:IMEI、MEID、IMSI或服务中心生成的终端唯一标识。选择性设置Wi-Fi热点密码,在开启Wi-Fi热点时随机生成,选择性按照一定时间间隔动态更新,防止任何其它设备接入。
随机密码生成策略包括但不限于以下之一:
(1)基于时间戳生成,此时间戳可以是Wi-Fi热点开启时间或当前设备其它属性相关时间;
(2)基于当前设备属性,其可以包括但不限于:一些硬件属性(例如:Mac地址);
(3)多种信息组合,例如:时间戳+设备属性;
(4)在以上(1)-(3)所列举各种信息基础上编码或加密。
步骤S503,所有联网状态正常的终端监听周围Wi-Fi热点,如果发现热点名称满足[PREFIX][SUFFIX]规则,则将[SUFFIX]从热点名称中解析出来以特定格式消息上报给服务中心,其中,该消息包含[SUFFIX]和断网上报消息标识,例如:{"type":"disconnect","device":"[SUFFIX]"};
步骤S504,服务中心解析终端上报的消息,如果解析出的消息类型为断网上报消息,则从消息体中提取断网设备唯一标识并对此设备做进一步处理。
图6是根据本公开其中一可选实施例的断网终端在断网环境下连接周 围联网终端上报其断网失联状态的流程图,如图6所示,该流程可以包括以下处理步骤:
步骤S601,断网终端监听自身的联网状态,其中,网络是指与服务中心所在的同一计算机网络。
步骤S602,断网终端监听到网络断开并确认,开启预置的Wi-Fi热点,此Wi-Fi热点在终端断网后被软件自动开启,Wi-Fi热点名称满足预设规则要求,该规则由服务中心指定,例如:一个固定的字符串。
步骤S603,所有联网状态正常的终端监听周围Wi-Fi热点,如果发现热点名称满足服务中心制定的规则,则将热点名称以特定格式消息发送给服务中心,请求服务中心返回此Wi-Fi热点密码,其中,该消息包含Wi-Fi热点名称和请求此Wi-Fi热点密码消息标识,例如:
{"type":"password","wifi-hotspot":"***"}。
步骤S604,服务中心维护所有终端的Wi-Fi热点名称与Wi-Fi热点密码的对应关系。服务中心解析终端上报的所有消息,如果解析出的消息类型是请求Wi-Fi热点密码消息,则根据消息中Wi-Fi热点名称查找对应密码并返回。
步骤S605,联网终端使用服务中心返回的密码连接断网终端的Wi-Fi热点。
步骤S606,断网终端监听Wi-Fi热点连接事件,在连接成功后向联网终端发送断网上报消息,其中,该消息包含:断网终端的唯一标识,此外还可以附加其他额外信息,例如:附加断网时间、附加地理位置、同时附加断网时间和地理位置。
步骤S607,联网终端将断网终端发送的断网上报消息转发给服务中心,转发前联网终端可以在断网终端发送的消息中添加其它额外信息。
步骤S608,服务中心解析终端上报的所有消息,如果解析出的消息类型是断网上报消息,则从消息体中提取断网设备唯一标识并对此设备做进一步处理。
步骤S609:服务中心将确认断网失联的消息回复给联网终端。
步骤S610:联网终端将服务中心回复的确认断网失联消息转发给断网终端。
步骤S611:断网终端根据实际情况可以实施以下行为之一:
(1)断网终端已完成断网失联上报操作,为了降低功耗或避免其他设备发现,主动关闭Wi-Fi热点;
(2)断网终端已完成断网失联上报操作,但是为了保持与服务中心的后续通讯,保持当前与联网终端的连接,而且,为了避免其他设备连入增加功耗,断网终端将Wi-Fi热点隐藏;
(3)为了避免联网终端断网导致断网终端再次与服务中心失联,断网终端始终保持Wi-Fi热点的开启状态,并允许其他设备连入,可以选择性设置连入终端数目上限以避免过多终端连接造成的功耗。
图7是根据本公开其中一可选实施例的服务中心维护终端密码及和终端进行密码更新交互的流程图,如图7所示,该流程可以包括以下处理步骤:
步骤S701,服务中心更新终端的密码,其可以包括但不限于以下方式之一:
方式一、终端请求服务中心更新密码,可以定时触发,也可以通过特定事件触发,例如:终端断网重连成功后触发;
方式二、服务中心定时触发更新终端密码操作。
步骤S702,服务中心生成新密码并下发给终端,此时并未更新终端与原密码之间的映射关系。
步骤S703,终端接收到服务中心下发的新密码后更新到本地,并记录原密码,再将更新结果上报给服务中心,并开启定时器等待服务中心回复。
步骤S704,服务中心接收到终端上报的密码更新成功信息后,在新 密码与终端之间建立映射关系。
步骤S705,服务中心在成功更新映射关系之后,向终端发送映射关系修改成功确认,并开启定时器等待终端回复。
步骤S706,终端如果在超时时间范围内未接收到服务中心的修改回复,则将本地密码从新密码还原为原密码。
步骤S707,终端在超时时间范围内接收到服务中心的修改回复,则丢弃原密码的记录,并再次向服务中心发送一条确认已收到的回复。
步骤S708,服务中心如果在超时时间范围内未收到终端确认回复,则将终端与新密码之间的映射关系还原为终端与旧密码之间的映射关系。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。
实施例2
在本实施例中还提供了一种断网状态的上报装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图8是根据本公开其中一实施例的断网状态的上报装置的结构框图,如图8所示,该装置包括:启动模块100,设置为当确定第一终端处于断网状态时,开启预设通讯方式,其中,预设通讯方式的通讯标识满足预设 规则,预设规则设置为使得当前处于联网状态的第二终端感知第一终端当前处于断网状态,以通过第二终端将第一终端的断网状态上报至服务器。
在一实施方式中,预设规则包括:第一部分,其中,第一部分由服务器指定。
在一实施方式中,预设规则还包括以下之一:第二部分,其中,第二部分为第一终端的标识信息;第二部分和第三部分,其中,第三部分为预设通讯功能的密码;第二部分、第三部分和第四部分,其中,第四部分为预设通讯功能的密码的更新周期。
在一实施方式中,图9是根据本公开其中一可选实施例的断网状态的上报装置的结构框图,如图9所示,该装置除包括图8所示的所有模块外,还包括:监听模块102,设置为通过预设通讯功能监听到第二终端的连接请求;发送模块104,设置为响应于连接请求,向第二终端发送第二消息,以使第二终端向服务器上报第二消息,其中,第二消息设置为表示第一终端当前处于断网状态,第二消息包括:第一终端的标识信息。
在一实施方式中,第二消息还包括以下至少之一:第一终端的断网时间、第一终端的地理位置。
在一实施方式中,如图9所示,上述装置还包括:接收模块106,设置为接收来自于第二终端的第三消息,其中,第三消息设置为表示服务器已获知第一终端当前处于断网状态;执行模块108,设置为响应于第三消息,执行以下操作之一:关闭预设通讯方式;保持与第二终端的通讯连接,并隐藏预设通讯方式;保持开启预设通讯方式;保持开启预设通讯方式并限制通过预设通讯方式接入的终端数量。
在本实施例中还提供了另一种断网状态的上报装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图10是根据本公开实施例的另一种断网状态的上报装置的结构框图,如图10所示,该装置包括:监听模块200,设置为监听第一终端是否开启预设通讯方式;确定模块202,设置为当监听到第一终端开启预设通讯方式时,确定预设通讯方式的通讯标识满足预设规则,其中,预设规则设置为第二终端感知第一终端处于断网状态,第二终端当前处于联网状态;第一上报模块204,设置为将第一终端的断网状态上报至服务器。
在一实施方式中,确定模块202,设置为确定通讯标识包括预设规则的第一部分和第二部分,其中,第一部分由服务器指定,第二部分为第一终端的标识信息。
在一实施方式中,第一上报模块204包括:解析单元(图中未示出),设置为从通讯标识中解析出第一终端的标识信息;封装单元(图中未示出),设置为将第一终端的标识信息和断网消息上报标识封装成第一消息;上报单元(图中未示出),设置为将第一消息上报至服务器。
在一实施方式中,确定模块202,设置为确定通讯标识包括预设规则的第一部分,其中,第一部分由服务器指定。
在一实施方式中,图11是根据本公开其中一可选实施例的另一种断网状态的上报装置的结构框图,如图11所示,该装置除包括图10所示的所有模块外,还包括:封装模块206,设置为将通讯标识和通讯密码消息标识封装成第二消息;第二上报模块208,设置为将第二消息上报至服务器;第一接收模块210,设置为接收来自于服务器的与预设通讯方式对应的通讯密码;发送模块212,设置为采用通讯密码向第一终端发送连接请求;第二接收模块214,设置为在连接建立成功之后,接收来自于第一终端的第三消息,其中,第三消息设置为表示第一终端当前处于断网状态,第三消息包括:第一终端的标识信息。
在一实施方式中,第一上报模块204,设置为将第三消息转发至服务器。
在一实施方式中,如图11所示,上述装置还包括:第三接收模块216, 设置为接收来自于服务器的第四消息,其中,第四消息设置为表示服务器已获知第一终端当前处于断网状态;转发模块218,设置为将第四消息转发至第一终端。
在本实施例中还提供了又一种断网状态的上报装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图12是根据本公开实施例的又一种断网状态的上报装置的结构框图,如图12所示,该装置包括:第一接收模块300,设置为接收与第一终端建立通讯的第二终端上报的第一消息,其中,第二终端当前处于联网状态;解析模块302,设置为解析第一消息,得到第一消息类型标识和第一终端的标识信息;确定模块304,设置为根据第一消息类型标识和第一终端的标识信息确定第一终端处于断网状态。
在一实施方式中,确定模块304包括:第一确定单元(图中未示出),设置为根据第一消息类型标识确定第一消息为上报断网状态的消息;第二确定单元(图中未示出),设置为根据第一终端的标识信息确定第一终端处于断网状态。
在一实施方式中,图13是根据本公开其中一可选实施例的又一种断网状态的上报装置的结构框图,如图13所示,该装置除包括图12所示的所有模块外,还包括:第二接收模块306,设置为接收第二终端上报的第二消息,其中,第二消息包括:第二消息类型标识和第一终端采用的预设通讯方式的通讯标识;获取模块308,设置为根据第二消息类型标识和通讯标识获取与通讯标识对应的通讯密码;第一反馈模块310,设置为将通讯密码返回至第二终端,其中,通讯密码设置为获取第一终端的标识信息。
在一实施方式中,获取模块308包括:第三确定单元(图中未示出),设置为根据第二消息类型标识确定第二消息为获取通讯密码的消息;获取 单元(图中未示出),设置为根据通讯标识从预设的对应关系中查找对应的通讯密码。
在一实施方式中,如图13所示,上述装置还包括:下发模块312,设置为生成第一通讯密钥并向第一终端下发第一通讯密钥;第三接收模块314,设置为接收第一终端上报的更新结果,其中,更新结果由第一终端采用第一通讯密钥对本地已有的第二通讯密钥进行更新后得到;更新模块316,设置为如果更新结果表示更新成功,则将第一终端的标识信息与第二通讯密钥之间的映射关系更新为第一终端的标识信息与第一通讯密钥之间的映射关系;第二反馈模块318,设置为向第一终端返回第三消息,其中,第三消息设置为表示第一终端的标识信息与第一通讯密钥之间的映射关系已更新成功;还原模块320,设置为如果在预设时间范围内未接收到来自于第一终端的确认回复,则将第一终端的标识信息与第一通讯密钥之间的映射关系还原为第一终端的标识信息与第二通讯密钥之间的映射关系。
在一实施方式中,如图13所示,上述装置还包括:第三反馈模块322,设置为向第二终端返回第四消息,其中,第四消息设置为表示服务器已获知第一终端当前处于断网状态。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
实施例3
本公开的实施例还提供了一种计算机可读的存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
在一实施方式中,在本实施例中,上述存储介质可以被设置为存储设置为执行以下步骤的计算机程序:
S1,当确定第一终端处于断网状态时,开启预设通讯方式,其中,预设通讯方式的通讯标识满足预设规则,预设规则设置为使得当前处于联网状态的第二终端感知第一终端当前处于断网状态,以通过第二终端将第一终端的断网状态上报至服务器。
在一实施方式中,存储介质还被设置为存储设置为执行以下步骤的计算机程序:
S1,监听第一终端是否开启预设通讯方式;
S2,当监听到第一终端开启预设通讯方式时,确定预设通讯方式的通讯标识满足预设规则,其中,预设规则设置为第二终端感知第一终端当前处于断网状态,第二终端当前处于联网状态;
S3,将第一终端的断网状态上报至服务器。
在一实施方式中,存储介质还被设置为存储设置为执行以下步骤的计算机程序:
S1,接收与第一终端建立通讯的第二终端上报的第一消息,其中,第二终端当前处于联网状态;
S2,解析第一消息,得到第一消息类型标识和第一终端的标识信息;
S3,根据第一消息类型标识和第一终端的标识信息确定第一终端处于断网状态。
在一实施方式中,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
实施例4
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述 任一项方法实施例中的步骤。
在一实施方式中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
在一实施方式中,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S1,当确定第一终端处于断网状态时,开启预设通讯方式,其中,预设通讯方式的通讯标识满足预设规则,预设规则设置为使得当前处于联网状态的第二终端感知第一终端当前处于断网状态,以通过第二终端将第一终端的断网状态上报至服务器。
在一实施方式中,在本实施例中,上述处理器还可以被设置为通过计算机程序执行以下步骤:
S1,监听第一终端是否开启预设通讯方式;
S2,当监听到第一终端开启预设通讯方式时,确定预设通讯方式的通讯标识满足预设规则,其中,预设规则设置为第二终端感知第一终端当前处于断网状态,第二终端当前处于联网状态;
S3,将第一终端的断网状态上报至服务器。
在一实施方式中,在本实施例中,上述处理器还可以被设置为通过计算机程序执行以下步骤:
S1,接收与第一终端建立通讯的第二终端上报的第一消息,其中,第二终端当前处于联网状态;
S2,解析第一消息,得到第一消息类型标识和第一终端的标识信息;
S3,根据第一消息类型标识和第一终端的标识信息确定第一终端处于断网状态。
在一实施方式中,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,在一实施方式中,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅为本公开的优选实施例而已,并不设置为限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。
工业实用性
如上所述,本公开实施例提供的一种断网状态的上报方法、装置及存储介质具有以下有益效果:解决了相关技术中服务中心对失联终端通常只能采取放弃管控失联终端,从而导致失去对该终端的管控能力的问题,达到服务器能够准确地判断出终端的失联原因和当前状态,从而据此排除服务中心或常连接服务的故障,以及对断网设备执行进一步管控操作的技术效果。

Claims (21)

  1. 一种断网状态的上报方法,包括:
    当确定第一终端处于断网状态时,开启预设通讯方式,其中,所述预设通讯方式的通讯标识满足预设规则,所述预设规则设置为使得当前处于联网状态的第二终端感知所述第一终端当前处于断网状态,以通过所述第二终端将所述第一终端的断网状态上报至服务器。
  2. 根据权利要求1所述的方法,其中,所述预设规则包括:第一部分,其中,所述第一部分由所述服务器指定。
  3. 根据权利要求2所述的方法,其中,所述预设规则还包括以下之一:
    第二部分,其中,所述第二部分为所述第一终端的标识信息;
    第二部分和第三部分,其中,所述第三部分为所述预设通讯功能的密码;或
    第二部分、第三部分和第四部分,其中,所述第四部分为所述预设通讯功能的密码的更新周期。
  4. 根据权利要求2所述的方法,其中,在开启所述预设通讯方式之后,还包括:
    通过所述预设通讯功能监听到所述第二终端的连接请求;
    响应于所述连接请求,向所述第二终端发送第一消息,以使所述第二终端向服务器上报所述第一消息,其中,所述第一消息设置为表示所述第一终端当前处于断网状态,所述第一消息包括:所述第一终端的标识信息。
  5. 根据权利要求4所述的方法,其中,所述第一消息还包括以 下至少之一:所述第一终端的断网时间,所述第一终端的地理位置。
  6. 根据权利要求4所述的方法,其中,在开启所述预设通讯方式之后,还包括:
    接收来自于所述第二终端的第二消息,其中,所述第二消息设置为表示所述服务器已获知所述第一终端当前处于断网状态;
    响应于所述第二消息,执行以下操作之一:
    关闭所述预设通讯方式;
    保持与所述第二终端的通讯连接,并隐藏所述预设通讯方式;
    保持开启所述预设通讯方式;
    保持开启所述预设通讯方式并限制通过所述预设通讯方式接入的终端数量。
  7. 一种断网状态的上报方法,包括:
    监听第一终端是否开启预设通讯方式;
    当监听到所述第一终端开启所述预设通讯方式时,确定所述预设通讯方式的通讯标识满足预设规则,其中,所述预设规则设置为第二终端感知所述第一终端当前处于断网状态,所述第二终端当前处于联网状态;
    将所述第一终端的断网状态上报至服务器。
  8. 根据权利要求7所述的方法,其中,确定所述通讯标识满足所述预设规则包括:
    确定所述通讯标识包括所述预设规则第一部分和第二部分,其 中,所述第一部分由所述服务器指定,所述第二部分为所述第一终端的标识信息。
  9. 根据权利要求8所述的方法,其中,将所述第一终端的断网状态上报至所述服务器包括:
    从所述通讯标识中解析出所述第一终端的标识信息;
    将所述第一终端的标识信息和断网消息上报标识封装成第一消息;
    将所述第一消息上报至所述服务器。
  10. 根据权利要求7所述的方法,其中,确定所述通讯标识满足所述预设规则包括:
    确定所述通讯标识包括所述预设规则的第一部分,其中,所述第一部分由所述服务器指定。
  11. 根据权利要求10所述的方法,其中,在将所述第一终端的断网状态上报至所述服务器之前,还包括:
    将所述通讯标识和通讯密码消息标识封装成第二消息;
    将所述第二消息上报至所述服务器;
    接收来自于所述服务器的与所述预设通讯方式对应的通讯密码;
    采用所述通讯密码向所述第一终端发送连接请求;
    在连接建立成功之后,接收来自于所述第一终端的第三消息,其中,所述第三消息设置为表示所述第一终端当前处于断网状态,所述第三消息包括:所述第一终端的标识信息。
  12. 根据权利要求11所述的方法,其中,将所述第一终端的断网状态上报至所述服务器包括:
    将所述第三消息转发至所述服务器。
  13. 根据权利要求7或11所述的方法,其中,在将所述第一终端的断网状态上报至所述服务器之后,还包括:
    接收来自于所述服务器的第四消息,其中,所述第四消息设置为表示所述服务器已获知所述第一终端当前处于断网状态;
    将所述第四消息转发至所述第一终端。
  14. 一种断网状态的上报方法,包括:
    接收与第一终端建立通讯的第二终端上报的第一消息,其中,所述第二终端当前处于联网状态;
    解析所述第一消息,得到第一消息类型标识和所述第一终端的标识信息;
    根据所述第一消息类型标识和所述第一终端的标识信息确定所述第一终端处于断网状态。
  15. 根据权利要求14所述的方法,其中,根据所述第一消息类型标识和所述第一终端的标识信息确定所述第一终端处于断网状态包括:
    根据所述第一消息类型标识确定所述第一消息为上报断网状态的消息;
    根据所述第一终端的标识信息确定所述第一终端处于断网状态。
  16. 根据权利要求14所述的方法,其中,在接收所述第二终端 上报的所述第一消息之前,还包括:
    接收所述第二终端上报的第二消息,其中,所述第二消息包括:第二消息类型标识和所述第一终端采用的预设通讯方式的通讯标识;
    根据所述第二消息类型标识和所述通讯标识获取与所述通讯标识对应的通讯密码;
    将所述通讯密码返回至所述第二终端,其中,所述通讯密码设置为获取所述第一终端的标识信息。
  17. 根据权利要求16所述的方法,其中,根据所述第二消息类型标识和所述通讯标识获取与所述通讯标识对应的通讯密码包括:
    根据所述第二消息类型标识确定所述第二消息为获取通讯密码的消息;
    根据所述通讯标识从预设的对应关系中查找对应的通讯密码。
  18. 根据权利要求14所述的方法,其中,在接收所述第二终端上报的所述第一消息之前,还包括:
    生成第一通讯密钥并向所述第一终端下发所述第一通讯密钥;
    接收所述第一终端上报的更新结果,其中,所述更新结果由所述第一终端采用所述第一通讯密钥对本地已有的第二通讯密钥进行更新后得到;
    如果所述更新结果表示更新成功,则将所述第一终端的标识信息与所述第二通讯密钥之间的映射关系更新为所述第一终端的标识信息与所述第一通讯密钥之间的映射关系;
    向所述第一终端返回第三消息,其中,所述第三消息设置为表示 所述第一终端的标识信息与所述第一通讯密钥之间的映射关系已更新成功;
    如果在预设时间范围内未接收到来自于所述第一终端的确认回复,则将所述第一终端的标识信息与所述第一通讯密钥之间的映射关系还原为所述第一终端的标识信息与所述第二通讯密钥之间的映射关系。
  19. 根据权利要求14所述的方法,其中,在根据所述第一消息类型标识和所述第一终端的标识信息确定所述第一终端处于断网状态之后,还包括:
    向所述第二终端返回第四消息,其中,所述第四消息设置为表示服务器已获知所述第一终端当前处于断网状态。
  20. 一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至19任一项中所述的方法。
  21. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至19任一项中所述的方法。
PCT/CN2019/103873 2018-08-31 2019-08-30 断网状态的上报方法、装置及存储介质 WO2020043209A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811014357.XA CN110875857B (zh) 2018-08-31 2018-08-31 断网状态的上报方法、装置及系统
CN201811014357.X 2018-08-31

Publications (1)

Publication Number Publication Date
WO2020043209A1 true WO2020043209A1 (zh) 2020-03-05

Family

ID=69643414

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/103873 WO2020043209A1 (zh) 2018-08-31 2019-08-30 断网状态的上报方法、装置及存储介质

Country Status (2)

Country Link
CN (1) CN110875857B (zh)
WO (1) WO2020043209A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788576A (zh) * 2020-12-16 2021-05-11 青岛海尔科技有限公司 设备离线的处理方法和系统、存储介质及电子装置
CN117041305A (zh) * 2023-10-10 2023-11-10 成都秦川物联网科技股份有限公司 基于物联网的气体流量计离线数据管理方法、设备及介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112601270A (zh) * 2020-11-19 2021-04-02 广东沃科融合通讯有限公司 终端唤醒控制方法、装置、电子设备及存储介质
CN112615733B (zh) * 2020-12-08 2023-04-18 广东沃科融合通讯有限公司 终端故障判断方法、装置、电子设备和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2775755A1 (en) * 2011-12-07 2014-09-10 Huawei Device Co., Ltd. Method and device for acquiring online status of terminal
WO2014153770A1 (en) * 2013-03-29 2014-10-02 Broadcom Corporation Method and apparatus for reestablishing communication with a network
CN104836598A (zh) * 2014-02-10 2015-08-12 深圳中兴网信科技有限公司 基于近场通信的业务处理方法、装置及系统
CN105337642A (zh) * 2014-06-17 2016-02-17 阿里巴巴集团控股有限公司 一种离线终端访问网络数据的方法及系统
CN106793007A (zh) * 2016-12-05 2017-05-31 爱国者电子科技有限公司 云端与蓝牙设备的交互通信方法、系统和无线路由器
CN108174400A (zh) * 2017-12-27 2018-06-15 瑞斯康达科技发展股份有限公司 一种终端设备的数据处理方法及系统、设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431761B (zh) * 2007-11-09 2011-06-01 中国移动通信集团公司 网络故障上报的方法、设备及系统
CN106817671B (zh) * 2017-02-14 2020-04-07 腾讯科技(深圳)有限公司 一种联网信息共享方法、第一终端及系统
JP6365732B2 (ja) * 2017-06-08 2018-08-01 株式会社リコー クライアント端末、コンピュータプログラム、情報処理方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2775755A1 (en) * 2011-12-07 2014-09-10 Huawei Device Co., Ltd. Method and device for acquiring online status of terminal
WO2014153770A1 (en) * 2013-03-29 2014-10-02 Broadcom Corporation Method and apparatus for reestablishing communication with a network
CN104836598A (zh) * 2014-02-10 2015-08-12 深圳中兴网信科技有限公司 基于近场通信的业务处理方法、装置及系统
CN105337642A (zh) * 2014-06-17 2016-02-17 阿里巴巴集团控股有限公司 一种离线终端访问网络数据的方法及系统
CN106793007A (zh) * 2016-12-05 2017-05-31 爱国者电子科技有限公司 云端与蓝牙设备的交互通信方法、系统和无线路由器
CN108174400A (zh) * 2017-12-27 2018-06-15 瑞斯康达科技发展股份有限公司 一种终端设备的数据处理方法及系统、设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788576A (zh) * 2020-12-16 2021-05-11 青岛海尔科技有限公司 设备离线的处理方法和系统、存储介质及电子装置
CN112788576B (zh) * 2020-12-16 2022-12-02 青岛海尔科技有限公司 设备离线的处理方法和系统、存储介质及电子装置
CN117041305A (zh) * 2023-10-10 2023-11-10 成都秦川物联网科技股份有限公司 基于物联网的气体流量计离线数据管理方法、设备及介质
CN117041305B (zh) * 2023-10-10 2024-01-23 成都秦川物联网科技股份有限公司 基于物联网的气体流量计离线数据管理方法、设备及介质

Also Published As

Publication number Publication date
CN110875857B (zh) 2023-03-07
CN110875857A (zh) 2020-03-10

Similar Documents

Publication Publication Date Title
WO2020043209A1 (zh) 断网状态的上报方法、装置及存储介质
CN1985470B (zh) 用于动态主机配置协议框架的配置管理的系统和网络实体
EP3544232B1 (en) Processing method, device and system for nf component abnormality
US9781579B2 (en) Method and device for realizing terminal WIFI talkback
CN106341468B (zh) 一种智能设备的远程唤醒方法、装置及系统
WO2011150707A1 (zh) 一种m2m业务中终端状态或事件管理的方法及系统
CN112218342A (zh) 一种实现核心网子切片容灾的方法、装置和系统
US11140597B2 (en) Method and apparatus for processing link establishment failure, and computer storage medium
US20230164234A1 (en) Service continuity event notification method, and apparatus
US9699139B2 (en) Communications system
WO2020043006A1 (zh) 终端失联的恢复方法及装置
CN108512679B (zh) 一种网关设备的管理方法及装置
CN114143904B (zh) 一种基于5g融合网络分流器的cpe管理方法
CN108028773B (zh) 用于增强电信网络性能的方法和移动性管理实体池
KR101456436B1 (ko) Dhcp 서버를 이용하는 무선 통신 네트워크 내의 통지
CN111385371B (zh) Mac地址获取方法、装置和设备
WO2019076793A1 (en) METHODS AND DEVICES FOR DETERMINING A COMMUNICATION NETWORK FOR PROVIDING COMMUNICATION SERVICE TO A COMMUNICATION TERMINAL DEVICE
US20190312929A1 (en) Information synchronization method and device
CN113660734B (zh) 一种网络设备的连接方法、装置、网络设备和介质
CN111586682B (zh) 含两个时间控制的集成订户身份模块的移动无线通信设备
CN111556484B (zh) 具有两个iSIM的用于冗余通信的移动无线通信设备
CN109982427B (zh) 一种信息处理方法、装置
WO2023186713A1 (en) Partially connected devices
CN117793173A (zh) 一种终端唤醒的处理方法、装置、设备及存储介质
WO2023148124A1 (en) Session management for redundant pdu sessions

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19853718

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19853718

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19853718

Country of ref document: EP

Kind code of ref document: A1