CN107562407B - Device control method and electronic device - Google Patents

Device control method and electronic device Download PDF

Info

Publication number
CN107562407B
CN107562407B CN201710830563.7A CN201710830563A CN107562407B CN 107562407 B CN107562407 B CN 107562407B CN 201710830563 A CN201710830563 A CN 201710830563A CN 107562407 B CN107562407 B CN 107562407B
Authority
CN
China
Prior art keywords
middleware
voice
class
application client
voice equipment
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
CN201710830563.7A
Other languages
Chinese (zh)
Other versions
CN107562407A (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.)
Whaley Technology Co Ltd
Original Assignee
Whaley Technology 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 Whaley Technology Co Ltd filed Critical Whaley Technology Co Ltd
Priority to CN201710830563.7A priority Critical patent/CN107562407B/en
Publication of CN107562407A publication Critical patent/CN107562407A/en
Application granted granted Critical
Publication of CN107562407B publication Critical patent/CN107562407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides an equipment control method and electronic equipment. The method controls the voice equipment accessed by the electronic equipment, the electronic equipment comprises an application client, middleware and a hardware interface used for accessing the voice equipment, and the middleware is used for providing an application program interface for the application client to access the voice equipment accessed through the hardware interface. The method comprises the following steps: the middleware obtains request information of the application client for requesting to access the voice equipment through the application program interface. And the middleware selects the corresponding voice equipment according to the request information and sends the information of the selected voice equipment to the application client through the application program interface. And the middleware controls the voice equipment according to the user operation information acquired by the application client. Therefore, the middleware can be used for uniformly managing the interaction process of the application client and the voice equipment, the application client does not need to operate by itself, the burden of the application client is reduced, and the user experience degree is good.

Description

Device control method and electronic device
Technical Field
The invention relates to the technical field of computers, in particular to an equipment control method and electronic equipment.
Background
When the electronic device inputs voice information, the voice information needs to be input through the cooperation of the voice device. At present, the method of voice input mainly includes: standard linux voice equipment is adopted; adopting the pickup function of a Bluetooth remote controller; private devices that access through dongle are used, such as microphone; and the voice information is input by adopting a far-field microphone and other modes built in the electronic equipment.
In the prior art, because each voice device has different use methods for its input mode, which voice device is used requires the application client to select and detect the corresponding use method by itself, and if the electronic device introduces a new voice input mode, the application client needs to cooperate with the electronic device to update its own function to use the electronic device. Therefore, the operation is not simple and convenient enough, and the user experience is not good.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides the equipment control method and the electronic equipment, which can uniformly manage the interaction process of the application client and the voice equipment by providing the middleware, do not need the self-operation of the application client, reduce the burden of the application client and have better user experience.
A first object of a preferred embodiment of the present invention is to provide a device control method, applied to an electronic device to control a voice device accessed by the electronic device, where the electronic device includes an application client, middleware and a hardware interface for accessing the voice device, and the middleware is configured to provide an application program interface for the application client to access the voice device accessed through the hardware interface, and the method includes:
the middleware obtains request information of an application client for requesting to access the voice equipment through an application program interface;
the middleware selects corresponding voice equipment according to the request information and sends the information of the selected voice equipment to an application client through the application program interface;
and the middleware controls the voice equipment according to the user operation information acquired by the application client.
It is a second object of a preferred embodiment of the present invention to provide an electronic device, including: the application client, the middleware and the hardware interface, the middleware comprises an application program interface for providing the application client to access the voice equipment, wherein:
the application client is used for sending request information for requesting to access the voice equipment to the middleware through an application program interface of the middleware;
the middleware is used for acquiring request information of the application client requesting to access the voice equipment;
the middleware is also used for selecting corresponding voice equipment according to the request information and sending the information of the selected voice equipment to an application client through the application program interface;
the application client is also used for acquiring user operation information;
the middleware is also used for controlling the voice equipment according to the user operation information acquired by the application client;
and the hardware interface is used for connecting the voice equipment to the electronic equipment.
Compared with the prior art, the invention has the following beneficial effects:
the preferred embodiment of the invention provides an equipment control method and electronic equipment. The device control method is applied to electronic equipment to control voice equipment accessed by the electronic equipment, the electronic equipment comprises an application client, middleware and a hardware interface used for accessing the voice equipment, the middleware is used for providing an application program interface for the application client to access the voice equipment accessed through the hardware interface, and the method comprises the following steps: the middleware obtains request information of the application client for requesting to access the voice equipment through an application program interface. And the middleware selects corresponding voice equipment according to the request information and sends the information of the selected voice equipment to an application client through the application program interface. And the middleware controls the voice equipment according to the user operation information acquired by the application client. Therefore, the middleware can be used for uniformly managing the interaction process of the application client and the voice equipment, the application client does not need to operate by itself, the burden of the application client is reduced, and the user experience degree is good.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a block diagram of the interaction between an electronic device, an application client and a voice device according to a preferred embodiment of the present invention.
FIG. 2 is a block diagram of middleware provided in accordance with a preferred embodiment of the present invention.
Fig. 3 is a block diagram of a hardware structure of an electronic device according to a preferred embodiment of the present invention.
Fig. 4 is a flowchart illustrating steps of a method for controlling a device according to a preferred embodiment of the present invention.
FIG. 5 is a flowchart illustrating a second step of the method for controlling the apparatus according to the preferred embodiment of the present invention.
FIG. 6 is a flowchart illustrating the sub-steps of step S110 shown in FIG. 5 according to a preferred embodiment of the present invention.
Fig. 7 is a flowchart illustrating sub-steps of step S120 shown in fig. 4 according to a preferred embodiment of the present invention.
Fig. 8 is a flowchart illustrating sub-steps of step S130 shown in fig. 4 according to a preferred embodiment of the present invention.
FIG. 9 is a flowchart illustrating the sub-steps of step S140 shown in FIG. 4 according to a preferred embodiment of the present invention.
FIG. 10 is a flowchart illustrating a third step of an apparatus control method according to a preferred embodiment of the present invention.
Icon: 100-an electronic device; 110-a memory; 120-a processor; 130-a network module; 140-hardware interface; 200-middleware; 210-application program interface; 220-implementation class; 230-policy management class; 240-functional class; 250-hardware interface driver class; 300-an application client; 400-voice device.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Furthermore, the terms "first," "second," and the like are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.
The preferred embodiment of the present invention provides an electronic device 100. Referring to fig. 1, fig. 1 is a block diagram illustrating interaction among an electronic device 100, an application client 300 and a voice device 400 according to a preferred embodiment of the invention. The electronic device 100 includes: application client 300, middleware 200, and hardware interface 140.
In this embodiment, a plurality of application clients 300 run on the electronic device 100, the electronic device 100 is provided with at least one hardware interface 140, and at least one voice device 400 accesses the electronic device 100 through the corresponding hardware interface 140. The electronic device 100 provides a middleware 200 for uniformly managing the interaction process of the application client 300 and the voice device 400.
The functions of the application client 300, the middleware 200, and the hardware interface 140 are explained below.
The application client 300 is configured to send request information requesting to access the voice device 400 to the middleware 200.
The middleware 200 is configured to obtain request information that the application client 300 requests to access the voice device 400.
The middleware 200 is further configured to select a corresponding voice device 400 according to the request information, and send the selected information of the voice device 400 to the application client 300.
The application client 300 is further configured to obtain user operation information.
The middleware 200 is further configured to control the voice device 400 according to the user operation information acquired by the application client 300.
The hardware interface 140 is used for connecting the voice device 400 to the electronic device 100.
In this embodiment, the electronic device 100 may include, but is not limited to, a smart display device (e.g., a smart television, etc.), a smart phone, a PC, and the like.
In this embodiment, the middleware 200 may be, but is not limited to: software Development Kit (SDK), a Software Development Kit, is a collection of Development tools used to create application Software for a particular Software package, Software framework, hardware platform, operating system, etc.
Referring to fig. 2, fig. 2 is a block diagram of a middleware 200 according to a preferred embodiment of the present invention. The middleware 200 includes: the application client 300 is provided access to the application program interface 210, implementation class 220, policy management class 230, function class 240, and hardware interface driver class 250 of the voice device 400.
The api 210 is a functional interface for providing services to the application client 300, and facilitates interaction between the voice device 400 accessing the electronic device 100 and the application client 300.
In this embodiment, the Application Programming Interface 210 may be, but is not limited to, an API (Application Programming Interface).
The implementation class 220 is used for abstracting and packaging the accessed voice device 400. The implementation class 220 enables the electronic device 100 to be accessible by voice devices 400 of various standards, including proprietary standards.
And a policy management class 230 for managing the accessed voice device 400. Among other things, the management content may include, but is not limited to: selecting an accessed voice device 400, managing an application state of the accessed voice device 400, and the like.
The function classes 240 are used to call different functions of the accessed voice device 400, wherein the function classes 240 may include, but are not limited to: any one or more of a device boot class, a data read class, and a function extension class.
The hardware interface driver class 250 is used for managing the hardware interface 140 of the accessed voice device 400.
In this embodiment, the application client 300 does not need to select the voice device 400 that needs to be used by itself, and does not need to detect the use method corresponding to the voice device 400 that needs to be used by itself. The application client 300 only needs to send the requirement information of the voice device 400 to be accessed to the middleware 200, and the middleware 200 selects the corresponding voice device 400 to provide service for the application client 300 according to the requirement information of the application client 300. The burden of the application client 300 is reduced, and the user experience is better.
Referring to fig. 3, fig. 3 is a block diagram illustrating a hardware structure of the electronic device 100 according to the preferred embodiment of the invention. The electronic device 100 includes a memory 110, a middleware 200, a processor 120, a network module 130, and at least one hardware interface 140.
The memory 110, the processor 120, the network module 130 and the hardware interface 140 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The middleware 200 includes at least one software function class that can be stored in the memory 110 in the form of software or firmware (firmware), and the processor 120 executes various functional applications and data processing by running software programs and software function classes stored in the memory 110.
The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 110 is used for storing a program, and the processor 120 executes the program after receiving an execution instruction. Further, the software programs and modules within the memory 110 may also include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
The processor 120 may be an integrated circuit chip having signal processing capabilities. The Processor 120 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The network module 130 is used for establishing a communication connection between the electronic device 100 and an external device through a network. Wherein, the external device includes a service platform corresponding to the application client 300 running in the electronic device 100.
The at least one hardware interface 140 is used for connecting with at least one voice device 400, and the voice device 400 accesses the electronic device 100 through the hardware interface 140.
It will be appreciated that the configuration depicted in FIG. 3 is merely illustrative and that electronic device 100 may include more or fewer components than shown in FIG. 3 or have a different configuration than shown in FIG. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
The preferred embodiment of the present invention further provides a device control method, which is applied to the electronic device 100. The electronic device 100 comprises an application client 300, middleware 200 and a hardware interface 140 for accessing the voice device 400, wherein the middleware 200 is used for providing the application client 300 with access to an application program interface 210 of the voice device 400 accessed through the hardware interface 140. Referring to fig. 4, fig. 4 is a flowchart illustrating a method for controlling a device according to a preferred embodiment of the invention.
The specific flow of the apparatus control method is explained in detail below.
In step S120, the middleware 200 obtains request information of the application client 300 requesting to access the speech device 400 through the application program interface 210.
In step S130, the middleware 200 selects a corresponding speech device 400 according to the request information, and sends the information of the selected speech device 400 to the application client 300 through the application program interface 210.
In step S140, the middleware 200 controls the speech device 400 according to the user operation information acquired by the application client 300.
Referring to fig. 5, fig. 5 is a second flowchart illustrating a method for controlling a device according to a preferred embodiment of the invention. When at least one speech device 400 is accessed to the hardware interface 140 of the electronic device 100, the method further comprises:
in step S110, the middleware 200 is configured.
Referring to fig. 6, fig. 6 is a flowchart illustrating sub-steps of step S110 shown in fig. 5 according to a preferred embodiment of the present invention. Step S110 includes substep S111, substep S112, substep S113, substep S114, and substep S115.
And a substep S111, configuring the application program interface 210 of the accessed voice device 400 for interacting with the application client 300.
In this embodiment, the electronic device 100 configures a functional interface, i.e., an application program interface 210, for providing an application service to the application client 300. The data and/or information sent by the application client 300 are transmitted to the middleware 200 through the application program interface 210. The data and/or information replied by the middleware 200 are also sent to the application client 300 through the application program interface 210. The application client 300 can access the accessed voice device 400 through the application program interface 210.
And a substep S112, configuring the corresponding implementation class 220 for the accessed speech device 400, so as to abstract and encapsulate the accessed speech device 400.
In this embodiment, the implementation class 220 may abstract and encapsulate the accessed speech device 400, so that the speech device 400 accessed to the electronic device 100 has no standard restriction, and speech devices 400 of various standards (including proprietary standards) can be accessed to the electronic device 100.
And a substep S113 of configuring a policy management class 230 for managing the accessed voice device 400.
In this embodiment, the policy management class 230 is a management control center of the middleware 200, and may process and analyze data and/or information received from the application client 300, and may perform unified management on at least one voice device 400 that is accessed.
And a substep S114 of configuring a function class 240 for calling different functions of the accessed speech device 400.
In this embodiment, the function classes 240 include: any one or more of a device boot class, a data read class, and a function extension class.
And a substep S115 of configuring a hardware interface driver class 250 for managing the hardware interface 140 of the accessed speech device 400.
Step S120 shown in fig. 4 will be described with reference to the above description. Referring to fig. 7, fig. 7 is a flowchart illustrating sub-steps of step S120 shown in fig. 4 according to a preferred embodiment of the present invention. Step S120 includes substeps S121 and substep S122.
In sub-step S121, the application program interface 210 of the middleware 200 obtains request information that the application client 300 requests to access the speech device 400.
Substep S122, the policy management class 230 of the middleware 200 obtains the requested information from an application program interface 210.
In this embodiment, the request information may include, but is not limited to: parameter information of the voice device 400 requesting access and application attribute information of the application client 300. The parameter information may include: sound effect parameters, voice frequency parameters, voice resolution, etc. of the voice device 400. The application attribute information may include the requirement of the application client 300 for the voice effect, for example, the requirement of the singing type application client 300 for the voice effect is high, and the voice processing capability of the voice device 400 to be used is correspondingly high.
In this embodiment, if the application client 300 does not request the parameter information of the speech device 400 that needs to be used, the middleware 200 may select the speech device 400 with a suitable function for the application client 300 according to the application attribute information of the application client 300.
Step S130 shown in fig. 4 will be described below in conjunction with the above description. Referring to fig. 8, fig. 8 is a flowchart illustrating sub-steps of step S130 shown in fig. 4 according to a preferred embodiment of the present invention. Step S130 includes substep S131 and substep S132.
And a substep S131, selecting a suitable voice device 400 from the accessed at least one voice device 400 according to the request information by the policy management class 230 of the middleware 200, and establishing a connection with the selected voice device 400.
In this embodiment, the policy management class 230 selects an appropriate implementation class 220 from the implementation classes 220 corresponding to the accessed at least one voice device 400 according to the request information.
In the embodiment, each speech device 400 is configured with a corresponding implementation class 220, and each implementation class 220 encapsulates therein relevant information of the speech device 400, such as a name, a number, a type, a function parameter, a speech effect, and the like of the speech device 400. Thus, the policy management class 230 may select an appropriate implementation class 220 based on the requested information of the application client 300.
In this embodiment, the policy management class 230 connects to the voice device 400 corresponding to the selected implementation class 220 by calling a hardware interface driver class 250.
In this embodiment, after the policy management class 230 selects the suitable implementation class 220, the policy management class 230 may connect with the voice device 400 corresponding to the selected implementation class 220 by calling the hardware interface driver class 250.
In sub-step S132, the middleware 200 sends the selected information of the speech device 400 to the application client 300 through the application program interface 210.
In this embodiment, the application program interface 210 accesses the speech device 400 by calling the selected implementation class 220.
In this embodiment, the application program interface 210 obtains the relevant information of the speech device 400 from the implementation class 220 and sends the information to the application client 300.
Step S140 shown in fig. 4 will be described with reference to the above description. Referring to fig. 9, fig. 9 is a flowchart illustrating sub-steps of step S140 shown in fig. 4 according to a preferred embodiment of the present invention. Step S140 includes substeps S141 and substep S142.
In sub-step S141, the application program interface 210 of the middleware 200 obtains the user operation information acquired by the application client 300.
In this embodiment, the middleware 200 obtains the user operation information of the application client 300 through the application program interface 210. Wherein the user operation may include, but is not limited to: on/off of the voice device 400, recording setting, echo (echo) setting, sound effect setting, and the like.
In the substep S142, the application program interface 210 calls the function class 240 corresponding to the speech device 400 according to the user operation information and the request information, and controls the speech device 400 through the function class 240.
In this embodiment, the application program interface 210 calls the corresponding function class 240 according to different user operation information and request information, and the called function class 240 can control the speech device 400. For example, if the user operation information is to turn on the voice device 400, the application program interface 210 may call a device start class, and the device start class may issue a turn-on instruction to the corresponding voice device 400. If the user operation information is voice reading, the application program interface 210 may call a data reading class, and the data reading class may issue a data reading instruction to the corresponding voice device 400.
Referring to fig. 10, fig. 10 is a third flowchart illustrating a method for controlling a device according to a preferred embodiment of the invention. When there is a new speech device 400 accessing the electronic device 100, the method further comprises:
step S150, configuring the implementation class 220 corresponding to the new speech device 400 in the middleware 200, so as to abstract and encapsulate the new speech device 400.
In this embodiment, each time a speech device 400 is added, the electronic device 100 adds a corresponding implementation class 220 to the middleware 200. The electronic device 100 abstracts and encapsulates the newly added voice device 400, the application client 300 does not need to care about the processing process, and the application client 300 does not need to update the function of the application client 300 in cooperation with the newly added voice device 400, so that the burden of the application client 300 is reduced, and the operation is more convenient.
In summary, the preferred embodiment of the present invention provides an apparatus control method and an electronic apparatus. The device control method is applied to electronic equipment to control voice equipment accessed by the electronic equipment, the electronic equipment comprises an application client, middleware and a hardware interface used for accessing the voice equipment, the middleware is used for providing an application program interface for the application client to access the voice equipment accessed through the hardware interface, and the method comprises the following steps: the middleware obtains request information of the application client for requesting to access the voice equipment through an application program interface. And the middleware selects corresponding voice equipment according to the request information and sends the information of the selected voice equipment to an application client through the application program interface. And the middleware controls the voice equipment according to the user operation information acquired by the application client.
Therefore, the middleware can be used for uniformly managing the interaction process of the application client and the voice equipment, the application client does not need to operate by itself, the burden of the application client is reduced, and the user experience degree is good.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A device control method is applied to an electronic device to control a voice device accessed by the electronic device, and is characterized in that the electronic device comprises an application client, middleware and a hardware interface for accessing the voice device, the middleware is used for providing the application client to access an application program interface of the voice device accessed through the hardware interface, and the method comprises the following steps:
the middleware obtains request information of an application client for requesting to access the voice equipment through an application program interface;
the middleware selects corresponding voice equipment according to the request information and sends the information of the selected voice equipment to an application client through the application program interface;
the middleware controls the voice equipment according to the user operation information acquired by the application client;
the middleware selects corresponding voice equipment according to the request information, and the step of sending the information of the selected voice equipment to the application client through the application program interface comprises the following steps:
the strategy management class of the middleware selects a proper voice device from at least one accessed voice device according to the request information and establishes connection with the selected voice device, and the strategy management class is used for managing the at least one accessed voice device;
the middleware sends the information of the selected voice equipment to an application client through the application program interface;
the steps that the strategy management class of the middleware selects a suitable voice device from at least one voice device which is accessed according to the request information and establishes connection with the selected voice device comprise:
the policy management class selects a suitable implementation class from the implementation classes corresponding to the accessed at least one voice device according to the request information, wherein the request information comprises: parameter information of the voice equipment which requests access and application attribute information of the application client side;
and the strategy management class is connected with the voice equipment corresponding to the selected implementation class by calling a hardware interface driving class.
2. The method of claim 1, wherein when at least one voice device accesses a hardware interface of the electronic device, the method further comprises:
configuring a middleware;
the step of configuring the middleware comprises:
configuring an application program interface for interaction between the accessed voice equipment and an application client;
configuring a corresponding implementation class for the accessed voice equipment so as to abstract and package the accessed voice equipment;
configuring a policy management class for managing the accessed voice equipment;
configuring a function class for calling different functions of an accessed voice device, wherein the function class comprises: any one or more of a device starting class, a data reading class and a function expansion class;
and configuring a hardware interface driver class for managing a hardware interface of the accessed voice equipment.
3. The method of claim 2, wherein the step of the middleware obtaining the request information of the application client requesting to access the voice device through the application program interface comprises:
the application program interface of the middleware acquires request information of an application client requesting to access the voice equipment;
the policy management class of the middleware obtains the request information from an application program interface.
4. The method of claim 3, wherein the step of the middleware sending the information of the selected voice device to an application client through the application program interface comprises:
the application program interface accesses the voice equipment by calling the selected implementation class;
and the application program interface acquires the information of the voice equipment from the implementation class and sends the information to an application client.
5. The method of claim 2, wherein the step of controlling the voice device by the middleware according to the user operation information acquired by the application client comprises:
an application program interface of the middleware acquires user operation information acquired by the application client;
and the application program interface calls a function class corresponding to the voice equipment according to the user operation information and the request information, and controls the voice equipment through the function class.
6. The method of any of claims 2-5, wherein when there is a new voice device to access the electronic device, the method further comprises:
and configuring the implementation class corresponding to the new voice equipment in the middleware so as to abstract and package the new voice equipment.
7. An electronic device, characterized in that the electronic device comprises: the application client, the middleware and the hardware interface, the middleware comprises an application program interface for providing the application client to access the voice equipment, wherein:
the application client is used for sending request information for requesting to access the voice equipment to the middleware through an application program interface of the middleware;
the middleware is used for acquiring request information of the application client requesting to access the voice equipment;
the middleware is also used for selecting corresponding voice equipment according to the request information and sending the information of the selected voice equipment to an application client through the application program interface;
the application client is also used for acquiring user operation information;
the middleware is also used for controlling the voice equipment according to the user operation information acquired by the application client;
the hardware interface is used for connecting the voice equipment to the electronic equipment;
the policy management class of the middleware is specifically configured to select a suitable voice device from the at least one accessed voice device according to the request information, and establish a connection with the selected voice device, and the policy management class is configured to manage the at least one accessed voice device;
the middleware sends the information of the selected voice equipment to an application client through the application program interface;
the policy management class of the middleware is specifically configured to select a suitable implementation class from the implementation classes corresponding to the at least one accessed voice device according to the request information, where the request information includes: parameter information of the voice equipment which requests access and application attribute information of the application client side; and connecting the hardware interface driving class with the voice equipment corresponding to the selected implementation class.
8. The electronic device of claim 7, wherein the middleware comprises:
the application program interface is used for providing service for the application client;
the implementation class is used for abstracting and packaging the accessed voice equipment;
a policy management class for managing the accessed voice device;
the function class is used for calling different functions of the accessed voice equipment, wherein the function class comprises the following steps: any one or more of a device starting class, a data reading class and a function expansion class;
and the hardware interface driver is used for managing the hardware interface of the accessed voice equipment.
CN201710830563.7A 2017-09-15 2017-09-15 Device control method and electronic device Active CN107562407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710830563.7A CN107562407B (en) 2017-09-15 2017-09-15 Device control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710830563.7A CN107562407B (en) 2017-09-15 2017-09-15 Device control method and electronic device

Publications (2)

Publication Number Publication Date
CN107562407A CN107562407A (en) 2018-01-09
CN107562407B true CN107562407B (en) 2021-05-18

Family

ID=60980060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710830563.7A Active CN107562407B (en) 2017-09-15 2017-09-15 Device control method and electronic device

Country Status (1)

Country Link
CN (1) CN107562407B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108962244A (en) * 2018-06-29 2018-12-07 百度在线网络技术(北京)有限公司 Method and apparatus for sending information

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710935A (en) * 2009-12-02 2010-05-19 北京视博数字电视科技有限公司 Middleware device of set-top box, cross-platform interface method and set-top box
CN101895670A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 Universal digital television middleware system
CN101924582A (en) * 2010-07-29 2010-12-22 上海慧翰信息技术有限公司 Communication device and middleware thereof
KR20130134849A (en) * 2012-05-31 2013-12-10 한국전자통신연구원 Virtual av service system and method thereof
KR102546212B1 (en) * 2016-01-05 2023-06-22 삼성전자주식회사 Method for Outputting Sound and Electronic Device supporting the same
CN105933767B (en) * 2016-04-20 2019-06-25 青岛海信电器股份有限公司 Middleware device, Middleware implementation method and television set

Also Published As

Publication number Publication date
CN107562407A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN107318119B (en) Household appliance networking method, household appliance and computer readable storage medium
US20090031011A1 (en) Device management system and method for setting configuration-valve therein
CN113608812A (en) Remote control method, device, system and storage medium
CN107562407B (en) Device control method and electronic device
CN114816788A (en) Equipment control method and device, electronic equipment and storage medium
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
CN113168332A (en) Data processing method and device and mobile terminal
US8051191B2 (en) Ethernet extensibility
CN110865823B (en) Pre-installation application control method, pre-installation application control device and storage medium
CN107463395B (en) Component calling method and device
CN114726905B (en) Method, device, equipment and storage medium for accessing Tbox network into Android system
CN115484158A (en) Communication configuration method and device of vehicle-mounted equipment based on eSIM card
CN110795149B (en) Terminal platform operation method, device, equipment and readable storage medium
US20130185448A1 (en) Systems and Methods for Managing Emulation Sessions
EP3758384B1 (en) Method for controlling video sharing through rich communication suite service and electronic device therefor
CN106155732B (en) Loading method and device of video game controller
CN110781014B (en) Recording data multi-process distribution method and system based on Android device
CN110708744B (en) Communication control method, home appliance device, and computer-readable storage medium
CN110986298A (en) Control parameter adjusting method and device and electronic equipment
CN110336857B (en) Method, device, equipment and storage medium for creating network block equipment
CN116709549B (en) Resource sharing method and device, electronic equipment and readable storage medium
CN111586484B (en) Auxiliary screen system upgrading method, device and equipment of display equipment and storage medium
CN113760577B (en) Dynamic connection answering device, processing method, control device and storage medium
CN113971096A (en) Data calling method and related product
CN107682531B (en) Terminal control method and system

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
GR01 Patent grant
GR01 Patent grant