CN110111790B - Method, device and equipment for processing external equipment access of intelligent equipment - Google Patents

Method, device and equipment for processing external equipment access of intelligent equipment Download PDF

Info

Publication number
CN110111790B
CN110111790B CN201910384018.9A CN201910384018A CN110111790B CN 110111790 B CN110111790 B CN 110111790B CN 201910384018 A CN201910384018 A CN 201910384018A CN 110111790 B CN110111790 B CN 110111790B
Authority
CN
China
Prior art keywords
application program
hidraw
device node
node
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910384018.9A
Other languages
Chinese (zh)
Other versions
CN110111790A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual 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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201910384018.9A priority Critical patent/CN110111790B/en
Publication of CN110111790A publication Critical patent/CN110111790A/en
Application granted granted Critical
Publication of CN110111790B publication Critical patent/CN110111790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The application provides a method, a device and equipment for processing external equipment access of intelligent equipment, wherein the method comprises the following steps: after a hidraw device node corresponding to the external device is created through a ueventd process, sending a message that the hidraw device node is created to an application program of an application space through the ueventd process; and after the application program receives the message that the creation of the hidraw device node is completed, the application program executes corresponding operation on the hidraw device node. The method and the device ensure that the node of the hardraw equipment cannot be opened by the application program, solve the technical problems that the intelligent television in the prior art has weak local voice recognition capability in the network disconnection environment and the recognition rate is reduced when continuous control is carried out, and effectively improve the success rate of voice recognition.

Description

Method, device and equipment for processing external equipment access of intelligent equipment
Technical Field
The present application relates to the field of intelligent device technologies, and in particular, to a method, an apparatus, and a device for processing an external device access of an intelligent device.
Background
With the rapid development of science and technology, smart televisions gradually enter people's lives, and with the continuous development of artificial intelligence, smart televisions have realized the function of voice interaction with users.
However, at present, the local voice recognition capability of the smart television in the network-off environment is weak, when continuous operation and control are performed, the recognition rate is reduced, the voice recognition still has a certain failure rate, and the user experience is seriously influenced.
Disclosure of Invention
The application provides a processing method, a processing device and processing equipment for external equipment access of intelligent equipment, and aims to overcome the defects of voice recognition failure and the like in the prior art.
A first aspect of the present application provides a method for processing an external device access of an intelligent device, including:
after a hidraw device node corresponding to the external device is created through a ueventd process, sending a message that the hidraw device node is created to an application program of an application space through the ueventd process;
and after the application program receives the message that the creation of the hidraw device node is completed, the application program executes corresponding operation on the hidraw device node.
Optionally, before sending a message that the creation of the hidraw device node is completed to the application program through the ueventd process, the method further includes:
acquiring a uevent event reported by a kernel through the uevent process, wherein the uevent event comprises the accessed device information of the external device;
and creating a corresponding hidraw device node according to the device information of the external device through the ueventd process.
Optionally, before the uevent event reported by the kernel is acquired through the uevent process, the method further includes:
acquiring equipment information of the external equipment through the UHID node, and transmitting the equipment information to the kernel;
and generating a corresponding event by the kernel, and reporting the event to the uevent process.
Optionally, the sending, by the ueventd process, a message that creation of the hidraw device node is completed to the process of the application program includes:
and creating a socket between the ueventd process and the application program, and sending a message that the creation of the hidraw device node is completed to the application program.
Optionally, the method further comprises:
after the kernel writes voice data into the hidrade device node, the application program reads the voice data from the hidrade device node and performs voice recognition processing on the voice data.
Optionally, the intelligent device is an intelligent television, and the external device is a bluetooth remote controller.
A second aspect of the present application provides a processing apparatus for accessing an external device of an intelligent device, including:
the sending module is used for sending a message that the creation of the hidrade device node is completed to an application program of an application space through the ueventd process after the hidrade device node corresponding to the external device is created through the ueventd process;
and the processing module is used for executing corresponding operation on the hidraw device node by the application program after the application program receives the message that the hidraw device node is established.
Optionally, the apparatus further comprises:
a first obtaining module, configured to obtain, through the uevent process, a uevent event reported by a kernel, where the uevent event includes device information of the external device that is accessed;
and the creating module is used for creating a corresponding hidraw device node according to the device information of the external device through the ueventd process.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the equipment information of the external equipment through the UHID node and transmitting the equipment information to the kernel;
and the generating module is used for generating a corresponding uevent event through the kernel and reporting the event to the uevent process.
Optionally, the sending module is specifically configured to:
and creating a socket between the ueventd process and the application program, and sending a message that the creation of the hidraw device node is completed to the application program.
Optionally, the processing module is further configured to:
after the kernel writes voice data into the hidrade device node, the application program reads the voice data from the hidrade device node and performs voice recognition processing on the voice data.
Optionally, the intelligent device is an intelligent television, and the external device is a bluetooth remote controller.
A third aspect of the present application provides a smart device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the method provided by the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed, implements the method provided by the first aspect.
According to the processing method, device and equipment for external equipment access of the intelligent equipment, after the firmware process creates the hidradew equipment node corresponding to the external equipment, the application program is informed of the message of the created external equipment node, and after the application program receives the message of the created external equipment node, the operation of opening the hidradew equipment node to read data and the like is executed, so that the situation that the application program fails to open the hidradew equipment node is ensured, the technical problem that the recognition rate is reduced when the intelligent television in the prior art is weak in local voice recognition capability in a network-disconnected environment and is continuously controlled is solved, and the success rate of voice recognition is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a common flow of accessing a bluetooth remote controller to an intelligent television;
fig. 2 is a schematic flowchart of a processing method for accessing an external device of an intelligent device according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a processing method for accessing an external device of an intelligent device according to another embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a process of accessing a bluetooth remote controller to a smart television according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a processing apparatus for accessing an external device of an intelligent device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an intelligent device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
The terms referred to in this application are explained first:
HID: human Interface devices, are devices that interact directly with a person, such as keyboards, mice, joysticks, and the like. However, the HID device does not necessarily need to be human interface, as long as the devices complying with the HID class specification are HID devices. The exchanged data is stored in a structure called report (report) and the firmware of the device must support the format of the HID report. The host sends and requests the report in control and interrupt transmission to send and receive data. The format of the report is very flexible and can process any kind of data. The HID device in this application refers to a device capable of interacting with a person via bluetooth.
The hidraw device node is a node created in the kernel.
And UHID node: the method is characterized in that a Bluetooth protocol stack and a kernel are interactive interfaces, and for the HID of the Bluetooth, after the intelligent device is connected with the Bluetooth, the service of the detected HID can be transmitted to a kernel through a UHID node. Specifically, the bluetooth protocol stack writes data to a/dev/UHID node (i.e., a UHID node), and the kernel acquires information through the UHID node.
kernel: operating system kernel the operating system kernel refers to the core part of most operating systems. It consists of those parts of the operating system that are used to manage memory, files, peripherals, and system resources. The operating system kernel typically runs processes and provides inter-process communication.
ue vent: user space event, a user space (i.e., application space) event, is a mechanism for communicating between kernel space and user space. I.e. at a certain moment a certain event is triggered and notified to the user space. Mainly for hot plug events (hotsplug). The uevent can be used for general power notification, usb plug notification, headset plug notification, and the like.
And (3) ue ventd: a process in user space for creating a hidraw device node.
The method for processing the external device access of the intelligent device is suitable for creating a hidraw device node in a kernel when the external device is accessed to the intelligent device, so that an application program can successfully open an application scene in which the hidraw device node reads data. The intelligent device can be an intelligent television or an intelligent mobile terminal, and the intelligent mobile terminal can be a smart phone, a tablet computer and the like. The external device may be a bluetooth remote control. For example, when the bluetooth of the smart television is turned on and the bluetooth remote controller is connected, the device information of the bluetooth remote controller is transmitted to the kernel through the UHID node, the kernel generates a ue event and reports the ue event to the ue of the application space, the ue creates a hidraw device node, and notifies the application program after the creation is completed, so that the application program can turn on the hidraw device node to read corresponding data.
Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following examples, "plurality" means two or more unless specifically limited otherwise.
The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Aiming at the situation that the speech recognition of the smart television still has a certain failure rate in the prior art, through diligent research and analysis, the reason that part of speech recognition fails is caused by the failure of the application program to open the hardaw equipment node. Research shows that the current process of accessing the Bluetooth remote controller to the smart television is as follows:
fig. 1 is a schematic diagram of a general process for accessing a bluetooth remote controller to a smart television. Wherein the application may be a flyover. When a Bluetooth switch of the intelligent television is turned on, a Bluetooth function of the intelligent television is turned on, and a Bluetooth remote controller is connected, a device _ create is used in a kernel to report a uevent event for creating a hidradew device node, an application program (flying) and the uevent both receive the uevent event, the uevent creates the hidradew device node after receiving the event, the application program (flying) opens the hidradew device node after receiving the event, data is read if the opening is successful (Y), the application program (flying) and the uevent exit if the opening is failed (N), but the uevent does not complete creating the hidradew device node if the flying has occurred probabilistically, so that the problem of probabilistically opening the hidrade device node occurs, and voice recognition failure occurs.
In order to solve the problem that the application program may fail to open the hardraw device node, thereby causing a failure in speech recognition, embodiments of the present application provide an improved processing method to solve the problem.
Example one
The embodiment provides a processing method for accessing an external device of an intelligent device, which is used for ensuring that an application program can successfully open a hardraw device node corresponding to the external device and read data in the hardraw device node when the external device accesses the intelligent device. The execution subject of this embodiment is the processing of the external device access of the intelligent device, and the apparatus may be provided in the intelligent device. The intelligent device can be an intelligent television, an intelligent mobile phone, a tablet computer and the like
As shown in fig. 2, a schematic flow chart of a processing method for accessing an external device of an intelligent device provided in this embodiment is shown, where the method includes:
step 101, after the hidraw device node corresponding to the external device is created through the uevantd process, sending a message that the hidraw device node is created to the application program of the application space through the uevantd process.
Specifically, after the ueventd process creates the hidraw device node corresponding to the external device, a message that the hidraw device node is created can be sent to the application program in the application space, so as to notify the application program that the hidraw device node is created.
And step 102, after the application program receives the message that the creation of the hidraw device node is completed, the application program executes corresponding operation on the hidraw device node.
Specifically, the uevent event generated by the kernel for creating the hidraw device node is not reported to the application program any more, but the uevent notifies the application program after the creation is completed. And after receiving the message of completing the creation of the hidraw device node, the application program executes the operations of opening, reading and the like on the hidraw device node. The situation that the ueven is not created completely when the application program is about to open the hidraw device node is avoided.
After the creation of the hidraw device node is completed, the voice data input by the user through the external device is written into the hidraw device node of the kernel, and when the application program needs to use the voice data, the voice data is read from the hidraw device node and is subjected to voice recognition, so that the semantics of the user are obtained, and corresponding services are provided for the user.
Alternatively, the ueven can communicate with the application by creating a socket with the application.
The specific process of interprocess socket communication is as follows:
the method comprises the steps of ueventd and application program, wherein the ueventd is used as a server, and the application program is used as a client.
(a) Server terminal
First, the server process creates a socket by calling the socket by the system, which is a file description-like resource allocated to the server process by the system and cannot be shared with other processes.
The server process then names the socket using the system call bind and then begins waiting for the client to connect to the socket.
The system then calls listen to create a queue and use it to deposit incoming connections from the client.
Finally, the server accepts the client's connection by making a system call accept, which creates a new socket that is different from the original named socket, which is only used for this particular client to communicate, and the named socket (i.e., the original socket) is reserved to continue processing connections from other clients.
(b) Client terminal
The socket-based client application first calls the socket to create an unnamed socket and then calls the connect to the server using the server's named socket as an address.
Once the connection is established, the communication of two-way data can be accomplished with sockets as with the underlying file descriptors.
The way of communication between processes by creating a socket is the prior art, and is not described herein again.
According to the processing method for external device access of the intelligent device, after the firmware process creates the hidrade device node corresponding to the external device, the application program is notified of the message that the creation is completed, and after the application program receives the message that the creation of the hidrade device node is completed, the application program executes the operations of opening the hidrade device node to read data and the like, so that the application program is ensured not to fail to open the hidrade device node, the technical problems that the intelligent television in the prior art has weak local voice recognition capability in a network-disconnected environment and the recognition rate is reduced when continuous control is performed are solved, and the success rate of voice recognition is effectively improved.
Example two
The present embodiment further supplements the method provided in the first embodiment.
As shown in fig. 3, a schematic flow chart of a processing method for accessing an external device of an intelligent device according to this embodiment is provided.
As a practical way, on the basis of the first embodiment, optionally before the step 101, the method further includes:
in step 2011, a uevent event reported by the kernel is obtained through the uevent process, where the uevent event includes device information of the accessed external device.
And step 2012, creating a corresponding hidraw device node according to the device information of the external device through a ueventd process.
Specifically, when the external device is accessed, the kernel reports a uevent event for creating the hidraw device node, and the upper layer uevent receives the uevent event and then creates the hidraw device node in the dev.
Optionally, before step 2011, the method further comprises:
step 2021, obtaining the device information of the external device through the UHID node, and transmitting to the kernel.
And step 2022, generating a corresponding event by kernel, and reporting to the uevent process.
As another implementable manner, on the basis of the first embodiment, optionally, sending, by the ueventd process, a message that creation of the hidraw device node is completed to the process of the application program, where the message includes:
and sending a message that the creation of the hidraw device node is completed to the application program through creating a socket between the ueventd process and the application program.
In particular, the ueventd can implement communication with the application by creating a socket with the application.
The specific process of interprocess socket communication is as follows:
the method comprises the steps of ueventd and application program, wherein the ueventd is used as a server, and the application program is used as a client.
(a) Server terminal
First, the server process creates a socket by calling the socket by the system, which is a file description-like resource allocated to the server process by the system and cannot be shared with other processes.
The server process then names the socket using the system call bind and then begins waiting for the client to connect to the socket.
The system then calls listen to create a queue and use it to deposit incoming connections from the client.
Finally, the server accepts the client's connection by making a system call accept, which creates a new socket that is different from the original named socket, which is only used for this particular client to communicate, and the named socket (i.e., the original socket) is reserved to continue processing connections from other clients.
(b) Client terminal
The socket-based client application first calls the socket to create an unnamed socket and then calls the connect to the server using the server's named socket as an address.
Once the connection is established, the communication of two-way data can be accomplished with sockets as with the underlying file descriptors.
The way of communication between processes by creating a socket is the prior art, and is not described herein again.
As another implementable manner, on the basis of the first embodiment, optionally, the method further includes:
after the kernel writes the voice data into the hidraw device node, the application program reads the voice data from the hidraw device node and performs voice recognition processing on the voice data.
Specifically, after the creation of the hidraw device node is completed, the voice data input by the user through the external device is written into the hidraw device node of the kernel, and when the application program needs to use the voice data, the voice data is read from the hidraw device node and voice recognition is performed, so that the semantic meaning of the user is obtained, and corresponding services are provided for the user.
As another implementable manner, on the basis of the first embodiment, optionally, the smart device is a smart television, and the external device is a bluetooth remote controller.
As an implementable manner, for example, as shown in fig. 4, a schematic flow chart of the bluetooth remote controller provided in this embodiment for accessing to the smart television is shown.
When a Bluetooth switch of the intelligent television is turned on, the Bluetooth function of the intelligent television is turned on, and a Bluetooth remote controller is connected, a device _ create is used in a kernel to report a uevent event for creating a hidradew device node, a uevent receives the uevent event, the uevent receives the event and then creates the hidradew device node under/dev, and after the creation is completed, a socket is created to inform an application program (message flight) that the hidradew device node is created. After the message that the message flight has received the message that the trunk device node has been created, the trunk device node is opened, it is ensured that the trunk device node is opened successfully by the message flight, and data is read if the trunk device node is opened successfully (Y), so that the technical problem that in the prior art, the local voice recognition capability of the intelligent television in a network-disconnected environment is weak, and the recognition rate is reduced when continuous control is performed is solved, and the success rate of voice recognition is effectively improved.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
According to the processing method for external device access of the intelligent device, after the firmware process creates the hidrade device node corresponding to the external device, the application program is notified of the message that the creation is completed, and after the application program receives the message that the creation of the hidrade device node is completed, the application program executes the operations of opening the hidrade device node to read data and the like, so that the application program is ensured not to fail to open the hidrade device node, the technical problems that the intelligent television in the prior art has weak local voice recognition capability in a network-disconnected environment and the recognition rate is reduced when continuous control is performed are solved, and the success rate of voice recognition is effectively improved.
EXAMPLE III
The embodiment provides a processing device for accessing an external device of an intelligent device, which is used for executing the method of the first embodiment.
As shown in fig. 5, a schematic structural diagram of a processing apparatus for accessing an external device of an intelligent device provided in this embodiment is shown. The processing device 30 for accessing the external device of the smart device includes a transmitting module 31 and a processing module 32.
The sending module is used for sending a message that the creation of the hidradew device node is completed to the application program of the application space through the ueventd process after the hidradew device node corresponding to the external device is created through the ueventd process; and the processing module is used for executing corresponding operation on the hardraw device node by the application program after the application program receives the message that the hardraw device node is established.
The specific manner in which the respective modules perform operations has been described in detail in relation to the apparatus in this embodiment, and will not be elaborated upon here.
According to the processing device for external device access of the intelligent device, after the firmware process creates the hidrade device node corresponding to the external device, the application program is notified of the message that creation is completed, and after the application program receives the message that creation of the hidrade device node is completed, the application program performs operations of opening the hidrade device node to read data and the like, so that the application program is ensured not to fail to open the hidrade device node, the technical problem that the identification rate is reduced when the intelligent television is weak in local voice identification capability in a network-disconnected environment and continuous control is performed in the prior art is solved, and the success rate of voice identification is effectively improved.
Example four
The present embodiment further supplements the description of the apparatus provided in the third embodiment.
As a practical manner, on the basis of the third embodiment, optionally, the apparatus further includes a first obtaining module and a creating module.
The first acquisition module is used for acquiring a uevent event reported by a kernel through a uevent process, wherein the uevent event comprises equipment information of an accessed external device; and the creating module is used for creating a corresponding hidraw device node according to the device information of the external device through the ueventd process.
Optionally, the apparatus further includes a second obtaining module and a generating module.
The second obtaining module is used for obtaining the device information of the external device through the UHID node and transmitting the device information to the kernel; and the generating module is used for generating a corresponding event by the kernel and reporting the event to the uevent process.
As another implementable manner, on the basis of the third embodiment, optionally, the sending module is specifically configured to: and sending a message that the creation of the hidraw device node is completed to the application program through creating a socket between the ueventd process and the application program.
As another implementable manner, on the basis of the third embodiment, optionally, the processing module is further configured to, after the kernel writes the voice data into the hidraw device node, read the voice data from the hidraw device node by the application program, and perform voice recognition processing on the voice data.
The specific manner in which the respective modules perform operations has been described in detail in relation to the apparatus in this embodiment, and will not be elaborated upon here.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
According to the processing device for external device access of the intelligent device, after the firmware process creates the hidrade device node corresponding to the external device, the application program is notified of the message that the creation is completed, and after the application program receives the message that the creation of the hidrade device node is completed, the application program performs operations of opening the hidrade device node to read data and the like, so that the application program is ensured not to fail to open the hidrade device node, the technical problem that the recognition rate is reduced when the intelligent television is weak in local voice recognition capability in a network-disconnected environment and continuous control is performed in the prior art is solved, and the success rate of voice recognition is effectively improved.
EXAMPLE five
The present embodiment provides an intelligent device, configured to execute the method provided in the foregoing embodiment.
As shown in fig. 6, a schematic structural diagram of the smart device provided in this embodiment is shown. The smart device 50 includes: at least one processor 51 and memory 52;
the memory stores a computer program; at least one processor executes the computer program stored in the memory to implement the methods provided by the above-described embodiments.
According to the intelligent device of the embodiment, after the firmware device node corresponding to the external device is created in the ueventd process, the message that the creation of the application program is completed is notified, and after the application program receives the message that the creation of the firmware device node is completed, the operations of opening the firmware device node to read data and the like are executed, so that the situation that the application program cannot fail to open the firmware device node is ensured, the technical problem that the recognition rate is reduced when the intelligent television is continuously controlled due to weak local voice recognition capability in a network-disconnected environment in the prior art is solved, and the success rate of voice recognition is effectively improved.
EXAMPLE six
The present embodiment provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the method provided by any one of the above embodiments is implemented.
According to the computer-readable storage medium of the embodiment, after the firmware program creates the hidra device node corresponding to the external device, the application program is notified of the message that the creation is completed, and after the application program receives the message that the creation of the hidra device node is completed, the application program executes operations of opening the hidra device node to read data and the like, so that the application program is ensured not to fail to open the hidra device node, the technical problem that the recognition rate is reduced when the intelligent television is continuously controlled due to weak local voice recognition capability in a network-disconnected environment in the prior art is solved, and the success rate of voice recognition is effectively improved.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A processing method for external device access of an intelligent device is characterized by comprising the following steps:
after a hidraw device node corresponding to the external device is created through a ueventd process, sending a message that the hidraw device node is created to an application program of an application space through the ueventd process;
and after the application program receives the message that the creation of the hidraw device node is completed, the application program executes corresponding operation on the hidraw device node.
2. The method of claim 1, wherein before sending the message that creation of the hidraw device node is complete to the application program through the ueventd process, the method further comprises:
acquiring a uevent event reported by a kernel through the uevent process, wherein the uevent event comprises the accessed device information of the external device;
and creating a corresponding hidraw device node according to the device information of the external device through the ueventd process.
3. The method of claim 2, wherein before the event reported by the kernel is obtained by the uevent process, the method further comprises:
acquiring equipment information of the external equipment through the UHID node, and transmitting the equipment information to the kernel;
and generating a corresponding event by the kernel, and reporting the event to the uevent process.
4. The method according to claim 1, wherein the sending a message that creation of the hidraw device node is completed to the process of the application program through the ueventd process comprises:
and creating a socket between the ueventd process and the application program, and sending a message that the creation of the hidraw device node is completed to the application program.
5. The method of claim 1, further comprising:
after the kernel writes the voice data into the hidraw device node, the application program reads the voice data from the hidraw device node and performs voice recognition processing on the voice data.
6. The method according to any one of claims 1-5, wherein the smart device is a smart television and the external device is a Bluetooth remote control.
7. A processing apparatus for accessing an external device of an intelligent device, comprising:
the sending module is used for sending a message that the creation of the hidrade device node is completed to an application program of an application space through the ueventd process after the hidrade device node corresponding to the external device is created through the ueventd process;
and the processing module is used for executing corresponding operation on the hidraw device node by the application program after the application program receives the message that the hidraw device node is established.
8. The apparatus of claim 7, wherein the sending module is specifically configured to:
and creating a socket between the ueventd process and the application program, and sending a message that the creation of the hidraw device node is completed to the application program.
9. A smart device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the memory-stored computer program to implement the method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when executed, implements the method of any of claims 1-6.
CN201910384018.9A 2019-05-09 2019-05-09 Method, device and equipment for processing external equipment access of intelligent equipment Active CN110111790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910384018.9A CN110111790B (en) 2019-05-09 2019-05-09 Method, device and equipment for processing external equipment access of intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910384018.9A CN110111790B (en) 2019-05-09 2019-05-09 Method, device and equipment for processing external equipment access of intelligent equipment

Publications (2)

Publication Number Publication Date
CN110111790A CN110111790A (en) 2019-08-09
CN110111790B true CN110111790B (en) 2022-01-28

Family

ID=67488899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910384018.9A Active CN110111790B (en) 2019-05-09 2019-05-09 Method, device and equipment for processing external equipment access of intelligent equipment

Country Status (1)

Country Link
CN (1) CN110111790B (en)

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7263483B2 (en) * 2003-04-28 2007-08-28 Dictaphone Corporation USB dictation device
CN102835124B (en) * 2010-04-09 2016-04-13 Lg电子株式会社 Image display and the method for operating image display
US20110296484A1 (en) * 2010-05-28 2011-12-01 Axel Harres Audio and video transmission and reception in business and entertainment environments
US20130027613A1 (en) * 2011-05-03 2013-01-31 Lg Electronics Inc. Image display apparatus, portable terminal, and methods for operating the same
CN103974111B (en) * 2014-05-22 2017-12-29 华为技术有限公司 By the method, apparatus of the data transfer on intelligent terminal to television terminal
CN104822127A (en) * 2015-03-09 2015-08-05 中国科学院信息工程研究所 Bluetooth device, data channel real-time management and control method and system thereof
CN104866272B (en) * 2015-06-15 2018-10-09 上海携程商务有限公司 The control process system and method for monitor screen curtain wall
CN105100477B (en) * 2015-07-28 2019-03-01 努比亚技术有限公司 Terminal notifying device and method
CN105744491B (en) * 2016-01-29 2019-03-08 河南捷步电子科技有限公司 It is a kind of difference Android device between communications management system and method
CN105808299B (en) * 2016-03-09 2018-07-03 深圳Tcl数字技术有限公司 The control method and system of the automatic carry of external equipment and notice
CN110121092B (en) * 2016-05-31 2021-04-16 海信视像科技股份有限公司 Method for controlling remote controller microphone by smart television and smart television
CN106095413B (en) * 2016-05-31 2019-09-17 青岛海信电器股份有限公司 A kind of configuration method and device of bluetooth driver
CN106162279B (en) * 2016-07-01 2020-11-17 海信视像科技股份有限公司 Television remote control key response method based on android operating system and television
CN108334339A (en) * 2017-07-15 2018-07-27 深圳酷旗互联网有限公司 A kind of bluetooth equipment driving method and device
CN109543400B (en) * 2017-09-21 2022-08-09 华为技术有限公司 Method and equipment for dynamically managing kernel nodes
CN108012170A (en) * 2017-12-05 2018-05-08 晶晨半导体(上海)股份有限公司 A kind of remote controler key assignments upgrade-system and method
CN108664345A (en) * 2018-05-15 2018-10-16 青岛海信电器股份有限公司 Blue-teeth data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110111790A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
JP7058654B2 (en) Resource sharing methods, equipment and systems
US20220214932A1 (en) Methods, devices and computer storage media for inter-mini program platform communication
CN108965932A (en) A kind of even wheat window methods of exhibiting and device
US20220245005A1 (en) Methods, devices and computer storage media for inter-mini program platform discovery
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN113037616B (en) Interactive method and device for cooperatively controlling multiple robots
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
US11803606B2 (en) Device augmentation of real time communications
CN114047964A (en) Method for enabling Android-supported camera to be hot-plugged when Linux is compatible with Android system
CN110111790B (en) Method, device and equipment for processing external equipment access of intelligent equipment
CN112395242A (en) Multi-chip control method, device, electronic equipment and computer readable storage medium
CN113452948B (en) Conference terminal control method, device, equipment and storage medium
CN112269631A (en) Keyboard and mouse sharing system of virtual machine
CN113053374B (en) Large screen control system
CN116244231A (en) Data transmission method, device and system, electronic equipment and storage medium
CN105721278A (en) Question-answer mechanism based on instant communication
CN109298956A (en) Document transmission method, device and terminal device
CN107239353A (en) Inter-process communication methods and system
CN111477229A (en) Voice recognition request processing method and device
CN110572271A (en) Method and system for managing voice chat room
CN112995333B (en) Remote file activation method, system and related device
CN113347039B (en) Data processing method for virtualized network function
WO2023029961A1 (en) Task execution method and system, electronic device, and computer storage medium
CN112256385A (en) Method and system for sharing keyboard and mouse by virtual machine
CN106569971B (en) Information transmission method and device

Legal Events

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

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

GR01 Patent grant
GR01 Patent grant