[go: up one dir, main page]

CN118075166A - Business management method and device - Google Patents

Business management method and device Download PDF

Info

Publication number
CN118075166A
CN118075166A CN202211473934.8A CN202211473934A CN118075166A CN 118075166 A CN118075166 A CN 118075166A CN 202211473934 A CN202211473934 A CN 202211473934A CN 118075166 A CN118075166 A CN 118075166A
Authority
CN
China
Prior art keywords
service
module
communication channel
disconnection
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211473934.8A
Other languages
Chinese (zh)
Inventor
刘能宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211473934.8A priority Critical patent/CN118075166A/en
Publication of CN118075166A publication Critical patent/CN118075166A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请涉及电子产品技术领域,具体涉及一种业务管理方法和装置。该方法包括:第一设备的通信模块在第一设备与第二设备之间的第一通信通道断开时,向第一设备的协同模块发送断开通知。响应于断开通知,协同模块在确定未预先实施过对第一通信通道的断开操作时,对业务执行异常管理措施。通过判断预先是否实施过对通信通道的断开操作确定通信通道是否异常断开,在通信通道异常断开时对业务执行异常管理措施,可以在第一设备与第二设备之间的通信通道异常断开,无法继续协同处理业务时及时对业务采取异常管理措施,可以避免通信通道异常断开时可能出现的业务在较长时间内处于异常状态的问题,从而可以避免影响用户正常处理业务。

The present application relates to the technical field of electronic products, and specifically to a service management method and device. The method includes: when the first communication channel between the first device and the second device is disconnected, the communication module of the first device sends a disconnection notification to the collaboration module of the first device. In response to the disconnection notification, when the collaboration module determines that the disconnection operation of the first communication channel has not been implemented in advance, it performs abnormal management measures on the service. By determining whether the disconnection operation of the communication channel has been implemented in advance to determine whether the communication channel is abnormally disconnected, and performing abnormal management measures on the service when the communication channel is abnormally disconnected, abnormal management measures can be taken for the service in time when the communication channel between the first device and the second device is abnormally disconnected and the collaborative processing of the service cannot continue, which can avoid the problem that the service is in an abnormal state for a long time when the communication channel is abnormally disconnected, thereby avoiding affecting the normal processing of the user's service.

Description

Service management method and device
Technical Field
The application relates to the technical field of electronic products, in particular to a service management method and device.
Background
With the development of communication technology, communication connection can be established between different electronic devices (hereinafter referred to as devices), and the device capabilities are shared to cooperatively process the same service. Device capabilities such as audio capabilities, video capabilities, printing capabilities, positioning capabilities, and the like. Taking an audio playing service as an example, when one device plays audio data, the audio capability of the other device can be called to play the audio data.
In order to facilitate the establishment of a communication channel for cooperatively processing services between devices, a cooperative module and a communication module are arranged in the devices, the communication module is responsible for establishing the communication channel between the two devices, and the cooperative module is responsible for sharing the device capability to another device or calling the device capability processing service of the other device through the communication channel.
In the cooperative processing process of the service, the cooperative module triggers the communication module to create a communication channel before the service starts cooperative processing, and triggers the communication module to disconnect the communication channel after the service ends cooperative processing. And after the communication module controls the communication channel to be normally disconnected, sending a disconnection notification to the cooperative module, and after receiving the disconnection notification, the cooperative module determines that the communication channel is disconnected and then manages the service cooperatively processed by the structure. The communication channel is abnormally disconnected when being influenced by factors such as interference or poor network, and the communication module can send a disconnection notification to the cooperative module.
Because the communication module can send the disconnection notification to the cooperative module when the communication channel is abnormally disconnected and normally disconnected, the cooperative module can not recognize the abnormal disconnection condition of the communication channel, and the service is continuously processed in a cooperative processing mode when the communication channel is abnormally disconnected. At this time, if the user does not timely sense the abnormal service, the service is in an abnormal state for a long time, and the normal service processing of the user is affected. Therefore, a service management method is needed to solve the problem that the service is in an abnormal state for a long time when the communication channel is abnormally disconnected in the service cooperative processing process.
Disclosure of Invention
The embodiment of the application provides a service management method and a service management device, which can solve the problem that the service is in an abnormal state for a long time possibly occurring when a communication channel is abnormally disconnected in the service collaborative processing process.
In a first aspect, a service management method is provided, where the method includes:
When a first communication channel between a first device and a second device is disconnected, a communication module of the first device sends a disconnection notification to a cooperative module of the first device, and the first device cooperatively processes a service with the second device;
In response to the disconnection notification, the cooperation module performs an abnormality management measure on the traffic when it is determined that the disconnection operation of the first communication channel has not been performed in advance.
In one embodiment, a communication module of a first device monitors a communication channel between the first device and a second device while the first device is cooperatively processing traffic with the second device. And when the communication channel is monitored to be disconnected, sending a disconnection notification to a cooperative module of the first device. After receiving the disconnection notification, the collaboration module determines that the communication channel is abnormally disconnected if it is determined that the disconnection operation of the communication channel is not performed in advance. Further, when the communication channel is abnormally disconnected, an abnormal management measure is executed on the service, so that when the communication channel between the first equipment and the second equipment is abnormally disconnected and the service cannot be continuously and cooperatively processed, the abnormal management measure is timely adopted on the service, the problem that the service possibly appears in abnormal state in a long time when the communication channel is abnormally disconnected can be avoided, and the normal processing of the service by a user can be avoided.
Optionally, the method further comprises: in response to the disconnection notification, the cooperation module performs a normal management measure on the service when it is determined that a disconnection operation for the first communication channel has been performed in advance.
Optionally, the method further comprises: and before receiving the disconnection notification, if the cooperation module performs the disconnection operation on the first communication channel, marking that the first communication channel is normally disconnected.
In one embodiment, the status flag of the first communication channel may be set to a first status after the first communication channel is created. When the first communication channel is disconnected during use, the state mark is adjusted to be in a second state, and the second state indicates that the first communication channel is normally disconnected.
Correspondingly, after receiving the disconnection notification of the first communication channel, the collaboration module acquires a preset state mark, and when the state mark is the first state, determines that the disconnection operation of the first communication channel is not implemented, and executes an abnormal management measure on the service. And when the state is marked as the second state, determining that the disconnection operation of the first communication channel is implemented, and executing normal management measures on the service.
In the implementation of the application, the first communication channel is marked after the disconnection operation of the first communication channel is implemented, and whether the disconnection operation of the first communication channel is implemented or not can be determined according to the preset mark when the disconnection notification is received, so that whether the disconnection operation of the first communication channel is implemented or not can be accurately determined.
Optionally, the coordination module performs an exception management measure on the service when determining that the disconnection operation on the first communication channel is not performed in advance, including:
and the coordination module executes abnormal management measures on the service when determining that the first communication channel is not marked to be normally disconnected in advance.
Optionally, the cooperation module performs a normal management measure on the service when determining that the disconnection operation on the first communication channel is performed in advance, including:
and the cooperative module executes normal management measures on the service when the first communication channel is determined to be normally disconnected in advance.
Optionally, the disconnection notification is sent by the communication module when a heartbeat packet sent by the second device is not received within a preset time period, and the heartbeat packet is sent through a second communication channel between the first device and the second device.
In one embodiment, a second communication channel may be established between the first device and the second device to communicate heartbeat packets between the first device and the second device over the second communication channel. And when the communication module of the first device does not receive the heartbeat packet sent by the second device through the second communication channel within the preset duration, determining that the first communication channel between the first device and the second device is disconnected, and sending a disconnection notification to the coordination module.
In the embodiment of the application, a second communication channel which is the same as that for sending the heartbeat packet can be established between the first device and the second device, and the heartbeat packet is sent through the second communication channel, so that whether the communication channel between the first device and the second device is disconnected or not is detected through the heartbeat packet. The on-off state of the communication channels can be accurately determined by sending heartbeat packets through the independent communication channels to detect the on-off state of the communication channels.
Optionally, the performing an exception management measure on the service includes: the collaboration module sends an exception notification to a business module of the first device; in response to the anomaly notification, the business module notifies a user of the business anomaly.
In one embodiment, the collaboration module may send an exception notification to the business module upon determining that the communication channel is abnormally disconnected. After the service module receives the abnormality notification, the service module responds to the abnormality notification and controls the loudspeaker to output a voice prompt, and the user is notified of the occurrence of abnormality of the call service through the voice prompt, so that the cooperative processing cannot be continued. Or the service module can control the display screen to display text and/or image information, and inform the user that the call service is abnormal through the text and/or image information, so that the cooperative processing can not be continued.
In the embodiment of the application, when the cooperative module determines that the communication channel is abnormally disconnected, the cooperative module can send an abnormality notification to the service module, so that the service module notifies the user that the service is abnormal, the user can timely sense the service abnormality, and measures meeting the user requirements are adopted to manage the service so as to avoid continuous abnormality of the service and influence on normal processing of the service by the user.
Optionally, the performing an exception management measure on the service includes: and when the first equipment is calling the second equipment to process the service, the collaboration module switches the service to the first equipment or other equipment for processing, or ends the service.
In one embodiment, when the first device is a master device, the coordination module of the master device may send an exception notification to the service module when receiving the disconnection notification and determining that the communication channel is abnormally disconnected. After the service module receives the abnormal notification, the cooperative module can be controlled to stop calling the auxiliary equipment to process the service, and the service is switched to the main equipment or other auxiliary equipment to process. Or the service module directly sends an instruction to the application to control the application to stop the service.
In the embodiment of the application, when the communication channel between the first equipment and the second equipment is abnormally disconnected, the service is switched to the main equipment or other auxiliary equipment for processing, so that the service can be continuously processed, and meanwhile, the user can be informed that the service can not be cooperatively processed by the main equipment and the current auxiliary equipment, and the user can continuously process the service under the condition that the user timely perceives the abnormal service. When the communication channel between the first device and the second device is abnormally disconnected, the service is directly ended, and the user can be informed that the service cannot be cooperatively processed by the main device and the current auxiliary device while avoiding affecting the normal processing of the service by the user.
Optionally, the performing an exception management measure on the service includes: and when the second equipment is calling the first equipment to process the service, the collaboration module finishes the processing of the service and informs a user of the service abnormality.
In one embodiment, when the first device is an auxiliary device, the coordination module of the auxiliary device may send an abnormal notification to the service module when receiving the disconnection notification sent by the communication module and determining that the communication channel is abnormally disconnected. After the service module receives the abnormal notification, the cooperative module can be controlled to stop processing the call service, and the notification service module can output notification information to notify the user of abnormal service. Because the user is using the auxiliary equipment to process the service, when the auxiliary equipment stops processing the service and notifies the user, the user can timely perceive that the service is abnormal, so that the influence on the normal processing of the service by the user can be avoided.
In a second aspect, there is provided a service management apparatus, the apparatus comprising: a communication module and a collaboration module;
The communication module is used for sending a disconnection notification to the coordination module when a first communication channel between the first equipment and the second equipment is disconnected, and the first equipment and the second equipment cooperatively process service;
the coordination module is used for responding to the disconnection notification and executing abnormal management measures on the service when the disconnection operation of the first communication channel is determined not to be implemented in advance.
Optionally, the coordination module is further configured to perform a normal management measure on the service when determining that the disconnection operation of the first communication channel has been performed in advance, in response to the disconnection notification.
Optionally, the coordination module is further configured to, before receiving the disconnection notification, mark that the first communication channel is disconnected normally if a disconnection operation of the first communication channel is performed.
Optionally, the coordination module is specifically configured to perform an abnormal management measure on the service when it is determined that the first communication channel is not marked in advance for normal disconnection.
Optionally, the coordination module is specifically configured to perform a normal management measure on the service when it is determined that the first communication channel is marked in advance to be disconnected normally.
Optionally, the disconnection notification is sent by the communication module when a heartbeat packet sent by the second device is not received within a preset time period, and the heartbeat packet is sent through a second communication channel between the first device and the second device.
Optionally, the collaboration module is specifically configured to send an exception notification to a service module of the first device; in response to the anomaly notification, the business module notifies a user of the business anomaly.
Optionally, the collaboration module is specifically configured to switch the service to the first device or other device for processing, or end the service when the first device is calling the second device to process the service.
Optionally, the collaboration module is specifically configured to terminate processing the service when the second device invokes the first device to process the service, and notify a user that the service is abnormal.
In a third aspect, an electronic device is provided, comprising: one or more processors and one or more memories; the one or more processors are coupled with the one or more memories, the one or more memories for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in the first aspect.
In a fourth aspect, there is provided a readable storage medium having stored therein a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to the first aspect.
In a fifth aspect, there is provided a chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method according to the first aspect.
In a sixth aspect, there is provided a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to the first aspect.
Drawings
Fig. 1 shows a schematic structural diagram of a collaboration system according to an embodiment of the present application.
Fig. 2 shows a schematic structural diagram of a collaboration module according to an embodiment of the present application.
Fig. 3 shows a schematic diagram of audio data transmission according to an embodiment of the present application.
Fig. 4 shows an abnormal schematic diagram of a communication channel according to an embodiment of the present application.
Fig. 5 shows a schematic use flow of a communication channel according to an embodiment of the present application.
Fig. 6 shows a schematic diagram of a hardware structure of an electronic device suitable for the above method.
Fig. 7 is a flowchart illustrating steps of a service management method according to an embodiment of the present application.
Fig. 8 is a schematic flow chart of a service management method according to an embodiment of the present application.
Fig. 9 is a block diagram of a service management device according to an embodiment of the present application.
Fig. 10 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The term "comprises/comprising" when used herein is taken to specify the presence of stated features, integers, steps, operations, elements, and/or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the described embodiments of the application may be combined with other embodiments.
Fig. 1 shows a schematic structural diagram of a collaboration system provided by an embodiment of the present application, where the system includes a first device and a second device, where the first device and the second device may share a device capability and cooperatively process the same service. As shown in fig. 1, the first device may be a mobile phone 1, the second device may be a tablet computer 2, and after a service is started, the mobile phone 1 may call a device capability processing service of the tablet computer 2.
The device providing the device capability in the first device and the second device may be referred to as a secondary device, and the device invoking the device capability processing service of the other device may be referred to as a primary device. For example, the mobile phone 1 is a main device, the tablet computer 2 is an auxiliary device, and after the mobile phone 1 starts a service, the device capability processing service of the tablet computer 2 can be invoked.
The first device and the second device may also be other types of electronic devices, such as, but not limited to, a notebook computer, a smart screen, a personal computer (personal computer, PC), an ultra mobile personal computer (ultra mobile personal computer, UMPC), a handheld computer, a netbook, a smart home device, a Personal Digital Assistant (PDA), a wearable device, an in-vehicle device, and the like.
In the cooperative system, the first device and the second device can securely share data after mutually authenticating each other. The process of trust mutual authentication between the first device and the second device may refer to related technologies, for example, may be determined according to one or more of whether the two devices log in the same system account, whether authorization has been performed, whether a near field communication mode is adopted, and the like, which will not be described herein.
Based on the data sharing basis between the two devices, the master device may invoke the device capability handling service of the slave device after starting the service. It is understood that invoking the device capability handling service of the secondary device refers to the primary device using the device capability of the secondary device in conjunction with the secondary device to handle the service.
The device capability may also be referred to as a device function, for example, but not limited to, an audio capability that can play audio data and record audio data, a video capability that can play video data, a positioning capability that can perform positioning, and the like. It is understood that a portion of the device capabilities may be subdivided into a plurality of capabilities, for example, audio capabilities including audio playback capabilities and audio recording capabilities.
In practical applications, when the device has a related hardware module and has a software module related to the hardware module, the device has corresponding device capabilities. For example, the smart sound includes speakers and software modules for processing audio data, so the smart sound has audio playback capabilities.
It should be noted that, for convenience of distinction, the device that provides the device capability is referred to as a secondary device, and the device that invokes the device capability is referred to as a primary device. In practical applications, the primary device and the secondary device may also be referred to as other names, for example, the primary device may also be referred to as a source device, and the secondary device may also be referred to as a target device, which is not limited in this embodiment.
In one embodiment, devices in a collaboration system have a service module for initiating a service, a collaboration module supporting device capability sharing, and a communication module for establishing a communication channel between the devices. The service module is used for managing the service, and after the service module monitors that the equipment starts the service, auxiliary equipment corresponding to the service can be determined, and the cooperative module is started to perform cooperative processing on the service.
The collaboration module is used for providing support for sharing the device capability, and one device can share the device capability to the other device through the collaboration module, or call the device capability processing service of the other device through the collaboration module.
The communication module is used for providing communication support for the cooperative processing of the service, the communication module can establish a communication channel between two devices, and in the cooperative processing process of the service, the communication channel can transmit service data and control data in the cooperative processing process of the service.
Fig. 2 shows a schematic structural diagram of a collaboration module provided by an embodiment of the present application, where the left side is a schematic structural diagram of a collaboration module of a primary device, and the right side is a schematic structural diagram of a collaboration module of a secondary device. A primary device such as a cell phone 1 and a secondary device such as a tablet computer 2.
The service interface layer is used for providing different interfaces to trigger the cooperative module of the main device to call the device capability processing service of the auxiliary device.
The access authentication unit and the device authentication unit are used for supporting authentication and authentication between different devices. The discovery connection unit is used for detecting discovery and connecting the devices. The device management unit is used for managing the detected device. The service feature matching unit is used for matching different services for different services.
The service adaptation unit is used for adapting different device capabilities for different services. The audio processing unit is used for processing the audio data in the business cooperative processing process, such as resampling, encrypting and decrypting the audio data. The video processing unit is used for processing video data in the business cooperative processing process, such as clipping and rotating the video data, encrypting and decrypting the video data, performing color space conversion, resolution conversion and the like on the video data.
A hidden interface description language (HIDE INTERFACE description language, HIDL) adaptation unit is used to provide adaptation of the interface description language.
The transmission channel unit is used for creating and managing channels between different devices, and creating and managing sessions between devices, including device channel management, service channel management, output management, session management, and the like as shown in fig. 2.
The session layer is used to provide data support for sessions between devices, such as heartbeat detection and transmission of control data. The network layer is used to provide different protocol support for the collaboration module, for example, user datagram protocol (user datagram protocol, UDP), transmission control protocol (transmission control protocol, TCP), fill up the pipe (FILLP) protocol, etc. may be provided.
The composition of the collaboration module may include, but is not limited to, the examples described above, which are not limited in this embodiment.
Fig. 3 shows a schematic diagram of audio data transmission according to an embodiment of the present application. Taking the example that the mobile phone 1 calls the audio capability of the tablet computer 2 to process the call service, in the cooperative processing process of the call service, a communication channel established between the mobile phone 1 and the tablet computer 2 through a communication module comprises a control channel P1, a downlink data channel P2 and an uplink data channel P3. The service data of the call service comprises uplink audio data and downlink audio data, the uplink data channel P3 is used for transmitting the uplink audio data, the downlink data channel P2 is used for transmitting the downlink audio data, and the control channel P1 is used for transmitting control data in the cooperative processing process of the call service.
In the process of outputting the downlink Audio data, an Audio Digital Signal Processor (ADSP) in a hardware layer of the mobile phone 1 acquires the downlink Audio data sent by the opposite terminal device (another mobile phone) from a modem (modem), and outputs the downlink Audio data to a coordination module of the mobile phone 1 through an Audio hardware abstraction layer (Audio hardware abstraction layer, audio HAL) in a hardware abstraction layer (hardware abstraction layer, HAL). The coordination module of the mobile phone 1 sends downlink audio data to the coordination module of the tablet computer 2 through the downlink data channel P2.
Correspondingly, the collaboration module of the tablet computer 2 inputs the downlink audio data into the loudspeaker of the tablet computer 2 for playing and outputting through the audio hardware abstraction layer.
In the process of sending the uplink audio data, the cooperative module of the tablet computer 2 obtains the uplink audio data from the microphone through the audio hardware abstraction layer, and the cooperative module of the tablet computer 2 sends the uplink audio data to the cooperative module of the mobile phone 1 through the uplink data channel P3.
Correspondingly, the collaboration module of the mobile phone 1 outputs uplink audio data to the ADSP through the audio hardware abstraction layer, the ADSP outputs the uplink audio data to the modem, and the modem sends the uplink audio data to the opposite terminal equipment.
Control flow S1 exists between the business module and the collaboration module of the mobile phone 1, control flow also exists between the audio hardware abstraction layer and the ADSP, the business module can input control data to the collaboration module to control the collaboration module to act, and the audio hardware abstraction layer can input control data to the ADSP to enable the ADSP to switch audio channels. Similarly, a control flow S2 exists between the service module and the collaboration module of the tablet computer 2, and a control flow also exists between the collaboration module and the audio hardware abstraction layer.
It should be noted that fig. 3 is only an exemplary example of a call service, and does not constitute a limitation of a communication channel between the primary device and the secondary device. In other services, 1 or more communication channels may be established between the primary device and the secondary device, and different communication channels may be used to transmit different data.
Fig. 4 shows an abnormal schematic diagram of a communication channel according to an embodiment of the present application. Taking the above call service as an example, in the process of cooperatively processing the call service with the tablet computer 2, at the position 4, the control channel P1, the downlink data channel P2 and the uplink data channel P3 are abnormally disconnected when being affected by factors such as interference or poor network. When the uplink data channel P3 is disconnected, uplink audio data cannot be transmitted between the mobile phone 1 and the tablet computer 2, which results in that the uplink audio data cannot be sent to the opposite terminal device, and the opposite terminal device does not have sound output. When the downlink data channel P2 is disconnected, downlink audio data cannot be transmitted between the mobile phone 1 and the tablet computer 2, and the downlink audio data cannot be transmitted to the tablet computer 2, so that the tablet computer 2 does not have sound output. When the control channel P1 is disconnected, control data in the cooperative processing process of the call service cannot be transmitted between the mobile phone 1 and the tablet computer 2, and the cooperative processing process of the call service cannot be controlled.
In the cooperative processing process of the call service, if relevant measures are not taken for the call service when the opposite terminal equipment outputs no sound and/or the tablet computer 2 outputs no sound, when the user does not timely sense the abnormal call service, the call service can be in an abnormal state for a long time, and the two parties of the call continue to call under the condition that the opposite party cannot hear the sound, so that the call quality is greatly reduced, and the normal processing of the call service by the user is influenced.
Meanwhile, when the control channel is abnormal, the mobile phone 1 and the tablet computer 2 cannot control the call service, further the user cannot control the call service, and the use experience of the user can be affected.
Fig. 5 shows a schematic use flow of a communication channel according to an embodiment of the present application.
Before the service starts the cooperative processing, the cooperative module of the master device first executes step 51, and invokes the listening service interface of the communication module to send a listening instruction to the communication module.
Correspondingly, after receiving the monitoring instruction, the communication module of the master device creates a monitoring service, and after the monitoring service is created successfully, the communication module of the master device executes step 52 and sends a monitoring success notification to the coordination module.
At the same time, the collaboration module of the auxiliary device executes step 53 to call the monitoring service interface of the communication module to send a monitoring instruction to the communication module. The communication module of the auxiliary device creates a monitoring service after receiving the monitoring instruction, and executes step 54 after the monitoring service is created successfully, and sends a monitoring success notification to the coordination module.
The monitoring service created by the main equipment is used for monitoring the auxiliary equipment so as to receive information sent by the auxiliary equipment. The monitoring service created by the auxiliary equipment is used for monitoring the main equipment so as to receive the information sent by the main equipment.
After receiving the notification of the monitoring success, the collaboration module of the master device executes step 55 to call the channel creation interface of the communication module to input a channel creation instruction to the communication module.
The communication module of the master device performs step 56 after receiving the channel creation instruction, interacts with the slave device based on the pre-created listening service, creates a communication channel between the master device and the slave device, and performs step 57 after the creation of the communication channel is completed, sends a creation success notification to the coordination module, and notifies the coordination module of the master device that the creation of the communication channel is successful.
Meanwhile, after the communication channel is created, the communication module of the auxiliary device executes step 58 to send a creation success notification to the collaboration module of the auxiliary device, notifying the collaboration module of the auxiliary device that the communication channel is created successfully.
After the communication channel creation is completed, the primary device and the secondary device perform step 59 to cooperatively process traffic based on the communication channel.
When the service is over, or the service needs to be switched to the main device for processing, or the service needs to be switched from the current auxiliary device to another auxiliary device for processing, the collaboration module of the main device executes step 510, calls the channel closing interface of the communication module, and sends a channel disconnection instruction to the communication module. Correspondingly, after receiving the channel disconnection instruction, the communication module executes step 511 to disconnect the communication channel with the auxiliary device.
After executing step 511, if it is determined that the communication channel is disconnected, the communication module of the master device executes step 512 to send a disconnection notification to the collaboration module, notifying the collaboration module that the communication channel is disconnected. And when the corresponding cooperative module receives the disconnection notification, determining that the communication channel is disconnected.
Similarly, after determining that the communication channel is disconnected, the communication module of the auxiliary device executes step 513 to send a disconnection notification to the coordination module to notify the coordination module that the communication channel is disconnected.
After the channel disconnection instruction is sent to the communication module by the coordination module of the main equipment, if a disconnection notification sent by the communication module is received, the coordination process between the main equipment and the auxiliary equipment is ended. At this time, the master device may perform normal management measures on the service, for example, if the user needs to end the service, and if the user needs to switch the service to the master device for processing, continue to process the service at the master device. Correspondingly, after receiving the disconnection notification, the auxiliary device can directly end the service processing.
It should be noted that the use procedure of the communication channel shown in fig. 5 is only exemplary, and does not constitute a specific limitation on the use procedure of the communication channel.
As shown in fig. 5, after the co-module sends the channel disconnection to the communication module, the communication module disconnects the communication channel and sends a disconnection notification to the co-module, and the co-module can determine whether the communication channel is disconnected according to the disconnection notification. In practical application, the communication channel is abnormally disconnected when being affected by factors such as interference or poor network, and the communication module can send a disconnection notification to the cooperative module. That is, the cooperative module receives the disconnection notification sent by the communication module when the communication channel is abnormally disconnected, and also receives the disconnection notification sent by the communication module when the communication channel is normally disconnected.
The normal disconnection of the communication channel is controlled by the cooperative module, and when the communication channel is normally disconnected, the cooperative module can execute normal management measures on the service and does not influence the normal processing of the service by the user. When the communication channel is abnormally disconnected, the cooperative module cannot determine whether the disconnection of the communication channel is abnormally disconnected, so that related management measures cannot be executed on the service. At this time, the main device and the auxiliary device can be caused to continue to process the service in a cooperative processing manner, and if the user does not timely perceive the service abnormality, the service is in an abnormal state for a long time, so that the normal processing of the service by the user is affected.
The embodiment of the application provides a service management method, after receiving a disconnection notification sent by a communication module, a collaboration module first judges whether to pre-implement a disconnection operation on a communication channel, and when the pre-implement of the disconnection operation on the communication channel is implemented, the collaboration module can determine that the communication channel is actively disconnected, the communication channel is normally disconnected, and abnormal management measures can not be implemented on the service. When the disconnection operation of the communication channel is not implemented in advance, the communication channel is determined to be abnormally disconnected, and abnormal management measures can be timely executed on the service, so that the problem that the service is in an abnormal state for a long time when the communication channel is abnormally disconnected can be avoided.
Fig. 6 shows a schematic diagram of a hardware structure of an electronic device suitable for the above method. The electronic device 6 may include a processor 61, a wireless communication module 62, an audio module 63, a mobile communication module 64, a display screen 65, a storage module 66, and a power module 67. The electronic device may further include a microphone 631, a receiver 632, a speaker 633, an antenna 1 and an antenna 2, and a sensor module, a universal serial bus (universal serial bus, USB) interface, an external memory interface, keys, a motor, an indicator, a subscriber identity module (subscriber identification module, SIM) card interface, and the like, but is not limited thereto.
Wherein the processor 61 may comprise one or more processing units. For example, the processor 61 may include at least one of the following processing units: an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, a neural-Network Processor (NPU). The different processing units may be separate devices or may be integrated devices.
The wireless communication module 62 may provide wireless communication solutions for wireless local area network (wireless local area networks, WLAN), bluetooth, near field communication, etc. on the application electronic device 6, but is not limited thereto. The wireless communication module 62 may be one or more devices that integrate at least one communication processing module. The wireless communication module 62 receives electromagnetic waves via the antenna 1, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 61. The wireless communication module 62 may also receive a signal to be transmitted from the processor 61, frequency modulate and amplify it, and convert the signal into electromagnetic waves to radiate via the antenna 1.
The electronic device 6 may implement audio processing functions such as audio playback, audio recording, etc. through the audio module 63, microphone 631, receiver 632, speaker 633, and application processor, etc.
The audio module 63 is used for converting an audio stream into an analog sound signal output, and may also be used for converting an analog sound signal into an audio stream. In some embodiments, the audio module 63 or a part of the functional modules of the audio module 63 may be provided in the processor 61.
A microphone 631, also called "microphone" or "microphone", is used to convert sound signals into an audio stream.
A receiver 632, also called a "earpiece", is used to convert the audio stream into a sound signal. When the electronic apparatus 6 listens to a telephone call or sound information, it is possible to listen to a sound by bringing the receiver 633 close to the human ear.
A speaker 633, also called a "horn," is used to convert the audio stream into an acoustic signal output. When an application in an electronic device plays an audio file, the audio file is first decoded to obtain an audio stream in PCM format, and then the audio stream in PCM format is transmitted to a speaker 633 and converted into a sound signal by the speaker 633 to be output.
The mobile communication module 64 may provide a second generation (2th generation,2G) mobile communication solution, a third generation (3th generation,3G) mobile communication solution, a fourth generation (4th generation,5G) mobile communication solution, a fifth generation (5th generation,5G) mobile communication solution, etc. for application on the electronic device 6. The mobile communication module 64 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), or the like. The mobile communication module 64 may receive electromagnetic waves from the antenna 2, filter and amplify the received electromagnetic waves, and then transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 64 may also amplify the signal modulated by the modem processor, and the amplified signal is converted into electromagnetic waves by the antenna 2 and radiated.
The electronic device 6 may implement image display through the GPU, the display screen 65, and the application processor, so that the electronic device 6 has a video playing function and a picture displaying function. The GPU is a microprocessor for image processing, and is connected to the display 65 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 61 may include one or more GPUs that execute program instructions to generate or change display information.
The memory module 66 is used to store instructions and data, and the memory module 66 is, for example, a cache memory. The memory module 66 may hold instructions or data that has just been used or recycled by the processor 61. If the processor 61 needs to reuse the instruction or data, it can be called directly from the memory module 66. Repeated accesses are avoided and the latency of the processor 61 is reduced, thus improving the efficiency of the system.
The processor 61 and the memory module 66 may be combined into a single processing device, more commonly as separate components. In particular, the memory module 66 may also be integrated in the processor 61 or independent of the processor 61.
The power module 67 is used to supply power to various devices or circuits in the electronic apparatus 6, and may include a charge management unit, a power management unit, a battery, and the like.
The connection relationships between the respective modules shown in fig. 6 are merely illustrative, and do not limit the connection relationships between the respective modules of the electronic device 6. Alternatively, the modules of the electronic device 6 may also adopt a combination of the various connection manners in the above embodiments. The structure shown in fig. 6 does not constitute a specific limitation on the electronic apparatus 6. The electronic device 6 may comprise more or fewer components than shown in fig. 6, or the electronic device 6 may comprise a combination of some of the components shown in fig. 6, or the electronic device 6 may comprise sub-components of some of the components shown in fig. 6. The components shown in fig. 6 may be implemented in hardware, software, or a combination of software and hardware.
Fig. 7 is a flowchart illustrating steps of a service management method according to an embodiment of the present application, where the method may include:
Step 71, when the communication module of the first device disconnects the first communication channel between the first device and the second device, the communication module of the first device sends a disconnection notification to the cooperative module of the first device.
In response to the disconnection notification, the coordination module performs an abnormality management measure on the traffic when it is determined that the disconnection operation of the first communication channel has not been performed in advance.
Wherein the first device is processing traffic in coordination with the second device. The first device is a main device, the second device is an auxiliary device, or the first device is an auxiliary device, and the second device is a main device. The first communication channel is a communication channel established between the first device and the second device for transmitting control data and service data in the service cooperative processing, for example, a control channel P1, a downlink data channel P2, and an uplink data channel P3 shown in fig. 3.
In this embodiment, in the process of cooperatively processing a service with the second device, the communication module of the first device may monitor a communication channel between the first device and the second device to determine whether the communication channel is disconnected. Taking the above-mentioned call service as an example, the first device is, for example, a mobile phone 1, and the second device is, for example, a tablet computer 2. The mobile phone 1 and the tablet computer 2 firstly establish a control channel P1, a downlink data channel P2 and an uplink data channel P3, and then start to cooperatively process the call service.
In the process of cooperatively processing the call service, the communication module of the mobile phone 1 can monitor the control channel P1, the downlink data channel P2 and the uplink data channel P3 at the same time. Taking the control channel P1 as an example, when the control channel P1 is monitored to be disconnected, the communication module of the mobile phone 1 sends a notification of disconnection of the control channel P1 to the coordination module. The disconnection notification may include a channel identifier of the control channel P1 to notify the coordination module that the control channel P1 is disconnected.
After receiving the disconnection notification, the coordination module of the mobile phone 1 responds to the disconnection notification, determines that the control channel P1 is normally disconnected if the control channel P1 is determined to be disconnected before the disconnection notification is received, and determines that the control channel P1 is abnormally disconnected if the control channel P1 is determined to be disconnected before the disconnection notification is received.
For example, the disconnect operation is to send a channel disconnect instruction to the communication module. After receiving the disconnection notification, the cooperative module determines whether a channel disconnection instruction is sent to the communication module before receiving the disconnection notification, and if the channel disconnection instruction is sent to the communication module, the cooperative module determines that the control channel P1 is disconnected normally by implementing the disconnection operation on the control channel P1. In contrast, if the channel disconnection instruction is not sent to the communication module, it is determined that the channel disconnection operation is not performed on the control channel P1, and the control channel P1 is abnormally disconnected.
Similarly, the communication module of the tablet computer 2 may monitor the control channel P1, the downlink data channel P2, and the uplink data channel P3 at the same time, and send a disconnection notification to the coordination module when it is monitored that the first communication channel is disconnected. After receiving the disconnection notification, the collaboration module of the tablet computer 2 determines that the first communication channel is normally disconnected if it is determined that the disconnection operation of the first communication channel has been performed in advance, and determines that the first communication channel is abnormally disconnected if it is determined that the disconnection operation of the first communication channel has not been performed in advance.
It will be appreciated that there may be 1 or more first communication channels created between the first device and the second device, the first communication channels being parallel communication channels. When 1 of the first communication channels is abnormally disconnected, other first communication channels are also abnormally disconnected with a high probability.
Therefore, when a plurality of first communication channels exist between the first device and the second device, the communication module can monitor only 1 first communication channel or monitor all first communication channels, and when any one first communication channel is monitored to be disconnected, a disconnection notification is sent to the cooperative module. Correspondingly, when the cooperative module receives the disconnection notification, if it is determined that the disconnection operation of 1 or more first communication channels is not performed in advance, it is determined that all the first communication channels are abnormally disconnected.
The abnormal management measures refer to management measures when the communication channel is abnormally disconnected and the service cannot be cooperatively processed by the first equipment and the second equipment.
In one embodiment, when the first communication channel is abnormally disconnected, the first device may perform an anomaly management measure on the traffic to avoid continuous anomaly of the traffic. Illustratively, the anomaly management measure is to send an anomaly notification to the traffic module, which, in response to the anomaly notification, notifies the user of the anomaly in traffic.
For example, when determining that the control channel P1 is abnormally disconnected, the coordination module of the mobile phone 1 may send an abnormal notification to the service module of the mobile phone 1. After the service module of the mobile phone 1 receives the abnormality notification, the service module responds to the abnormality notification and controls the loudspeaker of the mobile phone 1 to output a voice prompt, and the voice prompt informs the user that the call service is abnormal, so that the mobile phone 1 and the tablet computer 2 cannot continuously cooperatively process the call service. Or the service module of the mobile phone 1 can control the display screen of the mobile phone 1 to display text and/or image information, and inform the user of abnormal call service through the text and/or image information, so that the mobile phone 1 and the tablet computer 2 can not continuously cooperatively process the call service.
Likewise, when determining that the control channel P1 is abnormally disconnected, the coordination module of the tablet computer 2 may send an abnormal notification to the service module of the tablet computer 2. After receiving the abnormality notification, the service module of the tablet computer 2 responds to the abnormality notification to control the loudspeaker of the tablet computer 2 to output a voice prompt so as to inform the user that the call service is abnormal and cannot be cooperatively processed by the mobile phone 1 and the tablet computer 2. Or the service module of the tablet computer 2 can control the display screen of the tablet computer 2 to display text and/or image information so as to inform the user that the call service is abnormal and cannot be cooperatively processed by the mobile phone 1 and the tablet computer 2.
It will be appreciated that the foregoing is merely an exemplary example, and the first device and the second device may also notify the user of the abnormal service in other manners, and the method for specifically notifying the user of the abnormal service may be set according to the requirement, which is not limited in this embodiment.
In the embodiment of the application, when the cooperative module determines that the communication channel is abnormally disconnected, the cooperative module can send an abnormality notification to the service module, so that the service module notifies the user that the service is abnormal, the user can timely sense the service abnormality, and measures meeting the user requirements are adopted to manage the service so as to avoid continuous abnormality of the service and influence on normal processing of the service by the user.
In one embodiment, when the first device is a master device, the coordination module of the master device may switch the service to the first device or other device for processing, or end the service when determining that the communication channel is abnormally disconnected.
In combination with the above example, when the coordination module of the mobile phone 1 receives the disconnection notification and determines that the control channel P1 is disconnected abnormally, the coordination module of the mobile phone 1 may send the abnormal notification to the service module. After receiving the abnormality notification, the service module of the mobile phone 1 may send a device switching instruction to the coordination module in response to the abnormality notification. After receiving the device switching instruction, the collaboration module can end the call of the audio capability of the tablet personal computer 2, switch the call service to the mobile phone 1 for processing, output downlink audio data through the speaker of the mobile phone 1, and acquire uplink audio data through the microphone of the mobile phone 1.
Or after receiving the abnormality notification, the service module of the mobile phone 1 may determine whether other devices except the tablet computer 2 exist, where the other devices are online devices that may be auxiliary devices, for example, a computer that is in an online state. After determining the computer that can act as a secondary device, the business module can send a device switch instruction to the collaboration module, the device switch instruction including a device identification of the computer. Correspondingly, the collaboration module can stop calling the audio capability of the tablet personal computer 2, then switch the call service to the computer according to the equipment identifier, and call the audio capability of the computer to process the call service.
Or the service module of the mobile phone 1 can directly send a stop instruction to the call application after receiving the abnormal notification, and the call application can disconnect the telephone after receiving the stop instruction so as to end the call service. Meanwhile, the service module can send a stop instruction to the cooperative module, so that the service module stops calling the audio capability of the tablet personal computer 2 and stops running.
The above is merely an exemplary example, and the process of switching the service from the auxiliary device to the process of the main device and the process of ending the service may be specifically set according to the requirements, which is not limited in this embodiment.
The main device can inform the user of abnormal service when switching the service to the main device to process or end the service. Specific methods for informing the user of the abnormal business may be referred to above by way of example.
In the embodiment of the application, when the communication channel between the first equipment and the second equipment is abnormally disconnected, the service is switched to the main equipment or other auxiliary equipment for processing, so that the service can be continuously processed, and meanwhile, the user can be informed that the service can not be cooperatively processed by the main equipment and the current auxiliary equipment, and the user can continuously process the service under the condition that the user timely perceives the abnormal service. And when the communication channel between the first equipment and the second equipment is abnormally disconnected, the service is directly ended, so that the user can be informed that the service cannot be cooperatively processed by the main equipment and the auxiliary equipment while avoiding affecting the normal processing of the service by the user.
In one embodiment, when the first device is the auxiliary device, the cooperative module of the auxiliary device may end the processing of the service and notify the user of the abnormal service when determining that the communication channel is abnormally disconnected.
In combination with the above example, when the coordination module of the tablet computer 2 receives the disconnection notification sent by the communication module and determines that the control channel P1 is abnormally disconnected, the coordination module of the tablet computer 2 may send an abnormal notification to the service module. After receiving the abnormality notification, the service module of the tablet computer 2 may send a stop instruction to the coordination module in response to the abnormality notification. After receiving the stop instruction, the collaboration module can stop processing the call service. Specifically, the service module of the tablet computer 2 may stop displaying the content related to the call service on the display screen, stop outputting the downlink audio data, and stop acquiring the uplink audio data.
Meanwhile, the service module of the tablet computer 2 can control the display screen of the tablet computer 2 to display prompt information such as characters and/or images, and the like, so as to inform a user that the call service cannot be continuously processed by the tablet computer 2. Or the service module can control the loudspeaker of the tablet computer 2 to output voice prompt to inform the user that the call service cannot be continuously processed by the tablet computer 2.
In the embodiment of the application, when the communication channel between the first equipment and the second equipment is abnormally disconnected, the auxiliary equipment stops processing the service and notifies the user of abnormal service. Because the user is using the auxiliary equipment to process the service, when the auxiliary equipment stops processing the service and notifies the user, the user can timely perceive that the service is abnormal, so that the influence on the normal processing of the service by the user can be avoided.
In one embodiment, after receiving the disconnection notification, the coordination module of the first device may perform a normal management measure on the service if it is determined that the first communication channel is normally disconnected.
The normal management measure refers to a management measure when the first communication channel is normally disconnected. For example, after the service is finished, the primary device may disconnect the first communication channel between the primary device and the secondary device, where the measure performed after the disconnection of the first communication channel is a normal management measure. After the service is switched back to the main device, the main device can disconnect the first communication channel between the main device and the auxiliary device, and the measures executed after the disconnection of the first communication channel are normal management measures. Similarly, after the primary device switches the service from the currently invoked secondary device to another secondary device for processing, the primary device may disconnect the first communication channel between the primary device and the currently invoked secondary device, where the measure executed after the disconnection of the first communication channel is a normal management measure.
For example, after receiving the call end instruction, the service module of the mobile phone 1 may send a stop instruction to the collaboration module. At this time, the cooperative module transmits a channel disconnection instruction to the communication module, and then receives a disconnection notification transmitted by the communication module after disconnecting the first communication channel. After receiving the disconnection notification, the cooperation module may determine that the disconnection operation of the communication channel has been performed in advance in response to the disconnection notification, and thus may determine that the first communication channel is normally disconnected. At this time, the collaboration module of the mobile phone 1 may perform normal management measures, stop running, and end collaboration processing of the call service.
For another example, if the service module of the mobile phone 1 receives the device switching request, the device switching request corresponds to the computer. The service module may send a device switching instruction to the collaboration module, and after receiving the device switching instruction, the collaboration module first sends a channel disconnection instruction to the communication module. After receiving the channel disconnection instruction, the communication module disconnects the communication channel between the mobile phone 1 and the tablet computer 2 so as to stop calling the audio capability of the tablet computer 2 to process the call service.
After sending the channel disconnection instruction, the collaboration module may receive a disconnection notification sent by the communication module after disconnecting the first communication channel. After receiving the disconnection notification, the collaboration module may determine that the disconnection operation of the first communication channel has been performed in advance, and may determine that the first communication channel between the mobile phone 1 and the tablet computer 2 is normally disconnected. At this time, the collaboration module of the mobile phone 1 may perform normal management measures, establish a control channel, an uplink data channel and a downlink data channel between the mobile phone 1 and the computer, and then invoke the audio capability of the computer to continue to process the call service.
Similarly, if the service module of the mobile phone 1 receives the device switching request, the device switching request corresponds to the mobile phone 1. The service module may send a device switching instruction to the collaboration module, and after receiving the device switching instruction, the collaboration module first sends a channel disconnection instruction to the communication module. After receiving the channel disconnection instruction, the communication module disconnects the communication channel between the mobile phone 1 and the tablet computer 2 so as to stop calling the audio capability of the tablet computer 2 to process the call service.
After sending the channel disconnection instruction, the collaboration module may receive a disconnection notification sent by the communication module after disconnecting the first communication channel. After receiving the disconnection notification, the collaboration module may determine that the disconnection operation of the first communication channel has been performed in advance, and may determine that the first communication channel between the mobile phone 1 and the tablet computer 2 is normally disconnected. At this time, the collaboration module of the mobile phone 1 may perform normal management measures, directly output the downlink audio data to the speaker of the mobile phone 1, and obtain the uplink audio data through the microphone of the mobile phone 1.
In one embodiment, the collaboration module marks that the first communication channel is normally disconnected if a disconnect operation has been performed on the first communication channel before receiving the disconnect notification. After receiving the disconnection notification of the first communication channel, the coordination module may determine whether to perform the disconnection operation on the first communication channel according to a preset flag.
For example, after the collaboration module of the mobile phone 1 sends a channel creation instruction to the communication module, the communication module creates the control channel P1 in response to the channel creation instruction, the collaboration module may set a state flag for the control channel P1, where an initial value of the state flag is a first state, the first state indicates that the control channel P1 is in a use state, or the state flag of the first state is a state flag having no reference meaning. Similarly, after the downstream data channel P2 and the upstream data channel P3 are created, the coordination module may set the status flags of the first status for the downstream data channel P2 and the upstream data channel P3, respectively.
Or after the control channel P1, the downstream data channel P2 and the upstream data channel P3 are created, the collaboration module of the mobile phone 1 may not set a status flag for the control channel P1, the downstream data channel P2 and the upstream data channel P3, that is, the status flag for the control channel P1, the downstream data channel P2 and the upstream data channel P3 is null.
After the control channel P1, the downstream data channel P2, and the upstream data channel P3 are created, the handset 1 and the tablet computer 2 start to cooperatively process the call service. Taking the downlink data channel P2 as an example, in the cooperative processing process of the call service, if the cooperative module of the mobile phone 1 sends a channel disconnection instruction of the downlink data channel P2 to the communication module, the downlink data channel P2 is marked to be normally disconnected. For example, the preset state flag may be modified to a second state, which is different from the first state, and the second state indicates that the downstream data channel P2 is actively disconnected by the coordination module, that is, the downstream data channel P2 is normally disconnected.
After sending the channel disconnection command of the downstream data channel P2 to the communication module, if the status flag of the downstream data channel P2 is null, the status flag of the downstream data channel P2 may be set, and the status flag is the second status.
It can be appreciated that, since the upstream data channel and the downstream data channel are parallel communication channels, the collaboration module can perform unified management on all the first communications. For example, a unified status flag is set for all first communication channels.
It should be noted that, in the process of cooperatively processing the service, the cooperative module of the master device may perform a disconnection operation on the communication channel when the service needs to be switched to the master device or other auxiliary devices, or when the service needs to be ended, that is, send a channel disconnection instruction to the communication module. The specific process of executing the disconnection operation may be set according to the need, and the present embodiment is not limited thereto.
In one embodiment, the coordination module of the first device may acquire, after receiving the disconnection notification sent by the communication module, a status flag set in advance for the first communication channel, and determine that the disconnection operation of the first communication channel has not been performed before receiving the disconnection notification when the status flag is null, or the status flag indicates that the first communication channel is in a use state, or the status flag is a status flag having no reference meaning. Further, it may be determined that the first communication channel is abnormally disconnected. In contrast, when the status flag indicates that the first communication channel is normally disconnected, it may be determined that the disconnection operation of the first communication channel has been performed before the disconnection notification is received, and it may be determined that the first communication channel is normally disconnected.
In combination with the above example, after receiving the disconnection notification of the control channel P1 sent by the communication module, the coordination module of the mobile phone 1 may acquire the state flag set in advance for the control channel P1, and when the state flag is the first state or the state flag having no reference meaning, it may be determined that the disconnection operation of the control channel P1 has not been performed before receiving the disconnection notification, so that it may be determined that the control channel P1 is abnormally disconnected. Conversely, when the state flag is the second state, it may be determined that the disconnection operation of the control channel P1 was performed before the disconnection notification was received, and further it may be determined that the control channel P1 is normally disconnected.
If the control channel P1 is not set to set the status flag when the control channel P1 is created, the status flag of the control channel P1 is null. After receiving the disconnection notification of the control channel P1, the coordination module of the mobile phone 1 determines that the disconnection operation of the control channel P1 has not been performed in advance if it is determined that the state flag of the control channel P1 does not exist, and can determine that the control channel P1 is abnormally disconnected.
In the embodiment of the application, the cooperative module can mark the communication channel as a use state or mark the communication channel when the disconnection operation of the communication channel is not implemented, and marks the communication channel to be normally disconnected when the disconnection operation of the communication channel is implemented. After receiving the disconnection notification sent by the communication module, whether the disconnection operation is performed on the communication channel can be accurately determined according to a preset mark.
In one embodiment, a second communication channel may be established between the first device and the second device to communicate heartbeat packets between the first device and the second device over the second communication channel. And when the communication module of the first device does not receive the heartbeat packet sent by the second device through the second communication channel within the preset duration, determining that the first communication channel between the first device and the second device is disconnected, and sending a disconnection notification to the coordination module.
Taking the above call service as an example, in the process of calling the audio capability of the tablet computer 2 to process the call service, the mobile phone 1 may create the second communication channel while creating the first communication channels such as the control channel, the uplink data channel, and the downlink data channel. After the second communication channel is created, the tablet computer 2 may send a heartbeat packet to the mobile phone 1 every a preset time period.
Correspondingly, the communication module of the mobile phone 1 starts timing after receiving each heartbeat packet sent by the tablet personal computer 2 through the second communication channel, and when the timing duration reaches the preset duration, the next heartbeat packet is not received, and the second communication channel is determined to be disconnected. At this time, the communication module of the mobile phone 1 may determine that the first communication channel between the mobile phone 1 and the tablet computer 2 is disconnected, and may send a disconnection notification to the coordination module to notify the coordination module that the first communication channel and the second communication channel are disconnected.
It can be understood that the first communication channel and the second communication channel are parallel communication channels, and when the heartbeat packet cannot be received through the second communication channel, the second communication channel is indicated to be disconnected, and the first communication channel parallel to the second communication channel is also in a disconnected state with a high probability.
In the embodiment of the application, a second communication channel which is the same as that for sending the heartbeat packet can be established between the first device and the second device, and the heartbeat packet is sent through the second communication channel, so that whether the communication channel between the first device and the second device is disconnected or not is detected through the heartbeat packet. The on-off state of the communication channels can be accurately determined by sending heartbeat packets through the independent communication channels to detect the on-off state of the communication channels.
Fig. 8 is a schematic flow chart of a service management method according to an embodiment of the present application.
And the communication module of the first equipment sends a disconnection notification to the cooperative module when detecting that the first communication channel is disconnected in the process of cooperatively processing the service with the second equipment. The coordination module executes step 81 to receive the disconnection notification sent by the communication module.
After receiving the disconnection notification, the coordination module performs step 82, determines whether the status flag of the first communication channel is preset, and performs step 83 after determining that the status flag of the first communication channel is preset.
In step 83, if the collaboration module determines that the status flag indicates that the first communication channel is normally disconnected, step 85 is executed, and if the collaboration module determines that the status flag indicates that the first communication channel is in use or that the status flag is in a reference sense, step 84 is executed, and an anomaly management measure is executed for the service.
In summary, in the implementation of the present application, when the first device cooperates with the second device to process the service, the communication module of the first device monitors the communication channel between the first device and the second device. And when the communication channel is monitored to be disconnected, sending a disconnection notification to a cooperative module of the first device. After receiving the disconnection notification, the collaboration module determines that the communication channel is abnormally disconnected if it is determined that the disconnection operation of the communication channel is not performed in advance. Further, when the communication channel between the first device and the second device is abnormally disconnected, the abnormal management measures can be timely adopted for the service when the service cannot be continuously cooperatively processed, and the problem that the service possibly appears in abnormal state in a long time when the communication channel is abnormally disconnected can be avoided, so that the normal processing of the service by a user can be avoided.
Fig. 9 shows a block diagram of a service management device according to an embodiment of the present application, where the device 9 may include:
A communication module 91, configured to send a disconnection notification to a coordination module when a first communication channel between a first device and a second device is disconnected, where the first device is cooperatively processing a service with the second device;
and a coordination module 92 for executing an abnormality management measure for the service when it is determined that the disconnection operation for the first communication channel has not been performed in advance in response to the disconnection notification.
Optionally, the coordination module 92 is further configured to perform normal management measures on the service when it is determined that the disconnection operation of the first communication channel has been performed in advance in response to the disconnection notification.
Optionally, the coordination module 92 is further configured to, before receiving the disconnection notification, mark that the first communication channel is disconnected normally if a disconnection operation of the first communication channel is performed.
Optionally, the coordination module 92 is specifically configured to perform an abnormal management measure on the service when it is determined that the first communication channel is not marked in advance for normal disconnection.
Optionally, the coordination module 92 is specifically configured to perform a normal management measure on the service when it is determined that the pre-marked first communication channel is normally disconnected.
Optionally, the disconnection notification is sent by the communication module when the heartbeat packet sent by the second device is not received within a preset duration, and the heartbeat packet is sent through a second communication channel between the first device and the second device.
Optionally, the coordination module 92 is specifically configured to send an exception notification to a service module of the first device; in response to the anomaly notification, the traffic module notifies the user of the traffic anomaly.
Optionally, the coordination module 92 is specifically configured to switch the service to the first device or other device for processing, or end the service when the first device is invoking the second device for processing the service.
Optionally, the coordination module 92 is specifically configured to end processing the service when the second device is calling the first device to process the service, and notify the user of the abnormal service.
Fig. 10 shows a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device 10, for example, the electronic device 6 shown in fig. 6, includes: a processor 101 and a memory 102, a communication interface 103, and a bus 104. Wherein the memory 101 is configured to store instructions, and the processor 101 is configured to execute the instructions stored by the memory 102. The processor 101, memory 102 and communication interface 103 are communicatively coupled to each other via a bus 104.
The application also provides a chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method as described above.
The present application also provides a computer program product comprising: computer program code which, when executed by a service management device, implements the method according to any of the method embodiments of the present application.
The computer program product may also cure code in the chip. The application is not limited to the specific form of computer program product.
The application also provides a readable storage medium having stored thereon a computer program which, when executed by a service management device, implements a method according to any of the method embodiments of the application. The computer program may be a high-level language program or an executable object program.
The readable storage medium may be volatile memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an erasable programmable ROM (erasable PROM), an electrically erasable programmable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (double DATA RATE SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM), and direct memory bus random access memory (direct rambus RAM, DR RAM).
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes and technical effects of the apparatus and device described above may refer to corresponding processes and technical effects in the foregoing method embodiments, which are not described in detail herein.
In the several embodiments provided by the present application, the disclosed systems, devices, and methods may be implemented in other manners. For example, some features of the method embodiments described above may be omitted, or not performed. The above-described apparatus embodiments are merely illustrative, the division of units is merely a logical function division, and there may be additional divisions in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the elements or the coupling between the elements may be direct or indirect, including electrical, mechanical, or other forms of connection.
It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In summary, the foregoing description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (22)

1. A method of traffic management, the method comprising:
When a first communication channel between a first device and a second device is disconnected, a communication module of the first device sends a disconnection notification to a cooperative module of the first device, and the first device cooperatively processes a service with the second device;
In response to the disconnection notification, the cooperation module performs an abnormality management measure on the traffic when it is determined that the disconnection operation of the first communication channel has not been performed in advance.
2. The method of claim 1, wherein the method further comprises:
in response to the disconnection notification, the cooperation module performs a normal management measure on the service when it is determined that a disconnection operation for the first communication channel has been performed in advance.
3. The method of claim 1 or 2, wherein the method further comprises:
And before receiving the disconnection notification, if the cooperation module performs the disconnection operation on the first communication channel, marking that the first communication channel is normally disconnected.
4. A method according to any one of claims 1-3, wherein the collaboration module, upon determining that a disconnect operation for the first communication channel has not been previously implemented, performs exception management actions on the traffic, comprising:
and the coordination module executes abnormal management measures on the service when determining that the first communication channel is not marked to be normally disconnected in advance.
5. The method of claim 2, wherein the collaboration module performs normal management actions on the traffic when determining that a disconnect operation for the first communication channel has been performed in advance, comprising:
and the cooperative module executes normal management measures on the service when the first communication channel is determined to be normally disconnected in advance.
6. The method of any one of claim 1 to 5,
The disconnection notification is sent by the communication module when a heartbeat packet sent by the second device is not received within a preset time period, and the heartbeat packet is sent through a second communication channel between the first device and the second device.
7. The method of any of claims 1-6, wherein the performing exception management actions on the traffic comprises:
The collaboration module sends an exception notification to a business module of the first device;
in response to the anomaly notification, the business module notifies a user of the business anomaly.
8. The method of any of claims 1-6, wherein the performing exception management actions on the traffic comprises:
And when the first equipment is calling the second equipment to process the service, the collaboration module switches the service to the first equipment or other equipment for processing, or ends the service.
9. The method of any of claims 1-6, wherein the performing exception management actions on the traffic comprises:
And when the second equipment is calling the first equipment to process the service, the collaboration module finishes the processing of the service and informs a user of the service abnormality.
10. A traffic management device, the device comprising: a communication module and a collaboration module;
The communication module is used for sending a disconnection notification to the coordination module when a first communication channel between a first device and a second device is disconnected, and the first device and the second device cooperatively process service;
the coordination module is used for responding to the disconnection notification and executing abnormal management measures on the service when the disconnection operation of the first communication channel is determined not to be implemented in advance.
11. The apparatus of claim 10, wherein the coordination module is further for performing normal management actions on the traffic upon determining that a disconnect operation for the first communication channel has been previously performed in response to the disconnect notification.
12. The apparatus according to claim 10 or 11, wherein the apparatus further comprises:
the collaboration module is further configured to, before receiving the disconnection notification, mark that the first communication channel is disconnected normally if a disconnection operation is performed on the first communication channel.
13. The apparatus according to any of claims 10-12, wherein the coordination module is specifically configured to perform an exception management measure on the traffic when it is determined that the first communication channel is not pre-marked for normal disconnection.
14. The apparatus of claim 11, wherein the coordination module is specifically configured to perform normal management actions on the traffic when it is determined that the first communication channel is pre-marked for normal disconnection.
15. The apparatus of any one of claims 10 to 14,
The disconnection notification is sent by the communication module when a heartbeat packet sent by the second device is not received within a preset time period, and the heartbeat packet is sent through a second communication channel between the first device and the second device.
16. The apparatus according to any one of claims 10-15, wherein the coordination module is specifically configured to send an exception notification to a traffic module of the first device; in response to the anomaly notification, the business module notifies a user of the business anomaly.
17. The apparatus according to any of claims 10-15, wherein the coordination module is specifically configured to switch the service to the first device or to other device processing or to end the service when the first device is invoking the second device to process the service.
18. The apparatus according to any one of claims 10-15, wherein the coordination module is specifically configured to end processing of the service when the second device invokes the first device to process the service, and notify a user of the service exception.
19. An electronic device, comprising: one or more processors and one or more memories; the one or more processors being coupled with the one or more memories, the one or more memories being configured to store computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-9.
20. A readable storage medium, characterized in that the readable storage medium has stored therein a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to any of claims 1-9.
21. A chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method of any of claims 1-9.
22. A computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-9.
CN202211473934.8A 2022-11-22 2022-11-22 Business management method and device Pending CN118075166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211473934.8A CN118075166A (en) 2022-11-22 2022-11-22 Business management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211473934.8A CN118075166A (en) 2022-11-22 2022-11-22 Business management method and device

Publications (1)

Publication Number Publication Date
CN118075166A true CN118075166A (en) 2024-05-24

Family

ID=91106348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211473934.8A Pending CN118075166A (en) 2022-11-22 2022-11-22 Business management method and device

Country Status (1)

Country Link
CN (1) CN118075166A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6781979B1 (en) * 2000-02-02 2004-08-24 Nec Corporation Connection control device, connection control method and data communication system
US20100299435A1 (en) * 2009-05-21 2010-11-25 Canon Kabushiki Kaisha Communication device, control method for communication device, and storage medium
CN104205075A (en) * 2012-03-24 2014-12-10 日本电气株式会社 Information processing system, information processing method, information processing device, and control method and control program therefor
CN105392115A (en) * 2015-12-03 2016-03-09 上海卓易科技股份有限公司 Automatic Bluetooth reconnection method
CN110515573A (en) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 Throw screen method, apparatus, system and computer equipment
CN114374959A (en) * 2022-01-17 2022-04-19 西安闻泰信息技术有限公司 Bluetooth connection method, device, electronic device and storage medium
CN115022982A (en) * 2021-12-31 2022-09-06 荣耀终端有限公司 Multi-screen cooperative non-inductive access method, electronic equipment and storage medium
US20220304094A1 (en) * 2019-08-14 2022-09-22 Huawei Technologies Co., Ltd. Bluetooth Reconnection Method and Related Apparatus
CN115268809A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Method, electronic equipment and system for recovering window in multi-screen cooperation process

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6781979B1 (en) * 2000-02-02 2004-08-24 Nec Corporation Connection control device, connection control method and data communication system
US20100299435A1 (en) * 2009-05-21 2010-11-25 Canon Kabushiki Kaisha Communication device, control method for communication device, and storage medium
CN104205075A (en) * 2012-03-24 2014-12-10 日本电气株式会社 Information processing system, information processing method, information processing device, and control method and control program therefor
CN105392115A (en) * 2015-12-03 2016-03-09 上海卓易科技股份有限公司 Automatic Bluetooth reconnection method
CN110515573A (en) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 Throw screen method, apparatus, system and computer equipment
US20220304094A1 (en) * 2019-08-14 2022-09-22 Huawei Technologies Co., Ltd. Bluetooth Reconnection Method and Related Apparatus
CN115268809A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Method, electronic equipment and system for recovering window in multi-screen cooperation process
CN115022982A (en) * 2021-12-31 2022-09-06 荣耀终端有限公司 Multi-screen cooperative non-inductive access method, electronic equipment and storage medium
CN114374959A (en) * 2022-01-17 2022-04-19 西安闻泰信息技术有限公司 Bluetooth connection method, device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US12167481B2 (en) Device control method and terminal
US12081971B2 (en) Key information synchronization method and system, and device
WO2023206909A1 (en) Volte voice encrypted communication method, terminal and system
CN111010693A (en) Method for providing wireless fidelity WiFi network access service and electronic equipment
CN108566686B (en) Method, device and system for establishing D2D connection
CN114466324A (en) Calling method and related device
CN109936840A (en) Communication means, device and electronic equipment
CN118075166A (en) Business management method and device
WO2021175254A1 (en) Call method, system and device
CN118075396B (en) Call service management method and device
CN117880422A (en) Audio telephone video capability expanding method, service system, equipment and storage medium
CN115941847B (en) Conversation method, electronic equipment and system
CN115412639B (en) Network call transfer method and terminal
CN112583920B (en) Push method, push device, electronic device and storage medium
WO2023045848A1 (en) Call processing method and call processing apparatus
CN116600275A (en) Voice transmission method, terminal equipment and computer storage medium
CN118075392A (en) Call system and call method
CN118075400A (en) Call system and call method
CN115589461A (en) Audio and video call system and audio and video call method
CN117479131A (en) Bluetooth connection method, device, electronic device and computer-readable storage medium
CN118069334B (en) Methods and devices for enabling equipment capabilities
CN116743924B (en) Color ringing sound processing method and electronic equipment
KR100917459B1 (en) Video terminal recognition method in mobile communication network and device therefor
CN119603798A (en) Bluetooth back-connection method, device, Bluetooth device, readable storage medium and chip
CN116709211A (en) Tunnel emergency telephone broadcasting method, system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Applicant after: Honor Terminal Co.,Ltd.

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Applicant before: Honor Device Co.,Ltd.

Country or region before: China