[go: up one dir, main page]

CN105592491B - The method that the ap mode and P2P mode of double WIFI modules coexist - Google Patents

The method that the ap mode and P2P mode of double WIFI modules coexist Download PDF

Info

Publication number
CN105592491B
CN105592491B CN201510619726.8A CN201510619726A CN105592491B CN 105592491 B CN105592491 B CN 105592491B CN 201510619726 A CN201510619726 A CN 201510619726A CN 105592491 B CN105592491 B CN 105592491B
Authority
CN
China
Prior art keywords
mode
wifi module
address
module
dnsmasq
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.)
Expired - Fee Related
Application number
CN201510619726.8A
Other languages
Chinese (zh)
Other versions
CN105592491A (en
Inventor
陈东海
王会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Meibeike Technology Co Ltd
Original Assignee
Shenzhen Meibeike Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Meibeike Technology Co Ltd filed Critical Shenzhen Meibeike Technology Co Ltd
Priority to CN201510619726.8A priority Critical patent/CN105592491B/en
Publication of CN105592491A publication Critical patent/CN105592491A/en
Application granted granted Critical
Publication of CN105592491B publication Critical patent/CN105592491B/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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices
    • H04W88/10Access point devices adapted for operation in multiple networks, e.g. multi-mode access points

Landscapes

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

Abstract

The present invention provides the methods that the ap mode of double WIFI module Android devices and P2P mode coexist, it include: setting P2P mode WIFI and ap mode WIFI, load respectively driving, create wlan0 be P2P mode WIFI as station when network node, and set network node of the p2p0 as P2P when, network node of the wlan1 as ap mode is created, and creates wlan3 node;The IP address of ap mode is set as 192.168.X.0/24, the IP address of p2p mode is 192.168.Y.0/24;Modify android system backstage in open dnsmasq module code, and delete in android system backstage open Miracast unit when close dnsmasq module operation;The configuration for modifying dnsmasq module, is configured to the IP address in the wlan1 distribution region 192.168.X.2-192.168.X.254, and is configured to the IP address in the P2P distribution region 192.168.Y.2-192.168.Y.254;Ap mode can be operated together with p2p mode.The beneficial effect for implementing technical solution of the present invention is to realize that Miracast function can normally can be used in the case where double wifi, realizes that the ap mode and P2P mode under android system coexist.

Description

The method that the ap mode and P2P mode of double WIFI modules coexist
Technical field
Present invention application household smart machine field, double WIFI module Android devices especially in domestic intelligent equipment Ap mode and the method that coexists of P2P mode.
Background technique
Universal with domestic intelligent equipment, home network intelligent product trend is more significant and universal, multiple intelligence Equipment can be easily achieved the communications such as the shared, control of family by same household WIFI, in consideration of it, one kind occur has double WIFI The domestic intelligent equipment of module, except through WIFI connection internet outside, can also be realized by second WIFI module it is shared, The communication such as control, such as domestic 204258839 U of patent CN provide a kind of intelligence with double WIFI modules and Ethernet interface Home terminal, comprising: the first WIFI module, for mobile terminal it is wireless between communicate wirelessly;2nd WIFI module, For being communicated wirelessly between wireless router;Ethernet interface, for being connect with wireless router;HDMI interface, is used for It is connect with display terminal to show content that mobile terminal is pushed by the first WIFI module;Control unit, with the first WIFI mould Block, the 2nd WIFI module, Ethernet interface are connected with HDMI interface.However double WIFI are present in same equipment, can exist mutual It mutually interferes or is that function setting unsmooth causes can not work normally.
In household smart machine field, with the set of Android set-top box and Intelligent routing, in certain manufacturers in order to More costs are saved, router chip is abandoned, realize routing function using two wifi in android system merely, however Due to the mode for not having AP+P2P to coexist in Android default mode, is realizing the Miracast in this scheme, must solve AP the and P2P coexistence problems of Android.
Summary of the invention
The function of realizing in view of the interface that system provides is limited, solves 1. when ap mode and P2P mode coexist, such as What can normally be searched connection;It is to pass through 2. realizing that ap mode and P2P mode distribute address problem by Dnsmasq simultaneously What following technical solution was realized.
The method that the ap mode and P2P mode of double WIFI module Android devices coexist characterized by comprising
S1. it is P2P mode WIFI module that the first WIFI module, which is arranged, while loading P2P mode activated, and creation wlan0 is Network node when P2P mode WIFI module is as station, and set network node of the p2p0 as P2P when
S2. it is ap mode WIFI module that the second WIFI module, which is arranged, while loading the driving of ap mode WIFI module, creation Network node of the wlan1 as ap mode, and create wlan3 node;
S3. the IP address of ap mode WIFI module is set as 192.168.X.0/24, sets the IP of P2P mode WIFI module Address is 192.168.Y.0/24;
S4. the code for opening dnsmasq module in android system backstage is modified, and is deleted in android system backstage Open Miracast unit when close dnsmasq module operation;
S5. modify dnsmasq module configuration, be configured to wlan1 distribution 192.168.X.2-192.168.X.254 this The IP address in a region, and it is configured to the address in the p2p0 distribution region 192.168.Y.2-192.168.Y.254;
S6. ap mode WIFI module and p2p mode WIFI module are operated together, and can be respectively different mode Network interface card distributes different addresses.
In the present invention, the IP address of ap mode WIFI module is set as 192.168.X.0/24, and wherein X is in 1 to 254 Any one natural number, set the IP address of P2P mode WIFI module as 192.168.Y.0/24, wherein Y is different from X Any one of 1 to 254 natural numbers.
The beneficial effect for implementing technical solution of the present invention is that realize can be normal in the case where double wifi Using Miracast function, realize that the ap mode and P2P mode under android system coexist.
Detailed description of the invention
Fig. 1 is the flow chart element of the ap mode of double WIFI module Android devices of the invention and method that P2P mode coexists Figure.
Fig. 2 is the P2P mode WIFI drive load flow diagram of a specific embodiment of the invention.
Fig. 3 is the ap mode WIFI drive load flow diagram of a specific embodiment of the invention.
Fig. 4 is that the dnsmasq of a specific embodiment of the invention is that P2P mode and ap mode distribute IP address flow diagram.
Specific embodiment
The embodiment of the present invention is described in detail below in conjunction with attached drawing, but the present invention can be defined by the claims Implement with the multitude of different ways of covering.
As shown in Figure 1, Fig. 1 is the process of the ap mode of double WIFI module Android devices and method that P2P mode coexists Block diagram, in household Android smart machine, which is provided with the first WIFI module and the second WIFI module, including following Step:
S1. it is P2P mode WIFI module that the first WIFI module, which is arranged, while loading P2P mode activated, and creation wlan0 is Network node when P2P mode WIFI module is as station, and set network node of the p2p0 as P2P when
S2. it is ap mode WIFI module that the second WIFI module, which is arranged, while loading the driving of ap mode WIFI module, creation Network node of the wlan1 as ap mode, and create wlan3 node;
S3. the IP address of ap mode WIFI module is set as 192.168.43.0/24, sets P2P mode WIFI module IP address is 192.168.49.0/24;
S4. after node creates successfully, the code that dnsmasq module is opened in android system backstage is modified, and delete In android system backstage open Miracast unit when close dnsmasq module operation;
S5. the configuration for modifying dnsmasq module is configured to wlan1 distribution 192.168.43.2-192.168.43.254 The IP address in this region, and it is configured to the address in the p2p0 distribution region 192.168.49.2-192.168.49.254;
S6. ap mode can be operated together with p2p mode, and can be respectively that different network interface cards distributes different ground Location.
It according to Fig. 1, is illustrated in conjunction with specific embodiments of the present invention, as described in Fig. 2 and Fig. 3, Fig. 2 and Fig. 3 are respectively The WIFI of P2P mode WIFI drive load flow diagram and ap mode WIFI drive load flow diagram, load P2P mode drives Dynamic, creation carries out the fundamental node wlan0 of STA, then creates an additional node wlan3, so that android system can be with area Two WIFI modules are separated, and create node wlan1 for ap mode WIFI.
In the previous step, load P2P mode WIFI driving, creation wlan0 be the WIFI module be station when The network node of time, and set network node of the p2p0 as P2P when;The drive of ap mode WIFI module is loaded simultaneously It is dynamic, network node of the wlan1 as ap mode is created, and create wlan3 node, when avoiding using P2P, system can not Find the node of P2P mode WIFI module and caused by conflict.
In the present embodiment, after node creates successfully, the IP address of default ap mode is 192.168.43.0/24, The IP address of P2P mode is set as 192.168.49.0/24.
As shown in figure 4, the dnsmasq that Fig. 4 is a specific embodiment of the invention is that P2P mode and ap mode distribute IP address Flow diagram after the IP address for setting ap mode and P2P mode, can be operated normally in ap mode WIFI at this time, be opened Miracast can also normally create p2p node, but also normally can not distribute IP respectively for two mode WIFI modules.
In order to use the function of P2P mode WIFI module, default opens WIFI module, start the service of Miracast into Journey, carries out the broadcast and search of the information of equipment, client connecting node, and modification Android opens on backstage the generation of dnsmasq Code deletes the operation that the part dnsmasq is closed when Android opens Miracast.So that close Miracast when Time does not turn off dnsmasq, and it is 192.168.43.2- that we, which can configure dnsmasq address pool distribution address, And 192.168.49.2-192.168.49.254 192.168.43.254.
When discovering device connection, it is if checked that modification Android default, which opens dnsmasq process, Dnsmasq, which has already turned on, to be no longer configured, and dnsmasq is no longer reopened, when closing Miracast service not Dnsmasq is turned off, can support ap mode WIFI module and P2P mode WIFI module while distributing IP.
Ap mode WIFI module can coexist with P2P mode WIFI module at this time, and can be respectively different Network interface card distributes different addresses, so that being independent of each other under double WIFI modes can work normally.
These are only the preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art For member, the invention may be variously modified and varied.All within the spirits and principles of the present invention, it is made it is any modification, Equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (2)

1. the method that the ap mode and P2P mode of pair WIFI module coexist characterized by comprising
S1. it is P2P mode WIFI module that the first WIFI module, which is arranged, while loading the driving of P2P mode WIFI module, creation Wlan0 be P2P mode WIFI module as station when network node, and set network section of the p2p0 as P2P when Point;
S2. it is ap mode WIFI module that the second WIFI module, which is arranged, while loading the driving of ap mode WIFI module, creates wlan1 As the network node of ap mode WIFI module, and create wlan3 node;
S3. after node creates successfully, the IP address of default ap mode WIFI module is 192.168.X.0/24, and is set The IP address of P2P mode WIFI module is 192.168.Y.0/24;
S4. the code for opening dnsmasq module in android system backstage is modified, and deletes and is opened in android system backstage Miracast unit when close dnsmasq module operation;
S5. the configuration for modifying dnsmasq module is configured to the wlan1 distribution region 192.168.X.2-192.168.X.254 IP address, and it is configured to the IP address in the p2p0 distribution region 192.168.Y.2-192.168.Y.254;
S6. ap mode WIFI module and P2P mode WIFI module are operated together, and setting Dnsmasq module is respectively different mode Network interface card distribute different addresses.
2. the method according to claim 1, wherein set the IP address of ap mode WIFI module as 192.168.X.0/24, wherein X is any one of 2 to 254 natural numbers, set the IP address of P2P mode WIFI module as 192.168.Y.0/24 wherein Y is any one of 2 to 254 natural numbers different from X.
CN201510619726.8A 2015-09-25 2015-09-25 The method that the ap mode and P2P mode of double WIFI modules coexist Expired - Fee Related CN105592491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510619726.8A CN105592491B (en) 2015-09-25 2015-09-25 The method that the ap mode and P2P mode of double WIFI modules coexist

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510619726.8A CN105592491B (en) 2015-09-25 2015-09-25 The method that the ap mode and P2P mode of double WIFI modules coexist

Publications (2)

Publication Number Publication Date
CN105592491A CN105592491A (en) 2016-05-18
CN105592491B true CN105592491B (en) 2018-12-04

Family

ID=55931612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510619726.8A Expired - Fee Related CN105592491B (en) 2015-09-25 2015-09-25 The method that the ap mode and P2P mode of double WIFI modules coexist

Country Status (1)

Country Link
CN (1) CN105592491B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116471709A (en) * 2023-04-27 2023-07-21 深圳康佳电子科技有限公司 A self-adaptive dual Wi-Fi configuration method, device, display terminal and storage medium

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898795B (en) * 2016-03-28 2021-11-16 联想(北京)有限公司 Method for realizing dual-mode coexistence on WIFI chip and electronic equipment
JP6700972B2 (en) * 2016-05-23 2020-05-27 キヤノン株式会社 Communication device, control method, and program
CN106412940B (en) * 2016-11-15 2021-01-26 北京小米移动软件有限公司 Method and device for creating wireless local area subnet and method and device for accessing network
CN107332971B (en) * 2017-05-19 2020-08-28 海信视像科技股份有限公司 Method and device for controlling wireless display of intelligent display equipment
CN107205238B (en) * 2017-06-21 2020-08-14 福州汇思博信息技术有限公司 Method and terminal for realizing WIFI probe in android system
CN107454615B (en) * 2017-07-19 2020-05-19 中国移动通信集团福建有限公司 A set-top box dual wifi control method
CN109219072A (en) * 2018-11-09 2019-01-15 浙江国自机器人技术有限公司 WIFI data transmission failure localization method, system, controller and storage medium
CN109803454B (en) * 2019-02-12 2021-09-21 Oppo广东移动通信有限公司 Data transmission control method and related product
CN109640310B (en) * 2019-02-12 2021-07-06 Oppo广东移动通信有限公司 Data transmission control method and related product
CN109673001A (en) * 2019-02-12 2019-04-23 Oppo广东移动通信有限公司 Data transfer control method and Related product
CN110430592B (en) * 2019-08-30 2022-10-28 Oppo广东移动通信有限公司 Network control method and related product
CN114025410A (en) * 2020-01-08 2022-02-08 华为技术有限公司 Method and device for establishing network connection and electronic equipment
CN111200877B (en) * 2020-03-12 2022-12-20 深圳康佳电子科技有限公司 Network connection method, terminal and storage medium
CN112511875A (en) * 2020-11-20 2021-03-16 四川长虹电器股份有限公司 Method for sharing WIFI on Android-based smart television
CN115314856B (en) * 2021-05-06 2025-03-21 上海擎感智能科技有限公司 Electronic device connection method, connection device, electronic device, medium and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561172A (en) * 2013-10-31 2014-02-05 福州瑞芯微电子有限公司 Method and system for supporting multiple WIFI modules in Android system
CN103702175A (en) * 2013-12-28 2014-04-02 珠海全志科技股份有限公司 Multi-screen interactive method and multi-screen interactive device
CN104717684A (en) * 2015-03-30 2015-06-17 福州瑞芯微电子有限公司 WIFI mode virtual co-existence method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7873710B2 (en) * 2007-02-06 2011-01-18 5O9, Inc. Contextual data communication platform
US9635112B2 (en) * 2013-05-02 2017-04-25 Intel Corporation Apparatus, system and method of managing an application service platform (ASP) session

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561172A (en) * 2013-10-31 2014-02-05 福州瑞芯微电子有限公司 Method and system for supporting multiple WIFI modules in Android system
CN103702175A (en) * 2013-12-28 2014-04-02 珠海全志科技股份有限公司 Multi-screen interactive method and multi-screen interactive device
CN104717684A (en) * 2015-03-30 2015-06-17 福州瑞芯微电子有限公司 WIFI mode virtual co-existence method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116471709A (en) * 2023-04-27 2023-07-21 深圳康佳电子科技有限公司 A self-adaptive dual Wi-Fi configuration method, device, display terminal and storage medium
CN116471709B (en) * 2023-04-27 2025-10-03 深圳康佳电子科技有限公司 Adaptive dual Wi-Fi configuration method, device, display terminal and storage medium

Also Published As

Publication number Publication date
CN105592491A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN105592491B (en) The method that the ap mode and P2P mode of double WIFI modules coexist
CN102802059B (en) The method of configuration machine top box, Apparatus and system
US20160323689A1 (en) Zero-touch wi-fi
CN103841626A (en) Internet of Things wireless terminal, configuration method thereof and mobile terminal
CN105245427A (en) Multi-Internet of Things cloud platform terminal access and control system based on bus adaption
US12041690B2 (en) Method and device for initialization between user equipment and universal integrated circuit card in wireless communication system
CN104243616A (en) Wi-Fi (wireless fidelity) communication based cloud air conditioner system
CN105635943A (en) Data interaction method based on low power consumption Bluetooth technology and beacon device and beacon data interaction device applying the method
CN103412547B (en) A kind of method utilizing hand-held remote control terminal control intelligent domestic system
CN105610866A (en) System and method for automatically accessing intelligent equipment to home wireless local area network
EP4029223A1 (en) User interface for configuring device-specific iot applications
CN205721123U (en) A kind of intelligent home control system of decentration
CN105450767A (en) Network connection method and apparatus for intelligent device and intelligent device
CN105933992A (en) Sensor wireless data gateway application system
EP4029338A1 (en) Coordinated and distributed frequency separation during coexisting communication
CN101600215A (en) Method, the Apparatus and system of configuration relaying
CN102694814B (en) Have the high-definition video player of wireless networking capabilities and WAP (wireless access point) function concurrently
KR101620260B1 (en) Network system and a method controlling the same
CN103051738B (en) A kind of dhcp address distribution method and system
CN105373085A (en) Smart household system taking mobile terminal as control end
CN110933015A (en) Data transmission method, device and system
CN102945592A (en) Household appliance remote control system and method based on mobile intelligent device
CN105005241A (en) Multi-point touch control system and device based on intelligent terminal
CN104519061A (en) Message forwarding method, device and system
US12341858B1 (en) Dynamic cable operator plant discovery

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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

Granted publication date: 20181204

Termination date: 20190925

CF01 Termination of patent right due to non-payment of annual fee