A method and apparatus for clearing services

By receiving and processing service clearance messages on the main control equipment and sub-control equipment of the core server, and quickly clearing multiple services, the problem that the existing technology cannot quickly clear a large number of services is solved, and the timely release of network bandwidth and the smooth progress of emergency services is achieved.

CN111683113BActive Publication Date: 2025-06-10VISIONVERA INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010318280.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-21
Publication Date
2025-06-10
Estimated Expiration
2040-04-21

AI Technical Summary

Technical Problem

Existing business systems and core servers cannot quickly clear a large amount of services, resulting in the inability to release network bandwidth in a timely manner in an emergency.

Method used

By realizing the reception and processing of service clearance messages on the main control device and the sub-control device of the core server, multiple services on the main control device and the sub-control device are quickly cleared and network bandwidth is released.

Benefits of technology

It realizes the rapid clearance of large amounts of services in a short period of time, releases network bandwidth, ensures the smooth progress of emergency services, and avoids errors caused by business systems due to missing or inaccurate information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111683113B_ABST
    Figure CN111683113B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a method and device for clearing services. The method for clearing services is applied to a master device in a core server. The core server further includes: a plurality of slave devices connected to the master device, and each slave device is connected to a plurality of terminal devices. The method includes: receiving a master service clearing message; clearing a plurality of services performed by the master device according to the master service clearing message; and sending a slave service clearing message to at least one of the plurality of slave devices according to the master service clearing message, so that the slave device that receives the slave service clearing message clears a plurality of services it performs. By clearing a plurality of services performed by the master device, rapid clearing of a large number of services can be achieved, that is, clearing a large number of services in a short time and releasing the network bandwidth they occupy, so that there is sufficient bandwidth in the network to ensure the smooth progress of emergency services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of service processing, and in particular, to a method and device for clearing services. Background Art

[0002] Services performed in a network usually rely on a core server and a service system. The core server establishes a data link to provide a channel for terminal devices to perform services; the service system can view, modify, clear, etc. the services performed by the core server. When clearing a service on the core server, usually the clearing operation is triggered by the service system. That is, the service system clears a single specified service.

[0003] However, in some scenarios, it is necessary to provide sufficient network bandwidth for a certain upcoming service to ensure the smooth progress of this service. For example, when an emergency meeting with the highest priority needs to be held in the network in case of an emergency, all currently ongoing services need to be cleared within a short time to ensure sufficient network bandwidth.

[0004] However, the existing service system and core server can only clear each service one by one and cannot quickly clear a large number of services. Summary of the Invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a method and device for clearing services that overcome the above problems or at least partially solve the above problems.

[0006] In a first aspect, an embodiment of the present invention discloses a method for clearing services, which is applied to a main control device in a core server. The core server further includes: a plurality of sub-control devices connected to the main control device, and each sub-control device is connected to a plurality of terminal devices; the method includes:

[0007] Receiving a main control service clearing message;

[0008] According to the main control service clearing message, clearing a plurality of services performed by the main control device;

[0009] According to the main control service clearing message, sending a sub-control service clearing message to at least one of the plurality of sub-control devices, so that the sub-control device that receives the sub-control service clearing message clears a plurality of services it performs.

[0010] Optionally, the main control service clearing message includes: a first instruction for instructing to clear all services, a second instruction for instructing to clear services performed by a target sub-control device, or a third instruction for instructing to clear services performed by a target terminal device: where the target sub-control device is at least one of the plurality of sub-control devices; the target terminal device is at least one of the plurality of terminal devices.

[0011] Optionally, when the master service clearing message includes the first instruction, the step of clearing multiple services performed by the master device includes:

[0012] Obtain all data links in the core server;

[0013] Dismantle all the data links and clear the service information on the master device.

[0014] Optionally, when the master service clearing message includes the second instruction, the step of clearing multiple services performed by the master device includes:

[0015] Determine all terminal devices connected to the target sub-control device according to a preset device file; wherein, the connection relationship between the master device and the sub-control device and the connection relationship between the sub-control device and the terminal device are stored in the preset device file;

[0016] Obtain the data links corresponding to the determined terminal devices;

[0017] Dismantle the data links and clear the service information related to the target sub-control device.

[0018] Optionally, when the master service clearing message includes the third instruction, the step of clearing multiple services performed by the master device includes:

[0019] Obtain the data links corresponding to the target terminal device;

[0020] Dismantle the data links and clear the service information related to the target terminal device.

[0021] Optionally, when the master service clearing message includes the first instruction, the step of sending a sub-control service clearing message to at least one sub-control device among the multiple sub-control devices includes: sending the sub-control service clearing message to each of the multiple sub-control devices;

[0022] When the master service clearing message includes the second instruction, the step of sending a sub-control service clearing message to at least one sub-control device among the multiple sub-control devices includes: sending the sub-control service clearing message to the target sub-control device;

[0023] When the master service clearing message includes the third instruction, the step of sending a sub-control service clearing message to at least one sub-control device among the multiple sub-control devices includes: sending the sub-control service clearing message to the sub-control device connected to the target terminal device.

[0024] Second aspect, an embodiment of the present invention further discloses a method for clearing services, which is applied to a sub-control device in a core server. The core server further includes: a main control device connected to the sub-control device, and the sub-control device is connected to multiple terminal devices. The method includes:

[0025] Receiving a sub-control service clearing message sent by the main control device; wherein, the sub-control service clearing message is a message generated by the main control device according to the received main control service clearing message;

[0026] According to the sub-control service clearing message, clearing multiple services performed by the sub-control device;

[0027] According to the sub-control service clearing message, sending a terminal service clearing message to at least one of the multiple terminal devices, so that the terminal device receiving the terminal service clearing message clears the services it performs.

[0028] Third aspect, an embodiment of the present invention further discloses a device for clearing services, which is applied to a main control device in a core server. The core server further includes: multiple sub-control devices connected to the main control device, and each sub-control device is connected to multiple terminal devices. The device includes:

[0029] A first receiving module, configured to receive a main control service clearing message;

[0030] A first clearing module, configured to clear multiple services performed by the main control device according to the main control service clearing message;

[0031] A first sending module, configured to send a sub-control service clearing message to at least one of the multiple sub-control devices according to the main control service clearing message, so that the sub-control device receiving the sub-control service clearing message clears the multiple services it performs.

[0032] Optionally, the main control service clearing message includes: a first instruction for instructing to clear all services, a second instruction for instructing to clear the services performed by a target sub-control device, or a third instruction for instructing to clear the services performed by a target terminal device: wherein the target sub-control device is at least one of the multiple sub-control devices; the target terminal device is at least one of the multiple terminal devices.

[0033] Optionally, when the main control service clearing message includes the first instruction, the first clearing module is specifically configured to obtain all data links in the core server; disconnect the all data links, and clear the service information on the main control device.

[0034] Optionally, when the master service clearing message includes the second instruction, the first clearing module is specifically configured to determine all terminal devices connected to the target slave control device according to a preset device file; wherein, the connection relationship between the master control device and the slave control device and the connection relationship between the slave control device and the terminal device are stored in the preset device file; obtain the data link corresponding to the determined terminal device; remove the data link, and clear the service information related to the target slave control device.

[0035] Optionally, when the master service clearing message includes the third instruction, the first clearing module is specifically configured to obtain the data link corresponding to the target terminal device; remove the data link, and clear the service information related to the target terminal device.

[0036] Optionally, when the master service clearing message includes the first instruction, the first sending module is specifically configured to send the slave control service clearing message to each of the multiple slave control devices respectively; when the master service clearing message includes the second instruction, the first sending module is specifically configured to send the slave control service clearing message to the target slave control device; when the master service clearing message includes the third instruction, the first sending module is specifically configured to send the slave control service clearing message to the slave control device connected to the target terminal device.

[0037] Fourthly, an embodiment of the present invention further discloses a device for clearing services, which is applied to a slave control device in a core server. The core server further includes: a master control device connected to the slave control device, and the slave control device is connected to multiple terminal devices; the device includes:

[0038] A second receiving module, configured to receive a slave control service clearing message sent by the master control device; wherein, the slave control service clearing message is a message generated by the master control device according to the received master service clearing message;

[0039] A second clearing module, configured to clear multiple services performed by the slave control device according to the slave control service clearing message;

[0040] A second sending module, configured to send a terminal service clearing message to at least one of the multiple terminal devices according to the slave control service clearing message, so that the terminal device that receives the terminal service clearing message clears the services it performs.

[0041] Fifthly, an embodiment of the present invention further discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method described in the first aspect or the second aspect above is implemented.

[0042] In a sixth aspect, an embodiment of the present invention further discloses a computer-readable storage medium storing a computer program for executing the method described in the first aspect or the second aspect above.

[0043] The method for clearing services provided by an embodiment of the present invention is applied to a main control device in a core server. The core server further includes: a plurality of sub-control devices connected to the main control device, and each sub-control device is connected to a plurality of terminal devices; the method includes: receiving a main control service clearing message; and clearing a plurality of services performed by the main control device according to the main control service clearing message. By clearing a plurality of services performed by the main control device, rapid clearing of a large number of services can be achieved, that is, clearing a large number of services in a short time and releasing the network bandwidth occupied by them, so that there is sufficient bandwidth in the network to ensure the smooth progress of emergency services. According to the main control service clearing message, sending a sub-control service clearing message to at least one of the plurality of sub-control devices, so that the sub-control device receiving the sub-control service clearing message clears a plurality of services it performs. The same service is deployed on both the main control device and the sub-control device of the core server. While clearing the service on the main control device, clearing the service on the sub-control device can ensure all relevant information of the cleared service and avoid errors in the service system due to missing or inaccurate service information. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a schematic diagram of the steps of the method for clearing services applied to the main control device provided by an embodiment of the present invention;

[0045] Figure 2 is a schematic diagram of the steps of the method for clearing services applied to the sub-control device provided by an embodiment of the present invention;

[0046] Figure 3 is a block diagram of the structure of the device for clearing services applied to the main control device provided by an embodiment of the present invention;

[0047] Figure 4 is a block diagram of the structure of the device for clearing services applied to the sub-control device provided by an embodiment of the present invention;

[0048] Figure 5 is an application architecture diagram of the method for clearing services provided by an embodiment of the present invention;

[0049] Figure 6 is a flowchart of the steps of the method for clearing services provided by an embodiment of the present invention in an actual application scenario. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0050] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0051] Figure 1 The method for clearing services provided by an embodiment of the present invention is shown, which is applied to the main control device in the core server. The core server further includes: a plurality of sub-control devices connected to the main control device, and each sub-control device is connected to a plurality of terminal devices; the connections between the main control device and the sub-control devices and between the sub-control devices and the terminal devices are all communication connections, for example, communication connections implemented through the Visual Networking or the Internet; the core server is connected to the service system and usually conducts a large number of services simultaneously.

[0052] The method for clearing services includes the following steps:

[0053] Step 101, receive the main control service clearing message.

[0054] It should be noted that the service clearing message can be sent through a control system connected to the main control device of the core server. The connection method between the two is a wireless communication connection, for example, through the Internet connection, but not limited to this. Specifically, the control system is connected to the core server through a TCP (Transmission Control Protocol) socket, and the user can log in to the core server through the root account registered in the core server, and then generate a main control service clearing message and send it to the core server.

[0055] Of course, the number of core servers in the network to which the core server belongs is usually multiple. Preferably, all core servers are respectively connected to the control system, so that the services carried out by all core servers can be controlled through the control system.

[0056] Step 102, according to the main control service clearing message, clear a plurality of services carried out by the main control device.

[0057] It should be noted that the main control service clearing message includes: a first instruction for indicating to clear all services, a second instruction for indicating to clear the services carried out by the target sub-control device, or a third instruction for indicating to clear the services carried out by the target terminal device: where the target sub-control device is at least one of the plurality of sub-control devices; the target terminal device is at least one of the plurality of terminal devices.

[0058] Each terminal device realizes service access through the sub-control device connected to it and the main control device connected to the sub-control device. Therefore, the relevant information of service access of all terminal devices is stored in the main control device; the relevant information of service access of the terminal devices connected to the sub-control device is stored in the sub-control device. When clearing services, while removing the data link, the relevant service information stored in the main control device and the sub-control device should also be deleted. Preferably, the service information related to the terminal device should also be deleted.

[0059] Preferably, the master service clearing message carries an operation code and a list. Different operation codes respectively correspond to a first instruction, a second instruction, and a third instruction. The master device can identify the operation code and perform different operations for different operation codes. The list can be empty or can include the identifiers of the slave devices or the identifiers of the terminal devices. After clearing the service, the master device can also return the operation result to the control system.

[0060] Step 103: According to the master service clearing message, send a slave service clearing message to at least one of the multiple slave devices, so that the slave device that receives the slave service clearing message clears multiple services it is performing.

[0061] It should be noted that the same service is deployed on both the master device and the slave devices of the core server. When clearing the service on the master device, it is necessary to clear the service on the slave devices. Since when clearing the service, it may not be for all services, when clearing the service, it involves not only the master device but also some slave devices. Preferably, through the master service clearing message, determine the involved slave devices, then generate a slave service clearing message, and send the generated slave service clearing message to the involved slave devices. The slave device can identify the slave service clearing message and clear the relevant service according to the specific information it carries.

[0062] The method for clearing services provided by the embodiments of the present invention is applied to the master device in the core server. The core server further includes: multiple slave devices connected to the master device, and each slave device is connected to multiple terminal devices; the method includes: receiving a master service clearing message; according to the master service clearing message, clearing multiple services performed by the master device. By clearing multiple services performed by the master device, rapid clearing of a large number of services can be achieved, that is, clearing a large number of services in a short time and releasing the network bandwidth they occupy, so that there is sufficient bandwidth in the network to ensure the smooth progress of emergency services. According to the master service clearing message, send a slave service clearing message to at least one of the multiple slave devices, so that the slave device that receives the slave service clearing message clears multiple services it is performing. The same service is deployed on both the master device and the slave devices of the core server. When clearing the service on the master device and clearing the service on the slave devices at the same time, all relevant information of the cleared service can be ensured, and the service system can be prevented from reporting errors due to missing or inaccurate service information.

[0063] Based on the above embodiments of the invention, in the embodiments of the present invention, when the master service clearing message includes a first instruction, the step of clearing multiple services performed by the master device includes:

[0064] Obtain all data links in the core server;

[0065] Remove all data links and clear the service information on the master device.

[0066] It should be noted that when the master service clear message includes the first instruction, it means that all services in the core server are to be cleared. At this time, the master service clear message can be a command data packet containing the first operation code, a list of slave control devices, and a list of terminal devices. Both the list of slave control devices and the list of terminal devices are empty. The master device can parse the command data packet, identify the first operation code, obtain all the data links in the core server for the first operation code, and remove all the data links; at the same time, clear all the service information, such as deleting the meeting table.

[0067] Based on the above embodiments of the present invention, in the embodiments of the present invention, when the master service clear message includes the second instruction, the steps of clearing multiple services performed by the master device include:

[0068] Determine all the terminal devices connected to the target slave control device according to a preset device file; wherein, the preset device file stores the connection relationship between the master device and the slave control device and the connection relationship between the slave control device and the terminal device;

[0069] Obtain the data links corresponding to the determined terminal devices;

[0070] Remove the data links and clear the service information related to the target slave control device.

[0071] It should be noted that when the master service clear message includes the second instruction, it means that all the terminal devices under the specified slave control device are to exit the service. At this time, the master service clear message can be a command data packet containing the second operation code, a list of slave control devices, and a list of terminal devices. The list of slave control devices includes the identifier of the specified slave control device, and the identifier can be the Visual Networking number of the slave control device, but is not limited thereto. The list of terminal devices is empty. The master device can parse the command data packet and identify the second operation code. For the second operation code, obtain the data links corresponding to the terminal devices under the specified slave control device. Remove the obtained data links, and at the same time, clear the service information related to the specified slave control device, such as removing the terminal devices under the slave control device from the meeting list.

[0072] Based on the above embodiments of the present invention, in the embodiments of the present invention, when the master service clear message includes the third instruction, the steps of clearing multiple services performed by the master device include:

[0073] Obtain the data links corresponding to the target terminal device;

[0074] Remove the data links and clear the service information related to the target terminal device.

[0075] It should be noted that when the master control service clearing message includes the third instruction, it indicates that the specified terminal device is to be withdrawn from the service. At this time, the master control service clearing message can be a command data packet including a third operation code, a list of slave control devices, and a list of terminal devices. Among them, the list of slave control devices is empty, and the list of terminal devices includes the identifier of the specified terminal device, which can be the Visual Networking number of the terminal device, but is not limited thereto. The master control device can parse the command data packet and identify the third operation code. For the third operation code, obtain the data link corresponding to the specified terminal device. Remove the obtained data link, and at the same time clear the service information related to the specified terminal device, such as removing the specified terminal device from the conference list.

[0076] Based on the above embodiments of the present invention, in an embodiment of the present invention, when the master control service clearing message includes the first instruction, the step of sending a slave control service clearing message to at least one of the multiple slave control devices includes: sending a slave control service clearing message to each of the multiple slave control devices;

[0077] When the master control service clearing message includes the second instruction, the step of sending a slave control service clearing message to at least one of the multiple slave control devices includes: sending a slave control service clearing message to the target slave control device;

[0078] When the master control service clearing message includes the third instruction, the step of sending a slave control service clearing message to at least one of the multiple slave control devices includes: sending a slave control service clearing message to the slave control device connected to the target terminal device.

[0079] It should be noted that when the master control service clearing message includes the first instruction, it indicates that all services in the core server are to be cleared. At this time, it is necessary to notify all slave control devices connected to the master control device. When the master control service clearing message includes the second instruction, it indicates that all terminal devices under the specified slave control device are to be withdrawn from the service. At this time, the master control device only needs to notify the specified slave control device. When the master control service clearing message includes the third instruction, it indicates that the specified terminal device is to be withdrawn from the service. At this time, it also only needs to notify the slave control device connected to the specified terminal device.

[0080] Figure 2 FIG. shows a method for clearing services provided by an embodiment of the present invention, which is applied to a slave control device in a core server. The core server further includes: a master control device connected to the slave control device, and the slave control device is connected to multiple terminal devices; wherein the connections between the master control device and the slave control device and between the slave control device and the terminal devices are all communication connections, such as communication connections implemented through the Visual Networking or the Internet; the core server is connected to a service system and usually conducts a large number of services simultaneously.

[0081] The method for clearing services includes the following steps:

[0082] Step 201: Receive the sub-control service clearing message sent by the master control device;

[0083] It should be noted that the sub-control service clearing message is a message generated by the master control device based on the received master control service clearing message.

[0084] Step 202: Clear multiple services performed by the sub-control device according to the sub-control service clearing message.

[0085] It should be noted that the sub-control service clearing message includes: a first instruction for instructing to clear all services or a second instruction for instructing to clear the services performed by some terminal devices connected to the sub-control device. When the sub-control service clearing message includes the first instruction, it means that all terminal devices connected to the sub-control device need to exit the service. At this time, the sub-control device will clear all service information it stores, such as initializing the guiding table, initializing the door opening and closing information, etc. When the sub-control service clearing message includes the second instruction, it means that the specified terminal device exits the service, and the specified terminal device is some terminal devices connected to the sub-control device. At this time, the sub-control device will clear the service information related to the specified terminal device it stores, that is, update the relevant service information, such as updating the guiding table, door opening and closing information, etc.

[0086] Step 203: Send a terminal service clearing message to at least one of the multiple terminal devices according to the sub-control service clearing message, so that the terminal device that receives the terminal service clearing message clears the services it performs.

[0087] It should be noted that when the sub-control service clearing message includes the first instruction, it means that all terminal devices connected to the sub-control device need to exit the service. At this time, the sub-control device needs to notify all terminal devices connected to it. When the sub-control service clearing message includes the second instruction, it means that the specified terminal device exits the service, and the specified terminal device is some terminal devices connected to the sub-control device. At this time, the sub-control device only needs to notify the specified terminal device. Notifying the terminal device means sending a terminal service clearing message to the terminal device, so that the terminal device clears the service information on it, such as initializing the receiving channel information, initializing the sending channel information, etc. If the current terminal device is a speaker or a live source, stop sending audio and video data. After the terminal device finishes processing, it reports the processing result information to the sub-control device, the sub-control device returns the processing result information to the master control device, and finally the master control device returns the operation result to the control system.

[0088] The method for clearing services in the embodiments of the present invention is applied to a sub-control device in a core server. The core server further includes: a main control device connected to the sub-control device, and the sub-control device is connected to multiple terminal devices; the method includes: receiving a sub-control service clearing message sent by the main control device; wherein, the sub-control service clearing message is a message generated by the main control device according to the received main control service clearing message; according to the sub-control service clearing message, clearing multiple services carried out by the sub-control device. By clearing multiple services carried out by the sub-control device, rapid clearing of a large number of services can be achieved, that is, clearing a large number of services in a short time and releasing the network bandwidth occupied by them, so that there is sufficient bandwidth in the network to ensure the smooth progress of emergency services. According to the sub-control service clearing message, sending a terminal service clearing message to at least one of the multiple terminal devices, so that the terminal device receiving the terminal service clearing message clears the services it carries out. While clearing the services on the sub-control device, clearing the services on the terminal device can ensure all relevant information of the cleared services and avoid the service system from reporting errors due to missing or inaccurate service information.

[0089] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.

[0090] Figure 3 The apparatus for clearing services provided in another embodiment of the present invention is shown, which is applied to a main control device in a core server. The core server further includes: multiple sub-control devices connected to the main control device, and each sub-control device is connected to multiple terminal devices; the apparatus includes:

[0091] A first receiving module 31, configured to receive a main control service clearing message;

[0092] A first clearing module 32, configured to clear multiple services carried out by the main control device according to the main control service clearing message;

[0093] A first sending module 33, configured to send a sub-control service clearing message to at least one of the multiple sub-control devices according to the main control service clearing message, so that the sub-control device receiving the sub-control service clearing message clears the multiple services it carries out.

[0094] Optionally, the master service clearing message includes: a first instruction for instructing to clear all services, a second instruction for instructing to clear the services performed by the target sub-control device, or a third instruction for instructing to clear the services performed by the target terminal device, where the target sub-control device is at least one of multiple sub-control devices; and the target terminal device is at least one of multiple terminal devices.

[0095] Optionally, when the master service clearing message includes the first instruction, the first clearing module 32 is specifically configured to obtain all data links in the core server; remove all data links, and clear the service information on the master device.

[0096] Optionally, when the master service clearing message includes the second instruction, the first clearing module 32 is specifically configured to determine all terminal devices connected to the target sub-control device according to a preset device file; where the connection relationship between the master device and the sub-control device and the connection relationship between the sub-control device and the terminal device are stored in the preset device file; obtain the data links corresponding to the determined terminal devices; remove the data links, and clear the service information related to the target sub-control device.

[0097] Optionally, when the master service clearing message includes the third instruction, the first clearing module 32 is specifically configured to obtain the data links corresponding to the target terminal device; remove the data links, and clear the service information related to the target terminal device.

[0098] Optionally, when the master service clearing message includes the first instruction, the first sending module 33 is specifically configured to send sub-control service clearing messages to multiple sub-control devices respectively; when the master service clearing message includes the second instruction, the first sending module 33 is specifically configured to send a sub-control service clearing message to the target sub-control device; when the master service clearing message includes the third instruction, the first sending module 33 is specifically configured to send a sub-control service clearing message to the sub-control device connected to the target terminal device.

[0099] The device for clearing services in the embodiments of the present invention is applied to the master control device in the core server. The core server further includes: a plurality of slave control devices connected to the master control device, and each slave control device is connected to a plurality of terminal devices. The device includes: a first receiving module, configured to receive a master service clearing message; a first clearing module, configured to clear a plurality of services performed by the master control device according to the master service clearing message. By clearing a plurality of services performed by the master control device, rapid clearing of a large number of services can be achieved, that is, clearing a large number of services in a short time and releasing the network bandwidth they occupy, so that there is sufficient bandwidth in the network to ensure the smooth progress of emergency services. A first sending module, configured to send a slave service clearing message to at least one of the plurality of slave control devices according to the master service clearing message, so that the slave control device that receives the slave service clearing message clears a plurality of services it performs. The same service is deployed on both the master control device and the slave control device of the core server. While clearing the service on the master control device, clearing the service on the slave control device can ensure all relevant information of the cleared service and avoid errors in the service system due to missing or inaccurate service information.

[0100] Figure 4 The figure shows a device for clearing services provided by another embodiment of the present invention, which is applied to a slave control device in the core server. The core server further includes: a master control device connected to the slave control device, and the slave control device is connected to a plurality of terminal devices. The device includes:

[0101] A second receiving module 41, configured to receive a slave service clearing message sent by the master control device; wherein, the slave service clearing message is a message generated by the master control device according to the received master service clearing message;

[0102] A second clearing module 42, configured to clear a plurality of services performed by the slave control device according to the slave service clearing message;

[0103] A second sending module 43, configured to send a terminal service clearing message to at least one of the plurality of terminal devices according to the slave service clearing message, so that the terminal device that receives the terminal service clearing message clears the service it performs.

[0104] The device for clearing services in the embodiments of the present invention is applied to a slave control device in the core server. The core server further includes: a master control device connected to the slave control device, and the slave control device is connected to a plurality of terminal devices. By clearing a plurality of services performed by the slave control device, rapid clearing of a large number of services can be achieved, that is, clearing a large number of services in a short time and releasing the network bandwidth they occupy, so that there is sufficient bandwidth in the network to ensure the smooth progress of emergency services. While clearing the service on the slave control device, clearing the service on the terminal device can ensure all relevant information of the cleared service and avoid errors in the service system due to missing or inaccurate service information.

[0105] For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For related parts, refer to the corresponding descriptions in the method embodiments.

[0106] As Figure 5 shown, it is the application architecture diagram of the method for clearing services provided by the embodiments of the present invention. Among them, the control system is connected to the core server through the Internet. The core server includes a main control device, a sub-control device connected to the main control device through the Visual Networking, and a terminal device connected to the sub-control device through the Visual Networking. The number of sub-control devices is multiple, Figure 5 only two are shown in the figure. Similarly, the number of terminal devices is also multiple. There are multiple core servers in the Visual Networking, and each core server is connected to the control system.

[0107] Based on the Figure 5 application architecture diagram shown, referring to Figure 6 it is the step flowchart of the method for clearing services provided by the embodiments of the present invention in the actual application scenario, which includes:

[0108] The control system connects to one or more core servers through TCP socket and logs in to the connected core servers using the root account registered in the core servers.

[0109] The control system sends an end service command packet to one or more specified core servers. The command packet information mainly includes: operation code (stop all services), sub-control device list (empty), and terminal device list (empty).

[0110] After receiving the command packet, the main control device parses it to obtain the service operation code, obtains all data links in the current core server for the service operation code and disassembles them. At the same time, it clears all service information (such as deleting relevant information such as the meeting table), and at the same time encapsulates and sends an end all services notification to all sub-control devices under this core server.

[0111] The sub-control devices that receive all service end notifications will clear all service information in the sub-control devices (such as initializing the orientation table, initializing the door opening and closing information, etc.), and at the same time notify all terminal devices under this sub-control device. After receiving the end service notification, the terminal device clears the service information on the terminal device (such as initializing the receiving channel information, initializing the sending channel information, etc.). If the current device is a speaking party or a live source, it stops sending audio and video data. After the terminal device finishes processing, it reports the processing result information to the sub-control device, the sub-control device returns the processing result information to the main control device, and finally the main control device returns the operation result to the control system.

[0112] When the command packet information mainly includes: operation code (all terminal devices under the sub-control device exit the service), sub-control device list (stores the sub-control device numbers), and terminal device list (empty), the master device obtains the information of all terminal devices under the current sub-control device from the device registration file according to the sub-control device numbers. Then, it obtains the corresponding data links of the terminal devices and disconnects them. At the same time, it clears the service information related to the sub-control device (such as updating relevant information like removing the terminal devices under the sub-control device from the meeting list, etc.), and at the same time encapsulates the end-of-sub-control-device service notification and sends it to all sub-control devices in the sub-control device list.

[0113] The sub-control device that receives the end-of-sub-control-device service notification clears all service information in the sub-control device (such as the orientation table, door opening and closing information, etc.), and at the same time notifies all terminal devices under the sub-control device. After receiving the end-of-service notification, the terminal device clears the service information on the terminal device (such as initializing the receiving channel information, initializing the sending channel information, etc.). If the current device is a speaking party or a live source, it stops sending audio and video data. After the terminal device finishes processing, it reports the processing result information to the sub-control device. The sub-control device returns the processing result information to the master device, and finally the master device returns the operation result to the control system.

[0114] When the command packet information mainly includes: operation code (specify a terminal device to exit the service), sub-control device list (empty), and terminal device list (stores the numbers of the terminal devices that need to end the service), the master device will obtain the corresponding data links of the terminal devices in the terminal device list and disconnect them. At the same time, it clears the relevant service information (such as updating relevant information like removing the terminal devices in the terminal device list from the meeting list, etc.), and at the same time encapsulates the end-of-device-service notification and sends it to the sub-control device corresponding to the terminal devices in the terminal device list.

[0115] The sub-control device that receives the end-of-device-service notification updates the corresponding service information in the sub-control device (such as the orientation table, door opening and closing information, etc.), and at the same time notifies the terminal devices in the terminal device list. After receiving the end-of-service notification, the terminal device clears the service information on the terminal device (such as initializing the receiving channel information, initializing the sending channel information, etc.). If the current device is a speaking party or a live source, it stops sending audio and video data. After the terminal device finishes processing, it reports the processing result information to the sub-control device. The sub-control device returns the processing result information to the master device, and finally the master device returns the operation result to the control system.

[0116] An embodiment of the present invention also discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the method for clearing services in any of the above embodiments.

[0117] An embodiment of the present invention also discloses a computer-readable storage medium, which stores a computer program for executing the method for clearing services in any of the above embodiments.

[0118] Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other.

[0119] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0120] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the method, terminal device (system), and computer program product according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the processes and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate a device for realizing the functions specified in one Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0121] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device realizes the functions specified in one Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process. Therefore, the instructions executed on the computer or other programmable terminal device provide for realizing the functions in one Figure 1 one process or multiple processes and / or blocks Figure 1Steps of functions specified in one or more boxes.

[0123] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0124] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising the element.

Claims

1. A method for clearing services, which is applied to the master device in the core server, Characterized in that, The core server further includes: a plurality of slave devices connected to the master device, and each slave device is connected to a plurality of terminal devices; the method includes: Receiving a master service clearing message; the master service clearing message is sent by a control system connected to the master device of the core server, and the master service clearing message includes: a first instruction for instructing to clear all services, a second instruction for instructing to clear the services performed by the target slave device, or a third instruction for instructing to clear the services performed by the target terminal device; wherein the target slave device is at least one of the plurality of slave devices; the target terminal device is at least one of the plurality of terminal devices; According to the master service clearing message, clearing a plurality of services performed by the master device; According to the master service clearing message, sending a slave service clearing message to at least one of the plurality of slave devices, so that the slave device receiving the slave service clearing message clears a plurality of services it performs; When the master service clearing message includes the first instruction, the list of slave devices and the list of terminal devices in the master service clearing message are empty, and the step of clearing a plurality of services performed by the master device includes: Obtaining all data links in the core server; Removing the all data links and clearing the service information on the master device.

2. The method according to claim 1, Characterized in that, When the master service clearing message includes the second instruction, the step of clearing a plurality of services performed by the master device includes: Determining all terminal devices connected to the target slave device according to a preset device file; wherein, the connection relationship between the master device and the slave device and the connection relationship between the slave device and the terminal device are stored in the preset device file; Obtaining the data links corresponding to the determined terminal devices; Removing the data links and clearing the service information related to the target slave device.

3. The method according to claim 1, Characterized in that, When the master service clearing message includes the third instruction, the step of clearing a plurality of services performed by the master device includes: Obtaining the data link corresponding to the target terminal device; Removing the data link and clearing the service information related to the target terminal device.

4. The method according to claim 1, Characterized in that, When the master service clearing message includes the first instruction, the step of sending a slave service clearing message to at least one of the plurality of slave devices includes: sending the slave service clearing message to each of the plurality of slave devices respectively; When the master service clearing message includes the second instruction, the step of sending a slave service clearing message to at least one of the plurality of slave devices includes: sending the slave service clearing message to the target slave device; When the master control service clearing message includes the third instruction, the step of sending a sub-control service clearing message to at least one of the multiple sub-control devices includes: sending the sub-control service clearing message to the sub-control device connected to the target terminal device.

5. A method for clearing services, applied to a sub-control device in a core server, Characterized in that, The core server further includes: a master control device connected to the sub-control device, and the sub-control device is connected to multiple terminal devices; the method includes: Receiving a sub-control service clearing message sent by the master control device; wherein, the sub-control service clearing message is a message generated by the master control device according to the received master control service clearing message; the sub-control service clearing message includes: a first instruction for instructing to clear all services; According to the sub-control service clearing message, clearing multiple services performed by the sub-control device; According to the sub-control service clearing message, sending a terminal service clearing message to at least one of the multiple terminal devices, so that the terminal device receiving the terminal service clearing message clears the services it performs; When the sub-control service clearing message includes the first instruction, the step of clearing multiple services performed by the sub-control device includes: Logging out all terminal devices connected to the sub-control device from the service, and clearing all service information saved by the sub-control device.

6. A device for clearing services, applied to a master control device in a core server, Characterized in that, The core server further includes: multiple sub-control devices connected to the master control device, and each sub-control device is connected to multiple terminal devices; the device includes: A first receiving module, configured to receive a master control service clearing message; the master control service clearing message is sent by a control system connected to the master control device of the core server, and the master control service clearing message includes: a first instruction for instructing to clear all services, a second instruction for instructing to clear the services performed by the target sub-control device, or a third instruction for instructing to clear the services performed by the target terminal device; wherein the target sub-control device is at least one of the multiple sub-control devices; the target terminal device is at least one of the multiple terminal devices; A first clearing module, configured to clear multiple services performed by the master control device according to the master control service clearing message; A first sending module, configured to send a sub-control service clearing message to at least one of the multiple sub-control devices according to the master control service clearing message, so that the sub-control device receiving the sub-control service clearing message clears the multiple services it performs; When the master control service clearing message includes the first instruction, the list of sub-control devices and the list of terminal devices in the master control service clearing message are empty, and the first clearing module is specifically configured to obtain all data links in the core server; disconnect all the data links, and clear the service information on the master control device.

7. A device for clearing services, applied to a sub-control device in a core server, Characterized in that, The core server further includes: a main control device connected to the sub-control device, and the sub-control device is connected to a plurality of terminal devices; The device includes: A second receiving module, configured to receive a sub-control service clearing message sent by the main control device; wherein, the sub-control service clearing message is a message generated by the main control device according to the received main control service clearing message; The sub-control service clearing message includes: a first instruction for instructing to clear all services; A second clearing module, configured to clear a plurality of services performed by the sub-control device according to the sub-control service clearing message; A second sending module, configured to send a terminal service clearing message to at least one of the plurality of terminal devices according to the sub-control service clearing message, so that the terminal device that receives the terminal service clearing message clears the services it performs; When the sub-control service clearing message includes the first instruction, the second clearing module is specifically configured to log out all terminal devices connected to the sub-control device from the service and clear all service information stored by the sub-control device.

8. An electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, when the processor executes the computer program, the method for clearing services according to any one of claims 1 to 4 or the method for clearing services according to claim 5 is implemented.

9. A computer-readable storage medium, wherein, the computer-readable storage medium stores a computer program for executing the method for clearing services according to any one of claims 1 to 4 or the method for clearing services according to claim 5.

Citation Information

Patent Citations

  • Data link dismantling method and system based on articulated naturality web

    CN110519335A