CN108738000A - Based on Android(Android)The bluetooth adaptation method and terminal device of system - Google Patents

Based on Android(Android)The bluetooth adaptation method and terminal device of system Download PDF

Info

Publication number
CN108738000A
CN108738000A CN201810288748.4A CN201810288748A CN108738000A CN 108738000 A CN108738000 A CN 108738000A CN 201810288748 A CN201810288748 A CN 201810288748A CN 108738000 A CN108738000 A CN 108738000A
Authority
CN
China
Prior art keywords
bluetooth adapter
bluetooth
adapter
match information
terminal device
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.)
Withdrawn
Application number
CN201810288748.4A
Other languages
Chinese (zh)
Inventor
曾引
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MStar Semiconductor Inc Taiwan
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 MStar Semiconductor Inc Taiwan filed Critical MStar Semiconductor Inc Taiwan
Priority to CN201810288748.4A priority Critical patent/CN108738000A/en
Priority to TW107134670A priority patent/TW201943249A/en
Publication of CN108738000A publication Critical patent/CN108738000A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of bluetooth adaptation method and terminal device being based on Android (Android) system, the method includes:The match information for reading Bluetooth adapter, to know the corresponding informance of the current Bluetooth adapter for executing plug operation;The Bluetooth adapter for executing plug operation is identified according to the match information of the Bluetooth adapter, and corresponding setting instruction is sent out according to the corresponding informance of Bluetooth adapter;The property parameters for matching the Bluetooth adapter are called according to the setting instruction, to drive the Bluetooth adapter according to the property parameters.By the above-mentioned means, bluetooth adaptation method of the present invention enables to the terminal device based on Android (Android) system to be adapted to different Bluetooth chips, to provide facility for user's use.

Description

Bluetooth adaptation method and terminal device based on Android (Android) system
Technical field
The present invention relates to bluetooth adaptation technique field, more particularly to a kind of bluetooth adaptation method based on android system and Terminal device.
Background technology
With the development of science and technology and the raising of people's daily life demand, short distance wireless data transmit --- bluetooth Using more and more extensive.It is currently based on the terminal device of android system, such as television set, set-top box, is collected inside generally use Corresponding Bluetooth function is realized at the mode of Bluetooth chip.
However, present inventor has found in long-term R&D process, the terminal for being currently based on android system is set The standby mode for being internally integrated Bluetooth chip can not support the hot plug of bluetooth module, to make troubles for user's use.
Invention content
The invention mainly solves the technical problem of providing a kind of bluetooth adaptation method and terminal based on android system Equipment so that be somebody's turn to do the terminal device based on android system and enable to the terminal device based on Android (Android) system suitable With different Bluetooth chips, to provide facility for user's use.
In order to solve the above technical problems, one aspect of the present invention is:It provides a kind of based on android system Bluetooth adaptation method, including:The match information for reading Bluetooth adapter, to know that the current bluetooth for executing plug operation is adapted to The corresponding informance of device;The bluetooth adaptation for executing plug operation is identified according to the match information of the Bluetooth adapter Device, and corresponding setting instruction is sent out according to the corresponding informance of the Bluetooth adapter;It is instructed and calling according to the setting Property parameters with the Bluetooth adapter, to drive the Bluetooth adapter according to the property parameters.
In order to solve the above technical problems, another technical solution used in the present invention is:It provides a kind of based on Android systems The terminal device of system, including:Read module, wherein the plug behaviour for reading module and being used to receive the Bluetooth adapter of peripheral hardware Make, and reads the information of Bluetooth adapter to know the match information of the Bluetooth adapter;Module is identified, with the reading mould Group connection, to receive the match information of the Bluetooth adapter and identify institute according to the match information of the Bluetooth adapter Bluetooth adapter is stated, and generates corresponding setting instruction;Module is arranged in attribute, is connect with the identification module, described in reception Instruction is set and matches the property parameters of the Bluetooth adapter according to the setting instruction calls, to enable the terminal to The Bluetooth adapter is driven according to the property parameters.
The beneficial effects of the invention are as follows:The case where being different from the prior art, it is suitable that the present invention is based on the bluetooths of android system Method of completing the square includes:The information for reading Bluetooth adapter, to know the corresponding informance of the current Bluetooth adapter for executing plug operation; The Bluetooth adapter for executing plug operation is identified according to the match information of Bluetooth adapter, and according to pair of Bluetooth adapter Answer delivering that instruction is set accordingly;The property parameters that matching Bluetooth adapter is called according to setting instruction, to basis Property parameters and drive Bluetooth adapter.By the above-mentioned means, can be in the USB interface of the terminal device based on android system The different Bluetooth adapter of upper grafting, and in the different Bluetooth adapter of grafting, call the attribute of corresponding Bluetooth adapter Parameter, to not limit Bluetooth chip used in terminal device so that user can select to make according to the demand of oneself With different Bluetooth chips, to provide facility for user's use.
Description of the drawings
Fig. 1 is the flow diagram of one embodiment of bluetooth adaptation method the present invention is based on android system;
Fig. 2 is the flow diagram of step S101 in Fig. 1;
Fig. 3 is the flow diagram of step S102 in Fig. 1;
Fig. 4 is the flow diagram of step S103 in Fig. 1;
Fig. 5 is the block schematic illustration of one embodiment of terminal device the present invention is based on android system;
Fig. 6 is the block schematic illustration that module 11 is read in Fig. 5;
Fig. 7 is the block schematic illustration that module 12 is identified in Fig. 5;
Fig. 8 is the block schematic illustration that module 13 is arranged in Fig. 5.
Specific implementation mode
Concrete details is elaborated in the following description to fully understand the present invention.But the present invention can with it is a variety of not Other modes described here are same as to implement, those skilled in the art can do class without violating the connotation of the present invention Like popularization.Therefore the present invention is not limited by following public specific implementation mode.
Bluetooth is a kind of radiotechnics of holding equipment short haul connection, can be including smart television, set-top box, movement Wireless messages exchange is carried out between numerous equipment such as phone, PDA, wireless headset, laptop, related peripherals.Utilize bluetooth Technology can effectively simplify the communication between mobile communication terminal device, also can successfully simplify equipment and internet Communication between Internet, to improve the efficiency of transmission of data.
It should be pointed out that built in currently the terminal device of delivery android system is typically employed in the terminal device The mode of Bluetooth chip, to realize corresponding Bluetooth function.However, the mode of this embedded with bluetooth chip makes user buy eventually It is merely able to work using the Bluetooth chip that producer before manufacture integrates in the terminal device after end equipment, is unable to prop up Other producer's bluetooth modules are held, and then generate certain limitation;In addition, the mode built in Bluetooth chip can not support indigo plant The operation of the random hot plug of tooth module.
For the defect mentioned in background technology, the present invention provides a kind of bluetooth adaptation method based on android system. Below in conjunction with drawings and embodiments, the present invention is described in further detail.
Referring to Fig. 1, the flow that Fig. 1 is one embodiment of bluetooth adaptation method the present invention is based on android system is shown It is intended to.
The case where being different from the prior art, present embodiment are used to deliver the terminal device of android system, specifically, In present embodiment, the bluetooth adaptation method based on android system includes:
Step S101:The match information for reading Bluetooth adapter, to know the current Bluetooth adapter for executing plug operation Corresponding informance;
In present embodiment, Bluetooth adapter is the outside for referring to be plugged on the terminal device of delivery android system On interface, so that the terminal device of the delivery android system can be by between the Bluetooth adapter and bluetooth equipment Establish the interface convertor connected so as to carry out data transmission by bluetooth.Specifically, which can be USB Bluetooth adapter.
Wherein, USB interface be computer and transferring equipment, such as keyboard, magnetic tape station, printer and writable CD player etc. it Between standard interface.Not only load capacity is good for the interface, and ease for use, has the function of " plug and play ", can concatenate It is more than 127 peripheral hardwares.
In present embodiment, USB interface includes USB tasks and USB drivings, and USB Bluetooth adapter is passed through terminal device USB interface be plugged on the terminal device based on android system, to be further able to realize be based on android system Plug and play Bluetooth data transfer.
Specifically, it can be prestored in the memory of the terminal device based on android system and the terminal device The relevant information of compatible Bluetooth adapter detects there is bluetooth at USB interface when terminal device finds Bluetooth adapter When adapter inserts or pull out, to current Bluetooth adapter send upload its relevant information instruction, the Bluetooth adapter according to The instruction of terminal device is sent to corresponding relevant information, and further with the corresponding letter that is stored in the memory of terminal device Breath is compared, and confirms whether current Bluetooth adapter is the Bluetooth adapter compatible with the terminal device.
Wherein, the corresponding informance of the current Bluetooth adapter for executing plug operation may include the Bluetooth adapter itself Information should as that can correspond to the above-mentioned relevant information being stored in the memory of terminal device or terminal device detects Bluetooth adapter is currently with the inserting state of terminal device etc..
Specifically, referring to Fig. 2, step S101 may include:
Step S1011:Read the match information of the current Bluetooth adapter for executing plug operation;
In present embodiment, the match information of Bluetooth adapter refers to the intrinsic information of Bluetooth adapter itself, can be wrapped Include producer's identifier and the version sequence number etc. of Bluetooth adapter.
Step S1012:What identification Bluetooth adapter executed is insertion operation or extracts operation, and generates corresponding plug Operate identification signal;
Further, when terminal device finds current Bluetooth adapter, further judge that current Bluetooth adapter is It is inserted into the terminal device, or is extracted from the USB interface of the terminal device.And corresponding insert is generated according to the result detected Pull out signal, for example, current Bluetooth adapter execute be insertion operation when, corresponding plug identification signal is 1, and execution is When extracting operation, corresponding plug identification signal is 2.
Step S1013:According to the match information of Bluetooth adapter, the match information letter of corresponding Bluetooth adapter is generated Number, to generate corresponding informance.
It should be pointed out that producer's identifier of Bluetooth adapter and corresponding version sequence number can uniquely determine one Or it determines with a Bluetooth adapter.It similarly, can be further after the match information for detecting current Bluetooth adapter Corresponding match information signal is generated according to pre-stored relevant information in terminal device memory.For example, being identified in producer Symbol is A, and when version sequence number is a, the matched signal of the Bluetooth adapter of generation is 11.
In this embodiment, the corresponding informance of the current Bluetooth adapter for executing plug operation includes then plug identification signal With match information signal.
Step S102:The Bluetooth adapter for executing plug operation is identified according to the match information of Bluetooth adapter, and Corresponding setting instruction is sent out according to the corresponding informance of Bluetooth adapter;
It should be pointed out that terminal device can recognize that the Bluetooth adapter is according to the match information of Bluetooth adapter No and present terminal hardware compatibility, and corresponding setting instruction is sent out according to recognition result.
Wherein, setting instruction refers to the instruction controlled current Bluetooth adapter, such as is identifying current Bluetooth When adapter is compatible with the terminal device, the related setting driven to current Bluetooth adapter can be sent out and instructed, and When identifying that current Bluetooth adapter is incompatible with the terminal device, the finger of terminating terminal equipment operation relative program can be sent out It enables.
Specifically, referring to Fig. 3, step S102 may include:
Step S1020:According to the match information of Bluetooth adapter, judge that current Bluetooth adapter is with the terminal device No compatibility;
Specifically, terminal device can prestore the Bluetooth adapter compatible with the terminal device producer's identifier and/ Or corresponding version sequence number obtains current bluetooth when having detected that Bluetooth adapter is connected with the terminal device Corresponding producer's identifier of adapter and corresponding version sequence number, and confirm and whether deposited in the memory of terminal device Corresponding producer's identifier and corresponding version sequence number are contained, in the above-mentioned matching for being stored with current Bluetooth adapter When information, then illustrates that current Bluetooth adapter is compatible with the terminal device, then follow the steps S1021;Otherwise, current bluetooth Adapter and the terminal device are incompatible, execute step S1023.
Step S1021:Corresponding plug is generated according to the plug operation identification signal in the corresponding informance of Bluetooth adapter Operational notification signal;
It is readily appreciated that ground, plug operational notification signal are to carry out the current Bluetooth that analysis obtains to plug operation identification signal What adapter executed is insertion operation or extracts the signal of operation.
Step S1022:According to the match information signal in the corresponding informance of plug operational notification signal and Bluetooth adapter And generate corresponding setting instruction.
Specifically, for terminal device according to plug operational notification signal, know found Bluetooth adapter execution is slotting The operation being connected on the terminal device, or the operation extracted from the terminal device.And further according to Bluetooth adapter Match information signal, i.e., producer's identifier wherein included and/or corresponding version sequence number generate and control the Bluetooth adapter Setting instruction.
Be readily appreciated that ground, when plug operational notification signal show Bluetooth adapter execute be extract operation when, can will set It sets instruction and is arranged to null value, so as to no longer execute subsequent operation.
Step S1023:Send out the setting instruction of terminating terminal equipment operation relative program.
Step S103:The property parameters that matching Bluetooth adapter is called according to setting instruction, to according to property parameters And drive Bluetooth adapter.
It should be pointed out that in present embodiment, compatible Bluetooth adapter is stored in the memory of terminal device The setting that the corresponding informance of matched property parameters, the property parameters and the Bluetooth adapter by currently executing plug operation generates Instruction has correspondence, can be further according to the setting instruction calls after terminal device generates corresponding setting instruction The property parameters of corresponding Bluetooth adapter.
Wherein, the property parameters of Bluetooth adapter refer to that terminal device drives the journey called required for the Bluetooth adapter Sequence, file etc..For example, the property parameters of Bluetooth adapter may include corresponding driver, library file and service routine etc..
Specifically, referring to Fig. 4, step S103 may include:
Step S1031:It is instructed according to setting and calls the driver and service routine corresponding to Bluetooth adapter, and is raw At corresponding library file call instruction;
Step S1032:Corresponding library file is called according to library file call instruction;
Step S1033:Driver, library file and the service routine called out is stored, and according to the driving journey called out Sequence, library file and service routine and drive Bluetooth adapter.
Wherein, it can be previously stored in terminal device and call the compatible required driver of Bluetooth adapter, library text Part and service routine, according to information included in instruction, call corresponding when receiving the setting instruction to Bluetooth adapter Program, file carry out subsequent operation.
For example, show that Bluetooth adapter executes in plug notification signal is insertion operation, and the matching of Bluetooth adapter When information signal shows to be stored with the producer's identifier and version sequence number of matching current Bluetooth adapter in terminal device, then The corresponding driver of Bluetooth adapter stored in memory and service routine can be called, and further according to driver Library file corresponding with service routine call, i.e. terminal device run android system according to the configuration information of Bluetooth adapter In bluetooth applications layer and bluetooth protocol repertory, and between USB interface and bluetooth protocol repertory establish connection.Wherein, library file is indigo plant The Bluetooth adapter in tooth agreement station library, different production firms corresponds to different library files.
Further, the Host Control Interface (Host that Bluetooth adapter sends terminal device by USB interface Controller Interface, HCI) order sent out by Bluetooth chip integrated in the Bluetooth adapter, and by itself The radiofrequency signal that Bluetooth chip receives is converted into HCI events, and is sent to terminal device by USB interface, and then is terminal Equipment provides Bluetooth function.
Specifically, in an application scenarios, Bluetooth adapter A is inserted into the USB interface of terminal device, automatic to load Bluetooth adapter A drivings, and Bluetooth adapter A is called to correspond to the library of protocol stacks of manufacturer, drive Bluetooth adapter A to work, To realize the Bluetooth function of terminal device.And when Bluetooth adapter A is extracted from the USB interface of terminal device, system is automatic It closes bluetooth and removes Bluetooth adapter A library of protocol stacks information, and unload the driver of bluetooth A, service routine;Further, It is automatic to load Bluetooth adapter B drivings in the USB interface of Bluetooth adapter B, and Bluetooth adapter B is called to correspond to manufacturer Library of protocol stacks, driving Bluetooth adapter B work, terminal device realize Bluetooth function.It is set from terminal in Bluetooth adapter B When standby USB interface is extracted, system is automatically closed bluetooth and removes Bluetooth adapter B library of protocol stacks information, and unloads the drive of bluetooth B Dynamic program, service routine.
And terminal device according to plug operational notification signal know Bluetooth adapter it is currently performed be extract operation, or The match information signal of person's Bluetooth adapter shows the producer's mark for not having storage matching current Bluetooth adapter in terminal device When knowing symbol and version sequence number, it is clear that Bluetooth adapter no longer needs to carry out subsequent operation.
In the Bluetooth adapter that grafting different vendor on the USB interface of terminal device produces, corresponding library file is called , to not limit the corresponding Bluetooth chip of terminal device so that user can select according to the demand of oneself using different The Bluetooth chip of manufacturer, without being defined in the bluetooth integrated in the terminal device based on android system in the prior art Chip.Meanwhile in some cases, user may not be needed the Bluetooth function of using terminal equipment, at this point, can be in terminal Bluetooth chip is not integrated in equipment, so as to reduce the cost of terminal device.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of one embodiment of terminal device the present invention is based on android system.
Wherein, should terminal device based on android system refer to carry the terminal device of android system, such as Smart television, set-top box based on android system etc., it is further noted that the terminal device in present embodiment Refer to not in the terminal device for being internally integrated Bluetooth chip.
Specifically, being somebody's turn to do the terminal device based on android system includes:Read module 11, identification module 12 and attribute Module 13 is set.
Wherein, the plug operation that module 11 is used to receive the Bluetooth adapter of peripheral hardware is read, and reads Bluetooth adapter Match information, to know a corresponding informance of the current Bluetooth adapter for executing plug operation;Module 12 is identified, with reading module 11 connections, to receive the match information of Bluetooth adapter and identify that bluetooth is adapted to according to the match information of Bluetooth adapter Device, and corresponding setting instruction is generated according to the corresponding informance of Bluetooth adapter according to the corresponding informance of Bluetooth adapter;Attribute Module 13 is set, is connect with identification module 12, to receive setting instruction and match Bluetooth adapter according to setting instruction calls Property parameters, to enable terminal device to drive Bluetooth adapter according to property parameters.Wherein, module 11, identification are read Module 12 and attribute setting module 13 are connected with processor and memory, are corresponding by being stored in processor execution memory Program instruction and realize.
Specifically, Bluetooth adapter is USB Bluetooth adapter.
In present embodiment, USB interface includes USB tasks and USB drivings, and USB Bluetooth adapter can be set by terminal Standby USB interface is plugged on the terminal device, to be further able to realize the indigo plant of the plug and play based on android system Tooth data transmission.
Specifically, referring to Fig. 6, reading module 11 includes:Reading unit 111 plugs operation recognition unit 112 and matching Signal generation unit 113.
Wherein, reading unit 111 is used to receive the plug operation of Bluetooth adapter, and reads the matching letter of Bluetooth adapter Breath;
In an application scenarios, the match information of Bluetooth adapter includes the producer's identifier and version of Bluetooth adapter Sequence number.
Plug operation recognition unit 112 connect reading unit 111, with identify Bluetooth adapter execute be insertion operation also It is to extract operation, and generate corresponding plug operation identification signal;
Matched signal generation unit 113 connects reading unit 111 and reading unit 111, with according to of Bluetooth adapter The match information signal of corresponding Bluetooth adapter is generated with information.
Specifically, referring to Fig. 7, identification module 12 includes:Judging unit 120, plug operational notification unit 121, instruction Generation unit 122.
Wherein, judging unit 120, for according to the match information of Bluetooth adapter, judge current Bluetooth adapter with Whether the terminal device is compatible with;
Specifically, terminal device can prestore the Bluetooth adapter compatible with the terminal device producer's identifier and/ Or corresponding version sequence number obtains current bluetooth when having detected that Bluetooth adapter is connected with the terminal device Corresponding producer's identifier of adapter and corresponding version sequence number, and confirm and whether deposited in the memory of terminal device Corresponding producer's identifier and corresponding version sequence number are contained, in the above-mentioned matching for being stored with current Bluetooth adapter When information, then illustrate that current Bluetooth adapter is compatible with the terminal device, conversely, Bluetooth adapter and the terminal device be not simultaneous Hold.
Operational notification unit 121 is plugged, is connect with the judging unit 120, for the judging result in judging unit 120 The plug in corresponding informance is received when being compatible operates the corresponding plug operational notification signal of identification signal generation;
Instruction generation unit 122 is connect with the judging unit 120 and the plug operational notification unit 121, is used for When the judging result of judging unit 120 is compatible, the plug operational notification letter transmitted from plug operational notification unit 121 is received Number and the match information signal of Bluetooth adapter that is transmitted from match information generation unit 113, according to plug operational notification letter Number and Bluetooth adapter match information signal and generate corresponding setting instruction;It is not in the judging result of judging unit 120 When compatible, the setting instruction of terminating terminal equipment operation relative program is sent out.
Ground is readily appreciated that, when the plug operational notification signal that instruction generation unit 122 is received shows that Bluetooth adapter is held Capable is when extracting operation, and setting instruction is arranged to null value by instruction generation unit.Specifically, the property parameters of Bluetooth adapter Including corresponding driver, library file and service routine.
Wherein, referring to Fig. 8, attribute setting module 13 includes:Attribute processing unit 131, library file processing unit 132 and Storage unit 133.
Attribute processing unit 131 is used to instruct according to setting and call the driver corresponding to Bluetooth adapter and service Program, and generate corresponding library file call instruction;
Library file processing unit 132 is connect with attribute processing unit 131, for receiving library file call instruction to adjust With corresponding library file;
Storage unit 133 connect with attribute processing unit 131 and library file processing unit 132, is called out for storing Driver, library file and service routine.
Wherein, in the above embodiment, read module 11, identification module 12 and attribute setting module 13 and its including it is each Operation performed by unit and the flow phase in bluetooth adaptation method embodiment of the aforementioned present invention based on android system Together, the above embodiment is specifically referred to, details are not described herein again.
In the above embodiment, can on the USB interface of terminal device grafting different vendor produce Bluetooth adapter, and In the Bluetooth adapter of grafting different vendor production, corresponding library file is called, to not limit terminal device correspondence Bluetooth chip so that user can according to the demand of oneself select using different vendor Bluetooth chip.Meanwhile in some feelings Under condition, user may not be needed the Bluetooth function of using terminal equipment, at this point, integrating Bluetooth chip, energy not in terminal device Enough reduce the cost of terminal device.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field is included within the scope of the present invention.

Claims (16)

1. one kind being based on the bluetooth adaptation method of Android (Android) system, which is characterized in that including:
The match information for reading Bluetooth adapter, to know the corresponding informance of the current Bluetooth adapter for executing plug operation;
The Bluetooth adapter for executing plug operation is identified according to the match information of the Bluetooth adapter, and according to institute The corresponding informance for stating Bluetooth adapter sends out corresponding setting instruction;
The property parameters for matching the Bluetooth adapter are called according to the setting instruction, to according to the property parameters Drive the Bluetooth adapter.
2. bluetooth adaptation method according to claim 1, which is characterized in that the Bluetooth adapter is adapted to for USB bluetooths Device.
3. bluetooth adaptation method according to claim 1, which is characterized in that read the match information of Bluetooth adapter to obtain The step of knowing the corresponding informance of the current Bluetooth adapter for executing plug operation, further comprises:
Read the match information of the current Bluetooth adapter for executing plug operation;
Identify the Bluetooth adapter execution is insertion operation or extraction operation, and generates corresponding plug and operate identification letter Number;
According to the match information of the Bluetooth adapter, the match information signal of the corresponding Bluetooth adapter is generated, with life At the corresponding informance;
The wherein described corresponding informance includes plug operation identification signal and the match information signal.
4. bluetooth adaptation method according to claim 3, which is characterized in that the match information of the Bluetooth adapter includes The producer's identifier and version sequence number of the Bluetooth adapter.
5. bluetooth adaptation method according to claim 3, which is characterized in that according to the match information of the Bluetooth adapter And identify the Bluetooth adapter for executing plug operation, and sent out accordingly according to the corresponding informance of the Bluetooth adapter The step of setting instruction, further comprise:
According to the match information of Bluetooth adapter, judge whether current Bluetooth adapter is compatible with the terminal device;
When judging result is compatible, according to the plug operation identification signal production in the corresponding informance of the Bluetooth adapter Raw corresponding plug operational notification signal;
When judging result is compatible, according in the corresponding informance of the plug operational notification signal and the Bluetooth adapter Match information signal and generate the corresponding setting and instruct;And
When judging result is incompatible, the setting instruction of terminating terminal equipment operation relative program is sent out.
6. bluetooth adaptation method according to claim 5, which is characterized in that when the plug operational notification signal shows institute State Bluetooth adapter execution is when extracting operation, and the setting instruction is arranged to null value.
7. bluetooth adaptation method according to claim 5, which is characterized in that the property parameters of the Bluetooth adapter include Corresponding driver, library file and service routine.
8. bluetooth adaptation method according to claim 7, which is characterized in that instructed according to the setting and call matching institute The step of property parameters of Bluetooth adapter according to the property parameters so that drive the Bluetooth adapter is stated, is further wrapped It includes:
It is instructed according to the setting and calls the driver and service routine corresponding to the Bluetooth adapter, and generate correspondence Library file call instruction;
Corresponding library file is called according to the library file call instruction;
The driver, library file and the service routine called out is stored, and according to the driver, the library text called out Part and service routine and drive the Bluetooth adapter.
9. one kind being based on the terminal device of Android (Android) system, which is characterized in that including:
Read module, wherein the plug operation read module and be used to receive the Bluetooth adapter of peripheral hardware, and it is suitable to read bluetooth The match information of orchestration is to know the corresponding informance of the Bluetooth adapter;
It identifies module, is connect with the reading module, to receive the match information of the Bluetooth adapter and according to the bluetooth The match information of adapter and identify the Bluetooth adapter, and generated according to the corresponding informance of the Bluetooth adapter corresponding Setting instruction;
Module is arranged in attribute, is connect with the identification module, is instructed and according to the setting instruction calls with receiving the setting The property parameters for matching the Bluetooth adapter, to enable the terminal to drive the bluetooth according to the property parameters Adapter.
10. terminal device according to claim 9, which is characterized in that the Bluetooth adapter is USB Bluetooth adapter.
11. terminal device according to claim 9, which is characterized in that the reading module includes:
Reading unit, the plug for receiving the Bluetooth adapter operates, and reads the information of Bluetooth adapter to detect State the match information of Bluetooth adapter;
Plug operation recognition unit, connect the reading unit, with identify that the Bluetooth adapter executes be insertion operation also It is to extract operation, and generate corresponding plug operation identification signal;
Match information generation unit connects the reading unit, according to the match information of the Bluetooth adapter, to generate corresponding The Bluetooth adapter match information signal.
12. terminal device according to claim 11, which is characterized in that the match information of the Bluetooth adapter includes institute State the producer's identifier and version sequence number of Bluetooth adapter.
13. terminal device according to claim 11, which is characterized in that the identification module includes:
Judging unit, for judging whether are current Bluetooth adapter and the terminal device according to the match information of Bluetooth adapter It is compatible;
Operational notification unit is plugged, is connect with the judging unit, for when the judging result of the judging unit is compatible, The plug operation identification signal is received to generate corresponding plug operational notification signal;
Instruction generation unit is connect with the judging unit and the plug operational notification unit, in the judging unit Result when being compatible, receive the plug operational notification signal transmitted from the plug operational notification unit and from the matching The match information signal for the Bluetooth adapter that signal generation unit is transmitted, with according to the plug operational notification signal and The match information signal of the Bluetooth adapter and generate the corresponding setting and instruct;And in the result of the judging unit When being incompatible, the setting instruction of terminating terminal equipment operation relative program is sent out.
14. terminal device according to claim 13, which is characterized in that described in being received when described instruction generation unit What plug operational notification signal showed the Bluetooth adapter execution is when extracting operation, and described instruction generation unit is set described It sets instruction and is arranged to null value.
15. terminal device according to claim 13, which is characterized in that the property parameters of the Bluetooth adapter include pair Driver, library file and the service routine answered.
16. terminal device according to claim 15, which is characterized in that the attribute is arranged module and includes:
Attribute processing unit calls the driver kimonos corresponding to the Bluetooth adapter for being instructed according to the setting Business program, and generate corresponding library file call instruction;
Library file processing unit, for receiving the library file call instruction to call corresponding library file;
Storage unit, for storing the driver, library file and the service routine that call out.
CN201810288748.4A 2018-03-30 2018-03-30 Based on Android(Android)The bluetooth adaptation method and terminal device of system Withdrawn CN108738000A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810288748.4A CN108738000A (en) 2018-03-30 2018-03-30 Based on Android(Android)The bluetooth adaptation method and terminal device of system
TW107134670A TW201943249A (en) 2018-03-30 2018-10-01 Bluetooth adaptation method and terminal device based on Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810288748.4A CN108738000A (en) 2018-03-30 2018-03-30 Based on Android(Android)The bluetooth adaptation method and terminal device of system

Publications (1)

Publication Number Publication Date
CN108738000A true CN108738000A (en) 2018-11-02

Family

ID=63940631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810288748.4A Withdrawn CN108738000A (en) 2018-03-30 2018-03-30 Based on Android(Android)The bluetooth adaptation method and terminal device of system

Country Status (2)

Country Link
CN (1) CN108738000A (en)
TW (1) TW201943249A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819108A (en) * 2019-01-04 2019-05-28 Oppo广东移动通信有限公司 Method, apparatus, electronic equipment and the storage medium of adjustment driving parameter
CN110333790A (en) * 2019-07-12 2019-10-15 北京科加触控技术有限公司 A kind of accessory device and apparatus for writing
CN110366039A (en) * 2019-07-12 2019-10-22 四川长虹电器股份有限公司 The compatibility method of different bluetooth mould groups under a kind of android system
CN111954039A (en) * 2020-07-02 2020-11-17 深圳市华曦达科技股份有限公司 Set top box Bluetooth configuration method and device, electronic equipment and storage medium
CN114070721A (en) * 2021-11-16 2022-02-18 中国联合网络通信集团有限公司 Method for determining module information, terminal and storage medium
WO2022111277A1 (en) * 2020-11-25 2022-06-02 中兴通讯股份有限公司 Hot-plug device information transmission method, computer device and readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040058521A (en) * 2002-12-27 2004-07-05 주식회사 하이닉스반도체 Multifounctional bluetooth device having function of interfacing Universal Serial Bus
CN101634976A (en) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 Method and terminal for providing Bluetooth function for computer
CN101730303A (en) * 2009-11-19 2010-06-09 杭州竞天数码科技有限公司 System compatible with multiple wireless transmission modules and implementation method thereof
CN102082969A (en) * 2010-10-29 2011-06-01 广东星海数字家庭产业技术研究院有限公司 External Bluetooth equipment driving system for set-top box
CN102314171A (en) * 2011-04-29 2012-01-11 重庆长安汽车股份有限公司 Parameter matching calibration tool based on CAN (Controller Area Network) bus
CN104469482A (en) * 2014-12-19 2015-03-25 乐视致新电子科技(天津)有限公司 Control method and device for connection of intelligent terminal and Bluetooth devices
CN105162498A (en) * 2015-09-28 2015-12-16 飞天诚信科技股份有限公司 Bluetooth adapter and communication method thereof
CN205644464U (en) * 2016-04-11 2016-10-12 曲天昱 Multi -functional bluetooth wireless mouse

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040058521A (en) * 2002-12-27 2004-07-05 주식회사 하이닉스반도체 Multifounctional bluetooth device having function of interfacing Universal Serial Bus
CN101634976A (en) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 Method and terminal for providing Bluetooth function for computer
CN101730303A (en) * 2009-11-19 2010-06-09 杭州竞天数码科技有限公司 System compatible with multiple wireless transmission modules and implementation method thereof
CN102082969A (en) * 2010-10-29 2011-06-01 广东星海数字家庭产业技术研究院有限公司 External Bluetooth equipment driving system for set-top box
CN102314171A (en) * 2011-04-29 2012-01-11 重庆长安汽车股份有限公司 Parameter matching calibration tool based on CAN (Controller Area Network) bus
CN104469482A (en) * 2014-12-19 2015-03-25 乐视致新电子科技(天津)有限公司 Control method and device for connection of intelligent terminal and Bluetooth devices
CN105162498A (en) * 2015-09-28 2015-12-16 飞天诚信科技股份有限公司 Bluetooth adapter and communication method thereof
CN205644464U (en) * 2016-04-11 2016-10-12 曲天昱 Multi -functional bluetooth wireless mouse

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
GON360: "安卓电视能用蓝牙适配器吗", 《HTTPS://ZHIDAO.BAIDU.COM/QUESTION/584005524366710925.HTML》 *
乐视: "超4 X40", 《HTTP://WWW.LEMALL.COMCHAO4X40PARAMETER.HTML》 *
小妞: "电视蓝牙适配器安装教程", 《HTTPS://WWW.ZNDS.COM/FORUM.PHP?MOD=VIEWTHREAD&TID=396529&EXTRA=PAGE%3D1&ORDERTYPE=1》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819108A (en) * 2019-01-04 2019-05-28 Oppo广东移动通信有限公司 Method, apparatus, electronic equipment and the storage medium of adjustment driving parameter
CN110333790A (en) * 2019-07-12 2019-10-15 北京科加触控技术有限公司 A kind of accessory device and apparatus for writing
CN110366039A (en) * 2019-07-12 2019-10-22 四川长虹电器股份有限公司 The compatibility method of different bluetooth mould groups under a kind of android system
CN110333790B (en) * 2019-07-12 2024-04-02 北京科加触控技术有限公司 Fitting device and writing equipment
CN111954039A (en) * 2020-07-02 2020-11-17 深圳市华曦达科技股份有限公司 Set top box Bluetooth configuration method and device, electronic equipment and storage medium
CN111954039B (en) * 2020-07-02 2022-07-01 深圳市华曦达科技股份有限公司 Set top box Bluetooth configuration method and device, electronic equipment and storage medium
WO2022111277A1 (en) * 2020-11-25 2022-06-02 中兴通讯股份有限公司 Hot-plug device information transmission method, computer device and readable medium
CN114070721A (en) * 2021-11-16 2022-02-18 中国联合网络通信集团有限公司 Method for determining module information, terminal and storage medium

Also Published As

Publication number Publication date
TW201943249A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN108738000A (en) Based on Android(Android)The bluetooth adaptation method and terminal device of system
US8370555B2 (en) Method and system for allowing a media player to determine if it supports the capabilities of an accessory
US8760265B2 (en) Remote control signal learning and processing by a host device and accessory
CN101452435B (en) USB terminal mode switching method and terminal
US20150100707A1 (en) Re-enumeration of usb 3.0 compatible devices
US8966138B2 (en) Communication between a host device and an accessory using multiple-endpoint identification
CN101950252A (en) USB data card self-starting method and system
CN101989205B (en) Software system upgrading method for universal serial bus (USB) equipment
CN101493799A (en) Information processing apparatus
EP2466480A1 (en) Dongle and method for operating external input means, and external input system with the dongle
EP1946526A1 (en) Near field communication host controller interface
CN103744821A (en) Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
KR20140019863A (en) Techniques for facilitating interoperation between an accessory and multiple devices
CN107770759A (en) Method for building up, device, storage medium and the mobile terminal of blue tooth voice link
CN105022297B (en) A kind of sound box parameter collocation method, mobile terminal
CN102148631B (en) Dismountable wireless communication module and its method started
CN103095913B (en) Dialing method and electronic device
CN106445516B (en) External radio trawl performance loading method and device
CN104202474A (en) Wireless time telling and photographing method
CN109542812A (en) Data communication control method, device and terminal device
CN103237359B (en) A kind of method and device connecting terminal
CN101754449B (en) Device and method for starting intelligent card
CN102403744B (en) Mobile phone charging circuit and charging method
CN110941968A (en) Processing method, device and system for integrated circuit card
US20030093642A1 (en) Systems and methods for controlling communication with nonvolatile memory devices

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
TA01 Transfer of patent application right

Effective date of registration: 20191219

Address after: No.1, Duhang 1st Road, Hsinchu City, Hsinchu Science Park, Taiwan, China

Applicant after: MediaTek.Inc

Address before: 1, 4th Floor, 26 Taiyuan Street, Zhubei City, Xinzhu County

Applicant before: MStar Semiconductor Co., Ltd.

TA01 Transfer of patent application right
WW01 Invention patent application withdrawn after publication

Application publication date: 20181102

WW01 Invention patent application withdrawn after publication