CN107181727B - Control method and device of external equipment - Google Patents

Control method and device of external equipment Download PDF

Info

Publication number
CN107181727B
CN107181727B CN201610141882.2A CN201610141882A CN107181727B CN 107181727 B CN107181727 B CN 107181727B CN 201610141882 A CN201610141882 A CN 201610141882A CN 107181727 B CN107181727 B CN 107181727B
Authority
CN
China
Prior art keywords
service
identity information
external device
terminal
exclusive
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.)
Active
Application number
CN201610141882.2A
Other languages
Chinese (zh)
Other versions
CN107181727A (en
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.)
Guangyun Liandong Technology Beijing Co ltd
MIGU Music Co Ltd
Original Assignee
Guangyun Liandong Technology Beijing Co ltd
MIGU Music 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 Guangyun Liandong Technology Beijing Co ltd, MIGU Music Co Ltd filed Critical Guangyun Liandong Technology Beijing Co ltd
Priority to CN201610141882.2A priority Critical patent/CN107181727B/en
Publication of CN107181727A publication Critical patent/CN107181727A/en
Application granted granted Critical
Publication of CN107181727B publication Critical patent/CN107181727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a control method of external equipment, which comprises the following steps: when detecting that an external device is accessed, acquiring first identity information of the external device; sending first identity information to a server, wherein the server is a service server corresponding to a first service, and the first service is a service matched with external equipment; receiving response information fed back by the server according to the first identity information; and when the response information carries the opening instruction, opening the function of the external equipment for carrying out the exclusive service according to the opening instruction, wherein the exclusive service belongs to the first service. The embodiment of the invention also provides a control device of the external equipment.

Description

Control method and device of external equipment
Technical Field
The invention relates to an interface technology in the field of internet, in particular to a control method and a control device of external equipment.
Background
With the rapid development of the internet, some internet-based terminals, such as internet set-top boxes, have come up. Due to the rich business requirements of the terminal, an external device matched with the terminal also comes up, for example, an internet set top box as an important home entertainment device in a living room can carry a lot of business applications, and some business applications can obtain better user experience by matching the external device, for example, a video game business needs to be matched with a joystick, and a karaoke business needs to be matched with an external audio mixer or a wireless microphone, and the like. When a service application that needs to be used by an external device in a terminal is popularized, a subsidy policy is often adopted for the corresponding external device to reduce a threshold for entering the service application. For example, a microphone is given to the user, or the business user purchases an external device for sales promotion with a discount much lower than the market price. With the mutual competition among the same type of service applications, the operator of each service application does not want to see that the external device subsidized by the operator can be seamlessly used on the same type of service applications of the competitor. For example, operators who also run business applications in a game lobby may not want the rods given by themselves to be able to directly play games in the other lobby. Therefore, the use limitation is carried out on the subsidy external equipment corresponding to the service application, so that the condition is avoided.
In the prior art, the method for restricting the external equipment to be subsidized for the business application from being used for competition is to use a closed technical system. Specifically, private setting is performed on transmission between the subsidized external device and the terminal corresponding to the subsidized external device, and the private transmission modes of other terminals and the subsidized external device are not matched, so that the other terminals cannot perform service interaction with the subsidized external device. For example, the game stick is transmitted with the terminal by using a private key value, or a private wireless transmission frequency point or even a transmission protocol, or the wireless microphone is transmitted with the terminal by using a private frequency point, and the like. Therefore, the external device dedicated to the service application in the terminal cannot be normally used in the same type of service application of the competitor.
However, when the closed system and the private protocol in the prior art are used to implement the terminal subsidized for its own service, first, if the private protocol is inconsistent with the existing interface protocol used by the terminal, the proprietary protocol used by the external device of the dedicated service application actually prevents the product of the existing ecosystem from accessing its own other non-dedicated services. For example, if a wireless microphone with a special transmission frequency point is adopted, the wireless microphone is not compatible with any competitor's karaoke service, and meanwhile, the wireless microphone sold in the market cannot be simply adapted to the non-exclusive voice service of the wireless microphone. Secondly, because a private closed system needs to be maintained, when the field of the external equipment has industrial technical innovation, the business needs to catch up with the industrial innovation trend in the private closed system, and the existing external equipment may be abandoned, so that the technology of the industrial innovation cannot be compatible.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention are expected to provide a method and an apparatus for controlling an external device, which can improve the compatibility and flexibility of communication with the external device on the basis of ensuring the normal use of the dedicated external device.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a control method of an external device, which comprises the following steps:
when detecting that an external device is accessed, acquiring first identity information of the external device;
sending the first identity information to a server, wherein the server is a service server corresponding to a first service, and the first service is a service matched with the external equipment;
receiving response information fed back by the server according to the first identity information;
and when the response information carries a starting instruction, according to the starting instruction, starting the function of the external equipment for carrying out the exclusive service, wherein the exclusive service belongs to the first service.
In the foregoing solution, after receiving response information fed back by the server according to the first identity information, the method further includes:
when the response information carries a non-opening instruction, according to the non-opening instruction, keeping the function of forbidding the external equipment to carry out the exclusive service, and keeping the existing function of carrying out the exclusive service of the external equipment, wherein the exclusive service also belongs to the first service.
In the foregoing solution, before the obtaining the first identity information of the external device, the method further includes:
and sending a request message to the external equipment, wherein the request message is used for requesting the first identity information.
In the above scheme, the external device is a microphone.
The embodiment of the invention also provides a control method of the external device, which comprises the following steps:
receiving first identity information sent by a terminal, wherein the first identity information is used for representing the identity of an external device matched with a first service carried by the terminal;
judging the type of the external equipment corresponding to the first identity information according to the first identity information and the corresponding relation between the type of the preset external equipment and the identity information;
and when the external equipment is judged to be of the exclusive type, sending response information carrying a starting instruction to the terminal.
In the foregoing solution, after determining the type of the external device corresponding to the first identity information according to the first identity information and a preset corresponding relationship between the type of the external device and the identity information, the method further includes:
and when the external equipment is judged to be of a non-exclusive type, sending response information carrying a non-opening instruction to the terminal.
In the above scheme, the terminal is an intelligent set-top box.
An embodiment of the present invention provides a terminal, including:
the first receiving unit is used for acquiring first identity information of the external equipment when the external equipment is detected to be accessed;
the first sending unit is used for sending the first identity information received by the first receiving unit to a server, the server is a service server corresponding to a first service, and the first service is a service matched with the external equipment;
the first receiving unit is further used for receiving response information fed back by the server according to the first identity information;
and the control unit is used for opening the function of the external equipment for carrying out the exclusive service according to the opening instruction when the response information received by the first receiving unit carries the opening instruction, wherein the exclusive service belongs to the first service.
In the above scheme, the terminal further includes: a holding unit;
the holding unit is configured to, after the first receiving unit receives response information fed back by the server according to the first identity information, hold, according to a non-opening instruction, a function of prohibiting the external device from performing the dedicated service and a function of performing a non-dedicated service that is already performed by the external device when the response information received by the first receiving unit carries the non-opening instruction, where the non-dedicated service also belongs to the first service.
In the foregoing solution, the first sending unit is further configured to send a request message to the external device before the first receiving unit obtains the first identity information of the external device, where the request message is used to request the first identity information.
In the above scheme, the terminal is an intelligent set-top box, and the external device is a microphone.
An embodiment of the present invention provides a server, including:
the second receiving unit is used for receiving first identity information sent by the terminal, wherein the first identity information is used for representing the identity of an external device matched with a first service borne by the terminal;
the judging unit is used for judging the type of the external equipment corresponding to the first identity information according to the first identity information received by the second receiving unit and the corresponding relation between the preset type of the external equipment and the identity information;
and the second sending unit is used for sending response information carrying a switching-on instruction to the terminal when the judging unit judges that the external equipment is of the exclusive type.
In the above scheme, the second sending unit is further configured to send response information carrying a non-enabling instruction to the terminal when the judging unit judges that the external device is a non-exclusive type after judging the type of the external device corresponding to the first identity information according to the first identity information received by the second receiving unit and a preset corresponding relationship between the type of the external device and the identity information.
The embodiment of the invention provides a control method of an external device, which comprises the steps of acquiring first identity information of the external device when the external device is detected to be accessed; sending first identity information to a server, wherein the server is a service server corresponding to a first service, and the first service is a service matched with external equipment; receiving response information fed back by the server according to the first identity information; and when the response information carries the opening instruction, opening the function of the external equipment for carrying out the exclusive service according to the opening instruction, wherein the exclusive service belongs to the first service. By adopting the technical scheme, the server side acquires the corresponding relation between the type of the preset external equipment and the identity information, so that the terminal side can manage the external equipment of different types through the server to judge which external equipment can carry out exclusive service and which external equipment cannot carry out exclusive service, thereby protecting the exclusive service instead of carrying out exclusive processing on the external equipment, and therefore, the compatibility and flexibility of communication with the external equipment can be improved on the basis of ensuring the normal use of the exclusive external equipment.
Drawings
FIG. 1 is a diagram of a system architecture provided by an embodiment of the present invention in the present year;
fig. 2 is a first flowchart of a method for controlling an external device according to an embodiment of the present invention;
fig. 3 is a second flowchart of a method for controlling an external device according to an embodiment of the present invention;
fig. 4 is an interaction diagram of a control method of an external device according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Fig. 1 is a schematic diagram of various hardware entities for performing information interaction in the embodiment of the present invention, where fig. 1 includes: one or more servers 21-2 n, terminals 11-15, and a network 31, wherein the network 31 may include network entities such as routers, gateways, etc., not shown, and an external device 40 for interacting with the terminals. The terminals 11-15 perform information interaction with the server through a wired network or a wireless network, so that the relevant data information collected from the terminals 11-15 is transmitted to the server, thereby completing the information interaction between the terminals and the server. The types of terminals are shown in fig. 1, and include a mobile phone (terminal 13), a tablet computer or PDA (terminal 15), a desktop computer (terminal 12), a PC computer (terminal 14), a kiosk (terminal 11), and the like. The terminal is installed with various applications required by the user, such as applications with entertainment functions (e.g., video applications, audio playing applications, game applications, and reading software), and applications with service functions (e.g., map navigation applications, group buying applications, and shooting applications), so that the terminal 11-15 can perform applications required to be completed by the cooperation of the external device 40 through the connection with the external device 10.
It should be noted that the embodiments of the present invention are not limited to the system structure shown in fig. 1, and the control device of the external device is divided into a terminal and a server based on the system structure, so as to provide the embodiments of the present invention.
Example one
An embodiment of the present invention provides a method for controlling an external device, which is applied to a terminal, and as shown in fig. 2, the method may include:
s101, when the fact that the external equipment is accessed is detected, first identity information of the external equipment is obtained.
It should be noted that, the background implemented by the embodiment of the present invention is: therefore, before the control method of the external device provided by the embodiment of the present invention is implemented, the terminal and the external device need to establish a connection to complete a subsequent service implementation process.
It should be noted that the implementation of the connection between the terminal and the external device may be in a bluetooth or wireless manner, and a specific implementation manner may be a connection manner of the same standard in the industry.
Specifically, when the terminal detects that the external device is connected to the terminal, the terminal may obtain first identity information of the external device through an interface between the terminal and the external device, where the first identity information is used to represent an identity of the external device that is matched with a first service carried by the terminal.
It should be noted that, because the sources of the external device may be different, and may be purchased through the market, or presented when the dedicated service of the terminal is purchased or opened, and the like, the identity of the external device may be represented by the identity information, and the identity information may distinguish whether the external device is presented by the dedicated service or is a general device that is purchased.
Optionally, the first identity information in the embodiment of the present invention may be implemented in different manners such as an identifier, a graph, and an attribute, and a specific implementation manner is not limited in the embodiment of the present invention.
Optionally, the external device in the embodiment of the present invention may be a microphone, a joystick, a sound box, a dance mat, or other devices that can cooperate with the terminal for business, which is not limited in the embodiment of the present invention.
Optionally, the terminal in the embodiment of the present invention may be an electronic device that can perform service communication with an external device, such as a mobile phone, a computer, an intelligent set-top box (internet set-top box), an intelligent television, and the like.
And S102, sending the first identity information to a server, wherein the server is a service server corresponding to a first service, and the first service is a service matched with an external device.
After the terminal acquires the first identity information of the external equipment, the first identity information can be sent to the server through the network, the server is a service server corresponding to the first service, and the first service is a service matched with the external equipment, so that the server can judge whether the external equipment is a donation or subsidy device corresponding to the dedicated service through the first identity information, and further determine whether the terminal is a function of opening the external equipment to perform the dedicated service.
It should be noted that the services that the terminal in the embodiment of the present invention can perform may include an exclusive service and a non-exclusive service, the exclusive service may be performed only by an exclusive external device (a donated or subsidized external device) corresponding to the exclusive service, and the non-exclusive service may be used by an external device corresponding to the general service.
It should be noted that, in the embodiment of the present invention, whether the external device is an exclusive external device or a non-exclusive external device, as long as a certain service is performed with the terminal, the external device needs to be an external device matched with the certain service of the terminal. For example, the audio service corresponds to an external device such as a microphone or a sound box.
And S103, receiving response information fed back by the server according to the first identity information.
After the terminal sends the first identity information to the server, the server judges the type of the external equipment corresponding to the first identity information according to the first identity information, and then sends response information corresponding to the type of the external equipment to the terminal, so that the terminal can perform corresponding operation according to the response information.
It should be noted that, because the type of the external device determined by the server may be an exclusive external device or a non-exclusive external device, the response information fed back by the server through the network according to the first identity information of the external device is also different.
Optionally, the response information in the embodiment of the present invention may include: an open command and a non-open command.
And S104, when the response information carries a starting instruction, according to the starting instruction, starting the function of the external equipment for carrying out the exclusive service, wherein the exclusive service belongs to the first service.
After the terminal receives the response information fed back by the server according to the first identity information, because the response information received by the terminal is different, the operation performed by the terminal according to the response information is also different, specifically, when the response information carries an opening instruction, the terminal can instruct itself to open the function of performing the exclusive service with the external device according to the opening instruction.
It should be noted that, in the embodiment of the present invention, all services that can be performed by the terminal are referred to as first services, and both the dedicated service and the non-dedicated service belong to the first services.
It should be noted that the dedicated service of the terminal in the embodiment of the present invention is set to the off state by default, and is only turned on when the terminal receives an on instruction.
It can be understood that, after the terminal activates the function of the external device and the terminal itself for performing the dedicated service, if the user wants to perform the dedicated service by using the external device, the dedicated service can be performed.
Further, in the embodiment of the present invention, the terminal indicates to open the function of performing the dedicated service between the external device and the terminal according to the opening instruction, which may be single time or permanent, and may be specifically determined by the user through setting, which is not limited in the embodiment of the present invention.
It should be noted that, when the function of the terminal for opening the external device and performing the dedicated service with the terminal is permanent, the function may be corresponding to the opening service according to the first identity information, so that when the terminal detects the first identity information again, the function is opened by default, and thus, the external device may directly perform the dedicated service. In short, unless a permanent opening instruction is received, the opening instruction needs to be received before the opening function is used each time.
An embodiment of the present invention further provides a method for controlling an external device, where the method is applied to a server, and as shown in fig. 3, the method may include:
s201, receiving first identity information sent by a terminal, wherein the first identity information is used for representing the identity of an external device matched with a first service carried by the terminal.
It should be noted that the server in the embodiment of the present invention is a service server corresponding to the first service, and the server and the terminal may perform information interaction through a network.
After acquiring the first identity information sent by the external device, the terminal sends the first identity information to the server, so that the server can decide what kind of information to send back to the terminal. The first identity information is used for representing the identity of the external equipment matched with the first service carried by the terminal.
It should be noted that the types of the external device may be divided into an exclusive external device and a non-exclusive external device, and only in a state where the exclusive external device is connected to the terminal, the terminal may receive the response information carrying the opening instruction sent by the server.
S202, judging the type of the external equipment corresponding to the first identity information according to the first identity information and the corresponding relation between the type of the preset external equipment and the identity information.
After the server receives the first identity information sent by the terminal, the server can judge different types of external equipment according to the first identity information and the preset corresponding relationship between the type of the external equipment and the identity information because the types of the external equipment are different.
It should be noted that, in the method for controlling an external device according to the embodiment of the present invention, the server side establishes and stores a corresponding relationship between the external device and the identity information thereof, so that the server can determine the type of the external device corresponding to the first identity information according to the first identity information and a preset corresponding relationship between the type of the external device and the identity information.
It should be noted that the preset corresponding relationship between the type of the external device and the identity information in the server is stored in a database established in the server, and the type and the identity information corresponding to the external device are recorded.
And S203, when the external equipment is judged to be the exclusive type, sending response information carrying the opening instruction to the terminal.
After the server determines the type of the external device corresponding to the first identity information, if the server determines that the type of the external device is the exclusive type, that is, the external device is an external device capable of performing an exclusive service with the terminal, then the server carries a provisioning instruction according to the response information fed back to the terminal by the first identity information.
Further, the terminal can open the function of performing the dedicated service with the current external device according to the opening instruction.
The control method of the external device provided by the embodiment of the invention comprises the steps of acquiring first identity information of the external device when the external device is detected to be accessed; sending first identity information to a server, wherein the server is a service server corresponding to a first service, and the first service is a service matched with external equipment; receiving response information fed back by the server according to the first identity information; and when the response information carries the opening instruction, opening the function of the external equipment for carrying out the exclusive service according to the opening instruction, wherein the exclusive service belongs to the first service. By adopting the technical scheme, the server side acquires the corresponding relation between the type of the preset external equipment and the identity information, so that the terminal side can manage the external equipment of different types through the server to judge which external equipment can carry out exclusive service and which external equipment cannot carry out exclusive service, thereby protecting the exclusive service instead of carrying out exclusive processing on the external equipment, and therefore, the compatibility and flexibility of communication with the external equipment can be improved on the basis of ensuring the normal use of the exclusive external equipment.
Example two
An embodiment of the present invention provides a method for controlling an external device, and as shown in fig. 4, the method may include:
s301, when detecting that an external device is accessed, sending a request message to the external device, wherein the request message is used for requesting first identity information, and the first identity information is used for representing the identity of the external device matched with a first service carried by a terminal.
It should be noted that, the background implemented by the embodiment of the present invention is: therefore, before the control method of the external device provided by the embodiment of the present invention is implemented, the terminal and the external device need to establish a connection to complete a subsequent service implementation process.
It should be noted that the implementation of the connection between the terminal and the external device may be in a bluetooth or wireless manner, and a specific implementation manner may be a connection manner of the same standard in the industry.
Specifically, when the terminal detects that the external device is accessed, the terminal actively sends a request message to the external device to request identity information of the currently accessed external device, namely first identity information, wherein the request message is used for requesting the first identity information, and the first identity information is used for representing the identity of the external device matched with a first service carried by the terminal.
It should be noted that each external device has its own identity information, such as name, identification, home, etc.
Optionally, the first identity information in the embodiment of the present invention may be implemented in different manners such as an identifier, a graph, and an attribute, and a specific implementation manner is not limited in the embodiment of the present invention.
Optionally, the external device in the embodiment of the present invention may be a microphone, a joystick, a sound box, a dance mat, or other devices that can cooperate with the terminal for business, which is not limited in the embodiment of the present invention.
Optionally, the terminal in the embodiment of the present invention may be an electronic device that can perform service communication with an external device, such as a mobile phone, a computer, an intelligent set-top box, and an intelligent television.
S302, first identity information of the external equipment is obtained.
Specifically, when the terminal detects that the external device is connected to the terminal, after the terminal has sent the request message to the external device, the external device replies first identity information to the terminal, that is, the terminal can acquire the first identity information of the external device through an interface between the terminal and the external device, where the first identity information is used to represent an identity of the external device matching with a first service carried by the terminal.
It should be noted that, because the sources of the external device may be different, and may be purchased through the market, or presented when the dedicated service of the terminal is purchased or opened, and the like, the identity of the external device may be represented by the identity information, and the identity information may distinguish whether the external device is presented by the dedicated service or is a general device that is purchased.
And S303, sending the first identity information to a server, wherein the server is a service server corresponding to the first service, and the first service is a service matched with the external equipment.
After the terminal acquires the first identity information of the external equipment, the first identity information can be sent to the server through the network, the server is a service server corresponding to the first service, and the first service is a service matched with the external equipment, so that the server can judge whether the external equipment is a donation or subsidy device corresponding to the dedicated service through the first identity information, and further determine whether the terminal is a function of opening the external equipment to perform the dedicated service.
It should be noted that the services that the terminal in the embodiment of the present invention can perform may include an exclusive service and a non-exclusive service, the exclusive service may be performed only by an exclusive external device (a donated or subsidized external device) corresponding to the exclusive service, and the non-exclusive service may be used by an external device corresponding to the general service.
It should be noted that the server in the embodiment of the present invention is a service server corresponding to the first service, and the server and the terminal may perform information interaction through a network.
After acquiring the first identity information sent by the external device, the terminal sends the first identity information to the server, so that the server can decide what kind of information to send back to the terminal. The first identity information is used for representing the identity of the external equipment matched with the first service carried by the terminal.
It should be noted that the types of the external device may be divided into an exclusive external device and a non-exclusive external device, and only in a state where the exclusive external device is connected to the terminal, the terminal may receive the response information carrying the opening instruction sent by the server.
It should be noted that, in the embodiment of the present invention, whether the external device is an exclusive external device or a non-exclusive external device, as long as a certain service is performed with the terminal, the external device needs to be an external device matched with the certain service of the terminal. For example, the audio service corresponds to an external device such as a microphone or a sound box.
S304, judging the type of the external equipment corresponding to the first identity information according to the first identity information and the preset corresponding relation between the type of the external equipment and the identity information.
The terminal sends the first identity information to the server, that is, after the server receives the first identity information sent by the terminal, the server can judge different types of external devices according to the first identity information and the preset corresponding relationship between the type of the external device and the identity information because the types of the external devices are different.
It should be noted that, in the method for controlling an external device according to the embodiment of the present invention, the server side establishes and stores a corresponding relationship between the external device and the identity information thereof, so that the server can determine the type of the external device corresponding to the first identity information according to the first identity information and a preset corresponding relationship between the type of the external device and the identity information.
It should be noted that the preset corresponding relationship between the type of the external device and the identity information in the server is stored in a database established in the server, and the type and the identity information corresponding to the external device are recorded.
S305, when the external equipment is judged to be the exclusive type, sending response information carrying a starting instruction to the terminal.
After the server determines the type of the external device corresponding to the first identity information, if the server determines that the type of the external device is the exclusive type, that is, the external device is an external device capable of performing an exclusive service with the terminal, then the server carries a provisioning instruction according to the response information fed back to the terminal by the first identity information.
Further, the terminal can open the function of performing the dedicated service with the current external device according to the opening instruction.
It should be noted that, after the terminal sends the first identity information to the server, the server determines the type of the external device corresponding to the first identity information according to the first identity information, and then sends the response information corresponding to the type of the external device to the terminal, so that the terminal can perform corresponding operations according to the response information.
It can be understood that, since the type of the external device determined by the server may be an exclusive external device or a non-exclusive external device, the response information fed back by the server through the network according to the first identity information of the external device is also different.
Optionally, the response information in the embodiment of the present invention may include: an open command and a non-open command.
And S306, when the response information carries a starting instruction, according to the starting instruction, starting the function of the external equipment for carrying out the exclusive service, wherein the exclusive service belongs to the first service.
After the terminal receives the response information fed back by the server according to the first identity information, because the response information received by the terminal is different, the operation performed by the terminal according to the response information is also different, specifically, when the response information carries an opening instruction, the terminal can instruct itself to open the function of performing the exclusive service with the external device according to the opening instruction.
It should be noted that, in the embodiment of the present invention, all services that can be performed by the terminal are referred to as first services, and both the dedicated service and the non-dedicated service belong to the first services.
It should be noted that the dedicated service of the terminal in the embodiment of the present invention is set to the off state by default, and is only turned on when the terminal receives an on instruction.
It can be understood that, after the terminal activates the function of the external device and the terminal itself for performing the dedicated service, if the user wants to perform the dedicated service by using the external device, the dedicated service can be performed.
Further, in the embodiment of the present invention, the terminal indicates to open the function of performing the dedicated service between the external device and the terminal according to the opening instruction, which may be single time or permanent, and may be specifically determined by the user through setting, which is not limited in the embodiment of the present invention.
It should be noted that, when the function of the terminal for opening the external device and performing the dedicated service with the terminal is permanent, the function may be corresponding to the opening service according to the first identity information, so that when the terminal detects the first identity information again, the function is opened by default, and thus, the external device may directly perform the dedicated service. In short, unless a permanent opening instruction is received, the opening instruction needs to be received before the opening function is used each time.
And S307, when the external equipment is judged to be of the non-exclusive type, sending response information carrying the non-opening instruction to the terminal.
After the terminal receives the response information fed back by the server according to the first identity information, because the response information received by the terminal is different, the operation performed by the terminal according to the response information is also different, specifically, when the response information carries a non-opening instruction, the server is characterized to judge that the external device connected to the terminal at this time is a non-exclusive external device, and then the server sends an instruction indicating that the terminal does not need to open an exclusive service to the terminal.
And S308, when the response information carries a non-opening instruction, keeping the function of forbidding the external equipment to carry out the exclusive service and keeping the existing function of carrying out the exclusive service of the external equipment according to the non-opening instruction, wherein the exclusive service also belongs to the first service.
After the terminal receives the response information fed back by the server according to the first identity information, because the response information received by the terminal is different, the operation made by the terminal according to the response information is also different, specifically, when the response information carries a non-open instruction, because the exclusive service of the terminal is default set to be in a closed state, the terminal is only opened when the terminal receives the open instruction, therefore, the terminal can instruct the terminal to continue to keep the function of the external device and the terminal to carry out the exclusive service to be closed according to the non-open instruction.
It should be noted that, in the embodiment of the present invention, the external device connected to the terminal may perform other matching non-dedicated services directly, except that the dedicated service may be performed only by being activated. In this case, the terminal still maintains the function of performing the non-dedicated service that the external device already has.
It should be noted that, in the embodiment of the present invention, S305 to S306 and S307 to S308 are parallel steps after S304, and corresponding execution flows may be performed according to different types of external devices, which is not limited in the embodiment of the present invention.
The control method of the external device provided by the embodiment of the invention comprises the steps of acquiring first identity information of the external device when the external device is detected to be accessed; sending first identity information to a server, wherein the server is a service server corresponding to a first service, and the first service is a service matched with external equipment; receiving response information fed back by the server according to the first identity information; and when the response information carries the opening instruction, opening the function of the external equipment for carrying out the exclusive service according to the opening instruction, wherein the exclusive service belongs to the first service. By adopting the technical scheme, the server side acquires the corresponding relation between the type of the preset external equipment and the identity information, so that the terminal side can manage the external equipment of different types through the server to judge which external equipment can carry out exclusive service and which external equipment cannot carry out exclusive service, thereby protecting the exclusive service instead of carrying out exclusive processing on the external equipment, and therefore, the compatibility and flexibility of communication with the external equipment can be improved on the basis of ensuring the normal use of the exclusive external equipment.
EXAMPLE III
As shown in fig. 5, an embodiment of the present invention provides a terminal 1, and the terminal 1 may include:
the first receiving unit 10 is configured to, when it is detected that an external device accesses, obtain first identity information of the external device.
A first sending unit 11, configured to send the first identity information received by the first receiving unit 10 to a server, where the server is a service server corresponding to a first service, and the first service is a service matched with the external device.
The first receiving unit 10 is further configured to receive response information fed back by the server according to the first identity information.
A control unit 12, configured to, when the response information received by the first receiving unit 10 carries a provisioning instruction, provision a function of performing a dedicated service by the external device according to the provisioning instruction, where the dedicated service belongs to the first service.
Optionally, as shown in fig. 6, the terminal 1 further includes: a holding unit 13.
The maintaining unit 13 is configured to, after the first receiving unit 10 receives the response information fed back by the server according to the first identity information, maintain, according to a non-opening instruction, a function of prohibiting the external device from performing the dedicated service and maintain an existing function of performing the non-dedicated service by the external device when the response information received by the first receiving unit 10 carries the non-opening instruction, where the non-dedicated service also belongs to the first service.
Optionally, the first sending unit 11 is further configured to send a request message to the external device before the first receiving unit obtains 10 the first identity information of the external device, where the request message is used to request the first identity information.
Optionally, the external device in the embodiment of the present invention may be a microphone, a joystick, a sound box, a dance mat, or other devices that can cooperate with the terminal for business, which is not limited in the embodiment of the present invention.
Optionally, the terminal 1 in the embodiment of the present invention may be an electronic device that can perform service communication with an external device, such as a mobile phone, a computer, an intelligent set-top box, and an intelligent television.
In practical applications, the control unit 12 and the holding unit 13 may be implemented by a processor located on the terminal 1, specifically, a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, the first receiving unit 10 may be implemented by a receiver, the first transmitting unit 11 may be implemented by a transmitter, the terminal 1 may further include a memory, specifically, the first identity information and its software code, the response information and its software code, and the request message and its software code may be stored in the memory, the memory may be connected to the processor through a system bus, wherein the memory is used for storing executable program codes, the program codes include computer operation instructions, the memory may include a high-speed RAM memory, and may further include a non-volatile memory, for example, at least one disk storage.
According to the terminal provided by the embodiment of the invention, when the external device is detected to be accessed, the first identity information of the external device is acquired; sending first identity information to a server, wherein the server is a service server corresponding to a first service, and the first service is a service matched with external equipment; receiving response information fed back by the server according to the first identity information; and when the response information carries the opening instruction, opening the function of the external equipment for carrying out the exclusive service according to the opening instruction, wherein the exclusive service belongs to the first service. By adopting the technical scheme, the server side acquires the corresponding relation between the type of the preset external equipment and the identity information, so that the terminal side can manage the external equipment of different types through the server to judge which external equipment can carry out exclusive service and which external equipment cannot carry out exclusive service, thereby protecting the exclusive service instead of carrying out exclusive processing on the external equipment, and therefore, the compatibility and flexibility of communication with the external equipment can be improved on the basis of ensuring the normal use of the exclusive external equipment.
As shown in fig. 7, an embodiment of the present invention further provides a server 2, where, corresponding to a method for controlling an external device on a server side, the server 2 may include:
a second receiving unit 20, configured to receive first identity information sent by a terminal, where the first identity information is used to represent an identity of an external device that matches a first service carried by the terminal.
A determining unit 21, configured to determine, according to the first identity information received by the second receiving unit 20 and a preset corresponding relationship between a type of an external device and identity information, the type of the external device corresponding to the first identity information.
The second sending unit 22 is configured to send response information carrying a provisioning instruction to the terminal when the determining unit 21 determines that the external device is of the dedicated type.
Optionally, the second sending unit 22 is further configured to, after determining the type of the external device corresponding to the first identity information according to the first identity information received by the second receiving unit 20 and a corresponding relationship between the type of the external device and the identity information, send response information carrying a non-enabling instruction to the terminal when the determining unit 21 determines that the external device is a non-exclusive type.
In practical applications, the determining unit 21 may be implemented by a processor located on the server 2, specifically, a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, the second receiving unit 20 may be implemented by a receiver, the second transmitting unit 22 may be implemented by a transmitter, the server 2 may further include a memory, specifically, the first identity information and its software code, the preset corresponding relationship between the type and the identity information of the external device and its software code, and the response information and its software code may be stored in a memory, the memory may be connected to the processor through a system bus, wherein the memory is used for storing executable program codes, the program codes include computer operating instructions, the memory may include a high-speed RAM memory, and may further include a non-volatile memory, for example at least one disk memory.
The server provided by the embodiment of the invention receives first identity information sent by a terminal, wherein the first identity information is used for representing the identity of an external device matched with a first service borne by the terminal; judging the type of the external equipment corresponding to the first identity information according to the first identity information and the preset corresponding relation between the type of the external equipment and the identity information; and when the external equipment is judged to be the exclusive type, sending response information carrying the opening instruction to the terminal. By adopting the technical scheme, the server side acquires the corresponding relation between the type of the preset external equipment and the identity information, so that the terminal side can manage the external equipment of different types through the server to judge which external equipment can carry out exclusive service and which external equipment cannot carry out exclusive service, thereby protecting the exclusive service instead of carrying out exclusive processing on the external equipment, and therefore, the compatibility and flexibility of communication with the external equipment can be improved on the basis of ensuring the normal use of the exclusive external equipment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (9)

1. A control method of an external device is characterized by comprising the following steps:
when detecting that an external device is accessed, acquiring first identity information of the external device;
sending the first identity information to a server, wherein the server is a service server corresponding to a first service, and the first service is a service matched with the external equipment;
receiving response information fed back by the server according to the first identity information;
when the response information carries a starting instruction, according to the starting instruction, starting the function of the external equipment for carrying out the exclusive service, wherein the exclusive service belongs to the first service;
after receiving response information fed back by the server according to the first identity information, the method further includes:
when the response information carries a non-opening instruction, according to the non-opening instruction, keeping the function of forbidding the external equipment to carry out the exclusive service, and keeping the existing function of carrying out the exclusive service of the external equipment, wherein the exclusive service also belongs to the first service.
2. The method of claim 1, wherein before the obtaining the first identity information of the external device, the method further comprises:
and sending a request message to the external equipment, wherein the request message is used for requesting the first identity information.
3. The method according to any one of claims 1 or 2,
the external equipment is a microphone.
4. A control method of an external device is characterized by comprising the following steps:
receiving first identity information sent by a terminal, wherein the first identity information is used for representing the identity of an external device matched with a first service carried by the terminal;
judging the type of the external equipment corresponding to the first identity information according to the first identity information and the corresponding relation between the type of the preset external equipment and the identity information;
when the external equipment is judged to be of the exclusive type, sending response information carrying a starting instruction to a terminal so that the terminal can start the function of the external equipment for carrying out exclusive service according to the starting instruction, wherein the exclusive service belongs to the first service;
after the type of the external device corresponding to the first identity information is determined according to the first identity information and the corresponding relationship between the type of the external device and the preset identity information, the method further includes:
when the external device is judged to be of the non-exclusive type, sending response information carrying a non-opening instruction to the terminal, so that the terminal keeps the function of forbidding the external device to carry out the exclusive service according to the non-opening instruction and keeps the existing function of carrying out the non-exclusive service by the external device, wherein the non-exclusive service also belongs to the first service.
5. The method of claim 4,
the terminal is an intelligent set top box.
6. A terminal, comprising:
the first receiving unit is used for acquiring first identity information of the external equipment when the external equipment is detected to be accessed;
the first sending unit is used for sending the first identity information received by the first receiving unit to a server, the server is a service server corresponding to a first service, and the first service is a service matched with the external equipment;
the first receiving unit is further used for receiving response information fed back by the server according to the first identity information;
the control unit is used for opening the function of the external equipment for carrying out the exclusive service according to the opening instruction when the response information received by the first receiving unit carries the opening instruction, wherein the exclusive service belongs to the first service;
wherein, the terminal further includes: a holding unit;
the holding unit is configured to, after the first receiving unit receives response information fed back by the server according to the first identity information, hold, according to a non-opening instruction, a function of prohibiting the external device from performing the dedicated service and a function of performing a non-dedicated service that is already performed by the external device when the response information received by the first receiving unit carries the non-opening instruction, where the non-dedicated service also belongs to the first service.
7. The terminal of claim 6,
the first sending unit is further configured to send a request message to the external device before the first receiving unit obtains first identity information of the external device, where the request message is used to request the first identity information.
8. The terminal according to claim 6 or 7,
the terminal is an intelligent set-top box, and the external equipment is a microphone.
9. A server, comprising:
the second receiving unit is used for receiving first identity information sent by the terminal, wherein the first identity information is used for representing the identity of an external device matched with a first service borne by the terminal;
the judging unit is used for judging the type of the external equipment corresponding to the first identity information according to the first identity information received by the second receiving unit and the corresponding relation between the preset type of the external equipment and the identity information;
the second sending unit is used for sending response information carrying a opening instruction to the terminal when the judging unit judges that the external equipment is of the exclusive type, so that the terminal can open the function of carrying out exclusive service by the external equipment according to the opening instruction, wherein the exclusive service belongs to the first service;
the second sending unit is further configured to, after the type of the external device corresponding to the first identity information is determined according to the corresponding relationship between the first identity information received by the second receiving unit and the type and the identity information of the preset external device, send response information carrying a non-enabling instruction to the terminal when the determining unit determines that the external device is of a non-proprietary type, so that the terminal keeps a function of prohibiting the external device from performing the proprietary service according to the non-enabling instruction and keeps an existing function of performing the non-proprietary service by the external device, where the non-proprietary service also belongs to the first service.
CN201610141882.2A 2016-03-11 2016-03-11 Control method and device of external equipment Active CN107181727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610141882.2A CN107181727B (en) 2016-03-11 2016-03-11 Control method and device of external equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610141882.2A CN107181727B (en) 2016-03-11 2016-03-11 Control method and device of external equipment

Publications (2)

Publication Number Publication Date
CN107181727A CN107181727A (en) 2017-09-19
CN107181727B true CN107181727B (en) 2020-10-27

Family

ID=59830265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610141882.2A Active CN107181727B (en) 2016-03-11 2016-03-11 Control method and device of external equipment

Country Status (1)

Country Link
CN (1) CN107181727B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024501A (en) * 2012-12-18 2013-04-03 四川长虹电器股份有限公司 System and method for using mobile terminal to control television terminal
CN204563571U (en) * 2015-04-03 2015-08-19 武汉创客数字科技有限公司 Game paddle

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4801759B2 (en) * 2009-06-30 2011-10-26 シャープ株式会社 MFP, authentication server, and system
CN103885426B (en) * 2014-03-28 2018-07-10 百度在线网络技术(北京)有限公司 Control method, client, server, intermediate equipment and the controlled device of equipment
CN105320616B (en) * 2014-06-24 2019-06-28 腾讯科技(深圳)有限公司 External device control method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024501A (en) * 2012-12-18 2013-04-03 四川长虹电器股份有限公司 System and method for using mobile terminal to control television terminal
CN204563571U (en) * 2015-04-03 2015-08-19 武汉创客数字科技有限公司 Game paddle

Also Published As

Publication number Publication date
CN107181727A (en) 2017-09-19

Similar Documents

Publication Publication Date Title
US11093981B2 (en) Smart broadcasting device
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN106488335B (en) Live-broadcast control method and device
CN104219092B (en) The compatibility method of a kind of router administration application and router firmware and device
WO2017107542A1 (en) Video program obtaining method, device and system
CN105204894A (en) Method and device for installing plug-in of intelligent equipment
CN104468837A (en) Intelligent device binding method and device
CN104461725A (en) Application process starting control method and device
CN104936304A (en) Intelligent equipment binding method, intelligent equipment, and server
CN104778063A (en) Method and device for updating resource
CN107146608B (en) Playing control method and device and intelligent equipment
CN105183513A (en) Application recommendation method and apparatus
CN105721450B (en) Method, device and system for logging in online game
CN106371327A (en) Control right sharing method and device
CN105100213A (en) Equipment binding method and device
CN104881304B (en) Resource downloading method and device
WO2017097128A1 (en) Method and apparatus for taking over task between devices
CN105337822B (en) A kind of selection method and relevant device of main playback equipment
KR101825856B1 (en) Software distribution architecture for hardware devices
WO2018028239A1 (en) Method and apparatus for controlling terminal, and computer storage medium
CN111063353A (en) Client processing method allowing user-defined voice interactive content and user terminal
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN110890094A (en) Voice control method of Internet of things equipment and voice server
WO2017148157A1 (en) Method and device for localized application installation on android device
CN105094830A (en) Method and device for executing target functions

Legal Events

Date Code Title Description
DD01 Delivery of document by public notice

Addressee: MIGU MUSIC CO., LTD.

Document name: Notice of non patent agent (person)

DD01 Delivery of document by public notice

Addressee: MIGU MUSIC CO., LTD.

Document name: Notification to Make Rectification

DD01 Delivery of document by public notice

Addressee: Cloud linkage technology (Beijing) Co., Ltd.

Document name: Notification of Passing Examination on Formalities

PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant