CN113099433A - Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers - Google Patents
Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers Download PDFInfo
- Publication number
- CN113099433A CN113099433A CN202110399088.9A CN202110399088A CN113099433A CN 113099433 A CN113099433 A CN 113099433A CN 202110399088 A CN202110399088 A CN 202110399088A CN 113099433 A CN113099433 A CN 113099433A
- Authority
- CN
- China
- Prior art keywords
- wifi
- bluetooth
- different manufacturers
- vendor
- vid
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000011161 development Methods 0.000 claims 1
- 230000018109 developmental process Effects 0.000 claims 1
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method for dynamically being compatible with WIFI and Bluetooth modules of different manufacturers based on an android system, and particularly relates to the technical field of being compatible with WIFI and Bluetooth modules of different manufacturers, wherein the technical scheme is as follows: the method comprises the following specific steps: s1, starting a teconfi in a system init.xxxx.rc to scan a usb bus on the equipment, and acquiring all VID/PID on the equipment; s2, reading a WIFI configuration file stored on a setting storage medium, and comparing the vid _ pid of the configured WIFI/BT module with the result of scanning of S1; s3, identifying a WIFI/Bluetooth module manufacturer according to the WIFI _ driver _ name, and setting wpa _ suppernant, libbt-driver.so and libblluetool.so of the WIFI/Bluetooth module to be loaded, wherein the WIFI/Bluetooth module manufacturer has the beneficial effects that: the invention can dynamically be compatible with WIFI/Bluetooth modules of different manufacturers in one system, so that the device can be compatible with WIFI/Bluetooth modules of different manufacturers and different models without changing software codes, thereby improving the software research and development efficiency and saving the software maintenance cost.
Description
Technical Field
The invention relates to the field of compatibility of WIFI and Bluetooth modules of different manufacturers, in particular to a dynamic method for compatibility of WIFI and Bluetooth modules of different manufacturers based on an android system.
Background
Android is a free and open source code operating system based on a Linux kernel, which is mainly used for mobile equipment, the Android operating system is developed by Andy Rubin at first, and mainly supports a mobile phone, Google purchases and invests capital in 8 months in 2005, in 11 months in 2007, Google and 84 hardware manufacturers, software developers and telecom operators build an open mobile phone alliance to jointly develop and improve the Android system, then Google issues source codes of Android in an authorization mode that Apache opens a source license, the first Android smart mobile phone is issued in 10 months in 2008, Android gradually expands to tablet computers and other fields, such as televisions, digital cameras, game machines, smart watches and the like, the first quarter in 2011, the world market share of Android exceeds the Saiban system for the first time in the world, the fourth quarter in 2013, the world market share of Android platform mobile phones reaches 78.1%, the world market share of Android platform mobile phones developed in 24 days in 2013 is up to 5 years of life, the number of devices worldwide that employ this system has reached 10 billion.
The prior art has the following defects: in the existing android system, especially in the field of flat panel display such as television projection, WIFI/bluetooth modules all realize the functions of WIFI and bluetooth in a mode of a solution + plug-in WIFI and bluetooth chips or modules, and many of the WIFI and bluetooth modules in the current market, such as 7668/7662 of mediatek and 8723/8822 of Realtek, drive different wpa _ suppernant and bluetooth protocols (appearing in the android system in the lines of libbt-vendor.
Therefore, it is necessary to provide a method for dynamically compatible with WIFI and bluetooth modules of different manufacturers based on the android system.
Disclosure of Invention
Therefore, the method for dynamically compatible WIFI and Bluetooth modules of different manufacturers based on the android system is used for realizing automatic loading and matching aiming at WIFI/Bluetooth modules of different types or models on the premise of not increasing product cost by providing a WIFI/Bluetooth driver for loading and automatically selecting wpa _ suppernants, libbt-drivers and libblluetools of different manufacturers, so that the problem of compatibility of WIFI and Bluetooth modules of different manufacturers on the premise of not increasing hardware cost in one system is solved.
In order to achieve the above purpose, the invention provides the following technical scheme: a method for dynamically compatible WIFI and Bluetooth modules of different manufacturers based on an android system comprises the following specific steps:
s1, starting a teconfi in a system init.xxxx.rc to scan a usb bus on the equipment, and acquiring all VID/PID on the equipment;
s2, reading a WIFI configuration file stored on a setting storage medium, and comparing the vid _ pid of the configured WIFI/BT module with the result of scanning of S1;
s3, identifying a WIFI/Bluetooth module manufacturer according to the WIFI _ vendor _ name, and setting wpa _ suppernant, libbt-vendor.so and libblluetool.so of the WIFI/Bluetooth module to be loaded;
and S4, loading the corresponding driver of the wifi/Bluetooth module by utilizing on property, vector, mtk, wifi and driver in init.
Preferably, if the differences are the same in S2, a wifi _ vector _ name corresponding to the vid _ pid may be obtained, and the attribute of the wifi _ vector _ name is set to the vector.
Preferably, in S3, the WIFI/bluetooth of Mediatek is pre-stored in the medium, and the WIFI/bluetooth of wpa _ super _ mtk libbt-vendor _ mtk.so libblluethoothmtk.so.
Preferably, in S1, the method further includes configuring a WIFI and bluetooth module before starting.
The invention has the beneficial effects that:
the invention can dynamically be compatible with WIFI/Bluetooth modules of different manufacturers in one system, so that the device can be compatible with WIFI/Bluetooth modules of different manufacturers and different models without changing software codes, thereby improving the software research and development efficiency and saving the software maintenance cost.
Drawings
FIG. 1 is a schematic flow chart provided by the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Referring to the attached drawing 1, the method for dynamically compatible with WIFI and Bluetooth modules of different manufacturers based on the android system provided by the invention comprises the following specific steps:
s1, starting a teconfi in a system init.xxxx.rc to scan a usb bus on the equipment, and acquiring all VID/PID on the equipment;
further, starting a teconfi program, accessing a USB file system (/ sys/bus/USB/devices), and reading PID and VID information of all devices on the USB through a specific program;
s2, reading a WIFI configuration file stored on a setting storage medium, obtaining and comparing the vid _ pid of a configured WIFI/BT module with the result obtained by scanning S1, if the vid _ pid is the same as the VID _ pid, obtaining a WIFI _ vendor _ name corresponding to the vid _ pid, and setting the attribute of the WIFI _ vendor _ name in the rop;
further, analyzing a wifi.cfg file stored in the vendor/etc/wifi/through a specific program, comparing the read PID and VID through the specific program with the VID _ PID preset on the equipment, and if the PID and VID are the same as the VID _ PID, saving the wifi _ vendor _ name to the vendor.mtk.wifi.driver of the system prop;
s3, identifying a WIFI/Bluetooth module manufacturer according to WIFI _ driver _ name, setting WIFI to be loaded, and setting wpa _ supplied and libbt-driver.so as to and libblluetool.so as to load/Bluetooth modules, wherein for example, WIFI/Bluetooth of Mediatek uses wpa _ supplied _ mtk libbt-driver _ mtk.so as to use WIFI/Bluetooth of reader-stored in a medium in advance, and uses wpa _ supplied _ rtk libbt-driver _ rtk.so as to load/bluetooth modules;
furthermore, wpa _ coupon _8_ lib provided by different manufacturers WIFI/BT are built into a system and are compiled into wpa _ coupon respectively, and then are renamed respectively, for example, the rename of media is wpa _ coupon _ mtk, the rename of media is built into the wpa _ coupon _8_ lib provided by Realtek is renamed into wpa _ coupon _ rtk compiled by the system and is stored into/vendor/bin/hw, wherein WIFI _ vendor _ name is analyzed through a specific program, in the example, only a vendor containing MT is considered as a mediatek, a vendor containing RTL is considered as a Realtek, and in some examples, a vendor can be added into a configuration file to distinguish the vendor;
if the WIFI/BT module is a WIFI/BT module of Mediatek, configuring wpa _ supplicant, libeluetoth.so-vendor.so as to use wpa _ supplicant _ mtk and libeluetoth mtk.so-library _ vendor _ mtk.so as to use wpa _ supplicant _ mtk and libeluetoth _ vendor _ mtk.so if the WIFI/BT module of Realtk, configuring wpa _ supplicant, libeluetoth.so-vendor.so as to use wpa _ supplicant _ rtk and libeluetoth _ rtk.so-library-vendor _ rtk.so as to use wpa _ supplicant _ rtk and libeluetoth _ rtk.so-library;
s4, loading the corresponding drive of the wifi/Bluetooth module by utilizing on property, namely, vector, mtk, wifi and driver in init.rc;
further, in init.mt5862.rc different wifi/bt modules and different configurations are launched in response to on property in the init program of the system.
Further, in S1, a WIFI and bluetooth module configuration system before starting is further included, specifically, the configuration system specifically includes the following steps:
step 1: the configuration file wifi.cfg of the wifi/bluetooth module contained in the system is edited, and the format of the example is as follows:
=====
wifi_vendor_name=MT7668STA
order=9
count_vid_pid=1
vid_pid=0x0e8d:0x7668
wlan_fast_connect=1
=====
wifi_vendor_name=RTL8822CU
order=11
count_vid_pid=2
vid_pid=0x0bda:0xc82e
vid_pid=0x0bda:0xc82c
wlan_fast_connect=0;
from the above, it can be seen that the VID _ PID represents the VID PID, the WIFI _ vendor _ name represents the WIFI/BT model, and we can know from the model that the 7668WIFI/BT module belongs to different vendors, such as MT7668STA represents Mediatek, RTL8822CU represents the 8822WIFI/BT module of RTL, and the VID _ PID can be obtained by lsusb (shell instruction);
step 2: compiling a plurality of WIFI/BT module drivers and storing the WIFI/BT module drivers into the vendor/lib/modules of the equipment, wherein the WIFI driver of RTL8822cu is 8822cu.ko, and the BT driver is rtk _ btusb.ko and is stored into the vendor/lib/modules of the equipment;
and step 3: the method comprises the steps that wpa _ submissions _8_ libs provided by WIFI/BTs of different manufacturers are built into a system and compiled to obtain wpa _ submissions respectively, and then renamed respectively, for example, the media is renamed to wpa _ submissions _ mtk, the wpa _ submissions _8_ libs provided by Realtek are built into the wpa _ submissions compiled by the system and are renamed to wpa _ submissions _ rtk, and the wpa _ submissions are stored in a/vendor/bin/hw/simultaneously;
and 4, step 4: putting a/system/BT protocol stack and a bdrid _ build cfg.h and a libbt-vendor provided by WIFI/BT of different manufacturers into a system to compile libbbelueton.so and libbt-vendor.so respectively, then naming the WIFI/BT of a Mediatek as libbbelueton _ rtm.so and libbt-vendor _ mtk.so.Realtek again, and storing the WIFI/BT of the Mediatek and libbbelt/vendor _ rtk.so respectively under the WIFI/BT protocol stack and the bdrid _ build cfg.h and libbt-vendor/lib;
and 5: at init.mt5862.rc, the corresponding module loader is added at the same time, as for example:
the using process of the invention is as follows: when the method is used, the teconfi is started in the init.xxxx.rc of the system to scan the usb bus on the equipment, and all VID/PID on the equipment are obtained;
reading a WIFI configuration file stored on a setting storage medium, obtaining and comparing the vid _ pid of a configured WIFI/BT module with the result obtained by scanning of S1, if the vid _ pid is the same as the VID _ pid, obtaining a WIFI _ vendor _ name corresponding to the vid _ pid, and setting the WIFI _ vendor _ name to the attribute of vendor.
Identifying a WIFI/Bluetooth module manufacturer according to WIFI _ driver _ name, setting to-be-loaded WIFI,/Bluetooth module wpa _ supplied and libbt-driver.so as to set the WIFI/Bluetooth module to be loaded, such as Mediatek WIFI/Bluetooth, using wpa _ supplied _ mtk libbt-driver _ mtk.so as to use libblluethoothmtk.so as to use wpa _ supplied _ rtk libbt-driver _ rtk.so as to set the WIFI/Bluetooth module to be loaded;
and loading the corresponding driver of the wifi/Bluetooth module by utilizing on property, a driver.
The above description is only a preferred embodiment of the present invention, and any person skilled in the art may modify the present invention or modify it into an equivalent technical solution by using the technical solution described above. Therefore, any simple modifications or equivalent substitutions made in accordance with the technical solution of the present invention are within the scope of the claims of the present invention.
Claims (4)
1. The utility model provides a method of compatible different producer's WIFI and bluetooth module of developments based on android system which characterized in that: the method comprises the following specific steps:
s1, starting a teconfi in a system init.xxxx.rc to scan a usb bus on the equipment, and acquiring all VID/PID on the equipment;
s2, reading a WIFI configuration file stored on a setting storage medium, and comparing the vid _ pid of the configured WIFI/BT module with the result of scanning of S1;
s3, identifying a WIFI/Bluetooth module manufacturer according to the WIFI _ vendor _ name, and setting wpa _ suppernant, libbt-vendor.so and libblluetool.so of the WIFI/Bluetooth module to be loaded;
and S4, loading the corresponding driver of the wifi/Bluetooth module by utilizing on property, vector, mtk, wifi and driver in init.
2. The android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers according to claim 1, comprising: if the differences are the same in S2, a wifi _ vector _ name corresponding to the vid _ pid may be obtained, and the attribute of the wifi _ vector _ name is set to the vector.
3. The android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers according to claim 1, comprising: in S3, for example, WIFI/bluetooth of Mediatek uses wpa _ super _ mtk libbt-vendor _ mtk. so WIFI/bluetooth of wpa _ super _ mtk. so WIFI/bluetooth stored in advance in the medium, and uses wpa _ super _ rtk libbt-vendor _ rtk. so WIFI/bluetooth stored in advance in the medium.
4. The android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers according to claim 1, comprising: and in the step S1, the system further comprises a WIFI and Bluetooth module configuration system before starting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110399088.9A CN113099433A (en) | 2021-04-14 | 2021-04-14 | Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110399088.9A CN113099433A (en) | 2021-04-14 | 2021-04-14 | Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113099433A true CN113099433A (en) | 2021-07-09 |
Family
ID=76677257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110399088.9A Pending CN113099433A (en) | 2021-04-14 | 2021-04-14 | Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113099433A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114490479A (en) * | 2022-02-17 | 2022-05-13 | 深圳市智微智能科技股份有限公司 | I2C device compatibility method, device, equipment and medium based on android system |
CN114595177A (en) * | 2022-02-23 | 2022-06-07 | 成都万创科技股份有限公司 | Multi-communication module based on android and compatible method thereof |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893038A (en) * | 2016-03-30 | 2016-08-24 | 大连理工大学 | Method for porting android Bluetooth protocol stack to Mint17 system |
CN106452847A (en) * | 2016-09-21 | 2017-02-22 | 广州视源电子科技股份有限公司 | Intelligent identification method and device for WIFI equipment |
CN109451472A (en) * | 2018-10-08 | 2019-03-08 | 四川长虹电器股份有限公司 | The dynamic management approach of more Bluetooth chips on Android smart machine |
CN109951860A (en) * | 2017-12-21 | 2019-06-28 | 深圳Tcl新技术有限公司 | A kind of method, smart television and storage medium obtaining WIFI information |
CN109947482A (en) * | 2017-12-21 | 2019-06-28 | 深圳Tcl新技术有限公司 | A kind of loading method of USB device, storage medium and smart television |
WO2019127476A1 (en) * | 2017-12-29 | 2019-07-04 | 深圳前海达闼云端智能科技有限公司 | Virtual system bluetooth communication method and device, virtual system, storage medium, and electronic apparatus |
CN111427617A (en) * | 2019-01-09 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Data processing method, device and equipment |
-
2021
- 2021-04-14 CN CN202110399088.9A patent/CN113099433A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893038A (en) * | 2016-03-30 | 2016-08-24 | 大连理工大学 | Method for porting android Bluetooth protocol stack to Mint17 system |
CN106452847A (en) * | 2016-09-21 | 2017-02-22 | 广州视源电子科技股份有限公司 | Intelligent identification method and device for WIFI equipment |
CN109951860A (en) * | 2017-12-21 | 2019-06-28 | 深圳Tcl新技术有限公司 | A kind of method, smart television and storage medium obtaining WIFI information |
CN109947482A (en) * | 2017-12-21 | 2019-06-28 | 深圳Tcl新技术有限公司 | A kind of loading method of USB device, storage medium and smart television |
WO2019127476A1 (en) * | 2017-12-29 | 2019-07-04 | 深圳前海达闼云端智能科技有限公司 | Virtual system bluetooth communication method and device, virtual system, storage medium, and electronic apparatus |
CN109451472A (en) * | 2018-10-08 | 2019-03-08 | 四川长虹电器股份有限公司 | The dynamic management approach of more Bluetooth chips on Android smart machine |
CN111427617A (en) * | 2019-01-09 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Data processing method, device and equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114490479A (en) * | 2022-02-17 | 2022-05-13 | 深圳市智微智能科技股份有限公司 | I2C device compatibility method, device, equipment and medium based on android system |
CN114595177A (en) * | 2022-02-23 | 2022-06-07 | 成都万创科技股份有限公司 | Multi-communication module based on android and compatible method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020001112A1 (en) | Application method for platform supporting multiple types of devices, and mobile terminal | |
CN104991793A (en) | Method, device and system used for application program subpackage | |
CN105378689B (en) | Method and apparatus for unified Extensible Firmware Interface (UEFI) driver and agreement | |
US20120254831A1 (en) | Supporting hardware configuration changes in a uefi firmware component | |
CN103853586B (en) | Method of realizing wireless card driver in UEFI (unified extensible firmware interface) layer | |
US20160162272A1 (en) | Method and apparatus for loading a rendering engine | |
CN113099433A (en) | Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers | |
US9148775B2 (en) | Multivariant mobile operating system configuration | |
CN101938566B (en) | Visual terminal debugging method and device | |
CN101350990B (en) | Method for updating CP of intelligent mobile phone | |
US20060136880A1 (en) | System, apparatus and methods for automatic program translation | |
CN107704282B (en) | Loading method and device applied to embedded system | |
CN104267981A (en) | Method and device for loading application layout on desktop | |
CN103365682A (en) | Information handling device and information handling method | |
CN113157345A (en) | Automatic starting method and device for front-end engineering | |
CN110221840B (en) | Function implementation method and device of application program, equipment and storage medium | |
CN107423291B (en) | Data translation method and client device | |
CN111596951A (en) | Method and device for configuring engineering file | |
CN115437700A (en) | Method, device, system and medium for automatically configuring hardware resources of driver | |
US20240078072A1 (en) | Method and apparatus for displaying message box, terminal device and non-transitory computer-readable storage medium | |
CN114816491A (en) | System upgrading method and device for multi-system mobile terminal and terminal | |
CN110032390B (en) | Method for realizing multi-model co-upgrade package, storage medium and intelligent terminal | |
CN107291637A (en) | The method and apparatus of compatible polytypic mobile communication module in Android system | |
US20210011703A1 (en) | System for Improved Evaluation of Semiconductor Hardware and Corresponding Method | |
JP6001199B2 (en) | Method for automatic conversion of package for taizen installation of android application and computer-readable recording medium therefor |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210709 |