CN107454615A - A kind of double wifi control methods of set top box - Google Patents

A kind of double wifi control methods of set top box Download PDF

Info

Publication number
CN107454615A
CN107454615A CN201710592530.3A CN201710592530A CN107454615A CN 107454615 A CN107454615 A CN 107454615A CN 201710592530 A CN201710592530 A CN 201710592530A CN 107454615 A CN107454615 A CN 107454615A
Authority
CN
China
Prior art keywords
focus
wifi
wireless network
top box
set top
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.)
Granted
Application number
CN201710592530.3A
Other languages
Chinese (zh)
Other versions
CN107454615B (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.)
China Mobile Group Fujian Co Ltd
Fujian Newland Communication Science Technology Co Ltd
Original Assignee
China Mobile Group Fujian Co Ltd
Fujian Newland Communication Science 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 China Mobile Group Fujian Co Ltd, Fujian Newland Communication Science Technology Co Ltd filed Critical China Mobile Group Fujian Co Ltd
Priority to CN201710592530.3A priority Critical patent/CN107454615B/en
Publication of CN107454615A publication Critical patent/CN107454615A/en
Application granted granted Critical
Publication of CN107454615B publication Critical patent/CN107454615B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

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

Abstract

The present invention provides a kind of set top box double wifi control methods, including:Two wireless network cards are integrated on the hardware frame of set top box, and the driver of two wireless network cards is compiled into inner nuclear layer;Set top box starts wifi services and opens one of wireless network card for data communication in opening initialization, while starts a focus script in init.rc to open another wireless network card, and the wireless network card is arranged into ap functions by focus script;System layer shields original java focus interface, and addition one sets switch for starting the focus of focus script in system setting in the case of the control for retaining the wireless network card to being originally used for data communication.Advantage of the present invention:It can be achieved to support two wireless network cards to work simultaneously, and make the two Each performs its own functions, be independent of each other, i.e., in actual use, can be achieved to open communicate wifi functions and focus function simultaneously, to meet more scene use demands.

Description

A kind of double wifi control methods of set top box
Technical field
The present invention relates to set top box communication field, the double wifi control methods of more particularly to a kind of set top box.
Background technology
With the continuous development of set-top box technique, Intelligent set top box has been increasingly by a kind of product of favor in market .So-called Intelligent set top box, refer to the set top box for being equipped with Android system (android4.0.4), it is traditional except possessing TV kit function, can also realize on computer institute it is functional, including browse webpage, see a film, see TV, listen music, chat QQ, Play the functions such as game.
Although Most current Intelligent set top box all carries wireless interface module, due to original soft in android Part does not support to open communication wifi functions and focus function simultaneously, and it is logical that this make it that existing Intelligent set top box can only also be supported to open Believe one in wifi functions and focus function, and can not realize while open communication wifi functions and focus function, this is also Actual use brings many inconvenience.
The content of the invention
The technical problem to be solved in the present invention, it is to provide a kind of set top box double wifi control methods, passes through the controlling party Communication wifi functions and focus function are realized while opened to method, can be actual use bring great convenience.
What the present invention was realized in:A kind of double wifi control methods of set top box, methods described comprise the following steps:
Step 1, two wireless network cards are integrated on the hardware frame of set top box, and by the driver of two wireless network cards It is compiled into inner nuclear layer;
Step 2, set top box start the one of wireless network card of wifi service openings and led to for data in opening initialization Letter;Start a focus script in init.rc simultaneously to open another wireless network card, and it is by focus script that this is wireless Network card setup is into ap functions;
In the case of the control for retaining the wireless network card to being originally used for data communication, shielding is original for step 3, system layer Java focus interface, and addition one is used for the focus setting switch for starting focus script in system setting.
Further, the step 1 is specially:
Two wireless network cards, including data wifi modules and focus wifi modules are integrated on the hardware frame of set top box, And by driving layer that the driver of the data wifi modules and focus wifi modules is compiled into inner nuclear layer, and the number According to wifi modules and focus wifi modules each have for identify manufacturer's information, inner nuclear layer in load driver program, Current wifi hardware resources are first detected, then driver and are initialized according to corresponding to being found manufacturer's information.
Further, the manufacturer's information includes manufacturer id and product id.
Further, the data wifi modules use AP6356S modules, and the focus wifi modules use RTL8188 Module.
Further, it is described " to start the one of wireless network card of wifi service openings and be used for data in the step 2 Communication " is specially:Start wifi services and open data wifi, enter hardware abstraction layer by framework layers, taken out in hardware Give tacit consent to as layer and open data wifi modules for data communication, and according to the manufacturer's information of data wifi modules come from inner nuclear layer Driver corresponding to calling.
Further, it is described " to start a focus script in init.rc to open another nothing in the step 2 Gauze card, and the wireless network card is arranged to by ap functions by focus script " be specially:
Start a focus script in init.rc, in the focus script, to make by way of setting and routeing State focus wifi modules and walk the communication mode different from the data wifi modules, and start the network that focus wifi modules are set Parameter, and call the focus process being built into system that focus wifi modules are arranged into ap functions, while current ap is set Cipher mode and password, and by obtaining the mac address informations of focus wifi modules come the title for setting current ap;Heat Point process driver according to corresponding to the manufacturer's information of focus wifi modules is called from inner nuclear layer.
Further, the network parameter includes mac addresses, ip addresses, gateway address and dns server address.
The invention has the advantages that:It can be realized by this pair of wifi control method and support two wireless network card (data Wifi modules and focus wifi modules) work simultaneously, and make the two Each performs its own functions, be independent of each other, i.e., can be real in actual use Communication wifi functions and focus function are now opened simultaneously, to meet more scene use demands.
Brief description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is a kind of execution flow chart of the double wifi control methods of set top box of the present invention.
Fig. 2 is the hardware block diagram of the present invention.
Fig. 3 is the theory diagram that double wifi communications are realized in the present invention.
Embodiment
It refer to shown in Fig. 1 to Fig. 3, a kind of preferred embodiment of the double wifi control methods of set top box of the present invention, the side Method comprises the following steps:
Step 1, two wireless network cards are integrated on the hardware frame of set top box, and by the driver of two wireless network cards It is compiled into inner nuclear layer;
Step 2, set top box start the one of wireless network card of wifi service openings and led to for data in opening initialization Letter;Start a focus script in init.rc simultaneously to open another wireless network card, and it is by focus script that this is wireless Network card setup is into ap functions;
In the case of the control for retaining the wireless network card to being originally used for data communication, shielding is original for step 3, system layer Java focus interface, to prevent from unintentionally using the wireless network card to communicate for data as focus, and in system setting The focus that addition one is used to start focus script sets switch.So, in the specific implementation, open and be used in being set in system During the data wifi of data communication, it will give tacit consent to and walk the data wifi flows that original Android system carries;And work as and set in system Put it is middle open for start focus script focus set switch when, focus script will be directly invoked, due to this focus pin Originally it is an independent android framework, therefore ap (focus) function can be directly realized by.
The step 1 is specially:
Two wireless network cards, including data wifi modules and focus wifi modules are integrated on the hardware frame of set top box, Data wifi modules and focus wifi modules communicate to connect with the master chip in top-set hardware framework, and by driving layer The driver of the data wifi modules and focus wifi modules is compiled into inner nuclear layer, and the data wifi modules and Focus wifi modules each have the manufacturer's information for identifying, inner nuclear layer first detects currently in load driver program Wifi hardware resources, then driver and initialized according to corresponding to being found manufacturer's information.The manufacturer's information includes factory Business id and product id.
The data wifi modules use AP6356S modules, and the focus wifi modules use RTL8188 modules.
In the step 2, described " start wifi services and open one of wireless network card for data communication " is specific For:
Start wifi services (WifiService, this is the service come with itself in Android system) and open number According to wifi, hardware abstraction layer HAL is entered by framework layers, acquiescence opens data wifi moulds in hardware abstraction layer HAL Group is used for into row data communication, and drives journey according to corresponding to the manufacturer's information of data wifi modules come the calling from inner nuclear layer Sequence.By after opening data wifi modules, it is possible to realize that the access of wireless network (realizes the network of whole set top box The input of data flow, including video request program and data upload, download etc.), while plug-in bluetooth equipment can be also supported, such as bluetooth Remote control, Bluetooth gamepad etc..
In the step 2, described " start a focus script in init.rc to open another wireless network card, and The wireless network card is arranged to by ap functions by focus script " be specially:
Start a focus script (soft.sh) in init.rc, when implementing, init.rc can first initialize focus pin This, then runs focus script, in the focus script, walks the focus wifi modules by way of setting and routeing The communication mode different from the data wifi modules, and start the network parameter that focus wifi modules are set, and built in calling (i.e. softapbin processes, the softapbin processes are mainly used in setting focus wifi modules focus process into system Into ap functions) focus wifi modules are arranged to ap (focus) function, while current ap cipher mode and password are set, and By obtaining the mac address informations of focus wifi modules come the title for setting current ap;Focus process is according to focus wifi The manufacturer's information of module called from inner nuclear layer corresponding to driver.By after opening focus wifi modules, it is possible to The focus that focus wifi modules are used for the peripheral hardwares (not shown) such as mobile phone, flat board connects, and is directly realized by function of surfing the Net, and logical The throwing screen and distant control function of mobile phone can also be realized by crossing the throwing screen software of installation customization.
The network parameter includes mac addresses, ip addresses, gateway address and dns server address.
In a word, it can be realized by double wifi control methods of the invention and support two wireless network cards (data wifi modules and heat Point wifi modules) work simultaneously, and make the two Each performs its own functions, be independent of each other, i.e., in actual use, can be achieved to open simultaneously logical Wifi functions and focus function are believed, to meet more scene use demands.For example, user can both pass through set top box at home Data wifi modules realize the access of wireless network, to realize that video request program, data upload, the function such as download;Meanwhile again may be used Screen and distant control function are thrown to realize using the ap of mobile phone connection focus wifi modules, this can be that actual use brings great side Just.
Although the foregoing describing the embodiment of the present invention, those familiar with the art should manage Solution, the specific embodiment described by us are merely exemplary, rather than for the restriction to the scope of the present invention, are familiar with this The equivalent modification and change that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's In scope of the claimed protection.

Claims (7)

  1. A kind of 1. double wifi control methods of set top box, it is characterised in that:Methods described comprises the following steps:
    Step 1, two wireless network cards are integrated on the hardware frame of set top box, and the driver of two wireless network cards is compiled Into inner nuclear layer;
    Step 2, set top box start wifi services and open one of wireless network card for data communication in opening initialization; Start a focus script in init.rc simultaneously to open another wireless network card, and by focus script by the wireless network Card is arranged to ap functions;
    Step 3, system layer shield original java in the case of the control for retaining the wireless network card to being originally used for data communication Focus interface, and system setting in addition one be used for start focus script focus set switch.
  2. A kind of 2. double wifi control methods of set top box according to claim 1, it is characterised in that:The step 1 is specially:
    Two wireless network cards, including data wifi modules and focus wifi modules are integrated on the hardware frame of set top box, and is led to The driver of the data wifi modules and focus wifi modules is compiled into inner nuclear layer by layer of overdriving, and the data Wifi modules and focus wifi modules each have the manufacturer's information for identifying, inner nuclear layer is in load driver program, first Current wifi hardware resources are detected, then driver and are initialized according to corresponding to being found manufacturer's information.
  3. A kind of 3. double wifi control methods of set top box according to claim 2, it is characterised in that:The manufacturer's information includes Manufacturer id and product id.
  4. A kind of 4. double wifi control methods of set top box according to claim 2, it is characterised in that:The data wifi modules Using AP6356S modules, the focus wifi modules use RTL8188 modules.
  5. A kind of 5. double wifi control methods of set top box according to claim 2, it is characterised in that:In the step 2, institute Stating " start wifi services and open one of wireless network card for data communication " is specially:Start wifi services and open data Wifi, hardware abstraction layer is entered by framework layers, giving tacit consent to opening data wifi modules in hardware abstraction layer is used for data Communication, and the driver according to corresponding to the manufacturer's information of data wifi modules come the calling from inner nuclear layer.
  6. A kind of 6. double wifi control methods of set top box according to claim 2, it is characterised in that:In the step 2, institute State " start a focus script in init.rc to open another wireless network card, and by focus script by the wireless network card It is arranged to ap functions " be specially:
    Start a focus script in init.rc, in the focus script, make the heat by way of setting and routeing Point wifi modules walk the communication mode different from the data wifi modules, and start the network ginseng for setting focus wifi modules Number, and call the focus process being built into system that focus wifi modules are arranged into ap functions, while set current ap's Cipher mode and password, and by obtaining the mac address informations of focus wifi modules come the title for setting current ap;Focus Process driver according to corresponding to the manufacturer's information of focus wifi modules is called from inner nuclear layer.
  7. A kind of 7. double wifi control methods of set top box according to claim 6, it is characterised in that:The network parameter includes Mac addresses, ip addresses, gateway address and dns server address.
CN201710592530.3A 2017-07-19 2017-07-19 Set top box double-wifi control method Expired - Fee Related CN107454615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710592530.3A CN107454615B (en) 2017-07-19 2017-07-19 Set top box double-wifi control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710592530.3A CN107454615B (en) 2017-07-19 2017-07-19 Set top box double-wifi control method

Publications (2)

Publication Number Publication Date
CN107454615A true CN107454615A (en) 2017-12-08
CN107454615B CN107454615B (en) 2020-05-19

Family

ID=60487858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710592530.3A Expired - Fee Related CN107454615B (en) 2017-07-19 2017-07-19 Set top box double-wifi control method

Country Status (1)

Country Link
CN (1) CN107454615B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510766A (en) * 2018-12-13 2019-03-22 深圳市鼎泰富科技有限公司 Dynamic routing method and system under a kind of intelligent terminal multiple-network connection environment
CN110430604A (en) * 2019-08-02 2019-11-08 深圳市康冠商用科技有限公司 A kind of network control method, system and electronic equipment and storage medium
CN111294857A (en) * 2019-03-25 2020-06-16 深圳市鸿合创新信息技术有限责任公司 Intelligent display screen, control method, storage medium and electronic equipment
CN112311411A (en) * 2020-12-03 2021-02-02 南京南方电讯有限公司 Equipment and office system capable of simultaneously using WIFI and hotspot functions
CN113242564A (en) * 2021-07-12 2021-08-10 广州朗国电子科技股份有限公司 Method for simultaneous working of STA and AP of single WIFI module and related equipment
CN113938721A (en) * 2021-11-24 2022-01-14 航天欧华信息技术有限公司 Android system-based dual-WiFi platform and control method thereof
CN115134654A (en) * 2022-06-28 2022-09-30 深圳创维-Rgb电子有限公司 Screen projection method, screen projection equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001029978A1 (en) * 1999-10-20 2001-04-26 Maxim Integrated Products, Inc. High linearity fm demod for a 4fsk wlan transceiver
CN202873086U (en) * 2012-10-31 2013-04-10 上海斐讯数据通信技术有限公司 Wireless double-frequency AP (Access Point)
CN204258839U (en) * 2014-12-25 2015-04-08 深圳市美贝壳科技有限公司 There is the intelligent household terminal of two WIFI module and Ethernet interface
CN105592491A (en) * 2015-09-25 2016-05-18 深圳市美贝壳科技有限公司 Method for coexistence of AP mode and P2P mode of dual-WIFI module
US20170026929A1 (en) * 2015-07-21 2017-01-26 Symbol Technologies, Llc Wireless local area network coverage hole detection using mobile communication devices
CN106455139A (en) * 2016-11-18 2017-02-22 广州视源电子科技股份有限公司 Method, device and system for simultaneously operating WiFi modules in dual modes

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001029978A1 (en) * 1999-10-20 2001-04-26 Maxim Integrated Products, Inc. High linearity fm demod for a 4fsk wlan transceiver
CN202873086U (en) * 2012-10-31 2013-04-10 上海斐讯数据通信技术有限公司 Wireless double-frequency AP (Access Point)
CN204258839U (en) * 2014-12-25 2015-04-08 深圳市美贝壳科技有限公司 There is the intelligent household terminal of two WIFI module and Ethernet interface
US20170026929A1 (en) * 2015-07-21 2017-01-26 Symbol Technologies, Llc Wireless local area network coverage hole detection using mobile communication devices
CN105592491A (en) * 2015-09-25 2016-05-18 深圳市美贝壳科技有限公司 Method for coexistence of AP mode and P2P mode of dual-WIFI module
CN106455139A (en) * 2016-11-18 2017-02-22 广州视源电子科技股份有限公司 Method, device and system for simultaneously operating WiFi modules in dual modes

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘加海: "驱动模块的静态编译进内核", 《嵌入式系统设计与实践 LINUX篇》 *
周立功: "使用内核模块和驱动", 《嵌入式LINUX开发教程 上》 *
周立功: "在脚本文件中加载和使用驱动模块", 《 嵌入式LINUX开发教程 上》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510766A (en) * 2018-12-13 2019-03-22 深圳市鼎泰富科技有限公司 Dynamic routing method and system under a kind of intelligent terminal multiple-network connection environment
CN111294857A (en) * 2019-03-25 2020-06-16 深圳市鸿合创新信息技术有限责任公司 Intelligent display screen, control method, storage medium and electronic equipment
CN111294857B (en) * 2019-03-25 2023-09-12 深圳市鸿合创新信息技术有限责任公司 Intelligent display screen, control method, storage medium and electronic equipment
CN110430604A (en) * 2019-08-02 2019-11-08 深圳市康冠商用科技有限公司 A kind of network control method, system and electronic equipment and storage medium
CN110430604B (en) * 2019-08-02 2022-03-25 深圳市康冠商用科技有限公司 Network control method, system, electronic equipment and storage medium
CN112311411A (en) * 2020-12-03 2021-02-02 南京南方电讯有限公司 Equipment and office system capable of simultaneously using WIFI and hotspot functions
CN113242564A (en) * 2021-07-12 2021-08-10 广州朗国电子科技股份有限公司 Method for simultaneous working of STA and AP of single WIFI module and related equipment
CN113242564B (en) * 2021-07-12 2021-11-05 广州朗国电子科技股份有限公司 Method for simultaneous working of STA and AP of single WIFI module and related equipment
CN113938721A (en) * 2021-11-24 2022-01-14 航天欧华信息技术有限公司 Android system-based dual-WiFi platform and control method thereof
CN115134654A (en) * 2022-06-28 2022-09-30 深圳创维-Rgb电子有限公司 Screen projection method, screen projection equipment and computer readable storage medium
CN115134654B (en) * 2022-06-28 2024-05-31 深圳创维-Rgb电子有限公司 Screen projection method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN107454615B (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN107454615A (en) A kind of double wifi control methods of set top box
EP3826359A1 (en) Radio access network information processing method and device, network element, and storage medium
CN105656500B (en) Mobile terminal and communication means
US9043936B2 (en) Communications device
CN107040914A (en) The system that multiple services are provided by mobile network using multiple international mobile subscriber identifiers
CN111480350A (en) Method and equipment for data access of embedded SIM card
WO2020207043A1 (en) Base station switching-on method and apparatus, computer storage medium, and device
CN108055575B (en) Network video sharing system based on simulated screen projection for community
WO2015009045A1 (en) Media based authentication and authorization for secure services
CN109165499A (en) Single-point logging method, mobile terminal and computer readable storage medium
CN104753989B (en) Screen image transmission playback method based on Web-based OS running environment and device
CN106664676A (en) Apparatus and method for providing a service connection through access layer in wireless communication system
WO2015051705A1 (en) Multi-apn concurrent method and system thereof for supporting android application program of handheld device
CN106331055B (en) Identifier generating means and method
CN112671571B (en) Network slice selection method, device, equipment and storage medium
CN105722189A (en) Control method and device of data network
US20230208669A1 (en) Smart Device Provisioning
CN106789470A (en) terminal resource sharing method, device and system
CN105847421A (en) Device communication method, apparatus, server and system
CN110247849A (en) The update method and device of URSP
CN106792823A (en) A kind of terminal connection method and device based on Miracast
CN113553048A (en) Low-code fusion communication integrated system
CN103079241B (en) A kind of method, system and central apparatus realizing business switching
CN108401081A (en) A kind of VOLTE network performance test methods and device
CN114514764A (en) Apparatus, method and computer program

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200519