CN102594941B - Method for device access and device communication in building intercom system - Google Patents

Method for device access and device communication in building intercom system Download PDF

Info

Publication number
CN102594941B
CN102594941B CN201210040564.9A CN201210040564A CN102594941B CN 102594941 B CN102594941 B CN 102594941B CN 201210040564 A CN201210040564 A CN 201210040564A CN 102594941 B CN102594941 B CN 102594941B
Authority
CN
China
Prior art keywords
address
equipment
device numbering
numbering
response packet
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
CN201210040564.9A
Other languages
Chinese (zh)
Other versions
CN102594941A (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.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems 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 Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN201210040564.9A priority Critical patent/CN102594941B/en
Publication of CN102594941A publication Critical patent/CN102594941A/en
Application granted granted Critical
Publication of CN102594941B publication Critical patent/CN102594941B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for device access and device communication in a building intercom system. A newly added device transmits device number and IP (Internet Protocol) address to other devices in the network; an original device stores the number and the IP address of the device, and simultaneously transmits own number and IP address to the newly added device, in this way, under the condition of regular communication, all the devices in the network store the IP addresses of other devices, and the IP address of a target device can be obtained just by native query without querying a management central computer every time in the communication, and thus the load on the management central computer is reduced, the communication efficiency is improved, and even under the condition of failure of the central computer, the interrupt of the integral communication cannot be caused.

Description

The method of equipment access and devices communicating in building conversational system
Technical field
The present invention relates to the method for a kind of equipment access communication, particularly relate to a kind of method of equipment access and devices communicating in building conversational system.
Background technology
In current building conversational system, in order to realize the communication between multiple devices, just need each equipment access network, per call is all wanted, first to the IP of administrative center's query aim equipment, to set up communication.Or adopt the mode of pure broadcast, look for required equipment.
Application number is the Chinese patent of 200710165787.7, a kind of cut-in method of broadband video service is provided, comprise the following steps: when A. local side access device receives video program play solicited message, the port of the local side access device that this information of inquire-receive uses; B. inquire about video user table and obtain authority numbering corresponding to described port; Queried access authority list obtains in having video capable of being watched program inventory corresponding to described authority numbering, obtains each program code in this having video capable of being watched program inventory; Whether the program code in the solicited message that determining step A receives, in obtained program code, if then continue, otherwise terminates; Inquiry video program source table obtains multicast program IP address corresponding to described program code; C. local side access device is to described IP Address requests media stream, and the media stream of acquisition is transmitted to the port described in steps A.Use the method, under broadband video service can be realized, to the control of user's accessing video program.But the communication mode that the employing of local side is general, then need each all to server lookup port, authority numbering, program code etc., the burden of server is very heavy, when multiple local side apparatus is inquired about time, information just may be caused to block up, or the problem that inquiry velocity is slow.
Application number is the Chinese patent of 200710089528.0, provides a kind of method that mark is arranged and mailing address distributes of remote device, comprising: first for remote device arranges unique device identification; After determining the procotol adopted again, for each remote device configures unique mailing address; Then, remote device controller sends the broadcast frame of above-mentioned procotol, after remote device receives this broadcast frame, using the mailing address of mailing address corresponding for this device identification in frame as oneself, returns represent successful response frame to remote device controller; Finally, remote device controller as the successful response frame of expression that the remote device identified in this broadcast frame returns detected, then thinks that this remote device has been assigned with mailing address within the response time of broadcast frame.Adopt in this way, make each remote device have unique device identification, be conducive to the management of equipment, but each equipment first will receive broadcast frame, could obtaining communication address, can not the direct communication port of apparatus for establishing.
In building talkback, the device numbering of usual user calling is limited, if all will pass through these device numberings of server lookup at every turn, although the success rate of inquiry is high, virtually increase the dependence of server, and average response time is also long.
Summary of the invention
The technical problem that the present invention solves is to provide equipment access and the method communicated in a kind of building conversational system, solves in prior art and needs the technical problem being realized the communication between equipment by server.
For solving the problems of the technologies described above, the technical solution used in the present invention is: the method providing equipment access in a kind of building conversational system, comprises the following steps:
S01: new log equipment sends broadcast packet to access network, and described broadcast packet comprises device numbering and IP address;
S02: after the existing equipment in access network receives described broadcast packet, stores the device numbering in described broadcast packet and IP address, and sends response packet to new log equipment, and described response packet comprises device numbering and the IP address of corresponding device;
S03: the information in described response packet stores by new log equipment.
Wherein, each equipment is provided with data form, for storing device numbering and the IP address of other equipment.
Wherein, described existing equipment sends response packet in the mode of clean culture.
Wherein, described step S03 specifically comprises:
S301: obtain the device numbering in response packet and IP address, judge whether there is this device numbering in data form, if so, forward step S302 to; If not, described device numbering and IP address is added in data form;
S302: judge whether to exist in data form to should the IP address of device numbering, if so, then abandon this response packet; If not, then corresponding with this device numbering in Update Table form IP address;
S303: the content of preserving data form.
For solving the problems of the technologies described above, the present invention also provides the method for devices communicating in a kind of building conversational system, comprising:
S11: search for the device numbering whether having target device in data form, if so, obtains the IP address corresponding with this device numbering, forwards step S14 to; If not, step S12 is forwarded to;
S12: send broadcast packet, for inquiring the IP address that this device numbering is corresponding, judging whether to receive response packet, if so, then this IP address being added to list, forwarding step S14 to; If not, step S13 is forwarded to;
S13: send request signal to server, obtain the IP address that described device numbering is corresponding, this IP address is added to list, forwards step S14 to.
S14: set up communication according to this IP address.
Wherein, described step S11 also comprises, and before setting up communication according to IP address, judges that whether the devices communicating corresponding with this IP address be normal, if so, then sets up communication; If not, then delete in data form should the data of device numbering.
Adopt technique scheme, the invention has the beneficial effects as follows: due to equipment network time, just device numbering and IP address are sent to other equipment in net with the form of broadcast packet, after other equipment receive broadcast packet, store device numbering and the IP address of this equipment, and self numbering and IP address is sent to this equipment, like this, all equipment just can obtain the information of the new equipment networked, and new log equipment also effectively can obtain the information of this equipment, like this, when communication, equipment only needs to detect the information whether storing target device, IP address required for acquisition, and do not need to be inquired about by server, communication just between energy apparatus for establishing, reduce the dependence of equipment to server, shorten average response time.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for equipment access in building conversational system provided by the invention;
Fig. 2 is the flow chart of the method for devices communicating in building conversational system provided by the invention;
Fig. 3 is the schematic diagram of a specific embodiment of the method for equipment access in building conversational system provided by the invention;
Fig. 4 is the schematic diagram of a specific embodiment of the method for devices communicating in building conversational system provided by the invention.
Embodiment
By describing technology contents of the present invention, structural feature in detail, realized object and effect, accompanying drawing is coordinated to be explained in detail below in conjunction with execution mode.
Embodiment 1
Refer to Fig. 1, the invention provides the method for equipment access in a kind of building conversational system, if legacy network comprises n equipment, newly adding equipment is equipment n+1,
After S01: equipment n+1 start, equipment n+1 sends broadcast packet to access network, described broadcast packet comprises device numbering and IP address, namely all in net equipment 1-equipment n send broadcast " my numbering is: * * * * *; my IP address is: * * * * * ", and numbering here can have multiple, can according to the type of equipment, equipment new and old, arranges the kind of numbering according to concrete applying flexible.In certain embodiments, equipment sends response packet in the mode of clean culture, because equipment 1 has received broadcast packet from equipment n+1 to equipment n, thus learnt the address of equipment n+1, therefore, it is possible to directly by information such as the device numbering of self, addresses, directly be sent to the IP address of equipment n+1, and do not need to be transmitted by the mode of broadcast, thus save Internet resources.
After S02: equipment 1-equipment n receives described broadcast packet, device numbering in described broadcast packet and IP address are stored, refer to following table, in each equipment, comprise in new log equipment n+1, all set up data form, for storing other device numbering and IP, and sending response packet to new log equipment, described response packet comprises device numbering and the IP address of corresponding device, i.e. annunciator n+1: " when my numbering: * * * *; My I P address is: * * * * ";
Device numbering IP
Numbering 1 IP address 1
Numbering 2 IP address 2
Numbering 3 IP address 3
Numbering n IP address n
S03: equipment n+1, by the information in described response packet, is stored in the data form in equipment n+1.Like this, in the normal situation of communication, equipment n+1 can receive n response packet, Portable device 1 arrives device numbering and the IP address of equipment n respectively, these data are stored in data form, like this, the equipment n+1 of new networking just stores device numbering and the IP address of other all devices in net, as shown above, in follow-up communication, just can by this data form of inquiry, just can find the IP address of target device, set up direct communication, such as, equipment n+1 needs to communicate with equipment 30, just direct search device numbering is " numbering 30 ", inquire IP address for " IP address 30 ", the data of required transmission just can directly be transferred to this " IP address 30 " by equipment n+1, and do not need the address by server lookup target device.
In one embodiment, described step S03 specifically comprises:
S301: obtain the device numbering in response packet and IP address, such as device numbering is " numbering 30 ", judges whether there is this device numbering in data form, as above shows, whether traversal " device numbering " hurdle, have " numbering 30 ", if so, forward step S302 to; If not, described device numbering " numbering 30 " and IP address is added in data form;
S302: whether judge to exist in data form to should the IP address of device numbering, the address that such as " numbering 30 " is corresponding be " IP address 30 ", the same with IP address in response packet, then abandon this response packet; If not, then corresponding with this device numbering in Update Table form IP address, because response packet is sent by corresponding device, what therefore record is up-to-date device address, by the content of Update Table form, information of just simultaneously updating the equipment, makes communication more efficient.
S303: the content of preserving data form.
Refer to Fig. 2, the present invention also provides the method for devices communicating in a kind of building conversational system, comprising:
S11: search for the device numbering whether having target device in data form, if so, obtains the IP address corresponding with this device numbering, forwards step S14 to; If not, step S12 is forwarded to;
S12: send broadcast packet, for inquiring the IP address that this device numbering is corresponding, judging whether to receive response packet, if so, then this IP address being added to list, forwarding step S14 to; If not, step S13 is forwarded to; Can avoid like this data of factor data list unexpected ruined or data volume not enough and cause communication failure, improve the success rate of connection setup and the fault-tolerance of system, increase the robustness of system.
S13: send request signal to server, obtain the IP address that described device numbering is corresponding, this IP address is added to list, forwards step S14 to;
S14: set up communication according to this IP address.
Because each equipment can be registered in management center machine, management center machine has powerful database and data-handling capacity, improve the success rate of connection setup to greatest extent, if can not find out the IP of this numbering correspondence in management center machine, then represent that this equipment is not registered, finally set up communication failure.
Described step S11 also comprises, and before setting up communication according to IP address, judges that whether the devices communicating corresponding with this IP address be normal, if so, then sets up communication; If not, then delete in data form should the data of device numbering.
Adopt in this way, timely deletion, renewal " identity card " (i.e. device numbering and device IP) list, suppose when device A is by numbering calling device B, if have found the IP corresponding with this numbering from list, but normal communication connection cannot be set up, then call failure, represent that this equipment may in net, or power-off, so " identity card " that this is expired is deleted from list, avoid calling next time to continue the data of mistake in, also shorten the time of searching IP before setting up communication simultaneously.
Refer to Fig. 3 and Fig. 4, Fig. 3 and Fig. 4 provides a specific embodiment respectively, in order to explain in the standby state between device A, equipment B, equipment C equipment access method and communication means.
1, device power-up
There is device A and equipment B in network system, now equipment C starts shooting, and C sends broadcast packet (Dev_c, Addr_c);
A receives broadcast packet, sends response packet (Dev_a, Addr_a) to C, if C is in " identity card " list of A, does not then process; Otherwise then add " identity card " of C to list
B receives broadcast packet, sends response packet (Dev_b, Addr_b) to C, if C is in " identity card " list of B, does not then process; Otherwise then add " identity card " of C to list
C receives the response packet of A and B, checks that A and B is whether in " identity card " list of C successively, if, then do not process, otherwise " identity card " that then add A and B is to list.
2. " search step by step "
Device A calling device B, A only knows the numbering of B, does not know the IP address of B
A searches the numbering of B in local " identity card " list, if can find, then take out corresponding IP address, then initiate calling network communication to this IP, A can not find the numbering of B in local " identity card " list, then in net, send broadcast packet, the device IP that inquiry is numbered B is how many, after receiving response, add " identity card " of B to list, and initiate calling network communication to this IP;
A can not find the numbering of B in local " identity card " list, sends broadcast packet and does not also receive response, then to management center machine inquiry, add " identity card " of B to list after finding, and initiate calling network communication to this IP in net;
First inquire about in the data list of local device, inquire about by sending broadcast packet again, this mode greatly reduces the access times of whole system to management center machine on the one hand, reduce the burden of management center machine, even can reduce the hardware cost of management center machine, also reduce the dependence of whole system to management center machine on the other hand, system is made immediately to have departed from management center machine, in the same old way can proper communication, avoid in building system because center machine fault causes the situation of resident family's communication system paralysis.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (3)

1. the method for equipment access in building conversational system, is characterized in that, comprising:
S01: new log equipment sends broadcast packet to access network, and described broadcast packet comprises device numbering and IP address;
S02: after all existing equipments in access network receive described broadcast packet, stores the device numbering in described broadcast packet and IP address, and sends response packet to new log equipment, and described response packet comprises device numbering and the IP address of corresponding device;
S03: the information in described response packet stores by new log equipment;
Described step S03 specifically comprises:
S301: obtain the device numbering in response packet and IP address, judge whether there is this device numbering in data form, if so, forward step S302 to; If not, described device numbering and IP address is added in data form;
S302: judge whether to exist in data form to should the IP address of device numbering, if the same with IP address in response packet, then abandon this response packet; If not, then corresponding with this device numbering in Update Table form IP address;
S303: the content of preserving data form;
Wherein, each equipment is provided with data form, for storing device numbering and the IP address of other equipment.
2. the method for equipment access in building conversational system according to claim 1, is characterized in that: described existing equipment sends response packet in the mode of clean culture.
3. the method for devices communicating in building conversational system, is characterized in that, comprising:
S11: search for the device numbering whether having target device in data form, if so, obtains the IP address corresponding with this device numbering, forwards step S14 to; If not, step S12 is forwarded to;
S12: send broadcast packet, for inquiring the IP address that this device numbering is corresponding, judging whether to receive response packet, if so, then this IP address being added to list, forwarding step S14 to; If not, step S13 is forwarded to;
S13: send request signal to server, obtain the IP address that described device numbering is corresponding, this IP address is added to list, forwards step S14 to;
S14: set up communication according to this IP address;
Described step S11 also comprises, and before setting up communication according to IP address, judges that whether the devices communicating corresponding with this IP address be normal, if so, then sets up communication; If not, then delete in data form should the data of device numbering.
CN201210040564.9A 2012-02-22 2012-02-22 Method for device access and device communication in building intercom system Expired - Fee Related CN102594941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210040564.9A CN102594941B (en) 2012-02-22 2012-02-22 Method for device access and device communication in building intercom system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210040564.9A CN102594941B (en) 2012-02-22 2012-02-22 Method for device access and device communication in building intercom system

Publications (2)

Publication Number Publication Date
CN102594941A CN102594941A (en) 2012-07-18
CN102594941B true CN102594941B (en) 2015-06-17

Family

ID=46483134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210040564.9A Expired - Fee Related CN102594941B (en) 2012-02-22 2012-02-22 Method for device access and device communication in building intercom system

Country Status (1)

Country Link
CN (1) CN102594941B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106241525A (en) * 2016-09-07 2016-12-21 深圳市泛海三江科技发展有限公司 A kind of it is applied to the access control method of intelligent safety and defence system, system and device
CN107659571A (en) * 2017-09-30 2018-02-02 北京千丁互联科技有限公司 A kind of community's equipment and realize to the method for unlocking of making peace
CN111092965B (en) * 2019-12-27 2022-04-12 珠海市竞争电子科技有限公司 IP address setting method applied to intercom system
CN112188320B (en) * 2020-09-30 2022-09-23 联想(北京)有限公司 Information processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794663A (en) * 2005-12-31 2006-06-28 杭州华为三康技术有限公司 Access method of document in pile system
CN1855842A (en) * 2005-04-19 2006-11-01 华为技术有限公司 Method for making maintaining node labels to match with media visiting controlled addresses
CN101083575A (en) * 2006-06-02 2007-12-05 同济大学 Distributed speech communication system and network connection method for residential district
CN102035861A (en) * 2009-09-24 2011-04-27 中兴通讯股份有限公司 Load balancing method and system of single-jump distributing type hash table superposition network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855842A (en) * 2005-04-19 2006-11-01 华为技术有限公司 Method for making maintaining node labels to match with media visiting controlled addresses
CN1794663A (en) * 2005-12-31 2006-06-28 杭州华为三康技术有限公司 Access method of document in pile system
CN101083575A (en) * 2006-06-02 2007-12-05 同济大学 Distributed speech communication system and network connection method for residential district
CN102035861A (en) * 2009-09-24 2011-04-27 中兴通讯股份有限公司 Load balancing method and system of single-jump distributing type hash table superposition network

Also Published As

Publication number Publication date
CN102594941A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
CN102938794B (en) ARP message forwarding method, switch and controller
CN107733670B (en) Forwarding strategy configuration method and device
CN101577722B (en) Method for realizing MAC forced forwarding function and device
CN101141493B (en) Address analysis method and access point of wireless LAN
CN101764751B (en) Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN
CN101262505B (en) A method, system and device for establishing ARP table items
CN103248724A (en) SDN (Software-Defined Networking) controller-based DHCP (Dynamic Host Configuration Protocol) broadcast processing method
CN104243318A (en) MAC (media access control) address learning method and MAC address learning device in VXLAN (virtual extensible local area network)
JP2016540448A (en) Virtual extended LAN communication method, apparatus, and system
CN106878288B (en) message forwarding method and device
CN105245629A (en) DHCP-based host communication method and device
CN104243630A (en) MAC (media access control) address learning method and MAC address learning device in VXLAN (virtual extensible local area network)
CN102263704A (en) Topology construction method and device supporting layer 2 interconnection of data centers
CN101917707A (en) IP addressing method and system for wireless sensor network
CN102594941B (en) Method for device access and device communication in building intercom system
CN103166864A (en) Method and device for private VLAN (virtual local area network) information management
CN101873320B (en) Client information verification method based on DHCPv6 relay and device thereof
CN100442706C (en) Method for making maintaining node labels to match with media visiting controlled addresses
CN102739539A (en) Method for carrying out topology association on optical network unit (ONU) and Ethernet over coax (EOC)
CN102055641A (en) Distribution method for virtual local area network and related device
CN102857588A (en) Processing method and apparatus for address resolution protocol ARP information
CN102594839B (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
CN102625162B (en) Method and system for data transmission
CN110351398A (en) A kind of external equipment identification monitoring method and system
CN104717640A (en) Realization method for wireless network communication based on positioning

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

Granted publication date: 20150617

CF01 Termination of patent right due to non-payment of annual fee