CN109947482B - Loading method of USB (universal serial bus) equipment, storage medium and smart television - Google Patents

Loading method of USB (universal serial bus) equipment, storage medium and smart television Download PDF

Info

Publication number
CN109947482B
CN109947482B CN201711396675.2A CN201711396675A CN109947482B CN 109947482 B CN109947482 B CN 109947482B CN 201711396675 A CN201711396675 A CN 201711396675A CN 109947482 B CN109947482 B CN 109947482B
Authority
CN
China
Prior art keywords
usb
equipment
usb device
loading
identifier
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
CN201711396675.2A
Other languages
Chinese (zh)
Other versions
CN109947482A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201711396675.2A priority Critical patent/CN109947482B/en
Publication of CN109947482A publication Critical patent/CN109947482A/en
Application granted granted Critical
Publication of CN109947482B publication Critical patent/CN109947482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a loading method of USB equipment, a storage medium and a smart television, wherein the method comprises the following steps: when the smart television detects that the USB equipment is plugged, acquiring an equipment identifier of the USB equipment; looking up the device identifier in a preset first configuration table, wherein the first configuration table is used for storing the device identifiers of the USB devices allowed to be accessed; and when the equipment identifier is found, loading a driver of the USB equipment to load the USB equipment. According to the method and the device, the first configuration table of the device identification of the USB device which can be matched with the first configuration table is stored in the intelligent television in advance, the USB device plugging operation is detected in the system, the identification of the USB device is scanned and compared with the first configuration table, and the drive and the related service of the USB device are loaded when the comparison is successful, so that the compatibility of the intelligent television to the USB device is improved.

Description

Loading method of USB (universal serial bus) equipment, storage medium and smart television
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a loading method of a USB device, a storage medium and an intelligent television.
Background
The development of the internet information technology has increased the demand of people for smart tv, and various artificial intelligence applications come along, such as: gesture recognition, voice recognition, and the like; applications such as speech recognition in particular enrich the user experience to a large extent, and these technologies all require support from underlying hardware, which is a USB-interfaced device.
Currently, most manufacturers produce smart tvs, and have already determined USB peripheral devices of fixed manufacturers in the development stage, such as: a WIFI network card of a USB interface, a Bluetooth device of the USB interface and the like. When a television is developed and produced, the USB module devices are well bound with the television, and the method is simple. However, the USB device corresponding to the USB module is preset, so that the peripheral device on the USB interface of the smart television is fixed, and the peripheral device cannot be replaced according to the generation and cost requirements, which reduces the versatility of the USB interface of the smart television, and simultaneously limits the reduction of the production cost of the smart television by replacing the peripheral device.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a loading method of a USB device, a storage medium and a smart television, aiming at the defects of the prior art, so as to solve the problem of poor compatibility of the prior smart television with an external USB device.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method of loading a USB device, comprising:
when the smart television detects that the USB equipment is plugged, acquiring an equipment identifier of the USB equipment;
looking up the device identifier in a preset first configuration table, wherein the first configuration table is used for storing the device identifiers of the USB devices allowed to be accessed;
and when the equipment identifier is found, loading a driver of the USB equipment to load the USB equipment.
The loading method of the USB equipment, wherein when the smart television detects that the USB equipment is plugged, acquiring the equipment identifier of the USB equipment comprises the following steps:
when the intelligent television is started, a preset USB detection thread is started, so that whether a USB device is plugged in a preset USB port or not is detected in a circulating mode through the detection thread.
The loading method of the USB device, wherein, when the device identifier is found, loading the driver of the USB device to load the USB device specifically includes:
when the device identifier is found, the device identifier is found in a preset second configuration file, wherein the second configuration file is used for storing the device identifier of the loaded USB device;
if the device identifier is not found, determining the device type of the USB device according to the device identifier, and judging whether a first device identifier corresponding to the device type exists in the second configuration file;
and when the first device identification does not exist, loading a driver of the USB device to load the USB device.
The loading method of the USB device, wherein, when the device identifier is found, loading the driver of the USB device to load the USB device further includes:
when the first equipment identifier exists, prompting a user that the first USB equipment of the equipment type is loaded, and monitoring an operation instruction input by the user;
and when an operation instruction is received, removing the first USB equipment, and loading a driver of the USB equipment to load the USB equipment.
The loading method of the USB device, wherein the prompting, when the first device identifier exists, that the user has loaded the first USB device of the device type, and monitoring the operation instruction input by the user specifically includes:
when the first equipment identifier exists, acquiring the first equipment performance of the corresponding first USB equipment according to the first equipment identifier;
extracting a second device performance of the USB device, and comparing the first device performance with the second device performance;
and correspondingly prompting the user according to the comparison result, and monitoring an operation instruction input by the user.
The loading method of the USB device, wherein the loading the driver of the USB device to load the USB device specifically includes:
determining manufacturer information of the USB equipment according to the equipment identification, and searching a corresponding drive file according to the manufacturer information;
and loading the searched drive file, and setting an identification bit for the drive file according to the manufacturer information so as to load the corresponding service according to the identification bit.
The loading method of the USB device, wherein, when the device identifier is found, loading the driver of the USB device to load the USB device further includes:
and when the USB equipment is loaded successfully, storing the equipment identification in a preset second configuration file.
The loading method of the USB device, wherein, when the device identifier is found, after loading the driver of the USB device to load the USB device, the method further includes:
and acquiring a loading result of the USB equipment, and displaying the loading result on a display interface of the smart television.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs, which are executable by one or more processors to implement the steps in the loading method of a USB device as described in any above.
A smart television, comprising: the device comprises a processor, a memory and a communication bus, wherein the memory is stored with a computer readable program which can be executed by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the loading method of the USB device as described in any one of the above.
Has the advantages that: compared with the prior art, the invention provides a loading method of USB equipment, a storage medium and a smart television, wherein the method comprises the following steps: when the smart television detects that the USB equipment is plugged, acquiring an equipment identifier of the USB equipment; looking up the device identifier in a preset first configuration table, wherein the first configuration table is used for storing the device identifiers of the USB devices allowed to be accessed; and when the equipment identifier is found, loading a driver of the USB equipment to load the USB equipment. According to the method and the device, the first configuration table of the device identification of the USB device which can be matched with the first configuration table is stored in the intelligent television in advance, the USB device plugging operation is detected in the system, the identification of the USB device is scanned and compared with the first configuration table, and the drive and the related service of the USB device are loaded when the comparison is successful, so that the compatibility of the intelligent television to the USB device is improved.
Drawings
Fig. 1 is a flowchart of a loading method of a USB device according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of an embodiment of S30 in the loading method of the USB device provided in the present invention.
Fig. 3 is a flowchart of another embodiment of S30 in the loading method of the USB device according to the present invention.
Fig. 4 is a flowchart of S34 in the method for loading a USB device according to the present invention.
Fig. 5 is a schematic structural diagram of a preferred embodiment of the smart tv set according to the present invention.
Detailed Description
The invention provides a loading method of a USB device, a storage medium and a smart television, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention will be further explained by the description of the embodiments with reference to the drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a loading method of a USB device according to a preferred embodiment of the present invention. The method comprises the following steps:
s10, when the intelligent television detects that the USB equipment is plugged, acquiring the equipment identification of the USB equipment.
Specifically, the USB device refers to a peripheral device connected to the smart television through a USB interface configured in the smart television, such as a USB disk, a peripheral bluetooth transmitter, a peripheral WIFI transmitter, and the like. The device identification includes at least a Vendor Id (VID) and a product identification code (PID), and USB devices can be distinguished by the VID and PID, i.e., the VID and PID are unique identifications of SUB devices. The VID is a unique identifier of a supplier, and the supplier of the USB can be determined according to the VID; the PID is an identification code of the USB device, and the product model, the product type and the like of the USB device can be determined according to the PID. In addition, the VID and the PID may be stored in device firmware in a non-volatile storage device (EEPROM or Flash) of the UDB device, and when the USB device is connected to the smart tv, the device firmware may send the VID and the PID to the smart tv, so that the smart tv acquires the VID and the PID of the USB device, that is, acquires a device identifier of the smart tv.
Meanwhile, in this embodiment, the detection of the plugged-in USB device by the smart television may be the detection of the plugged-in USB device after the smart television is turned on, or the detection of the USB device in the process of performing power-on scanning and enumerating all USB devices when the smart television is turned on. And the detection thread can monitor the change of the node equipment under the preset directory of the system to judge the plugging operation of the USB equipment, so as to determine the USB equipment accessed into the smart television.
Further, when the smart television detects that the USB device is plugged, acquiring the device identifier of the USB device includes: when the intelligent television is started, a preset USB detection thread is started, so that whether a USB device is plugged in a preset USB port or not is detected in a circulating mode through the detection thread.
Specifically, the detection thread detects the plugging operation of the USB device by detecting a device node change in a preset directory. The preset directory can be a/dev/bus/USB directory, the device node is generated for each USB device at the bottom layer of the system and is used for uniquely identifying the USB device, the device node is generated when the USB device is plugged in, and the device node is deleted when the USB device is pulled out. Specifically, after the intelligent television is started, starting a detection thread of the USB device to circularly detect the plugging and unplugging operation of the USB device; when detecting that a USB device is plugged, generating a device node corresponding to the UBS by a system bottom layer, and storing the device node in a preset directory (for example); when detecting that the USB equipment is pulled out, the system bottom layer deletes the equipment node corresponding to the USB equipment, namely deletes the equipment node of the equipment in the preset directory. Therefore, plugging and unplugging search of the USB equipment can be detected by monitoring node change under the preset directory. In addition, when the smart television is started, the smart television is started to perform startup scanning so as to enumerate all connected USB devices, and generates scanned device nodes of all the USB devices under a preset directory, so that the plugging operation of the USB devices can be monitored. Certainly, when the smart television is started, all the device nodes under the preset directory are emptied by the system bottom layer, so that inaccuracy of plugging and unplugging operation processes of the USB device due to repeated device nodes under the preset directory is avoided.
In addition, the preset directory may establish a folder for each USB device, the device node is stored in the folder corresponding to the device node, and each folder has two files, which are respectively marked as an idProduct file and an idVendor file, where the idProduct file is used to store PID information and the idVendor file is used to store VID information. That is to say, after the USB device is plugged into the smart television, the PID and VID carried by the USB device are sent to the smart television, and the smart television stores the received PID in the idProduct file of the folder corresponding to the received PID in the preset directory and stores the VID in the idVendor file of the folder corresponding to the received PID in the preset directory; thus, the PID and VID of the USB device can be obtained by reading the idProduct file and idVendor file.
S20, searching the device identification in a preset first configuration table, wherein the first configuration table is used for storing the device identification of the USB device allowed to be accessed.
Specifically, the first configuration table is preset for the smart television and is used for storing the device identifier of the USB device allowed to be accessed. The device identification includes, in addition to VID and PID, vendor module name, serial number, device category (e.g., bluetooth 1, WIFI 2, combo 3, etc.), number of vendor module models, and custom field for extension. Also, the device identification may be stored in the first configuration table in the following format.
NAME ORDER TYPE COUNT VID_PID_PERF …… CUSTOM
Wherein, NAME represents the NAME of the manufacturer module, ORDER represents the serial number, TYPE represents the equipment category, COUNT represents the number of the models of the manufacturer module, VID _ PID represents the VID and PID of the manufacturer module and the performance parameter of the equipment; the CUSTOM indicates that the client CUSTOM field is for extension. For example, Name RTL8192 EU; 1, ORDER; 1 part of TYPE; COUNT is shown in the specification; VID _ PID _ PERF:0x0bda:0x818b: 80; VID _ PID _ PERF:0x0bda:0x818c: 100; CUSTOM is not self-defined.
In addition, the first configuration file may be stored in the smart tv, and the preset first configuration file is loaded in a process that the smart tv starts and starts a USB detection thread (for example, USB device detection service), and the first configuration file is stored in the temporary memory, so that the device identifier of the plugged USB device is detected to be verified, and the validity of the USB device is verified. The verifying the validity of the USB device refers to determining whether the device identifier of the USB device is stored in a first configuration file, that is, determining whether the USB device is a USB device that the smart television allows to access. Certainly, in the process of verifying the USB device, the user may be prompted through a display interface of the smart television that the USB device belongs to the configuration, and the prompting information may be displayed in any position that does not affect the display of the smart television picture, such as a lower left corner, a lower right corner, and the like.
And S30, when the device identification is found, loading a driver of the USB device to load the USB device.
Specifically, the checking that the received device identifier indicates that the USB device is legal, that is, the USB device that the smart television is allowed to access; and loading a driver corresponding to the USB equipment. The USB driver may be pre-stored in the smart television, or may be acquired by the smart television through a network according to the device identifier, for example, acquired from a background server or downloaded from a network of a provider of the USB device. Furthermore, after the driver is acquired, the driver starts to be loaded, and when the driver is loaded, an identification bit is set according to a manufacturer name of the USB device to determine the type of the USB device, for example, if the USB device is a bluetooth device, the identification bit is set to tcl.usb.bt = xxx (bcm, rtk, mtk); and if the USB device is a WIFI device, setting the identification bit to tcl.usb.wifi = xxx (rtk, mtk).
Further, after the driver is loaded successfully, the device type of the device may be determined according to the device identification bit, and the corresponding core service may be loaded for the USB device according to the device type. Correspondingly, the loading the driver of the USB device to load the USB device specifically includes:
determining manufacturer information of the USB equipment according to the equipment identification, and searching a corresponding drive file according to the manufacturer information;
and loading the searched drive file, and setting an identification bit for the drive file according to the manufacturer information so as to load the corresponding service according to the identification bit.
Specifically, if the device type is detected to be a bluetooth device, a core service bluetooth of bluetooth is started, and a relevant interface of a protocol stack is called through JNI. Different vendors have different protocol stacks (e.g., boston, Realtek, MTK, etc.) and the protocol is provided as a library file, e.g., blue tooth. Then, the default can be changed to a corresponding manufacturer name, such as, for example, boston bluetooth.bcm.so, real k bluetooth.rtk.so, MTK bluetooth.mtk.so, and the like, so that when different protocol stack library files are loaded in runtime, a corresponding protocol stack library can be found through the bluetooth + corresponding manufacturer name in the hardware abstraction layer, and thus, a corresponding protocol stack can be obtained according to the identification bit. In addition, if the device type is detected to be a WIFI device, a core service WIFI service of the WIFI is started, and a WIFI HAL is called through a JNI to start a wpa _ supplicant (used for interacting with a WiFi driver and supporting a transfer station of a user with protocols and encryption authentication). And the core services of different manufacturers are realized by different wpa _ submissions (such as: Realtek, MTK, etc.), and the wpa _ submissions are provided in the form of BIN execution file, so that the core services of each manufacturer can be distinguished by changing the file into a corresponding manufacturer name, such as: realtek wpa _ supplicant _ rtk, MTK wpa _ supplicant _ MTK, and the like. Then the different core services can be loaded at runtime, where the wifi HAL looks for the corresponding wp _ supplicant through wp _ supplicant + corresponding vendor name.
Meanwhile, in this embodiment, after the device identifier is found, it may be detected that the USB device of the type is plugged, and when the USB device of the type is not plugged, the driver corresponding to the USB device may be loaded. Correspondingly, as shown in fig. 2, the loading the driver of the USB device to load the USB device when the device identifier is found specifically includes:
s31, when the device identifier is found, finding the device identifier in a preset second configuration file, wherein the second configuration file is used for storing the device identifier of the loaded USB device;
s32, if the device identifier is not found, determining the device type of the USB device according to the device identifier, and judging whether a first device identifier corresponding to the device type exists in the second configuration file;
and S33, when the first device identification does not exist, loading a driver of the USB device to load the USB device.
Specifically, the second configuration file is preset and is used for storing the device identifier of the loaded USB device, that is, the first device identifier of the USB device that is plugged in the smart television and loads the driver is stored in the second configuration file. Therefore, whether the same type of USB equipment is loaded or not can be determined by searching the equipment identifier in the second configuration file, and repeated loading of the same equipment is avoided, so that repeated occupation of the USB interface of the smart television is avoided, and the utilization rate of the USB interface of the smart television is improved. In addition, when the device identifier is searched, the user is prompted that the USB device is loaded, the user is only prompted that the accessed USB device is loaded, the driver does not need to be reloaded, and the user can pull out the USB device.
Meanwhile, in this embodiment, when the device identifier of the USB device is not found, it may be determined whether the smart television loads the USB device of the type by determining whether the second configuration file includes the first device identifier configured with the device type. When the first device identifier does not exist, the smart television is indicated not to load the same type of USB device, and then the driver of the USB device is directly loaded and the USB device is loaded. When the first device identifier exists, the loaded information can be prompted to the user, and the user performs corresponding operation. Correspondingly, as shown in fig. 3, the loading the driver of the USB device to load the USB device when the device identifier is found further includes:
s34, when the first equipment identifier exists, prompting a user that the first USB equipment of the equipment type is loaded, and monitoring an operation instruction input by the user;
s35, when the loaded operation instruction is received, removing the first USB device, and loading a driver of the USB device to load the USB device.
Specifically, the prompt user that the first USB device of the device type is loaded displays the prompt information on a display interface of the smart television, and provides the prompt information to a user selection interface, so that the user can select the USB device to be loaded. In addition, in order to facilitate the user to select the USB device to be loaded, when the USB devices of the same type are found, the performance of the USB devices may be compared with the loaded USB devices of the same type, and the comparison result is displayed on the display interface. Correspondingly, as shown in fig. 4, when the first device identifier exists, the prompting that the user has loaded the first USB device of the device type, and monitoring the operation instruction input by the user specifically includes:
s341, when the first device identifier exists, obtaining the first device performance of the corresponding first USB device according to the first device identifier;
s342, extracting the second equipment performance of the USB equipment, and comparing the first equipment performance with the second equipment performance;
and S343, carrying out corresponding prompt on the user according to the comparison result, and monitoring the operation instruction input by the user.
Specifically, the comparison result may be that the performance of the USB is good, the performance of the first USB device is good, or the performances of the two devices are the same. Wherein the first device capability is readable in the first device identification and the second device capability is readable in the USB device. And, the prompting the user according to the comparison result may specifically be: when the performance of the first equipment is higher than that of the second equipment, prompting a user that the performance of the USB equipment is poor, and determining whether to load or not; when the performance of the first equipment is lower than that of the second equipment, prompting a user that the performance of the USB equipment is better, and determining whether to load or not; and when the first equipment performance is equal to the second equipment performance, prompting a user that the performance of the USB equipment is consistent with the loaded performance of the USB equipment, and determining whether to load.
In addition, after the loading the driver of the USB device to load the USB device when the device identifier is found, the method further includes: and when the USB equipment is loaded successfully, storing the equipment identification in a preset second configuration file. Therefore, the synchronism of the second configuration file and the USB equipment loaded by the intelligent television can be ensured. Meanwhile, after the USB equipment is loaded, the loading result can be displayed on a display interface, so that a user can know the loading state of the USB equipment. Correspondingly, when the device identifier is found, after loading the driver of the USB device to load the USB device, the method further includes: and acquiring a loading result of the USB equipment, and displaying the loading result on a display interface of the smart television. Specifically, the loading result may include a loading success and a loading identification, and when the loading is successful, the user may be prompted that the USB device configured successfully can be used normally; when loading fails, the user may be prompted to retry the loading of the USB device.
Based on the loading method of the USB device, the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps in the loading method of the USB device according to the foregoing embodiment.
The present invention also provides a smart tv, as shown in fig. 5, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, and may further include a communication Interface (Communications Interface) 23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 30 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store 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, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the mobile terminal are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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 technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A loading method of a USB device is characterized by comprising the following steps:
the method comprises the steps that a preset directory establishes a folder for each USB device, device nodes are stored in the folders corresponding to the USB devices, and each folder is provided with two files which are respectively marked as an idProduct file and an idVendor file, wherein the idProduct file is used for storing PID information, and the idVendor file is used for storing VID information;
when the intelligent television is started, starting a preset USB detection thread to circularly detect whether a preset USB port is plugged with a USB device or not through the detection thread, generating a device node when the USB device is plugged, and deleting the device node when the USB device is pulled out;
when the smart television detects that the USB equipment is plugged, acquiring an equipment identifier of the USB equipment; wherein the device identification comprises: PID information and VID information;
looking up the device identifier in a preset first configuration table, wherein the first configuration table is used for storing the device identifiers of the USB devices allowed to be accessed;
when the equipment identifier is found, loading a driver of the USB equipment to load the USB equipment;
when the device identifier is found, loading the driver of the USB device to load the USB device specifically includes:
when the device identifier is found, the device identifier is found in a preset second configuration file, wherein the second configuration file is used for storing the device identifier of the loaded USB device;
if the device identifier is not found, determining the device type of the USB device according to the device identifier, and judging whether a first device identifier corresponding to the device type exists in the second configuration file;
and when the first device identification does not exist, loading a driver of the USB device to load the USB device.
2. The loading method of the USB device according to claim 1, wherein the loading the driver of the USB device to load the USB device when the device identifier is found further comprises:
when the first equipment identifier exists, prompting a user that the first USB equipment is loaded, and monitoring an operation instruction input by the user;
and when receiving the loaded operation instruction, removing the first USB equipment, and loading a driver of the USB equipment to load the USB equipment.
3. The loading method of the USB device according to claim 2, wherein the prompting, when the first device identifier exists, that the user has loaded the first USB device of the device type, and monitoring an operation instruction input by the user specifically includes:
when the first equipment identifier exists, acquiring the first equipment performance of the corresponding first USB equipment according to the first equipment identifier;
extracting a second device performance of the USB device, and comparing the first device performance with the second device performance;
and correspondingly prompting the user according to the comparison result, and monitoring an operation instruction input by the user.
4. A loading method for a USB device according to any one of claims 1 to 3, wherein the loading the driver of the USB device to load the USB device specifically includes:
determining manufacturer information of the USB equipment according to the equipment identification, and searching a corresponding drive file according to the manufacturer information;
and loading the searched drive file, and setting an identification bit for the drive file according to the manufacturer information so as to load the corresponding service according to the identification bit.
5. The loading method of the USB device according to claim 1, wherein the loading the driver of the USB device to load the USB device when the device identifier is found comprises:
and when the USB equipment is loaded successfully, storing the equipment identification in a preset second configuration file.
6. The loading method of the USB device according to claim 1, wherein the loading the driver of the USB device to load the USB device when the device identifier is found further comprises:
and acquiring a loading result of the USB equipment, and displaying the loading result on a display interface of the smart television.
7. A computer-readable storage medium storing one or more programs which are executable by one or more processors to implement the steps in the loading method of a USB device according to any one of claims 1 to 6.
8. An intelligent television, comprising: the device comprises a processor, a memory and a communication bus, wherein the memory is stored with a computer readable program which can be executed by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the loading method of the USB device according to any one of claims 1 to 6.
CN201711396675.2A 2017-12-21 2017-12-21 Loading method of USB (universal serial bus) equipment, storage medium and smart television Active CN109947482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711396675.2A CN109947482B (en) 2017-12-21 2017-12-21 Loading method of USB (universal serial bus) equipment, storage medium and smart television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711396675.2A CN109947482B (en) 2017-12-21 2017-12-21 Loading method of USB (universal serial bus) equipment, storage medium and smart television

Publications (2)

Publication Number Publication Date
CN109947482A CN109947482A (en) 2019-06-28
CN109947482B true CN109947482B (en) 2022-07-29

Family

ID=67005769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711396675.2A Active CN109947482B (en) 2017-12-21 2017-12-21 Loading method of USB (universal serial bus) equipment, storage medium and smart television

Country Status (1)

Country Link
CN (1) CN109947482B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457076B (en) * 2019-09-10 2022-08-12 广州市金其利信息科技有限公司 Peripheral management method
CN112000374B (en) * 2020-07-13 2024-01-02 深圳市智微智能软件开发有限公司 USB touch screen replacement method, device, equipment and medium applied to android system
CN111857851A (en) * 2020-07-27 2020-10-30 联想(北京)有限公司 Configuration method and device and electronic equipment
CN112380078B (en) * 2020-11-25 2023-05-23 歌尔科技有限公司 USB equipment communication test method and test device
CN112684914B (en) * 2020-12-31 2021-11-19 深圳雷柏科技股份有限公司 Kernel-driven-based method for realizing keyboard and mouse function modification and related equipment
CN113099433A (en) * 2021-04-14 2021-07-09 深圳泰科晶显科技有限公司 Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers
CN113791824B (en) * 2021-08-10 2023-09-15 浪潮金融信息技术有限公司 Peripheral driver loading method, system and medium of terminal equipment
CN115576612B (en) * 2022-09-02 2023-05-12 广州市金其利信息科技有限公司 External device adaptation method and device, intelligent terminal and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096167A (en) * 2012-12-24 2013-05-08 康佳集团股份有限公司 Starting method and starting system of intelligent television
CN103491395A (en) * 2013-08-29 2014-01-01 广州视源电子科技股份有限公司 Method for expanding peripheral units of smart television and smart television
CN103942078A (en) * 2014-04-30 2014-07-23 华为技术有限公司 Method for loading driver and embedded device
CN104125218A (en) * 2014-07-04 2014-10-29 广州金山网络科技有限公司 Equipment identification method, device and system
CN105095118A (en) * 2014-05-19 2015-11-25 小米科技有限责任公司 Method and device for using equipment
CN105809029A (en) * 2016-03-03 2016-07-27 北京金山安全软件有限公司 Method and device for intercepting operation of driver
CN106095413A (en) * 2016-05-31 2016-11-09 青岛海信电器股份有限公司 The collocation method of a kind of bluetooth driver and device
CN106203073A (en) * 2016-07-13 2016-12-07 浪潮电子信息产业股份有限公司 A kind of Windows white list control method based on file system filter driver
CN106775833A (en) * 2016-11-28 2017-05-31 青岛海信移动通信技术股份有限公司 device driver loading method, terminal and system
CN107111568A (en) * 2015-01-06 2017-08-29 阿沃森特亨茨维尔有限责任公司 System and method for driver installation file to be presented when enabling USB equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6934774B1 (en) * 1999-12-20 2005-08-23 Fujitsu Limited Method and system for reliable device configuration in a computer system
US20050198221A1 (en) * 2004-01-07 2005-09-08 Microsoft Corporation Configuring an ad hoc wireless network using a portable media device
US20050149732A1 (en) * 2004-01-07 2005-07-07 Microsoft Corporation Use of static Diffie-Hellman key with IPSec for authentication
CN105224483B (en) * 2014-06-11 2019-11-12 西安中兴新软件有限责任公司 Data transmission method, electronic equipment and universal serial bus device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096167A (en) * 2012-12-24 2013-05-08 康佳集团股份有限公司 Starting method and starting system of intelligent television
CN103491395A (en) * 2013-08-29 2014-01-01 广州视源电子科技股份有限公司 Method for expanding peripheral units of smart television and smart television
CN103942078A (en) * 2014-04-30 2014-07-23 华为技术有限公司 Method for loading driver and embedded device
CN105095118A (en) * 2014-05-19 2015-11-25 小米科技有限责任公司 Method and device for using equipment
CN104125218A (en) * 2014-07-04 2014-10-29 广州金山网络科技有限公司 Equipment identification method, device and system
CN107111568A (en) * 2015-01-06 2017-08-29 阿沃森特亨茨维尔有限责任公司 System and method for driver installation file to be presented when enabling USB equipment
CN105809029A (en) * 2016-03-03 2016-07-27 北京金山安全软件有限公司 Method and device for intercepting operation of driver
CN106095413A (en) * 2016-05-31 2016-11-09 青岛海信电器股份有限公司 The collocation method of a kind of bluetooth driver and device
CN106203073A (en) * 2016-07-13 2016-12-07 浪潮电子信息产业股份有限公司 A kind of Windows white list control method based on file system filter driver
CN106775833A (en) * 2016-11-28 2017-05-31 青岛海信移动通信技术股份有限公司 device driver loading method, terminal and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于WDM的USB设备功能驱动程序的设计与实现;蔡旸;《软件》;20140228;第35卷(第2期);第4-9页 *

Also Published As

Publication number Publication date
CN109947482A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN109947482B (en) Loading method of USB (universal serial bus) equipment, storage medium and smart television
US11099923B2 (en) Systems and methods to reprogram mobile devices
EP3389295A1 (en) Multi-terminal mapping system and method for virtual sim card
TWI435555B (en) Method of configuring bluetooth sim access profile of communication device
US10445113B2 (en) Method and system for setting the user interface to suit the display screen of an electronic device
WO2018040746A1 (en) Driver installation method, device, and electronic apparatus
CN109005532B (en) Bluetooth connection method, Bluetooth master device and Bluetooth slave device
CN107704282B (en) Loading method and device applied to embedded system
US20110176456A1 (en) Connection setting apparatus, connection setting method, and computer program product
CN104123108A (en) Communication apparatus and communication apparatus control method
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN111538523A (en) Differential upgrading method, device and storage medium
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
CN113490192A (en) Bluetooth connection method, device, terminal equipment and readable storage medium
CN111290773A (en) System upgrading method, device and readable storage medium
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN107659933B (en) Bidirectional pairing connection method for wireless equipment, wireless equipment and storage medium
CN111372224A (en) Method, device and equipment for sharing seed code number by eSIM (embedded subscriber identity Module)
CN110764809A (en) OTA APN upgrading method, device, equipment and medium
CN113645599A (en) Information processing method based on electronic equipment interaction and first electronic equipment
CN110321251B (en) Data backup method, device, equipment and storage medium based on network block equipment
CN113950044A (en) Method and device for identifying user identification card, terminal equipment and storage medium
CN109741585B (en) Communication control system and method
US9332374B2 (en) Communication interface method for SE equipped on mobile terminal and SE using the same
CN112783578A (en) Method, device and equipment for starting task flow and storage medium

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