CN106713085A - Household music control system and method for controlling playing of household music - Google Patents
Household music control system and method for controlling playing of household music Download PDFInfo
- Publication number
- CN106713085A CN106713085A CN201611153378.0A CN201611153378A CN106713085A CN 106713085 A CN106713085 A CN 106713085A CN 201611153378 A CN201611153378 A CN 201611153378A CN 106713085 A CN106713085 A CN 106713085A
- Authority
- CN
- China
- Prior art keywords
- music
- socket
- home computer
- broadcast
- mobile phone
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a household music control system, comprising a mobile phone, a household computer and a router. The mobile phone and the household computer are connected with a local area network of the router. Music playing control software is installed in the mobile phone. The music playing control software provides a socket client. A music player is installed in the household computer. The music player provides a socket service. The music playing control software controls the music playing of the music player through connection communication of the socket client and the socket server. The invention also provides a method for controlling the playing of the household music through utilization of the system.
Description
Technical field
The present invention relates to household background music technology, especially a kind of house music control system and control based on LAN
The method that house music processed is played.
Background technology
People like enjoying the beautiful of music, and music is typically all played in various public places, and dining room is played carefree
Soft music is played in music, beauty place, and the music for rousing oneself is played in market.With the continuous improvement of people's living standard, mesh
Preceding household background music is applied to a certain extent, and many smart homes also devise household background music module.But
Be, user typically by connecting the control that internet could be realized to household background music, when internet can not be connected, with regard to nothing
Method realizes the function of control household background music.
The content of the invention
In order to overcome the shortcomings of existing household background music, the present invention provides a kind of family's sound based on local area network technology
The method that happy control system and control house music are played, the system and method only needs to connect family lan, is being not required to connection
The control to household background music is capable of achieving in the case of internet.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of house music control system, including mobile phone, home computer and router, mobile phone and home computer are both connected to
On the LAN of router.Music control software is installed, the music control software provides one in the mobile phone
Individual socket clients.Music player is installed, the music player provides a socket clothes in the home computer
Business end.The music control software is realized broadcasting music by the connection communication of socket clients and socket service ends
Put the control of the music of device.
A kind of method for controlling house music to play using house music control system as described above, including step:Beat
The music player of home computer is opened, is started one and is monitored LAN broadcast and receive the thread of broadcast message, and start one
Socket service ends;The music control software of mobile phone is opened, sending one to LAN carries home computer authentication information
Broadcast, and also start one and monitor LAN broadcast and receive the thread of broadcast message;Home computer is received with its certification letter
After the broadcast of breath, the broadcast with authenticate-acknowledge and home computer IP address is sent to LAN;The music control of mobile phone
Software receives broadcast and obtains home computer IP address, starts a socket client to connect socket service ends;socket
Whether client sends the information for connecting correct home computer, and socket service ends have replied the correctly confirmation of connection;
Mobile phone and home computer close the thread monitored LAN broadcast and receive broadcast message;And music control software passes through
The connection communication of socket clients and socket service ends realizes the control to the music of music player.
The beneficial effects of the invention are as follows:The IP address of the machine is sent to mobile phone by home computer by way of broadcast, is kept away
The artificial setting of user is exempted from or has checked the IP of home computer so that mobile phone can in real time get correct home computer
IP address, so ensure that and the accurately and quickly anti-of direct communication between mobile phone and home computer realized by socket
Should.And, it is only necessary to mobile phone and home computer connect LAN, are not required to connect the internet i.e. achievable control to household background music
System, enhances the experience sense of user.
Brief description of the drawings
The present invention is further described with reference to the accompanying drawings and examples.
Fig. 1 is the structural representation of house music control system of the invention.
Fig. 2 is the schematic flow sheet of the method that control house music of the invention is played.
Fig. 3 be the embodiment of the present invention control house music play realize schematic flow sheet.
Component symbol and label in figure
The mobile phone 20 of house music control system 10
The router 40 of home computer 30
The music player 31 of music control software 21
Specific embodiment
Further to illustrate the present invention to realize technological means and effect that predetermined goal of the invention is taken, below in conjunction with
Accompanying drawing and preferred embodiment, to according to specific embodiment of the invention, structure, feature and its effect, describing in detail as after.
Refer to Fig. 1, the house music control system 10 shown in the embodiment of the present invention include mobile phone 20, home computer 30 and
Router 40.Mobile phone 20 and home computer 30 are both connected on the LAN of router 40, can be connected by WIFI.The hand
Music control software 21 is installed, the music control software 21 provides a socket client in machine 20.Institute
It can be the control master in desktop computer, laptop computer, panel computer, or intelligent household terminal to state home computer 30
Machine.Music player 31 is installed, the music player 31 provides a socket service end in home computer 30.The sound
Happy control software 21 of playing is realized to music player 31 by the connection communication of socket clients and socket service ends
The control of music.The house music control system 10 is the system based on LAN.That is, it is not necessary to connect because
Special net, it is only necessary to the connection communication of socket clients and socket service ends is realized in LAN, it is possible to by mobile phone 20
Realize the control to household background music.
Fig. 2 is refer to, the embodiment of the present invention is also provided and controls family's sound using house music control system as described above
The happy method played, specifically includes following steps.
1) the upper family lan of the connection of home computer 30, opens the music player 31 of home computer 30, starts a prison
Listen LAN broadcast and receive the thread of broadcast message, and start a socket service end.
2) the upper family lan of the connection of mobile phone 20, opens the music control software 21 of mobile phone 20, is sent to LAN
One broadcast with home computer authentication information, and also start a monitoring LAN broadcast and receive the line of broadcast message
Journey.
3) after home computer 30 receives the broadcast with its authentication information, sent with authenticate-acknowledge and family's electricity to LAN
The broadcast of brain IP address.
4) the music control software 21 of mobile phone 20 receives broadcast message and obtains home computer IP address, starts one
Socket clients go to attempt connection socket service ends.
5) whether socket clients send the information for connecting correct home computer, socket service ends after successful connection
Reply the confirmation for correctly connecting.Specifically, can be by verifying whether the IP address of the home computer of connection is previous
The IP address for obtaining be confirmed whether correctly connect.
6) mobile phone 20 and home computer 30 close the thread for monitoring LAN broadcast.
7) music control software 21 is realized to sound by the connection communication of socket clients and socket service ends
The control of the music of happy player 31.Specifically, music control software can be by being successfully connected before
The connection communication of socket clients and socket service ends realizes the control to the music of music player 31, it is also possible to
Socket clients before cancellation, go to connect socket service ends by a newly-built socket client, and by newly-built
Socket clients and socket service ends the connection communication control of realizing to the music of music player 31.
Fig. 3 is referred to, with lower along timeline order, describes what control house music was played in detail with a specific embodiment
Realize flow.
First, the upper family lan of home computer connection, opens the music player of home computer, starts a monitoring office
Domain net is broadcasted and receives the thread of broadcast message, and starts a socket service end.
Secondly, the upper family lan of mobile phone connection, opens the music control software (APP) of mobile phone, is sent out to LAN
The broadcast with home computer authentication information is sent, and also starts one and monitored LAN broadcast and receive the line of broadcast message
Journey.
Again, when home computer receives broadcast, first judge whether that in this way, and authentication information is correct with its authentication information,
The broadcast with authenticate-acknowledge and home computer IP address actively then is sent to LAN, if not, directly abandoning broadcast letter
Breath, continues listening broadcast.
Furthermore, when mobile phone receives broadcast, first judge whether be home computer broadcast, in this way, then parse broadcast message
Home computer IP address is obtained, music control software starts a socket client after obtaining the IP address of home computer
Go to connect socket service ends.
Furthermore, whether socket clients just send the information for connecting correct home computer, socket after successful connection
Service end has responded immediately to the correctly confirmation of connection.Specifically, can be by the IP address of the home computer of checking connection
Whether it is that previously the IP address that obtains had been confirmed whether correctly connection.
Furthermore, after confirming correctly to connect, mobile phone and home computer close the thread for monitoring LAN broadcast.
Finally, the newly-built socket client of music control software is connected with socket service ends, by newly-built
Socket clients and socket service ends the connection communication control of realizing to the music of music player.For example,
User selects certain several song to play out in music control software, and the play instruction of song is defeated from socket clients
Enter, from the output of socket service ends, and realized on music player.
It will be understood by those skilled in the art that the IP address of the machine is sent to hand by home computer by way of broadcast
Machine, it is to avoid the IP of home computer is checked in the artificial setting of user so that mobile phone can in real time get correct family
The IP address of front yard computer, so ensure that and the accurate and fast of direct communication between mobile phone and home computer is realized by socket
Speed reaction.
The above, is only presently preferred embodiments of the present invention, and any formal limitation is not made to the present invention, though
So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology people
Member, without departing from the scope of the present invention, when making a little change or modification using the technology contents of the disclosure above
It is the Equivalent embodiments of equivalent variations, as long as being without departing from technical solution of the present invention content, according to technical spirit pair of the invention
Any simple modification, equivalent variations and modification that above example is made, still fall within the range of technical solution of the present invention.
Claims (5)
1. a kind of house music control system, including mobile phone, home computer and router, mobile phone and home computer are both connected to road
By on the LAN of device, being provided with music control software in the mobile phone, the music control software provides one
Socket clients, are provided with music player in the home computer, the music player provides a socket service
End, the music control software is realized to music by the connection communication of socket clients and socket service ends
The control of the music of device.
2. a kind of method for controlling house music to play using house music control system as claimed in claim 1, including step:
The music player of home computer is opened, is started one and is monitored LAN broadcast and receive the thread of broadcast message, and open
Move a socket service end;
The music control software of mobile phone is opened, the broadcast with home computer authentication information is sent to LAN, and
Also start one to monitor LAN broadcast and receive the thread of broadcast message;
After home computer receives the broadcast with its authentication information, sent to LAN and carry authenticate-acknowledge and home computer IP address
Broadcast;
The music control software of mobile phone receives broadcast message and obtains home computer IP address, starts a socket client
To connect socket service ends;
Whether socket clients send the information for connecting correct home computer, and socket service ends have replied correctly connection
Confirmation;
Mobile phone and home computer close the thread monitored LAN broadcast and receive broadcast message;And
Music control software is realized to music player by the connection communication of socket clients and socket service ends
Music control.
3. the method that control house music as claimed in claim 2 is played, it is characterised in that by the family's electricity for verifying connection
Whether the IP address of brain is that previously the IP address that obtains had been confirmed whether correctly connection.
4. the method that control house music as claimed in claim 2 is played, it is characterised in that home computer receives broadcast
When, first judge whether that in this way, and authentication information is correct with its authentication information, then actively sent to LAN and carry authenticate-acknowledge
And the broadcast of home computer IP address, if not, directly abandoning the broadcast message, continue listening broadcast.
5. the method that control house music as claimed in claim 2 is played, it is characterised in that receiving correctly connection really
After recognizing information, music control software goes to connect socket service ends by a newly-built socket client, and by new
The socket clients and the connection communication of socket service ends built realize the control to the music of music player.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611153378.0A CN106713085A (en) | 2016-12-14 | 2016-12-14 | Household music control system and method for controlling playing of household music |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611153378.0A CN106713085A (en) | 2016-12-14 | 2016-12-14 | Household music control system and method for controlling playing of household music |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106713085A true CN106713085A (en) | 2017-05-24 |
Family
ID=58937508
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611153378.0A Pending CN106713085A (en) | 2016-12-14 | 2016-12-14 | Household music control system and method for controlling playing of household music |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713085A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868913A (en) * | 2012-09-29 | 2013-01-09 | Tcl数码科技(深圳)有限责任公司 | Method and system for remote synchronous virtual monitoring |
CN103516885A (en) * | 2012-06-29 | 2014-01-15 | 深圳市快播科技有限公司 | Multimedia playing system and multimedia playing method |
CN104732989A (en) * | 2015-01-26 | 2015-06-24 | 湖南天冠电子信息技术有限公司 | Intelligent music playing control system and method |
US20160164694A1 (en) * | 2013-07-26 | 2016-06-09 | Kocom Co., Ltd. | Smart device-based home network system and control method therefor |
-
2016
- 2016-12-14 CN CN201611153378.0A patent/CN106713085A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516885A (en) * | 2012-06-29 | 2014-01-15 | 深圳市快播科技有限公司 | Multimedia playing system and multimedia playing method |
CN102868913A (en) * | 2012-09-29 | 2013-01-09 | Tcl数码科技(深圳)有限责任公司 | Method and system for remote synchronous virtual monitoring |
US20160164694A1 (en) * | 2013-07-26 | 2016-06-09 | Kocom Co., Ltd. | Smart device-based home network system and control method therefor |
CN104732989A (en) * | 2015-01-26 | 2015-06-24 | 湖南天冠电子信息技术有限公司 | Intelligent music playing control system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11452153B2 (en) | Pairing and gateway connection using sonic tones | |
CN105610777B (en) | Remote living broadcast method and system | |
CN107911437A (en) | Method, apparatus, electronic equipment and the storage medium of Screen sharing | |
CN109639542B (en) | Network distribution method and system based on intelligent home gateway | |
CN107274902A (en) | Phonetic controller and method for household electrical appliances | |
CN109637548A (en) | Voice interactive method and device based on Application on Voiceprint Recognition | |
CN101702690A (en) | Method for carrying out human-computer interaction by embedded equipment through internet instant messaging system | |
CN106301811A (en) | Realize the method and device of multimedia conferencing | |
CN211791560U (en) | Distributed voice control system | |
CN111464402A (en) | Control method of intelligent household equipment, terminal equipment and medium | |
CN103929349A (en) | Method, device and system for adding instant message contacts | |
WO2020133495A1 (en) | Smart device management method, mobile terminal, and system | |
CN104821929A (en) | Multimedia data sharing method and terminal | |
CN111372222A (en) | Device connection method and system, corresponding terminal device and server | |
CN110850736A (en) | Control method and system | |
CN111586105A (en) | Automatic network distribution method for intelligent equipment and intelligent equipment | |
CN104427641A (en) | Cloud sound box | |
CN103227940B (en) | A kind of method, equipment and system realizing displaying predetermined programme management | |
CN109979495A (en) | Audio progress based on recognition of face intelligently follows playback method and system | |
CN102932214B (en) | A kind of discovery polymerization of home network dissimilar medium equipment | |
CN112687270A (en) | Intelligent voice routing method and device | |
CN106713085A (en) | Household music control system and method for controlling playing of household music | |
CN105897533A (en) | Method and system for controlling intelligent household appliances, home gateway and client | |
CN104519390B (en) | The method and a kind of control equipment and device of a kind of information processing | |
CN104427635A (en) | Data sharing device based on WiFi |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |