CN111866835A - Network configuration sharing method and device and computer readable storage medium - Google Patents

Network configuration sharing method and device and computer readable storage medium Download PDF

Info

Publication number
CN111866835A
CN111866835A CN202010736303.5A CN202010736303A CN111866835A CN 111866835 A CN111866835 A CN 111866835A CN 202010736303 A CN202010736303 A CN 202010736303A CN 111866835 A CN111866835 A CN 111866835A
Authority
CN
China
Prior art keywords
network configuration
configuration data
wireless hotspot
network
target
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
CN202010736303.5A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010736303.5A priority Critical patent/CN111866835A/en
Publication of CN111866835A publication Critical patent/CN111866835A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Landscapes

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

Abstract

The application provides a network configuration sharing method, a network configuration sharing device and a computer readable storage medium, wherein the network configuration sharing method comprises the following steps: the method comprises the steps that a sending end obtains network configuration data of a target wireless hotspot, generates a target data frame based on the network configuration data, and then sends the target data frame to a receiving end based on NFC connection with the receiving end; and the receiving end analyzes the network configuration data from the received target data frame and then accesses to the corresponding target wireless hotspot based on the network configuration data. Through the implementation of the scheme, the sending end can share the network configuration data of the wireless hotspot to the receiving end in an NFC connection mode, so that the receiving end can access the wireless hotspot according to the received network configuration data, the convenience of wireless hotspot access is effectively simplified, and the success rate of the wireless hotspot access is fully ensured.

Description

Network configuration sharing method and device and computer readable storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a network configuration sharing method and apparatus, and a computer-readable storage medium.
Background
With the rapid development of terminal technology, electronic devices such as mobile phones and tablet computers are used more and more frequently in work and life of users. In practical applications, a user often accesses the electronic device to a wireless hotspot to ensure that the electronic device runs an application at a better network speed.
At present, when an electronic device needs to access a wireless hotspot without an access password, a user is usually required to manually input the access password, on one hand, when the user cannot accurately memorize the access password, the network access success rate cannot be guaranteed, on the other hand, manual input of the access password is time-consuming and labor-consuming, and the network access convenience is low.
Disclosure of Invention
The embodiment of the application provides a network configuration sharing method and device and a computer readable storage medium, which can at least solve the problems that the success rate of network access cannot be guaranteed and the convenience of network access is low due to the fact that a mode of manually inputting an access password is adopted to access a wireless hotspot in the related technology.
A first aspect of the present embodiment provides a network configuration sharing method, applied to a sending end, including:
acquiring network configuration data of a target wireless hotspot; wherein the network configuration data comprises a service set identifier, an access password;
generating a target data frame based on the network configuration data;
and sending the target data frame to a receiving end based on Near Field Communication (NFC) connection with the receiving end.
A second aspect of the present embodiment provides a network configuration sharing method, applied to a receiving end, including:
receiving a target data frame sent by a sending end based on NFC connection with the sending end;
analyzing network configuration data from the target data frame; wherein the network configuration data comprises a service set identifier, an access password;
and accessing to the corresponding target wireless hotspot based on the network configuration data.
A third aspect of the present embodiment provides a network configuration sharing apparatus, applied to a sending end, including:
the acquisition module is used for acquiring network configuration data of the target wireless hotspot; wherein the network configuration data comprises a service set identifier, an access password;
a generation module for generating a target data frame based on the network configuration data;
and the sending module is used for sending the target data frame to a receiving end based on the NFC connection with the receiving end.
A fourth aspect of the present embodiment provides a network configuration sharing apparatus, which is applied to a receiving end, and includes:
the receiving module is used for receiving a target data frame sent by a sending end based on NFC connection with the sending end;
the analysis module is used for analyzing the network configuration data from the target data frame; wherein the network configuration data comprises a service set identifier, an access password;
and the access module is used for accessing to the corresponding target wireless hotspot based on the network configuration data.
A fifth aspect of embodiments of the present application provides an electronic apparatus, including: the system comprises a memory, a processor and a bus, wherein the bus is used for realizing the connection and communication between the memory and the processor; the processor is configured to execute a first computer program and a second computer program stored on the memory, and when the processor executes the first computer program, the processor implements the steps in the method provided by the first aspect of the embodiment of the present application, and when the processor executes the second computer program, the processor implements the steps in the method provided by the second aspect of the embodiment of the present application.
A sixth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a first computer program or a second computer program is stored, wherein when executed by a processor, the first computer program implements the steps in the method provided by the first aspect of the embodiments of the present application, and when executed by a processor, the second computer program implements the steps in the method provided by the second aspect of the embodiments of the present application.
As can be seen from the above, according to the network configuration sharing method, device, and computer-readable storage medium provided by the present application, the sending end obtains the network configuration data of the target wireless hotspot, generates the target data frame based on the network configuration data, and then sends the target data frame to the receiving end based on the NFC connection with the receiving end; and the receiving end analyzes the network configuration data from the received target data frame and then accesses to the corresponding target wireless hotspot based on the network configuration data. Through the implementation of the scheme, the sending end can share the network configuration data of the wireless hotspot to the receiving end in an NFC connection mode, so that the receiving end can access the wireless hotspot according to the received network configuration data, the convenience of wireless hotspot access is effectively simplified, and the success rate of the wireless hotspot access is fully ensured.
Drawings
Fig. 1 is a schematic basic flow chart of a network configuration sharing method applied to a sending end according to a first embodiment of the present application;
fig. 2 is a schematic diagram of a network detail interface according to a first embodiment of the present application;
fig. 3 is a basic flowchart of a network configuration sharing method applied to a receiving end according to a first embodiment of the present disclosure;
fig. 4 is a schematic diagram of a communication system architecture according to a second embodiment of the present application;
fig. 5 is a schematic detailed flow chart of a network configuration sharing method according to a second embodiment of the present application;
fig. 6 is a schematic diagram of program modules of a network configuration sharing apparatus applied to a sending end according to a third embodiment of the present application;
fig. 7 is a schematic diagram of program modules of a network configuration sharing device applied to a receiving end according to a third embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the defects that the success rate of network access cannot be guaranteed and the convenience of network access is low due to the fact that an access password is manually input to access a wireless hotspot in the related art, a first embodiment of the application provides a network configuration sharing method, which is applied to an electronic device serving as a sending end, wherein the electronic device can be a mobile phone, a tablet computer and the like. As shown in fig. 1, which is a basic flowchart of a network configuration sharing method applied to a sending end according to this embodiment, the network configuration sharing method includes the following steps:
step 101, network configuration data of a target wireless hotspot is obtained.
Specifically, in this embodiment, the network configuration data includes a service set identifier SSID and an access password. The SSID may be understood as a network name of a wireless hotspot (e.g., WiFi) for marking different wireless hotspots, and the access password is a key to be input when accessing the wireless hotspot. Of course, in other embodiments, the network configuration data may further include a channel number, an encryption manner, and the like, where the encryption manner may include a WEP encryption manner, a WPA encryption manner, and the like.
It should be noted that, in practical applications, the target wireless hotspot of the present embodiment may be a wireless hotspot currently accessed by the user, or a wireless hotspot successfully accessed and saved by the user in a historical time period. When the sending end is accessed to the wireless hotspot for the first time, the access password is input in a manual or code scanning mode, so that the SSID and the access password of the wireless hotspot can be stored after the sending end is successfully accessed to the wireless hotspot.
In addition, in this embodiment, the network configuration data corresponding to the wireless hotspot may be triggered to be acquired based on an instruction input by a user on a connected network detail page or a stored network detail interface of the electronic device, as shown in fig. 2, which is a schematic diagram of a network detail interface provided in this embodiment, names (e.g., a-D) of wireless hotspots stored by a plurality of users are shown in the diagram, and a sharing key is arranged on the right side of the wireless hotspot list, and when the key is clicked by a user, the network configuration data corresponding to the wireless hotspot is triggered to be acquired.
In some embodiments of this embodiment, the obtaining the network configuration data of the target wireless hotspot includes: respectively acquiring network connection priorities of a plurality of available wireless hotspots; determining the available wireless hotspot with the highest network connection priority as a target wireless hotspot; and acquiring network configuration data of the target wireless hotspot.
Specifically, in practical application, when network configuration sharing is performed, there may be a plurality of wireless hotspots available for sharing, which is different from the above-mentioned wireless hotspot selected by the user to be shared. It should be understood that the network connection priority of the present embodiment may be associated with the network rate, the network security, and the like of the corresponding wireless hotspot, wherein the network connection priority is positively correlated with both the network rate and the network security. According to the embodiment, the target wireless hotspots are automatically screened, so that the convenience and the intelligence of network configuration sharing can be improved.
Further, in some embodiments of this embodiment, the obtaining the network connection priorities of the plurality of available wireless hotspots respectively includes: respectively acquiring the network connection authority level of a receiving end and the authority level requirements of a plurality of available wireless hotspots; comparing the network connection authority levels with the authority level requirements respectively; and determining the network connection priority of the plurality of available wireless hotspots according to the comparison result.
Specifically, in practical applications, different network connection permission levels can be respectively configured for different receiving-end electronic devices (such as a mobile phone, a smart television and the like), each wireless hotspot is also correspondingly configured with a permission level required for access, then the network connection permission level is compared with the permission level requirement, an effective wireless hotspot meeting the permission level requirement is screened out from a plurality of available wireless hotspots, for example, when the network connection permission level is second level (second to the highest-connection-permission level), the permission level requirement of the effective wireless hotspot can be second level, third level, fourth level and the like, then a higher network connection priority can be set for the effective wireless hotspot with the higher permission level requirement, on one hand, the wireless hotspot with the higher permission level requirement has higher security, and on the other hand, the wireless hotspot with the higher permission level requirement, the electronic devices meeting the requirements are relatively fewer, so that the quantity of the electronic devices which are accessed simultaneously is less, and the network speed enjoyed by the electronic devices is more excellent.
Step 102, generating a target data frame based on the network configuration data.
Specifically, the data frame of this embodiment includes three components, i.e., a frame header, a data portion, and a frame tail, and then writes the network configuration data into the data portion of the null data frame, and writes necessary control information into the frame header and the frame tail, so as to generate the target data frame.
In some implementations of this embodiment, generating the target data frame based on the network configuration data includes: acquiring the data length of network configuration data; when the data length is larger than a preset length threshold value, dividing the network configuration data into a plurality of data units; a plurality of target data frames are respectively generated based on the plurality of data units.
Specifically, in practical application, in consideration of that configuration information of different access hotspots is different, sizes of corresponding network configuration data are also different, for example, the length of an access password of a part of access hotspots is longer, and the number of bytes occupied when a data frame is written is larger, which may cause that a single data frame cannot completely carry the network configuration data.
Furthermore, it should be noted that, in order to ensure the correctness of the receiving end in data parsing, in the embodiment, when data is sliced, each data unit label may be generated based on the association between the sliced data units, where the label is used to indicate which part of the overall network configuration data the corresponding data unit is located in, and the receiving end may also determine whether the currently received data frame corresponds to the complete network configuration data through all the labels.
And 103, sending the target data frame to the receiving end based on the near field communication connection with the receiving end.
Currently, more and more electronic devices support Near Field Communication (NFC) functions. Data transmission can be conveniently and safely realized between the electronic devices through NFC. The Android Beam is a data sharing mode based on NFC in an Android system, after an application in the Android system supports an Android Beam function, when the application is in use, two electronic devices supporting the Android Beam, namely a sending end and a receiving end, are connected in a matched mode, and data can be shared according to a flow of application design. It should be understood that the NFC connection mode is more convenient than connection modes such as bluetooth, the data sharing efficiency is higher, the channel security of the NFC connection is higher, and the security of the data sharing can be effectively ensured. In addition, it should be further noted that, in order to further ensure the security of data transmission, the present embodiment may also transmit the target data frame to the receiving end through an encrypted channel.
In some embodiments of this embodiment, after sending the target data frame to the receiving end, the method further includes: acquiring a network connection state fed back by a receiving terminal after network connection attempt is carried out on the basis of network configuration data carried by a target data frame; and judging whether a preset network configuration re-sharing condition is met or not based on the network connection state.
Specifically, when the network configuration re-sharing condition is met, the target wireless hotspot is re-determined from the multiple available wireless hotspots, and then the step of acquiring the network configuration data of the target wireless hotspot is returned to. It should be understood that the network connection status of the present embodiment may include network connection success, network connection failure, and further, the network rate, security, etc. of the successfully connected network may be further subdivided for the network connection success status. In practical application, after a receiving end receives a data frame sent by a sending end, network configuration data is analyzed from the data frame to perform network connection attempt, and then a network connection state is fed back to the sending end, so that the sending end senses the network connection behavior of the receiving end, if the network connection state is not ideal, for example, network connection fails, or the network rate provided by a successfully connected wireless hotspot is low, it can be determined that a network configuration re-sharing condition is met, a wireless hotspot to be shared is re-determined from other stored available wireless hotspots, and the network configuration sharing process from the step 101 to the step 103 is continuously executed for the wireless hotspot, so that the effectiveness of network access performed by the receiving end is improved.
Correspondingly, the first embodiment of the present invention further provides a network configuration sharing method, which is applied to a receiving end, and as shown in fig. 3, the basic flowchart of the network configuration sharing method applied to the receiving end provided in this embodiment is shown, where the network configuration sharing method includes the following steps:
step 301, receiving a target data frame sent by a sending end based on the NFC connection with the sending end;
step 302, analyzing network configuration data from a target data frame;
and step 303, accessing to the corresponding target wireless hotspot based on the network configuration data.
Specifically, in this embodiment, after the receiving-end electronic device receives a data frame sent by the sending end through the NFC connection, network configuration data is analyzed from the data frame based on the negotiated data analysis rule, and then a corresponding wireless hotspot is accessed based on an SSID, an access password, and the like included in the network configuration data, so that network configuration data can be shared between the electronic devices (for example, between a mobile phone and a smart television).
It should be noted that, in some embodiments of this embodiment, the receiving end applies the configuration data filtering rule, when the receiving end electronic device receives data sent by the sending end through NFC connection, the system matches the rule, and sends the information content to an application that needs to be processed after matching is successful, and the application of the sending end can complete connection of the wireless network according to the received network configuration data.
Based on the technical scheme of the embodiment of the application, the sending end obtains the network configuration data of the target wireless hotspot, generates a target data frame based on the network configuration data, and then sends the target data frame to the receiving end based on the NFC connection with the receiving end; and the receiving end analyzes the network configuration data from the received target data frame and then accesses to the corresponding target wireless hotspot based on the network configuration data. Through the implementation of the scheme, the sending end can share the network configuration data of the wireless hotspot to the receiving end in an NFC connection mode, so that the receiving end can access the wireless hotspot according to the received network configuration data, the convenience of wireless hotspot access is effectively simplified, and the success rate of the wireless hotspot access is fully ensured.
A second embodiment of the present application provides a refined network configuration sharing method, which is applied to the communication system architecture shown in fig. 4, where the communication system includes: fig. 5 shows a network configuration sharing method provided in this embodiment, where D1 and D2 in fig. 4 respectively represent a transmitting-end electronic device and a receiving-end electronic device, and an AP represents a wireless hotspot, the network configuration sharing method includes:
step 501, the sending end respectively obtains network connection priorities of a plurality of available wireless hotspots.
Specifically, the network connection priority of the present embodiment may be associated with the network rate, the network security, and the like of the corresponding wireless hotspot, where the network connection priority is positively associated with both the network rate and the network security.
Step 502, the sending end determines the available wireless hotspot with the highest network connection priority as a target wireless hotspot.
Specifically, when network configuration sharing is performed, there may be a plurality of wireless hotspots available for sharing, in this embodiment, network connection priority comparison may be performed on each available wireless hotspot, and then the wireless hotspot with the highest network connection priority is automatically determined as the target wireless hotspot.
Step 503, the sending end obtains the stored network configuration data of the target wireless hotspot.
Specifically, in this embodiment, the network configuration data includes an SSID and an access password, where the SSID may be understood as a network name of a wireless hotspot and is used to mark different wireless hotspots, and the access password is a key that needs to be input when accessing the wireless hotspot.
Step 504, when the data length of the network configuration data is greater than the preset length threshold, the sending end divides the network configuration data into a plurality of data units.
In step 505, the transmitting end generates a plurality of target data frames based on the plurality of data units, respectively.
Specifically, in this embodiment, when writing the network configuration data into the empty data frame, the data length of the network configuration data is first obtained, and the data length is compared with the unit length of the data frame, if the data length is greater than the unit length of the data frame, the network configuration data is segmented, and then the segmented data units are respectively written into different data frames, so as to ensure the integrity and validity of network configuration sharing.
Step 506, the sending end sends the target data frame to the receiving end based on the NFC connection with the receiving end.
Specifically, the sending end and the receiving end of this embodiment pair through NFC and connect the back, can carry out data transmission, and be more convenient and the security is higher for connection methods such as bluetooth.
Step 507, the receiving end analyzes the network configuration data from the received target data frame.
Step 508, the receiving end accesses to the corresponding target wireless hotspot based on the network configuration data.
Specifically, in this embodiment, after the receiving-end electronic device receives the data frame sent by the sending end through the NFC connection, the network configuration data is analyzed from the data frame based on the negotiated data analysis rule, and then the corresponding wireless hotspot is accessed based on the SSID, the access password, and the like included in the network configuration data, so that convenience and success rate of accessing the wireless hotspot by the receiving-end electronic device can be effectively improved.
It should be understood that, the size of the serial number of each step in this embodiment does not mean the execution sequence of the step, and the execution sequence of each step should be determined by its function and inherent logic, and should not be limited uniquely to the implementation process of the embodiment of the present application.
The embodiment of the application discloses a network configuration sharing method, wherein a sending end acquires network configuration data of a target wireless hotspot, generates a target data frame based on the network configuration data, and then sends the target data frame to a receiving end based on NFC connection with the receiving end; and the receiving end analyzes the network configuration data from the received target data frame and then accesses to the corresponding target wireless hotspot based on the network configuration data. Through the implementation of the scheme, the sending end can share the network configuration data of the wireless hotspot to the receiving end in an NFC connection mode, so that the receiving end can access the wireless hotspot according to the received network configuration data, the convenience of wireless hotspot access is effectively simplified, and the success rate of the wireless hotspot access is fully ensured.
Fig. 6 is a network configuration sharing device according to a third embodiment of the present application. The network configuration sharing device is applied to a sending-end electronic device, as shown in fig. 6, and mainly includes:
an obtaining module 601, configured to obtain network configuration data of a target wireless hotspot; wherein the network configuration data comprises a service set identifier and an access password;
a generating module 602, configured to generate a target data frame based on the network configuration data;
a sending module 603, configured to send the target data frame to the receiving end based on the NFC connection with the receiving end.
In some embodiments of this embodiment, the obtaining module 601 is specifically configured to: respectively acquiring network connection priorities of a plurality of available wireless hotspots; determining the available wireless hotspot with the highest network connection priority as a target wireless hotspot; and acquiring network configuration data of the target wireless hotspot.
Further, in some embodiments of this embodiment, when performing the step of respectively acquiring the network connection priorities of the multiple available wireless hotspots, the acquiring module 601 is specifically configured to: respectively acquiring the network connection authority level of a receiving end and the authority level requirements of a plurality of available wireless hotspots; comparing the network connection authority levels with the authority level requirements respectively; and determining the network connection priority of the plurality of available wireless hotspots according to the comparison result.
Further, in some embodiments of this embodiment, the network configuration sharing apparatus applied to the sending end further includes: the device comprises a judging module and a determining module, wherein the judging module is used for: after the target data frame is sent to the receiving end, the network connection state fed back by the receiving end after the network connection attempt is carried out on the basis of the network configuration data carried by the target data frame is obtained; and judging whether a preset network configuration re-sharing condition is met or not based on the network connection state. Accordingly, the determining module is configured to: when the network configuration re-sharing condition is satisfied, the target wireless hotspot is re-determined from the plurality of available wireless hotspots, and the obtaining module 601 is configured to perform its function again after the target wireless hotspot is re-determined from the plurality of available wireless hotspots.
In some embodiments of this embodiment, the generating module 602 is specifically configured to: acquiring the data length of network configuration data; when the data length is larger than a preset length threshold value, dividing the network configuration data into a plurality of data units; a plurality of target data frames are respectively generated based on the plurality of data units.
Correspondingly, the present embodiment further provides a network configuration sharing device applied to a receiving end, as shown in fig. 7, the network configuration sharing device mainly includes:
a receiving module 701, configured to receive a target data frame sent by a sending end based on an NFC connection with the sending end;
a parsing module 702, configured to parse the network configuration data from the target data frame; wherein the network configuration data comprises a service set identifier and an access password;
an access module 703 is configured to access to a corresponding target wireless hotspot based on the network configuration data.
It should be noted that, the network configuration sharing method in the first and second embodiments can be implemented based on the network configuration sharing device provided in this embodiment, and it can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the network configuration sharing device described in this embodiment may refer to the corresponding process in the foregoing method embodiment, and details are not described here.
According to the network configuration sharing device provided by the embodiment, a sending end obtains network configuration data of a target wireless hotspot, generates a target data frame based on the network configuration data, and then sends the target data frame to a receiving end based on NFC connection with the receiving end; and the receiving end analyzes the network configuration data from the received target data frame and then accesses to the corresponding target wireless hotspot based on the network configuration data. Through the implementation of the scheme, the sending end can share the network configuration data of the wireless hotspot to the receiving end in an NFC connection mode, so that the receiving end can access the wireless hotspot according to the received network configuration data, the convenience of wireless hotspot access is effectively simplified, and the success rate of the wireless hotspot access is fully ensured.
Referring to fig. 8, fig. 8 is an electronic device according to a fourth embodiment of the present disclosure. The electronic device can be used for implementing the network configuration sharing method in the foregoing embodiment. As shown in fig. 8, the electronic device mainly includes:
a memory 801, a processor 802, a bus 803, and computer programs stored on the memory 801 and executable on the processor 802, the memory 801 and the processor 802 being connected by the bus 803. The processor 802 executes the computer program to implement the network configuration sharing method in the foregoing embodiments. Wherein the number of processors may be one or more.
The Memory 801 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 801 is used to store executable program code, and the processor 802 is coupled to the memory 801.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 8.
The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the network configuration sharing method in the foregoing embodiments. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the network configuration sharing method, device and computer-readable storage medium provided by the present application, those skilled in the art will appreciate that the present invention is not limited to the foregoing description, but can be modified in various forms and embodiments.

Claims (10)

1. A network configuration sharing method is applied to a sending end and is characterized by comprising the following steps:
acquiring network configuration data of a target wireless hotspot; wherein the network configuration data comprises a service set identifier, an access password;
generating a target data frame based on the network configuration data;
and sending the target data frame to a receiving end based on Near Field Communication (NFC) connection with the receiving end.
2. The method according to claim 1, wherein the obtaining network configuration data of the target wireless hotspot comprises:
respectively acquiring network connection priorities of a plurality of available wireless hotspots;
determining the available wireless hotspot with the highest network connection priority as a target wireless hotspot;
and acquiring network configuration data of the target wireless hotspot.
3. The method according to claim 2, wherein the obtaining the network connection priorities of the plurality of available wireless hotspots respectively comprises:
respectively acquiring the network connection authority level of the receiving end and the authority level requirements of a plurality of available wireless hotspots;
comparing the network connection permission levels with the permission level requirements respectively;
and determining the network connection priority of the plurality of available wireless hotspots according to the comparison result.
4. The network configuration sharing method according to claim 2, wherein after the sending the target data frame to the receiving end, the method further comprises:
acquiring a network connection state fed back by the receiving end after the receiving end attempts network connection based on the network configuration data carried by the target data frame;
judging whether preset network configuration re-sharing conditions are met or not based on the network connection state;
and when the network configuration re-sharing condition is met, re-determining the target wireless hotspot from the plurality of available wireless hotspots, and then returning to the step of acquiring the network configuration data of the target wireless hotspot.
5. The network configuration sharing method according to any one of claims 1 to 4, wherein the generating a target data frame based on the network configuration data includes:
acquiring the data length of the network configuration data;
when the data length is larger than a preset length threshold value, the network configuration data is divided into a plurality of data units;
a plurality of target data frames are respectively generated based on the plurality of data units.
6. A network configuration sharing method is applied to a receiving end and is characterized by comprising the following steps:
receiving a target data frame sent by a sending end based on NFC connection with the sending end;
analyzing network configuration data from the target data frame; wherein the network configuration data comprises a service set identifier, an access password;
and accessing to the corresponding target wireless hotspot based on the network configuration data.
7. The utility model provides a network configuration sharing device, is applied to the sending end, its characterized in that includes:
the acquisition module is used for acquiring network configuration data of the target wireless hotspot; wherein the network configuration data comprises a service set identifier, an access password;
a generation module for generating a target data frame based on the network configuration data;
and the sending module is used for sending the target data frame to a receiving end based on the NFC connection with the receiving end.
8. A network configuration sharing device is applied to a receiving end and is characterized by comprising:
the receiving module is used for receiving a target data frame sent by a sending end based on NFC connection with the sending end;
the analysis module is used for analyzing the network configuration data from the target data frame; wherein the network configuration data comprises a service set identifier, an access password;
and the access module is used for accessing to the corresponding target wireless hotspot based on the network configuration data.
9. An electronic device, comprising: the system comprises a memory, a processor and a bus, wherein the bus is used for realizing connection communication between the memory and the processor; the processor is configured to execute a first computer program and a second computer program stored on the memory, the processor implementing the steps of the method of any one of claims 1 to 5 when executing the first computer program and implementing the steps of the method of claim 6 when executing the second computer program.
10. A computer-readable storage medium, on which a first computer program or a second computer program is stored, which, when being executed by a processor, carries out the steps of the method of one of claims 1 to 5, and which, when being executed by a processor, carries out the steps of the method of claim 6.
CN202010736303.5A 2020-07-28 2020-07-28 Network configuration sharing method and device and computer readable storage medium Pending CN111866835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010736303.5A CN111866835A (en) 2020-07-28 2020-07-28 Network configuration sharing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010736303.5A CN111866835A (en) 2020-07-28 2020-07-28 Network configuration sharing method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111866835A true CN111866835A (en) 2020-10-30

Family

ID=72948410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010736303.5A Pending CN111866835A (en) 2020-07-28 2020-07-28 Network configuration sharing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111866835A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686530A (en) * 2008-09-25 2010-03-31 Lg电子株式会社 Mobile terminal and method for accessing wireless internet of mobile terminal
CN102548023A (en) * 2011-12-27 2012-07-04 惠州Tcl移动通信有限公司 Wireless fidelity connecting method and wireless fidelity connecting device
CN104936266A (en) * 2015-05-20 2015-09-23 青岛海尔科技有限公司 Network access method and network access device
CN106411621A (en) * 2016-12-09 2017-02-15 中国科学院深圳先进技术研究院 Internet of Things device, network configuring method, apparatus, system and terminal for the same
CN107465584A (en) * 2017-07-21 2017-12-12 广东美的厨房电器制造有限公司 Method for network access and device, the intelligent appliance of intelligent appliance
CN110545538A (en) * 2019-07-31 2019-12-06 浙江大华技术股份有限公司 Method for configuring wireless terminal network, mobile terminal, wireless terminal and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686530A (en) * 2008-09-25 2010-03-31 Lg电子株式会社 Mobile terminal and method for accessing wireless internet of mobile terminal
CN102548023A (en) * 2011-12-27 2012-07-04 惠州Tcl移动通信有限公司 Wireless fidelity connecting method and wireless fidelity connecting device
CN104936266A (en) * 2015-05-20 2015-09-23 青岛海尔科技有限公司 Network access method and network access device
CN106411621A (en) * 2016-12-09 2017-02-15 中国科学院深圳先进技术研究院 Internet of Things device, network configuring method, apparatus, system and terminal for the same
CN107465584A (en) * 2017-07-21 2017-12-12 广东美的厨房电器制造有限公司 Method for network access and device, the intelligent appliance of intelligent appliance
CN110545538A (en) * 2019-07-31 2019-12-06 浙江大华技术股份有限公司 Method for configuring wireless terminal network, mobile terminal, wireless terminal and system

Similar Documents

Publication Publication Date Title
US10819705B2 (en) Method for connecting to Wi-Fi hotspot device, Wi-Fi hotspot device, and user equipment
US10205778B2 (en) Method and apparatus for sharing application data
EP2753108B1 (en) Wireless local area network authentication method and mobile terminal
EP3490304B1 (en) Method for identifying access point and hotspot, and related products
CN109428773B (en) Communication method and device
CN103491648A (en) Communication method and system based on WIFI
CN110719345B (en) Virtual machine MAC address generation method, system, equipment and computer medium
CN110113250B (en) Method for sharing wireless access point through instant messaging software
CN110635957B (en) Method and device for network distribution of Internet of things equipment and mobile terminal
CN113301568A (en) Network distribution method and device and intelligent household equipment
CN102724122A (en) Reliable serial port transmission method and device based on hardware system
EP3585106A1 (en) Method and apparatus for processing service set identifier, and terminal
CN111625371A (en) Text transmission method, device, PC (personal computer) terminal, mobile terminal and system
CN113992662A (en) File transmission method, device and storage medium
CN107465538B (en) Internet of things terminal migration method and gateway
CN112422485B (en) Communication method and device of transmission control protocol
CN111629020A (en) Remote input method, device, PC (personal computer) terminal, android device and system
CN113727298A (en) Layer two identifier determining method and device and terminal
CN111866835A (en) Network configuration sharing method and device and computer readable storage medium
CN109413180B (en) Data acquisition method, system and equipment and storage medium
CN103457624A (en) External electronic device and method for wirelessly accessing storage device
EP4092990A2 (en) Data processing method and apparatus
CN113329096B (en) Message transmission method and device, electronic equipment and storage medium
CN112887155B (en) QoS (quality of service) associated information synchronization method and related product
CN110045929B (en) Mounting point management method and related device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030

RJ01 Rejection of invention patent application after publication