CN105991788A - Method for realizing slave network address assignment based on NFC communication - Google Patents
Method for realizing slave network address assignment based on NFC communication Download PDFInfo
- Publication number
- CN105991788A CN105991788A CN201510095291.1A CN201510095291A CN105991788A CN 105991788 A CN105991788 A CN 105991788A CN 201510095291 A CN201510095291 A CN 201510095291A CN 105991788 A CN105991788 A CN 105991788A
- Authority
- CN
- China
- Prior art keywords
- machine
- network
- network address
- nfc communication
- slave
- 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
- 238000004891 communication Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000004044 response Effects 0.000 claims abstract description 10
- 230000005540 biological transmission Effects 0.000 claims description 11
- 230000008859 change Effects 0.000 claims description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/40—Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
- H04B5/48—Transceivers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method for realizing slave network address assignment based on NFC communication. The method comprises the steps that: firstly, network drivers of a plurality of slaves are arranged side by side at an interval less than 10CM, and NFC communication modes of the network drivers of all the slaves are set to be a receiving mode in an initial state; a host sends a command to the first slave, the network driver of the first slave assigns a received protocol address to be a network address of the first slave; the first slave adds 1 to the network address of the first slave and then sends the network address plus one to a neighboring slave; the neighboring slave checks whether the received network address is greater than a network address of the neighboring slave by 1, if so, the neighboring slave makes no response; and if not, the neighboring slave sets the received network address to be its own network address, and the steps are repeated in sequence till network addresses of the network drivers of all the slaves are assigned. The method can realize slave network address assignment quickly and conveniently, increases slave network address assignment efficiency, and ensures network communication between the host and the slaves.
Description
Technical field
The present invention relates to a kind of method realizing from the distribution of the machine network address based on NFC communication.
Background technology
NFC i.e. near field communication (NFC), can realize wireless near field communication between mobile device, consumer electronics product, PC and smart control instrument.NFC provides a kind of simple, wireless telecommunications solution of touch, can make to realize the exchange information of simple, intuitive between near-field devices, access content and service.
NFC communication technology allows to carry out contactless Point-to-Point Data Transmission between electronic equipment, and transmission range is generally ten centimetres.NFC is developed by contact-free formula RF identification (RFID), and backward compatible, is mainly used in the handheld devices such as mobile phone providing the communication of M2M (Machine to Machine).Owing to near-field communication has stronger security, therefore, NFC is considered to have great application prospect in fields such as mobile-phone payments.
NFC has that data transmission bauds is fast, respond rapid feature, both touches and i.e. sends out.A certain in network after machine disconnects, nor affect on remaining work from machine, and on-the-spot be not necessarily to manual debugging, meet industry 4.0 intelligence and produce the demands of (internet manufacturing mode).And traditional data bus transmission mode speed is slow, it is slow to respond, need to rely on hardware and realize connecting, and as bus has disconnection fault, then bus all cannot be carried out communication after breakpoint from machine.
In data bus transmission pattern, generally use toggle switch to arrange from the distribution of the network address of machine, arranged by keyboard and man-machine interface, arranged one by one by computer serial port software or by the state from machine inquiry bus, constantly wait idle condition and host communication, above-mentioned various network address method of salary distribution efficiency is low, error-prone, and it is not easy to the operation of production scene, if arranged has conflict from the machine network address simultaneously, need to re-start network address distribution.
Content of the invention
The technical problem to be solved is to provide a kind of method realizing from the distribution of the machine network address based on NFC communication, this method overcomes the defect from the distribution of the machine network address for the tradition, can fast, easy realize from the distribution of the machine network address, improve from machine network address allocative efficiency, it is ensured that main frame and the network communication from machine.
For solving above-mentioned technical problem, the present invention realizes comprising the steps: from the method for machine network address distribution based on NFC communication
Step one, being arranged side by side and be smaller than 10CM by some network drives from machine, under original state, all NFC communication modes from machine network drive are set to reception pattern;
Step 2, by main frame to First from machine send order, First starts decoding after machine receives Handshake Protocol, when confirm be main frame be sent to this from the Handshake Protocol of machine when, the protocol address receiving is entered as this from the network address of machine from the network drive of machine by First;
Step 3, First is set to sending mode from the NFC communication mode of machine network drive, and this is sent to after the network address of machine adds one neighbouring from machine by NFC communication mode, it is sent completely rear First and change back reception pattern from the NFC communication mode of machine network drive;
Step 4, neighbouring receive first from machine by network drive behind the network address that machine is issued, make decoding response, and check the network address whether big than the network address of oneself receiving, do not respond in this way;As otherwise the network address receiving being set to the network address of oneself;
Step 5, the network address is set from machine, the NFC communication mode of network drive is set to sending mode, and this is sent to after the network address of machine adds one neighbouring from machine by NFC communication mode, reception pattern should be changeed back from the NFC communication mode of machine network drive after being sent completely, make decoding response adjacent to receiving this from machine by network drive behind the network address that machine is issued, and check the network address whether big than the network address of oneself receiving, do not respond in this way;As otherwise the network address receiving being set to the network address of oneself;
Step 6, repetition step 5, until all network address from machine network drive are assigned.
Further, when adjacent to after from the machine transmission network address, judge not receive decoding response by timing, it is then automatically upgraded to the main frame of sub-network, and will former master network add to subnet by the follow-up of sequence of addresses connection from machine, in sub-network, repetition step 2 is to step 6, until the network address from machine network drive of all-ones subnet network is assigned.
Owing to the present invention realizes have employed technique scheme from the method for machine network address distribution based on NFC communication, first some network drives from machine are arranged side by side and are smaller than 10CM by i.e. this method, and under original state, all NFC communication modes from machine network drive are set to reception pattern;Being sent order to First from machine by main frame, the protocol address receiving is entered as this from the network address of machine from the network drive of machine by First;This is sent to neighbouring from machine from machine after the network address of machine adds one by First;Adjacent to checking the network address whether big than the network address of oneself receiving from machine, do not respond in this way;It as otherwise the network address receiving being set to the network address of oneself, and is repeated in, until all network address from machine network drive are assigned.This method overcomes the defect from the distribution of the machine network address for the tradition, can fast, easy realization from the distribution of the machine network address, improve from machine network address allocative efficiency, it is ensured that main frame and the network communication from machine.
Brief description
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings:
Fig. 1 is that the present invention realizes the FB(flow block) of the method distributed from the machine network address based on NFC communication.
Detailed description of the invention
Embodiment is as it is shown in figure 1, the present invention realizes comprising the steps: from the method for machine network address distribution based on NFC communication
Step one, being arranged side by side and be smaller than 10CM by some network drives from machine, under original state, all NFC communication modes from machine network drive are set to reception pattern;
Step 2, by main frame to First from machine send order, First starts decoding after machine receives Handshake Protocol, when confirm be main frame be sent to this from the Handshake Protocol of machine when, the protocol address receiving is entered as this from the network address of machine from the network drive of machine by First;
Step 3, First is set to sending mode from the NFC communication mode of machine network drive, and this is sent to after the network address of machine adds one neighbouring from machine by NFC communication mode, it is sent completely rear First and change back reception pattern from the NFC communication mode of machine network drive;
Step 4, neighbouring receive first from machine by network drive behind the network address that machine is issued, make decoding response, and check the network address whether big than the network address of oneself receiving, do not respond in this way;As otherwise the network address receiving being set to the network address of oneself;
Step 5, the network address is set from machine, the NFC communication mode of network drive is set to sending mode, and this is sent to after the network address of machine adds one neighbouring from machine by NFC communication mode, reception pattern should be changeed back from the NFC communication mode of machine network drive after being sent completely, make decoding response adjacent to receiving this from machine by network drive behind the network address that machine is issued, and check the network address whether big than the network address of oneself receiving, do not respond in this way;As otherwise the network address receiving being set to the network address of oneself;
Step 6, repetition step 5, until all network address from machine network drive are assigned.
Preferably, when adjacent to after from the machine transmission network address, judge not receive decoding response by timing, it is then automatically upgraded to the main frame of sub-network, and will former master network add to subnet by the follow-up of sequence of addresses connection from machine, in sub-network, repetition step 2 is to step 6, until the network address from machine network drive of all-ones subnet network is assigned.
This method utilizes the communication characteristic of NFC, discharge all in network side by side with 10CM spacing from the network drive of machine, make other network drives that a certain network drive can automatically around identification, and automatically connected for respectively arranging network from the network drive of machine by algorithm, and the network drive being newly added can be made to automatically obtain the network address, without very important person for arranging, intelligence completely.
The NFC communication of original state all-network driver is arranged to reception pattern, can only receive information and can not send information.Now main frame sends an address to First from machine, First performs the distribution of automatic network address after machine completes decoding and confirms the network address that main frame sends, and the network address of oneself is entered as the network address receiving, after NFC is set to transmission state, this being sent to after the network address of machine adds one neighbouring network drive, NFC communication after transmission is set to reception pattern again.
If the address that network drive around receives is not responding to greatly first than the network address of oneself, if not then the network address of oneself being entered as the address that receives, and the action before repeating, until all network address from machine network drive are assigned in network.
And when certain from machine network drive nonreply fault, whole network can be automatically separated into sub-network, do not affect the work of network other network drives interior;When addition one new network drive, sub-network merges into a network again and the network drive for being newly added enrolls the network address.
This method compares traditional bus communication form (CAN, RS485 bus, ethernet bus), NFC communication short range transmission speed is fast, and bus need not repair bus after being broken, as long as main frame accesses each sub-network and just can continue to control whole network, achieve network drive automatically identify, the function of automatic network-building, eliminate the debugging link of complexity in production scene, save substantial amounts of time and human resources, improve the operating efficiency of networking.
Claims (2)
1. the method realizing distributing from the machine network address based on NFC communication, it is characterised in that this method comprises the steps:
Step one, being arranged side by side and be smaller than 10CM by some network drives from machine, under original state, all NFC communication modes from machine network drive are set to reception pattern;
Step 2, by main frame to First from machine send order, First starts decoding after machine receives Handshake Protocol, when confirm be main frame be sent to this from the Handshake Protocol of machine when, the protocol address receiving is entered as this from the network address of machine from the network drive of machine by First;
Step 3, First is set to sending mode from the NFC communication mode of machine network drive, and this is sent to after the network address of machine adds one neighbouring from machine by NFC communication mode, it is sent completely rear First and change back reception pattern from the NFC communication mode of machine network drive;
Step 4, neighbouring receive first from machine by network drive behind the network address that machine is issued, make decoding response, and check the network address whether big than the network address of oneself receiving, do not respond in this way;As otherwise the network address receiving being set to the network address of oneself;
Step 5, the network address is set from machine, the NFC communication mode of network drive is set to sending mode, and this is sent to after the network address of machine adds one neighbouring from machine by NFC communication mode, reception pattern should be changeed back from the NFC communication mode of machine network drive after being sent completely, make decoding response adjacent to receiving this from machine by network drive behind the network address that machine is issued, and check the network address whether big than the network address of oneself receiving, do not respond in this way;As otherwise the network address receiving being set to the network address of oneself;
Step 6, repetition step 5, until all network address from machine network drive are assigned.
2. the method realizing based on NFC communication from the distribution of the machine network address according to claim 1, it is characterized in that: when adjacent to after from the machine transmission network address, judge not receive decoding response by timing, it is then automatically upgraded to the main frame of sub-network, and will former master network add to subnet by the follow-up of sequence of addresses connection from machine, in sub-network, repetition step 2 is to step 6, until the network address from machine network drive of all-ones subnet network is assigned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510095291.1A CN105991788A (en) | 2015-03-04 | 2015-03-04 | Method for realizing slave network address assignment based on NFC communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510095291.1A CN105991788A (en) | 2015-03-04 | 2015-03-04 | Method for realizing slave network address assignment based on NFC communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105991788A true CN105991788A (en) | 2016-10-05 |
Family
ID=57039067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510095291.1A Pending CN105991788A (en) | 2015-03-04 | 2015-03-04 | Method for realizing slave network address assignment based on NFC communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105991788A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231455A (en) * | 2017-07-28 | 2017-10-03 | 北京硕人时代科技股份有限公司 | A kind of method and device for distributing mailing address |
CN107505576A (en) * | 2017-08-24 | 2017-12-22 | 阿尔特汽车技术股份有限公司 | Module automatic recognition system and method in distributed system |
CN113572675A (en) * | 2021-06-30 | 2021-10-29 | 摩拜(北京)信息技术有限公司 | Communication system for charging and replacing battery cabinet and charging and replacing battery cabinet |
CN116684389A (en) * | 2023-08-02 | 2023-09-01 | 苏州路之遥科技股份有限公司 | Address automatic allocation method and host, slave and communication equipment with same |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080057990A1 (en) * | 2006-08-31 | 2008-03-06 | Fuccello James R | System and method for establishing a wireless connection between wireless devices |
CN101218789A (en) * | 2005-07-04 | 2008-07-09 | Vkr控股公司 | System comprising at least a master unit and a plurality of slave units |
CN102572010A (en) * | 2010-12-29 | 2012-07-11 | 诺基亚公司 | Network established through short distance |
CN102868780A (en) * | 2012-09-07 | 2013-01-09 | 深圳睿立方智能科技有限公司 | RS-485 slave computer addressing network system and addressing method thereof |
CN104079677A (en) * | 2013-03-29 | 2014-10-01 | 上海开通数控有限公司 | Automatic allocation method of RS485 communication port address |
-
2015
- 2015-03-04 CN CN201510095291.1A patent/CN105991788A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101218789A (en) * | 2005-07-04 | 2008-07-09 | Vkr控股公司 | System comprising at least a master unit and a plurality of slave units |
US20080057990A1 (en) * | 2006-08-31 | 2008-03-06 | Fuccello James R | System and method for establishing a wireless connection between wireless devices |
CN102572010A (en) * | 2010-12-29 | 2012-07-11 | 诺基亚公司 | Network established through short distance |
CN102868780A (en) * | 2012-09-07 | 2013-01-09 | 深圳睿立方智能科技有限公司 | RS-485 slave computer addressing network system and addressing method thereof |
CN104079677A (en) * | 2013-03-29 | 2014-10-01 | 上海开通数控有限公司 | Automatic allocation method of RS485 communication port address |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231455A (en) * | 2017-07-28 | 2017-10-03 | 北京硕人时代科技股份有限公司 | A kind of method and device for distributing mailing address |
CN107505576A (en) * | 2017-08-24 | 2017-12-22 | 阿尔特汽车技术股份有限公司 | Module automatic recognition system and method in distributed system |
CN113572675A (en) * | 2021-06-30 | 2021-10-29 | 摩拜(北京)信息技术有限公司 | Communication system for charging and replacing battery cabinet and charging and replacing battery cabinet |
CN116684389A (en) * | 2023-08-02 | 2023-09-01 | 苏州路之遥科技股份有限公司 | Address automatic allocation method and host, slave and communication equipment with same |
CN116684389B (en) * | 2023-08-02 | 2023-10-31 | 苏州路之遥科技股份有限公司 | Address automatic allocation method and host, slave and communication equipment with same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105260337B (en) | A kind of automatic addressing method and system of single-chip microcomputer | |
WO2019196462A1 (en) | Air conditioning unit, operating method and device for air conditioning unit | |
CN104378729B (en) | Mobile communications network service implementation method and mobile terminal system | |
CN104102603B (en) | Universal serial bus networks interface controller and its operation mode switching method | |
CN105392181B (en) | A kind of networking method of smart machine, apparatus and system | |
CN110072219A (en) | For wirelessly close to electronic equipment, method and the computer-readable medium of pairing | |
CN105027592B (en) | The system and method found for concurrent equipment | |
CN104901858A (en) | System communication method based on CAN bus | |
CN102322672A (en) | Method for controlling multiple air-conditioned indoor units by using single wire control device | |
CN104079677A (en) | Automatic allocation method of RS485 communication port address | |
CN105022276A (en) | Smart home system and data interaction method thereof | |
CN105991788A (en) | Method for realizing slave network address assignment based on NFC communication | |
CN111083654B (en) | Method for realizing control of wireless passive switch, wireless passive switch and proxy node | |
CN105392185B (en) | A kind of networking method of smart machine, apparatus and system | |
CN106982222A (en) | The multi-protocol data cut-in method and device that can configure under a kind of industrial 4.0 environment | |
CN111245714A (en) | Access method and device of home gateway module, storage medium and electronic device | |
CN104216761A (en) | Method for using shared device in device capable of operating two operation systems | |
CN104811357A (en) | Internet-of-things system | |
CN105389278A (en) | CAN bus based serial communication method for master and slave machines | |
CN103716092A (en) | Networking system and communication method for bidirectional optical fiber communication in bus network | |
CN105357664A (en) | Wireless control system and data communication method thereof | |
CN208386576U (en) | A kind of industrial network exchange serial server with simple switched management function | |
CN105577717A (en) | Control method and system compatible with connection of multiple different electrical appliances | |
CN104407539A (en) | Master-slave module structured intelligent electric device address coding method | |
CN105101059A (en) | Method and device for configuring application terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161005 |
|
WD01 | Invention patent application deemed withdrawn after publication |