CN110535826A - Wireless networking method, device, computer equipment and storage medium - Google Patents

Wireless networking method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110535826A
CN110535826A CN201910640634.6A CN201910640634A CN110535826A CN 110535826 A CN110535826 A CN 110535826A CN 201910640634 A CN201910640634 A CN 201910640634A CN 110535826 A CN110535826 A CN 110535826A
Authority
CN
China
Prior art keywords
equipment
network interface
network
interface card
mesh
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
CN201910640634.6A
Other languages
Chinese (zh)
Other versions
CN110535826B (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201910640634.6A priority Critical patent/CN110535826B/en
Publication of CN110535826A publication Critical patent/CN110535826A/en
Application granted granted Critical
Publication of CN110535826B publication Critical patent/CN110535826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

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

Abstract

The present invention relates to a kind of wireless networking method, device, computer equipment and storage mediums.This method comprises: whether each second equipment supports netted Mesh agreement in the first equipment detection wireless network;The second equipment for not supporting Mesh agreement if it exists then starts the first network interface card of the first equipment, establishes the first equipment and does not support the wireless network connection between the second equipment of Mesh agreement;Judge whether the first equipment has gateway capacity;If there is the first equipment gateway capacity to establish the wireless network connection between each second equipment according to the second network interface card of the first network interface card and the first equipment, and regularly send broadcast message in the wireless network.Above-mentioned first equipment includes at least two network interface cards, the network protocol that different network interface cards is supported is different, illustrate that the configuration of at least two network modes may be implemented in the first equipment, at least two different network protocols can be compatible with by being equivalent to, so improving the compatibility of the wireless network.

Description

Wireless networking method, device, computer equipment and storage medium
Technical field
This application involves wireless video monitoring technical fields more particularly to a kind of wireless networking method, device, computer to set Standby and storage medium.
Background technique
Wireless Mesh netword is a kind of wireless wideband access network technology being rapidly developed in recent years, does not need base It the infrastructure such as stands, but utilizes the wireless multi-hop network of distributed thought building dynamic self-organization, allow in the network coverage User in range can carry out high-speed radio access to internet at any time and any place.
Existing wireless mesh network (multi-hop, Mesh) is mainly made of two kinds of network nodes: Mesh router and Mesh terminal.Wherein Mesh router also has and supports other than gateway or relay function with traditional wireless router The routing function of Mesh network interconnection.In wireless mesh network, wireless backbone is constituted by Mesh interconnection of routers, this nothing Line backbone network passes through gateway Mesh router and external network therein again, as Internet is connected.Mesh terminal also has one Fixed Mesh network interconnects and packet forwarding, and interconnection may be constructed a small-sized ad hoc communications network between Mesh terminal.
But in practical applications, the poor compatibility of above-mentioned Mesh network, and then popularization and application is low.In addition, existing The Mesh network-building method problem poor there is also flexibility.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide one kind flexibly, and the wireless networking side that compatibility is strong Method, device, computer equipment and storage medium.
In a first aspect, a kind of wireless networking method, which comprises
Whether each second equipment supports netted Mesh agreement in first equipment detection wireless network;First equipment includes at least Two network interface cards, the network protocol that different network interface cards is supported are different;
The second equipment for not supporting Mesh agreement if it exists then starts the first network interface card of the first equipment, establishes the first equipment With do not support Mesh agreement the second equipment between wireless network connection;First network interface card supports the association in addition to Mesh agreement View;
Judge whether the first equipment has gateway capacity;
If there is the first equipment gateway capacity to establish each second according to the second network interface card of the first network interface card and the first equipment Wireless network connection between equipment, and broadcast message is regularly sent in the wireless network;Broadcast message is for notifying first to set It is standby that there is gateway capacity;Second network interface card supports Mesh agreement.
In one of the embodiments, according to the second network interface card of the first network interface card and the first equipment, establish each second equipment it Between wireless network connection, comprising:
First network interface card and the second network interface card will be supported the wireless network of Mesh agreement and do not supported by bridge pass-through mode The wireless network of Mesh agreement is bound;
Establish the wireless network connection between each second equipment.
The network mode that the first network interface card is supported in one of the embodiments, is wireless terminal STA mode;Second network interface card branch The network mode held is wireless mesh network Mesh mode.
Judge whether the first equipment has gateway capacity in one of the embodiments, comprising:
It monitors the first equipment and does not support the signal strength between the second equipment of Mesh agreement;
If signal strength be greater than preset strength threshold value, monitor the first equipment with do not support Mesh agreement the second equipment it Between bit stream state, and judge whether the first equipment has gateway capacity according to bit stream state.
Bit stream state includes that code stream sends delay time in one of the embodiments, according to the bit stream State judges whether the first equipment has gateway capacity, comprising:
Judge that code stream sends whether delay time is less than predetermined time delay;
If code stream sends delay time and is less than predetermined time delay, it is determined that the first equipment has gateway capacity.
If code stream sends delay time more than or equal to predetermined time delay in one of the embodiments, it is determined that the One equipment does not have gateway capacity, and closes the second network interface card of the first equipment.
If signal strength is less than or equal to preset strength threshold value in one of the embodiments, it is determined that the first equipment is not With gateway capacity, and close the second network interface card of the first equipment.
If the first equipment, which detects, in one of the embodiments, has support netted Mesh agreement the in wireless network Two equipment, then the second network interface card for starting the first equipment are established Mesh network with the first equipment and are connect.
Second aspect, a kind of wireless networking arrangement, described device include:
Whether detection module supports netted Mesh agreement for each second equipment in the first equipment detection wireless network;Institute Stating the first equipment includes at least two network interface cards, and the network protocol that different network interface cards is supported is different;
First link block, for starting first equipment when there is the second equipment for not supporting Mesh agreement First network interface card establishes the wireless network connection between first equipment and second equipment for not supporting Mesh agreement;Institute State agreement of the first network interface card support in addition to the Mesh agreement;
Judgment module, for judging whether first equipment has gateway capacity;
Second link block, for when first equipment has gateway capacity, according to first network interface card and described Second network interface card of the first equipment establishes the wireless network connection between each second equipment, and fixed in the wireless network When send broadcast message;The broadcast message is for notifying first equipment to have gateway capacity;Second network interface card is supported The Mesh agreement.
The third aspect, a kind of computer equipment, including memory and processor, the memory are stored with computer journey Sequence, the processor realize wireless networking method described in first aspect any embodiment when executing the computer program.
Fourth aspect, a kind of computer readable storage medium are stored thereon with computer program, the computer program quilt Wireless networking method described in first aspect any embodiment is realized when processor executes.
A kind of wireless networking method, device, computer equipment and storage medium provided by the present application, comprising: include: first Whether each second equipment supports netted Mesh agreement in equipment detection wireless network;The second of Mesh agreement is not supported to set if it exists It is standby, then start the first network interface card of the first equipment, establishes the first equipment and do not support wireless between the second equipment of Mesh agreement Network connection;Judge whether the first equipment has gateway capacity;If the first equipment has gateway capacity, according to the first network interface card and Second network interface card of the first equipment establishes the wireless network connection between each second equipment, and regularly sends in the wireless network wide Broadcast message.Above-mentioned first equipment includes at least two network interface cards, and the network protocol that different network interface cards is supported is different;First network interface card is supported Agreement in addition to Mesh agreement;Second network interface card supports Mesh agreement, that is, illustrates that at least two networks may be implemented in the first equipment The configuration of mode, at least two different network protocols can be compatible with by being equivalent to, and in the present embodiment, the first equipment can be both It can support Mesh agreement, can also support the agreement in addition to Mesh agreement, therefore, in practical applications, if wireless network It is middle to there is the equipment for not supporting Mesh agreement, for example, average family router, is established wireless by above-mentioned wireless networking method Network can be compatible with all types of equipment for not supporting Mesh agreement, improve the compatibility of the wireless network, and then improve The popularization and application of the wireless network.In addition, in above-mentioned wireless networking method, the first equipment can be by judging itself No to choose whether that the gateway in wireless network is become with gateway capacity, then other equipment in wireless network can lead to It crosses the gateway and realizes interconnection, such wireless networking method can be according to the gateway in business demand dynamic adjustment wireless network Several and gateway location, greatly improves the communication efficiency of each node in the flexibility and wireless network of wireless network.
Detailed description of the invention
Fig. 1 is a kind of application system structural schematic diagram that one embodiment provides;
Fig. 2 is a kind of flow chart for wireless networking method that one embodiment provides;
Fig. 3 is the flow chart of another implementation of S104 in Fig. 2 embodiment;
Fig. 4 is a kind of flow chart for wireless networking method that one embodiment provides;
Fig. 5 is the flow chart of another implementation of S303 in Fig. 4 embodiment;
Fig. 6 is a kind of schematic diagram for wireless networking application system that one embodiment provides;
Fig. 7 is a kind of flow chart for wireless networking method that one embodiment provides;
Fig. 8 is a kind of structural schematic diagram for wireless networking arrangement that one embodiment provides;
Fig. 9 is a kind of structural schematic diagram for wireless networking arrangement that one embodiment provides;
Figure 10 is a kind of structural schematic diagram for wireless networking arrangement that one embodiment provides;
Figure 11 is a kind of structural schematic diagram for wireless networking arrangement that one embodiment provides;
Figure 12 is a kind of schematic diagram of internal structure for computer equipment that one embodiment provides.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, and do not have to In restriction the application.
Wireless networking method provided by the present application can be applied in application system as shown in Figure 1, wherein partially set Standby 102 can be communicated by wireless network with router 104, and equipment component 102 realizes equipment 102 by router 104 Between communication, equipment component 102 can be communicated by wireless network.Above equipment 102 can be, but not limited to be various It monitoring device, electronic equipment, PC device, laptop, smart phone, tablet computer and portable wearable sets It is standby to wait the equipment or instrument with network savvy.Router 104 may include office router, home router, profession formulation Router etc. is various types of routers.With no restrictions to this this implementation.
Embodiment will be passed through below and in conjunction with attached drawing specifically to the technical side of the technical solution of the application and the application How case, which solves above-mentioned technical problem, is described in detail.These specific embodiments can be combined with each other below, for phase Same or similar concept or process may repeat no more in certain embodiments.
Fig. 2 is a kind of flow chart for wireless networking method that one embodiment provides, and the executing subject of this method is in Fig. 1 An equipment 102, i.e., the first equipment in the present embodiment, this method what is involved is the first equipment by dynamic adjust and configuration Different network modes carries out the detailed process of flexible networking.As shown in Fig. 2, this method specifically includes the following steps:
Whether each second equipment supports netted Mesh agreement in S101, the first equipment detection wireless network;First equipment packet At least two network interface cards are included, the network protocol that different network interface cards is supported is different.
Wherein, netted Mesh agreement is a kind of agreement for being applied to wireless mesh network (multi-hop) framework, is used for The communication connection of each node in Mesh network.First equipment can be, but not limited to be various monitoring devices, electronic equipment, personal meter Calculate the equipment with network savvy such as machine equipment, laptop, smart phone, tablet computer and portable wearable device. For example, first equipment can be a kind of network monitoring device, i.e. (IP Camera, IPC) monitoring device.In the present embodiment Multiple network interface cards can be set in first equipment, used for the connection between heterogeneous networks.Different network interface cards supports different nets Network agreement.For example, Mesh agreement, WLAN protocol etc. can be supported.Second equipment can be identical with the type of the first equipment, can also With different with the type of the first equipment, if the second equipment is specifically as follows various types of when type difference with the first equipment Router.
In the present embodiment, when the first equipment on each node in wireless network starts networking, it is necessary first to which detection should Whether each second equipment supports that Mesh agreement, specific detection method include two kinds in wireless network: first method is actively Detection pattern, i.e. the first equipment active transmission probe request (Probe Request), scanning probe in the wireless network each Second equipment, then each second equipment, can be to the first equipment feedback acknowledgement frame (Probe after receiving the probe request ), Response the first equipment further can determine whether each second equipment is supported according to the acknowledgement frame of each second equipment Mesh agreement;Second method is passive detection mode, the i.e. beacon frame that each second equipment of the first equipment timing acquisition is sent (Beacon), and by each beacon frame determine whether each second equipment supports Mesh agreement.Certainly, the first equipment can also pass through Whether each second equipment supports netted Mesh agreement in other detection method detection wireless networks, as long as can accurately be examined Result is surveyed, with no restrictions to this present embodiment.
S102, the second equipment for not supporting Mesh agreement if it exists, then start the first network interface card of the first equipment, establish first Wireless network connection between equipment and the second equipment for not supporting Mesh agreement;First network interface card is supported in addition to Mesh agreement Agreement.
Wherein, the first network interface card of the first equipment can support the agreement in addition to Mesh agreement, for example, WLAN protocol, it can For being communicatively coupled with the Wi-Fi in addition to Mesh network.For example, if the first network interface card supports WLAN (Wireless Local Area Network, WLAN) agreement, then the first equipment can pass through the first network interface card of starting and common family Front yard router is communicatively coupled, and forms wlan network.The present embodiment what is involved is the first equipment detection around wireless network When, detect the case where some second equipment in the wireless network does not support Mesh agreement, in this case, the first equipment Mesh connection cannot be carried out with second equipment, but can star the first network interface card of the first equipment and second equipment carries out it The connection of its type network.If the first equipment can pass through the first net as the first network interface card supports WLAN protocol in above-mentioned example The wlan network that card is established between second equipment connects.
S103, judge whether the first equipment has gateway capacity.
The first equipment in the present embodiment can have gateway capacity, specifically can be true according to network environment or service conditions It is fixed itself whether to need to become gateway, it is carried out wireless communication to realize with equipment each in wireless network.The present embodiment is by sentencing Whether each first equipment in disconnected wireless network has gateway capacity, and can be adjusted flexibly in wireless network becomes the quantity of gateway And position, and then realize the building form of adaptive dynamic adjustment wireless network, it (is set with improving each node in wireless network It is standby) between communication efficiency.
If S104, the first equipment have gateway capacity, according to the second network interface card of the first network interface card and the first equipment, establish each Wireless network connection between second equipment, and broadcast message is regularly sent in the wireless network;Broadcast message is for notifying the One equipment has gateway capacity;Second network interface card supports the Mesh agreement.
When the first equipment determines that itself has gateway capacity, it is equivalent to the first equipment and determines that itself can be used as gateway holds The function of row gateway, at this point, the first equipment can be with specific reference to the second network interface card of the first network interface card and the first equipment, it is established that each Wireless network connection between two equipment, a plurality of types of networks can be compatible with, make each second equipment in wireless network it Between can carry out accessible communication, first equipment as gateway can also be passed through and realize each second equipment and hardware store Server connection, to realize the video got in each second equipment of normal storage or other data.
A kind of wireless networking method provided by the above embodiment, comprising: each second sets in the first equipment detection wireless network It is standby whether to support netted Mesh agreement;The second equipment for not supporting Mesh agreement if it exists then starts the first net of the first equipment Card establishes the first equipment and does not support the wireless network connection between the second equipment of Mesh agreement;Whether judge the first equipment With gateway capacity;If the first equipment has gateway capacity, according to the second network interface card of the first network interface card and the first equipment, establish each Wireless network connection between second equipment, and broadcast message is regularly sent in the wireless network.Above-mentioned first equipment includes extremely Few two network interface cards, the network protocol that different network interface cards is supported are different;First network interface card supports the agreement in addition to Mesh agreement;Second Network interface card supports Mesh agreement, that is, illustrates that the configuration of at least two network modes may be implemented in the first equipment, being equivalent to can be compatible with At least two different network protocols, and in the present embodiment, the first equipment can both support Mesh agreement, can also prop up The agreement in addition to Mesh agreement is held, therefore, in practical applications, does not support setting for Mesh agreement if existing in wireless network It is standby, for example, average family router, the wireless network established by above-mentioned wireless networking method can be compatible with it is all types of not The equipment for supporting Mesh agreement, improves the compatibility of the wireless network, and then improve the popularization and application of the wireless network. In addition, the first equipment can be by judging whether itself there is gateway capacity to choose whether energy in above-mentioned wireless networking method Enough become the gateway in wireless network, then other equipment in wireless network can be realized by the gateway and be interconnected, such Wireless networking method can adjust gateway number and gateway location in wireless network according to network environment or business demand dynamic, Greatly improve the communication efficiency of each node in the flexibility and wireless network of wireless network.
Fig. 3 is the flow chart of another implementation of S104 in Fig. 2 embodiment, as shown in figure 3, " root in above-mentioned S104 According to the second network interface card of the first network interface card and the first equipment, the wireless network connection between each second equipment is established ", comprising:
S201, the first network interface card and the second network interface card will be supported the wireless network of Mesh agreement and do not propped up by bridge pass-through mode The wireless network for holding Mesh agreement is bound.
Wherein, bridge is for converting the data format supported in different network protocol, so that different type network In equipment can carry out being in communication with each other connection.This example demonstrates that be support Mesh agreement wireless network and do not support The detailed process that the wireless network of Mesh agreement is bound and interconnected by bridge, exemplary illustration process: the first equipment Start the first network interface card, the data of each second equipment transmission in the wireless network for not supporting Mesh agreement is received, then by the data It is sent to bridge, bridge converts the format that the data meet Mesh agreement, the data hair after then again converting format The first equipment is given, at this point, the first equipment restarts the second network interface card, the data after receiving format conversion, and after format is converted Data be sent to each second equipment in the wireless network for supporting Mesh agreement, the above process completes different types of nothing The data transmission and communication connection of each equipment in gauze network.
S202, wireless network connection between each second equipment is established.
When the step of the first equipment is based on S201, completes to support the wireless network of Mesh agreement and do not support Mesh agreement After the binding of wireless network, that is, complete the communication connection in the first equipment and wireless network between each second equipment.
Above-described embodiment is realized by the first network interface card and the second network interface card and supports the wireless network of Mesh agreement and do not support The binding of the wireless network of Mesh agreement, and then the compatibility of the Wi-Fi is improved, it is compatible with the wireless network more The data communication of seed type network overcomes traditional Mesh network because being only capable of and supports single type network communication, and cannot be compatible with Most of routing device, thus caused by network popularization and application it is weak the problem of, therefore, wireless networking method of the invention The popularization and application of wireless network can be improved.
In a kind of application environment, the network mode that the first network interface card and the second network interface card in above-mentioned first equipment are supported is not Together, specifically, the network mode that the first network interface card is supported is wireless terminal STA mode;The network mode that second network interface card is supported is nothing Line mesh network Mesh mode.
STA mode is a kind of mode of accessing terminal to network each in the wireless network, and the STA mode in the present embodiment is The communication network between each node in wireless network is wlan network.Mesh mode is that a kind of terminal each in the wireless network connects Enter the mode of network, the Mesh mode in the present embodiment is that the communication network between each node in wireless network is Mesh net Network.First network interface card supports STA mode, that is, the first equipment can be carried out by each equipment in the first network interface card and wlan network Communication connection;Second network interface card supports Mesh mode, that is, the first equipment can be by each in the first network interface card and Mesh network Equipment is communicatively coupled.
It is found that the first equipment may have gateway capacity as described in Fig. 2 embodiment, in practical applications, the first equipment can To judge whether itself has gateway capacity, the application by conditions such as network environment, business demand, network data transmission states Provide it is a kind of judge whether the first equipment has the method for gateway capacity, as shown in figure 4, specifically including:
Signal strength between S301, the first equipment of monitoring and the second equipment for not supporting Mesh agreement.
When the step of the first equipment is based on aforementioned S102 starts the first network interface card, establishes and the first equipment and do not support Mesh agreement The second equipment between wireless network connection after, the first equipment can be further monitored on the first network interface card and is not supported Signal strength between second equipment of Mesh agreement, so as to detect the first equipment with do not support Mesh agreement the second equipment it Between network connection situation.For example, the first equipment can monitor RSSI value, the height of the RSSI value can indicate the first equipment with The height of the signal strength between the second equipment of Mesh agreement is not supported.
If S302, signal strength are greater than preset strength threshold value, S303 is thened follow the steps, if signal strength is less than or equal to preset Intensity threshold thens follow the steps S304.
Wherein, preset strength threshold value can be determined according to practical application request, with no restrictions to this present embodiment.If signal Intensity is greater than preset strength threshold value, then illustrates the first equipment and do not support the network connection ratio between the second equipment of Mesh agreement More stable, the first equipment at this time can be used as the candidate device of gateway;If signal strength is less than or equal to preset strength threshold value, Illustrate the first equipment and does not support that the network connection between the second equipment of Mesh agreement is not very stable, the first equipment at this time It cannot function as gateway.
Bit stream state between S303, the first equipment of monitoring and the second equipment for not supporting Mesh agreement, and according to Bit stream state judges whether the first equipment has gateway capacity.
What is involved is the first equipment to detect on the first network interface card and the first equipment and do not support Mesh agreement for the present embodiment The stronger situation of signal strength between second equipment, in the case, the first equipment also need by detection the first equipment with The bit stream state between the second equipment of Mesh agreement is not supported, to further judge according to bit stream state Whether one equipment has gateway capacity.Above-mentioned bit stream state indicates the first equipment and does not support the second equipment of Mesh agreement Between data transmission state, can specifically include code stream send delay time, the bit error rate of code stream, the transmission rate of code stream Deng.
S304, it determines that the first equipment does not have gateway capacity, and closes the second network interface card of the first equipment.
What is involved is the first equipment to detect on the first network interface card and the first equipment and do not support Mesh agreement for the present embodiment The weaker situation of signal strength between second equipment, in the case, the first equipment can't be gateway, so needing to close The second network interface card thereon, so that the Mesh of the second equipment and the first equipment of respectively supporting Mesh agreement in wireless network be blocked to connect It connects.
Fig. 5 is the flow chart of another implementation of S303 in Fig. 4 embodiment, as shown in figure 5, in above-mentioned S303 " judging whether the first equipment has gateway capacity according to bit stream state ", comprising:
S401, judge that code stream sends whether delay time is less than predetermined time delay.
If the bit stream state in above-mentioned S303 includes that code stream sends delay time, judged according to bit stream state Whether the first equipment has a gateway capacity, i.e., judges whether the first equipment has gateway energy to send delay time according to code stream Power, therefore, what is involved is send delay time according to code stream judge the first equipment and do not support the of Mesh agreement for the present embodiment The step of data transmission state between two equipment.
If S402, code stream send delay time and be less than predetermined time delay, S403 is thened follow the steps, if code stream sends delay Time is greater than or equal to predetermined time delay, thens follow the steps S404.
The present embodiment is the specific implementation process of above-mentioned S401 judgment step: if code stream sends delay time and is less than default prolong The slow time then illustrates the first equipment and does not support the data transmission ratio between the second equipment of Mesh agreement more stable, is transmitted across The problem of influencing data transmission there is no obstruction etc. in journey;If code stream sends delay time more than or equal to pre-set delay Between, then illustrate the first equipment and does not support that the data transmission between the second equipment of Mesh agreement is not very stable, transmission process In may have occurred obstruction etc. influence data transmission the problem of.Above-mentioned predetermined time delay can be true according to practical application request It is fixed, with no restrictions to this present embodiment.
S403, determine that the first equipment has gateway capacity.
What is involved is the first equipment to detect on the first network interface card and the first equipment and do not support Mesh agreement for the present embodiment Signal strength between second equipment is stronger, and the situation that data transmission ratio is more stable, and in the case, the first equipment has net Pass ability, the gateway that can be used as in wireless network use.
S404, it determines that the first equipment does not have gateway capacity, and closes the second network interface card of the first equipment.
What is involved is the first equipment to detect on the first network interface card and the first equipment and do not support Mesh agreement for the present embodiment Signal strength between second equipment is stronger, and data transmit unstable situation, and in the case, the first equipment does not have net Pass ability is only used as the ordinary node in wireless network.
Above-described embodiment indicates the ginseng of network environment by signal strength and bit stream state etc. in detection wireless network Number, determines whether the first equipment in wireless network has gateway capacity, and first equipment for being re-used as gateway is realized not The interconnection of same type network, such method allow wireless network according to real network connection status and network data transmission The quantity of gateway and position, make each section in wireless network in the adjustment wireless network of state or practical business demand adaptively The selection data transmission link that equipment on point can optimize, greatly improve in the wireless network on each node equipment it Between communication efficiency.
Above-mentioned all embodiments are all to detect to exist in Wi-Fi in the first equipment not supporting netted Mesh agreement The case where second equipment, under a kind of application environment, if the first equipment, which detects in wireless network to exist, supports netted Mesh association Second equipment of view then starts the second network interface card of the first equipment and the second equipment of netted Mesh agreement is supported to establish Mesh network Connection.What is involved is the first equipment to pass through each second equipment of support Mesh agreement in the second network interface card and wireless network for the present embodiment The process being interconnected forms Mesh network.
In summary all embodiments, a kind of wireless networking method of exemplary illustration, the wireless networking method can be applied In application system as shown in FIG. 6, it is assumed that the router in figure is average family router, and includes two kinds in each monitoring device The network interface card of type, i.e. the first network interface card and the second network interface card, the network mode that the first network interface card is supported are wireless terminal STA mode;Second The network mode that network interface card is supported is wireless mesh network Mesh mode, as shown in fig. 7, the wireless networking method includes:
S501, monitoring device 2 detect whether each equipment in wireless network supports Mesh agreement, do not support Mesh to assist if it exists The equipment (being assumed to be the router in figure) of view, thens follow the steps S502, supports the equipment of Mesh agreement (to be assumed to be figure if it exists In other monitoring devices), then follow the steps S509.
S502, the first network interface card for starting monitoring device 2, establish the wireless network connection between monitoring device 2 and router.
Signal strength between S503, monitoring equipment 2 and router, if signal strength is greater than preset strength threshold value, S504 is thened follow the steps, if signal strength is less than or equal to preset strength threshold value, thens follow the steps S508.
Code stream between S504, monitoring equipment 2 and router sends delay time, if code stream transmission delay time is small In predetermined time delay, S505 is thened follow the steps, if code stream sends delay time and is greater than or equal to predetermined time delay, is executed Step S508.
S505, determine that monitoring device 2 has gateway capacity.
S506, the first network interface card of monitoring device 2 and the second network interface card pass through bridge pass-through mode for router network and Mesh Network is bound, and the wireless network connection between monitoring device 2 and router and other equipment is established.
S507, broadcast message is regularly sent in the wireless network, inform that other monitoring of tools equipment 2 have gateway capacity.
S508, it determines that monitoring device 2 does not have gateway capacity, and closes the second network interface card of monitoring device 2.
S509, the second network interface card for starting monitoring device 2 are established Mesh network with the equipment for supporting netted Mesh agreement and are connect.
The wireless network obtained by above-mentioned wireless networking method, as shown in fig. 6, monitoring device 2 in the wireless network, Monitoring device 3, monitoring device 5, monitoring device 7 can be used as gateway, monitoring device 1, monitoring device 4, monitoring device 6, monitoring Equipment 8 is directly connect with above-mentioned gateway as Mesh node, forms Mesh network, and router directly connect shape with above-mentioned each gateway At wlan network, router connects hardware storage device, may be implemented to store in the wireless network and regards on each monitoring device (1-8) The storage and processing of frequency evidence or other data.
It should be understood that although each step in the flow chart of Fig. 2-5, Fig. 7 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 2-5, Fig. 7 At least part step may include multiple sub-steps perhaps these sub-steps of multiple stages or stage be not necessarily Synchronization executes completion, but can execute at different times, and the execution sequence in these sub-steps or stage also need not It is so successively to carry out.
In one embodiment, as shown in figure 8, providing a kind of wireless networking arrangement, comprising: detection module 11, first Link block 12, judgment module 13 and the second link block 14, in which:
Whether detection module 11 supports netted Mesh agreement for each second equipment in the first equipment detection wireless network; First equipment includes at least two network interface cards, and the network protocol that different network interface cards is supported is different;
First link block 12, for when there is the second equipment for not supporting Mesh agreement, the of the first equipment of starting One network interface card establishes the first equipment and does not support the wireless network connection between the second equipment of Mesh agreement;First network interface card is supported Agreement in addition to Mesh agreement;
Judgment module 13, for judging whether the first equipment has gateway capacity;
Second link block 14, for when the first equipment has gateway capacity, according to the first network interface card and the first equipment Second network interface card establishes the wireless network connection between each second equipment, and regularly sends broadcast message in the wireless network;Broadcast Message is for notifying the first equipment to have gateway capacity;Second network interface card supports Mesh agreement.
In one of the embodiments, as shown in figure 9, above-mentioned apparatus further include:
Third link block 15, for detecting there is support netted Mesh agreement the in wireless network in the first equipment When two equipment, the second network interface card of the first equipment of starting is established Mesh network with the first equipment and is connect.
In one embodiment, as shown in Figure 10, above-mentioned second link block 14 includes:
Binding unit 141 will support the nothing of Mesh agreement for the first network interface card and the second network interface card by bridge pass-through mode Gauze network with do not support that the wireless network of Mesh agreement is bound;
Construction unit 142, the wireless network connection for establishing between each second equipment.
In one embodiment, the network mode that above-mentioned first network interface card is supported is wireless terminal STA mode;Second network interface card branch The network mode held is wireless mesh network Mesh mode.
In one embodiment, as shown in figure 11, above-mentioned judgment module 13 includes:
Monitoring unit 131, for monitoring the first equipment and not supporting the signal strength between the second equipment of Mesh agreement;
Determination unit 132, for monitoring the first equipment and not supporting Mesh when signal strength is greater than preset strength threshold value Bit stream state between second equipment of agreement, and judge whether the first equipment has gateway energy according to bit stream state Power.
Above-mentioned first determination unit 132 is specifically used in bit stream state including code stream in one of the embodiments, When sending delay time, judge that code stream sends whether delay time is less than predetermined time delay;If it is small that code stream sends delay time In predetermined time delay, it is determined that the first equipment has gateway capacity.
Above-mentioned first determination unit 132 is big also particularly useful for delay time is sent in code stream in one of the embodiments, When predetermined time delay, determine that the first equipment does not have gateway capacity, and close the second network interface card of the first equipment.
Above-mentioned first determination unit 132 is less than or equal to also particularly useful in signal strength in one of the embodiments, When preset strength threshold value, determine that the first equipment does not have gateway capacity, and close the second network interface card of the first equipment.
Specific about wireless networking arrangement limits the restriction that may refer to above for a kind of wireless networking method, In This is repeated no more.Modules in above-mentioned wireless networking arrangement can come real fully or partially through software, hardware and combinations thereof It is existing.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with software shape Formula is stored in the memory in computer equipment, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure is shown in Fig.12.The computer equipment includes the processor connected by system bus, memory, network interface, shows Display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment Memory includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer Program.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter The network interface for calculating machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor To realize a kind of wireless networking method.The display screen of the computer equipment can be liquid crystal display or electric ink is shown Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 12, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
Whether each second equipment supports netted Mesh agreement in first equipment detection wireless network;First equipment includes at least Two network interface cards, the network protocol that different network interface cards is supported are different;
The second equipment for not supporting Mesh agreement if it exists then starts the first network interface card of the first equipment, establishes the first equipment With do not support Mesh agreement the second equipment between wireless network connection;First network interface card supports the association in addition to Mesh agreement View;
Judge whether the first equipment has gateway capacity;
If there is the first equipment gateway capacity to establish each second according to the second network interface card of the first network interface card and the first equipment Wireless network connection between equipment, and broadcast message is regularly sent in the wireless network;Broadcast message is for notifying first to set It is standby that there is gateway capacity;Second network interface card supports Mesh agreement.
A kind of computer equipment provided by the above embodiment, implementing principle and technical effect and above method embodiment class Seemingly, details are not described herein.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program also performs the steps of when being executed by processor
Whether each second equipment supports netted Mesh agreement in first equipment detection wireless network;First equipment includes at least Two network interface cards, the network protocol that different network interface cards is supported are different;
The second equipment for not supporting Mesh agreement if it exists then starts the first network interface card of the first equipment, establishes the first equipment With do not support Mesh agreement the second equipment between wireless network connection;First network interface card supports the association in addition to Mesh agreement View;
Judge whether the first equipment has gateway capacity;
If there is the first equipment gateway capacity to establish each second according to the second network interface card of the first network interface card and the first equipment Wireless network connection between equipment, and broadcast message is regularly sent in the wireless network;Broadcast message is for notifying first to set It is standby that there is gateway capacity;Second network interface card supports Mesh agreement.
A kind of computer readable storage medium provided by the above embodiment, implementing principle and technical effect and the above method Embodiment is similar, and details are not described herein.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDRSDRAM), increase Strong type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (11)

1. a kind of wireless networking method, which is characterized in that the described method includes:
Whether each second equipment supports netted Mesh agreement in first equipment detection wireless network;First equipment includes at least Two network interface cards, the network protocol that different network interface cards is supported are different;
The second equipment for not supporting Mesh agreement if it exists then starts the first network interface card of first equipment, establishes described first Wireless network connection between equipment and second equipment for not supporting Mesh agreement;First network interface card is supported except described Agreement other than Mesh agreement;
Judge whether first equipment has gateway capacity;
If there is first equipment gateway capacity to be built according to the second network interface card of first network interface card and first equipment The wireless network connection between each second equipment is found, and regularly sends broadcast message in the wireless network;It is described wide Message is broadcast for notifying first equipment that there is gateway capacity;Second network interface card supports the Mesh agreement.
2. the method according to claim 1, wherein described according to first network interface card and first equipment Second network interface card establishes the wireless network connection between each second equipment, comprising:
First network interface card and second network interface card by bridge pass-through mode will support the wireless network of the Mesh agreement with Do not support that the wireless network of the Mesh agreement is bound;
Establish the wireless network connection between each second equipment.
3. method according to claim 1 or 2, which is characterized in that the network mode that first network interface card is supported is wireless Terminal STA mode;The network mode that second network interface card is supported is wireless mesh network Mesh mode.
4. judging whether first equipment has gateway energy the method according to claim 1, wherein described Power, comprising:
Monitor the signal strength between first equipment and second equipment for not supporting the Mesh agreement;
If the signal strength is greater than preset strength threshold value, first equipment is monitored with described and does not support the Mesh agreement The second equipment between bit stream state, and judge whether first equipment has net according to the bit stream state Pass ability.
5. according to the method described in claim 4, it is characterized in that, when the bit stream state includes that code stream sends delay Between, it is described to judge whether first equipment has gateway capacity according to the bit stream state, comprising:
Judge that the code stream sends whether delay time is less than predetermined time delay;
If the code stream sends delay time and is less than the predetermined time delay, it is determined that first equipment has gateway energy Power.
6. according to the method described in claim 5, it is characterized in that, if the code stream sends delay time more than or equal to described Predetermined time delay, it is determined that first equipment does not have gateway capacity, and closes the second network interface card of first equipment.
7. according to the method described in claim 4, it is characterized in that, if the signal strength is less than or equal to preset strength threshold Value, it is determined that first equipment does not have gateway capacity, and closes the second network interface card of first equipment.
8. the method according to claim 1, wherein being deposited in the wireless network if first equipment detects In the second equipment for supporting netted Mesh agreement, then the second network interface card and the netted Mesh of support for starting first equipment are assisted Second equipment of view establishes Mesh network connection.
9. a kind of wireless networking arrangement, which is characterized in that described device includes:
Whether detection module supports netted Mesh agreement for each second equipment in the first equipment detection wireless network;Described One equipment includes at least two network interface cards, and the network protocol that different network interface cards is supported is different;
First link block, for starting the first of first equipment when there is the second equipment for not supporting Mesh agreement Network interface card establishes the wireless network connection between first equipment and second equipment for not supporting Mesh agreement;Described One network interface card supports the agreement in addition to the Mesh agreement;
Judgment module, for judging whether first equipment has gateway capacity;
Second link block is used for when first equipment has gateway capacity, according to first network interface card and described first Second network interface card of equipment is established the wireless network connection between each second equipment, and is periodically sent out in the wireless network Send broadcast message;The broadcast message is for notifying first equipment to have gateway capacity;Described in second network interface card is supported Mesh agreement.
10. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 8 the method when executing the computer program.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any item of the claim 1 to 8 is realized when being executed by processor.
CN201910640634.6A 2019-07-16 2019-07-16 Wireless networking method and device, computer equipment and storage medium Active CN110535826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910640634.6A CN110535826B (en) 2019-07-16 2019-07-16 Wireless networking method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910640634.6A CN110535826B (en) 2019-07-16 2019-07-16 Wireless networking method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110535826A true CN110535826A (en) 2019-12-03
CN110535826B CN110535826B (en) 2022-01-11

Family

ID=68660370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910640634.6A Active CN110535826B (en) 2019-07-16 2019-07-16 Wireless networking method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110535826B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683355A (en) * 2020-05-11 2020-09-18 烽火通信科技股份有限公司 Hybrid networking method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394270A (en) * 2008-09-27 2009-03-25 上海交通大学 Wireless mesh network link layer ciphering method based on modularized routing
CN101511132A (en) * 2009-03-23 2009-08-19 杭州华三通信技术有限公司 Method and system for forwarding data message
CN101516141A (en) * 2008-12-05 2009-08-26 中国移动通信集团广东有限公司 Method and system for communication between mobile terminal and Internet
CN201355814Y (en) * 2008-10-13 2009-12-02 深圳市华讯盈通讯技术有限公司 Wireless mesh network system
CN201355813Y (en) * 2008-10-13 2009-12-02 深圳市华讯盈通讯技术有限公司 Wireless node
CN101729335A (en) * 2008-10-13 2010-06-09 深圳市华讯盈通讯技术有限公司 Wireless node
CN101765176A (en) * 2008-12-23 2010-06-30 华为技术有限公司 Method for switching channel, network and network node
US8102814B2 (en) * 2006-11-14 2012-01-24 Cisco Technology, Inc. Access point profile for a mesh access point in a wireless mesh network
CN106170142A (en) * 2016-06-29 2016-11-30 慧感(上海)物联网科技有限公司 A kind of low-consumption wireless Sensor Network network-building method
CN106817693A (en) * 2015-11-27 2017-06-09 国网智能电网研究院 A kind of distributed network security control system and method
CN108141833A (en) * 2015-08-21 2018-06-08 凌力尔特有限公司 Multi-access point wireless mesh network

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8102814B2 (en) * 2006-11-14 2012-01-24 Cisco Technology, Inc. Access point profile for a mesh access point in a wireless mesh network
CN101394270A (en) * 2008-09-27 2009-03-25 上海交通大学 Wireless mesh network link layer ciphering method based on modularized routing
CN201355814Y (en) * 2008-10-13 2009-12-02 深圳市华讯盈通讯技术有限公司 Wireless mesh network system
CN201355813Y (en) * 2008-10-13 2009-12-02 深圳市华讯盈通讯技术有限公司 Wireless node
CN101729335A (en) * 2008-10-13 2010-06-09 深圳市华讯盈通讯技术有限公司 Wireless node
CN101516141A (en) * 2008-12-05 2009-08-26 中国移动通信集团广东有限公司 Method and system for communication between mobile terminal and Internet
CN101765176A (en) * 2008-12-23 2010-06-30 华为技术有限公司 Method for switching channel, network and network node
CN101511132A (en) * 2009-03-23 2009-08-19 杭州华三通信技术有限公司 Method and system for forwarding data message
CN108141833A (en) * 2015-08-21 2018-06-08 凌力尔特有限公司 Multi-access point wireless mesh network
CN106817693A (en) * 2015-11-27 2017-06-09 国网智能电网研究院 A kind of distributed network security control system and method
CN106170142A (en) * 2016-06-29 2016-11-30 慧感(上海)物联网科技有限公司 A kind of low-consumption wireless Sensor Network network-building method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
STEFANO MAURINA;ROBERTO RIGGIO;TINKU RASHEED;FABRIZIO GRANELLI: "On tree-based routing in multi-gateway association based Wireless Mesh Networks", 《2009 IEEE 20TH INTERNATIONAL SYMPOSIUM ON PERSONAL, INDOOR AND MOBILE RADIO COMMUNICATIONS》 *
韩婷; 何志鹏; 武蕾蕾: "无线MESH网络安全模型研究", 《电脑与信息技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683355A (en) * 2020-05-11 2020-09-18 烽火通信科技股份有限公司 Hybrid networking method and system

Also Published As

Publication number Publication date
CN110535826B (en) 2022-01-11

Similar Documents

Publication Publication Date Title
CN102640471B (en) Method and apparatus for multipath communication
CN102301762B (en) There is the distributed IP address assignment protocol of the multi-hop wireless home network network of collision detection
CN102215263B (en) Data transmission and remote control method for self-organizing wireless internet of things (IoT) system
CN109890069A (en) Method for connecting network, terminal, base station and computer storage medium
CN106856609A (en) A kind of network collocating method and device
Theodorou et al. Software defined topology control strategies for the internet of things
CN105850212A (en) System and methods for enabling coordinated beamforming in overlapping basic service set in WLAN
JP5462410B2 (en) Method and apparatus for accessing a wireless sensor network
CN108811092A (en) Wave beam failure recovery processing method, terminal and network side equipment
JP5978901B2 (en) Wireless communication apparatus, program, and communication control method
CN112261702B (en) Wireless Mesh network routing method and device based on position and electronic equipment
CN109565738A (en) Effective connection for power sensitive equipment is established and the system and method for communication
JP2011004225A (en) System, method and program of high-speed roaming of wireless lan
CN110445511B (en) Self-adaptive synchronous frequency hopping method and device, wireless AP and communication system
CN112752321B (en) Method, device, equipment and storage medium for switching routes of Mesh network
TW201116113A (en) Methods and apparatus for changing paging parameters in a communication system
CN102201846A (en) Wireless data transmission system and method based on soft AP (access point) technology
US10051561B2 (en) Methods and nodes for M2M communication
JP2013201516A (en) Radio communication device
CN105307139B (en) A kind of method, mobile terminal and the system of transmission application heartbeat signal
CN110290570A (en) Wireless network access method and relevant device, storage device
CN109068339B (en) Repeater and communication method, device and system based on mesh network
CN109246745A (en) A kind of method of mobile management, network side equipment and terminal
JP2013078065A (en) Radio communication terminal and radio communication method
CN105430597A (en) Bluetooth device, and Bluetooth Scatternet networking method and device thereof

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