CN117597972A - Device control method, device and storage medium - Google Patents

Device control method, device and storage medium Download PDF

Info

Publication number
CN117597972A
CN117597972A CN202280004308.6A CN202280004308A CN117597972A CN 117597972 A CN117597972 A CN 117597972A CN 202280004308 A CN202280004308 A CN 202280004308A CN 117597972 A CN117597972 A CN 117597972A
Authority
CN
China
Prior art keywords
preset
priority
predetermined
service data
response message
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
CN202280004308.6A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN117597972A publication Critical patent/CN117597972A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management

Abstract

The embodiment of the disclosure provides a device control method, a device and a storage medium, wherein the method can be applied to the technical field of communication and comprises the following steps: when there is a need to use the predetermined device, transmitting a first request message (S101), wherein the first request message requests to use the predetermined device; receiving a first response message of the first request message (S102); when the first response message is an acknowledgement message, sending service data to the preset device, wherein the service data is used for being output by the preset device, and the acknowledgement message comprises the following components: the first device returns an acknowledgement message when the priority of the first device is higher than that of the second device using the predetermined device (S103).

Description

Device control method, device and storage medium Technical Field
The present disclosure relates to the field of communications technologies, but is not limited to the field of communications technologies, and in particular, to a device control method, a device control apparatus, and a storage medium.
Background
With the rapid development of communication technology, more and more communication devices are in life of people, but some communication devices can only establish connection with one other communication device at a time, for example, a bluetooth headset, a bluetooth speaker, etc.
In view of this, when a certain communication device needs to communicate with another communication device while communicating with the currently connected communication device, the user needs to manually disconnect the communication device from the currently connected communication device, and then establish a connection with another communication device.
Disclosure of Invention
The embodiment of the disclosure provides a device control method, a device control device and a storage medium.
A first aspect of an embodiment of the present disclosure provides an apparatus control method, where the method is used for a first apparatus, and the method includes:
when the requirement of using the preset equipment exists, a first request message is sent, wherein the first request message requests to use the preset equipment;
receiving a first response message of the first request message;
and when the first response message is an acknowledgement message, sending service data to the preset equipment, wherein the service data is used for being output by the preset equipment, and the acknowledgement message comprises the following components: the first device returns an acknowledgement message when the priority of the first device is higher than that of the second device using the predetermined device.
A second aspect of the embodiments of the present disclosure provides a device control method, where the method is used for a second device, and the method includes:
transmitting service data to a preset device, wherein the service data is used for being output by the preset device;
and stopping sending the service data to the preset equipment when the first equipment with higher priority than the second equipment needs to use the preset equipment exists.
A third aspect of the embodiments of the present disclosure provides an apparatus control method, where the method is used for a third apparatus, and the method includes:
receiving a first request message sent by first equipment, wherein the first request message requests to use preset equipment;
determining whether the predetermined device is used by a second device;
determining a priority of the first device and a second device using the predetermined device when the predetermined device is being used by the second device;
when the first device has higher priority than a second device using the predetermined device, sending a first response message to the first device, wherein the first response message is an acknowledgement response message;
and sending a first instruction to the second device, wherein the first instruction is used for instructing the second device to stop sending service data to the preset device.
A fourth aspect of the embodiments of the present disclosure provides an apparatus control method, wherein, for a predetermined apparatus, the method includes:
receiving service data sent by second equipment;
outputting the service data of the second equipment;
stopping receiving the service data sent by the second device and receiving the service data sent by the first device, wherein the priority of the first device and the priority of the second device using the preset device are the same or higher;
and outputting the service data of the first equipment.
A fifth aspect of the disclosed embodiments provides a device control apparatus, where, for a first device, the apparatus includes:
a first transmitting module configured to transmit a first request message when there is a need to use a predetermined device, wherein the first request message requests the use of the predetermined device;
a first receiving module configured to receive a first response message of the first request message;
a second sending module configured to send service data to the predetermined device when the first response message is an acknowledgement response message, where the service data is used for being output by the predetermined device, and the acknowledgement response message is: the first device returns an acknowledgement message when the priority of the first device is higher than that of the second device using the predetermined device.
A sixth aspect of the disclosed embodiments provides a device control apparatus, for a second device, the apparatus including:
a fourth transmitting module configured to transmit service data to a predetermined device, wherein the service data is used for being output by the predetermined device;
and a fifth transmitting module configured to stop transmitting service data to the predetermined device if there is a first device having a higher priority than the second device, which needs to use the predetermined device.
A seventh aspect of the embodiments of the present disclosure provides an apparatus control device, where, for a third apparatus, the apparatus includes:
a sixth receiving module configured to receive a first request message sent by a first device, where the first request message requests use of a predetermined device;
a third determination module configured to determine whether the predetermined device is used by a second device;
a fourth determination module configured to determine a priority of the first device and a second device that is using the predetermined device when the predetermined device is being used by the second device;
an eleventh transmission module configured to transmit a first response message to the first device when the first device has a higher priority than a second device using the predetermined device, the first response message being an acknowledgement response message;
And a twelfth transmission module configured to transmit a first instruction to the second device, where the first instruction is used to instruct the second device to stop transmitting service data to the predetermined device.
An eighth aspect of the embodiments of the present disclosure provides an apparatus control device, wherein, for a predetermined apparatus, the device includes:
a ninth receiving module configured to receive service data sent by the second device;
a second output module configured to output service data of the second device;
a tenth receiving module configured to stop receiving service data transmitted by the second device and to receive service data transmitted by a first device, wherein the first device and the second device use the predetermined device with the same or higher priority;
and the third output module is configured to output the service data of the first device.
A ninth aspect of the presently disclosed embodiments provides a computer storage medium storing an executable program; the executable program, when executed by the processor, can implement the device control method provided in the foregoing first aspect.
In the embodiment of the present disclosure, in a case where the first device has a need to use the predetermined device and the predetermined device is used by the second device, which device uses the predetermined device by transmitting the traffic data to the predetermined device is determined according to the priority of the first device and the priority of the second device. And the higher priority device of the first device and the second device directly transmits the service data to the preset device without switching the use right of the preset device by controlling the second device which is using the preset device to disconnect the preset device and establish connection with the other first device. Based on the method, the time required by switching the preset device between the first device and the second device can be shortened, and user experience is improved.
In addition, in the embodiment of the disclosure, according to the priority of the first device and the priority of the second device, which device is used by the predetermined device is judged, and the higher the priority is, the more important and urgent the service which indicates that the device is in practice for the user, so that the target device which can use the predetermined device is determined by the priority of the device, the better response to the user needs can be achieved, and the user experience is improved.
In addition, according to the priority of the first equipment and the priority of the second equipment, which equipment is used for using the preset equipment is judged, so that the probability that the first equipment and the second equipment send service data to the preset equipment simultaneously can be reduced, the probability that the service data between the first equipment and the second equipment are mutually interfered is further reduced, and the output quality of the service data output by the preset equipment is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the embodiments of the invention.
FIG. 1A is a flowchart illustrating a method of device control, according to an example embodiment;
FIG. 1B is a flowchart illustrating a method of device control, according to an example embodiment;
FIG. 2 is a flowchart illustrating another device control method according to an example embodiment;
FIG. 3 is a flowchart illustrating yet another device control method according to an example embodiment;
FIG. 4 is a flowchart illustrating yet another device control method according to an example embodiment;
FIG. 5 is a flowchart illustrating yet another device control method according to an example embodiment;
FIG. 6 is a schematic diagram illustrating a manner of connection of a first device, a second device, and a predetermined device, according to an example embodiment;
fig. 7 is a schematic structural view of a device control apparatus according to an exemplary embodiment;
fig. 8 is a schematic structural view of another device control apparatus according to an exemplary embodiment;
fig. 9 is a schematic structural view of still another device control apparatus according to an exemplary embodiment;
fig. 10 is a schematic structural view of still another device control apparatus according to an exemplary embodiment;
FIG. 11 is a schematic diagram of a first device or a second device, according to an example embodiment;
Fig. 12 is a schematic diagram showing the structure of a third apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of embodiments of the invention.
The terminology used in the embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the disclosure. As used in this disclosure, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of embodiments of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
Before explaining the embodiments of the present disclosure in detail, application scenarios of the embodiments of the present disclosure are explained.
The device control scheme of the embodiment of the disclosure can be used in a scenario in which a plurality of communication devices share one output device.
In an application scenario where two devices share one audio output device, when one device applies for using the audio output device and the audio output device is being used by the other device, the device control method according to the embodiment of the disclosure may be used to determine which device is a specific use right of the audio output device, and the device having the use right of the audio output device sends service data to the audio output device for output by the audio output device.
For example, in a scenario where a mobile phone and a tablet pc share a bluetooth headset, if both the mobile phone and the tablet pc establish bluetooth connection with the bluetooth headset, when a user views a video played on the tablet pc through the bluetooth headset, and the mobile phone has an incoming call access, the device control method according to the embodiment of the present disclosure may determine whether to switch the right of use of the bluetooth headset to the mobile phone at the current moment or whether to keep the right of use of the bluetooth headset by the tablet pc.
It should be noted that the foregoing are only some exemplary application scenarios provided by the embodiments of the present disclosure, and do not constitute limitation of the application scenarios of the device control method provided by the embodiments of the present disclosure.
As shown in fig. 1A, an embodiment of the present disclosure provides a device control method, which is used in a first device, and includes:
s101: when the requirement of using the preset equipment exists, a first request message is sent, wherein the first request message requests to use the preset equipment;
s102: receiving a first response message of the first request message;
s103: and when the first response message is an acknowledgement message, sending service data to the preset equipment, wherein the service data is used for being output by the preset equipment, and the acknowledgement message comprises the following components: the first device returns an acknowledgement message when the priority of the first device is higher than that of the second device using the predetermined device.
The first device and the second device may be smart phones, tablet computers, notebook computers, personal computers, and the like, which is not limited in the embodiments of the present disclosure.
The predetermined device may be various output devices including: an audio output device and/or a video output device.
The audio output device includes: the Bluetooth earphone and/or the Bluetooth sound box, and the video output device can be an intelligent television.
The predetermined device of the embodiment of the present disclosure may also be other devices capable of outputting audio or video data provided by other devices, which is not limited by the embodiment of the present disclosure.
The application scenario of the embodiment of the present disclosure may be a scenario in which a connection relationship has been established in advance for the first device, the second device, and the predetermined device, and may be communication with each other based on the established connection relationship.
For example, when the first device, the second device and the predetermined device are all devices supporting WiFi connection, the first device, the second device and the predetermined device may access the same local area network and communicate with each other based on the local area network.
For example, when the first device, the second device, and the predetermined device are bluetooth devices, a bluetooth connection may be established between the first device, the second device, and the predetermined device, and communication may be performed based on the bluetooth connection.
In the case where any one of the first device, the second device, and the predetermined device can establish connection with a plurality of connection devices at the same time, bluetooth connection may be established between the first device, the second device, and the predetermined device in advance, and any one of the first device, the second device, and the predetermined device may communicate with the other two devices based on the bluetooth connection at any time.
Under the condition that any one of the first device, the second device and the preset device can only establish connection with one device at the same time, any one of the first device, the second device and the preset device can be respectively connected with other two devices through Bluetooth in advance, so that any one of the first device, the second device and the preset device can store the connection keys of the other two devices.
When any one of the first device, the second device and the predetermined device needs to communicate with one of the other two devices, a bluetooth connection can be quickly established with the device based on the stored connection key of the device, and communication can be performed based on the established bluetooth connection.
For example, the first device may first connect with the second device by bluetooth connection, and store a connection key corresponding to the second device. And then disconnecting the Bluetooth connection with the second device and connecting the Bluetooth connection with the preset device so as to store the connection key corresponding to the preset device.
When the first device needs to communicate with the second device or the predetermined device, a bluetooth connection can be quickly established with the second device or the predetermined device based on the stored connection key.
It should be noted that, the first device, the second device, and the predetermined device may also communicate with each other based on other communication methods, which is not limited in the embodiments of the present disclosure.
The service data provided by the first device to the predetermined device may be data that is generated when any of the first devices performs its own service and that the predetermined device may output.
The service data provided by the first device to the predetermined device may include at least one of:
audio data;
video data;
text data;
image data.
The audio data may be, for example, mobile phone data, weChat voice data, voice message, music data, etc. on the first device, and may also be other audio data, which is not limited by the embodiments of the present disclosure.
The video data may be video call data on the first device or movie or short video data played by the first device, or may be other video data, which is not limited in the embodiments of the present disclosure.
The text data may be word documents, PPT documents, text documents, EXCEL documents, etc. on the first device, or may be text data in other formats, which is not limited in the embodiments of the present disclosure.
The above is merely exemplary illustrating the service data provided by several first devices to the predetermined device, and does not constitute a limitation of the service data provided by the first devices to the predetermined device according to the embodiments of the present disclosure.
In the embodiment of the present disclosure, in a case where the first device has a need to use the predetermined device and the predetermined device is used by the second device, which device uses the predetermined device by transmitting the traffic data to the predetermined device is determined according to the priority of the first device and the priority of the second device. And the higher priority device of the first device and the second device directly transmits the service data to the preset device without switching the use right of the preset device by controlling the second device which is using the preset device to disconnect the preset device and establish connection with the other first device. Based on the method, the time required by switching the preset device between the first device and the second device can be shortened, and user experience is improved.
In addition, in the embodiment of the disclosure, according to the priority of the first device and the priority of the second device, which device is used by the predetermined device is judged, and the higher the priority is, the more important and urgent the service which indicates that the device is in practice for the user, so that the target device which can use the predetermined device is determined by the priority of the device, the better response to the user needs can be achieved, and the user experience is improved.
In addition, the priority of the first device and the priority of the second device are used for judging which device uses the preset device, so that the probability that the first device and the second device send service data to the preset device simultaneously can be avoided, and the service data of one device can interfere the output process when the preset device outputs the service data of the other device.
As shown in fig. 1B, an embodiment of the present disclosure provides a device control method, which is used in a first device, and includes:
s101: when the requirement of using the preset equipment exists, a first request message is sent, wherein the first request message requests to use the preset equipment;
s102: receiving a first response message of the first request message;
s104: and when the first response message is an acknowledgement message, sending service data to the preset equipment, wherein the service data is used for being output by the preset equipment, and the acknowledgement message comprises the following components: and the first device returns a confirmation response message when the priority of the first device and the priority of the second device using the preset device are the same.
In an embodiment of the present disclosure, the priority of the first device is compared with the priority of the second device using the predetermined device, and the second device is using the predetermined device, which indicates that the service event performed by the first device occurs later than the second device. In general, when the second device performs a service event, the user controls the first device to execute the same type of service event, and the service event executed after the description is more important to the user than the service event executed first, so when the priorities of the service events executed by the two devices are the same, the first device is still controlled to use the predetermined device, thus the user requirement can be better met, and the user experience is improved.
In one embodiment, the first device is instructed to determine that there is a need to use the predetermined device when the first device detects a preset event.
Wherein the preset event includes at least one of:
a called event;
a calling event;
an input operation triggering the output of multimedia information using the predetermined device is detected.
Illustratively, the called event includes at least one of:
detecting incoming call access requests sent by other devices;
detecting a voice call request received by communication software installed by the user;
detecting a voice message received by communication software installed by the user;
and detecting a video call request received by the communication software installed by the user.
The communication software may be communication software such as WeChat and QQ installed on the first device, or may be other communication software, which is not limited in the embodiment of the disclosure.
The foregoing list of several called events is merely exemplary, and does not constitute a limitation on the called events provided by the embodiments of the present disclosure.
The calling event includes at least one of:
detecting a mobile phone calling instruction triggered by a user;
detecting a voice call request in communication software triggered by a user;
A video call request in the communication software based on the user trigger is detected.
The foregoing list of several calling events is merely exemplary and is not to be construed as limiting the calling events provided by embodiments of the present disclosure.
The multimedia information includes at least one of:
audio information;
video information;
image information;
text information.
The foregoing is merely exemplary and is not intended to limit the multimedia information provided by the embodiments of the present disclosure.
When the first device detects the preset event, the first device is indicated to have the requirement of using the preset device. The first device may then send a first request message.
In one embodiment, the first request message includes: first information for determining a priority of use of the predetermined device by the first device.
Wherein the first information includes at least one of:
device priority information of the first device;
the first device uses the service priority information of the service data output by the preset device;
the event priority of the preset event;
and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
For example, the device priority information of the first device may be related information capable of determining a device type of the first device.
For example, the size information of the display screen of the first device may determine whether the first device is a mobile phone, a tablet computer, or a desktop computer.
The device priority information of the first device may also be other information capable of determining the device type of the first device, which is not limited in the embodiment of the present disclosure.
The service priority information of the service data output by the first device by using the predetermined device may be a delay value allowed by the service of the first device by requesting to use the predetermined device, a service type, or the like.
The event priority of the preset event may be a weight value given to the preset event, wherein the higher the weight value is, the higher the event priority of the preset event is.
The event identifier of the preset event can be a micro-beacon identifier, an incoming call access identifier and the like.
In one embodiment, the first reply message received by the first device is a reject reply message when the first device is lower priority than a second device using the predetermined device.
At this time, the first device may output a prompt message based on the rejection response message, so that the user knows in time that the predetermined device cannot be used yet at the current time of the first device.
In one embodiment, when there is a need to use the predetermined device, a first request message may be sent to the predetermined device, the second device, and/or the third device; wherein the first reply message is from a device that receives the first request message.
In an exemplary embodiment, when the object of the first request message sent by the first device is the second device, the response message returned by the second device based on the first request message is the response message after the first response message is received.
Similarly, when the object of the first request message sent by the first device is the third device, the received first response message is a response message returned by the third device based on the first request message.
When the object of the first request message sent by the first device is the preset device, the received first response message is a response message returned by the preset device based on the first request message.
The third device may be a device capable of communicating with the first device, the second device, and the predetermined device and having a data processing function.
The third device may be a server, or may be a cloud platform capable of receiving and sending messages and capable of performing data processing, or may be a terminal device, where the first device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like, for example, and the embodiments of the disclosure are not limited thereto.
In one embodiment, the method further comprises:
when the first device ends using the predetermined device, a notification message is sent to the predetermined device, the second device, or the third device to notify the predetermined device, the second device, or the third device that the predetermined device itself has ended using the predetermined device.
The second device may be enabled to continue sending traffic data to the predetermined device based on the notification message. This can not only improve the switching efficiency of the predetermined device for switching between the first device and the second device, but also improve the use rate of the predetermined device.
It should be noted that if the predetermined device can establish bluetooth connection with only one device at the same time, the first device may disconnect from the predetermined device after transmitting the notification message.
In one embodiment, the first request message sent by the first device further includes: duration information; the duration information indicates the duration of use of the predetermined device by the first device. Based on the time length information, the predetermined device, the second device, or the third device may be caused to predict a time when the first device ends using the predetermined device.
For example, it is assumed that the service event to be executed by the first device is answering a WeChat voice message, at this time, the first device may determine a use time length of itself using the predetermined device according to a time length of the received WeChat voice message, and include the time length information in the transmitted first request message.
As is apparent from the above description, the first device may transmit the first request message to the second device, the third device, or the predetermined device, that is, the receiving device of the first request message may be the second device, the third device, or the predetermined device.
Based on this, the specific implementation process of determining the priority of the first device and the second device may be performed by the second device, the third device, or the predetermined device.
In another embodiment, the implementation procedure of determining the priority levels of the first device and the second device may also be performed by the first device.
Illustratively, when there is a need to use a predetermined device, acquiring a priority of use of the predetermined device by the second device;
when the first device has the same or higher priority as the second device, a first request message is sent to the predetermined device, the second device, and/or a third device.
For example, when the first device determines that it has a need to use the predetermined device based on the detected preset event, the second request message may be transmitted to the second device, the third device, or the predetermined device;
receiving second response information returned by the second equipment based on the second request message;
A priority of the second device to use the predetermined device is determined based on the second response information.
Wherein, the second response information may be at least one of:
device priority information of the second device;
the second device uses the service priority information of the service data output by the preset device;
and the second equipment uses the service identifier of the service executed by the preset equipment, wherein the service identifier has a corresponding relation with the service priority.
For example, the device priority information of the second device may be related information capable of judging the device type of the second device.
For example, the size information of the display screen of the second device, and it can be determined whether the second device is a mobile phone, a tablet computer or a desktop computer according to the size information.
The device priority information of the second device may also be other information capable of determining the device type of the second device, which is not limited in the embodiment of the present disclosure.
The service priority information of the service data output by the second device by using the predetermined device may be a delay value allowed by the service of the second device by requesting to use the predetermined device, a service type, or the like.
The service priority may be a weight given to the service, wherein the higher the weight, the higher the service priority of the service.
When the service executed by the second device through the predetermined device is answering the micro-letter phone, the service identifier may be a micro-beacon identifier.
For example, when the second response information received by the first device is a device type of the second device, the first device may determine the priority of the first device and the second device using the predetermined device by comparing its device type with the device type of the second device.
The service executed on the mobile phone is generally more important than the service executed on the tablet computer for the user, so the priority of the mobile phone and the priority higher than the tablet computer can be set.
Based on the above, when the first device determines that the second device is a mobile phone and is a tablet computer based on the device type information included in the second response message sent by the second device, it may be determined that the priority of the second device using the predetermined device is higher than the priority of the first device using the predetermined device.
If the first device determines that the second device is a tablet computer based on the device type information included in the second response message sent by the second device, and the first device is a mobile phone, it may be determined that the priority of the second device using the predetermined device is lower than the priority of the first device using the predetermined device.
If the first device determines that the second device is a tablet computer based on the device type information included in the second response message sent by the second device, and the first device is also a tablet computer, it may be determined that the priority of using the predetermined device by the second device is the same as the priority of using the predetermined device by the first device.
When the second response message is the service priority information of the service data output by the second equipment by using the preset equipment; the first device may determine a service priority of the second device using the predetermined device based on service priority information of service data output by the second device using the predetermined device. Then, the service priority of the second device using the predetermined device is compared with the service priority of the second device using the predetermined device.
In an exemplary embodiment, in a scenario where the first device is a mobile phone, the second device is a tablet computer, and the predetermined device is a bluetooth headset, when the mobile phone needs to execute a mobile voice call service based on a detected called event in a process of executing a music playing service, the first device may compare a service priority of the mobile voice call service with a service priority of the music playing service.
If the service priority of the mobile voice call service is higher than the service priority of the music playing service, determining that the priority of the first device using the predetermined device is higher than the priority of the second device using the predetermined device.
If the service priority of the mobile voice call service is lower than the service priority of the music playing service, determining that the priority of the first device using the predetermined device is lower than the priority of the second device using the predetermined device.
If the service priority of the mobile voice call service is equal to the service priority of the music playing service, the priority of the first device using the predetermined device is determined to be the same as the priority of the second device using the predetermined device.
For another example, when the second response information is a service priority of a service performed by the second device using the predetermined device.
The first device stores in advance a weight assigned to each service by the user based on the importance level of the service executable by the first device. The higher the importance degree and the emergency degree of the service, the higher the weight can be given to the service by the user, and the higher the service priority of the service.
The first device may acquire, according to the first weight corresponding to the service executed by the second device using the predetermined device and carried in the received second response information, a second weight corresponding to the preset event detected by the first device.
And comparing the first weight with the second weight, and when the first weight is larger than the second weight, indicating that the priority of the second device using the preset device is higher than that of the first device using the preset device.
When the first weight is equal to the second weight, the priority of the second device using the predetermined device is the same as the priority of the first device using the predetermined device.
When the first weight is smaller than the second weight, the priority of the second device using the preset device is lower than that of the first device using the preset device.
In the embodiment of the disclosure, since the importance degree and the emergency degree of the same service may be different for different users, the user assigns different weights for each service, so that the judgment of the priority of the first device and the second device for using the predetermined device is more flexible and more adaptive to the requirement of the user, and further, it is more accurate to determine which device of the first device and the second device is the device which is more hopeful for the user to use the predetermined device.
For example, assume that the preset event that the first device and the second device may perform is at least one of answering a mobile phone service, dialing a mobile phone service, answering a voice phone service, dialing a voice phone service, answering a voice message service, playing a video service, and playing a music service. At this time, referring to table 1 below, the first device may assign different weights to the above-described services based on the user's selection.
Table 1 weights corresponding to identifications of business events
Assuming that the user detects an incoming access request during the process of watching a video played on the second device through the predetermined device, the first device indicates that the user needs to use the predetermined device to answer the mobile phone service. At this time, the first device may transmit a second request message to the second device to acquire a priority of the second device to use the predetermined device.
If the weight returned by the second device received by the first device based on the second request message is 5 and the weight of the detected preset event is 10, it may be determined that the priority of the first device using the predetermined device is higher than the priority of the second device using the predetermined device.
When the first device determines that the first device has the same or higher priority than the second device in the above manner, which indicates that the service that the first device is performing using the predetermined device is more important to the user, a first request message may be transmitted to the predetermined device, the second device, and/or the third device to request the use of the predetermined device.
If the first device determines that the priority of the first device is lower than the priority of the second device based on the second response information, the business event which is executed by the second device is more important for the user. At this time, a prompt message may be output to remind the user that the predetermined device is not currently available.
It should be noted that, the first device needs to send the first request message and the second request message to the second device, whether the first device has established bluetooth connection with the second device may be determined before sending the first request message and the second request message, and if not, bluetooth connection may be established with the second device based on the stored connection key corresponding to the second device.
The implementation manner of establishing bluetooth connection between the first device and the second device based on the stored connection key corresponding to the second device may refer to related technologies, and the embodiments of the present disclosure are not described herein again.
Referring to fig. 2, an embodiment of the present disclosure provides a device control method for use in a second device, the method including:
s201: transmitting service data to a preset device, wherein the service data is used for being output by the preset device;
s202: and stopping outputting the service data to the preset equipment when the first equipment with higher priority than the second equipment needs to use the preset equipment.
The service data sent by the second device to the predetermined device may be data that is generated when any second device executes its own service and that can be output by the predetermined device.
The service data transmitted by the second device to the predetermined device may include at least one of:
audio data;
video data;
text data;
image data.
The audio data may be, for example, mobile phone data, weChat voice data, voice message, music data, etc. on the second device, and may also be other audio data, which is not limited by the embodiments of the present disclosure.
The video data may be video call data on the second device or movie or short video data played by the second device, or may be other video data, which is not limited in the embodiments of the present disclosure.
The text data may be word documents, PPT documents, text documents, EXCEL documents, etc. on the second device, or may be text data in other formats, which is not limited in the embodiments of the present disclosure.
The above is merely exemplary illustrating the service data provided by several second devices to the predetermined device, and does not constitute a limitation of the service data provided by the second device to the predetermined device according to the embodiment of the present disclosure.
In one embodiment, if there is a first device having the same priority as the second device that needs to use the predetermined device, sending of the service data to the predetermined device is stopped.
As can be seen from the above description, the object of the first device that sends the first request message may be the second device, the third device, or the predetermined device.
When the object of the first request message sent by the first device can be the second device, the second device receives the first request message sent by the first device.
In one embodiment, the first request message sent by the first device includes: first information for determining a priority of use of the predetermined device by the first device.
Or,
the first request message is: the first device transmits when the first device and the second device use the predetermined device with the same or higher priority.
The first request message received by the second device includes: when determining the first information of the priority of the first device using the predetermined device, it may be determined whether there is a first device having the same or higher priority as the second device that needs to use the predetermined device according to the first request message.
Wherein the first information includes at least one of:
device priority information of the first device;
the first device uses the service priority information of the service data output by the preset device;
The event priority of the preset event;
and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
For example, the device priority information of the first device may be related information capable of determining a device type of the first device.
For example, the size information of the display screen of the first device may determine whether the first device is a mobile phone, a tablet computer, or a desktop computer.
The device priority information of the first device may also be other information capable of determining the device type of the first device, which is not limited in the embodiment of the present disclosure.
The service priority information of the service data output by the first device by using the predetermined device may be a delay value allowed by the service of the first device by requesting to use the predetermined device, a service type, or the like.
The event priority of the preset event may be a weight assigned to the preset event, where the higher the weight is, the higher the event priority of the preset event is.
The event identifier of the preset event can be a micro-beacon identifier, an incoming call access identifier and the like.
In one embodiment, the first reply message received by the first device is a reject reply message when the first device is lower priority than a second device using the predetermined device.
At this time, the first device may output a prompt message based on the rejection response message, so that the user knows in time that the predetermined device cannot be used yet at the current time of the first device.
It should be noted that, after the second device receives the first request message, the implementation direction of the second device to determine the priority of the first device and the second device to use the predetermined device may refer to the above implementation manner, and the embodiments of the disclosure are not repeated herein.
In one embodiment, when the second device determines that there is a first device having a higher priority than the second device that needs to use the predetermined device through the above implementation, the transmission of the service data to the predetermined device is stopped.
In another embodiment, if there is a first device having the same priority as the second device that needs to use the predetermined device, sending of the service data to the predetermined device is also stopped.
As can be seen from the above description, the above-described process of determining the priorities of the first device and the second device may also be performed by the third device or the predetermined device.
When the third device or the predetermined device determines that the priority of the first device is higher than the priority of the second device based on the received first request message, or the priority of the first device is equal to the priority of the second device, the second device receives a first instruction sent by the third device or the predetermined device, and the second device may further stop sending service data to the predetermined device based on the first instruction.
In another embodiment, when the first request message received by the second device is: when the first device and the second device use the predetermined device with the same or higher priority, the first device transmits.
It is explained that the first device has determined that the priority of the first device is equal to or higher than the priority of the second device, the first device will send the traffic data to the predetermined device, and therefore, the second device stops sending the traffic data to the predetermined device when receiving the first request message.
The implementation manner in which the first device determines that the priority of the first device is equal to or higher than the priority of the second device may refer to the above implementation manner, and the embodiments of the present disclosure are not described herein again.
In the embodiment of the disclosure, when it is determined that the priority of the first device is higher than the priority of the second device or the priority of the first device is the same as the priority of the second device in the above manner, it is explained that the service event to be executed by the first device is more important to the user. The first device sends the service data to the preset device, and at this time, the second device stops sending the service data to the preset device, so that interference of the service data provided by the second device to the playing process of playing the service data provided by the first device by the preset device can be avoided.
In one embodiment, the second device sends a first response message to the first device according to the first request message after receiving the first request message.
Illustratively, when the second device determines that the priority of the first device and the priority of the second device using the predetermined device are the same or higher in the above manner, the first response message sent to the first device is an acknowledgement response message;
in the embodiment of the disclosure, the priority of the first device and the priority of the second device which uses the preset device are compared, and the second device uses the preset device, which indicates that the service executed by the first device occurs later than the second device.
In general, when the second device performs the service, the user controls the first device to execute the same type of service, and the service executed after the description is more important to the user than the service executed earlier, so when the priorities of the services executed by the two devices are the same, the first device is still controlled to use the predetermined device, thus the user requirement can be better met, and the user experience is improved.
And when the first device is lower than the priority of the second device using the preset device, the first response message sent to the first device is a refusal response message.
When the first response message sent by the second device to the first device is a confirmation response message, the first device sends service data to the preset device based on the first response message. Thus, the second device stops transmitting the service data to the predetermined device.
When the first response message sent by the second device to the first device is a refusal response message, it is indicated that the second device may continue to use the predetermined device, and thus, the second device may continue to send service data to the predetermined device.
In one embodiment, the second device may determine duration information of the first device using the predetermined device according to service data output by the first device using the predetermined device;
and continuously sending service data to the preset equipment based on the time length information, wherein the service data is used for being output by the preset equipment.
For example, assuming that the second device determines from the received first request message that the preset event detected by the first device is answering the WeChat voice message, and assuming that the maximum duration of the WeChat voice message is 60s, the second device may determine that the duration of the use of the predetermined device by the first device is 60s.
Based on this, the second device may start the timer from the time of stopping transmission of the service data to the predetermined device, and continue to transmit the service data to the predetermined device after 60s.
In another embodiment, the first request message received by the second device further includes: duration information; the duration information indicates the duration of use of the predetermined device by the first device. At this time, the second device may continue to provide the service data to the predetermined device based on the time length information.
The implementation process of the second device to continue sending the service data to the predetermined device based on the duration information may refer to the implementation process described above, and the embodiments of the present disclosure are not described herein again.
In another embodiment, the second device may also receive a notification message sent by the first device; based on the notification message, the second device may determine that the first device has ended using the predetermined device. Thus, the second device may continue to provide the service data to the predetermined device based on the notification message.
It should be noted that, if the predetermined device can establish connection with only one device at the same time, the second device needs to establish connection with the predetermined device before continuing to send service data to the predetermined device based on the duration information.
In one embodiment, when the second device stops transmitting the service data to the predetermined device, transmission state information at the time of stopping providing the service data to the predetermined device may also be saved. Thus, when the second device finishes using the predetermined device at the first device, the second device can continue to send the service data to the predetermined device based on the saved transmission state information when the service data is stopped being provided to the predetermined device last time, thereby increasing the continuity of sending the service data.
For example, when the service data provided by the second device to the predetermined device is audio data, the second device may save the name of the song played and the playing progress of the song when stopping sending the service data to the predetermined device.
When the second device can continue to send the service data to the preset device, the audio data of the song can be continuously provided for the preset device on the basis of the last playing progress, so that the user can continue to listen to the song, and the user experience is improved.
In one embodiment, the second device may further receive a second instruction sent by the third device or the predetermined device, and continue to send service data to the predetermined device based on the second instruction.
Referring to fig. 3, an apparatus control method provided in an embodiment of the present disclosure is used for a third apparatus, and includes:
s301: receiving a first request message sent by first equipment, wherein the first request message requests to use preset equipment;
s302: determining whether the predetermined device is used by a second device;
s303: determining a priority of the first device and a second device using the predetermined device when the predetermined device is being used by the second device;
S304: when the first device has higher priority than a second device using the predetermined device, sending a first response message to the first device, wherein the first response message is an acknowledgement response message;
s305: and sending a first instruction to the second device, wherein the first instruction is used for instructing the second device to stop sending service data to the preset device.
In one embodiment, the first request message received by the third device includes: first information for determining a priority of use of the predetermined device by the first device.
Wherein the first information includes at least one of:
device priority information of the first device;
the first device uses the service priority information of the service data output by the preset device;
the event priority of the preset event;
and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
For example, the device priority information of the first device may be related information capable of determining a device type of the first device.
For example, the size information of the display screen of the first device may determine whether the first device is a mobile phone, a tablet computer, or a desktop computer.
The device priority information of the first device may also be other information capable of determining the device type of the first device, which is not limited in the embodiment of the present disclosure.
The service priority information of the service data output by the first device by using the predetermined device may be a delay value allowed by the service of the first device by requesting to use the predetermined device, a service type, or the like.
The event priority of the preset event may be a weight value given to the preset event, wherein the higher the weight value is, the higher the event priority of the preset event is.
The event identifier of the preset event can be a micro-beacon identifier, an incoming call access identifier and the like.
In one embodiment, after the third device receives the first request message sent by the first device, it may first determine whether the predetermined device is used by the second device.
In an exemplary embodiment, when the connection between the second device and the predetermined device is a bluetooth connection, the third device sends a state acquisition request to the second device, where the state acquisition request is used to request to acquire a bluetooth pairing list of the second device, where the bluetooth pairing list includes a bluetooth identifier of a bluetooth device connected to the second device at the current time. The first device may search the received bluetooth pairing list for a bluetooth identifier of the predetermined device, and if found, indicate that the predetermined device is being used by the second device at the current time, and if not found, indicate that the predetermined device is not being used by the second device at the current time.
It should be noted that, the bluetooth identifier may be a bluetooth address, or may be another unique identifier on a bluetooth device, which is not limited in this embodiment of the disclosure.
Through the implementation manner, if the fact that the preset device is not used by the second device is determined, a first response message is sent to the first device, wherein the first response message is a confirmation response message.
Determining a priority of the first device and a second device using the predetermined device if it is determined that the predetermined device is being used by the second device;
the implementation manner of determining the priority of the first device and the second device that is using the predetermined device may refer to the above implementation manner, and the embodiments of the present disclosure are not described herein again.
When the first device has a higher priority than the second device using the predetermined device, it is explained that the preset event detected by the first device is more important and urgent for the user than the service being performed by the second device using the predetermined device, and therefore, the third device can transmit an acknowledgement message to the first device.
Since the first device transmits the service data to the predetermined device after receiving the acknowledgement message. Therefore, the third device also sends a first instruction to the second device, where the first instruction is used to instruct the second device to stop sending the service data to the preset device, so as to prevent the service data provided by the second device to the preset device from interfering with the playing process of playing the service data provided by the first device by the preset device.
In addition, the first instruction is further for instructing the second device to disconnect bluetooth from the predetermined device if the predetermined device can only establish a connection with one device.
In one embodiment, when the priority of the first device is the same as that of the second device using the predetermined device, a first response message is still sent to the first device, and the first response message is an acknowledgement response message
In one embodiment, when the first device is lower priority than a second device using the predetermined device, a first response message is sent to the first device, the first response message being a reject response message.
When the first device is lower in priority than a second device using the predetermined device, it is stated that the second device is currently executing a business event using the predetermined device that is more important to the user than a preset event detected on the first device. Thus, the third device may send a rejection reply message to the first device to alert the first device that the predetermined device has not been available at the current time.
In one embodiment, the third device may further determine duration information of the first device using the predetermined device according to the service data output by the first device using the predetermined device;
And sending a second instruction to the second device based on the duration information, wherein the second instruction is used for indicating the second device to continue to provide the service data to the preset device.
The second instructions may also be used to instruct the second device to reestablish a bluetooth connection with the predetermined device if the predetermined device can only establish a bluetooth connection with one device.
The third device may further transmit a bluetooth disconnection instruction to the first device based on the duration information, the disconnection instruction being for executing disconnection of the first device from the predetermined device, if the predetermined device can establish bluetooth connection with only one device.
The implementation process of determining, by the third device, the duration information of the first device using the predetermined device according to the service data output by the first device using the predetermined device may refer to the implementation process of determining, by the second device, the duration information of the first device using the predetermined device according to the service data output by the second device using the predetermined device, which is not described herein in detail.
For example, assuming that the third device determines that the duration of the first device using the predetermined device is 10min according to the service data output by the first device using the predetermined device, the third device may start timing while transmitting the first instruction to the second device, and transmit the second instruction to the second device after transmitting the first instruction for 10min, to instruct the second device to continue transmitting the service data to the predetermined device.
In another embodiment, the first request message received by the third device further includes: and the time length information is used for indicating the using time length of the first device using the preset device. At this time, the third device may transmit a second instruction to the second device based on the time length information.
The specific implementation process of the third device sending the second instruction to the second device based on the duration information may refer to the implementation process described above, and the embodiments of the present disclosure are not described herein again.
The third device may further transmit a bluetooth connection disconnection instruction to the first device based on the duration information, the bluetooth connection disconnection instruction being for executing disconnection of the first device from the predetermined device, if the predetermined device can establish bluetooth connection with only one device.
As is apparent from the above description, when the first device ends using the predetermined device, the first device may send a communication message to the third device, and accordingly, the third device may receive a notification message sent by the first device, and send a second instruction to the second device according to the notification message.
Referring to fig. 4, an apparatus control method provided in an embodiment of the present disclosure is used for a predetermined apparatus, and includes:
S401: receiving service data sent by second equipment;
s402: outputting the service data of the second equipment;
s403: stopping receiving the service data sent by the second device and receiving the service data sent by the first device, wherein the priority of the first device and the priority of the second device using the preset device are the same or higher;
s404: and outputting the service data of the first equipment.
In one embodiment, the predetermined device may further receive a first request message sent by the first device, and determine, based on the first request message, a priority of the first device using the predetermined device and a priority of the second device using the predetermined device.
The specific implementation process of determining, by the predetermined device, the priority of the first device using the predetermined device and the priority of the second device using the predetermined device based on the first request message may refer to the above implementation process, and embodiments of the present disclosure are not described herein.
And stopping receiving the service data sent by the second equipment, receiving the service data sent by the first equipment and outputting the service data of the first equipment when the preset equipment determines that the first equipment uses the preset equipment with higher priority than the second equipment uses the preset equipment.
When the preset equipment determines that the priority of the first equipment using the preset equipment is the same as that of the second equipment using the preset equipment, the receiving of the service data sent by the second equipment and the receiving of the service data sent by the first equipment are still stopped, and the service data of the first equipment are output.
And when the preset equipment determines that the priority of the first equipment using the preset equipment is lower than that of the second equipment using the preset equipment, continuously receiving the service data sent by the second equipment, and sending a refusal response message to the first equipment so as to prompt that the first equipment cannot use the preset equipment currently.
In one embodiment, the predetermined device sends a first instruction to the second device to execute the second device to stop sending traffic data to the first device when it is determined that the first device uses the predetermined device with a higher priority than the second device uses the predetermined device.
In one embodiment, the predetermined device may further receive a notification message sent by the first device, and based on the communication message, continue to receive the service data sent by the second device and output the service data sent by the second device.
When the first request message further includes the duration information, the predetermined device may stop receiving the service data transmitted by the first device based on the duration information of the first device using the predetermined device, and continue to receive the service data transmitted by the second device.
In one embodiment, after stopping receiving the service data sent by the first device, the predetermined device may further send a second instruction to the second device, to instruct the second device to continue sending the service data to the predetermined device.
In one embodiment, the predetermined device may further determine duration information of the first device using the predetermined device based on the received service data sent by the first device, and send a second instruction to the second device based on the duration information.
If the predetermined device can only establish bluetooth connection with one device, the predetermined device may also receive a connection establishment request sent by the first device or the second device before receiving service data sent by the first device or the second device, and establish bluetooth connection with the first device or the second device based on the connection establishment request.
Referring to fig. 5 and 6, illustratively, in a scenario where the first device is a cloud platform, the second device is a smart phone, the third device is a tablet computer, and the predetermined device is a bluetooth headset, the device control method in the embodiment of the disclosure includes the following steps:
s501: the Bluetooth headset, the smart phone and the tablet personal computer send Bluetooth information of the Bluetooth headset, the smart phone and the tablet personal computer to the cloud platform;
S502: the tablet personal computer acquires Bluetooth information of the Bluetooth headset from the cloud platform and establishes connection with the Bluetooth headset so as to play video or music; the Bluetooth information comprises a Bluetooth address and a pairing key;
s503: the smart phone sends a first request message to the cloud platform based on the detected mobile voice call service to request to use the Bluetooth headset;
s504: the cloud platform sends a connection disconnection instruction to the tablet computer based on the first request message, and sends a connection establishment instruction to the smart phone;
s505: the intelligent mobile phone establishes connection with the Bluetooth headset based on the received connection establishment instruction so as to execute mobile voice call service;
s506: after the intelligent mobile phone finishes the mobile voice call service, sending a notification message to the cloud platform;
s507: the cloud platform sends a connection restoration instruction to the tablet computer based on the received notification message;
s508: and the tablet personal computer resumes connection with the Bluetooth headset based on the received connection resume instruction, and continues to play the video.
Referring to fig. 7, an apparatus control device provided in an embodiment of the present disclosure includes:
a first transmitting module 701 configured to transmit a first request message when there is a need to use a predetermined device, wherein the first request message requests to use the predetermined device;
A first receiving module 702 configured to receive a first reply message of the first request message;
a second sending module 703, configured to send service data to the predetermined device when the first response message is an acknowledgement response message, where the service data is used for output by the predetermined device, and the acknowledgement response message is: the first device returns an acknowledgement message when the priority of the first device is higher than that of the second device using the predetermined device.
Optionally, the acknowledgement response message is: and the first device returns a confirmation response message when the priority of the first device and the priority of the second device using the preset device are the same.
Optionally, the apparatus further comprises:
the first output module is configured to output prompt information when the first response message is a refusal response message.
Optionally, the apparatus further comprises:
a detection module configured to detect a preset event;
a first determination module configured to determine that there is a need to use the predetermined device when the preset event is detected.
Optionally, the preset event includes one of:
a called event;
a calling event;
an input operation triggering the output of multimedia information using the predetermined device is detected.
Optionally, the first request message includes: first information for determining a priority of use of the predetermined device by the first device.
Optionally, the first information includes at least one of:
device priority information of the first device;
the first device uses the service priority information of the service data output by the preset device;
the event priority of the preset event;
and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
Optionally, the first sending module is configured to:
transmitting the first request message to a predetermined device, a second device and/or the third device when there is a need to use the predetermined device; wherein the first reply message is from a device that receives the first request message.
Optionally, the apparatus further comprises:
and a third sending module configured to send a notification message to the predetermined device, the second device, or the third device, wherein the notification message indicates that the first device ends using the predetermined device.
Optionally, the first request message further includes: duration information; the duration information indicates the duration of use of the predetermined device by the first device.
Optionally, the first sending module is further configured to:
acquiring the priority of the second device for using the preset device when the requirement for using the preset device exists;
when the first device has the same or higher priority as the second device, a first request message is sent to the predetermined device, the second device, and/or a third device.
Referring to fig. 8, the present disclosure provides a device control apparatus, the apparatus comprising:
a fourth transmitting module 801 configured to transmit service data to a predetermined device, where the service data is used for being output by the predetermined device;
and a fifth transmitting module 802 configured to stop transmitting service data to the predetermined device if there is a first device having a higher priority than the second device, which needs to use the predetermined device.
Optionally, the apparatus further comprises:
and a sixth transmitting module configured to stop transmitting service data to the predetermined device if there is a first device having the same priority as the second device that needs to use the predetermined device.
Optionally, the apparatus further comprises at least one of:
a second receiving module configured to receive a first request message sent by the first device, and determine whether there is a first device having the same or higher priority as the second device that needs to use the predetermined device according to the first request message;
And the third receiving module is configured to receive a first instruction sent by the preset equipment or the third equipment, wherein the first instruction is used for indicating the second equipment to stop sending service data to the preset equipment.
Optionally, the apparatus further comprises:
and a seventh sending module configured to send a first response message to the first device according to the first request message.
Optionally, the seventh sending module is configured to:
when the priority of the first device and the priority of the second device using the preset device are the same or higher, the first response message sent to the first device is a confirmation response message;
and when the first device is lower than the priority of the second device using the preset device, the first response message sent to the first device is a refusal response message.
Optionally, the first request message includes: first information for determining a priority of use of the predetermined device by the first device;
or,
the first request message is: the first device transmits when the first device and the second device use the predetermined device with the same or higher priority.
Optionally, the first information includes at least one of:
device priority information of the first device;
the first device uses the service priority information of the service data output by the preset device;
the event priority of the preset event;
and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
Optionally, the apparatus further comprises:
a second determining module configured to determine duration information of the first device using the predetermined device according to service data output by the first device using the predetermined device;
and an eighth sending module configured to continue sending service data to the predetermined device based on the duration information, wherein the service data is used for being output by the predetermined device.
Optionally, the first request message further includes: duration information; the duration information indicates a duration of use of the predetermined device by the first device, and the apparatus further includes:
and a ninth sending module configured to continue sending the service data to the predetermined device based on the duration information.
Optionally, the apparatus further comprises:
A fourth receiving module configured to receive a notification message sent by the first device;
a tenth transmission module configured to continue transmitting the service data to the predetermined device based on the notification message,
optionally, the apparatus further comprises:
and a saving module configured to save transmission state information when the service data is stopped being provided to the predetermined device.
Optionally, the apparatus further comprises:
and a fifth receiving module configured to receive a second instruction sent by a third device or a predetermined device, where the second instruction is used to instruct the second device to continue sending service data to the predetermined device.
Referring to fig. 9, the present disclosure provides a device control apparatus, the apparatus including:
a sixth receiving module 901, configured to receive a first request message sent by a first device, where the first request message requests to use a predetermined device;
a third determination module 902 configured to determine whether the predetermined device is used by a second device;
a fourth determination module 903 configured to determine a priority of the first device and a second device that is using the predetermined device when the predetermined device is being used by the second device;
An eleventh transmission module 904 configured to transmit a first response message to the first device when the first device has a higher priority than a second device using the predetermined device, the first response message being an acknowledgement response message;
a twelfth transmission module 905 is configured to transmit a first instruction to the second device, where the first instruction is used to instruct the second device to stop transmitting service data to the predetermined device.
Optionally, the apparatus further comprises:
a thirteenth transmission module configured to transmit a first response message to the first device when the first device is the same as a priority of a second device using the predetermined device, the first response message being an acknowledgement response message;
optionally, the apparatus further comprises:
a fourteenth transmission module configured to transmit a first response message to the first device when the first device is lower in priority than a second device using the predetermined device, the first response message being a refusal response message.
Optionally, the first request message includes: first information for determining a priority of use of the predetermined device by the first device.
Optionally, the fourth determination module is configured to:
and determining the priority of the first device and the second device using the preset device according to the first information.
Optionally, the first information includes at least one of:
device priority information of the first device;
the first device uses the service priority information of the service data output by the preset device;
the event priority of the preset event;
and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
Optionally, the apparatus further comprises:
a seventh determining module configured to determine duration information of the first device using the predetermined device according to the service data output by the first device using the predetermined device;
and a fifteenth transmitting module configured to transmit a second instruction to the second device based on the duration information, wherein the second instruction is used for instructing the second device to continue providing the service data to the predetermined device.
Optionally, the first request message further includes: duration information; the duration information indicates a duration of use of the predetermined device by the first device, and the apparatus further includes:
A sixteenth transmission module configured to transmit a second instruction to the second device based on the duration information.
Optionally, the apparatus further comprises:
an eighth receiving module configured to receive a notification message sent by the first device;
and sending a second instruction to the second equipment according to the notification message.
Optionally, the apparatus further comprises:
a seventeenth sending module configured to send a first response message to the first device when the predetermined device is not used by the second device, wherein the first response message is an acknowledgement response message.
Referring to fig. 10, the present disclosure provides a device control apparatus, including:
a ninth receiving module 1001 configured to receive service data sent by the second device;
a second output module 1002 configured to output service data of the second device;
a tenth receiving module 1003 configured to stop receiving service data transmitted by the second device and receive service data transmitted by a first device, wherein the priority of the first device and the second device using the predetermined device is the same or higher;
and a third output module 1004 configured to output service data of the first device.
The embodiment of the disclosure provides a terminal device, which comprises:
a memory for storing processor-executable instructions;
a processor connected with the memory;
wherein the processor is configured to execute the device control method provided by any of the foregoing technical solutions.
The processor may include various types of storage medium, which are non-transitory computer storage media, capable of continuing to memorize information stored thereon after a terminal device is powered down.
The processor may be coupled to the memory via a bus or the like for reading an executable program stored on the memory, e.g. capable of performing at least one of the methods as shown in any of the figures 1-5.
Fig. 11 is a block diagram of a first device or second device 1100, according to an example embodiment. For example, the first device or the second device 1100 may be a cell phone, a notebook computer, a tablet computer, or the like.
Referring to fig. 11, the first device or the second device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input/output (I/O) interface 1112, a sensor component 1114, and a communication component 1116.
The processing component 1102 generally controls overall operation of the first device or the second device 1100, such as operation with sending traffic data to a predetermined device. The processing component 1102 may include one or more processors 1120 to execute instructions to produce all or part of the steps of the methods described above. Further, the processing component 1102 can include one or more modules that facilitate interactions between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the first device or the second device 1100. Examples of such data include instructions for any application or method operating on the first device or the second device 1100. The memory 1104 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 1106 provides power to various components of the first device or the second device 1100. The power supply component 1106 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the first device or the second device 1100.
The multimedia component 1108 includes a screen between the first device or second device 1100 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia component 1108 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the first device or the second device 1100 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1110 is configured to output and/or input an audio signal. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the first device or the second device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 further comprises a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1114 includes one or more sensors for providing a status assessment of various aspects for the first device or the second device 1100. For example, the sensor assembly 1114 may detect an on/off state of the first device or the second device 1100, a relative positioning of the assemblies, such as a display and keypad of the first device or the second device 1100, the sensor assembly 1114 may also detect a change in position of the first device or the second device 1000, the presence or absence of a user contact with the first device or the second device 1100, an orientation or acceleration/deceleration of the first device or the second device 1100, and a change in temperature of the first device or the second device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate communication between the first device or the second device 1100 and other devices, either in a wired or wireless manner. The first device or the second device 1100 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1116 further includes a Near Field Communication (NFC) module to facilitate short range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the first device or the second device 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital signal processing image devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above method.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory 1104 including instructions executable by the processor 1120 of the first device or the second device 1100 to generate the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
As shown in fig. 12, an embodiment of the present disclosure shows a structure of a third apparatus 1200. Referring to fig. 12, third device 1200 includes a processing component 1222 that further includes one or more processors, and memory resources, represented by memory 1232, for storing instructions, such as application programs, executable by processing component 1222. The application programs stored in memory 1232 may include one or more modules each corresponding to a set of instructions. Further, the processing component 1222 is configured to execute instructions to perform the above-described methods.
The third device 1200 may also include a power component 1226 configured to power manage the third device 1200, a wired or wireless network interface 1250 configured to connect the third device 1200 to a network, and an input-output (I/O) interface 1258. The third device 1200 may operate based on an operating system stored in memory 1232, such as Windows Server TM, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (39)

  1. A device control method, wherein for a first device, the method comprises:
    when the requirement of using the preset equipment exists, a first request message is sent, wherein the first request message requests to use the preset equipment;
    receiving a first response message of the first request message;
    and when the first response message is an acknowledgement message, sending service data to the preset equipment, wherein the service data is used for being output by the preset equipment, and the acknowledgement message comprises the following components: the first device returns an acknowledgement message when the priority of the first device is higher than that of the second device using the predetermined device.
  2. The method of claim 1, wherein the acknowledgement response message further comprises: and the first device returns a confirmation response message when the priority of the first device and the priority of the second device using the preset device are the same.
  3. The method according to claim 1 or 2, wherein the method further comprises:
    And outputting prompt information when the first response message is a refusal response message.
  4. The method according to claim 1 or 2, wherein the method further comprises:
    detecting a preset event;
    when the preset event is detected, a need to use the predetermined device is determined.
  5. The method of claim 4, wherein the preset event comprises one of:
    a called event;
    a calling event;
    an input operation triggering the output of multimedia information using the predetermined device is detected.
  6. The method according to claim 1 or 2, wherein,
    the first request message includes: first information for determining a priority of use of the predetermined device by the first device.
  7. The method of claim 6, wherein the first information comprises at least one of:
    device priority information of the first device;
    the first device uses the service priority information of the service data output by the preset device;
    the event priority of the preset event;
    and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
  8. The method of claim 1 or 2, wherein the sending a first request message when there is a need to use a predetermined device, wherein the first request message requests use of a predetermined device, comprises:
    Transmitting the first request message to a predetermined device, a second device and/or the third device when there is a need to use the predetermined device; wherein the first reply message is from a device that receives the first request message.
  9. The method according to claim 1 or 2, wherein the method further comprises:
    and sending a notification message to the preset device, the second device or the third device, wherein the notification message indicates that the first device finishes using the preset device.
  10. The method of claim 1 or 2, wherein the first request message further comprises: duration information; the duration information indicates the duration of use of the predetermined device by the first device.
  11. The method of claim 1 or 2, wherein the sending the first request message when there is a need to use a predetermined device comprises:
    acquiring the priority of the second device for using the preset device when the requirement for using the preset device exists;
    when the first device has the same or higher priority as the second device, a first request message is sent to the predetermined device, the second device, and/or a third device.
  12. A device control method, wherein for a second device, the method comprises:
    transmitting service data to a preset device, wherein the service data is used for being output by the preset device;
    and stopping sending the service data to the preset equipment when the first equipment with higher priority than the second equipment needs to use the preset equipment exists.
  13. The method of claim 12, wherein the method further comprises:
    and stopping sending the service data to the preset equipment when the first equipment with the same priority as the second equipment needs to use the preset equipment exists.
  14. The method of claim 13, wherein the method further comprises at least one of:
    receiving a first request message sent by the first device, and determining whether a first device with the same or higher priority as the second device needs to use the predetermined device according to the first request message;
    and receiving a first instruction sent by the preset device or the third device, wherein the first instruction is used for indicating the second device to stop sending service data to the preset device.
  15. The method of claim 14, wherein the method further comprises:
    And sending a first response message to the first device according to the first request message.
  16. The method of claim 15, wherein the sending the first reply message to the first device comprises:
    when the priority of the first device and the priority of the second device using the preset device are the same or higher, the first response message sent to the first device is a confirmation response message;
    and when the first device is lower than the priority of the second device using the preset device, the first response message sent to the first device is a refusal response message.
  17. The method of claim 14, wherein,
    the first request message includes: first information for determining a priority of use of the predetermined device by the first device;
    or,
    the first request message is: the first device transmits when the first device and the second device use the predetermined device with the same or higher priority.
  18. The method of claim 17, wherein the first information comprises at least one of:
    device priority information of the first device;
    the first device uses the service priority information of the service data output by the preset device;
    The event priority of the preset event;
    and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
  19. The method of claim 12, wherein the method further comprises:
    determining duration information of the first equipment using the preset equipment according to the service data output by the first equipment using the preset equipment;
    and continuously sending service data to the preset equipment based on the time length information, wherein the service data is used for being output by the preset equipment.
  20. The method of claim 14, wherein the first request message further comprises: duration information; the duration information indicates a duration of use of the predetermined device by the first device, and the method further includes:
    and continuing to provide the service data to the preset equipment based on the duration information.
  21. The method of claim 12, wherein the method further comprises:
    receiving a notification message sent by the first device;
    and continuing to provide the service data to the preset equipment based on the notification message.
  22. The method according to any one of claims 12-21, wherein the method further comprises:
    And saving transmission state information when the service data is stopped being provided to the preset equipment.
  23. The method of claim 12, wherein the method further comprises:
    and receiving a second instruction sent by a third device or a preset device, wherein the second instruction is used for indicating the second device to continue sending service data to the preset device.
  24. A device control method, wherein for a third device, the method comprises:
    receiving a first request message sent by first equipment, wherein the first request message requests to use preset equipment;
    determining whether the predetermined device is used by a second device;
    determining a priority of the first device and a second device using the predetermined device when the predetermined device is being used by the second device;
    when the first device has higher priority than a second device using the preset device, sending a first response message to the first device, wherein the first response message is a confirmation response message;
    and sending a first instruction to the second device, wherein the first instruction is used for instructing the second device to stop sending service data to the preset device.
  25. The method of claim 24, wherein the method further comprises:
    and when the first device and the second device using the preset device have the same priority, sending a first response message to the first device, wherein the first response message is an acknowledgement response message.
  26. The method of claim 24, wherein the method further comprises:
    and when the first device is lower in priority than a second device using the preset device, sending a first response message to the first device, wherein the first response message is a refusal response message.
  27. The method of claim 24, wherein,
    the first request message includes: first information for determining a priority of use of the predetermined device by the first device.
  28. The method of claim 27, wherein the determining the priority of the first device and a second device that is using the predetermined device comprises:
    and determining the priority of the first device and the second device using the preset device according to the first information.
  29. The method of claim 28, wherein the first information comprises at least one of:
    Device priority information of the first device;
    the first device uses the service priority information of the service data output by the preset device;
    the event priority of the preset event;
    and presetting event identifications of the events, wherein the event identifications and the event priorities have a corresponding relation.
  30. The method of claim 29, wherein the method further comprises:
    determining duration information of the first equipment using the preset equipment according to the service data output by the first equipment using the preset equipment;
    and sending a second instruction to the second device based on the duration information, wherein the second instruction is used for indicating the second device to continue to provide the service data to the preset device.
  31. The method of claim 24, wherein the first request message further comprises: duration information; the duration information indicates a duration of use of the predetermined device by the first device, and the method further includes:
    and sending a second instruction to the second equipment based on the duration information.
  32. The method of claim 24, wherein the method further comprises:
    receiving a notification message sent by the first device;
    And sending a second instruction to the second equipment according to the notification message.
  33. The method of claim 24, wherein the method further comprises:
    and when the preset device is not used by the second device, sending a first response message to the first device, wherein the first response message is a confirmation response message.
  34. A device control method, wherein for a predetermined device, the method comprises:
    receiving service data sent by second equipment;
    outputting the service data of the second equipment;
    stopping receiving the service data sent by the second device and receiving the service data sent by the first device, wherein the priority of the first device and the priority of the second device using the preset device are the same or higher;
    and outputting the service data of the first equipment.
  35. A device control apparatus, characterized in that the apparatus comprises:
    a first transmitting module configured to transmit a first request message when there is a need to use a predetermined device, wherein the first request message requests the use of the predetermined device;
    a first receiving module configured to receive a first response message of the first request message;
    A second sending module configured to send service data to the predetermined device when the first response message is an acknowledgement response message, where the service data is used for being output by the predetermined device, and the acknowledgement response message is: the first device returns an acknowledgement message when the priority of the first device is higher than that of the second device using the predetermined device.
  36. A device control apparatus for a second device, the apparatus comprising:
    a fourth transmitting module configured to transmit service data to a predetermined device, wherein the service data is used for being output by the predetermined device;
    and a fifth transmitting module configured to stop transmitting service data to the predetermined device if there is a first device having a higher priority than the second device, which needs to use the predetermined device.
  37. A device control apparatus for a third device, the apparatus comprising:
    a sixth receiving module configured to receive a first request message sent by a first device, where the first request message requests use of a predetermined device;
    a third determination module configured to determine whether the predetermined device is used by a second device;
    A fourth determination module configured to determine a priority of the first device and a second device that is using the predetermined device when the predetermined device is being used by the second device;
    an eleventh transmission module configured to transmit a first response message to the first device when the first device has a higher priority than a second device using the predetermined device, the first response message being an acknowledgement response message;
    and a twelfth transmission module configured to transmit a first instruction to the second device, where the first instruction is used to instruct the second device to stop transmitting service data to the predetermined device.
  38. A device control apparatus, wherein, for a predetermined device, the apparatus comprises:
    a ninth receiving module configured to receive service data sent by the second device;
    a second output module configured to output service data of the second device;
    a tenth receiving module configured to stop receiving service data transmitted by the second device and to receive service data transmitted by a first device, wherein the first device and the second device use the predetermined device with the same or higher priority;
    And the third output module is configured to output the service data of the first device.
  39. A non-transitory computer readable storage medium, which when executed by a processor of a computer, enables the computer to perform the device control method provided in any one of claims 1 to 34.
CN202280004308.6A 2022-06-17 2022-06-17 Device control method, device and storage medium Pending CN117597972A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099579 WO2023240631A1 (en) 2022-06-17 2022-06-17 Device control method and apparatus, and storage medium

Publications (1)

Publication Number Publication Date
CN117597972A true CN117597972A (en) 2024-02-23

Family

ID=89192990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280004308.6A Pending CN117597972A (en) 2022-06-17 2022-06-17 Device control method, device and storage medium

Country Status (2)

Country Link
CN (1) CN117597972A (en)
WO (1) WO2023240631A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017504107A (en) * 2014-01-03 2017-02-02 マカフィー, インコーポレイテッド A mechanism to conserve resources on wearable devices
CN110191442B (en) * 2019-04-18 2021-05-11 华为技术有限公司 Bluetooth connection method, equipment and system
WO2022198391A1 (en) * 2021-03-22 2022-09-29 华为技术有限公司 Communication method, communication apparatus, and terminal
CN113645715B (en) * 2021-10-13 2022-01-04 荣耀终端有限公司 Method and terminal device for monitoring link

Also Published As

Publication number Publication date
WO2023240631A1 (en) 2023-12-21

Similar Documents

Publication Publication Date Title
JP2016534624A (en) Wireless LAN automatic connection method, wireless LAN automatic connection device, program, and recording medium
US11596018B2 (en) Region configuration method and device
WO2021046674A1 (en) Data processing method and apparatus, and electronic device and computer readable storage medium
CN108702763B (en) Method and device for sending lead code and scheduling request
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
US20240063980A1 (en) System information reception method and apparatus, and system information transmission method and apparatus
US11617129B2 (en) Method and device for transmitting system information
CN110637502B (en) Data processing method and device, electronic equipment and computer readable storage medium
US20240040637A1 (en) Connection establishment method and apparatus
US20240090068A1 (en) Request information sending method and device, and request information receiving method and device
WO2021232381A1 (en) Information sending method, base station switching method, information reception method, and apparatus
CN111800836B (en) Communication method, device, electronic equipment and storage medium
CN117597972A (en) Device control method, device and storage medium
CN109565890B (en) Competition random access method and device
EP4344164A1 (en) Call processing method, storage medium, and electronic device
US11076367B2 (en) Power headroom report transmission method and apparatus
US20230389118A1 (en) Method for connection indication, method for connection adjustment and electronic device
WO2024020808A1 (en) Inactive-state multicast service receiving method and apparatus, and configuration indication information sending method and apparatus
CN114514791B (en) Configuration information indication and reference signal receiving method and device
WO2022227075A1 (en) Cause determination method and apparatus, and cause indication method and apparatus
CN113691673B (en) Audio play control method, device and storage medium
WO2022213394A1 (en) Indication method and apparatus, and paging control method and apparatus
WO2023123459A1 (en) Information reception method and apparatus, information transmission method and apparatus, communication apparatus, and storage medium
WO2024020807A1 (en) Inactive multicast service receiving method and device, and inactive multicast service configuration sending method and device
WO2023221142A1 (en) Reselection priority determination method and apparatus, and reselection priority configuration sending method and apparatus

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