CN110120220A - A kind of working method and system of cloud speaker - Google Patents

A kind of working method and system of cloud speaker Download PDF

Info

Publication number
CN110120220A
CN110120220A CN201910459475.XA CN201910459475A CN110120220A CN 110120220 A CN110120220 A CN 110120220A CN 201910459475 A CN201910459475 A CN 201910459475A CN 110120220 A CN110120220 A CN 110120220A
Authority
CN
China
Prior art keywords
distribution
cloud speaker
module
mobile terminal
list
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.)
Granted
Application number
CN201910459475.XA
Other languages
Chinese (zh)
Other versions
CN110120220B (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201910459475.XA priority Critical patent/CN110120220B/en
Publication of CN110120220A publication Critical patent/CN110120220A/en
Application granted granted Critical
Publication of CN110120220B publication Critical patent/CN110120220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of implementation methods of cloud speaker work, comprising: cloud speaker distribution process and voice broadcast process;Its medium cloud speaker distribution process are as follows: cloud speaker judges whether that network can be connected automatically, if so, connecting network automatically;Otherwise, into cloud speaker distribution process;Voice broadcast process includes: the voice broadcast request that server reception mobile terminal is sent, and parsing voice broadcast request, judging the corresponding cloud speaker of mobile terminal, whether distribution is successful, if so, sending voice broadcast request to cloud speaker;Otherwise, the non-distribution response of cloud speaker is sent to mobile terminal;After cloud speaker receives the voice broadcast request that server is sent, voice broadcast is carried out.Through the invention, cloud speaker can be used alone, convenient for deployment.

Description

A kind of working method and system of cloud speaker
Technical field
The present invention relates to information security field more particularly to a kind of working methods and system of cloud speaker.
Background technique
With the continuous development of science and technology, mobile payment obtains more and more common application in life;Currently, user into When row mobile payment, trade company needs to carry out gathering by barcode scanning gun, barcode scanning box and voice broadcast equipment and the amount of money is broadcasted;But It is that in the prior art, barcode scanning gun, barcode scanning box and voice broadcast equipment are usually corollary equipment, needs to connect and match, if One of them goes wrong, and may also influence whether that other equipment use, not flexible to be also not easy to dispose.
Summary of the invention
According to the present invention, a kind of working method of cloud speaker is provided, comprising:
Cloud speaker distribution process and cloud speaker voice broadcast process;
Cloud speaker distribution process includes:
Step s1: acquisition for mobile terminal and the device identification for saving cloud speaker send the equipment mark of cloud speaker to server Knowledge and the device identification of mobile terminal;
Step s2: server receives and corresponds to the device identification of the device identification and mobile terminal that save cloud speaker, Xiang Yi Dynamic terminal, which returns, saves success response;
Step s3: mobile terminal shows cloud speaker distribution interface, and user is prompted to input the name for needing the wireless network connected Title and password, judge whether the title for receiving wireless network and password, if so, executing step s4;Otherwise, distribution fails, Terminate;
Step s4: the title and password for the infinite network that mobile terminal is inputted according to user generate data packet, broadcast frame hair Send data packet;
Step s5: cloud speaker opens promiscuous mode, and monitored data packet parses data packet when listening to effective data packets Distribution is carried out, judges whether distribution success, if so, distribution success, executes voice broadcast process;Otherwise, distribution fails, knot Beam;
Voice broadcast process includes:
Step s6: mobile terminal sends payment request to server;
Step s7: server receives payment request, and parsing payment request generates voice broadcast request, judges mobile terminal pair Whether distribution success terminates the cloud speaker answered if so, sending voice broadcast request to cloud speaker;Otherwise, it is sent out to mobile terminal Send cloud speaker non-distribution response;
Step s8: mobile terminal receives the non-distribution response of cloud speaker, prompts the non-distribution success of user's cloud speaker, executes step s1。
Optionally, before step s1 further include:
Step s0: cloud speaker judge memory block with the presence or absence of effective distribution information, if so, using effective distribution information into Row distribution executes voice broadcast process;Otherwise, step s1 is executed.
Optionally, step s0 is specifically included:
Step s0-1: cloud speaker checks memory block, judges memory block with the presence or absence of distribution information, if so, according to distribution Information generates first list, executes step s0-2;Otherwise, step s1 is executed;
Step s0-2: cloud speaker detects radio network information, judges whether to detect radio network information, if so, root Second list is generated according to radio network information, executes step s0-3;Otherwise, step s1 is executed;
Step s0-3: cloud speaker obtains the first information in first list, retrieves second list, compares the with the first information Data in two lists judge with the presence or absence of data identical with the first information in second list, if so, executing step s0- 4;Otherwise, step s1 is executed;
Step s0-4: cloud speaker judges whether identical with first information data are the first data in second list, such as Fruit is to obtain the first data, executes step s0-6;Otherwise, data identical with the first information are put into third list, are executed Step s0-5;
Step s0-5: cloud speaker judges whether there is also the distribution information not compared in first list, if so, returning to step Rapid s0-3;Otherwise, step s0-6 is executed;
Step s0-6: cloud speaker carries out distribution using the first data in third list, judges whether distribution success, such as Fruit is to prompt user's distribution success, into voice broadcast process.
Optionally, it is also wrapped after mobile terminal judges the title and password that do not receive wireless network in step s3 It includes:
Mobile terminal judges whether to be more than preset time, if so, distribution fails, terminates;Otherwise, step is continued to execute s3。
Optionally, step s5 specifically:
Step s5-1: cloud speaker opens promiscuous mode, and monitored data packet judges whether to listen to data packet, if so, holding Row step s5-2;Otherwise, distribution fails, and terminates;
Step s5-2: cloud speaker parses data packet, obtains the first check value of wireless network name, obtains in second list Wireless network name, according to the title of wireless network calculate generate check value, according to check value generate verification value list;
Step s5-3: cloud speaker is obtained from verification value list and the matched check value of the first check value, according to check value The password that wireless network is obtained from data packet, connects network with password according to the title of wireless network, judges whether to connect into Function, if so, distribution success, returns to distribution successful information to server;Otherwise, distribution fails, and terminates.
Optionally, step s5-3 specifically:
Cloud speaker obtains check value identical with the first check value from verification value list, according to check value from data packet Password is obtained, network is connected with password according to the title of wireless network, judges whether successful connection, if so, distribution success, to Server returns to distribution successful information;Otherwise, distribution fails, and terminates.
Optionally, judge in step s7 the corresponding cloud speaker of mobile terminal whether distribution success before, further includes:
Server parses voice broadcast request, and the device identification of mobile terminal is obtained from voice broadcast request, judges number According to the device identification that whether there is in library with the corresponding cloud speaker of mark of mobile terminal, if so, judging the equipment of cloud speaker Identifying corresponding cloud speaker, whether distribution is successful;Otherwise, corresponding cloud speaker response is not found to mobile terminal transmission.
Optionally, after server, which does not find corresponding cloud speaker to mobile terminal transmission, to be responded, further includes:
Mobile terminal prompt user does not find corresponding cloud speaker, executes step s1.
Optionally, in step s7 after server, which sends voice broadcast to cloud speaker, requests, further includes:
Cloud speaker carries out voice broadcast.
Optionally, before cloud speaker progress voice broadcast, further includes:
Cloud speaker receives voice broadcast request, and parsing voice broadcast request obtains the mark and content that need to broadcast message, root Judge whether content was broadcasted according to the mark that need to broadcast message, if so, sending the response of message repeatedly broadcasting to server;It is no Then, voice broadcast is carried out, message is sent to server and has broadcasted response.
In the present invention, a kind of cloud speaker that voice broadcast may be implemented is provided, cloud speaker is an individual voice broadcast Equipment is not influenced by other equipment, reduces limitation, facilitates deployment.
Detailed description of the invention
Fig. 1-1 is a kind of thread figure for cloud speaker distribution process that the embodiment of the present invention one provides;
Fig. 1-2 is a kind of thread figure for cloud speaker voice broadcast process that the embodiment of the present invention one provides;
Fig. 2 is a kind of thread figure of cloud speaker distribution process provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of thread figure of cloud speaker voice broadcast process provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of block diagram for cloud speaker work system that the embodiment of the present invention three provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Embodiment one
According to embodiments of the present invention one, a kind of working method of cloud speaker is provided, this method be applied to including mobile terminal, In the system of server and cloud speaker, comprising:
Cloud speaker distribution process and cloud speaker voice broadcast process;
Wherein, cloud speaker distribution process includes:
Step s101: acquisition for mobile terminal and the device identification for saving cloud speaker, the equipment for sending cloud speaker to server The device identification of mark and mobile terminal;
Before step s101, the process further include:
Cloud speaker judges that memory block whether there is effective distribution information, if so, distribution is carried out using effective distribution information, Execute voice broadcast process;Otherwise, step s101 is executed.
Optionally, cloud speaker judges that storage area is specifically included with the presence or absence of effective address distribution information:
Step s0-1: cloud speaker checks memory block, judges memory block with the presence or absence of distribution information, if so, according to distribution Information generates first list, executes step s0-2;Otherwise, step s101 is executed;
Step s0-2: cloud speaker scans radio network information, judges whether scanning to radio network information, if so, root Second list is generated according to infinite network information, executes step s0-3;Otherwise, step s101 is executed;
Step s0-3: cloud speaker obtain first list in the first information, retrieve second list, judge be in second list It is no to there are data identical with the first information, if so, executing step s0-4;Otherwise, step s101 is executed;
Step s0-4: cloud speaker judges whether identical with first information data are the first data in second list, such as Fruit is to obtain the first data, executes step s0-6;Otherwise, the first data are put into third list, execute step s0-5;
Step s0-5: cloud speaker judges whether there is also distribution information in first list, if so, return step s0-3; Otherwise, step s0-6 is executed;
Step s0-6: cloud speaker carries out distribution using the first data in third list, judges whether distribution success, such as Fruit is to prompt user's distribution success, into voice broadcast process.
Step s102: server receives and corresponds to the device identification of the device identification and mobile terminal that save cloud speaker, to Mobile terminal, which returns, saves success response;
Step s103: mobile terminal shows cloud speaker distribution interface, and user is prompted to input the wireless network for needing to connect Title and password judge whether the title for receiving wireless network and password, if so, executing step s104;Otherwise, distribution is lost It loses, terminates;
Optionally, when mobile terminal judges the title and password that do not receive wireless network, further includes: mobile terminal Judge whether to be more than preset time, if so, distribution fails, terminate;Otherwise, step s103 is continued to execute.
Step s104: the title and password for the infinite network that mobile terminal is inputted according to user generate data packet, broadcast frame Send data packet;
Step s105: cloud speaker opens promiscuous mode, and monitored data packet parses data when listening to effective data packets Packet carries out distribution, judges whether distribution success, if so, distribution success, returns to distribution success response to server;Otherwise, match Net failure, terminates;
Optionally, step s105 is specifically included:
Step s105-1: cloud speaker opens promiscuous mode, and monitored data packet judges whether to listen to data packet, if so, Execute step s105-2;Otherwise, distribution fails, and terminates;
Step s105-2: cloud speaker parses data packet, obtains the first check value of wireless network name, obtains second list In wireless network name, according to the title of wireless network calculate generate check value, according to check value generate verification value list;
Step s105-3: cloud speaker is obtained from verification value list and the matched check value of the first check value, according to verification It is worth the password for obtaining wireless network from data packet, network is connected with password according to the title of wireless network, judges whether to connect Success, if so, distribution success, returns to distribution successful information to server;Otherwise, distribution fails, and terminates.
Optionally, step s105-3 specifically: cloud speaker obtains school identical with the first check value from verification value list Value is tested, obtains the title and password of corresponding wireless network from data packet according to check value, according to the title of wireless network and close Code connection network, judges whether successful connection, if so, distribution success, returns to distribution successful information to server;Otherwise, match Net failure, terminates.
The voice broadcast process includes:
Step s106: mobile terminal sends payment request to server;
Step s107: server receives payment request, and parsing payment request generates voice broadcast request, judges mobile terminal Whether distribution is successful for corresponding cloud speaker, if so, sending voice broadcast request to cloud speaker, cloud speaker carries out voice broadcast, Terminate;Otherwise, the non-distribution response of cloud speaker is sent to mobile terminal, executes step s108;
Optionally, server judge the corresponding cloud speaker of mobile terminal whether distribution success before, further includes:
Server parses voice broadcast request, and the device identification of mobile terminal is obtained from voice broadcast request, judges number According to the device identification that whether there is in library with the corresponding cloud speaker of mark of mobile terminal, if so, judging the equipment of cloud speaker Identifying corresponding cloud speaker, whether distribution is successful;Otherwise, corresponding cloud speaker response is not found to mobile terminal transmission.
After server, which does not find corresponding cloud speaker to mobile terminal transmission, to be responded, further includes:
Mobile terminal prompt user does not find corresponding cloud speaker, executes step s101.
Optionally, after server, which sends voice broadcast to cloud speaker, requests, further includes:
Cloud speaker carries out voice broadcast.
Step s108: mobile terminal receives the non-distribution response of cloud speaker, prompts the non-distribution success of user's cloud speaker, executes step Rapid s101.
Embodiment two
According to embodiments of the present invention two, a kind of working method of cloud speaker is provided, this method is applied to include mobile whole In the system at end, server and cloud speaker, comprising:
Cloud speaker distribution process and cloud speaker voice broadcast process;
Wherein, cloud speaker distribution process, as shown in Figure 2, comprising:
Step s201: cloud speaker checks storage area, judges storage area with the presence or absence of distribution information, if so, according to distribution Information generates first list, executes step s202;Otherwise, step s207 is executed;
Optionally, in first list, distribution information is according to network signal by being arranged to weak sequence by force;
Step s202: cloud speaker scans the information of distribution nearby, judges whether scanning to distribution information, if so, according to sweeping The distribution information retouched generates second list;Otherwise, step s207 is executed;
Optionally, step s202 specifically: cloud speaker scans radio network information nearby, judges whether scanning to wireless network Network information, if so, according to wireless network signal by being sequentially generated second list to weak by force;Otherwise, step s207 is executed;
Optionally, radio network information is the title of wireless network.
Step s203: cloud speaker obtains the first information in first list, retrieves second list, compares the with the first information Data in two lists judge with the presence or absence of data identical with the first information in second list, if so, executing step s204;Otherwise, step s207 is executed;
Optionally, the first information in first list is the title letter of first wireless network of first list entreme and mean ratio pair Breath.
Step s204: cloud speaker judges whether identical with first information data are the first data in second list, such as Fruit is to execute step s206;Otherwise, data identical with the first information are put into third list, and according to signal by by force to weak Sequence arrangement, execute step s205;
Optionally, the first data in second list are the name information of first wireless network in second list.
Step s205: cloud speaker judges whether there is also the distribution information not compared in first list, if so, returning to step Rapid s203;Otherwise, step s206 is executed;
Step s206: cloud speaker uses the first data in third list as distribution information configuration network, and judgement is No distribution success, if so, prompt user's distribution success, sends distribution success response to server;Otherwise, step is executed s207;
Step s207: cloud speaker opens promiscuous mode, begins listening for UDP (the User Datagram in space Protocol, User Datagram Protocol) data packet;
Optionally, cloud speaker unlatching promiscuous mode can be before or after mobile terminal sends and broadcasts.
Step s208: mobile terminal linking objective wireless network obtains and saves the device identification of cloud speaker, sends movement The device identification of terminal and the device identification of the cloud speaker got are to server;
Optionally, step s208 specifically: mobile terminal linking objective wireless network scans the two dimensional code on cloud speaker, Parsing two-dimensional barcode information obtains and saves the facility information of cloud speaker, and setting for cloud speaker is obtained from the facility information of cloud speaker Standby mark;The device identification of mobile terminal and the device identification of the cloud speaker got are sent to server;
In the present embodiment, the facility information of cloud speaker may include: device type, device model, equipment Serial Number and The information such as device mac address;
Such as: the two dimensional code on mobile scanning terminal cloud speaker, parsing two-dimensional barcode information obtain the device type of cloud speaker For wireless network type;Device model is c890;Equipment Serial Number is 20937;The address equipment Mac are as follows: 88 25 48 31 51 EA;Distribution key is 85 64 46 87 23 54 98 78 19 A8 of 1A, 84 D1 E7 A8 A7;The equipment for saving cloud speaker Information and distribution key.
Step s209: server obtains the device identification of mobile terminal and the device identification of cloud speaker, by cloud speaker Device identification and the corresponding preservation of the device identification of mobile terminal, return to mobile terminal and save success response;
Step s210: mobile terminal shows cloud speaker distribution interface, and user is prompted to input the wireless network for needing to connect Title and password judge whether the title and password that receive user's input, if so, executing step s211;Otherwise, distribution is lost It loses, terminates;
Optionally, it when mobile terminal does not receive the title and password of the wireless network of user's input, before terminating, also wraps It includes: judging whether to be more than preset time, if so, distribution fails, terminate;Otherwise, step s210 is continued to execute.
Optionally, after mobile terminal judgement receives title and the password of wireless network in step s210, step is executed Before s211 further include:
Whether the title and password of the wireless network for user's input that mobile terminal judgement receives are legal, if so, holding Row step s211;Otherwise, distribution fails, and terminates.
Optionally, whether the title and password of the wireless network for user's input that mobile terminal judgement receives are legal specific Include:
Mobile terminal judgement receive user input wireless network title whether be non-empty and password format It is whether correct, if so, executing step s211;Otherwise, return step s210.
For example, whether the title of the wireless network for user's input that judgement receives is non-empty and whether PAD is in non- Text or length are no less than 8 bytes, if so, format is correct, execute step s211;Otherwise, format is incorrect, and distribution is lost It loses, terminates.
Step s211: the title and password for the wireless network that mobile terminal is inputted according to user generate UDP message packet, carry out Broadcast frame is sent;
Specifically, mobile terminal constructs leading numeric field data;Preamble field is made of 4 bytes, value be fixed as 1,2,3, 4};Network name and password are carried out coded treatment by mobile terminal, obtain the coded data of network name and password;To network name The coded data of title and the coded data length of network name carry out the check value that network name is calculated;To the coding of password The coded data length of data and password carries out the check value that password is calculated;By the check value of network name and network name It is combined to obtain the first data;The check value of network cipher and password is combined to obtain the second data;By network name, The random number that password and mobile terminal generate combines to obtain third data;Above-mentioned part is spliced to obtain final UDP number According to packet.
Step s212: cloud speaker judges whether to receive effective UDP message packet, if so, distribution success, generate distribution at Function response sends distribution success response to server;Otherwise, distribution fails, and terminates;
Optionally, step s212 specifically: cloud speaker opens promiscuous mode, begins listening for the UDP message packet in space, sentences It is disconnected whether to receive effective UDP message packet, if so, the UDP message packet that parsing receives, obtains the name of effective wireless network Title and password carry out distribution according to the title of wireless network and password, judge whether distribution success, if so, distribution success, raw At distribution success response, distribution success response is sent to server;Otherwise, distribution fails;
It optionally, include the device identification of cloud speaker in the distribution success response that cloud speaker generates.
Cloud speaker voice broadcast process, as shown in Figure 3, comprising:
Step s213: mobile terminal sends payment request to server;
It optionally, include the device identification of mobile terminal in payment request.
Step s214: server receives payment request, and parsing payment request generates voice broadcast request, obtains mobile terminal Device identification;
Optionally, step s213- step s214 specifically: mobile terminal sends payment request to payment server, payment Server receives and parses through payment request and generates message casting request, and voice broadcast request is sent to voice broadcast server, Voice broadcast server parses voice broadcast request, and obtains the device identification of mobile terminal;
Step s215: server judges in database with the presence or absence of cloud speaker corresponding with the device identification of mobile terminal Device identification, if so, executing step s217;Otherwise, corresponding cloud speaker response is not found to mobile terminal transmission;
Step s216: mobile terminal prompt user does not find corresponding cloud speaker, return step s208;
Step s217: server obtains the device identification of cloud speaker, judges the corresponding cloud sound of the device identification of the cloud speaker Whether distribution is successful for case, if so, sending voice broadcast request to cloud sound equipment;Otherwise, cloud sound equipment is sent to mobile terminal not match Net response;
Step s218: mobile terminal prompts the non-distribution success of user's cloud sound equipment, executes step s208;
Step s219: cloud sound equipment receives voice broadcast request, carries out voice broadcast.
Optionally, step s219 is specifically included:
Cloud speaker receives voice broadcast request, and parsing voice broadcast request obtains message identifier and content, according to message mark Knowledge judges whether current voice message was broadcasted, and repeats to issue response if so, returning to message to server;Otherwise, language is carried out Sound casting sends speech message to server and has broadcasted response.
Example IV
According to embodiments of the present invention four, a kind of realization system of cloud speaker work is provided, comprising:
Cloud speaker 1, server 2 and mobile terminal 3;
Mobile terminal 3 includes:
Module 301 is obtained, for obtaining and saving the device identification of cloud speaker;
Third sending module 302, the equipment of the cloud speaker for sending the acquisition of acquisition module 301 to server 2 and saving The device identification of mark and mobile terminal;
Cue module 303 prompts user to input the name for needing the wireless network connected for showing cloud speaker distribution interface Title and password;
Third judgment module 304 prompts the wireless network of user input for judging whether to receive cue module 303 Title and password;
Third generation module 305, for judging to receive the title and password of wireless network when third judgment module 304 When, data packet is generated according to the title of wireless network and password;
Third sending module 302 is also used to broadcast frame and sends the data packet that third generation module 305 generates;
Third sending module 302 is also used to send payment request to server;
Third receiving module 306 responds not successfully for receiving the distribution of cloud speaker;
Cue module 303 is also used to when third receiving module 306 receives cloud speaker distribution and responds not successfully, prompts to use The non-distribution success of family cloud speaker;
The server 2 includes:
Second receiving module 201 saves the device identification of cloud speaker and setting for the mobile terminal for receiving and corresponding to Standby mark;
Second sending module 202, for when the second receiving module 201 receive and the corresponding device identification for saving cloud speaker and When the device identification of mobile terminal, is returned to mobile terminal and save success response;
Second receiving module 201, is also used to receive payment request, and parsing payment request generates voice broadcast request;
Second judgment module 203, the payment request for being received according to the second receiving module 201 judge mobile terminal pair Whether distribution is successful for the cloud speaker answered;
Second sending module 202 is also used to judge the corresponding cloud speaker distribution of mobile terminal when the second judgment module 203 When success, voice broadcast request is sent to cloud speaker;
Second sending module 202 is also used to judge the corresponding cloud speaker distribution of mobile terminal when the second judgment module 203 When failed, the non-distribution response of cloud speaker is sent to mobile terminal;
Cloud speaker 1 includes:
Module 101 is monitored, for opening promiscuous mode, monitored data packet;
Distribution module 102, for when monitoring module 101 listens to effective data packets, parsing data packet to carry out distribution;
First judgment module 103, for judging whether 102 distribution of distribution module succeeds;
First sending module 104, for when first judgment module 103 judge 102 distribution of distribution module success when, to clothes Business device returns to distribution success response.
Cloud speaker further include:
First judgment module 103 is also used to judge the storage area of cloud speaker with the presence or absence of effective distribution information;
Distribution module 102 is also used to judge that there are effective distributions to believe for the storage area of cloud speaker when first judgment module 103 When breath, distribution is carried out using effective distribution information;
Voice broadcast module 105, for executing voice broadcast.
The judgment module 103 of cloud speaker includes:
Judging submodule 1031 judges in storage area for checking storage area with the presence or absence of distribution information;
Submodule 1032 is generated, for judging in storage area there are when distribution information, according to distribution when judging submodule Information generates first list;
Judging submodule 1031 is also used to scan radio network information, judges whether scanning to radio network information;
Submodule 1032 is generated to be also used to generate secondary series when judging submodule judges that radio network information is arrived in scanning Table;
Acquisition submodule 1033, for obtaining the first information generated in the first list that submodule generates;
Judging submodule 1031, which is also used to retrieve, generates the second list that submodule generates, and judges whether deposit in second list In data identical with the first information that acquisition submodule is got;
Judging submodule 1031 is also used to the judgement when judging to there are data identical with the first information in second list Whether data identical with the first information are the first data in second list;
Acquisition submodule 1033, for judging that data identical with the first information are in second list when judging submodule The first data when, obtain second list in the first data;
Acquisition submodule 1033 is also used to judge that data identical with the first information are not secondary series when judging submodule When the first data in table, the first data are put into third list;
Judging submodule 1031 is also used to judge in first list whether there is also distribution information;
Acquisition submodule 1033 is also used to judge in first list when judging submodule there are when distribution information, obtains the The first information of one list;
Distribution submodule 1034, for judging that there is no the distributions not compared in first list when judging submodule 1031 When information, distribution is carried out using the first data in third list;
Judging submodule 1031, when for using the first data in third list to carry out distribution when distribution submodule, Judge whether distribution success;
Prompting submodule 1035, for prompting user's distribution success when judging submodule judges distribution success.
Mobile terminal 3 further include:
Third judgment module 304 is also used to judge whether when the title and password for judging not receive wireless network More than preset time.
Cloud speaker 1 further include:
First judgment module 103 is also used to judge whether to listen to data packet when monitoring 101 monitored data packet of module;
Distribution module 102 is specifically used for when first judgment module 103 judges that monitoring module 101 listens to data packet, Data packet is parsed, the first check value of the title of wireless network is obtained, obtains the title of the wireless network in second list;
First generation module 106, the title of the wireless network for being got according to distribution module 102, which calculates, generates verification Value generates verification value list according to check value;
First obtains module 107, for obtaining and the first check value from the verification value list that the first generation module generates Matched check value obtains wireless network password according to check value from data packet;
Distribution module 102 is specifically used for the title of the wireless network got according to the first acquisition module and close Code connection network;
First judgment module 103 is specifically used for connecting network with password according to the title of wireless network when distribution module 102 When, judge whether distribution success;
First sending module 104 is also used to match when first judgment module 103 judges distribution success to server return Net successful information.
Cloud speaker 1 further include:
First, which obtains module, is specifically used for obtaining check value identical with the first check value from verification value list, according to school Test title and password that value obtains corresponding wireless network from data packet;
First judgment module 103 is specifically used for when title and cryptographic chaining network of the distribution module according to wireless network, Judge whether distribution success.
Server 2 further include:
Second parsing module obtains the equipment of mobile terminal for analytic language casting request from language casting request Mark;
Second judgment module 203 was also used to judge in database with the presence or absence of the mobile end got with the second parsing module The device identification of the corresponding cloud speaker of the device identification at end;
Second judgment module 203, which is also used to work as, judges there is cloud corresponding with the device identification of mobile terminal in database When the device identification of speaker, judging the corresponding cloud speaker of the device identification of cloud speaker, whether distribution is successful;
Second sending module 202 is also used to judge to be not present in database when the second judgment module 203 and mobile terminal The corresponding cloud speaker of device identification device identification when, do not find the response of corresponding cloud speaker to mobile terminal transmission.
Mobile terminal 3 further include:
Cue module 303 be also used to when third receiving module 306 receive server transmission do not find corresponding cloud speaker When response, user is prompted not find corresponding cloud speaker.
Cloud speaker 1 further include:
Voice broadcast module 105 is specifically used for carrying out voice after the first receiving module receives voice broadcast request and broadcasting Report.
Cloud speaker 1 further include:
First receiving module 108 is for receiving voice broadcast request;
First parsing module 109 need to broadcast message for parsing the voice broadcast request that the first receiving module receives Mark and content;
The mark and content judgement for the need casting message that first judgment module 103 is also used to be obtained according to the first parsing module Whether content was broadcasted;
First sending module 104 is also used to judge that content casting is out-of-date when first judgment module 103, send to server The response of message repeatedly broadcasting;
Voice broadcast module 105 is specifically used for judging that content does not broadcast out-of-date, progress voice when first judgment module 103 Casting;
First sending module 104 is also used to be also used to send out to server after voice broadcast module carries out voice broadcast Message is sent to broadcast response.

Claims (20)

1. a kind of implementation method of cloud speaker work characterized by comprising
Cloud speaker distribution process and cloud speaker voice broadcast process;
The cloud speaker distribution process includes:
Step s1: acquisition for mobile terminal and the device identification for saving cloud speaker send the equipment mark of the cloud speaker to server Knowledge and the device identification of the mobile terminal;
Step s2: the server, which is received and corresponded to, saves the device identification of the cloud speaker and the equipment mark of the mobile terminal Know, Xiang Suoshu mobile terminal, which returns, saves success response;
Step s3: the mobile terminal shows cloud speaker distribution interface, and user is prompted to input the name for needing the wireless network connected Title and password, judge whether the title and password that receive the wireless network, if so, executing step s4;Otherwise, distribution is lost It loses, terminates;
Step s4: the title and password for the wireless network that the mobile terminal is inputted according to user generate data packet, udp broadcast number According to packet;
Step s5: the cloud speaker opens promiscuous mode, and monitored data packet parses data packet when listening to effective data packets Distribution is carried out, judges whether distribution success, if so, distribution success, Xiang Suoshu server return to distribution success response;Otherwise, Distribution failure, terminates;
The voice broadcast process includes:
Step s6: the mobile terminal sends payment request to server;
Step s7: the server receives the payment request, parses the payment request and generates voice broadcast request, judges institute Stating the corresponding cloud speaker of mobile terminal, whether distribution success is tied if so, sending the voice broadcast request to the cloud speaker Beam;Otherwise, Xiang Suoshu mobile terminal sends the non-distribution response of cloud speaker;
Step s8: the mobile terminal receives the non-distribution response of the cloud speaker, prompts the non-distribution success of user's cloud speaker, executes Step s1.
2. the method as described in claim 1, which is characterized in that before step s1 further include:
Step s0: the cloud speaker judges the memory block of the cloud speaker with the presence or absence of effective distribution information, if so, using institute It states effective distribution information and carries out distribution, execute voice broadcast process;Otherwise, step s1 is executed.
3. method according to claim 2, which is characterized in that the step s0 is specifically included:
Step s0-1: the cloud speaker checks the memory block, judges with the presence or absence of distribution information in the memory block, if It is that first list is generated according to distribution information, executes step s0-2;Otherwise, step s5 is executed;
Step s0-2: the cloud speaker scans radio network information, judges whether scanning to radio network information, if so, root Second list is generated according to the radio network information, executes step s0-3;Otherwise, step s5 is executed;
Step s0-3: the cloud speaker obtains the first information in the first list, retrieves the second list, with described Data in second list described in one information comparison judge in the second list with the presence or absence of identical with the first information Data, if so, executing step s0-4;Otherwise, step s5 is executed;
Step s0-4: the cloud speaker judge data identical with the first information whether be in the second list first Data execute step s0-6 if so, obtaining first data;Otherwise, the data identical with the first information are put into In the third list, step s0-5 is executed;
Step s0-5: the cloud speaker judges whether there is also the distribution information not compared in the first list, if so, returning Return step s0-3;Otherwise, step s0-6 is executed;
Step s0-6: the cloud speaker carries out distribution using the first data in the third list, judge whether distribution at Function, if so, prompt user's distribution success, into voice broadcast process.
4. the method as described in claim 1, which is characterized in that when the mobile terminal is judged not receive in the step s3 To after the title of the wireless network and password, further includes:
The mobile terminal judges whether to be more than preset time, if so, distribution fails, terminates;Otherwise, step is continued to execute s3。
5. method as claimed in claim 3, which is characterized in that step s5 specifically:
Step s5-1: the cloud speaker opens promiscuous mode, and monitored data packet judges whether to listen to data packet, if so, holding Row step s5-2;Otherwise, distribution fails, and terminates;
Step s5-2: the cloud speaker parses data packet, obtains the first check value of wireless network name, obtains in second list Wireless network name, according to wireless network name calculate generate check value, according to the check value generate verification value list;
Step s5-3: the cloud speaker is obtained from the verification value list and the matched check value of the first check value, root The password for obtaining wireless network from data packet according to the check value connects net with password according to the title of the wireless network Network judges whether successful connection, if so, distribution success, returns to distribution successful information to server;Otherwise, distribution fails, knot Beam.
6. method as claimed in claim 5, which is characterized in that the step s5-3 specifically:
The cloud speaker obtains check value identical with first check value from the verification value list, according to the verification Value obtains password from the data packet, connects network with password according to the title of the wireless network, judges whether to connect into Function, if so, distribution success, Xiang Suoshu server return to distribution successful information;Otherwise, distribution fails, and terminates.
7. the method as described in claim 1, which is characterized in that judge that the corresponding cloud speaker of the mobile terminal is in step s7 Before no distribution success, further includes:
The server parses the payment request, and the device identification of mobile terminal is obtained from the payment request, judges number According to the device identification that whether there is cloud speaker corresponding with the device identification of the mobile terminal in library, if so, described in judgement Whether distribution is successful for the corresponding cloud speaker of the device identification of cloud speaker;Otherwise, corresponding cloud is not found in Xiang Suoshu mobile terminal transmission Speaker response.
8. the method for claim 7, which is characterized in that when the server is not found pair to mobile terminal transmission After answering cloud speaker to respond, further includes:
The mobile terminal receives the corresponding cloud speaker that do not find that the server is sent and responds, and user is prompted not find corresponding cloud Speaker executes step s1.
9. the method as described in claim 1, which is characterized in that when the server sends institute to the cloud speaker in step s7 State voice broadcast request after, further includes:
The cloud speaker carries out voice broadcast.
10. method as claimed in claim 9, which is characterized in that the cloud speaker carries out before voice broadcast, further includes:
The cloud speaker receives the voice broadcast request, parses the voice broadcast request, obtains the mark that need to broadcast message And content, judge whether the content was broadcasted according to the mark that need to broadcast message, if so, sending to the server The response of message repeatedly broadcasting;Otherwise, voice broadcast is carried out, Xiang Suoshu server sends message and broadcasted response.
11. a kind of realization system of cloud speaker work characterized by comprising
Cloud speaker, server and mobile terminal;
The mobile terminal includes:
Module is obtained, for obtaining and saving the device identification of cloud speaker;
Third sending module, for sending the device identification of the cloud speaker that the acquisition module is obtained and saved to server And the device identification of the mobile terminal;
Cue module prompts user to input the title for needing the wireless network connected and close for showing cloud speaker distribution interface Code;
Third judgment module, for judge whether to receive the wireless network of cue module prompt user's input title and Password;
Third generation module, for when the third judgment module is judged to receive the title and password of the wireless network, Data packet is generated according to the title of the wireless network and password;
The third sending module is also used to broadcast frame and sends the data packet that the third generation module generates;
The third sending module is also used to send payment request to the server;
Third receiving module responds not successfully for receiving the distribution of cloud speaker;
The cue module is also used to mention when the third receiving module receives the cloud speaker distribution and responds not successfully Show the non-distribution success of user's cloud speaker;
The server includes:
Second receiving module saves the device identification of the cloud speaker and the equipment mark of the mobile terminal for receiving and corresponding to Know;
Second sending module, for saving the device identification and the shifting of the cloud speaker when the second receiving module is received and corresponded to When the device identification of dynamic terminal, Xiang Suoshu mobile terminal, which returns, saves success response;
Second receiving module, is also used to receive payment request, parses the payment request and generates voice broadcast request;
Second judgment module, the payment request for being received according to second receiving module judge that the mobile terminal is corresponding Cloud speaker whether distribution success;
Second sending module is also used to judge the corresponding cloud sound of the mobile terminal when second judgment module When case distribution success, Xiang Suoshu cloud speaker sends the voice broadcast request;
Second sending module is also used to judge the corresponding cloud sound of the mobile terminal when second judgment module When case distribution is failed, Xiang Suoshu mobile terminal sends the non-distribution response of cloud speaker;
Cloud speaker includes:
Module is monitored, for opening promiscuous mode, monitored data packet;
Distribution module, for when the monitoring module listens to effective data packets, parsing data packet to carry out distribution;
First judgment module, for judging whether the distribution module distribution succeeds;
First sending module, for when the first judgment module judge the distribution module distribution success when, to the clothes Business device returns to distribution success response.
12. system as claimed in claim 11, which is characterized in that the cloud speaker further include:
The first judgment module is also used to judge the storage area of the cloud speaker with the presence or absence of effective distribution information;
The distribution module is also used to judge that there are effective distributions for the storage area of the cloud speaker when the first judgment module When information, distribution is carried out using the effective distribution information;
Voice broadcast module, for executing voice broadcast.
13. system as claimed in claim 12, which is characterized in that the first judgment module of the cloud speaker includes:
Judging submodule judges in the storage area for checking the storage area with the presence or absence of distribution information;
Submodule is generated, for judging in the storage area there are when the distribution information when the judging submodule, according to The distribution information generates first list;
The judging submodule is also used to scan radio network information, judges whether scanning to radio network information;
The generation submodule is also used to generate second when the judging submodule judges that radio network information is arrived in scanning List;
Acquisition submodule, for obtaining the first information in the first list that the generation submodule generates;
The judging submodule is also used to retrieve the second list that the generation submodule generates, judges the secondary series It whether there is data identical with the first information that the acquisition submodule is got in table;
The judging submodule is also used to work as and judges there are data identical with the first information in the second list When, judge whether identical with first information data are the first data in the second list;
Acquisition submodule, for judging that the data identical with the first information are described the when the judging submodule When the first data in two lists, first data in the second list are obtained;
The acquisition submodule is also used to judge the data identical with the first information not when the judging submodule When for the first data in the second list, the data identical with the first information are put into third list;
The judging submodule is also used to judge in the first list whether there is also the distribution information not compared;
The acquisition submodule is also used to judge in the first list when the judging submodule there are when distribution information, Obtain the first information of the first list;
Distribution submodule, for judging that there is no the distribution information not compared in the first list when the judging submodule When, distribution is carried out using the first data in the third list;
Judging submodule, when for using the first data in the third list to carry out distribution when the distribution submodule, Judge whether distribution success;
Prompting submodule, for prompting user's distribution success when the judging submodule judges distribution success.
14. system as claimed in claim 11, which is characterized in that the mobile terminal further include:
The third judgment module is also used to judge whether to surpass when the title and password for judging not receive wireless network Cross preset time.
15. system as claimed in claim 13, which is characterized in that the cloud speaker further include:
The first judgment module is also used to judge whether to listen to data packet when the monitoring module monitored data packet;
The distribution module, specifically for judging that the monitoring module listens to the data packet when the first judgment module When, data packet is parsed, the first check value of the title of wireless network is obtained, obtains the title of the wireless network in second list;
First generation module, the title of the wireless network for being got according to first parsing module, which calculates, generates verification Value generates verification value list according to the check value;
First obtains module, for obtaining and first check value from the verification value list that the generation module generates Matched check value obtains wireless network password according to the check value from the data packet;
The distribution module, specifically for the title and password of the wireless network got according to the first acquisition module Connect network;
The first judgment module, specifically for connecting net with password according to the title of the wireless network when the distribution module When network, judge whether distribution success;
First sending module is also used to when the judgment module judges distribution success, and the return of Xiang Suoshu server is matched Net successful information.
16. system as claimed in claim 15, which is characterized in that the cloud speaker further include:
Described first obtains module, is specifically used for obtaining verification identical with first check value from the verification value list Value obtains the title and password of corresponding wireless network according to the check value from the data packet;
The first judgment module, specifically for when the distribution module is according to the title and cryptographic chaining net of the wireless network When network, judge whether distribution success.
17. system as claimed in claim 11, which is characterized in that the server further include:
Second parsing module obtains mobile terminal from language casting request for parsing the language casting request Device identification;
Second judgment module is also used to judge in database with the presence or absence of the movement got with second parsing module The device identification of the corresponding cloud speaker of the device identification of terminal;
Second judgment module is also used to when the device identification pair for judging to have with the mobile terminal in the database When the device identification for the cloud speaker answered, judging the corresponding cloud speaker of the device identification of the cloud speaker, whether distribution is successful;
Second sending module is also used to judge to be not present and the shifting in the database when second judgment module When the device identification of the corresponding cloud speaker of device identification of dynamic terminal, corresponding cloud speaker is not found in the transmission of Xiang Suoshu mobile terminal Response.
18. system as claimed in claim 17, which is characterized in that the mobile terminal further include:
The cue module is also used to ring when the receiving module receives the corresponding cloud speaker that do not find that the server is sent At once, prompt user does not find corresponding cloud speaker.
19. system as claimed in claim 11, which is characterized in that the cloud speaker further include:
The voice broadcast module, specifically for carrying out voice after the receiving module receives voice broadcast request Casting.
20. system as claimed in claim 19, which is characterized in that the cloud speaker further include:
First receiving module, for receiving the voice broadcast request;
First parsing module disappears for parsing the voice broadcast request that first receiving module receives and need to broadcast The mark and content of breath;
The first judgment module, the mark and content for the need casting message for being also used to be obtained according to first parsing module are sentenced Whether the content of breaking was broadcasted;
First sending module is also used to judge that the content casting is out-of-date when the first judgment module, to the clothes Business device sends the response of message repeatedly broadcasting;
The voice broadcast module, specifically for judging that the content does not broadcast out-of-date, progress when the first judgment module Voice broadcast;
First sending module is also used to be also used to after the voice broadcast module carries out voice broadcast to the clothes Business device sends message and has broadcasted response.
CN201910459475.XA 2019-05-29 2019-05-29 Working method and system of cloud sound box Active CN110120220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910459475.XA CN110120220B (en) 2019-05-29 2019-05-29 Working method and system of cloud sound box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910459475.XA CN110120220B (en) 2019-05-29 2019-05-29 Working method and system of cloud sound box

Publications (2)

Publication Number Publication Date
CN110120220A true CN110120220A (en) 2019-08-13
CN110120220B CN110120220B (en) 2021-07-02

Family

ID=67523486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910459475.XA Active CN110120220B (en) 2019-05-29 2019-05-29 Working method and system of cloud sound box

Country Status (1)

Country Link
CN (1) CN110120220B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134966A (en) * 2020-11-26 2020-12-25 飞天诚信科技股份有限公司 Cloud sound box broadcast voice configuration method and system
CN112307280A (en) * 2020-12-31 2021-02-02 飞天诚信科技股份有限公司 Method and system for converting character string into audio based on cloud server
CN116887250A (en) * 2023-09-07 2023-10-13 飞天诚信科技股份有限公司 Network connection realization method and system of intelligent equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423974A (en) * 2017-08-15 2017-12-01 阿里巴巴集团控股有限公司 Intellectual broadcast method and apparatus
CN107566229A (en) * 2017-08-25 2018-01-09 西安电子科技大学 The packet control process of intelligent domestic system
CN108901056B (en) * 2018-06-21 2020-09-08 百度在线网络技术(北京)有限公司 Method and device for information interaction
CN109348521B (en) * 2018-09-30 2020-01-07 百度在线网络技术(北京)有限公司 Network distribution method, device and equipment of intelligent equipment and computer readable medium
CN109688072A (en) * 2018-12-27 2019-04-26 Tcl通力电子(惠州)有限公司 Speaker method of network entry, speaker and computer readable storage medium
CN109741555A (en) * 2019-02-13 2019-05-10 上海喔噻互联网科技有限公司 A kind of cash device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134966A (en) * 2020-11-26 2020-12-25 飞天诚信科技股份有限公司 Cloud sound box broadcast voice configuration method and system
CN112307280A (en) * 2020-12-31 2021-02-02 飞天诚信科技股份有限公司 Method and system for converting character string into audio based on cloud server
CN112307280B (en) * 2020-12-31 2021-03-16 飞天诚信科技股份有限公司 Method and system for converting character string into audio based on cloud server
CN116887250A (en) * 2023-09-07 2023-10-13 飞天诚信科技股份有限公司 Network connection realization method and system of intelligent equipment
CN116887250B (en) * 2023-09-07 2023-11-07 飞天诚信科技股份有限公司 Network connection realization method and system of intelligent equipment

Also Published As

Publication number Publication date
CN110120220B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN110120220A (en) A kind of working method and system of cloud speaker
WO2016082483A1 (en) Pseudo base station discrimination method and apparatus
US8224655B2 (en) Audio human verification
CN105554037B (en) Authentication processing method and service platform
CN105139204B (en) A kind of method and system carrying out safety certification
CN105451300B (en) A kind of method for connecting network and mobile device
CN106358157A (en) Networking method and device for intelligent equipment
CN108924827A (en) A kind of fast access method and system of wireless network
CN104486761A (en) Terminal communication method and device
CN107333247A (en) SMS processing, apparatus and system
CN107911398A (en) Authentication method, device and the system of identity information
CN106255115A (en) A kind of pseudo-base station identification device and method
CN102231667B (en) Method and device for registering serial device
CN106576241B (en) Method for checking MIC in D2D communication and D2D communication system
CN102984143A (en) Communication method and radio communication terminal
CN101964976A (en) Terminal authentication method and base station
CN105024876A (en) Business signaling tracking method and apparatus
CN106255179A (en) The method and apparatus of distribution in WLAN
CN114050917B (en) Audio data processing method, device, terminal, server and storage medium
CN105553935B (en) A kind of data package processing method, device and terminal
CN114500237B (en) Communication method and system
CN113204492B (en) Android application testing method and device
CN110166576B (en) Method and system for realizing message complementary pushing of cloud sound box
CN106972943B (en) Alarm message sending method and base station
CN114499951A (en) Identity authentication information cracking method and device and electronic equipment

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