CN103516706B - A kind of Smart Home talk back equipment and method of calling thereof and calling device - Google Patents

A kind of Smart Home talk back equipment and method of calling thereof and calling device Download PDF

Info

Publication number
CN103516706B
CN103516706B CN201210322205.2A CN201210322205A CN103516706B CN 103516706 B CN103516706 B CN 103516706B CN 201210322205 A CN201210322205 A CN 201210322205A CN 103516706 B CN103516706 B CN 103516706B
Authority
CN
China
Prior art keywords
extension set
separated time
semaphore
calling
main thread
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.)
Expired - Fee Related
Application number
CN201210322205.2A
Other languages
Chinese (zh)
Other versions
CN103516706A (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.)
TCL Digital Technology Shenzhen Co Ltd
Original Assignee
TCL Digital Technology Shenzhen 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 TCL Digital Technology Shenzhen Co Ltd filed Critical TCL Digital Technology Shenzhen Co Ltd
Priority to CN201210322205.2A priority Critical patent/CN103516706B/en
Publication of CN103516706A publication Critical patent/CN103516706A/en
Application granted granted Critical
Publication of CN103516706B publication Critical patent/CN103516706B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of Smart Home talk back equipment and method of calling thereof and calling device, the method includes: create semaphore;Multiple and extension set IP address separated time journey one to one calling is created according to room number and extension set IP address list thereof;Main thread blocks;After separated time journey receives call message, send semaphore broadcast to described main thread, by semaphore as non-blocking state;If the arbitrary extension set of callee is answered, this callee's extension set sends and answers the separated time journey that message is attached thereto to calling party's extension set;Separated time journey receives after answering message, and main thread reservation receives the separated time journey answering message, destroys other separated time journeys, enters and answers talking state.From there through multithreading and the use of semaphore, achieve and call all extension sets simultaneously, automatically disconnect other calling when any one access success, it is not necessary to additionally increase software overhead, increase and decrease the quantity of extension set neatly and without revising software or any configuration, simplify software flow.

Description

A kind of Smart Home talk back equipment and method of calling thereof and calling device
Technical field
The present invention relates to Smart Home talk back equipment field, a kind of can call all extension sets simultaneously and show the intelligent home device of MPTY video and method of calling thereof and calling device simultaneously.
Background technology
Current Smart Home product has supported video intercom function in every family;But for the multiple stage talk back equipment (the most multiple extension set) used in man of same resident family, but can not well be supported, such as must input the extension number specified could call on the extension set of designated room, and for example cannot realize all extension sets and receive calling simultaneously, for another example can not on all of extension set video realizing MPTY etc..
Therefore, prior art still haves much room for improvement and develops.
Summary of the invention
For solving above-mentioned technical problem, the present invention provides a kind of Smart Home talk back equipment method of calling, can make all main extensions ring simultaneously in man of same resident family, and can show the video of MPTY on extension set.
Meanwhile, the present invention also provides for a kind of Smart Home talk back equipment calling device, and above-mentioned meeting can be used to make method call.
And, the present invention also provides for a kind of Smart Home talk back equipment, can increase extension set number flexibly and without revising software.
Technical scheme is as follows: a kind of Smart Home talk back equipment method of calling, comprises the following steps: step S1, establishment semaphore;Step S2, create according to the room number of described callee and extension set IP address list thereof multiple with extension set IP address separated time journey one to one;Step S3, semaphore are placed in blocked state, and main thread blocks;Step S4, each separated time journey call extension to the IP address of its correspondence;Step S5, callee's extension set answering call response message;After step S6, separated time journey receive call message, send semaphore broadcast to described main thread, after described main thread receives described semaphore broadcast, by semaphore as non-blocking state;Main thread continues waiting for answering message;Step S7, if the arbitrary extension set of callee is answered, this callee's extension set sends and answers the separated time journey that message is attached thereto to calling party's extension set;Step S8, separated time journey receives after answering message, notifies that main thread, main thread reservation receive the separated time journey answering message, destroy other separated time journeys, enter and answer talking state.
Described Smart Home talk back equipment method of calling, wherein, the extension set further comprising the steps of: described calling party before step S1 sends room number and the extension set IP address message thereof inquiring about this callee to described server, described server reply room number and the extension set IP address list thereof of calling party extension set callee.
Described Smart Home talk back equipment method of calling, includes whether the description needing to send video in callee's extension set answering call response message in step S5.
Described Smart Home talk back equipment method of calling, further comprises the steps of: described separated time journey and receives the message of called extension set response, if desired send the description of video after step S6;During for being, the extension set IP address this separated time journey called is added in the extension set IP address list needing to send video;Main thread sends the IP address list of video as required, the vision signal of described MPTY is separately sent on callee's extension set of corresponding extension set IP address.
Described Smart Home talk back equipment method of calling, further comprise the steps of: main thread after step S1 and judge whether described semaphore creates successfully, if being carried out step S2, perform following steps if not: main thread carries out sequence call according to room number and the extension set IP address list thereof of described callee.
Described Smart Home talk back equipment method of calling, further comprises the steps of: MPTY extension set and waits that response message replied by callee's extension set, and record the stand-by period, if the time-out time that the stand-by period presets more than, perform step S8 in step S4;Described Smart Home talk back equipment method of calling, wherein, setting up connection failure if further comprising the steps of: after step S2, destroying this thread.
A kind of Smart Home talk back equipment calling device, including: for creating the semaphore creation module of semaphore;Multiple separated time journey creation module with extension set IP address separated time journey one to one is created for the room number according to described callee and extension set IP address list thereof;For each separated time journey calling module to the call extension of the IP address of its correspondence;For semaphore being placed in blocked state, block the semaphore blocking module of main thread;After separated time journey receives call message, send semaphore broadcast to described main thread, after described main thread receives described semaphore broadcast, by semaphore as non-blocking state;Main thread continues waiting for answering the semaphore broadcast module of message;Receive for separated time journey after answering message, notify that main thread, main thread reservation receive the separated time journey answering message, destroy other separated time journeys, enter point thread destruction module answering talking state.
A kind of Smart Home talk back equipment, including above-mentioned calling device.
A kind of Smart Home talk back equipment provided by the present invention and method of calling thereof and calling device, by multithreading and the use of semaphore, achieve and call all extension sets simultaneously and the video of MPTY can be shown simultaneously, automatically other calling is disconnected when any one access success, without additionally increasing software overhead, increase and decrease the quantity of extension set neatly and without revising software or any configuration, simplify software flow.
Accompanying drawing explanation
Fig. 1 is the main flow chart of the Smart Home talk back equipment method of calling that the embodiment of the present invention one provides.
Fig. 2 be the embodiment of the present invention one provide Smart Home talk back equipment method of calling in semaphore combine with multithreading use flow chart.
Fig. 3 is the structural representation of a kind of Smart Home talk back equipment calling device that the embodiment of the present invention two provides.
Detailed description of the invention
Below with reference to accompanying drawing, detailed description of the invention and embodiment to the present invention are described in detail, and described specific embodiment, only in order to explain the present invention, is not intended to limit the detailed description of the invention of the present invention.
As it is shown in figure 1, Fig. 1 is the main flow chart of the embodiment of the present invention one Smart Home talk back equipment method of calling, specifically include following steps:
Other users in step S110, same community call certain resident family in this community as MPTY, and certain resident family refers to callee;Create main thread when entering calling, the Smart Home talk back equipment of described MPTY be connected with the server foundation of community, callee place, the room number of described server all intelligent home devices of whole users in remaining with this community and extension set IP address thereof.Because described callee there may be multiple room, so callee likely includes multiple room number and multiple extension set IP address, so server also needs to retain the attaching relation of room number, there is multiple room number in such as resident family 601, server retains multiple room numbers of resident family 601, and these room numbers distinct belong to resident family 601;Thus, arbitrary extension set of described MPTY Smart Home talk back equipment both can have been used to call;Also can call on arbitrary extension set of described callee's Smart Home talk back equipment;
Step S120, the Smart Home talk back equipment of described MPTY send room number and the extension set IP address message thereof inquiring about this callee to described server, described MPTY is replied by described server, and according to the attaching relation of room number, report to room number and the extension set IP address list thereof of described callee, including multiple room numbers and multiple extension set IP address of described callee;
Step S130, described MPTY judge whether to get the room number of described callee and extension set IP address list thereof, are then to enter step S140, otherwise terminate call;
Step S140, created semaphore by the Smart Home talk back equipment of described MPTY, and create multiple separated time journeys according to the room number of described callee and extension set IP address list thereof;Wherein, the separated time journey corresponding to each extension set IP address creation, the extension set foundation connection that each separated time journey is corresponding with this extension set IP address, in conjunction with the use of the described semaphore of monitoring, make arbitrary separated time journey can notify described main thread after successful connection;After successful connection, separated time journey starts calling, if access success, callee divides opportunity response calling party the need of sending video, and calling party forms the extension set IP address list needing to send video according to this response;
Step S150, main thread send the IP address list of video as required, the vision signal of described MPTY are separately sent on callee's extension set of corresponding extension set IP address;
If the arbitrary extension set of step S160 callee is answered, this extension set sends and answers the separated time journey that message is attached thereto to calling party's extension set, and calling party, after having a separated time journey to receive to answer message, destroys other separated time journeys, retain and receive the separated time journey answering message, enter and answer talking state;
Afterwards, described main thread described separated time journey receive described callee hang up message after, hang up and receive described callee and answer the separated time journey of message, terminate call.
In the preferred embodiment of Smart Home talk back equipment method of calling of the present invention, it is critical only that being used in combination of multithreading and semaphore, shown in Fig. 2, Fig. 2 is that in Smart Home talk back equipment method of calling of the present invention, semaphore combines with multithreading the flow chart used, and described step S140 specifically includes following steps:
Step S1401, described MPTY extension set create semaphore on main thread;Semaphore is used for being blocked on main thread monitoring separated time journey whether access success.And judge whether described semaphore creates successfully;It is carried out step S1402, otherwise performs step S1410;
Step S1402, MPTY extension set, after semaphore creates successfully, arrange time-out time;
Step S1403, MPTY extension set create multiple separated time journeys according to room number and the extension set IP address list thereof of described callee;Wherein, the separated time journey corresponding to each extension set IP address creation, the extension set foundation connection that each separated time journey is corresponding with this extension set IP address, if it fails to connect, then destroy this thread;Accordingly even when certain separated time journey connection failure, the call case of other separated time journeys, and the automatic Resource recovery of meeting can't be affected, manage without main thread;
Step S1404, semaphore are set to blocked state, and described main thread enters and blocks;
If the successful connection of step S1405, the then extension set that the calling of separated time journey connects;MPTY extension set waits that response message replied by callee's extension set, and records the stand-by period, if the stand-by period exceedes the time-out time arranged in step S1402, performs step S1409;
Step S1409, semaphore is set to non-blocking state.Main thread continues executing with step S160;
Step S1406, callee's extension set answering call response message, described separated time journey receives the message of called extension set response, this message includes whether the description needing to send video, is if so, added to the extension set IP address that this separated time journey is called in the extension set IP address list needing to send video;
Step S1407, send semaphore broadcast to described main thread, after described main thread receives described semaphore broadcast, by semaphore as non-blocking state by receiving the separated time journey of call message;Main thread performs step S1408;
When step S1410, described MPTY difference, room number and extension set IP address list according to described callee call simultaneously, but the room number and extension set IP address list thereof according to described callee carries out sequence call;I.e. when semaphore creates unsuccessfully, main thread the most sequentially can be set up with this callee according to the room number of callee and extension set IP address list and be connected, thereby guarantee that and at least can call all extension sets of described callee, simply can not call with all extension sets of this callee simultaneously;
Step S1408, MPTY extension set ring.
Compared with Smart Home talk back equipment method of calling of the prior art, when there is multiple extension number in callee, the Smart Home talk back equipment method of calling of the present invention can call simultaneously, and transmission MPTY video is to callee simultaneously, by the way of multithreading, without additionally increasing software overhead, by the way of semaphore, when there being any separated time journey to receive efficient message, main thread can be known in time, such that it is able to state is modified, other separated time journeys are hung up operation.
The structural representation of a kind of Smart Home talk back equipment calling device that Fig. 3 provides for second embodiment of the invention, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.This device can be the unit that software unit, hardware cell or the software and hardware being built in Smart Home talk back equipment combines, or is integrated in the application system of Smart Home talk back equipment as independent suspension member.Wherein, calling device includes:
For creating the semaphore creation module 201 of semaphore;
Multiple separated time journey creation module 202 with extension set IP address one_to_one corresponding separated time journey is created for the room number according to described callee and extension set IP address list thereof;
For semaphore being placed in blocked state, block the semaphore blocking module 203 of main thread;
For each separated time journey calling module 204 to the call extension of the IP address of its correspondence;
After separated time journey receives call message, send semaphore broadcast to described main thread, after described main thread receives described semaphore broadcast, by semaphore as non-blocking state;Main thread continues waiting for answering the semaphore broadcast module 205 of message;
Receive for separated time journey after answering message, notify that main thread, main thread reservation receive the separated time journey answering message, destroy other separated time journeys, enter point thread destruction module 206 answering talking state.
Compared with Smart Home talk back equipment calling device of the prior art, when there is multiple extension number in callee, the Smart Home talk back equipment of the present invention and method of calling thereof can call simultaneously, send MPTY video to callee simultaneously, as callee, to have new extension set to add fashionable, the Smart Home talk back equipment of the present invention and method of calling thereof can call on this extension set automatically, and without revising software or any configuration, by the way of multithreading, without additionally increasing software overhead, by the way of semaphore, when there being any separated time journey to receive efficient message, main thread can be known in time, such that it is able to state is modified, other separated time journeys are hung up operation.
The present invention also provides for a kind of Smart Home talk back equipment, and the difference with existing Smart Home talk back equipment is the method including embodiment one or the device of embodiment two.
Should be understood that; the foregoing is only presently preferred embodiments of the present invention; it is not sufficient to limit technical scheme; for those of ordinary skills; within the spirit and principles in the present invention; can be increased and decreased according to the above description, replaced, converted or be improved, and all these increase and decrease, replace, convert or improve after technical scheme, all should belong to the protection domain of claims of the present invention.

Claims (9)

1. a Smart Home talk back equipment method of calling, it is characterised in that comprise the following steps:
Step S1, by MPTY Smart Home talk back equipment create semaphore;
Step S2, created multiple with extension set IP address separated time journey one to one according to the room number of callee and extension set IP address list thereof by the Smart Home talk back equipment of MPTY;
Step S3, semaphore are placed in blocked state, and main thread blocks;
Step S4, each separated time journey call extension to the IP address of its correspondence;
Step S5, callee's extension set answering call response message;
After step S6, separated time journey receive call message, send semaphore broadcast to described main thread, after described main thread receives described semaphore broadcast, by semaphore as non-blocking state;Main thread continues waiting for answering message;
Step S7, if the arbitrary extension set of callee is answered, this callee's extension set sends and answers the separated time journey that message is attached thereto to calling party's extension set;
Step S8, separated time journey receives after answering message, notifies that main thread, main thread reservation receive the separated time journey answering message, destroy other separated time journeys, enter and answer talking state.
Smart Home talk back equipment method of calling the most according to claim 1, it is characterised in that
The extension set further comprising the steps of: described calling party before step S1 sends room number and the extension set IP address message thereof inquiring about this callee to server, described server reply room number and the extension set IP address list thereof of calling party extension set callee.
Smart Home talk back equipment method of calling the most according to claim 1 and 2, it is characterised in that step S5, includes whether the description needing to send video in callee's extension set answering call response message.
Smart Home talk back equipment method of calling the most according to claim 3, it is characterised in that further comprise the steps of: after step S6
Described separated time journey receives the message of called extension set response, if desired sends the description of video;During for being, the extension set IP address this separated time journey called is added in the extension set IP address list needing to send video;
Main thread sends the IP address list of video as required, the vision signal of described MPTY is separately sent on callee's extension set of corresponding extension set IP address.
Smart Home talk back equipment method of calling the most according to claim 1, it is characterised in that further comprise the steps of: after step S1
Main thread judges whether described semaphore creates successfully, if being carried out step S2, performs following steps if not: main thread carries out sequence call according to room number and the extension set IP address list thereof of described callee.
Smart Home talk back equipment method of calling the most according to claim 1, it is characterized in that, step S4 further comprises the steps of: MPTY extension set and waits that response message replied by callee's extension set, and record the stand-by period, if the time-out time that the stand-by period presets more than, perform step S8.
Smart Home talk back equipment method of calling the most according to claim 1, it is characterised in that setting up connection failure if further comprising the steps of: after step S2, destroying this thread.
8. a Smart Home talk back equipment calling device, it is characterised in that described device includes:
For creating the semaphore creation module of semaphore;
Multiple separated time journey creation module with extension set IP address separated time journey one to one is created for the room number according to callee and extension set IP address list thereof;
For each separated time journey calling module to the call extension of the IP address of its correspondence;
For semaphore being placed in blocked state, block the semaphore blocking module of main thread;
After separated time journey receives call message, send semaphore broadcast to described main thread, after described main thread receives described semaphore broadcast, by semaphore as non-blocking state;Main thread continues waiting for answering the semaphore broadcast module of message;
Receive for separated time journey after answering message, notify that main thread, main thread reservation receive the separated time journey answering message, destroy other separated time journeys, enter point thread destruction module answering talking state.
9. a Smart Home talk back equipment, it is characterised in that include the calling device described in claim 8.
CN201210322205.2A 2012-09-04 2012-09-04 A kind of Smart Home talk back equipment and method of calling thereof and calling device Expired - Fee Related CN103516706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210322205.2A CN103516706B (en) 2012-09-04 2012-09-04 A kind of Smart Home talk back equipment and method of calling thereof and calling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210322205.2A CN103516706B (en) 2012-09-04 2012-09-04 A kind of Smart Home talk back equipment and method of calling thereof and calling device

Publications (2)

Publication Number Publication Date
CN103516706A CN103516706A (en) 2014-01-15
CN103516706B true CN103516706B (en) 2016-08-17

Family

ID=49898750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210322205.2A Expired - Fee Related CN103516706B (en) 2012-09-04 2012-09-04 A kind of Smart Home talk back equipment and method of calling thereof and calling device

Country Status (1)

Country Link
CN (1) CN103516706B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888627B (en) * 2014-04-04 2016-05-11 大连鼎创科技开发有限公司 A kind of call service system based on home location
WO2017147937A1 (en) * 2016-03-04 2017-09-08 茹旷 Indoor voice response system
CN111918151B (en) * 2020-06-11 2022-06-03 深圳市欧瑞博科技股份有限公司 Intelligent household control panel, intercom method, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6223204B1 (en) * 1996-12-18 2001-04-24 Sun Microsystems, Inc. User level adaptive thread blocking
CN102065085A (en) * 2010-12-15 2011-05-18 广东威创视讯科技股份有限公司 Processing system, device and method for simultaneously controlling and processing multiple equipments
CN102083011A (en) * 2009-11-26 2011-06-01 Tcl集团股份有限公司 Intercommunication system and call processing method thereof for multiple calling terminals

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6223204B1 (en) * 1996-12-18 2001-04-24 Sun Microsystems, Inc. User level adaptive thread blocking
CN102083011A (en) * 2009-11-26 2011-06-01 Tcl集团股份有限公司 Intercommunication system and call processing method thereof for multiple calling terminals
CN102065085A (en) * 2010-12-15 2011-05-18 广东威创视讯科技股份有限公司 Processing system, device and method for simultaneously controlling and processing multiple equipments

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多线程技术及其实现;徐洪斌,苏铁熊,董小瑞;《山西电子技术》;20030630(第3期);第15-16页,第27页 *

Also Published As

Publication number Publication date
CN103516706A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
CN105072257A (en) Double-card double-system terminal and incoming call processing method and apparatus thereof
US6078658A (en) Call control system in an intelligent network
CN103516706B (en) A kind of Smart Home talk back equipment and method of calling thereof and calling device
CN104678769A (en) Event-Action conflict resolution method and Event-Action conflict resolution device
CN102035798A (en) Service processing method, system and device for realizing disaster tolerance
CN105872833A (en) Video communication method and device, and smart television
CN109121216A (en) A kind of radio frequency resource distribution method, user equipment and the device with store function
KR100904090B1 (en) Communication System for calling Many Members ? simultaneously talking over the Telephone with Them and Method thereof
CN101867770A (en) Method for obtaining remote seat position information and remote presentation system
CN103702065A (en) Backup system and method of video conference system
CN102143288A (en) Disaster recovery method and disaster recovery device in call center
CN104205724A (en) Reverse power supply method, reverse power supply equipment and reverse power supply system
CN101771769B (en) Method, device and system for call control
CN103179498A (en) Method and device for data transmission
CN102088458A (en) Method, terminal and system for holding cascade conference
CN106254814A (en) Method, Service Management Center and the system that a kind of meeting recovers
CN104461701B (en) A kind of control method and electronic equipment
CN105764038A (en) Call transfer control method and system
CN105487921B (en) A kind of task stack management method and device
CN108235083A (en) TV log information acquisition methods and device
CN105704327B (en) A kind of method and system of rejection phone
CN106791133A (en) The processing method and mobile terminal of the communication information
CN101945185B (en) Scheduling group calling method and system
CN106803919B (en) The video call system and implementation method of load can be reduced
CN101505310A (en) Session switching method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160817

Termination date: 20170904