CN107332831A - A kind of method of automatic acquisition device IP - Google Patents
A kind of method of automatic acquisition device IP Download PDFInfo
- Publication number
- CN107332831A CN107332831A CN201710466575.6A CN201710466575A CN107332831A CN 107332831 A CN107332831 A CN 107332831A CN 201710466575 A CN201710466575 A CN 201710466575A CN 107332831 A CN107332831 A CN 107332831A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- udp
- control device
- automatic acquisition
- udp bags
- 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
- 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/164—Adaptation or special uses of UDP protocol
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5038—Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method of automatic acquisition device IP, one control device and at least a terminal device need to be provided, the terminal device and control device are connected on same router so that the terminal device is located at the same network segment with control device, and methods described includes:Step 1, the terminal device create a UDP bags, and are broadcasted, and the UDP bags include pre-defined checking information;Step 2, the control device open UDP and monitor fixed port, after the UDP bags are received, the checking information obtained in the UDP bags is verified, if being verified, local ip address information is then obtained, and the IP address information is returned into corresponding terminal device;Otherwise, return to step 2.Effective acquisition device IP can be realized using the inventive method.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of method of automatic acquisition device IP.
Background technology
Embedded device is mainly made up of embeded processor, associated support hardware and embedded software system, and it is collection
Software and hardware is in " device " that can work independently of one, and it has the features such as convenient flexible, ratio of performance to price is high, embeddability is strong.
Existing embedded device, is such as commonly used in the control device of control household electrical appliances running, its company with mobile phone A PP etc.
Connect typically by mobile phone A PP input control device IP be attached, after a period of time is set up, easily forget IP
Number, to give No. IP set originally for change cumbersome, it is necessary to reconfigure or attempt to seek one by one from the 1-255 network segment
Look for, take many, inefficiency.
The content of the invention
The technical problem to be solved in the present invention, is to provide a kind of method of automatic acquisition device IP, realizes same local
Quick obtaining device IP in net.
What the present invention was realized in:A kind of method of automatic acquisition device IP, need to provide a control device and at least one
Terminal device, the terminal device and control device are connected on same router so that the terminal device and control device
Positioned at the same network segment, methods described comprises the following steps:
Step 1, the terminal device create a UDP bags, and are broadcasted, and the UDP bags include pre-defined test
Demonstrate,prove information;
Step 2, the control device open UDP and monitor fixed port, after the UDP bags are received, and obtain the UDP
Checking information in bag is verified, if being verified, and obtains local ip address information, and the IP address information is returned
To corresponding terminal device;Otherwise, return to step 2.
Further, the terminal device is the equipment with storage UDP packet functions.
Further, No. IP of the terminal device itself is also included in the UDP bags.
Further, the terminal device is connected with router by wireless network.
Further, the control device is connected with router by netting twine.
The invention has the advantages that:Without specific host computer, it is only necessary to which control device and terminal device are connected to together
On one router, communicated, you can realize centering control IP lookup, taken according to the agreement pre-defined by UDP bags
Few, flexibility ratio is high, greatly improves both sides' interactive efficiency.
Brief description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is a kind of method execution flow chart of automatic acquisition device IP of the present invention.
Embodiment
As shown in figure 1, a kind of method of automatic acquisition device IP of the present invention, need to provide a control device and at least a terminal
Equipment, the terminal device and control device are connected on same router so that the terminal device is located at control device
The same network segment, the terminal device is the equipment with storage UDP packet functions, wherein, the terminal device passes through nothing with router
Line network connection, the control device is connected with router by netting twine, and methods described comprises the following steps:
Step 1, the terminal device create a UDP bags, and are broadcasted, and the UDP bags include pre-defined test
Demonstrate,proving in information, the UDP bags also includes No. IP of the terminal device itself;
Step 2, the control device open UDP and monitor fixed port, after the UDP bags are received, and obtain the UDP
Checking information in bag is verified, if being verified, and obtains local ip address information, and the IP address information is returned
To corresponding terminal device, i.e., the IP address information is returned into the terminal device according to the terminal device No. IP;
Otherwise, return to step 2.
The present invention is accessed without unnecessary equipment, it is only necessary to which control device and terminal device are connected into same router
On, communicated by UDP bags according to the agreement pre-defined, you can realize centering control IP lookup, realize effective acquisition
Corresponding device information.
Although the foregoing describing the embodiment of the present invention, those familiar with the art should manage
Solution, the specific embodiment described by us is merely exemplary, rather than for the restriction to the scope of the present invention, is familiar with this
The equivalent modification and change that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's
In scope of the claimed protection.
Claims (5)
1. a kind of method of automatic acquisition device IP, it is characterised in that:One control device and at least a terminal device, institute need to be provided
State terminal device and control device is connected on same router so that the terminal device is located at same net with control device
Section, methods described comprises the following steps:
Step 1, the terminal device create a UDP bags, and are broadcasted, and the UDP bags include pre-defined checking letter
Breath;
Step 2, the control device open UDP and monitor fixed port, after the UDP bags are received, and obtain in the UDP bags
Checking information verified, if being verified, obtain local ip address information, and the IP address information is returned to pair
The terminal device answered;Otherwise, return to step 2.
2. a kind of method of automatic acquisition device IP according to claim 1, it is characterised in that:The terminal device is band
The equipment for depositing UDP packet functions.
3. a kind of method of automatic acquisition device IP according to claim 1, it is characterised in that:Also wrapped in the UDP bags
Include No. IP of the terminal device itself.
4. a kind of method of automatic acquisition device IP according to claim 1, it is characterised in that:The terminal device and road
Connected by device by wireless network.
5. a kind of method of automatic acquisition device IP according to claim 1, it is characterised in that:The control device and road
Connected by device by netting twine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710466575.6A CN107332831A (en) | 2017-06-20 | 2017-06-20 | A kind of method of automatic acquisition device IP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710466575.6A CN107332831A (en) | 2017-06-20 | 2017-06-20 | A kind of method of automatic acquisition device IP |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107332831A true CN107332831A (en) | 2017-11-07 |
Family
ID=60194111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710466575.6A Pending CN107332831A (en) | 2017-06-20 | 2017-06-20 | A kind of method of automatic acquisition device IP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107332831A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040274A (en) * | 2018-08-17 | 2018-12-18 | 江苏本能科技有限公司 | Traffic headend equipment networking method and system |
CN114842593A (en) * | 2022-03-15 | 2022-08-02 | 合享佳智(深圳)充电桩科技有限公司 | Method, system, equipment and medium for automatically acquiring equipment IP (Internet protocol) of charging pile |
CN114842593B (en) * | 2022-03-15 | 2024-09-27 | 鑫享电港科技有限公司 | Method, system, equipment and medium for automatically acquiring equipment IP (Internet protocol) by charging pile |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102394699A (en) * | 2011-12-07 | 2012-03-28 | 深圳市零一通信技术有限公司 | Digital fiber repeater system remote upgrading method |
US8301739B1 (en) * | 2004-12-23 | 2012-10-30 | Emc Corporation | Storage system initialization utility |
CN105553744A (en) * | 2015-12-31 | 2016-05-04 | 西安诺瓦电子科技有限公司 | Production method of singlechip-based network equipment |
CN105681878A (en) * | 2016-01-15 | 2016-06-15 | 南京熊猫电子股份有限公司 | Device and method for controlling smart set top box through smart phone |
CN105897827A (en) * | 2015-11-27 | 2016-08-24 | 乐视云计算有限公司 | Server node, local area network server cluster and realizing method thereof |
-
2017
- 2017-06-20 CN CN201710466575.6A patent/CN107332831A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8301739B1 (en) * | 2004-12-23 | 2012-10-30 | Emc Corporation | Storage system initialization utility |
CN102394699A (en) * | 2011-12-07 | 2012-03-28 | 深圳市零一通信技术有限公司 | Digital fiber repeater system remote upgrading method |
CN105897827A (en) * | 2015-11-27 | 2016-08-24 | 乐视云计算有限公司 | Server node, local area network server cluster and realizing method thereof |
CN105553744A (en) * | 2015-12-31 | 2016-05-04 | 西安诺瓦电子科技有限公司 | Production method of singlechip-based network equipment |
CN105681878A (en) * | 2016-01-15 | 2016-06-15 | 南京熊猫电子股份有限公司 | Device and method for controlling smart set top box through smart phone |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040274A (en) * | 2018-08-17 | 2018-12-18 | 江苏本能科技有限公司 | Traffic headend equipment networking method and system |
CN114842593A (en) * | 2022-03-15 | 2022-08-02 | 合享佳智(深圳)充电桩科技有限公司 | Method, system, equipment and medium for automatically acquiring equipment IP (Internet protocol) of charging pile |
CN114842593B (en) * | 2022-03-15 | 2024-09-27 | 鑫享电港科技有限公司 | Method, system, equipment and medium for automatically acquiring equipment IP (Internet protocol) by charging pile |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104221410B (en) | Short message service (SMS) communication in wireless network in packet-switched domain | |
CN104486785B (en) | A kind of switching method and system of mobile terminal network optimization | |
CN103124267B (en) | The method, system and the cloud server that log in/register is carried out by mobile terminal | |
CN109408132A (en) | A kind of configuration file processing method and server, user terminal, storage medium | |
CN107453769A (en) | Reduce method, storage medium and the mobile phone of UE capability signaling structure contents | |
CN105553943B (en) | Transmission method, screen transmission method and device for screen transmission software and data transmission system | |
CN104754003B (en) | Transmit the method and system of data | |
CN107078972A (en) | Apparatus and method for providing service in the communication network for supporting multi-path transmission control protocol | |
CN107967322A (en) | Document classification display methods, mobile terminal and computer-readable recording medium | |
CN102364979A (en) | Method and system for connecting mobile terminal into network | |
JP5717862B2 (en) | Content caching with remote billing services in wireless access networks | |
US9826053B2 (en) | Content caching with remote charging services in a radio access network | |
CN103533165B (en) | Multi-APN (Access Point Name) concurrency method supporting Android applications of handheld equipment and system thereof | |
CN103024793B (en) | The construction method and system of communication service quality evaluation system | |
CN107113579A (en) | Mobile terminal control technology for supporting eMBMS | |
CN104965778A (en) | Method and device for game test | |
CN105592175A (en) | Method and apparatus for redirection to web page | |
CN105208605B (en) | Link information sending method and device and flow control method and device | |
CN103309664B (en) | Screenshot method, device and equipment | |
CN104702634B (en) | Data operation request treatment method, apparatus and system | |
CN108306925A (en) | Supplement accessing gateway equipment for providing enhancing and/or supplementary network connection | |
CN104349372B (en) | Stationkeeping ability call method and system and location-based service gateway | |
CN103974456B (en) | Communication system and method | |
CN107332831A (en) | A kind of method of automatic acquisition device IP | |
CN105814930B (en) | Charging controller, method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171107 |
|
WD01 | Invention patent application deemed withdrawn after publication |