CN105338658A - Method and device for connecting electronic equipment with communication network - Google Patents
Method and device for connecting electronic equipment with communication network Download PDFInfo
- Publication number
- CN105338658A CN105338658A CN201510831305.1A CN201510831305A CN105338658A CN 105338658 A CN105338658 A CN 105338658A CN 201510831305 A CN201510831305 A CN 201510831305A CN 105338658 A CN105338658 A CN 105338658A
- Authority
- CN
- China
- Prior art keywords
- networking
- connection
- neighbor
- routing
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 46
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000006855 networking Effects 0.000 claims abstract description 144
- 230000006870 function Effects 0.000 abstract description 37
- 238000005516 engineering process Methods 0.000 abstract description 6
- 230000008447 perception Effects 0.000 abstract 4
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 238000003825 pressing Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 206010063385 Intellectualisation Diseases 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
- H04W76/16—Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and a device for connecting electronic equipment with a communication network, and relates to the field of communication technologies. The device comprises a starting module, a judgment module and a network connecting module, wherein the starting module is used for starting a neighbor perception networking function; the judgment module is used for judging whether router equipment supporting quick connection by virtue of neighbor perception networking exists; and the network connecting module is used for connecting a wireless network for neighbor perception networking when the router equipment supporting quick connection by virtue of neighbor perception networking exists. Therefore, the electronic equipment can be quickly connected to a wireless network in a NAN network, so that a user can perform message publishing and realize a quick network sharing function, and the online experience of the user is greatly improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for connecting an electronic device to a communications network.
Background
With the rapid development of the electronic industry, people have higher and higher requirements on the intellectualization of electronic devices such as mobile phones. The convenience of connection and data transmission speed of electronic devices to a communication network are important factors influencing the development of the electronic devices to intellectualization. In 2015, the WI-FI alliance published technical standards for NAN (neighbor aware networking). The technology mainly realizes an efficient discovery mechanism, thereby expanding the functions of the existing WIFI and improving the application experience of users. However, the application of NAN technology to electronic devices to quickly connect wireless networks in NAN networking is still in industry.
Therefore, it is necessary to provide a method and an apparatus for connecting an electronic device to a communication network, which fills up the blank in the industry.
Disclosure of Invention
The invention mainly aims to provide a method and a device for connecting an electronic device with a communication network, and aims to solve the problem that the electronic device in the prior art cannot be quickly connected with a wireless network in a NAN (neighbor-to-network) network.
In order to achieve the above object, the present invention provides an apparatus for connecting an electronic device to a communication network, the apparatus comprising: the starting module is used for starting the neighbor awareness networking function; the judging module is used for judging whether the routing equipment supporting the quick connection through the neighbor sensing networking exists or not; and the network connection module is used for connecting the wireless network of the neighbor awareness networking when the routing equipment supporting the quick connection through the neighbor awareness networking exists.
Optionally, the determining module is specifically configured to: judging whether the neighbor awareness networking comprises a routing device or not; if so, the judging module judges whether the routing equipment supports the quick connection through the neighbor sensing networking; if not, the judging module judges whether the common routing equipment is included.
Optionally, the apparatus further comprises: a message receiving module, configured to receive a message frame broadcast by the routing device when the routing device supports fast connection through the neighbor aware networking; and the network connection starting module is used for starting the connection with the wireless network in the neighbor awareness networking through the message frame.
Optionally, the network connection module is specifically configured to connect to the routing device through a message frame broadcast by the routing device; correspondingly, the judging module is further configured to judge whether the connection with the routing device is successful; if yes, the network connection module is connected with the wireless network of the neighbor sensing networking; if not, the judging module further judges whether the connection frequency of the electronic equipment and the routing equipment reaches a preset threshold value, when the connection frequency reaches the preset threshold value, the routing equipment closes the wireless network of the neighbor sensing networking, and when the connection frequency does not reach the preset threshold value, the network connection module reconnects the routing equipment.
Optionally, the apparatus further comprises: and the display module is used for displaying the member list of the neighbor awareness networking and displaying the roles played by other electronic equipment in the wireless network of the neighbor awareness networking.
In addition, to achieve the above object, the present invention further provides a method for connecting an electronic device to a communication network, the method comprising: starting a neighbor sensing networking function; judging whether a routing device supporting the quick connection through the neighbor awareness networking exists or not; and when the routing equipment supporting the quick connection through the neighbor awareness networking exists, connecting the wireless network of the neighbor awareness networking.
Optionally, the determining whether there is a routing device supporting fast connection through the neighbor aware networking includes: judging whether the neighbor awareness networking comprises a routing device or not; if so, judging whether the routing equipment supports the fast connection through the neighbor sensing networking; if not, whether the common routing equipment is included is judged.
Optionally, after determining whether the routing device supports fast connection through the neighbor aware networking, the method further includes: when the routing equipment supports the quick connection through the neighbor sensing networking, receiving a message frame broadcast by the routing equipment; and starting connection with a wireless network in the neighbor awareness networking through the message frame.
Optionally, before the connecting to the neighbor aware networking wireless network, the method further includes: connecting the routing equipment through a message frame broadcasted by the routing equipment; judging whether the connection with the routing equipment is successful or not; if yes, connecting the wireless network of the neighbor sensing networking; if not, judging whether the connection frequency of the electronic equipment and the routing equipment reaches a preset threshold value, if so, closing the wireless network of the neighbor sensing network by the routing equipment, and if not, reconnecting the routing equipment.
Optionally, the method further comprises: and displaying a member list of the neighbor awareness networking and displaying roles played by other electronic equipment in a wireless network of the neighbor awareness networking.
The method and the device for connecting the electronic equipment with the communication network start the neighbor sensing networking function through the starting module, judge whether the judging module judges whether the routing equipment supporting the quick connection through the neighbor sensing networking exists, and when the routing equipment supporting the quick connection through the neighbor sensing networking exists, the network connecting module is connected with the wireless network of the neighbor sensing networking. Therefore, the electronic equipment is quickly connected to the wireless network in the NAN networking, so that the user can conveniently perform message publishing and quick network sharing functions, and the internet surfing experience of the user is greatly improved.
Drawings
Fig. 1 is a block diagram of an apparatus for connecting an electronic device to a communication network according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of the location of a pressure sensor in an electronic device implementing various embodiments of the invention;
fig. 3 is a diagram of an electronic device implementing various embodiments of the invention displaying a NAN member list;
FIG. 4 is a schematic diagram of a communication system implementing various embodiments of the present invention;
fig. 5 is a first flowchart illustrating a method for connecting an electronic device to a communication network according to a fourth embodiment of the present invention;
fig. 6 is a second flowchart illustrating a method for connecting an electronic device to a communication network according to a fourth embodiment of the present invention;
fig. 7 is a flowchart illustrating a method for connecting an electronic device to a communication network according to a fifth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
As shown in fig. 1, a first embodiment of the present invention provides an apparatus for connecting an electronic device to a communication network, the apparatus including:
the starting module 110 is configured to start a neighbor awareness networking function.
Specifically, the electronic device in this embodiment has a NAN function, and the NAN function is in an off state under a normal condition.
The electronic devices in the present embodiment include, but are not limited to, mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, printers, and the like, and electronic devices such as digital TVs, desktop computers, and the like.
At least one pressure sensor is arranged in the electronic equipment, and the pressure sensor is arranged at the bottom of the glass panel of the electronic equipment and corresponds to the pressing area on the electronic equipment. The pressing area may be a virtual area on the touch screen of the electronic device, or may be a touch area disposed below a certain physical key. When the user presses the pressing area and triggers the pressure sensor, the pressure sensor generates a corresponding pressure signal to turn on the NAN function.
When the NAN function of the electronic device is turned on, the start module 110 quickly starts the neighbor awareness networking function of the electronic device.
Referring to fig. 2, in the embodiment, the pressure sensor is disposed on the right side of the electronic device, and after the NAN function is quickly started, the notification bar of the electronic device reminds the user of joining the NAN group, where a specific reminding manner may be displaying in a pull-down menu or displaying in a display interface in a wake-up screen manner. In other embodiments, the position of the pressure sensor on the electronic device can be set according to actual needs. That is, the position of the pressure sensor for starting the NAN function can be adjusted according to the condition and the use requirement of the electronic device.
A determining module 120, configured to determine whether there is a routing device that supports fast connection through the neighbor aware networking.
In particular, in neighbor aware networking, the current network conditions are maintained mainly through a broadcast mechanism. The determining module 120 first determines whether a routing device, including but not limited to a router, a hotspot device, a device supporting a softAP (virtual wireless access node), and the like, is included in the neighbor-aware networking.
When the determining module 120 determines that a routing device is included in the neighbor aware networking, the determining module 120 further determines whether the routing device supports fast connection through the neighbor aware networking.
Specifically, the routing device supporting the fast connection through the neighbor aware networking is configured to have a NAN function, and when inviting other electronic devices to access the wireless network of the neighbor aware networking, the routing device may generate a broadcast specific message frame, so that the determining module 120 determines whether the routing device supports the fast connection through the neighbor aware networking by determining whether the routing device broadcasts the specific message frame.
Further, the specific message frame is a beacon control frame.
A network connection module 130, configured to connect the wireless network of the neighbor aware networking when there is a routing device that supports fast connection through the neighbor aware networking.
Specifically, the apparatus for connecting an electronic device to a communication network in this embodiment further includes a message receiving module 140 and a network connection starting module 150. Wherein,
the message receiving module 140 is configured to receive a message frame broadcast by the routing device when the routing device supports fast connection through the neighbor aware networking. That is to say, the message receiving module 140 completes the authentication connection of the routing device according to the relevant message carried by the beacon control frame.
The network connection initiation module 150 is configured to initiate a connection with a wireless network in the neighbor aware networking through the message frame.
When the network connection starting module 150 starts to connect with the wireless network in the neighbor aware networking, the network connection module 130 is triggered to connect with the wireless network of the neighbor aware networking.
As will be understood by those skilled in the art, the electronic device can receive a routing device capable of broadcasting a specific message frame within a certain range, that is, at the same location, the electronic device can receive a plurality of routing devices broadcasting a specific message frame, and then one of the routing devices can be selected to connect and join the corresponding NAN wireless network. In addition, a plurality of electronic devices may be connected to the same routing device. Referring to fig. 3, the apparatus further includes a display module, where the display module is configured to display a member list in the neighbor awareness networking on a display interface of the electronic device, and simultaneously display roles played by each electronic device in the list in the NAN wireless network. The role can be one of various combinations of Master, non-Master and Sync-Master.
In order to better understand the present invention, the present invention is further described in four examples. Please refer to fig. 4, which is a schematic diagram of a communication system of the apparatus for connecting an electronic device to a communication network in this embodiment. The communication system is in a network environment of NAN networking and comprises a first device, a second device and a third device, wherein the second device is a router.
In an example, the first device or the third device is a mobile terminal (e.g., a mobile phone, etc.) having a NAN function, and the second device is a router. The starting module starts a neighbor awareness networking function of the first device or the third device, the judging module judges whether the second device is a router supporting fast connection through neighbor awareness networking, and if yes, the network connection module of the first device or the third device connects the first device or the third device to a wireless network of the neighbor awareness networking.
Example two, the first device and the third device are both mobile terminals (e.g., cell phones, etc.) with NAN functionality, and assume that the first device is already connected to a wireless network of neighbor aware networking. The starting module starts a neighbor awareness networking function of the third device, the judging module of the third device judges whether the first device broadcasts a specific message frame so as to judge whether the first device is a routing device supporting fast connection through neighbor awareness networking, and if so, the network connecting module of the third device connects the third device to a wireless network of the neighbor awareness networking where the first device is located.
In an example three, if the communication system further includes a device four, and the device one invites the device three to connect to the NAN networking, and the device three invites the device four to connect to the NAN networking, that is, the device one, the device three, and the device four are all connected to the same neighbor awareness networking wireless network. If the distance between the first device and the fourth device is greater than the communicable distance, the first device may send the information to the third device, and the third device transfers the information to the fourth device, so that the communication interaction between the first device and the fourth device is realized.
In the fourth example, the first device is a mobile phone, the second device is a printer, and the first device and the second device are both connected with the wireless network of the same neighbor awareness networking. The first device can send a certain document in the mobile phone to the printer as data information, and the printer prints the document.
In short, the electronic device in the embodiment may serve as an invited device to receive the message frame broadcast by the corresponding routing device and connect to the wireless network of the neighbor awareness networking, and meanwhile, the electronic device may also serve as an inviting device to invite other electronic devices to connect to the wireless network of the neighbor awareness networking, and perform communication information interaction and information sharing with the electronic device. Therefore, the social application created by the NAN networking technology can help users between various electronic devices to find nearby friends, information or services meeting the requirements of the users. And these electronic devices can communicate short pieces of information without a connection, such as a short message to schedule a meeting or run a new game.
The apparatus for connecting an electronic device to a communication network of this embodiment starts a neighbor awareness networking function through a starting module 110, and a determining module 120 determines whether there is a routing device supporting fast connection through the neighbor awareness networking, and when there is a routing device supporting fast connection through the neighbor awareness networking, a network connecting module 130 connects a wireless network of the neighbor awareness networking. Therefore, the electronic equipment is quickly connected to the wireless network in the NAN networking, so that the user can conveniently carry out message issuing and quick network sharing functions, and the internet surfing experience of the user is greatly improved.
The second embodiment of the invention further provides a device for connecting the electronic equipment with the communication network. In the second embodiment, the apparatus of the electronic device connected to the communication network is different from the first embodiment only in that the apparatus further includes a notification module 210.
When the determining module 120 determines that no routing device is included in the constituent neighbor aware networking, the determining module 120 further determines whether a common routing device is included.
If yes, the notification module 210 is triggered, so that the notification module 210 notifies the electronic device that there is a general routing device nearby, and displays the notification on the display screen to notify the user that there is a wireless network generated by the general routing device nearby. Accordingly, the network connection module 130 connects the electronic device to the wireless network generated by the general routing device according to the operation instruction of the user. The wireless network in which the electronic device is connected with the common routing device in the invention can adopt the prior art, and is not described herein again.
If not, it is determined that no routing device or wireless network exists within a certain range of the electronic device.
In the apparatus for connecting an electronic device to a communication network according to this embodiment, when the determining module 120 determines that no routing device is included in the neighbor awareness networking, and determines that a common routing device is included, the network connecting module 130 is triggered to connect to a wireless network generated by the common routing device. Therefore, under the condition that no routing equipment capable of broadcasting the NAN network exists, the electronic equipment is connected to the common routing equipment, and the normal internet surfing experience of the user is guaranteed.
The third embodiment of the invention further provides a device for connecting the electronic equipment with the communication network. In the third embodiment, the apparatus of the electronic device connected to the communication network is different from the first embodiment only in that:
the network connection module 130 is specifically configured to connect the routing device through a message frame broadcast by the routing device.
Specifically, after the network connection starting module 150 starts connection with a wireless network in the neighbor aware networking through a message frame, the network connection module 130 attempts to connect to the routing device through the message frame, that is, receives an operation instruction sent by a user to confirm beacon control frame processing, and performs a connection attempt action.
Correspondingly, the judging module 120 is further configured to judge whether the connection with the routing device is successful.
If yes, the network connection module 130 connects to the wireless network of the neighbor awareness networking;
if not, the determining module 120 further determines whether the connection frequency between the electronic device and the routing device reaches a preset threshold, when the connection frequency reaches the preset threshold, the routing device closes the wireless network of the neighbor awareness networking, and when the connection frequency does not reach the preset threshold, the network connection module reconnects the routing device.
Specifically, in the process of attempting the connection by the network connection module 130, the connection attempt may be successful or failed, and therefore, if the determination module 120 determines that the first attempt of the network connection module 130 to connect to the routing device is successful, the wireless network of the NAN may be directly connected.
If the determining module 120 determines that the first connection attempt fails, the determining module 120 further determines whether the second connection, the third connection, …, and the nth connection are successfully connected to the routing device, respectively. Wherein, N is a preset threshold value of connection times, and is used as an upper limit value of connection attempt times.
When the determining module 120 determines that the connection with the routing device is successful within the threshold of the preset connection times, the network connection module 130 connects the wireless network of the neighbor awareness networking.
When the determining module 120 determines that the connection with the routing device fails within the threshold of the preset connection times, the routing device closes the wireless network of the neighbor awareness networking and quits the connection attempting action.
In the apparatus for connecting an electronic device to a communication network according to this embodiment, the network connection module 130 connects to the routing device through a message frame broadcast by the routing device, and when the determination module 120 determines that the connection with the routing device is successful, the network connection module 130 connects to a wireless network of a NAN. Therefore, the electronic equipment is quickly connected to the wireless network in the NAN networking, so that the user can conveniently carry out message issuing and quick network sharing functions, and the internet surfing experience of the user is greatly improved.
A fourth embodiment of the present invention further provides a method for connecting an electronic device to a communication network, referring to fig. 5, the method includes:
s510, starting a neighbor sensing networking function;
specifically, the electronic device in this embodiment has a NAN function, and the NAN function is in an off state under a normal condition.
The electronic devices in the present embodiment include, but are not limited to, mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, printers, and the like, and electronic devices such as digital TVs, desktop computers, and the like.
At least one pressure sensor is arranged in the electronic equipment, and the pressure sensor is arranged at the bottom of the glass panel of the electronic equipment and corresponds to the pressing area on the electronic equipment. The pressing area may be a virtual area on the touch screen of the electronic device, or may be a touch area disposed below a certain physical key. When the user presses the pressing area and triggers the pressure sensor, the pressure sensor generates a corresponding pressure signal to turn on the NAN function.
And when the NAN function of the electronic equipment is started, the neighbor awareness networking function of the electronic equipment is quickly started.
Referring to fig. 2, in the embodiment, the pressure sensor is disposed on the right side of the electronic device, and after the NAN function is quickly started, the notification bar of the electronic device reminds the user of joining the NAN group, where a specific reminding manner may be displaying in a pull-down menu or displaying in a display interface in a wake-up screen manner. In other embodiments, the position of the pressure sensor on the electronic device can be set according to actual needs. That is, the position of the pressure sensor for starting the NAN function can be adjusted according to the condition and the use requirement of the electronic device.
S520, judging whether a routing device supporting the quick connection through the neighbor sensing networking exists or not; if yes, entering S530, otherwise, ending;
in particular, in neighbor aware networking, the current network conditions are maintained mainly through a broadcast mechanism. Referring to fig. 6, S520 specifically includes S610-S630, and S640-S670 is further included between S520 and S530, specifically:
s610, judging whether the neighbor awareness networking comprises a routing device or not; if yes, go to S620; if not, the process proceeds to S630.
Specifically, the routing device includes, but is not limited to, a router, a hotspot device, a device supporting a softAP (virtual wireless access node), and the like.
S620, judging whether the routing equipment supports the quick connection through the neighbor awareness networking; if yes, entering S640; if not, the process proceeds to S630.
Specifically, the routing device supporting the fast connection through the neighbor aware networking is provided with a NAN function, and when inviting other electronic devices to access a wireless network of the neighbor aware networking, the routing device may generate a broadcast specific message frame, so as to determine whether the routing device supports the fast connection through the neighbor aware networking by judging whether the routing device broadcasts the specific message frame.
Further, the specific message frame is a beacon control frame.
S630, judging whether the routing equipment comprises common routing equipment; if yes, go to S660; if not, the result shows that no routing device or wireless network exists within a certain range of the electronic device, and the process is finished.
And S640, receiving the message frame broadcast by the routing equipment.
That is to say, according to the related message carried by the beacon control frame, the authentication connection of the routing device is completed.
S650, starting connection with a wireless network in the neighbor awareness networking through the message frame.
And S660, informing the electronic equipment that the common routing equipment exists nearby, and displaying the common routing equipment on a display screen to inform a user that the wireless network generated by the common routing equipment exists nearby.
And S670, connecting the electronic equipment to a wireless network generated by the common routing equipment according to the operation instruction of the user.
And S530, connecting the wireless network of the neighbor awareness networking.
As will be understood by those skilled in the art, the electronic device can receive a routing device capable of broadcasting a specific message frame within a certain range, that is, at the same location, the electronic device can receive a plurality of routing devices broadcasting a specific message frame, and then one of the routing devices can be selected to connect and join the corresponding NAN wireless network. In addition, a plurality of electronic devices may be connected to the same routing device.
As a further improvement of this embodiment, the method further includes: and displaying a member list of the neighbor awareness networking and displaying roles played by other electronic equipment in a wireless network of the neighbor awareness networking.
Referring to fig. 3, the display interface of the electronic device may view the member list in the NAN wireless network, and simultaneously display the roles played by each electronic device in the list in the NAN wireless network. The role can be one of various combinations of Master, non-Master and Sync-Master.
In order to better understand the present invention, the present invention is further described in four examples. Please refer to fig. 4, which is a schematic structural diagram of the communication system of the present embodiment. The communication system is in a network environment of NAN networking and comprises a first device, a second device and a third device, wherein the second device is a router.
In an example, the first device or the third device is a mobile terminal (e.g., a mobile phone, etc.) having a NAN function, and the second device is a router. And starting a neighbor awareness networking function of the first device or the third device, judging whether the second device is a router supporting fast connection through neighbor awareness networking, and if so, connecting the first device or the third device to a wireless network of the neighbor awareness networking.
Example two, the first device and the third device are both mobile terminals (e.g., cell phones, etc.) with NAN functionality, and assume that the first device is already connected to a wireless network of neighbor aware networking. And starting a neighbor awareness networking function of the third device, judging whether the first device broadcasts a specific message frame to judge whether the first device is a routing device supporting fast connection through neighbor awareness networking, and if so, connecting the third device to a wireless network of the neighbor awareness networking in which the first device is located.
In an example three, if the communication system further includes a device four, and the device one invites the device three to connect to the NAN networking, and the device three invites the device four to connect to the NAN networking, that is, the device one, the device three, and the device four are all connected to the same neighbor awareness networking wireless network. If the distance between the first device and the fourth device is greater than the communicable distance, the first device may send the information to the third device, and the third device transfers the information to the fourth device, so that the communication interaction between the first device and the fourth device is realized.
In the fourth example, the first device is a mobile phone, the second device is a printer, and the first device and the second device are both connected with the wireless network of the same neighbor awareness networking. The first device can send a certain document in the mobile phone to the printer as data information, and the printer prints the document.
In short, the electronic device in the embodiment may serve as an invited device to receive the message frame broadcast by the corresponding routing device and connect to the wireless network of the neighbor awareness networking, and meanwhile, the electronic device may also serve as an inviting device to invite other electronic devices to connect to the wireless network of the neighbor awareness networking, and perform communication information interaction and information sharing with the electronic device. Therefore, the social application created by the NAN networking technology can help users between various electronic devices to find nearby friends, information or services meeting the requirements of the users. And these electronic devices can communicate short pieces of information without a connection, such as a short message to schedule a meeting or run a new game.
The method for connecting the electronic equipment to the communication network of the embodiment judges whether the routing equipment supporting the quick connection through the neighbor awareness networking exists by starting the neighbor awareness networking function, and if the routing equipment supporting the quick connection through the neighbor awareness networking exists, the electronic equipment is connected to the wireless network of the neighbor awareness networking. Therefore, the electronic equipment is quickly connected to the wireless network in the NAN networking, so that the user can conveniently carry out message issuing and quick network sharing functions, and the internet surfing experience of the user is greatly improved.
As shown in fig. 7, the fifth embodiment of the present invention further provides a method for connecting an electronic device to a communication network. In the fifth embodiment, the method for connecting the electronic device to the communication network is different from the fourth embodiment only in that, before S530, the method further includes:
and S710, connecting the routing equipment through the message frame broadcasted by the routing equipment.
Specifically, after S650, the connection attempt is performed by the message frame to the routing device, that is, the connection attempt is performed by receiving an operation instruction from the user to confirm beacon control frame processing.
S720, judging whether the connection with the routing equipment is successful. If yes, entering S530; if not, the process proceeds to S730.
S730, judging whether the connection frequency of the electronic equipment and the routing equipment reaches a preset threshold value or not; if yes, entering S740; if not, returning to the step S710, namely, reconnecting the routing equipment.
S740, the routing equipment closes the wireless network of the neighbor awareness networking.
Specifically, in the process of attempting connection, the connection attempt may be successful or failed, and therefore, if it is determined that the first connection attempt of the routing device is successful, the wireless network of the NAN may be directly connected.
If the first attempt connection is determined to fail, it is further determined whether the second connection, the third connection, …, and the nth connection are successfully connected to the routing device, respectively. Wherein, N is a preset threshold value of connection times, and is used as an upper limit value of connection attempt times.
And when the connection with the routing equipment is judged to be successful within the threshold value of the preset connection times, connecting the wireless network of the neighbor sensing networking.
And when the connection with the routing equipment is judged to be failed within the threshold value of the preset connection times, the routing equipment closes the wireless network of the neighbor sensing networking and quits the action of trying to connect.
In the method for connecting the electronic device to the communication network according to the embodiment, the routing device is connected through the message frame broadcast by the routing device, and when the connection with the routing device is determined to be successful, the wireless network of the NAN is connected. Therefore, the electronic equipment is quickly connected to the wireless network in the NAN networking, so that the user can conveniently carry out message issuing and quick network sharing functions, and the internet surfing experience of the user is greatly improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. An apparatus for an electronic device to connect to a communication network, the apparatus comprising:
the starting module is used for starting the neighbor awareness networking function;
the judging module is used for judging whether the routing equipment supporting the quick connection through the neighbor sensing networking exists or not;
and the network connection module is used for connecting the wireless network of the neighbor awareness networking when the routing equipment supporting the quick connection through the neighbor awareness networking exists.
2. The apparatus for connecting an electronic device to a communication network according to claim 1, wherein the determining module is specifically configured to:
judging whether the neighbor awareness networking comprises a routing device or not;
if so, the judging module judges whether the routing equipment supports the quick connection through the neighbor sensing networking;
if not, the judging module judges whether the common routing equipment is included.
3. The apparatus of claim 2, wherein the apparatus further comprises:
a message receiving module, configured to receive a message frame broadcast by the routing device when the routing device supports fast connection through the neighbor aware networking;
and the network connection starting module is used for starting the connection with the wireless network in the neighbor awareness networking through the message frame.
4. The apparatus of claim 1, wherein the network connection module is specifically configured to connect to the routing device through a message frame broadcast by the routing device;
correspondingly, the judging module is further configured to judge whether the connection with the routing device is successful;
if yes, the network connection module is connected with the wireless network of the neighbor sensing networking;
if not, the judging module further judges whether the connection frequency of the electronic equipment and the routing equipment reaches a preset threshold value, when the connection frequency reaches the preset threshold value, the routing equipment closes the wireless network of the neighbor sensing networking, and when the connection frequency does not reach the preset threshold value, the network connection module reconnects the routing equipment.
5. The apparatus for connecting an electronic device to a communication network according to any one of claims 1-4, wherein the apparatus further comprises:
and the display module is used for displaying the member list of the neighbor awareness networking and displaying the roles played by other electronic equipment in the wireless network of the neighbor awareness networking.
6. A method for an electronic device to connect to a communication network, the method comprising the steps of:
starting a neighbor sensing networking function;
judging whether a routing device supporting the quick connection through the neighbor awareness networking exists or not;
and when the routing equipment supporting the quick connection through the neighbor awareness networking exists, connecting the wireless network of the neighbor awareness networking.
7. The method of claim 6, wherein the determining whether there is a routing device supporting fast connection through the neighbor aware networking comprises:
judging whether the neighbor awareness networking comprises a routing device or not;
if so, judging whether the routing equipment supports the fast connection through the neighbor sensing networking;
if not, whether the common routing equipment is included is judged.
8. The method of claim 7, wherein after determining whether the routing device supports fast connectivity via the neighbor aware networking, the method further comprises:
when the routing equipment supports the quick connection through the neighbor sensing networking, receiving a message frame broadcast by the routing equipment;
and starting connection with a wireless network in the neighbor awareness networking through the message frame.
9. The method of claim 6, wherein before the connecting the neighbor aware networked wireless network, further comprising:
connecting the routing equipment through a message frame broadcasted by the routing equipment;
judging whether the connection with the routing equipment is successful or not;
if yes, connecting the wireless network of the neighbor sensing networking;
if not, judging whether the connection frequency of the electronic equipment and the routing equipment reaches a preset threshold value, if so, closing the wireless network of the neighbor sensing network by the routing equipment, and if not, reconnecting the routing equipment.
10. The method of any one of claims 6-9, wherein the method further comprises:
and displaying a member list of the neighbor awareness networking and displaying roles played by other electronic equipment in a wireless network of the neighbor awareness networking.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510831305.1A CN105338658A (en) | 2015-11-25 | 2015-11-25 | Method and device for connecting electronic equipment with communication network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510831305.1A CN105338658A (en) | 2015-11-25 | 2015-11-25 | Method and device for connecting electronic equipment with communication network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105338658A true CN105338658A (en) | 2016-02-17 |
Family
ID=55288823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510831305.1A Pending CN105338658A (en) | 2015-11-25 | 2015-11-25 | Method and device for connecting electronic equipment with communication network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105338658A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109195103A (en) * | 2018-08-10 | 2019-01-11 | Oppo广东移动通信有限公司 | Multimedia resource sharing method, relevant device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821466A (en) * | 2012-09-06 | 2012-12-12 | 东莞宇龙通信科技有限公司 | Data communication device and data communication method |
US20140301190A1 (en) * | 2013-04-03 | 2014-10-09 | Qualcomm Incorporated | Systems and methods for collision management in a neighborhood aware network |
WO2015084597A1 (en) * | 2013-12-02 | 2015-06-11 | Qualcomm Incorporated | Methods and apparatus for neighborhood area network detection |
WO2015171075A1 (en) * | 2014-05-06 | 2015-11-12 | Mediatek Singapore Pte. Ltd. | Method for discovering services |
WO2015170818A1 (en) * | 2014-05-07 | 2015-11-12 | 엘지전자 주식회사 | Method and apparatus for receiving signal by nan device in wireless communication system |
-
2015
- 2015-11-25 CN CN201510831305.1A patent/CN105338658A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821466A (en) * | 2012-09-06 | 2012-12-12 | 东莞宇龙通信科技有限公司 | Data communication device and data communication method |
US20140301190A1 (en) * | 2013-04-03 | 2014-10-09 | Qualcomm Incorporated | Systems and methods for collision management in a neighborhood aware network |
WO2015084597A1 (en) * | 2013-12-02 | 2015-06-11 | Qualcomm Incorporated | Methods and apparatus for neighborhood area network detection |
WO2015171075A1 (en) * | 2014-05-06 | 2015-11-12 | Mediatek Singapore Pte. Ltd. | Method for discovering services |
WO2015170818A1 (en) * | 2014-05-07 | 2015-11-12 | 엘지전자 주식회사 | Method and apparatus for receiving signal by nan device in wireless communication system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109195103A (en) * | 2018-08-10 | 2019-01-11 | Oppo广东移动通信有限公司 | Multimedia resource sharing method, relevant device and storage medium |
CN109195103B (en) * | 2018-08-10 | 2020-12-15 | Oppo广东移动通信有限公司 | Multimedia resource sharing method, related equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2901799B1 (en) | Method and system for establishing wireless fidelity direct(wfd) connection in a wfd network environment | |
CN110278550B (en) | Portable device, portable apparatus, and computer-readable medium | |
CN110113737B (en) | Method and apparatus for connecting short-range wireless communication in terminal | |
JP6714803B1 (en) | Image sharing method and electronic device | |
CN107889092B (en) | Bluetooth device communication control method, device, terminal device and storage medium | |
EP3566991B1 (en) | Elevator service requesting based on social media application module | |
CN112242980B (en) | Screen projection method and device | |
AU2013251206B2 (en) | System and method of connecting devices via wi-fi network | |
EP4016125A1 (en) | Distance measurement method and equipment | |
CN112351417B (en) | Device discovery method and device and computer device | |
EP2837220B1 (en) | Method and system for establishing wireless local area network link between portable terminals | |
KR20090009228A (en) | Services near me: discovering and connecting to available wireless services utilizing proximity discovery | |
EP3068150B1 (en) | Method and device for controlling device | |
CN105764159B (en) | Network connection method, system and terminal thereof | |
WO2014044057A1 (en) | Methods, terminals, and systems for facilitating data sharing | |
US9258672B2 (en) | Short-range wireless communication device | |
JP5719001B2 (en) | Apparatus and method for performing inter-apparatus communication | |
KR20160138547A (en) | Wireless communication system | |
CN105744646B (en) | A kind of mobile terminal and communication means | |
CN103561087A (en) | Equipment interconnection method and device | |
EP3451719A1 (en) | Device discovery using neighbour awareness network (nan) functions | |
WO2023016435A1 (en) | Assisted sensing method and apparatus, network side device, and terminal | |
US20160057215A1 (en) | Methods and systems for delegating group ownership for the formation of a new group | |
WO2020221308A1 (en) | Pc5 link establishment method, device and system | |
CN105451368A (en) | Communication method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160217 |