CN111278011B - Network distribution method of intelligent sound box and intelligent sound box - Google Patents

Network distribution method of intelligent sound box and intelligent sound box Download PDF

Info

Publication number
CN111278011B
CN111278011B CN202010091309.1A CN202010091309A CN111278011B CN 111278011 B CN111278011 B CN 111278011B CN 202010091309 A CN202010091309 A CN 202010091309A CN 111278011 B CN111278011 B CN 111278011B
Authority
CN
China
Prior art keywords
terminal
wifi list
wifi
data
data size
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.)
Active
Application number
CN202010091309.1A
Other languages
Chinese (zh)
Other versions
CN111278011A (en
Inventor
何营昊
陈先义
肖媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202010091309.1A priority Critical patent/CN111278011B/en
Publication of CN111278011A publication Critical patent/CN111278011A/en
Application granted granted Critical
Publication of CN111278011B publication Critical patent/CN111278011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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

The application discloses a network distribution method of an intelligent sound box and the intelligent sound box, wherein after the intelligent sound box is successfully connected with a terminal, a request for acquiring a maximum transmission unit is sent to the terminal; if the maximum transmission unit replied by the terminal is not received, establishing a wifi list; and transmitting the data of the wifi list to the terminal according to the data size in the wifi list transmission data queue in sequence until receiving the non-packet-loss message sent by the terminal. The intelligent sound box receives a service set identifier and a password of wifi selected by a user; and connecting the wireless network according to the service set identifier and the password. According to the method and the device, in the network distribution process, when the maximum transmission unit condition of the terminal is not acquired, the use of the maximum transmission unit transmission data with the default of the table can be avoided, the function of acquiring the wifi list can be realized by equipment compatible with different systems, the network can be freely configured by a user, the terminal is not required to be connected with wifi or the wifi connected with the intelligent connection terminal in advance, and the user experience is enhanced.

Description

Network distribution method of intelligent sound box and intelligent sound box
Technical Field
The application relates to the technical field of sound box distribution networks, in particular to a distribution network method of an intelligent sound box and the intelligent sound box.
Background
At present, intelligent sound boxes on the market are more and more, and user groups are also larger and larger. The most important dependence of smart speakers is the network, and must be a wireless network. Configuring a network to a smart speaker is also the most important function of a smart speaker.
The intelligent sound box is configured with a network, a mobile phone app is required to be used, connection is established with the sound box through a bluetooth ble mode, wifi information is transmitted to the sound box, and the sound box is connected with the network through wifi information. There are three user scenarios when configuring a network: 1. the mobile phone is connected with wifi at present, the network distribution app automatically fills the wifi name connected with the mobile phone, the user inputs the wifi password, and the mobile phone transmits wifi information to the sound box; 2. the wifi has been connected to current cell-phone, but the user need not the audio amplifier to connect this wifi, and the user need select other wifi, gives audio amplifier 3 with the information transfer of the wifi of selecting at last the wifi is not connected to current cell-phone this moment, and the user also needs to select wifi, gives audio amplifier configuration network.
Before the network distribution function is started, the mobile phone must be connected with a wifi, and the wifi can be configured for the loudspeaker box only. And in the third case, although the loudspeaker box supports the user to select wifi, the loudspeaker box needs to transmit a wifi list to which the loudspeaker box can be connected to the mobile phone. However, because the data volume of the wifi list is large, the current intelligent sound box network distribution scheme has limitation on the transmission data size of the ble communication default, so that the wifi list cannot be obtained. Can only dispose the wifi of current connection for the audio amplifier, lead to intelligent audio amplifier unable in realizing the wifi that the user freely selected the audio amplifier to connect, user experience is very poor.
Disclosure of Invention
An object of the application is to provide a network distribution method of an intelligent sound box and the intelligent sound box, so as to solve the problem that the intelligent sound box cannot freely select wifi connected with the sound box by a user, and the user experience is very poor.
In a first aspect, an embodiment of the present application provides an intelligent sound box, including:
a sound output module for outputting a sound signal acquired from the terminal;
a communicator for establishing a connection state with the terminal;
a controller coupled to the sound input module and the communicator for performing:
sending a request for acquiring a maximum transmission unit to a terminal;
receiving a wifi list acquisition request sent by the terminal;
if the maximum transmission unit replied by the terminal is not received, acquiring available wifi information in a preset range, and establishing a wifi list according to the wifi information;
transmitting data of the wifi list to the terminal by using the first data size in the wifi list transmission data queue;
if the packet loss message sent by the terminal is received, transmitting the data of the wifi list to the terminal in the next data size in a wifi list transmission data queue until the packet loss message sent by the terminal is received or the packet loss message sent by the terminal is not received after traversing the wifi list transmission data queue;
if the non-packet-loss message sent by the terminal is received, receiving a service set identifier and a password of wifi selected by a user;
and connecting the wireless network according to the service set identifier and the password.
In a second aspect, an embodiment of the present application provides a network allocation method for an intelligent sound box, which is applied to the intelligent sound box, and includes:
sending a request for acquiring a maximum transmission unit to a terminal;
receiving a wifi list acquisition request sent by the terminal;
if the maximum transmission unit replied by the terminal is not received, acquiring available wifi information in a preset range, and establishing a wifi list according to the wifi information;
transmitting data of the wifi list to the terminal by using the first data size in the wifi list transmission data queue;
if the packet loss message sent by the terminal is received, transmitting the data of the wifi list to the terminal in the next data size in a wifi list transmission data queue until the packet loss message sent by the terminal is received or the data queue is traversed, and the packet loss message sent by the terminal is not received yet;
if the non-packet-loss message sent by the terminal is received, receiving a service set identifier and a password of wifi selected by a user;
and connecting the wireless network according to the service set identifier and the password.
According to the technical scheme, after the intelligent sound box is successfully connected with the terminal, a request for acquiring the maximum transmission unit is sent to the terminal; if the maximum transmission unit replied by the terminal is not received, establishing a wifi list; and transmitting the data of the wifi list to the terminal according to the data size in the data queue by utilizing the wifi list until the terminal sends the non-packet-loss message. The intelligent sound box receives a service set identifier and a password of wifi selected by a user; and connecting the wireless network according to the service set identifier and the password. According to the method and the device, in the network distribution process, when the MTU condition of the terminal is not acquired, the default maximum transmission unit can be prevented from being used for transmitting data, the wifi list can be acquired by the equipment compatible with different systems, the network can be freely configured by a user, the terminal is not required to be connected with wifi or the wifi connected with the intelligent connection terminal in advance, and the user experience is enhanced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
A schematic diagram of an operation scenario between a smart speaker and a terminal is exemplarily shown in fig. 1A;
a block diagram of the configuration of the intelligent audio amplifier 200 of fig. 1A is schematically shown in fig. 1B;
fig. 2A is a flowchart of a network allocation method of an intelligent sound box according to an embodiment of the present application;
fig. 2B is a flowchart of a ble_wifi adaptive transmission algorithm according to an embodiment of the present application.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure. The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
A schematic diagram of an operation scenario between a smart speaker and a terminal is exemplarily shown in fig. 1A. As shown in fig. 1A, the terminal 100 and the smart box 200 may communicate with each other wirelessly.
The terminal 100 is configured to control the smart speaker 200, and may receive an operation instruction input by a user, and convert the operation instruction into an instruction that the smart speaker 200 may recognize and respond to, thereby mediating interaction between the user and the smart speaker 200. Such as: the user responds to the sound addition and subtraction operation by operating the sound addition and subtraction key on the terminal 100.
The terminal 100 may also be a smart device such as a mobile terminal, tablet computer, notebook computer, etc. For example, smart speaker 200 is controlled using an application running on a smart device. The application program, by configuration, can provide various controls to the user through an intuitive User Interface (UI) on a screen associated with the smart device.
A block diagram of the configuration of the intelligent speaker 200 is schematically shown in fig. 1B. As shown in fig. 1B, the smart speaker 200 includes a controller 210, a communicator 220, a sound output module 230, and a power supply 240.
The controller 210 includes a Random Access Memory (RAM) 211, a Read Only Memory (ROM) 212, a processor 213, a communication interface, and a communication bus. The controller 210 is used to control the operation and operation of the intelligent sound box 200, as well as the communication cooperation between the internal components, and the external and internal data processing functions.
The communicator 220 performs communication of data signals with the terminal 100 under the control of the controller 210. Such as: the smart box 200 transmits data signals to the terminal 100 via the communicator 220, and the smart box 200 may receive the data signals and control signals transmitted by the terminal 100 via the communicator 220. The communicator 220 may include a network communication protocol module or a near field communication protocol module such as a WIFI module 221, a bluetooth communication protocol module 222, a wired ethernet communication protocol module 223, etc., so that the communicator 220 may receive a control signal of the terminal 100 according to the control of the controller 210 and implement the control signal as a WIFI signal, a bluetooth signal, a radio frequency signal, etc.
The sound output module 230 is configured to output a sound signal, specifically, play a sound designated by a user under the control of the controller 210.
Optionally, the smart speaker 200 further includes a power supply 240 for providing operational power support for the elements of the smart speaker 200 under the control of the controller 210. May be in the form of a battery and associated control circuitry.
Referring to fig. 2A, an embodiment of the present application provides a network distribution method for an intelligent sound box, including:
starting an intelligent sound box to be distributed with a network;
the terminal starts a distribution network interface, searches for the Bluetooth of the intelligent sound box, and initiates connection with the intelligent sound box;
the terminal can be a mobile phone, a computer or an ipad.
After the intelligent sound box is successfully connected with the terminal, other terminals cannot be connected with the intelligent sound box;
the intelligent sound box sends a request for acquiring the maximum transmission unit to the terminal;
after receiving the request sent by the intelligent sound box, the terminal responds to the request for acquiring the maximum transmission unit.
The terminal may or may not return to the limit size of the maximum transmission unit of the intelligent speaker.
For example, in an andorid system, the limitation of the maximum transmission UNIT (MAXIMUM TRANSMISSION UNIT, MTU) of the andorid device, typically 512 bytes, can be obtained before the bluetooth (ble) is used to transmit data. And for part of terminals and systems, the limit of the maximum transmission unit of the intelligent sound box is not returned.
The user clicks a button for acquiring the wifi list on the terminal, and the terminal sends a request for acquiring the wifi list;
and the intelligent sound box receives a request for acquiring the wifi list sent by the terminal, and decides a transmission mode according to whether the terminal replies to the maximum transmission unit.
If the intelligent sound box does not receive the maximum transmission unit limit replied by the terminal, the existing mode generally adopts the transmission of a ble transmission default transmission size, and the transmission of the ble transmission default transmission size is 23 bytes. When the default MTU is used for transferring data, the time for acquiring the wifi list is very long, so that the wifi list cannot be acquired by using the default MTU, and the user cannot select wifi. Aiming at the condition that the terminal does not reply to the maximum transmission unit, the method and the device use a BLE_WIFI self-adaptive transmission algorithm to transmit WIFI list data, and can meet the acquisition speed of a WIFI list. The specific method comprises the following steps:
referring to fig. 2B, fig. 2B is a flowchart of a ble_wifi adaptive transmission algorithm.
When the intelligent sound box does not receive the maximum transmission unit limit replied by the terminal, acquiring available wifi information in a preset range;
establishing a wifi list according to wifi information;
and calculating the data size of the wifi list, and transmitting the data size of the wifi list to the terminal according to the default transmission size of the ble.
And the terminal receives and records the data size of the wifi list transmitted in the table default transmission size.
For example: the intelligent sound box calculates the data size of the wifi list, namely the data size of the wifi list before being transmitted to the terminal is 1000 bytes, and the data of 1000 bytes is transmitted to the terminal by the transmission size of 23 bytes.
If the data size of the wifi list is smaller than the preset byte, the preset byte can be 512 bytes, the data of the wifi list is transmitted to the terminal by the first forward data size in the wifi list transmission data queue, and the wifi list transmission data queue comprises data sizes which are arranged from small to large.
The wifi list transmission data queue may be {70,134,262,518}, with the unit being bytes. The value of the wifi list transmission data queue represents the size of a data packet transmitted at one time. According to the structure of the ble transport packets, each transport packet is composed of a header (2 bytes), a payload, and a trailer (4 bytes), so the queue data is composed of: the first 2 bytes are packet heads, the effective data loads are 64, 128, 256 and 512 bytes respectively, and the last 4 bytes are packet tails, so that a wifi list transmission data queue {70,134,262,518} is formed.
The terminal continuously receives the data of the wifi list sent by the intelligent sound box until receiving the end mark; calculating the data size of the received wifi list; if the data size of the wifi list transmitted by the intelligent sound box is inconsistent with the data size of the wifi list calculated by the terminal, sending a packet loss message to the intelligent sound box; if the data size of the wifi list transmitted by the intelligent sound box is consistent with the data size of the wifi list calculated by the terminal, displaying the wifi name in the wifi list and sending a non-packet-loss message to the intelligent sound box. After the user checks available wifi in the wifi list, any wifi in the list is selected, a password corresponding to the wifi is input, and the terminal sends a service set identifier and a password for the user to select the wifi to the intelligent sound box.
If the intelligent sound box receives a packet loss message sent by the terminal, judging whether the transmission data size is the last value of a wifi list transmission data queue;
and determining the last value of the wifi list transmission data queue according to the direction of the wifi list transmission data queue. The wifi list transfer data queue is specifically {70,134,262,518}, because transfer of 70 bytes of forward first data size begins, then the last value is 518 bytes of forward last value.
And if the transmission data size is not the last value of the wifi list transmission data queue, retransmitting the data of the wifi list to the terminal by using the next forward data size in the wifi list transmission data queue.
And if the transmission data size is the last value of the wifi list transmission data queue, sending a message of failure in acquiring the wifi list to the terminal.
And if the intelligent sound box receives the non-packet-loss message sent by the terminal, receiving a service set identifier and a password of wifi selected by a user. Connecting the wireless network by using the received service set identification and the password; and after the connection is successful, reporting the successful networking state to the terminal.
The terminal enters a home page to display media resources and the like.
For example: the wifi list transmission data queue is {70,134,262,518}, the data size of the wifi list transmitted to the terminal by the intelligent sound box is 500 bytes, and the data of the wifi list is transmitted to the terminal by the intelligent terminal in 70 bytes. If the terminal receives all the transmitted data and calculates that the received data size is 500 bytes, the data size of a wifi list transmitted to the terminal by the intelligent sound box is consistent with the data size calculated by the terminal, the terminal sends a packet loss-free message to the intelligent sound box, and the intelligent sound box receives a service set identifier and a password of wifi selected by a user. Connecting the wireless network by using the received service set identification and the password; and after the connection is successful, reporting the successful networking state to the terminal. The terminal enters the home page to display media resources. If the terminal receives all the transmitted data and calculates the received data size as 490 bytes, the data size of the wifi list transmitted to the terminal by the intelligent sound box is inconsistent with the data size calculated by the terminal, and the terminal sends a packet loss message to the intelligent sound box. Because 70 is not the last data size of wifi list transmission data queue, intelligent audio amplifier is with the data of 134 byte transmission size retransmission wifi list to terminal until receiving the no packet loss message that the terminal sent, perhaps after the data of wifi list transmission data queue's last data size 518 byte retransmission data list to terminal, still do not receive the no packet loss message that the terminal sent, intelligent terminal sends the message that wifi list acquisition failed to the terminal, and the terminal shows the message that the distribution network failed, and the user can try again and try the distribution network.
If the data size of the wifi list is not smaller than the preset byte, the preset byte can be 512 bytes, and the data of the wifi list is transmitted to the terminal by the first reverse data size in the wifi list transmission data queue.
The wifi list transmission data queue may be {70,134,262,518}, with the unit being bytes. The value of the wifi list transmission data queue represents the size of a data packet transmitted at one time. According to the structure of the ble transport packets, each transport packet is composed of a header (2 bytes), a payload, and a trailer (4 bytes), so the queue data is composed of: the first 2 bytes are packet heads, the effective data loads are 64, 128, 256 and 512 bytes respectively, and the last 4 bytes are packet tails, so that a wifi list transmission data queue {70,134,262,518} is formed.
The terminal continuously receives the data of the wifi list sent by the intelligent sound box until receiving the end mark; calculating the data size of the received wifi list; if the data size of the wifi list transmitted by the intelligent sound box is inconsistent with the data size of the wifi list calculated by the terminal, sending a packet loss message to the intelligent sound box; if the data size of the wifi list transmitted by the intelligent sound box is consistent with the data size of the wifi list calculated by the terminal, displaying the wifi name in the wifi list and sending a non-packet-loss message to the intelligent sound box. After the user checks available wifi in the wifi list, any wifi in the list is selected, a password corresponding to the wifi is input, and the terminal sends a service set identifier and a password for the user to select the wifi to the intelligent sound box.
If the intelligent sound box receives a packet loss message sent by the terminal, judging whether the transmission data size is the last value of a wifi list transmission data queue;
and determining the last value of the wifi list transmission data queue according to the direction of the wifi list transmission data queue. The wifi list transfer data queue may be {70,134,262,518}, because the transfer starts with the reverse first data size 518 bytes, then the last value is the reverse last value 70 bytes.
And if the transmission data size is not the last value of the wifi list transmission data queue, retransmitting the data of the wifi list to the terminal by using the next reverse data size in the wifi list transmission data queue.
And if the transmission data size is the last value of the wifi list transmission data queue, sending a message of failure in acquiring the wifi list to the terminal.
And if the intelligent sound box receives the non-packet-loss message sent by the terminal, receiving a service set identifier and a password of wifi selected by a user. Connecting the wireless network by using the received service set identification and the password; and after the connection is successful, reporting the successful networking state to the terminal.
The terminal enters a home page to display media resources and the like.
For example: the wifi list transmission data queue may be {70,134,262,518}, the data size of the wifi list transmitted to the terminal by the intelligent sound box is 3000 bytes, and the intelligent terminal transmits the data of the wifi list to the terminal in 518 bytes. If the terminal receives all the transmitted data and calculates the data size to be 3000 bytes, the data size of the wifi list transmitted to the terminal by the intelligent sound box is consistent with the data size calculated by the terminal, the terminal sends a packet loss-free message to the intelligent sound box, and the intelligent sound box receives the service set identifier and the password of wifi selected by the user. Connecting the wireless network by using the received service set identification and the password; and after the connection is successful, reporting the successful networking state to the terminal. The terminal enters the home page to display media resources. If the terminal receives all the transmitted data and calculates the data size to be 2800 bytes, the data size of the wifi list transmitted to the terminal by the intelligent sound box is inconsistent with the data size calculated by the terminal, and the terminal sends a packet loss message to the intelligent sound box. Because 518 is not the last value of wifi list transmission data queue, intelligent audio amplifier is again with 262 byte transmission size retransmission wifi list's data to terminal, until receiving the no packet loss message that the terminal sent, perhaps, after the data of wifi list transmission data queue's last data size 70 byte retransmission data list is to terminal, still not receive the no packet loss message that the terminal sent, intelligent terminal sends wifi list acquisition failure's message to terminal, the terminal shows the message of joining in marriage net failure, the user can try again and join in marriage the net.
If the intelligent sound box receives the maximum transmission unit limit replied by the terminal, acquiring available wifi information in a preset range; establishing a wifi list according to wifi information; and transmitting the data of the wifi list with the transmission size of the maximum transmission unit.
For example, if the maximum transmission unit replied by the terminal is limited to 512 bytes, the data of the wifi list is transmitted in 512 byte transmission size.
The terminal receives a wifi list which is sent by the intelligent sound box and is available, and wifi names in the wifi list are displayed.
The user checks any wifi in the available wifi back selection list, and inputs a password corresponding to the wifi.
And the terminal sends the service set identifier and the password of the wifi selected by the user to the intelligent sound box.
The intelligent sound box is connected with a wireless network by using the received service set identification and the password; and after the connection is successful, reporting the successful networking state to the terminal.
The terminal enters the home page to display media resources.
The intelligent sound box is mainly dependent on a network, when the intelligent sound box is used for the first time, a terminal app is required to be used for configuring the network for the intelligent sound box, and in order to optimize user experience, a user can freely select the network to configure the network of the sound box no matter the app on an Android or IOS mobile phone operating system is operated.
According to the technical scheme, after the intelligent sound box is successfully connected with the terminal, a request for acquiring the maximum transmission unit is sent to the terminal; if the maximum transmission unit replied by the terminal is not received, establishing a wifi list; and transmitting the data of the wifi list to the terminal by utilizing the data size in the wifi list transmission data queue sequentially and independently until the terminal sends a non-packet-loss message. The intelligent sound box receives a service set identifier and a password of wifi selected by a user; and connecting the wireless network according to the service set identifier and the password. According to the method and the device, in the network distribution process, when the MTU condition of the terminal is not acquired, the use of the maximum transmission unit capable of defaulting to transmit data can be avoided, the function of acquiring the wifi list can be realized by equipment compatible with different systems, the network can be freely configured by a user, the terminal is not required to be connected with wifi or the wifi connected with the terminal in advance, and the user experience is enhanced.
The embodiment of the application provides an intelligent sound box, including:
a sound output module for outputting a sound signal acquired from the terminal;
a communicator for establishing a connection state with the terminal;
a controller coupled to the sound input module and the communicator for performing:
sending a request for acquiring a maximum transmission unit to a terminal;
receiving a wifi list acquisition request sent by the terminal;
if the maximum transmission unit replied by the terminal is not received, acquiring available wifi information in a preset range, and establishing a wifi list according to the wifi information;
transmitting data of the wifi list to the terminal by using the first data size in the wifi list transmission data queue;
if the packet loss message sent by the terminal is received, transmitting the data of the wifi list to the terminal in the next data size in a wifi list transmission data queue until the packet loss message sent by the terminal is received or the packet loss message sent by the terminal is not received after traversing the wifi list transmission data queue;
if the non-packet-loss message sent by the terminal is received, receiving a service set identifier and a password of wifi selected by a user;
and connecting the wireless network according to the service set identifier and the password.
In some embodiments, the controller performs the transmitting the wifi list data to the terminal with the first data size in the wifi list transmission data queue with the following steps:
calculating the data size of the wifi list;
if the data size of the wifi list is smaller than a preset byte, transmitting the data of the wifi list to the terminal by using the first forward data size in a wifi list transmission data queue, wherein the wifi list transmission data queue comprises data sizes which are arranged from small to large;
in some embodiments, the controller further performs transmitting the wifi list data to the terminal at a first data size in a wifi list transmission data queue with:
and if the data size of the wifi list is not smaller than the preset byte, transmitting the data of the wifi list to the terminal by using the first reverse data size in the wifi list transmission data queue.
In some embodiments, the controller is further configured to perform:
and if the non-packet-loss message sent by the terminal is not received after traversing the wifi list transmission data queue, sending a message of failure in obtaining the wifi list to the terminal.
In some embodiments, the controller is further configured to perform:
transmitting the data size of the wifi list to the terminal according to the default transmission size of the ble, so that the terminal continuously receives the data of the wifi list until receiving the end mark, and calculating the data size of the received wifi list; if the data size of the transmitted wifi list is inconsistent with the calculated data size of the wifi list, sending a packet loss message; and if the data size of the transmitted wifi list is consistent with the calculated data size of the wifi list, displaying the wifi name in the wifi list and sending a non-packet-loss message.
According to the technical scheme, after the intelligent sound box is successfully connected with the terminal, a request for acquiring the maximum transmission unit is sent to the terminal; if the maximum transmission unit replied by the terminal is not received, establishing a wifi list; and transmitting the data of the wifi list to the terminal by utilizing the data size in the wifi list transmission data queue sequentially and independently until the terminal sends a non-packet-loss message. The intelligent sound box receives a service set identifier and a password of wifi selected by a user; and connecting the wireless network according to the service set identifier and the password. According to the method and the device, in the network distribution process, when the MTU condition of the terminal is not acquired, the use of the maximum transmission unit capable of defaulting to transmit data can be avoided, the function of acquiring the wifi list can be realized by equipment compatible with different systems, the network can be freely configured by a user, the terminal is not required to be connected with wifi or the wifi connected with the terminal in advance, and the user experience is enhanced.
In a specific implementation, the application further provides a computer storage medium, where the computer storage medium may store a program, where the program may include some or all of the steps in each embodiment of the method for improving asset security provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the intelligent sound box network distribution method and the intelligent sound box embodiment, the description is relatively simple because the intelligent sound box network distribution method and the intelligent sound box embodiment are basically similar to the method embodiment, and the relevant points are referred to the description in the method embodiment.
The above-described embodiments of the present application are not intended to limit the scope of the present application.

Claims (10)

1. An intelligent sound box, which is characterized by comprising:
a sound output module for outputting a sound signal acquired from the terminal;
a communicator for establishing a connection state with the terminal;
a controller connected to the sound output module and the communicator for performing:
sending a request for acquiring a maximum transmission unit of the terminal to the terminal;
receiving a wifi list acquisition request sent by the terminal;
if the maximum transmission unit replied by the terminal is not received, acquiring available wifi information in a preset range, and establishing a wifi list according to the wifi information;
transmitting data of the wifi list to the terminal by using the first data size in the wifi list transmission data queue;
if the packet loss message sent by the terminal is received, transmitting the data of the wifi list to the terminal in the next data size in a wifi list transmission data queue until the packet loss message sent by the terminal is received or the packet loss message sent by the terminal is not received after traversing the wifi list transmission data queue;
if the non-packet-loss message sent by the terminal is received, receiving a service set identifier and a password of wifi selected by a user;
and connecting the wireless network according to the service set identifier and the password.
2. The intelligent speaker of claim 1, wherein the controller performs the transmitting the wifi list data to the terminal in a first data size in a wifi list transmit data queue by:
calculating the data size of the wifi list;
if the data size of the wifi list is smaller than the preset byte, the data of the wifi list is transmitted to the terminal by the first forward data size in the wifi list transmission data queue, and the wifi list transmission data queue comprises data sizes which are arranged from small to large.
3. The intelligent sound box according to claim 2, wherein the controller further performs the step of transmitting the wifi list data to the terminal in a first data size in a wifi list transmission data queue:
and if the data size of the wifi list is not smaller than the preset byte, transmitting the data of the wifi list to the terminal by using the first reverse data size in the wifi list transmission data queue.
4. The intelligent sound box according to claim 1, wherein the controller is further configured to perform:
and if the non-packet-loss message sent by the terminal is not received after traversing the wifi list transmission data queue, sending a message of failure in obtaining the wifi list to the terminal.
5. The intelligent sound box according to claim 1, wherein the controller is further configured to perform:
transmitting the data size of the wifi list to the terminal according to the default transmission size of the ble, so that the terminal continuously receives the data of the wifi list until receiving the end mark, and calculating the data size of the received wifi list; if the data size of the transmitted wifi list is inconsistent with the calculated data size of the wifi list, sending a packet loss message; and if the data size of the transmitted wifi list is consistent with the calculated data size of the wifi list, displaying the wifi name in the wifi list and sending a non-packet-loss message.
6. The utility model provides a join in marriage net method of intelligent audio amplifier, is applied to intelligent audio amplifier, which is characterized in that includes:
sending a request for acquiring a maximum transmission unit of a terminal to the terminal;
receiving a wifi list acquisition request sent by the terminal;
if the maximum transmission unit replied by the terminal is not received, acquiring available wifi information in a preset range, and establishing a wifi list according to the wifi information;
transmitting data of the wifi list to the terminal by using the first data size in the wifi list transmission data queue;
if the packet loss message sent by the terminal is received, transmitting the data of the wifi list to the terminal in the next data size in a wifi list transmission data queue until the packet loss message sent by the terminal is received or the data queue is traversed, and the packet loss message sent by the terminal is not received yet;
if the non-packet-loss message sent by the terminal is received, receiving a service set identifier and a password of wifi selected by a user;
and connecting the wireless network according to the service set identifier and the password.
7. The method of claim 6, wherein the transmitting the wifi list data to the terminal with the first data size in the wifi list transmission data queue specifically includes:
calculating the data size of the wifi list;
if the data size of the wifi list is smaller than the preset byte, the data of the wifi list is transmitted to the terminal by the first forward data size in the wifi list transmission data queue, and the wifi list transmission data queue comprises data sizes which are arranged from small to large.
8. The method of claim 6, wherein the transmitting the wifi list data to the terminal with the first data size in the wifi list transmission data queue, specifically further comprises:
and if the data size of the wifi list is not smaller than the preset byte, transmitting the data of the wifi list to the terminal by using the first reverse data size in the wifi list transmission data queue.
9. The method as recited in claim 6, further comprising:
and if the non-packet-loss message sent by the terminal is not received after traversing the wifi list transmission data queue, sending a message of failure in obtaining the wifi list to the terminal.
10. The method as recited in claim 6, further comprising:
transmitting the data size of the wifi list to the terminal according to the default transmission size of the ble, so that the terminal continuously receives the data of the wifi list until receiving the end mark, and calculating the data size of the received wifi list; if the data size of the transmitted wifi list is inconsistent with the calculated data size of the wifi list, sending a packet loss message; and if the data size of the transmitted wifi list is consistent with the calculated data size of the wifi list, displaying the wifi name in the wifi list and sending a non-packet-loss message.
CN202010091309.1A 2020-02-13 2020-02-13 Network distribution method of intelligent sound box and intelligent sound box Active CN111278011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010091309.1A CN111278011B (en) 2020-02-13 2020-02-13 Network distribution method of intelligent sound box and intelligent sound box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010091309.1A CN111278011B (en) 2020-02-13 2020-02-13 Network distribution method of intelligent sound box and intelligent sound box

Publications (2)

Publication Number Publication Date
CN111278011A CN111278011A (en) 2020-06-12
CN111278011B true CN111278011B (en) 2023-07-21

Family

ID=71002555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010091309.1A Active CN111278011B (en) 2020-02-13 2020-02-13 Network distribution method of intelligent sound box and intelligent sound box

Country Status (1)

Country Link
CN (1) CN111278011B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102119499B (en) * 2008-06-02 2015-01-14 Tttech电脑技术股份公司 Method for synchronizing local clocks in a distributed computer network
CN104144034B (en) * 2013-12-04 2016-04-13 腾讯科技(深圳)有限公司 Password is shared and acquisition methods and device
CN107342885A (en) * 2016-05-03 2017-11-10 中兴通讯股份有限公司 Method of adjustment, device and the terminal device of terminal MTU
CN110072267A (en) * 2018-01-22 2019-07-30 阿拉的(深圳)人工智能有限公司 Method, apparatus, storage medium and the intelligent sound box of intelligent sound box networking
CN110167193A (en) * 2019-04-17 2019-08-23 苏宁智能终端有限公司 WiFi matches network method and WiFi equipment automatically

Also Published As

Publication number Publication date
CN111278011A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
US20190132401A1 (en) Electronic device using logical channels for communication
CN108200170A (en) Message treatment method, device and readable storage medium storing program for executing
CN110636483A (en) Network distribution method and system
EP2573970B1 (en) Near field communication reader device, near field communication tag device, near field communication system and near field communication method
CN110808948B (en) Remote procedure calling method, device and system
CN105309036A (en) Mac layer transport for wi-fi direct services application service platform without internet protocol
CN104106303A (en) Methods and apparatus for establishing tunneled direct link setup (TDLS) session between devices in wireless network
CN103220822A (en) Data transmission method, data transmission device and mobile terminal
CN111464419B (en) Data transmission control method based on bus network communication
CN102869123A (en) Virtual peripheral data acquisition method and system applicable to intelligent display equipment
CN110324193A (en) A kind of terminal upgrade management method and device
CN113141671A (en) Communication method and device of wifi device and computer readable storage medium
CN113938355B (en) Data transmission method, system and storage medium
CN111585801A (en) ZigBee device upgrading method and related device
US9497576B2 (en) NFC configuration method, NFC data transmission method, controller, and NFC controller
CN111278011B (en) Network distribution method of intelligent sound box and intelligent sound box
CN115883572A (en) Peripheral sharing method and device
CN113812904A (en) Endoscopic capsule image transmission method, device and system
CN115967927A (en) Bluetooth connection method and device, earphone and storage medium
CN113794751A (en) Data interaction method, system, equipment and storage medium of Internet of things system
CN106850246A (en) The recognition methods of facility information and device
CN108712373B (en) Unidirectional communication method, device, user terminal and computer readable storage medium
US20240048990A1 (en) Bluetooth connection method and system, intelligent terminal, and computer storage medium
CN111614384B (en) Device with storage function, Bluetooth device and control method and system thereof
WO2021232389A1 (en) Data communication method and system, electronic device, chip, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant