[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101035121A - Multi-IP communication method and system - Google Patents

Multi-IP communication method and system Download PDF

Info

Publication number
CN101035121A
CN101035121A CN 200610063100 CN200610063100A CN101035121A CN 101035121 A CN101035121 A CN 101035121A CN 200610063100 CN200610063100 CN 200610063100 CN 200610063100 A CN200610063100 A CN 200610063100A CN 101035121 A CN101035121 A CN 101035121A
Authority
CN
China
Prior art keywords
tcp
network parameters
embedded device
setting
surveillance center
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
Application number
CN 200610063100
Other languages
Chinese (zh)
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.)
ZHONGLIAN INNOVATION SELF CONTROL SYSTEM CO Ltd SHENZHEN CITY
Original Assignee
ZHONGLIAN INNOVATION SELF CONTROL SYSTEM CO Ltd SHENZHEN CITY
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 ZHONGLIAN INNOVATION SELF CONTROL SYSTEM CO Ltd SHENZHEN CITY filed Critical ZHONGLIAN INNOVATION SELF CONTROL SYSTEM CO Ltd SHENZHEN CITY
Priority to CN 200610063100 priority Critical patent/CN101035121A/en
Publication of CN101035121A publication Critical patent/CN101035121A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a multi-IP communication method and system. And the system comprises embedded equipment and monitoring center, where the embedded equipment is stored with multiple groups of network parameters and when requiring to communicate with the monitoring center, calls first group of network parameters to initialize TCP/IP protocol stack and tries to make TCP link with the monitoring center; after succeeding in making the TCP link in the set time, communicates with the monitoring center by TCP/IP protocol; if TCP link is unable to be made in the set time, calls the next group of network parameters, re-initializes the TCP/IP protocol stack and retries to make TCP link with the monitoring center; if the TCP link is unable to be made, continues to call the next group of network parameters until succeeding in making the TCP link. And it can automatically change the network parameters in an extremely short time, make link between the embedded equipment and the monitoring center and assures real-time online of the embedded equipment.

Description

Multi-IP communication method and system
Technical field
The present invention relates to communication field, more particularly, relate to a kind of method and system of many IP of realization communication.
Background technology
Existing embedded device, for example the terminal equipment of some band camera head monitors when having only a network interface, also only provides a set of network parameters accordingly.In a supervisory control system, often have several ten thousand such terminal equipments.
Because actual conditions, for example telecommunications, move, the machine room of communication company such as UNICOM distributes and disperses very much, for the balancing network load, often need the access network equipment IP address of part be changed at the time point of appointment.Therefore, must before the time point of appointment, change IP, perhaps change IP till now behind that time point, otherwise time point one arrives, and also uses original IP, and Surveillance center just can't have access to equipment.
Existing technology all is manually to go the changed network parameter, because these watch-dogs generally relatively disperse, artificial changed network parameter, and cost is very high, need take long to, and does not also satisfy the demand of necessary Change All network parameter in the extremely short time.Simultaneously, because a lot of equipment are the changed network parameter immediately, thereby can't use new network parameter to be linked into Surveillance center in time, cause a lot of equipment in long time, to be in not presence, bring the discontinuous of monitoring, be unfavorable for real-time monitoring.
Summary of the invention
The technical problem to be solved in the present invention is, is unfavorable for the defective of updating network parameters at the supervisory control system of prior art, and a kind of multi-IP communication method of change of the network parameter that can finish each equipment fast, at short notice is provided.
Another technical problem to be solved by this invention is, is unfavorable for the defective of updating network parameters at the supervisory control system of prior art, and a kind of many IP communication system of change of the network parameter that can finish each equipment fast, at short notice is provided.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of multi-IP communication method, may further comprise the steps:
A: the many set of network parameters of configuration in embedded device;
B: when described embedded device need carry out communication with Surveillance center, carry out following steps:
Described embedded device calls first set of network parameters, with the first set of network parameters initialization ICP/IP protocol stack, and attempts setting up TCP with Surveillance center and is connected; In setting-up time, after successfully setting up TCP and connecting, described embedded device and Surveillance center utilize ICP/IP protocol to carry out communication; If in setting-up time, TCP connects and can't set up, and then described embedded device calls next set of network parameters, reinitializes the ICP/IP protocol stack with next group set of network parameters, and attempts setting up TCP with Surveillance center once more and be connected; Can't set up if TCP connects, then continue to call next set of network parameters, connect until successfully setting up TCP.
Preferably, in described step B, behind the network parameter that calls all groups successively, in the time of still can't setting up the TCP connection, call first set of network parameters again, enter next circulation, connect until successfully setting up TCP.
Preferably, described network parameter comprises IP address, subnet mask and gateway.
Preferably, in described embedded device timer is set, whether the network parameter of the current use of periodic monitor is connected with the TCP of described Surveillance center and disconnects, if disconnect, then re-executes step B, attempts setting up TCP again and connects.
Preferably, in described steps A, described many set of network parameters are stored among the ROM of embedded device;
In described step B, described embedded device is read into described many set of network parameters among its RAM from described ROM, use the first set of network parameters initialization ICP/IP protocol stack then, and frequent send request to described Surveillance center and set up the packet that TCP connects, attempt setting up TCP and connect.
Preferably, in described steps A, described many set of network parameters are stored among the ROM of embedded device;
In described step B, described embedded device is read into described many set of network parameters among its RAM from described ROM, use the first set of network parameters initialization ICP/IP protocol stack then, and monitor the request of whether receiving and set up the packet that TCP connects, attempt setting up TCP and connect.
The present invention solves the technical scheme that its another technical problem adopts: construct a kind of many IP communication system, comprise embedded device and Surveillance center, described embedded device and described Surveillance center are by the ICP/IP protocol communication; Be provided with processing module, memory module and driver module in the described embedded device; Store many set of network parameters in the described memory module, call the ICP/IP protocol stack of each set of network parameters initialization driver module successively, and trial is set up TCP with described Surveillance center and is connected.
Preferably, described memory module comprises ROM and RAM; Described network parameter comprises IP address, subnet mask and gateway, is stored among the described ROM, when calling described network parameter, described network parameter is read among the RAM.
Preferably, described embedded device also comprises timer, and whether the network parameter that is used for the current use of periodic monitor is connected with the TCP of Surveillance center and disconnects.
Preferably, described processing module is according to the described ICP/IP protocol stack of network parameter initialization that calls, and frequently send the packet that the TCP connection is set up in request to described Surveillance center, and perhaps monitor the request of whether receiving and set up the packet that TCP connects, attempt setting up the TCP connection.
Implement multi-IP communication method of the present invention and system, has following beneficial effect: by the many set of network parameters of configuration in embedded device, thereby can be by calling different network parameters, set up being connected of embedded device and Surveillance center, can be in the extremely short time changed network parameter automatically, need not manual intervention, guaranteed the real-time online of embedded device simultaneously.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the schematic diagram of many IP of the present invention communication system;
Fig. 2 is the flow chart of an embodiment of multi-IP communication method of the present invention;
Fig. 3 is the flow chart of another embodiment of multi-IP communication method of the present invention.
Embodiment
As shown in Figure 1, many IP communication system of the present invention comprises embedded device 10 and Surveillance center 20.Described embedded device 10 carries out communication with described Surveillance center 20 by ICP/IP protocol.
Be provided with memory module 11 and driver module 12 in the described embedded device 10, also comprise other module certainly, for example processing module, image collection module, power module etc.In described memory module 11, store many set of network parameters, n set of network parameters for example, n is used for the ICP/IP protocol stack of initialization driver module 12 greater than 1, carries out communication with Surveillance center 20.When needs changed network parameter, only need call each set of network parameters successively, reinitialize the ICP/IP protocol stack of driver module 12, and trial is set up TCP with described Surveillance center 20 and is connected, get final product up to setting up the TCP connection, whole process is finished automatically, need not people's manual manipulation, can finish the modification of the network parameter of each equipment at short notice.
Described memory module 11 comprises ROM and RAM; Described network parameter comprises IP address, subnet mask and gateway.Described network parameter is stored among the described ROM, when calling network parameter, network parameter is read among the RAM, and driver module 12 is carried out initialization, uses network parameter to connect.
At described embedded device 10 timer can also be set, whether the network parameter that is used for the current use of periodic monitor is connected with the TCP of Surveillance center 20 and disconnects.For example, when embedded device 10 successfully receives the response packet of the packet that sends request TCP connection or listens to the packet that request TCP connects within the time that timer is set, then set up the TCP connection, timer returns zero; If surpassed the time that timer is set, then the TCP connection failure is set up in explanation, and notify the processing module of embedded device 10 to call next set of network parameters this moment, reinitializes the ICP/IP protocol stack of driver module 12, again attempt setting up TCP and connect, till successfully connecting.Certainly, the time of described timer setting can be set as required.Can also further set,, call next set of network parameters again and reconnect when repeatedly overtime.
As shown in Figure 2, be a specific embodiment of multi-IP communication method of the present invention, may further comprise the steps: at first in embedded device, dispose many set of network parameters.Described network parameter comprises that the network of ICP/IP protocol such as IP address, subnet mask and gateway connects parameter.In the present embodiment, described network parameter is stored among the ROM of embedded device, and can be read among its RAM by embedded device, and the ICP/IP protocol stack of driver module is carried out initialization.Described many set of network parameters can be set in the embedded device by the scene, also can be by long-range setting.
When described embedded device need carry out communication with Surveillance center, carry out following steps: at first, described embedded device is called in described many set of network parameters among the RAM from ROM, then with the first set of network parameters initialization ICP/IP protocol stack, and attempt setting up TCP with Surveillance center and be connected (S2-1).In the present embodiment, what described embedded device was frequent sends the packet that the TCP connection is set up in request to described Surveillance center, attempts setting up TCP and connects.Whether successfully the driver module of embedded device uses this set of network parameters, in setting-up time, judge TCP connection (S2-2); Correct when the network parameter of this group, after then successfully setting up TCP and connecting, described embedded device and Surveillance center utilize ICP/IP protocol to carry out communication (S2-3).If in setting-up time, embedded device can't receive response, then TCP connects and can't set up, described embedded device calls next set of network parameters, reinitialize the ICP/IP protocol stack with next group set of network parameters, and frequent once more send request to Surveillance center and set up the packet that TCP connects, attempt setting up TCP and connect (S2-4); Judge whether successful connection (S2-5) again; Can't set up if TCP connects, then continue to call next set of network parameters, connect (S2-6); Judge whether successful connection (S2-7) again, connect, then carry out proper communication (S2-3) if successfully set up TCP.Behind the network parameter that calls all groups successively, in the time of still can't setting up the TCP connection, call first set of network parameters again, enter next circulation, connect until successfully setting up TCP.
In described embedded device timer can also be set, whether the network parameter of the current use of periodic monitor is connected with the TCP of described Surveillance center and disconnects, if disconnect, then calls next set of network parameters again, attempts setting up TCP again and connects.For example, when embedded device sent the packet of request TCP connection, described timer promptly began to clock.As receiving confirmation signal before the time of setting at timer, then timer returns zero; If surpassed the time that timer is set, still can't receive confirmation signal, notify the processor of embedded device to call next set of network parameters this moment, reinitializes the ICP/IP protocol stack of driver module, again attempt setting up TCP and connect, till successfully connecting.
As shown in Figure 3, it is another specific embodiment of multi-IP communication method of the present invention, at first, described embedded device is called in described many set of network parameters among the RAM from ROM, then with the first set of network parameters initialization ICP/IP protocol stack, and attempt setting up TCP with Surveillance center and be connected (S3-1).In the present embodiment, described embedded device is monitored the request of whether receiving and is set up the packet that TCP connects, and attempts setting up TCP and connects.Whether successfully the driver module of embedded device uses this set of network parameters, in setting-up time, judge whether TCP connection (S3-2); When the packet that TCP connects was set up in the request of receiving of described embedded device, its processing module was handled and is set up TCP with Surveillance center and be connected, and utilizes ICP/IP protocol to carry out communication (S3-3).If in setting-up time, when the packet of TCP connection is set up in the embedded device request of not receiving, represent that then this set of network parameters can't use, TCP connects and can't set up, described embedded device calls next set of network parameters, reinitialize the ICP/IP protocol stack with next group set of network parameters, and monitor the request of whether receiving once more and set up the packet that TCP connects, attempt setting up TCP and connect (S3-4); Judge whether successful connection (S3-5) again; Can't set up if TCP connects, then continue to call next set of network parameters, connect (S3-6); Judge whether successful connection (S3-7) again, connect, then carry out proper communication (S3-3) if successfully set up TCP.Behind the network parameter that calls all groups successively, in the time of still can't setting up the TCP connection, call first set of network parameters again, enter next circulation, connect until successfully setting up TCP.
In described embedded device timer can also be set, whether the network parameter of the current use of periodic monitor is connected with the TCP of described Surveillance center and disconnects, if disconnect, then calls next set of network parameters again, attempts setting up TCP again and connects.For example, when embedded device began to monitor the TCP connection, described timer promptly began to clock.As the packet of receiving before the time of setting at timer that request TCP connects, then timer returns zero; If surpassed the time that timer is set, still can't receive the packet that request TCP connects, notify the processor of embedded device to call next set of network parameters this moment, reinitializes the ICP/IP protocol stack of driver module, again attempt setting up TCP and connect, till successfully connecting.

Claims (10)

1, a kind of multi-IP communication method is characterized in that, may further comprise the steps:
A: the many set of network parameters of configuration in embedded device;
B: when described embedded device need carry out communication with Surveillance center, carry out following steps:
Described embedded device calls first set of network parameters, with the first set of network parameters initialization ICP/IP protocol stack, and attempts setting up TCP with Surveillance center and is connected; In setting-up time, after successfully setting up TCP and connecting, described embedded device and Surveillance center utilize ICP/IP protocol to carry out communication; If in setting-up time, TCP connects and can't set up, and then described embedded device calls next set of network parameters, reinitializes the ICP/IP protocol stack with next set of network parameters, and attempts setting up TCP with Surveillance center once more and be connected; Can't set up if TCP connects, then continue to call next set of network parameters, connect until successfully setting up TCP.
2, multi-IP communication method according to claim 1 is characterized in that, in described step B, behind the network parameter that calls all groups successively, in the time of still can't setting up the TCP connection, call first set of network parameters again, enter next circulation, connect until successfully setting up TCP.
3, multi-IP communication method according to claim 1 and 2 is characterized in that, described network parameter comprises IP address, subnet mask and gateway.
4, multi-IP communication method according to claim 3 is characterized in that, in described embedded device timer is set, whether the network parameter of the current use of periodic monitor is connected with the TCP of described Surveillance center and disconnects, if disconnect, then re-execute step B, attempt setting up TCP again and connect.
5, multi-IP communication method according to claim 4 is characterized in that, in described steps A, described many set of network parameters are stored among the ROM of embedded device;
In described step B, described embedded device is read into described many set of network parameters among its RAM from described ROM, use the first set of network parameters initialization ICP/IP protocol stack then, and frequent send request to described Surveillance center and set up the packet that TCP connects, attempt setting up TCP and connect.
6, multi-IP communication method according to claim 4 is characterized in that, in described steps A, described many set of network parameters are stored among the ROM of embedded device;
In described step B, described embedded device is read into described many set of network parameters among its RAM from described ROM, use the first set of network parameters initialization ICP/IP protocol stack then, and monitor the request of whether receiving and set up the packet that TCP connects, attempt setting up TCP and connect.
7, a kind of many IP communication system comprises embedded device and Surveillance center, and described embedded device and described Surveillance center are by the ICP/IP protocol communication; It is characterized in that, be provided with processing module, memory module and driver module in the described embedded device; Store many set of network parameters in the described memory module, call the ICP/IP protocol stack of each set of network parameters initialization driver module successively, and trial is set up TCP with described Surveillance center and is connected.
8, many IP communication system according to claim 7 is characterized in that, described memory module comprises ROM and RAM; Described network parameter comprises IP address, subnet mask and gateway, is stored among the described ROM, when calling described network parameter, described network parameter is read among the RAM.
9, according to claim 7 or 8 described many IP communication systems, it is characterized in that described embedded device also comprises timer, whether the network parameter that is used for the current use of periodic monitor is connected with the TCP of Surveillance center and disconnects.
10, many IP communication system according to claim 9, it is characterized in that, described processing module is according to the described ICP/IP protocol stack of network parameter initialization that calls, and frequently send the packet that the TCP connection is set up in request to described Surveillance center, perhaps monitor the request of whether receiving and set up the packet that TCP connects, attempt setting up TCP and connect.
CN 200610063100 2006-10-11 2006-10-11 Multi-IP communication method and system Pending CN101035121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610063100 CN101035121A (en) 2006-10-11 2006-10-11 Multi-IP communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610063100 CN101035121A (en) 2006-10-11 2006-10-11 Multi-IP communication method and system

Publications (1)

Publication Number Publication Date
CN101035121A true CN101035121A (en) 2007-09-12

Family

ID=38731424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610063100 Pending CN101035121A (en) 2006-10-11 2006-10-11 Multi-IP communication method and system

Country Status (1)

Country Link
CN (1) CN101035121A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254179A (en) * 2016-08-05 2016-12-21 深圳先进技术研究院 A kind of heartbeat packet asynchronous controlling method and device
CN109413164A (en) * 2018-10-09 2019-03-01 郑州云海信息技术有限公司 A kind of access service recovery method, device, equipment and readable storage medium storing program for executing

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254179A (en) * 2016-08-05 2016-12-21 深圳先进技术研究院 A kind of heartbeat packet asynchronous controlling method and device
CN106254179B (en) * 2016-08-05 2020-07-24 深圳先进技术研究院 Heartbeat packet asynchronous control method and device
CN109413164A (en) * 2018-10-09 2019-03-01 郑州云海信息技术有限公司 A kind of access service recovery method, device, equipment and readable storage medium storing program for executing
CN109413164B (en) * 2018-10-09 2022-04-22 郑州云海信息技术有限公司 Access service recovery method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN105119769B (en) It is a kind of that the system for carrying out time hash is reported to periodic data
CN1794665A (en) Method of medium gateway monitoring and uploading event
EP2428868A3 (en) Network service system, service proxy processing method, computer-readable storage medium storing program, and program therefor
CN109768620B (en) Intelligent video linkage method for substation
EP2853962A1 (en) Identification method for pan-tilt apparatus, pan-tilt apparatus, camera and control system for pan-tilt apparatus
CN1177450C (en) Method of realizing
CN101035121A (en) Multi-IP communication method and system
CN112969064A (en) Redis cache timeout-based equipment online state calculation method
CN110888387A (en) Device and method for monitoring safety of contact network operation state
CN204104044U (en) Based on the high-definition monitoring system of PLC technology
CN1512675A (en) Conversion method for main and spare communication channels
CN106130748B (en) The more net Distributed Services module status detection methods of network-based multimachine and system
CN103166801A (en) Server and monitor method of server
CN111061328B (en) Low-voltage direct current servo based on Ethernet/IP
CN115499300B (en) Embedded equipment clustering operation architecture system, construction method and construction device
CN102984145A (en) Method for communicating with communication terminal with plurality of extension sets and communication device
CN108696645A (en) Monitoring system
CN113608965A (en) Multithreading data monitoring method based on Internet of things technology
CN207424665U (en) A kind of fault diagnosis system based on 4D platform seats
CN101193036B (en) Exchange system and method for production management data
CN1633004A (en) Method of transmission line configuration
WO2006074827A1 (en) Method and system for transmitting data in mobile network nodes
US6810015B1 (en) Apparatus and method for optimizing the use of multiple gateway in ToL systems
CN113079220B (en) Method for remotely controlling control machine in power exchange cabinet
CN100341380C (en) Following-mode mobile multi-medium terminal calling treatment 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20070912