CN111465076A - Connection method and device of wireless local area network and computer storage medium - Google Patents

Connection method and device of wireless local area network and computer storage medium Download PDF

Info

Publication number
CN111465076A
CN111465076A CN202010176931.2A CN202010176931A CN111465076A CN 111465076 A CN111465076 A CN 111465076A CN 202010176931 A CN202010176931 A CN 202010176931A CN 111465076 A CN111465076 A CN 111465076A
Authority
CN
China
Prior art keywords
area network
local area
wireless local
hotspot
equipment
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
Application number
CN202010176931.2A
Other languages
Chinese (zh)
Inventor
朱菊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN202010176931.2A priority Critical patent/CN111465076A/en
Publication of CN111465076A publication Critical patent/CN111465076A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention discloses a wireless local area network connection method, equipment and a computer storage medium, wherein the wireless local area network connection method comprises the following steps: the method comprises the steps that first equipment creates a wireless local area network with the first equipment as a wireless hotspot and broadcasts hotspot information of the wireless local area network; the wireless local area network hotspot information is generated according to a preset rule; and the first equipment receives a connection establishment request, the connection establishment request is sent by the second equipment according to the wireless local area network hotspot information, and the first equipment establishes wireless connection according to the connection establishment request. The connection method, the device and the computer storage medium of the wireless local area network can quickly establish wireless connection between the second device and the first device, are simple to operate and effectively improve the use experience of a user.

Description

Connection method and device of wireless local area network and computer storage medium
Technical Field
The present invention relates to the field of computer networks, and in particular, to a method and apparatus for connecting a wireless lan, and a computer storage medium.
Background
With the rapid development of communication technology and multimedia technology, a multimedia synchronous playing system composed of multiple devices is used to synchronously play audio or video, so as to realize the synchronous sound emission or image display of multiple devices, and the multimedia synchronous playing system is widely applied. Generally, a multimedia synchronous playing system includes a device in a master mode and at least one device in a slave mode, which establishes wireless connection with the device in the master mode, respectively, and the device in the master mode transmits multimedia data and a playing control instruction to the device in the slave mode, thereby implementing synchronous playing of multiple devices. As shown in fig. 1, generally, the process of establishing a wireless connection between a device in the master mode and devices in the slave mode is as follows: and the equipment in the master control mode starts a hotspot, and generates and displays a two-dimensional code according to the hotspot information so that the equipment in the slave mode establishes wireless connection with the equipment in the master control mode by scanning the two-dimensional code. However, the above connection method is limited by the distance between the devices and the scanning angle, and the operation is cumbersome, which reduces the user experience.
Disclosure of Invention
The invention aims to provide a connection method, equipment and a computer storage medium of a wireless local area network, which can quickly establish wireless connection between second equipment and first equipment, are simple to operate and effectively improve the use experience of a user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for connecting a wireless local area network, where the method includes:
the method comprises the steps that first equipment creates a wireless local area network with the first equipment as a wireless hotspot and broadcasts hotspot information of the wireless local area network; the wireless local area network hotspot information is generated according to a preset rule;
and the first equipment receives a connection establishment request, the connection establishment request is sent by the second equipment according to the wireless local area network hotspot information, and the first equipment establishes wireless connection according to the connection establishment request.
As one implementation manner, the creating, by the first device, a wireless local area network with the first device as a wireless hotspot, and broadcasting wireless local area network hotspot information by the first device includes:
the first equipment opens a hotspot so as to create a wireless local area network with the first equipment as a wireless hotspot;
the first equipment sets the name of the wireless local area network hotspot according to a preset rule and broadcasts the wireless local area network hotspot information comprising the name.
As an implementation manner, after the first device creates a wireless local area network with the first device as a wireless hotspot and broadcasts wireless local area network hotspot information, the method further includes:
and the first equipment displays the hotspot information of the wireless local area network.
As an implementation manner, after the first device creates a wireless local area network with the first device as a wireless hotspot and broadcasts wireless local area network hotspot information, the method further includes:
the first equipment displays a connectable equipment quantity setting interface;
and the first equipment receives the operation of a user on the connectable equipment number setting interface, and sets the number selected by the operation as the maximum connectable equipment number of the first equipment.
As an implementation manner, after the first device sets the name of the wireless local area network hotspot according to a preset rule, the method further includes:
the first equipment displays a password setting interface to prompt a user to set a password;
and the first equipment receives a password input by a user on the password setting interface and sets the password as an access password of the wireless local area network hotspot.
In a second aspect, an embodiment of the present invention provides a method for connecting a wireless local area network, where the method includes:
the second equipment acquires a wireless local area network hotspot in the current environment, and selects a target wireless local area network hotspot meeting preset conditions according to the wireless local area network hotspot information;
and the second equipment sends a connection establishment request according to the target wireless local area network hotspot information so as to request to establish wireless connection with the first equipment.
As one embodiment, the wlan hotspot information includes a name of a wlan hotspot; and/or the second device selects a target wireless local area network hotspot meeting a preset condition according to the wireless local area network hotspot information, and the method comprises the following steps:
and the second equipment determines the wireless local area network hotspot with the name meeting the preset condition as a target wireless local area network hotspot.
As an implementation manner, before the second device sends a connection establishment request according to the target wireless local area network hotspot information to request to establish a wireless connection with the first device, the method further includes:
the second equipment outputs a prompt message for judging whether the target wireless local area network hotspot is connected or not;
and when receiving a confirmation instruction for connecting the target wireless local area network hotspot, the second device executes a step of sending a connection establishment request according to the target wireless local area network hotspot information.
In a third aspect, an embodiment of the present invention provides an apparatus, where the apparatus includes: a processor and a memory for storing a computer program capable of running on the processor; wherein the processor, when executing the computer program, implements the method for connecting to a wireless local area network according to the first aspect or the second aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for connecting a wireless local area network according to the first aspect or the second aspect.
The embodiment of the invention provides a connection method, equipment and a computer storage medium of a wireless local area network, wherein the method comprises the following steps: the method comprises the steps that first equipment creates a wireless local area network with the first equipment as a wireless hotspot and broadcasts hotspot information of the wireless local area network; the wireless local area network hotspot information is generated according to a preset rule; and the first equipment receives a connection establishment request, the connection establishment request is sent by the second equipment according to the wireless local area network hotspot information, and the first equipment establishes wireless connection according to the connection establishment request. Therefore, after the first device establishes the wireless local area network with the first device as a wireless hotspot, the first device broadcasts the wireless local area network hotspot information generated according to the preset rule, so that the second device can automatically acquire the wireless local area network hotspot information established by the first device, and then the wireless connection between the first device and the second device is established, the wireless connection between the second device and the first device is quickly established, the operation is simple, and the use experience of a user is effectively improved.
Drawings
Fig. 1 is a schematic diagram of a conventional device for establishing a wireless connection;
fig. 2 is a flowchart illustrating a method for connecting a wlan according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another wlan connection method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating a connection method of a wireless local area network according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a password setup interface of a host according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a password setup interface of a slave device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further elaborated by combining the drawings and the specific embodiments in the specification. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 2, a connection method of a wireless local area network provided in an embodiment of the present invention may be executed by a connection apparatus of a wireless local area network, where the connection apparatus of the wireless local area network may be implemented in a software and/or hardware manner, and in a specific application, the connection apparatus of the wireless local area network may specifically be a first device, where the first device includes but is not limited to various devices such as a personal computer, a smart phone, a tablet computer, a palmtop computer, and a notebook computer, and in this embodiment, the connection method of the wireless local area network is applied to the first device as an example, and the connection method of the wireless local area network includes the following steps:
step S101: the method comprises the steps that first equipment creates a wireless local area network with the first equipment as a wireless hotspot and broadcasts hotspot information of the wireless local area network; the wireless local area network hotspot information is generated according to a preset rule;
it should be noted that, in the multimedia synchronous playing system, a device in the master mode and at least one device in the slave mode may be included, and the device in the slave mode needs to access the wireless local area network provided by the device in the master mode, so that the device in the master mode establishes wireless connections with the devices in the slave mode, respectively. The user can send control instructions including playing, pause playing and other instructions to the devices in the slave mode in the multimedia playing group through the devices in the master mode, so as to realize synchronous playing of multimedia. In this embodiment, the first device is taken as an example of a device in the master control mode.
Here, the first device may have an APP for controlling the multimedia synchronous playing system installed therein, and a user may manage the first device in the master mode and other devices in the slave mode, such as the second device, in the multimedia synchronous playing system through the APP, including setting and adjusting devices, creating a playlist, obtaining a playing resource, controlling a playing state, and the like. When a user selects to create a multimedia playing group on a user interface of the APP, which is equivalent to that the first device receives a creation instruction of a wireless local area network, and indicates that the user wants to enable the first device to be a device in a master control mode at the time, the first device creates the wireless local area network with the first device as a wireless hotspot and broadcasts wireless local area network hotspot information, so that other devices can search the wireless local area network hotspot. It should be noted that, in order to enable other devices to automatically know the wlan created by the first device and then connect to the wlan created by the first device, the wlan hotspot information is generated according to a preset rule. Here, the preset rule may be set according to actual needs, for example, the name of the wireless local area network hotspot is set in a preset manner.
In one embodiment, the creating, by the first device, a wireless local area network with the first device as a wireless hotspot, and broadcasting wireless local area network hotspot information includes:
the first equipment opens a hotspot so as to create a wireless local area network with the first equipment as a wireless hotspot;
the first equipment sets the name of the wireless local area network hotspot according to a preset rule and broadcasts the wireless local area network hotspot information comprising the name.
It is understood that the first device may be configured with a hotspot function, so as to create a wireless local area network with the first device as a wireless hotspot after the hotspot is opened. After the first device starts the hotspot, the name of the wireless local area network hotspot is set according to a preset rule, so that other devices can know that the wireless local area network is created by the first device according to the name of the wireless local area network hotspot. The preset rule may be set according to actual requirements, for example, the preset rule may be configured to control the name of the wireless local area network hotspot to include a specific character, a start character or an end character with the specific character as a name, and the like. For example, if the preset rule is a starting character with a specific character "PAIDUI" as a name, the name of the wlan hotspot created by the first device may be "PAIDUI 123", "PAIDUI-1", or the like. After the first device creates a wireless local area network hotspot, the first device broadcasts the wireless local area network hotspot information including the name outwards through the wireless local area network hotspot, so that other devices nearby the first device can search the wireless local area network hotspot. Here, the wlan hotspot information broadcasted by the first device may include, in addition to the name, information such as whether an access password, the number of connected devices, and the maximum number of connectable devices are set in the wlan hotspot.
In an embodiment, after the first device creates a wireless local area network with the first device as a wireless hotspot and broadcasts wireless local area network hotspot information, the method further includes:
the first equipment displays a connectable equipment quantity setting interface;
the first device receives operation (such as sliding gesture, clicking selection, spacing operation and the like) of a user on the connectable device number setting interface, and the number selected by the operation is set to be the maximum connectable device number of the first device.
It is understood that the number of devices connectable to the first device cannot be too large due to the influence of the transmission speed, the hardware performance of the first device, and the like, so as to avoid influencing the normal transmission and playing of data between the devices. After the first device creates a wireless local area network with the first device as a wireless hotspot and broadcasts hotspot information of the wireless local area network, a setting interface capable of being connected with the number of devices can be displayed, the setting interface can be provided with a slide block and a digital display area, and different numbers are correspondingly displayed in the digital display area when the slide block is in different positions. The user selects the corresponding number as the maximum number of connectable devices of said first device by sliding the slider. Therefore, the maximum number of the connectable devices of the first device is set by the first device according to user operation, so that normal operation of the first device and/or other devices connected with the first device is ensured, and user experience is further improved.
In an embodiment, after the first device sets the name of the wireless local area network hotspot according to a preset rule, the method further includes:
the first equipment displays a password setting interface to prompt a user to set a password;
and the first equipment receives a password input by a user on the password setting interface and sets the password as an access password of the wireless local area network hotspot.
It can be understood that a user may need to set different access passwords for the wlan hotspot created by the first device in different usage scenarios, so that users of other devices can know or use the access password to connect to the wlan hotspot conveniently. The first device displays a password setting interface after setting the name of the wireless local area network hotspot according to a preset rule, and when a user clicks a password input box in the password setting interface, an input method interface can be displayed, and the clicking operation of the user on the input method interface is received, so that the password input by the user on the password setting interface is obtained, and the password is set as the access password of the wireless local area network hotspot. It should be noted that the password setting interface may already display an initial password, and the initial password may be a password set by the first device when the first device last opens the wlan hotspot, or may be a default password. Therefore, the access password of the wireless local area network hotspot is flexibly set, the connection operation is convenient, and the use experience of the user is further improved.
In an embodiment, after the first device creates a wireless local area network with the first device as a wireless hotspot and broadcasts wireless local area network hotspot information, the method further includes: and the first equipment displays the hotspot information of the wireless local area network. Specifically, after the first device creates a wireless local area network with the first device as a wireless hotspot and broadcasts wireless local area network hotspot information, the wireless local area network hotspot information is displayed through a display screen, so that users of other devices near the first device are notified of the wireless local area network hotspot information, for example, users of second devices are notified of the wireless local area network hotspot information. Here, the wlan hotspot information may include a name of the wlan hotspot, an access password of the wlan hotspot, the number of connected devices, the maximum number of connectable devices, and the like. Here, if the first device displays the access password of the wlan hotspot, the users of other devices may obtain the access password of the wlan hotspot, so as to connect the first device according to the access password. Therefore, the first equipment is convenient for users of other equipment to establish wireless connection with the first equipment according to the wireless local area network hotspot information accurately by displaying the created wireless local area network hotspot information, the convenience and the accuracy of the wireless connection are improved, and the user experience is further improved.
Step S102: and the first equipment receives a connection establishment request, the connection establishment request is sent by the second equipment according to the wireless local area network hotspot information, and the first equipment establishes wireless connection according to the connection establishment request.
Specifically, after receiving a connection establishment request sent by the second device according to the hotspot information of the wireless local area network, the first device responds to the connection establishment request, and after the connection establishment request is verified, accesses the second device to the wireless local area network, so as to establish a wireless connection with the second device, and thus, information interaction with the second device can be performed.
Therefore, compared with the prior art that the first device starts the hotspot and generates and displays the corresponding wireless local area network hotspot information to enable other devices to be in wireless connection with the first device through scanning the two-dimensional code, the first device broadcasts the wireless local area network hotspot information generated according to the preset rule outwards to enable the second device to automatically establish wireless connection with the first device according to the wireless local area network hotspot information, and the operation is more convenient.
In summary, in the method for connecting a wireless local area network provided in the above embodiment, after the first device creates the wireless local area network using the first device as a wireless hotspot, the first device broadcasts the wireless local area network hotspot information generated according to the preset rule, so that the second device can automatically acquire the wireless local area network hotspot information created by the first device, and then the wireless connection between the first device and the second device is established, thereby achieving that the wireless connection between the second device and the first device is quickly established, the operation is simple, and the user experience is effectively improved.
Based on the same inventive concept as the foregoing embodiment, referring to fig. 3, another method for connecting a wireless local area network provided in an embodiment of the present invention is that the method for connecting a wireless local area network may be executed by a connecting device of a wireless local area network, the connecting device of a wireless local area network may be implemented in a software and/or hardware manner, and in a specific application, the connecting device of a wireless local area network may specifically be a second device, where the second device includes but is not limited to various devices such as a personal computer, a smart phone, a tablet computer, a palmtop computer, and a notebook computer, and in this embodiment, the method for connecting a wireless local area network is applied to the second device as an example, and the method for connecting a wireless local area network includes the following steps:
step S201: the second equipment acquires the wireless local area network hotspot information in the current environment, and selects a target wireless local area network hotspot meeting preset conditions according to the wireless local area network hotspot information;
it should be noted that, in the multimedia synchronous playing system, a device in the master mode and at least one device in the slave mode may be included, and the device in the slave mode needs to access the wireless local area network provided by the device in the master mode, so that the device in the master mode establishes wireless connections with the devices in the slave mode, respectively. The user can send control instructions including playing, pause playing and other instructions to the devices in the slave mode in the multimedia playing group through the devices in the master mode, so as to realize synchronous playing of multimedia. In this embodiment, the second device is taken as an example of a device in a slave mode.
Here, after the WiFi function is turned on, the second device may search for a wireless local area network hotspot in the current environment, so as to obtain information of the wireless local area network hotspot in the current environment. It can be understood that the wlan hotspot information obtained by the second device in the current environment may only include the wlan hotspot information provided by the first device in the master control mode, and may also include the wlan hotspot information provided by other devices. The second device needs to select a wireless local area network hotspot meeting a preset condition from the acquired wireless local area network hotspot information as a target wireless local area network hotspot, namely, a wireless local area network hotspot created by the first device. The preset condition can be set according to actual situation requirements, the wireless local area network hotspot meeting the preset condition can be that the name of the wireless local area network hotspot meets the preset condition, and the preset condition can be set by combining the wireless local area network hotspot information provided by the first device in the master control mode. In one embodiment, the wlan hotspot information includes a name of a wlan hotspot; and/or the second device selects a target wireless local area network hotspot meeting a preset condition according to the wireless local area network hotspot information, and the method comprises the following steps: and the second equipment determines the wireless local area network hotspot with the name meeting the preset condition as a target wireless local area network hotspot. If the first device in the master control mode sets the name of the wlan hotspot created by the first device to include a specific character, or sets a start character or an end character with the specific character as the name, etc., the preset condition may be set to a target wlan hotspot whose name includes the specific character, or sets the start character or the end character of the name as the specific character. For example, if the name of the wlan hotspot created by the first device is the specific character "paid ii" as the starting character of the name, the preset condition may be that the wlan hotspot whose starting character is "paid ii" is the starting character of the name.
Step S202: and the second equipment sends a connection establishment request according to the target wireless local area network hotspot information so as to request to establish wireless connection with the first equipment.
Specifically, the second device sends a connection establishment request to the first device according to the target wireless local area network hotspot determined in step S201 and according to the target wireless local area network hotspot information, and requests to access the target wireless local area network hotspot so as to establish a wireless connection with the first device.
It should be noted that, if the target wireless local area network hotspot is not set with an access password, the second device may directly send a connection establishment request to the first device according to the target wireless local area network hotspot information; if the target wireless local area network hotspot is set with the access password, the second device needs to prompt the user to input the password, and then sends a connection establishment request carrying the password input by the user to the first device according to the target wireless local area network hotspot information.
In an embodiment, before the second device sends a connection establishment request to the first device according to the target wireless local area network hotspot information to request to establish a wireless connection with the first device, the method may further include:
the second equipment outputs a prompt message for judging whether the target wireless local area network hotspot is connected or not;
and when receiving a confirmation instruction for connecting the target wireless local area network hotspot, the second device executes a step of sending a connection establishment request to the first device according to the target wireless local area network hotspot information.
It can be understood that there may be a plurality of target wlan hotspots which satisfy the preset condition and are acquired by the second device, and it is required that the user confirms which target wlan hotspot is selected as the target wlan hotspot to be connected, or the target wlan hotspot which satisfies the preset condition and is acquired by the second device may not be created by the first device in the master control mode, or the second device requires the user to confirm whether the password is input correctly or not again, and at this time, the second device outputs a prompt message whether to connect the target wlan hotspot so that the user confirms whether to connect the target wlan hotspot, where the prompt message may include target wlan hotspot information such as name and access password, so that when a confirmation instruction for connecting the target wlan hotspot is received, a connection establishment request is sent to the first device according to the target wireless local area network hotspot information. Therefore, the second equipment can improve the accuracy of wireless connection and further improve the user experience by outputting the prompt message.
In summary, in the wlan connection method provided in the above embodiment, the second device selects a target wlan hotspot meeting a preset condition from the acquired wlan hotspots, and sends a connection establishment request to the first device according to the target wlan hotspot information, so as to establish a wireless connection between the first device and the second device, thereby implementing a quick establishment of a wireless connection between the second device and the first device, and the method is simple in operation, and effectively improves user experience.
Based on the same inventive concept of the foregoing embodiments, this embodiment describes in detail the technical solutions of the foregoing embodiments by specific examples, in this embodiment, taking the first device as a master, the second device as a slave, and the master and the slave are both mobile phones as examples, and a music synchronous player is respectively installed in the master and the slave, and is used to create a party and join a party, so as to implement synchronous music playing by the master and the slave. Referring to fig. 4, the specific flow of the connection method of the wireless local area network is as follows:
step S301: opening a music synchronous player on the mobile phone;
here, there is a music synchronization player in the mobile phone, and the synchronization mode of the music synchronization player uses a W L AN transmission protocol, and the user opens the music synchronization player on the master and the slave, respectively.
Step S302: the host clicks 'create a party pair', and a hotspot is automatically generated;
here, when the user clicks the "create party" button of the music synchronization player on the host, if the hot spot of the host is not opened at this time, after the host recognizes the click operation, the hot spot is automatically opened, and a hot spot password setting interface is popped up, and after the user inputs a corresponding password, the hot spot is successfully set, as shown in fig. 5. Meanwhile, the host can also provide a setting interface of the number of slave computers which support the maximum access, and a user can select the corresponding number by sliding the slider of fig. 5. After the host generates the hot spot, the hot spot name is randomly generated by the host according to a certain rule, for example, the beginning character of the hot spot name is PAIDUI.
Step S303: the slave machine clicks 'join party pair', and the background automatically scans a WiFi list to match corresponding WiFi names;
here, when the slave wants to join the party created by the master, the user clicks a "join party" button on the operation interface of the music synchronization player, and the background of the slave automatically identifies whether the WiFi names generated by the default sorting exist in the WiFi list. It is understood that the same default direct match may be matched according to the name rule of the created hotspot during background scan identification.
Step S304: the slave computer enters a hot spot password input interface after matching the corresponding WiFi name so as to receive the password input by the user;
as shown in fig. 6, after the slave device matches the corresponding WiFi name, a hot spot password setting interface pops up to prompt the user to input the password set by the host device.
Step S305: the host verifies that the password passes, and the slave is allowed to join the party.
Here, the master verifies that the password carried in the connection establishment request sent by the slave is the same as the password set by the master, and establishes a wireless connection with the slave, thereby allowing the slave to join the party.
If the slave exits the party in the middle of the process when the host does not have a hot spot for disconnection or password resetting during the party playing process, the way that the slave enters the party again is the same as the above step S303. If the master actively quits the party in the playing process, all the slaves synchronously quit. The number of the slave machines which can be connected with the host machine can be kept consistent with that of the master mode, the master machine can be designed to be optional according to the hot spot mode, the host machine clicks 'creation of party pairs', the hot spot is automatically opened, and a hot spot password setting and slave machine connection number limiting setting interface is popped up.
In summary, a W L AN protocol is adopted for synchronous transmission, a connection mode is adopted for creating a hot spot for a host, a slave automatically scans related hot spot names in a background WiFi list after clicking to join the hot spot names, and if the hot spot with matched name exists, a corresponding password is input and then the hot spot is automatically connected with the host.
Based on the same inventive concept as the previous embodiment, an embodiment of the present invention provides an apparatus, as shown in fig. 7, including: a processor 110 and a memory 111 for storing computer programs capable of running on the processor 110; the processor 110 illustrated in fig. 7 is not used to refer to the number of the processors 110 as one, but is only used to refer to the position relationship of the processor 110 relative to other devices, and in practical applications, the number of the processors 110 may be one or more; similarly, the memory 111 illustrated in fig. 7 is also used in the same sense, that is, it is only used to refer to the position relationship of the memory 111 relative to other devices, and in practical applications, the number of the memory 111 may be one or more. The processor 110 is configured to implement the connection method of the wireless local area network when running the computer program.
The apparatus may further include: at least one network interface 112. The various components in the device are coupled together by a bus system 113. It will be appreciated that the bus system 113 is used to enable communications among the components. The bus system 113 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 113 in FIG. 7.
The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Dynamic Random Access Memory (DRAM), which may be a magnetic disk Memory or a magnetic tape Memory, may be a Random Access Memory (DRAM), and may also include a Dynamic Random Access Memory (SDRAM), a Dynamic Random Access Memory (RAM) and a Dynamic Random Access Memory (RAM) suitable for use as an external Access device, such as a Dynamic Random Access Memory (RAM), a Dynamic Random Access Memory (SDRAM), or a Dynamic Random Access Memory (SDRAM) and a Dynamic Random Access Memory (SDRAM) suitable for use as an Access RAM.
The memory 111 in embodiments of the present invention is used to store various types of data to support the operation of the device. Examples of such data include: any computer program for operation on the device, such as operating systems and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. Here, the program that implements the method of the embodiment of the present invention may be included in an application program.
Based on the same inventive concept of the foregoing embodiments, this embodiment further provides a computer storage medium, where a computer program is stored in the computer storage medium, where the computer storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read Only Memory (CD-ROM), and the like; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc. When the computer program stored in the computer storage medium is run by a processor, the connection method of the wireless local area network is realized. Please refer to the description of the embodiment shown in fig. 2 or fig. 3 for a specific step flow realized when the computer program is executed by the processor, which is not described herein again.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
As used herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, including not only those elements listed, but also other elements not expressly listed.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for connecting to a wireless local area network, the method comprising:
the method comprises the steps that first equipment creates a wireless local area network with the first equipment as a wireless hotspot and broadcasts hotspot information of the wireless local area network; the wireless local area network hotspot information is generated according to a preset rule;
and the first equipment receives a connection establishment request, the connection establishment request is sent by the second equipment according to the wireless local area network hotspot information, and the first equipment establishes wireless connection according to the connection establishment request.
2. The method of claim 1, wherein the first device creates a wireless local area network with the first device as a wireless hotspot, and broadcasts wireless local area network hotspot information, comprising:
the first equipment opens a hotspot so as to create a wireless local area network with the first equipment as a wireless hotspot;
the first equipment sets the name of the wireless local area network hotspot according to a preset rule and broadcasts the wireless local area network hotspot information comprising the name.
3. The method according to claim 1 or 2, wherein after the first device creates a wireless local area network with the first device as a wireless hotspot and broadcasts wireless local area network hotspot information, the method further comprises:
and the first equipment displays the hotspot information of the wireless local area network.
4. The method of claim 1, wherein after the first device creates a wireless local area network with the first device as a wireless hotspot and broadcasts wireless local area network hotspot information, the method further comprises:
the first equipment displays a connectable equipment quantity setting interface;
and the first equipment receives the operation of a user on the connectable equipment number setting interface, and sets the number selected by the operation as the maximum connectable equipment number of the first equipment.
5. The method of claim 2, wherein after the first device sets the name of the wlan hotspot according to a preset rule, the method further comprises:
the first equipment displays a password setting interface to prompt a user to set a password;
and the first equipment receives a password input by a user on the password setting interface and sets the password as an access password of the wireless local area network hotspot.
6. A method for connecting to a wireless local area network, the method comprising:
the second equipment acquires a wireless local area network hotspot in the current environment, and selects a target wireless local area network hotspot meeting preset conditions according to the wireless local area network hotspot information;
and the second equipment sends a connection establishment request according to the target wireless local area network hotspot information so as to request to establish wireless connection with the first equipment.
7. The method of claim 6, wherein the WLAN hotspot information comprises a name of a WLAN hotspot; and/or the second device selects a target wireless local area network hotspot meeting a preset condition according to the wireless local area network hotspot information, and the method comprises the following steps:
and the second equipment determines the wireless local area network hotspot with the name meeting the preset condition as a target wireless local area network hotspot.
8. The method of claim 6, wherein before the second device sends a connection establishment request according to the target wlan hotspot information to request a wireless connection to be established with the first device, the method further comprises:
the second equipment outputs a prompt message for judging whether the target wireless local area network hotspot is connected or not;
and when receiving a confirmation instruction for connecting the target wireless local area network hotspot, the second device executes a step of sending a connection establishment request according to the target wireless local area network hotspot information.
9. An apparatus, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor, when executing the computer program, implements the method of connecting to a wireless local area network according to any one of claims 1 to 8.
10. A computer storage medium, characterized in that a computer program is stored which, when executed by a processor, implements the method of connecting to a wireless local area network according to any one of claims 1 to 8.
CN202010176931.2A 2020-03-13 2020-03-13 Connection method and device of wireless local area network and computer storage medium Pending CN111465076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010176931.2A CN111465076A (en) 2020-03-13 2020-03-13 Connection method and device of wireless local area network and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010176931.2A CN111465076A (en) 2020-03-13 2020-03-13 Connection method and device of wireless local area network and computer storage medium

Publications (1)

Publication Number Publication Date
CN111465076A true CN111465076A (en) 2020-07-28

Family

ID=71679226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010176931.2A Pending CN111465076A (en) 2020-03-13 2020-03-13 Connection method and device of wireless local area network and computer storage medium

Country Status (1)

Country Link
CN (1) CN111465076A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399392A (en) * 2020-09-30 2021-02-23 音数汇元(上海)智能科技有限公司 Communication connection method, device, equipment and storage medium of home care terminal
CN113056032A (en) * 2021-04-20 2021-06-29 维沃移动通信(深圳)有限公司 Network connection method, device, equipment and storage medium
CN113891431A (en) * 2021-09-30 2022-01-04 长视科技股份有限公司 Device wireless access method, device, computer device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399392A (en) * 2020-09-30 2021-02-23 音数汇元(上海)智能科技有限公司 Communication connection method, device, equipment and storage medium of home care terminal
CN113056032A (en) * 2021-04-20 2021-06-29 维沃移动通信(深圳)有限公司 Network connection method, device, equipment and storage medium
CN113891431A (en) * 2021-09-30 2022-01-04 长视科技股份有限公司 Device wireless access method, device, computer device and storage medium

Similar Documents

Publication Publication Date Title
US10725972B2 (en) Continuous and concurrent device experience in a multi-device ecosystem
US10270616B2 (en) Wireless communication system, communication apparatus, setting information providing method, setting information obtaining method, and computer program
EP4033773B1 (en) Connection method for multimedia playing device, multimedia playing device and control terminal
US10187474B2 (en) Method and device for resource sharing between devices
CN111465076A (en) Connection method and device of wireless local area network and computer storage medium
EP4013003A1 (en) Communication protocol switching method, apparatus and system
CN105573609A (en) Content sharing method and device
JP2004110789A (en) Method for remote control of resource of personal computer using portable terminal having embedded operating system
CN103957218A (en) Shared media playing method and system
CN112860208A (en) Screen-projection-based software sharing method, device, equipment and storage medium
JP2017531974A (en) Network connection method, device, system, program, and recording medium
WO2016150191A1 (en) Data sharing method and device
CN113766477A (en) Device connection method, device, electronic device and computer readable medium
CN105516972B (en) Method for connecting network and device
CN111970676A (en) WiFi hotspot access method, device, equipment and storage medium
US9712480B2 (en) Apparatus and method for requesting and transferring contents
WO2024016503A1 (en) Communication method and electronic device
JP7153474B2 (en) METHOD AND SYSTEM USING COMMUNICATION TECHNOLOGY BETWEEN DEVICES WHEN TRANSMITTING FILES USING MESSENGER
US20230017859A1 (en) Meeting control method and apparatus, device, and medium
US9258774B2 (en) Method for information processing and electronic apparatus thereof
KR20180112523A (en) Electronic apparatus and method for control thereof
CN115225627A (en) File transmission method and device, computer equipment and storage medium
JP2015072668A (en) Application cooperative execution terminal, application cooperative execution method, and application cooperative execution terminal program
KR101760770B1 (en) Method for Sharing Information Among Network Devices
JP6169543B2 (en) Remote control system and remote control method

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