WO2019149042A1 - 一种网络配置方法、装置、电子设备和系统 - Google Patents
一种网络配置方法、装置、电子设备和系统 Download PDFInfo
- Publication number
- WO2019149042A1 WO2019149042A1 PCT/CN2019/071153 CN2019071153W WO2019149042A1 WO 2019149042 A1 WO2019149042 A1 WO 2019149042A1 CN 2019071153 W CN2019071153 W CN 2019071153W WO 2019149042 A1 WO2019149042 A1 WO 2019149042A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- access configuration
- network
- progress
- data packet
- mobile device
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B11/00—Transmission systems employing ultrasonic, sonic or infrasonic waves
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W74/00—Wireless channel access
- H04W74/002—Transmission of channel access control information
- H04W74/006—Transmission of channel access control information in the downlink, i.e. towards the terminal
Definitions
- the embodiments of the present disclosure relate to the field of network communication technologies, and in particular, to a network configuration method, apparatus, electronic device, and system.
- the Internet of Things As a new generation of information technology, the Internet of Things is developing rapidly. At the same time, Internet of Things devices derived from the Internet of Things are gradually becoming popular in people's lives and work. At present, the Internet of Things device can access the target WIFI network by means of a one-click configuration of the SmartConfig distribution network by means of the network configuration information sent by the networked mobile device.
- IoT devices generally rely on their own hardware devices to feed back simple prompt information, for example, through lighting effects (red light indicates connection, green light indicates successful connection), voice (continuous drip sound) Indicates that the connection progresses, etc.; and, because the mobile device is unable to receive the feedback progress of the distribution network of the IoT device, it can only reflect the progress of the distribution network through its own timeout mechanism.
- the purpose of the embodiments of the present specification is to provide a network configuration method, apparatus, electronic device, and system to solve the problem that the distribution progress of the Internet of Things device in the prior art is inaccurate and not intuitive.
- a network configuration method comprising:
- the access configuration progress is sent to the mobile device via the sound wave data.
- a network configuration method comprising:
- a network configuration apparatus comprising:
- the receiving module receives a data packet sent by the mobile device, where the data packet carries an access configuration parameter of the target access network;
- the sending module sends the access configuration progress to the mobile device through the sound wave data.
- a network configuration apparatus comprising:
- the sending module sends a data packet to the IoT device, where the data packet carries an access configuration parameter of the target access network;
- the receiving module receives the progress of the access configuration returned by the IoT device through the sound wave data, and displays the access configuration progress, where the access configuration progress is used to reflect the progress of the IoT device in the network configuration process.
- a network configuration system comprising:
- the IoT device receives a data packet sent by the mobile device, where the data packet carries an access configuration parameter of the target access network, parses the access configuration parameter, and sends an access configuration progress to the mobile device by using the sound wave data. ;
- the mobile device sends a data packet to the Internet of Things device, and receives an access configuration progress returned by the IoT device through the sound wave data, and displays the data.
- an IoT device comprising: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the following operations :
- the access configuration progress is sent to the mobile device via the sound wave data.
- a mobile device comprising: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- a computer readable storage medium storing one or more programs, the one or more programs being executed when being executed by an Internet of Things device comprising a plurality of applications
- the IoT device performs the following operations:
- the access configuration progress is sent to the mobile device via the sound wave data.
- a ninth aspect a computer readable storage medium storing one or more programs, the one or more programs, when executed by a mobile device including a plurality of applications, The mobile device does the following:
- the sound wave data is fed back to the mobile device to reflect the progress of the access configuration of the distribution network, so that the mobile device can effectively display the access configuration progress.
- the timeliness and accuracy of the distribution network progress feedback are improved, and the problem that the distribution progress of the Internet of Things equipment is inaccurate and not intuitive is avoided.
- FIG. 1a is a flowchart of a network configuration method according to an embodiment of the present disclosure
- FIG. 1b is a second flowchart of a network configuration method according to an embodiment of the present disclosure
- FIG. 2a is a third flowchart of a network configuration method provided by an embodiment of the present disclosure.
- 2b is a fourth flowchart of a network configuration method according to an embodiment of the present disclosure.
- FIG. 3 is a fifth flowchart of a network configuration method provided by an embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram of an Internet of Things device provided by an embodiment of the present specification.
- FIG. 5 is a schematic structural diagram of a mobile device according to an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of a network configuration system according to an embodiment of the present disclosure.
- FIG. 7 is a schematic structural diagram of a network configuration apparatus according to an embodiment of the present disclosure.
- FIG. 8 is a second schematic structural diagram of a network configuration apparatus according to an embodiment of the present disclosure.
- the network configuration method based on the embodiment of the present specification is a one-key configuration (SmartConfig) scheme, and the so-called SmartConfig distribution network refers to an Internet of Things device to be configured to monitor the surrounding wireless fidelity (WIreless-Fidelity, WIFI).
- the data packet of the multiple channels in the network signal after receiving the access configuration parameter carried by the mobile device and carrying the target access network, parsing and obtaining the access configuration parameter (including at least: the network identifier and the network password), and according to The access configuration parameters are connected to the target access network.
- a schematic diagram of a network configuration method provided by an embodiment of the present disclosure may be an Internet of Things device, which may be understood as an electronic device capable of connecting to an Internet or a local area network through a wireless communication module.
- Equipment the method mainly includes the following steps:
- Step 102 Receive a data packet sent by the mobile device.
- the data packet here can be understood as a sequence of data packets transmitted by the mobile device in the local WIFI network at a preset frequency.
- the data packet sequence may be a sequence of data packets consisting of a preset number of data packets continuously transmitted within a preset time length, where the data packet sequence may have consecutive packet sequence numbers, or may have the same packet interval interval. .
- the IoT device can select and retain from the received plurality of data packets to satisfy the pre-agreed agreement. Packets are discarded while other packets that do not meet the pre-agreed are discarded.
- the IoT device can listen to data packets sent by each network signal broadcast channel in the local WIFI network through its own WIFI chip.
- the monitoring function can be implemented by other communication modules, which is not limited in the embodiment of the present specification.
- the data packet received by the IoT device carries the access configuration parameter of the target access network, and the access configuration parameter includes at least the network identifier and the network password of the target access network, where the network identifier may specifically be a service.
- Service Set Identifier SSID
- Step 104 Parse and obtain the access configuration parameter.
- the access configuration parameter implied in the data packet can be obtained by parsing the received data packet, so that the IoT device can select the target access network to perform network distribution processing according to the acquired network identifier and the network password.
- Step 106 Send an access configuration progress to the mobile device by using the sound wave data.
- the distribution network processing is started. Since the IoT device is not connected to the network at this time, information communication cannot be performed through network communication, and effective feedback of the access configuration progress cannot be realized by means of network communication; at the same time, considering the limitation of the hardware structure of the IoT device Subtitle display, voice playback, etc. may not be implemented.
- the IoT device can send an access configuration progress to the mobile device through the sound wave data.
- the sound wave data in the embodiment of the present specification can be understood as an acoustic wave signal carrying specific information played in an inaudible wave band.
- the specific information can be understood as an access configuration progress.
- the access configuration progress includes: a progress of the network associated with the process of connecting to the target access network, for example, a progress and a result of parsing the received data packet, and a network identifier and a network password obtained according to the parsing The progress, results, etc. of networking.
- the IoT device encodes the current access configuration progress as a specific information into an acoustic signal and transmits it to one or more mobile devices that are close to each other.
- the Internet of Things device can play the access configuration progress transmitted in the form of sound wave data through its own audio playing device, so that the mobile device can receive the sound wave data through its own audio collecting device, and parse the sound wave data to obtain the sound wave data.
- Access configuration progress and display the progress of the access configuration.
- the mobile device can display text or screen information that can reflect the progress of the access configuration through the screen, or can play a voice that can reflect the progress of the access configuration through an audio playback device such as a speaker.
- the access configuration progress that reflects the progress of the distribution network is fed back to the mobile device through the sound wave data, so that the mobile device can effectively display the access configuration progress. Therefore, the problem of inaccurate and unintuitive feedback of the distribution progress of the Internet of Things devices in the prior art is avoided, and the timeliness and accuracy of the feedback progress of the distribution network are improved.
- the step 106 may be performed to: after the analysis is completed, send the analysis result to the mobile device by using the sound wave data. Therefore, after the IoT device parses the data packet to obtain the access configuration parameter, the analysis result is sent to the mobile device through the sound wave data, so as to timely notify the mobile device of the current distribution network progress, thereby improving the progress of the distribution network of the Internet of Things device. Timeliness and effective transmission.
- the IoT device parses the received data packet, it may not be able to parse out the required access configuration parameters. Therefore, the analysis result is not necessarily successful. Therefore, the sound data can be timely adopted by the above solution.
- the result of the analysis is fed back to the mobile device, thereby avoiding the problem of untimely feedback and inaccuracy caused by the error in the distribution network process by using the delay result on the mobile device side in the prior art.
- the step 106 may be performed to: when the network is configured according to the access configuration parameter, the sound data is used to The mobile device periodically sends the distribution progress.
- the IoT device can periodically feed back the distribution network progress to the mobile device through the sound wave data;
- the period of feedback acoustic data can be set according to the hardware limitations of the IoT device.
- the interval t1 is used to feedback the progress of the distribution network.
- the progress of the distribution network at the current t-time feedback may be the same as or different from the distribution progress of the t+t1 time feedback. This requires feedback according to the actual distribution progress of the IoT device. Therefore, the IoT device can ensure that the situation occurring during the distribution process is more comprehensively fed back to the mobile device.
- the period of the feedback sound wave data can also be set and adjusted according to the user's use requirements.
- the initial feedback period of the IoT device is t1.
- the feedback period can be artificially set and adjusted to t2.
- the feedback cycle can be adjusted shorter in order to improve the accuracy of the distribution network and the distribution speed.
- the feedback cycle can be adjusted. Longer. Therefore, the flexibility of the periodic control of the feedback distribution progress of the IoT device can be improved by the solution, which is beneficial to the effectiveness of the distribution progress feedback of the IoT device.
- the access configuration progress is sent to the mobile device through the sound wave data
- the access configuration progress here is not limited to the analysis result, the distribution network progress, and the like, and may also include other information related to the network configuration.
- the local WIFI network environment may not only be the IoT device, but also other IoT devices, and then, for multiple IoT devices at the same time.
- the distribution network in order to distinguish different IoT devices, as shown in FIG. 1b, before performing step 102, it is also possible to perform:
- Step 100 Send a device identifier to the mobile device by using sound wave data.
- the device identifier may be the identifier information that can identify the uniqueness of the Internet of Things device. For example, it may be a device identity (ID), a media access control (MAC) address, etc., and may be a string. .
- ID device identity
- MAC media access control
- the device identifier can distinguish different IoT devices, so that the mobile device can feed different access configuration parameters for different IoT devices, that is, different IoT devices access the same or different WIFI networks.
- the hardware device of the IoT device does not need to perform feedback, so that the device identifier can be fed back to the mobile device in a timely and convenient manner when the IoT device is not connected to the network.
- the data packet involved may be a User Datagram Protocol (UDP) data packet.
- UDP User Datagram Protocol
- the UDP data packet does not require reception feedback from the opposite mobile device, and therefore, one-way data transmission can be performed.
- the content in the received data packet is encrypted and transmitted when the network underlying link is transmitted, even if the third party device other than the Internet of Things device listens, the content of the data packet cannot be parsed and obtained, only the packet length or The Internet Protocol (IP) address can be intercepted.
- IP Internet Protocol
- the network identifier of the target access network and the network password can be split into bytes and hidden in the data packet respectively. Length and / or IP address.
- step 104 when the step 104 is configured to obtain the access configuration parameter, the following steps may be specifically performed:
- the first step parsing the received data packet.
- the second step obtaining access configuration parameters from the length information and/or IP address information of the data packet.
- the IoT device can obtain the access configuration parameter from the length information of the data packet, and can also obtain the access configuration parameter from the IP address information of the data packet.
- the network can be obtained from the length information of the data packet.
- the identifier and the network password; or, the network identifier and the network password may be obtained from the IP address information of the data packet; or, the network identifier may be obtained from the length information of the data packet, and the network password is obtained from the IP address information of the data packet; or
- the network password can be obtained from the length information of the data packet, and the network identifier is obtained from the IP address information of the data packet.
- the embodiment of the present specification does not limit the manner in which part of the byte of the network identifier is implicit in the length information of the data packet, and another part of the byte and the network password are implicit in the IP address information of the data packet; or, the network identifier and Part of the byte of the network password is implicit in the length information of the data packet, and another part of the byte of the network password is implicit in the IP address information of the data packet. Therefore, the access configuration parameters can be parsed by the above solution to ensure the security of the access configuration parameters.
- the execution entity of the network configuration method is a mobile device, and the mobile device may be an electronic device such as a mobile phone or a tablet computer.
- the method mainly includes the following steps:
- Step 202 Send a data packet to the Internet of Things device.
- the mobile device After the mobile device starts distributing the network for the Internet of Things device, the mobile device sends a data packet carrying the access configuration parameter of the target access network to the IoT device.
- the meanings of the data packets involved in this step are the same as those of the data packets involved in step 102 in the first embodiment, and are not described herein.
- Step 204 Receive an access configuration progress returned by the IoT device through the sound wave data, and display.
- the access configuration progress is used to reflect the progress of the IoT device in the network configuration process.
- the mobile device receives the sound wave data returned by the IoT device, and specifically collects the monitored sound wave data through the audio receiving device, and then decodes the sound wave data to obtain feedback information of the access configuration progress. After that, the mobile device displays the progress of the access configuration. For example, the mobile device can display text or screen information that reflects the progress of the access configuration through the screen, or can play a voice that reflects the progress of the access configuration through an audio playback device such as a speaker. .
- the mobile device receives the access configuration progress that the IoT device returns through the sound wave data, which can reflect the progress of the distribution network, and effectively displays the progress of the access configuration. Therefore, the timeliness and accuracy of the distribution network progress feedback are improved, and the problem of inaccurate and unintuitive feedback of the distribution progress of the Internet of Things devices in the prior art is avoided.
- step 204 when receiving the access configuration progress returned by the IoT device through the sound wave data, the specific execution is: receiving the analysis result returned by the IoT device through the sound wave data after the analysis is completed. Therefore, after the IoT device parses the data packet to obtain the access configuration parameter, the IoT device can receive the parsing result sent by the sound wave data, and the mobile device can know the current distribution network progress in time, thereby improving the distribution network progress feedback. Timeliness and effective transmission.
- the step 204 may be specifically performed: receiving the IoT device when performing network distribution according to the access configuration parameter The progress of the distribution network that is periodically returned by the sound wave data. Therefore, on the one hand, the timeliness of the distribution network progress feedback and the effective transmission performance are improved, and on the other hand, the mobile device can obtain a more comprehensive information related to the distribution network progress.
- the local WIFI network environment may not only be the IoT device, but also other IoT devices, and then the distribution network for multiple IoT devices at the same time.
- the distribution network for multiple IoT devices as shown in FIG. 2b, before performing step 202, it is also possible to perform:
- Step 200 Receive a device identifier sent by the object network device by using sound wave data.
- the mobile device can parse the received sound wave data to obtain the device identifier, and select an IoT device that needs to be equipped with the network. Therefore, in the case that the Internet of Things device is not connected to the Internet, the mobile device can obtain the device identifier in time and conveniently to distinguish the Internet of Things device.
- the data packet is a User Datagram Protocol UDP data packet.
- the UDP data packet does not require reception feedback from the opposite mobile device, and therefore, one-way data transmission can be performed.
- the data packet needs to be used to carry the access configuration parameter, and the access configuration parameter is specifically added to the data packet length and/or the IP address. Refer to the resolution scheme on the side of the embodiment, and details are not described herein.
- FIG. 3 it is a schematic flowchart of a network configuration method according to an embodiment of the present disclosure.
- the method is based on the overall consideration of a network configuration solution.
- the execution subject involves an Internet of Things device and a mobile device, and the method includes the following steps:
- Step 300 The Internet of Things device listens to the UDP data packet in the WIFI network, and broadcasts its own device identifier through the sound wave data.
- the IoT device enters the SmartConfig one-button distribution network process, and starts to use its own WIFI chip to obtain the WIFI network list in the listening range and the broadcast frequency band of each network signal in the network list. In the promiscuous mode of the WIFI chip, the polling can be performed. The broadcast frequency band of each network signal in the WIFI network list monitors the data packets transmitted on the broadcast frequency band.
- Step 302 After receiving the device identifier, the mobile device sends a UDP data packet carrying the access configuration parameter.
- the mobile device and the Internet of Things device may be set to always enable the sound wave transmitting and receiving functions. After the mobile device receives the device identifier transmitted by the sound wave data through the audio collection device, the network operation operation of the IoT device corresponding to the device identifier is started.
- the mobile device and the Internet of Things device can also enable the sound wave transmitting and receiving functions when needed.
- the target access network may be a WIFI network currently connected by the mobile device, or may be another WIFI network in the WIFI network list; correspondingly, the target connection is determined according to the WIFI network information input by the user or the WIFI network information connected by the user.
- Network ID and network password into the network. After that, the network identifier and the network password are separately divided into bytes to be added to the UDP packet. For the specific addition location, refer to the resolution scheme in Embodiment 1.
- the mobile device broadcasts UDP packets to the local network environment in a pre-agreed manner.
- Step 304 The Internet of Things device receives the UDP data packet, and parses and obtains the access configuration parameter.
- the IoT device listens to the pre-agreed UDP packet sequence sent by the mobile device, discards other UDP packets, and parses the access configuration parameters from the packet length information and/or IP address information, and the access configuration
- the parameters include at least: the network identifier of the target access network and the network password.
- Step 306 The Internet of Things device sends the analysis result to the mobile device through the sound wave data.
- the analysis results are not necessarily intuitive and accurate feedback as a stage in the distribution process.
- the embodiment of the present specification can transmit the analysis result as feedback information to the mobile device through the sound wave data.
- Step 308 The mobile device receives the parsing result transmitted by the sound wave data and displays it.
- the mobile device can receive the parsing result of the data packet by the IoT device in time to learn the current distribution network process and display it to the user accurately and intuitively.
- the display solution involved in the first embodiment and details are not described herein.
- Step 310 The Internet of Things device performs networking according to the access configuration parameter, and periodically sends the distribution progress to the mobile device through the sound wave data.
- the network configuration operation may be performed according to the access configuration parameters to access the target access network.
- any distribution network progress occurring during this period can be periodically sent to the mobile device through the acoustic data.
- Step 312 The mobile device receives the progress of the distribution network transmitted by the sound wave data and displays it.
- the mobile device can timely receive the progress of the distribution network with the feedback of the acoustic wave data fed back by the IoT device, and display it accurately and intuitively.
- the progress of the distribution network of the Internet of Things device is reflected by displaying a dynamic progress bar on the display screen of the mobile device, or a similar presentation manner such as “complete 20%” is performed by playing a voice broadcast every 2 seconds.
- the mobile device and the Internet of Things device exchange information through the sound wave data, and at the same time, the IoT device returns the access configuration progress reflecting the process of the distribution network through the sound wave data, and the mobile device Access configuration progress for intuitive and effective display. Therefore, the timeliness and accuracy of the distribution network progress feedback are improved, and the problem of inaccurate and unintuitive feedback of the distribution network of the Internet of Things device is avoided.
- the IoT device includes a processor, optionally including an internal bus, a network interface, and a memory.
- the memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-Nolatile memory, such as at least one disk memory.
- RAM high-speed random access memory
- non-Nolatile memory such as at least one disk memory.
- the IoT device may also include hardware required for other services.
- the processor, network interface, and memory can be interconnected by an internal bus, which can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an extended industry standard. Extended Industry Standard Architecture (EISA) bus, etc.
- ISA Industry Standard Architecture
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one double-headed arrow is shown in Figure 4, but it does not mean that there is only one bus or one type of bus.
- the program can include program code, the program code including computer operating instructions.
- the memory can include both memory and non-volatile memory and provides instructions and data to the processor.
- the processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a network configuration device at a logical level.
- the processor executes the program stored in the memory and is specifically used to perform the following operations:
- the access configuration progress is sent to the mobile device via the sound wave data.
- the method performed by the network configuration apparatus disclosed in the embodiment shown in FIG. 1 of the present specification may be applied to a processor or implemented by a processor.
- the processor may be an integrated circuit chip with signal processing capabilities.
- each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
- the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processor (DSP), dedicated integration.
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- other programmable logic device discrete gate or transistor logic device, discrete hardware component.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the method steps disclosed in the embodiments of the present specification may be directly implemented as completion of the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
- the storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method.
- the IoT device can also perform the method of FIG. 1 and implement the functions of the network configuration device in the embodiment shown in FIG. 1.
- the embodiments of the present specification are not described herein again.
- the Internet of Things device in the embodiment of the present specification does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each.
- a logical unit which can also be a hardware or logic device.
- FIG. 5 is a schematic structural diagram of a mobile device in an embodiment of the present specification.
- the mobile device includes a processor, optionally including an internal bus, a network interface, and a memory.
- the memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
- RAM high-speed random access memory
- the mobile device may also include hardware required for other services.
- the processor, the network interface, and the memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended) Industry Standard Architecture, extending the industry standard structure) bus.
- the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one double-headed arrow is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
- the program can include program code, the program code including computer operating instructions.
- the memory can include both memory and non-volatile memory and provides instructions and data to the processor.
- the processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a network configuration device at a logical level.
- the processor executes the program stored in the memory and is specifically used to perform the following operations:
- the method performed by the network configuration apparatus disclosed in the embodiment shown in FIG. 2 of the embodiment of the present specification may be applied to a processor or implemented by a processor.
- the processor may be an integrated circuit chip with signal processing capabilities.
- each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
- the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processor (DSP), dedicated integration.
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the method steps disclosed in the embodiments of the present specification may be directly implemented as completion of the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
- the storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method.
- the mobile device can also perform the method of FIG. 2 and implement the functions of the network configuration device in the embodiment shown in FIG. 2, and details are not described herein again.
- the mobile device in the embodiment of the present specification does not exclude other implementation manners, such as a logic device or a combination of software and hardware, that is, the execution body of the following processing flow is not limited to each logical unit. It can also be hardware or logic.
- FIG. 6 is a schematic structural diagram of a network configuration system according to an embodiment of the present disclosure, where the network configuration system mainly includes:
- the IoT device 62 receives the data packet sent by the mobile device 64, and the data packet carries the access configuration parameter of the target access network, and the access configuration parameter is parsed and sent to the mobile device 64 through the sound wave data. Into the configuration progress;
- the mobile device 64 sends a data packet to the Internet of Things device 62, and receives an access configuration progress returned by the IoT device 62 through the sound wave data, and displays it.
- Embodiments of the present specification propose a computer readable storage medium storing one or more programs, the one or more programs including instructions that, when executed by an Internet of Things device, enable the object
- the networked device performs the method of the embodiment shown in FIG. 1 and is specifically configured to perform the following operations:
- the access configuration progress is sent to the mobile device via the sound wave data.
- Another embodiment of the present specification further provides a computer readable storage medium storing one or more programs, the one or more programs including instructions that, when executed by a mobile device, enable the The mobile device performs the method of the embodiment shown in FIG. 2, and is specifically configured to perform the following operations:
- the embodiment of the present specification further provides a network configuration apparatus.
- the network configuration apparatus mainly includes:
- the receiving module 702 receives a data packet sent by the mobile device, where the data packet carries an access configuration parameter of the target access network.
- the parsing module 704 parses and obtains the access configuration parameter.
- the sending module 706 sends the access configuration progress to the mobile device by using the sound wave data.
- the sending module 706 may send the parsing result to the mobile device by using the acoustic data after the parsing is completed.
- the sending module 706 may periodically send the distribution progress to the mobile device by using the sound wave data during the network distribution process according to the access configuration parameter.
- the sending module 706 may further send the device identifier to the mobile device by using sound wave data before receiving the data packet sent by the mobile device.
- the parsing module 704 may parse the received data packet, and obtain an access configuration parameter from the length information and/or the IP address information of the data packet.
- the data packet is a User Datagram Protocol UDP data packet.
- the network configuration apparatus mainly includes:
- the sending module 802 sends a data packet to the IoT device, where the data packet carries an access configuration parameter of the target access network.
- the receiving module 804 receives the progress of the access configuration returned by the IoT device through the sound wave data, and displays the access configuration progress, where the access configuration progress is used to reflect the progress of the IoT device in the network configuration process.
- the receiving module 804 receives the parsing result returned by the IoT device through the sound wave data after the parsing is completed.
- the receiving module 804 receives a distribution progress periodically returned by the sound wave data when the IoT device performs network distribution according to the access configuration parameter.
- the receiving module 804 further receives the device identifier sent by the IoT device through the sound wave data before sending the data packet to the Internet of Things device.
- the data packet is a User Datagram Protocol UDP data packet.
- the system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
- a typical implementation device is a computer.
- the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
- Computer readable storage media including both permanent and non-persistent, removable and non-removable media may be implemented by any method or technology.
- the information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only Memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage
- PRAM phase change memory
- SRAM static random access memory
- DRAM dynamic random access memory
- RAM random access memory
- ROM read only Memory
- EEPROM electrically erasable programmable read only memory
- flash memory or other memory technology
- CD-ROM compact disc
- DVD digital versatile disc
- Computer-readable storage media does not include temporary storage computer readable media, such as modulated data signals and carrier waves.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
本说明书实施例涉及一种网络配置方法、装置、电子设备和系统,该方法包括:接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数,解析获取所述接入配置参数,通过声波数据向所述移动设备发送接入配置进度。
Description
本说明书实施例涉及网络通信技术领域,尤其涉及一种网络配置方法、装置、电子设备和系统。
物联网作为新一代信息技术正在快速发展,同时,物联网衍生出的物联网设备也逐渐在人们的生活、工作中普及。目前,物联网设备可以借助已联网的移动设备发送的网络配置信息,通过一键配置SmartConfig配网的方式接入目标WIFI网络。
然而,在SmartConfig配网的过程中,物联网设备一般依赖自身的硬件设备反馈简单的提示信息,例如,通过灯效(红灯表示连接中,绿灯表示连接成功)、语音(连续的滴滴声表示连接中)等进行配网进度提示;而且,由于当前处于配网过程中,移动设备无法接收物联网设备的配网进度反馈,只能通过自身的超时机制来反映配网进度。
发明内容
本说明书实施例的目的是提供一种网络配置方法、装置、电子设备和系统,以解决现有技术中存在的物联网设备的配网进度反馈不准确且不直观的问题。
为解决上述技术问题,本说明书实施例实现如下:
第一方面,提供了一种网络配置方法,该方法包括:
接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;
解析获取所述接入配置参数;
通过声波数据向所述移动设备发送接入配置进度。
第二方面,提供了一种网络配置方法,该方法包括:
向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;
接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
第三方面,提供了一种网络配置装置,该装置包括:
接收模块,接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;
解析模块,解析获取所述接入配置参数;
发送模块,通过声波数据向所述移动设备发送接入配置进度。
第四方面,提供了一种网络配置装置,该装置包括:
发送模块,向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;
接收模块,接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
第五方面,提供了一种网络配置系统,该系统包括:
物联网设备,接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数,解析获取所述接入配置参数,通过声波数据向所述移动设备发送接入配置进度;
移动设备,向物联网设备发送数据包,接收所述物联网设备通过声波数据返回的接入配置进度,并展示。
第六方面,提供了一种物联网设备,该物联网设备包括:处理器;以及被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;
解析获取所述接入配置参数;
通过声波数据向所述移动设备发送接入配置进度。
第七方面,提供了一种移动设备,该移动设备包括:处理器;以及被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:
向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;
接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
第八方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储一个或 多个程序,所述一个或多个程序当被包括多个应用程序的物联网设备执行时,使得所述物联网设备执行以下操作:
接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;
解析获取所述接入配置参数;
通过声波数据向所述移动设备发送接入配置进度。
第九方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的移动设备执行时,使得所述移动设备执行以下操作:
向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;
接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
由以上技术方案可见,本说明书实施例方案至少具备如下一种技术效果:
在物联网设备配网过程中,通过声波数据向移动设备反馈能够反映配网进度的接入配置进度,以便于移动设备对接入配置进度进行有效展示。从而,提升了配网进度反馈的及时性以及准确性,避免物联网设备的配网进度反馈不准确且不直观的问题。
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书实施例中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1a是本说明书实施例提供的网络配置方法流程图之一;
图1b是本说明书实施例提供的网络配置方法流程图之二;
图2a是本说明书实施例提供的网络配置方法流程图之三;
图2b是本说明书实施例提供的网络配置方法流程图之四;
图3是本说明书实施例提供的网络配置方法流程图之五;
图4是本说明书实施例提供的物联网设备的结构示意图;
图5是本说明书实施例提供的移动设备的结构示意图;
图6是本说明书实施例提供的网络配置系统的结构示意图;
图7是本说明书实施例提供的网络配置装置的结构示意图之一;
图8是本说明书实施例提供的网络配置装置的结构示意图之二。
为了使本技术领域的人员更好地理解本说明书实施例中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书实施例保护的范围。
下面通过具体的实施例对本说明书实施例方案进行详细描述。
需要说明的是,本说明书实施例所基于的网络配置方法是一键配置(SmartConfig)方案,所谓SmartConfig配网,是指待配置网络的物联网设备通过监听周围无线保真(WIreless-Fidelity,WIFI)网络信号中多个频道的数据包,当接收到移动设备发送的携带有目标接入网络的接入配置参数后,解析获取接入配置参数(至少包括:网络标识和网络密码),并根据接入配置参数连接至目标接入网络。
实施例一
参照图1a所示,为本说明书实施例提供的网络配置方法的示意图,该网络配置方法的执行主体可以为物联网设备,该物联网设备可理解为能够通过无线通信模块连接互联网或局域网的电子设备,该方法主要包括以下步骤:
步骤102:接收移动设备发送的数据包。
这里的数据包可以理解为是移动设备以预设频率在本地WIFI网络中发送的数据包序列。该数据包序列可以是在预设时间长度内连续发送的预设个数数据包组成的数据包序列,其中,该数据包序列可以具有连续的发包序号,或者,也可以具有相同的发包间隔时长。
其实,本说明书实施例方案中还可以采用其他预先约定发包规则或是数据包特征,在移动设备按照预先约定发送数据包时,物联网设备能够从接收到众多数据包中选择保 留满足预先约定的数据包,而丢弃其他不满足预先约定的数据包。
在本步骤中,物联网设备可以通过自身的WIFI芯片监听本地WIFI网络中各个网络信号广播频道下发的数据包。其实,除了WIFI芯片,还可以通过其他通信模块来实现监听功能,本说明书实施例并不对此进行限定。
应理解,物联网设备接收到的数据包中携带有目标接入网络的接入配置参数,该接入配置参数至少包含目标接入网络的网络标识和网络密码,其中,网络标识具体可以为服务集标识(Service Set Identifier,SSID)。
步骤104:解析获取所述接入配置参数。
具体地,可通过对接收到的数据包进行解析,获取隐含在其中的接入配置参数,以便于物联网设备可以根据获取的网络标识和网络密码,选择目标接入网络进行配网处理。
步骤106:通过声波数据向所述移动设备发送接入配置进度。
在物联网设备解析获取接入配置参数后,即开始执行配网处理。由于此时的物联网设备未接入网络,无法通过网络通信来进行信息交互,也就无法通过网络通信的方式实现接入配置进度的有效反馈;同时,考虑到物联网设备的硬件结构的限制,可能无法实现字幕显示、语音播放等功能。为了能够实现接入配置进度的有效反馈,该物联网设备可通过声波数据向移动设备发送接入配置进度。本说明书实施例中的声波数据可以理解为在不可听波频段播放的携带有特定信息的声波信号。在本说明书实施例中,该特定信息即可理解为接入配置进度。
其中,所述接入配置进度包括:与连接至目标接入网络这一过程相关的配网进度,例如,对接收到的数据包进行解析的进度、结果,根据解析得到的网络标识和网络密码进行联网的进度、结果等。
该步骤在具体实现时,物联网设备将当前的接入配置进度作为特定信息编码为声波信号,发送给与其相距较近的一个或多个移动设备。可选地,物联网设备可通过自身的音频播放装置播放以声波数据形式传输的接入配置进度,以便于移动设备可以通过自身的音频采集装置接收到声波数据,解析所述声波数据获取其中的接入配置进度,并对接入配置进度进行展示。具体地,移动设备可以通过屏幕展示能够反映接入配置进度的文字、画面信息,或者,可以通过扬声器等音频播放装置播放能够反映接入配置进度的语音。
通过该技术方案,在物联网设备配网过程中,通过声波数据向移动设备反馈能够反映配网进度的接入配置进度,以便于移动设备对接入配置进度进行有效展示。从而,避免现有技术中物联网设备的配网进度反馈不准确且不直观的问题,提升了配网进度反馈的及时性以及准确性。
一种可实现的方案,步骤106在通过声波数据向所述移动设备发送接入配置进度时,具体可以执行为:当解析完成之后,通过声波数据向所述移动设备发送解析结果。由此,在物联网设备解析数据包得到接入配置参数之后,就会通过声波数据向移动设备发送解析结果,以便及时通知移动设备当前的配网进度,从而提升物联网设备配网进度反馈的及时性以及有效传输性。
应理解,在物联网设备对接收到的数据包进行解析时,并不一定能够解析出所需的接入配置参数,那么,解析结果并不一定成功,因此,可以通过上述方案及时采用声波数据反馈解析结果给移动设备,从而,避免现有技术中通过在移动设备侧采用延时结果确定配网过程出错而导致的反馈不及时性以及不准确性的问题。
另一种可实现的方案,步骤106在通过声波数据向所述移动设备发送接入配置进度时,具体可以执行为:当根据所述接入配置参数进行配网时,通过声波数据向所述移动设备周期性发送配网进度。
在物联网设备根据网络标识以及网络密码进行配网过程中,可通过声波数据及时向移动设备周期性反馈配网进度;其中:
反馈声波数据的周期可以根据物联网设备的硬件限制来设置。例如,间隔t1时长反馈一次配网进度,当前t时刻反馈的配网进度与t+t1时刻反馈的配网进度可以相同也可以不同,这需要根据物联网设备的实际配网进度进行反馈。从而,保证物联网设备能够尽量将配网过程中发生的情况更为全面的反馈给移动设备。
反馈声波数据的周期还可以根据用户的使用需求进行设置、调节。例如,物联网设备的初始反馈周期为t1,然而,为了适应用户的使用需求,可人为设置、调节反馈周期为t2。当为了提升配网准确性以及配网速度,用户希望获取更多的配网进度时,可将反馈周期调节的较短;当用户不希望获取过多的配网进度时,可将反馈周期调节的较长。由此,通过该方案可以提升对物联网设备反馈配网进度的周期控制的灵活性,有利于物联网设备的配网进度反馈有效性。
其实,本说明书实施例中通过声波数据向移动设备发送接入配置进度,这里的接入 配置进度并不限于是解析结果、配网进度等信息,还可以包含其他与网络配置相关的信息。
基于上述任一方案,考虑到在该物联网设备的配网进程中,本地WIFI网络环境中可能不只是该物联网设备,还存在其他物联网设备,那么,在同时为多个物联网设备进行配网时,为了区别不同物联网设备,参照图1b所示,在执行步骤102之前,还可以执行:
步骤100:通过声波数据向所述移动设备发送设备标识。
应理解,设备标识可以是指能够标识物联网设备唯一性的标识信息,例如,可以是设备身份标识(Identification,ID)、媒体访问控制(Media Access Control,MAC)地址等,具体可以是字符串。通过设备标识能够区分不同的物联网设备,从而便于移动设备针对不同物联网设备反馈不同的接入配置参数,即决定不同的物联网设备接入相同或者不同的WIFI网络。而且,通过声波数据发送设备标识,不需要借助物联网设备的硬件设备进行反馈,从而在物联网设备未联网的情况下,能够更为及时便捷的将设备标识反馈给移动设备。
在本说明书实施例方案中,所涉及到的数据包可以为用户数据报协议(User Datagram Protocol,UDP)数据包。该UDP数据包不需要对侧移动设备的接收反馈,因此,可以进行单向的数据传输。
由于接收到的数据包中的内容在网络底层链路传输时会被加密传输,因此,即使被物联网设备以外的第三方设备监听到,数据包内容也无法被解析获取,只有数据包长度或者网络协议(Internet Protocol,IP)地址可以被截获。而且,考虑到接收到的数据包中每个字节转换成数字不超过256字节,因此,可以将目标接入网络的网络标识和网络密码拆分为字节分别隐藏在所述数据包的长度和/或IP地址中。
可选地,本说明书实施例方案中,步骤104在解析获取所述接入配置参数时,可具体执行以下步骤:
第一步:解析接收到的所述数据包。
第二步:从所述数据包的长度信息和/或IP地址信息中获取接入配置参数。
应理解,物联网设备可以从数据包的长度信息中获取接入配置参数,也可以从数据包的IP地址信息中获取接入配置参数;具体实现时:可以从数据包的长度信息中获取网络标识和网络密码;或者,可以从数据包的IP地址信息中获取网络标识和网络密码; 或者,可以从数据包的长度信息中获取网络标识,从数据包的IP地址信息中获取网络密码;或者,可以从数据包的长度信息中获取网络密码,从数据包的IP地址信息中获取网络标识。
其实,本说明书实施例也不限定网络标识的部分字节隐含在数据包的长度信息中,另一部分字节以及网络密码隐含在数据包的IP地址信息中的方式;或者,网络标识和网络密码的部分字节隐含在数据包的长度信息中,网络密码的另一部分字节隐含在数据包的IP地址信息中的方式等。由此,可以通过上述方案解析得到接入配置参数,保证接入配置参数的安全性。
实施例二
参照图2a所示,为本说明书实施例提供的网络配置方法的示意图,该网络配置方法的执行主体为移动设备,该移动设备可以是手机、平板电脑等电子设备。该方法主要包括以下步骤:
步骤202:向物联网设备发送数据包。
在移动设备为物联网设备开始配网后,移动设备向物联网设备发送携带有目标接入网络的接入配置参数的数据包。本步骤中所涉及的数据包的含义与实施例一中步骤102中涉及的数据包的含义相同,在此不做赘述。
步骤204:接收所述物联网设备通过声波数据返回的接入配置进度,并展示。
其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。移动设备接收物联网设备返回的声波数据,具体可通过音频接收装置采集监听到的声波数据,然后对该声波数据进行解码,得到接入配置进度这一反馈信息。之后,移动设备对接入配置进度进行展示,例如,移动设备可以通过屏幕展示能够反映接入配置进度的文字、画面信息,或者,可以通过扬声器等音频播放装置播放能够反映接入配置进度的语音。
通过该技术方案,在物联网设备配网过程中,移动设备接收物联网设备通过声波数据返回的能够反映配网进度的接入配置进度,并对接入配置进度进行有效展示。从而,提升配网进度反馈的及时性以及准确性,避免现有技术中物联网设备的配网进度反馈不准确且不直观的问题。
一种可实现的方案,步骤204在接收所述物联网设备通过声波数据返回的接入配置进度时,具体执行为:接收所述物联网设备在解析完成之后通过声波数据返回的解析结 果。由此,在物联网设备解析数据包得到接入配置参数之后,就可以接收到物联网设通过声波数据发送的解析结果,移动设备能够及时获知当前的配网进度,从而提升配网进度反馈的及时性以及有效传输性。
另一种可实现的方案,步骤204在接收所述物联网设备通过声波数据返回的接入配置进度时,可具体执行为:接收所述物联网设备根据所述接入配置参数进行配网时通过声波数据周期性返回的配网进度。从而,一方面提升配网进度反馈的及时性以及有效传输性,另一方面保证移动设备能够获取更为全面的与配网进度相关的信息。
基于上述方案,考虑到在该物联网设备的配网进程中,本地WIFI网络环境中可能不只是该物联网设备,还存在其他物联网设备,那么,在同时为多个物联网设备进行配网时,为了区别不同物联网设备,参照图2b所示,在执行步骤202之前,还可以执行:
步骤200:接收所述物联网设备通过声波数据发送的设备标识。
这样,移动设备可以对接收到的声波数据进行解析得到设备标识,并从中选择需要进行配网的物联网设备。从而在物联网设备未联网的情况下,移动设备能够及时便捷的获取设备标识以区分物联网设备。
在本说明书实施例方案中,所述数据包为用户数据报协议UDP数据包。该UDP数据包不需要对侧移动设备的接收反馈,因此,可以进行单向的数据传输。在移动设备侧,需要利用该数据包携带接入配置参数,而接入配置参数具体添加至数据包的长度和/或IP地址中可参照实施例一侧的解析方案,在此不做赘述。
实施例三
参照图3所示,为本说明书实施例提供的网络配置方法的流程示意图,该方法从网络配置方案的整体考虑,执行主体涉及物联网设备和移动设备,主要包括以下步骤:
步骤300:物联网设备监听WIFI网络中的UDP数据包,并通过声波数据广播自身的设备标识。
物联网设备进入SmartConfig一键配网流程,开始利用自身的WIFI芯片获取监听范围内的WIFI网络列表以及该网络列表中每个网络信号的广播频段,在WIFI芯片的混杂模式下,可以轮询该WIFI网络列表中每个网络信号的广播频段,监听在广播频段上传输的数据包。
步骤302:移动设备接收设备标识后,发送携带接入配置参数的UDP数据包。
在本说明书实施例中,移动设备和物联网设备可以设置为始终开启声波发送、接收功能。当移动设备通过音频采集装置接收到以声波数据传输的设备标识后,即开始对该设备标识对应的物联网设备进行配网操作。
当然,应理解,移动设备和物联网设备也可以在需要时才开启声波发送、接收功能。
应理解,目标接入网络可以是移动设备当前连接的WIFI网络,也可以是WIFI网络列表中其他WIFI网络;相应地,根据用户输入的WIFI网络信息或是自身连接的WIFI网络信息,确定目标接入网络的网络标识和网络密码。之后,将网络标识和网络密码分别拆分为字节的方式添加至UDP数据包中。具体的添加位置可以参照实施例一中的解析方案。
移动设备以预先约定的方式向本地网络环境中广播UDP数据包。
步骤304:物联网设备接收UDP数据包,并解析获取接入配置参数。
物联网设备监听到移动设备发送的预先约定的UDP数据包序列,而丢弃其他的UDP数据包,并从数据包的长度信息和/或IP地址信息中解析获取接入配置参数,该接入配置参数至少包括:目标接入网络的网络标识和网络密码。
步骤306:物联网设备通过声波数据向所述移动设备发送解析结果。
考虑到物联网设备一般通过硬件装置(例如呼吸灯或是简单的语音)来反馈配网进度,但是,解析结果作为配网进程中的一个阶段,不一定能够直观准确的反馈。而本说明书实施例可以通过声波数据将这一解析结果作为反馈信息发送给移动设备。
步骤308:移动设备接收以声波数据传输的解析结果,并展示。
移动设备可以及时接收物联网设备对数据包的解析结果,以获知当前的配网进程,并准确直观的展示给用户。具体的展示方式可参照实施例一所涉及的展示方案,在此不做赘述。
步骤310:物联网设备根据接入配置参数进行联网,并通过声波数据向移动设备周期性发送配网进度。
在物联网设备从UDP数据包中成功解析出目标接入网络的网络标识和网络密码后,可以根据这些接入配置参数进行配网操作以便接入目标接入网络。其实,在根据解析出的接入配置参数进行配网操作开始至成功接入目标接入网络期间,可以通过声波数 据向移动设备周期性发送在此期间发生的任何配网进度。
步骤312:移动设备接收以声波数据传输的配网进度,并展示。
移动设备可及时接收物联网设备反馈的以声波数据反馈的配网进度,并准确直观的展示出来。例如,通过在移动设备的显示屏幕上展示动态进度条的方式反映物联网设备的配网进度,或者,通过每2S播放一次语音播报“完成20%”等类似的展示方式。
通过上述技术方案,在物联网设备配网过程中,移动设备与物联网设备通过声波数据进行信息交互,同时,物联网设备通过声波数据返回反映配网进程的接入配置进度,移动设备对该接入配置进度进行直观有效展示。从而,提升配网进度反馈的及时性以及准确性,避免物联网设备的配网进度反馈不准确且不直观的问题。
实施例四
图4是本说明书的一个实施例中物联网设备的结构示意图。请参考图4,在硬件层面,该物联网设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(Non-Nolatile Memory),例如至少1个磁盘存储器等。当然,该物联网设备还可能包括其他业务所需要的硬件。
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成网络配置装置。处理器,执行存储器所存放的程序,并具体用于执行以下操作:
接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;
解析获取所述接入配置参数;
通过声波数据向所述移动设备发送接入配置进度。
上述如本说明书图1所示实施例揭示的网络配置装置执行的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本说明书实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本说明书实施例所公开的方法步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
该物联网设备还可执行图1的方法,并实现网络配置装置在图1所示实施例的功能,本说明书实施例在此不再赘述。
当然,除了软件实现方式之外,本说明书实施例的物联网设备并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
图5是本说明书的一个实施例中移动设备的结构示意图。请参考图5,在硬件层面,该移动设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该移动设备还可能包括其他业务所需要的硬件。
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括 计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成网络配置装置。处理器,执行存储器所存放的程序,并具体用于执行以下操作:
向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;
接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
上述如本说明书实施例图2所示实施例揭示的网络配置装置执行的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本说明书实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本说明书实施例所公开的方法步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
该移动设备还可执行图2的方法,并实现网络配置装置在图2所示实施例的功能,本说明书实施例在此不再赘述。
当然,除了软件实现方式之外,本说明书实施例的移动设备并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
图6为本说明书实施例提供的一种网络配置系统的结构示意图,该网络配置系统主要包括:
物联网设备62,接收移动设备64发送的数据包,所述数据包中携带目标接入网 络的接入配置参数,解析获取所述接入配置参数,通过声波数据向所述移动设备64发送接入配置进度;
移动设备64,向物联网设备62发送数据包,接收所述物联网设备62通过声波数据返回的接入配置进度,并展示。
实施例五
本说明书实施例提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被物联网设备执行时,能够使该物联网设备执行图1所示实施例的方法,并具体用于执行以下操作:
接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;
解析获取所述接入配置参数;
通过声波数据向所述移动设备发送接入配置进度。
本说明书实施例还提出了另一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被移动设备执行时,能够使该移动设备执行图2所示实施例的方法,并具体用于执行以下操作:
向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;
接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
实施例六
本说明书实施例还提供了一种网络配置装置。参照图7所示,该网络配置装置主要包括:
接收模块702,接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数。
解析模块704,解析获取所述接入配置参数。
发送模块706,通过声波数据向所述移动设备发送接入配置进度。
可选地,作为一个实施例,发送模块706可在解析完成之后,通过声波数据向所述移动设备发送解析结果。
可选地,作为一个实施例,发送模块706可在根据所述接入配置参数进行配网 过程中,通过声波数据向所述移动设备周期性发送配网进度。
可选地,作为一个实施例,所述发送模块706在接收移动设备发送的数据包之前,还可以通过声波数据向所述移动设备发送设备标识。
可选地,作为一个实施例,解析模块704,可解析接收到的所述数据包,并从所述数据包的长度信息和/或IP地址信息中获取接入配置参数。
可选地,作为一个实施例,所述数据包为用户数据报协议UDP数据包。
本说明书实施例还提供了另一种网络配置装置。参照图8所示,该网络配置装置主要包括:
发送模块802,向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数。
接收模块804,接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
可选地,作为一个实施例,接收模块804接收所述物联网设备在解析完成之后通过声波数据返回的解析结果。
可选地,作为一个实施例,接收模块804接收所述物联网设备根据所述接入配置参数进行配网时通过声波数据周期性返回的配网进度。
可选地,作为一个实施例,接收模块804在向物联网设备发送数据包之前,还接收所述物联网设备通过声波数据发送的设备标识。
可选地,作为一个实施例,所述数据包为用户数据报协议UDP数据包。
总之,以上所述仅为本说明书实施例的较佳实施例而已,并非用于限定本说明书实施例的保护范围。凡在本说明书实施例的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本说明书实施例的保护范围之内。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
计算机可读存储介质包括永久性和非永久性、可移动和非可移动媒体可以由任 何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机可读存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读存储介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本说明书实施例中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
Claims (18)
- 一种网络配置方法,包括:接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;解析获取所述接入配置参数;通过声波数据向所述移动设备发送接入配置进度。
- 如权利要求1所述的方法,通过声波数据向所述移动设备发送接入配置进度,包括:当解析完成之后,通过声波数据向所述移动设备发送解析结果。
- 如权利要求1所述的方法,通过声波数据向所述移动设备发送接入配置进度,包括:当根据所述接入配置参数进行配网时,通过声波数据向所述移动设备周期性发送配网进度。
- 如权利要求1所述的方法,在接收移动设备发送的数据包之前,所述方法还包括:通过声波数据向所述移动设备发送设备标识。
- 如权利要求1所述的方法,解析获取所述接入配置参数,包括:解析接收到的所述数据包;从所述数据包的长度信息和/或IP地址信息中获取接入配置参数。
- 如权利要求1-5任一项所述的方法,所述数据包为用户数据报协议UDP数据包。
- 一种网络配置方法,包括:向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
- 如权利要求7所述的方法,接收所述物联网设备通过声波数据返回的接入配置进度,包括:接收所述物联网设备在解析完成之后通过声波数据返回的解析结果。
- 如权利要求7所述的方法,接收所述物联网设备通过声波数据返回的接入配置进度,包括:接收所述物联网设备根据所述接入配置参数进行配网时通过声波数据周期性返回的配网进度。
- 如权利要求7所述的方法,在向物联网设备发送数据包之前,所述方法还包括:接收所述物联网设备通过声波数据发送的设备标识。
- 如权利要求7-10任一项所述的方法,所述数据包为用户数据报协议UDP数据包。
- 一种网络配置装置,包括:接收模块,接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;解析模块,解析获取所述接入配置参数;发送模块,通过声波数据向所述移动设备发送接入配置进度。
- 一种网络配置装置,包括:发送模块,向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;接收模块,接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
- 一种网络配置系统,包括:物联网设备和移动设备,其中,物联网设备,接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数,解析获取所述接入配置参数,通过声波数据向所述移动设备发送接入配置进度;移动设备,向物联网设备发送数据包,接收所述物联网设备通过声波数据返回的接入配置进度,并展示。
- 一种物联网设备,包括:处理器;以及被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;解析获取所述接入配置参数;通过声波数据向所述移动设备发送接入配置进度。
- 一种移动设备,包括:处理器;以及被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
- 一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的物联网设备执行时,使得所述物联网设备执 行以下操作:接收移动设备发送的数据包,所述数据包中携带目标接入网络的接入配置参数;解析获取所述接入配置参数;通过声波数据向所述移动设备发送接入配置进度。
- 一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的移动设备执行时,使得所述移动设备执行以下操作:向物联网设备发送数据包,所述数据包中携带目标接入网络的接入配置参数;接收所述物联网设备通过声波数据返回的接入配置进度,并展示;其中,所述接入配置进度用于反映所述物联网设备在网络配置过程中的进程。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810088423.1 | 2018-01-30 | ||
| CN201810088423.1A CN108429634A (zh) | 2018-01-30 | 2018-01-30 | 一种网络配置方法、装置、电子设备和系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019149042A1 true WO2019149042A1 (zh) | 2019-08-08 |
Family
ID=63156186
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/071153 Ceased WO2019149042A1 (zh) | 2018-01-30 | 2019-01-10 | 一种网络配置方法、装置、电子设备和系统 |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN108429634A (zh) |
| TW (1) | TW201933839A (zh) |
| WO (1) | WO2019149042A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110381567B (zh) * | 2019-07-08 | 2021-08-17 | 浙江大华技术股份有限公司 | 配置进度管理方法、装置、计算机设备和存储介质 |
| CN115189979A (zh) * | 2022-07-11 | 2022-10-14 | 珠海格力电器股份有限公司 | 声波配网的方法以及系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103929767A (zh) * | 2014-05-04 | 2014-07-16 | 韩竹 | 一种基于声波或光波通信的无线网络设置方法 |
| CN105101466A (zh) * | 2015-06-30 | 2015-11-25 | 广东美的制冷设备有限公司 | 无线网络配置方法及无线网络配置系统 |
| CN105511895A (zh) * | 2014-09-24 | 2016-04-20 | 中兴通讯股份有限公司 | 运行环境的配置方法及装置、系统 |
| CN106973124A (zh) * | 2017-03-02 | 2017-07-21 | 深圳壹秘科技有限公司 | 网络连接配置方法及其电子装置 |
| US20170288786A1 (en) * | 2016-03-31 | 2017-10-05 | Yamin S. Al-Mousa | On-boarding and provisioning devices using ultrasonic wave communications |
-
2018
- 2018-01-30 CN CN201810088423.1A patent/CN108429634A/zh active Pending
- 2018-12-17 TW TW107145448A patent/TW201933839A/zh unknown
-
2019
- 2019-01-10 WO PCT/CN2019/071153 patent/WO2019149042A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103929767A (zh) * | 2014-05-04 | 2014-07-16 | 韩竹 | 一种基于声波或光波通信的无线网络设置方法 |
| CN105511895A (zh) * | 2014-09-24 | 2016-04-20 | 中兴通讯股份有限公司 | 运行环境的配置方法及装置、系统 |
| CN105101466A (zh) * | 2015-06-30 | 2015-11-25 | 广东美的制冷设备有限公司 | 无线网络配置方法及无线网络配置系统 |
| US20170288786A1 (en) * | 2016-03-31 | 2017-10-05 | Yamin S. Al-Mousa | On-boarding and provisioning devices using ultrasonic wave communications |
| CN106973124A (zh) * | 2017-03-02 | 2017-07-21 | 深圳壹秘科技有限公司 | 网络连接配置方法及其电子装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201933839A (zh) | 2019-08-16 |
| CN108429634A (zh) | 2018-08-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112202908B (zh) | 一种设备与账号的关联方法、装置、电子设备及系统 | |
| US9654909B2 (en) | Interleaving multiple bluetooth low energy advertisements | |
| CN109831746B (zh) | 一种基于蓝牙广播进行数据传输的方法、装置及蓝牙设备 | |
| JP5823077B2 (ja) | 効率のよいサービス発見のための方法、装置、およびコンピュータプログラム | |
| US8588091B2 (en) | Device, system and method of wireless communication over a combined channel | |
| TWI687120B (zh) | 用於隨機接入的方法、網路設備和終端設備 | |
| CN111954051A (zh) | 一种传输视频音频的方法、设备和系统 | |
| US10448230B2 (en) | Data transmission | |
| WO2020125074A1 (zh) | 消息到达率确定方法、装置、数据统计服务器及存储介质 | |
| WO2018141165A1 (zh) | 数据传输方法及装置 | |
| WO2021175297A1 (zh) | 一种分布式数据传输的方法、装置和系统 | |
| TW201933832A (zh) | 通訊方法及裝置和電子設備 | |
| WO2019149042A1 (zh) | 一种网络配置方法、装置、电子设备和系统 | |
| CN111224903A (zh) | 一种数据传输方法、设备及计算机可读存储介质 | |
| WO2022089643A1 (zh) | 调整实时业务的增强分布信道接入参数的方法及通信装置 | |
| CN113543022B (zh) | 发射功率的确定方法、装置、对讲机、设备及存储介质 | |
| WO2025161777A1 (zh) | 投屏的方法、同屏收看设备、大屏设备及投屏系统 | |
| HK1259099A1 (zh) | 一种网络配置方法、装置、电子设备和系统 | |
| CN116647827A (zh) | 蓝牙通信方法、装置、设备、系统及存储介质 | |
| CN114980267A (zh) | 一种网络共享方法及设备、存储介质 | |
| CN115835269A (zh) | 数据传输方法、装置、终端及网络设备 | |
| US20250150187A1 (en) | Audio playback method, broadcast device and computer-readable storage medium | |
| JP6461315B2 (ja) | 複数のeMBMSサービスソースのための処理方法および装置 | |
| CN112235353B (zh) | 定位信号发送方法、装置、存储介质和定位系统 | |
| HK1259261B (zh) | 一种设备与账号的关联方法、装置、电子设备及系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19747834 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19747834 Country of ref document: EP Kind code of ref document: A1 |