CN104821925B - A kind of data interactive method, system and equipment - Google Patents

A kind of data interactive method, system and equipment Download PDF

Info

Publication number
CN104821925B
CN104821925B CN201510208184.5A CN201510208184A CN104821925B CN 104821925 B CN104821925 B CN 104821925B CN 201510208184 A CN201510208184 A CN 201510208184A CN 104821925 B CN104821925 B CN 104821925B
Authority
CN
China
Prior art keywords
zigbee
data
gateway device
mac address
data packets
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.)
Active
Application number
CN201510208184.5A
Other languages
Chinese (zh)
Other versions
CN104821925A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201510208184.5A priority Critical patent/CN104821925B/en
Publication of CN104821925A publication Critical patent/CN104821925A/en
Application granted granted Critical
Publication of CN104821925B publication Critical patent/CN104821925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Abstract

An embodiment of the present invention provides a kind of data interactive method, system and equipment, receiver management terminal is sent MAC Address request instruction and is parsed;The data information that parsing obtains is packaged into Zigbee data packets, and the first network equipment connected to current data is sent wirelessly;The Zigbee data packets that the first network equipment returns are received, are sent to management end after carrying out parsing and ethernet data frame encapsulation, the Zigbee data packets include the MAC Address of the first network equipment;When the MAC Address for the first network equipment that the management end is shown is with when the MAC Address of Internet equipment is consistent, in management end and wait for carrying out data interaction between Internet equipment.Data interactive method, system and the network equipment provided in an embodiment of the present invention save interconnection cost, and equipment interconnection can be realized by simply instructing, realization is convenient and efficient, easy to operate without additionally wiring.

Description

A kind of data interactive method, system and equipment
Technical field
The present invention relates to a kind of network equipment field more particularly to data interactive method, system and equipment.
Background technology
The network equipment includes multiple types to external port, by taking interchanger as an example, data center switchboard it is external Port includes the ports MGMT, the ports Console, USB port, ethernet port etc., and the effect of each port is as follows:
The ports MGMT:Out-of-band ethernet mouth is connected using RJ45 connectors by common cable and computer Ethernet interface It connects, is downloaded into line program, user also can carry out remote management and maintenance by the port to interchanger.
The ports Console:Communication serial port carries out system using RS-232 interface level for connecting the serial ports of computer The work such as debugging, configuration, maintenance, management, host software program load.
USB port:Universal Serial interface (Universal Serial Bus), the interface can connect USB storages Device is used to store daily record, host version, alarm and other diagnostic messages, conveniently swap machine software online upgrading and The preservation of log information.
Ethernet port:As the service port of interchanger, it to be used for the data exchange of Ethernet.
It is to the data interactive mode of the network equipment at present:In the case where network equipment power supply is connected, computer room administrator Data interaction remotely is carried out with any network equipment in computer room using PC, interchanger can such as be configured, check interchanger system System log information etc..Most common two kinds of realization methods are at present:1. serial ports realization method:Usual router can be supported to be inserted into 2 piece of 8 asynchronous serial port module, i.e. router can be established by 2*8=16 serial ports and 16 interchangers and be connected, with specific reference to Fig. 1, On the long-range Telnet to router of PC, the data interaction with 16 switch devices under this router is realized;Telnet is The standard agreement and major way of Internet telnet services provide completion distance host work on local computer to the user The ability of work, and under normal conditions, the interchanger quantity of data center is up to up to a hundred, if realizing and the up to a hundred interchangers Data interaction then needs more router assists to realize, interconnection cost is too high, and the interchanger quantity of usually data center can Reach up to a hundred, and passes through serial communication, only 10 meters of the supported reliable communication distance of serial ports between router and interchanger Left and right, communication distance is shorter, cannot be satisfied the demand of big computer room;2. the ports MGMT realization method:With specific reference to Fig. 2, usually connect It includes 48 ethernet ports to enter interchanger, and using 48 ports MGMT, a port connects PC, remaining 47 port connection The ports MGMT of 47 data center switchboards, it is remote by PC when needing to exchange data with 47 data center switchboards On journey Telnet to access switch, while this 47 exchange generator terminal and carry out corresponding configuration, could realize PC and access switch Under 47 interchangers data interaction;But this kind of mode needs to configure every interchanger being managed, operation is multiple It is miscellaneous, and when the network equipment is moved to other local area network, it is also necessary to it reconfigures;From the foregoing, it will be observed that the interchanger of data center Quantity is up to up to a hundred, although this kind of mode access switch can be more than the first with the interchanger quantity of data interaction for 47 Mode, if but realize with the data interactions of the up to a hundred interchangers, interconnection cost is not still low, and access switch with it is every A cable will be disposed between platform data center switchboard, for up to a hundred data center switchboards, then need to dispose Up to a hundred cables further increase cost of implementation, and operate complex.
Invention content
The embodiment provides a kind of data interactive method, system and equipment, can conveniently and efficiently realize net The data interaction of network equipment, easy to operate, cost is relatively low.
The present invention provides following schemes:
A kind of data interactive method, including:
Receiver management terminal is sent MAC Address request instruction and is parsed;
The data information that parsing obtains is packaged into Zigbee data packets, and is sent wirelessly to current data and connects First network equipment;
The Zigbee data packets that the first network equipment returns are received, parsed and are sent out after ethernet data frame encapsulation It send to management end, the Zigbee data packets include the MAC Address of the first network equipment;
When the MAC Address for the first network equipment that the management end is shown is consistent with the MAC Address of Internet equipment is waited for When, in management end and wait for carrying out data interaction between Internet equipment.
A kind of data interactive method, including:
The Zigbee data packets that gateway device is sent are received, the Zigbee data packets are that gateway device parses management end hair The MAC Address request instruction gone out is packaged generation;
According to the Zigbee data packets, itself CPU is notified to read the MAC Address of itself;
The MAC Address of itself that the CPU is read is packaged into Zigbee data packets, and is sent wirelessly to gateway Equipment in management end to be shown;
When the MAC Address that the management end is shown is with when the MAC Address of Internet equipment is consistent, pass through gateway device Data interaction is carried out with management end.
A kind of gateway device, the gateway device include:Ethernet control chip, data processing module, Zigbee transmitting-receivings Module;Wherein,
The ethernet control chip, the MAC Address request instruction sent for receiver management terminal are simultaneously parsed;Also use It is sent to management end after the Zigbee data parsed to the data processing module carry out ethernet data frame encapsulation;
The data processing module, the data information for parsing the ethernet control chip are packaged into Zigbee data packets;It is additionally operable to parse the Zigbee data packets that the Zigbee transceiver modules receive;
The Zigbee transceiver modules, the Zigbee data packets for the data processing module to be packaged into are with wireless parties Formula is sent to the first network equipment of current data connection;It is additionally operable to receive the Zigbee data that the first network equipment returns Packet, the Zigbee data packets include the MAC Address of the first network equipment.
A kind of network equipment, including CPU, the network equipment further include:Zigbee transceiver modules;Wherein,
The Zigbee transceiver modules, the Zigbee data packets sent for receiving gateway device, and pass through universal input It exports CPU described in (GPIO) interface notification and reads data, the Zigbee data packets are that gateway device parses what management end was sent out MAC Address request instruction is packaged generation;It is additionally operable to the MAC Address of itself that the CPU is read being packaged into Zigbee data Packet, and be sent wirelessly to gateway device to be shown in management end, when the MAC Address that the management end is shown with wait for When the MAC Address of Internet equipment is consistent, data interaction is carried out by gateway device and management end;
The CPU, for passing through serial peripheral interface (SPI) and the Zigbee transceiver modules into row data communication.
A kind of data interaction system, the system include management end, gateway device as described above and net as described above Network equipment;Wherein,
The management end is connected by the ethernet control chip of network interface and gateway device;
The Zigbee transceiver modules of the gateway device are connect with the Zigbee transceiver modules of the network equipment.
The data interaction provided in an embodiment of the present invention it can be seen from the technical solution that embodiments of the invention described above provide Method, system and the network equipment, gateway device send MAC Address request instruction by Zigbee data, obtain current data and connect The MAC Address of the network equipment connect, when the MAC Address of acquisition is to illustrate current data when the MAC Address of Internet equipment The network equipment of connection is the network equipment to be interacted, and then passes through the communication of Zigbee data and carry out data interaction, a net It closes equipment and the data interaction with more than 200 network equipments may be implemented, and without additional wiring, save interconnection cost, and logical It crosses simple instruction and equipment interconnection can be realized, realization is convenient and efficient, easy to operate.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without having to pay creative labor, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the block schematic illustration of existing network apparatus management system realization method one;
Fig. 2 is the block schematic illustration of existing network apparatus management system realization method two;
Fig. 3 is the implementation flow chart for the network device management method that the embodiment of the present invention one provides;
Fig. 4 is the implementation flow chart of network device management method provided by Embodiment 2 of the present invention;
Fig. 5 is the structural schematic diagram of gateway device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the network equipment provided in an embodiment of the present invention;
Fig. 7 is the block schematic illustration of network apparatus management system provided in an embodiment of the present invention;
Fig. 8 is the implementation flow chart for the network device management method that the embodiment of the present invention three provides.
Specific implementation mode
For ease of the understanding to the embodiment of the present invention, done further by taking several specific embodiments as an example below in conjunction with attached drawing Explanation, and each embodiment does not constitute the restriction to the embodiment of the present invention.
Zigbee is the low-power consumption LAN protocol based on IEEE802.15.4 standards.It is provided according to international standard, ZigBee technology is the wireless communication technique of a kind of short distance, low-power consumption.Its main feature is that short distance, low complex degree, self-organizing, low Power consumption, high data rate.It is mainly suitable for, for automatically controlling and remote control field, various equipment being embedded in, be a kind of low Cost, the near radio networking mechanics of communication of low-power consumption.
Fig. 3 is the implementation flow chart for the network device management method that the embodiment of the present invention one provides, as shown in figure 3, this reality The executive agent for applying example one is gateway device, and first network equipment is to access the gateway device and currently kept with the gateway device The network equipment of data connection, the present embodiment one include the following steps:
Step 301, receiver management terminal is sent MAC Address request instruction and is parsed;
Specifically, the MAC Address request instruction that gateway device receiver management terminal is sent, the MAC Address request instruction can be with The show mac instructions inputted by management end for user;
Step 302, the data information that parsing obtains is packaged into Zigbee data packets, and be sent wirelessly to current The first network equipment of data connection;
Specifically, in this step, the useful data that parsing obtains is packaged into Zigbee data packets by gateway device.
Step 303, the Zigbee data packets that the first network equipment returns are received, simultaneously ethernet data frame parse Management end is sent to after encapsulation, the Zigbee data packets include the MAC Address of the first network equipment;
Gateway device receives the Zigbee data packets that the first network equipment returns, and parsing obtains the first network equipment MAC Address after carry out ethernet data frame encapsulation, packaged ethernet data frame is sent to management end.
Step 304, when the MAC Address for the first network equipment that the management end is shown and the MAC for waiting for Internet equipment When address is consistent, in management end and wait for carrying out data interaction between Internet equipment.
Management end shows the MAC Address of the first network equipment in the ethernet data frame received, as the MAC Address is identical as the MAC Address of Internet equipment is waited for, it is meant that first network equipment is the network equipment to be interacted, then net It closes equipment in management end and to wait for carrying out data forwarding between Internet equipment, wherein wait for that Internet equipment is user's needs The network equipment of inquiry.
Preferably, before step 301, the method further includes:Gateway device power-up initializing carries out ad hoc network, group After netting successfully when receiving the addition network application that the network equipment is sent, network connection is established with the network equipment, and obtain The MAC Address with the network equipment for itself establishing network connection is taken, the MAC Address got can be also stored in address table, this In, the process of gateway device progress ad hoc network can refer to the automatic network-building process of Zigbee protocol, repeat no more, according to Zigbee Agreement, a coordinator unit can at most manage 254 terminal devices, i.e. gateway device can access 254 network equipments, It should be appreciated that gateway device accesses 254 network equipments, refer to the net that 254 network equipments are added to gateway device establishment In network, but management end is typically to carry out data interaction with the network equipment of accessing gateway equipment one to one, i.e. management end passes through After gateway device and a network equipment establish data connection, it is defaulted as unicast fashion and carries out data interaction, so above-mentioned first The network equipment is the network equipment for accessing the gateway device and currently carrying out data interaction by the gateway device and management end, Message is sent to first network equipment by gateway device by mode of unicast.
Further, which further includes following steps:As the MAC for the first network equipment that the management end is shown Address and the link order that when MAC Address of Internet equipment is inconsistent, receiver management terminal is sent simultaneously are parsed, The link order includes waiting for the MAC Address of Internet equipment, and specifically, which can be that user passes through management end The Connect to*** of input, wherein * * * are the MAC Address for waiting for Internet equipment;
The data information that parsing obtains is packaged into Zigbee data packets, and is sent wirelessly to itself and establishes net The network equipment of network connection, the Zigbee data packets include to wait for the MAC Address of Internet equipment;
According to the MAC Address for waiting for Internet equipment that the Zigbee data packets include, built with Internet equipment is waited for Vertical data connection is to carry out data interaction.
Specifically, described that the obtained data information of parsing is packaged into Zigbee data packets, and be sent wirelessly to The network equipment for itself establishing network connection includes:
When the obtained data information of parsing is broadcasting packet, by the Zigbee data packets wirelessly broadcast extremely with The all-network equipment of network connection itself is established, the Zigbee data packets include to wait for the MAC Address of Internet equipment;Example Such as, it is the instruction for needing broadcast transmission that can preset all " Connect to*** ", when management end receives such instruction When, it is set as broadcasting packet and informs that gateway device is sent in the form of broadcasting;
When the data information that parsing obtains includes target MAC (Media Access Control) address and non-broadcasting message, according to the MAC of itself storage Location table and the target MAC (Media Access Control) address, by the Zigbee data packets, wirelessly unicast is sent to the target MAC (Media Access Control) address correspondence The network equipment, for example, when management end receive " Connect to*** " instruction when, extract target MAC (Media Access Control) address information therein And inform gateway device, which is sent to the mesh by the mac address table that gateway device is stored according to itself in the form of unicast The corresponding network equipment of MAC Address;
Specifically, gateway device carries out data interaction and includes with Internet equipment is waited for:Gateway device receiver management terminal is sent out Come data requesting instructions and parsed;
The data information that parsing obtains is packaged into Zigbee data packets, and is sent wirelessly to described and waits for Interactive Network Network equipment;
The Zigbee data packets that Internet equipment returns are waited for described in reception, and are sent after carrying out ethernet data frame encapsulation To management end.
It should be appreciated that in the embodiment of the present invention, when management end needs to carry out data interaction with a certain network equipment, also may be used The link order directly inputted, specifically, the link order can be Connect to***, and wherein * * * are to wait for that the Internet is set Standby MAC Address;The link order that gateway device receiver management terminal is sent simultaneously parses, and is packaged into the progress of Zigbee data packets It sends to establish data interaction, the process after subsequent process receives link order with above-mentioned gateway device is identical, repeats no more.
Fig. 4 is the implementation flow chart of network device management method provided by Embodiment 2 of the present invention, as shown in figure 4, this reality The executive agent for applying example two is the network equipment, and the present embodiment two includes the following steps:
Step 401, the Zigbee data packets that gateway device is sent are received, the Zigbee data packets parse for gateway device The MAC Address request instruction that management end is sent out is packaged generation;
Specifically, the network equipment receives the Zigbee data packets that gateway device is sent, which includes user The show mac instructions inputted by management end.
Step 402, according to the Zigbee data packets, itself CPU is notified to read the MAC Address of itself;
Specifically, when parsing the Zigbee data packets comprising show mac instructions, the CPU of itself is notified to read itself MAC Address.
Step 403, the MAC Address of itself that the CPU is read is packaged into Zigbee data packets, and wirelessly sent out It send to gateway device to be shown in management end;
Step 404, when the MAC Address that the management end is shown is with when the MAC Address of Internet equipment is consistent, pass through The gateway device carries out data interaction with management end.
Preferably, before step 401, which further includes:The network equipment, which is sent, is added network application to gateway Equipment establishes network connection with the gateway device, and the MAC Address of itself is sent to the gateway device, with the net The network equipment that pass equipment establishes network connection in a dormant state, works as reception when not receiving the instruction for being sent to itself To when the instruction for being sent to itself, then data processing is carried out with reference to instruction.
Further, which can also include the following steps:
When the MAC Address that the management end is shown is with when the MAC Address of Internet equipment is inconsistent, the network equipment connects The Zigbee data packets that gateway device is sent wirelessly are received, data are established according to the Zigbee data packets and gateway device Connection.
Specifically, the network equipment receives the Zigbee data packets that gateway device is sent wirelessly, according to described Zigbee data packets establish data connection with gateway device:
After receiving the Zigbee data packets that gateway device is sent with mode of unicast, establishes data with the gateway device and connect It connects to carry out data interaction;Alternatively,
When receiving the Zigbee data packets that gateway device is transmitted wirelessly with broadcast mode, the Zigbee data packets are judged Including target MAC (Media Access Control) address it is whether consistent with the MAC Address of itself, wherein the target MAC (Media Access Control) address be wait for Internet equipment MAC Address;
If consistent, data connection is established to carry out data interaction with the gateway device;If inconsistent, to receiving Zigbee data packets without processing.
Specifically, gateway device carries out data interaction and includes with Internet equipment is waited for:Receive what gateway device was sent Zigbee data packets, the Zigbee data packets are the data requesting instructions packing generation that gateway device parses that management end is sent out 's;
According to the Zigbee data packets, itself CPU is notified to read corresponding data;
The CPU corresponding datas read are packaged into Zigbee data packets, and are sent wirelessly to gateway device.
Fig. 5 is the structural schematic diagram of gateway device provided in an embodiment of the present invention, as shown in figure 5, the gateway device packet It includes:Ethernet control chip 51, data processing module 52, Zigbee transceiver modules 53;Wherein,
The ethernet control chip 51, the MAC Address request instruction sent for receiver management terminal are simultaneously parsed;Also Zigbee data for being parsed to the data processing module 52 are sent to management end after carrying out ethernet data frame encapsulation;
The data processing module 52, the data information for parsing the ethernet control chip are packaged into Zigbee data packets;It is additionally operable to parse the Zigbee data packets that the Zigbee transceiver modules 53 receive;
The Zigbee transceiver modules 53, the Zigbee data packets for the data processing module 52 to be packaged into are with nothing Line mode is sent to the first network equipment of current data connection;It is additionally operable to receive the Zigbee that the first network equipment returns Data packet, the Zigbee data packets include the MAC Address of the first network equipment.
Preferably, when the MAC Address of the first network equipment that the management end is shown and the Internet equipment that waits for When MAC Address is inconsistent, the ethernet control chip 51 is additionally operable to the link order that receiver management terminal is sent and is solved Analysis, the link order includes waiting for the MAC Address of Internet equipment;
The data processing module 52 is additionally operable to the data information that the parsing of ethernet control chip 51 obtains being packaged into Zigbee data packets;
The Zigbee data packets are sent wirelessly to gateway device and establish by the Zigbee transceiver modules 53 The network equipment of network connection, the Zigbee data packets include to wait for the MAC Address of Internet equipment, according to the Zigbee What data packet included waits for the MAC Address of Internet equipment, and data connection is established to carry out data friendship with Internet equipment is waited for Mutually.
Preferably, the Zigbee transceiver modules 53, specifically for when the obtained data information of parsing is broadcasting packet, By the Zigbee data packets wirelessly broadcast to the all-network equipment of itself establishing network connection, the Zigbee Data packet includes to wait for the MAC Address of Internet equipment;Alternatively, when the obtained data information of parsing include target MAC (Media Access Control) address and When non-broadcasting message, according to the mac address table of itself storage and the target MAC (Media Access Control) address, by the Zigbee data packets with nothing Line mode unicast is sent to the corresponding network equipment of the target MAC (Media Access Control) address;Wherein, the target MAC (Media Access Control) address is to wait for Interactive Network The MAC Address of network equipment.
Preferably, the ethernet control chip 51 is additionally operable to the data requesting instructions that receiver management terminal is sent and progress Parsing;It is additionally operable to be sent to after carrying out ethernet data frame encapsulation to the Zigbee data that the data processing module 52 parses Management end;
The data processing module 52 is additionally operable to the data information that parsing obtains being packaged into Zigbee data packets;Also use It is parsed in the Zigbee data packets received to the Zigbee transceiver modules 53;
The Zigbee transceiver modules 53 are additionally operable to the Zigbee data packets being sent wirelessly to described and wait handing over The mutual network equipment;It is additionally operable to wait for the Zigbee data packets of Internet equipment return described in receiving.
Preferably, the Zigbee transceiver modules 53, when being additionally operable to receive the addition network application that the network equipment is sent, Network connection is established with the network equipment, obtains the MAC Address with the network equipment for itself establishing network connection.
Wherein, the Zigbee transceiver modules 53 include radio frequency (RF) transceiving chip and printed circuit board (Printed Circuit Board, PCB) antenna, for example, the CC2530 of TI may be used in the RF transceiving chips, the burning coordination in manufacture Device program.
It should be appreciated that gateway device realization principle and process provided in an embodiment of the present invention and above-mentioned implementation shown in Fig. 3 Example one is similar, and details are not described herein.
Fig. 6 is the structural schematic diagram of the network equipment provided in an embodiment of the present invention, as shown in fig. 6, the network equipment packet It includes;CPU 61 further includes:Zigbee transceiver modules 62;Wherein,
The Zigbee transceiver modules 62, the Zigbee data packets sent for receiving gateway device, and by general defeated Enter CPU 61 described in output (General Purpose Input Output, GPIO) interface notification and reads data, it is described Zigbee data packets are the MAC Address request instruction packing generation that gateway device parses that management end is sent out;Being additionally operable to will be described The MAC Address of itself that CPU 61 is read is packaged into Zigbee data packets, and is sent wirelessly to gateway device in pipe Reason end is shown, when the MAC Address that the management end is shown is with when the MAC Address of Internet equipment is consistent, passes through net It closes equipment and carries out data interaction with management end;
The CPU 61, for passing through serial peripheral interface (Serial Peripheral Interface, SPI) and institute Zigbee transceiver modules 62 are stated into row data communication.
Wherein, described when the MAC Address that the management end is shown and when the MAC Address of Internet equipment is inconsistent Zigbee transceiver modules 62 are additionally operable to receive the Zigbee data packets that gateway device is sent wirelessly, according to described Zigbee data packets establish data connection with gateway device.Specifically, the Zigbee transceiver modules, when receiving gateway device After the Zigbee data packets sent with mode of unicast, data connection is established to carry out data interaction with the gateway device;Alternatively, When receiving the Zigbee data packets that gateway device is transmitted wirelessly with broadcast mode, the mesh that the Zigbee data packets include is judged MAC Address it is whether consistent with the MAC Address of itself, wherein the target MAC (Media Access Control) address is the MAC for waiting for Internet equipment Location;If consistent, data connection is established to carry out data interaction with the gateway device.
Further, the Zigbee transceiver modules 62 are additionally operable to receive the Zigbee data packets that gateway device is sent, institute It is the data requesting instructions packing generation that gateway device parses that management end is sent out to state Zigbee data packets;And pass through GPIO interface Itself CPU is notified to read corresponding data;It is additionally operable to the corresponding data that the CPU 61 is read being packaged into Zigbee data packets, and It is sent wirelessly to gateway device.
Further, the Zigbee transceiver modules 62, are additionally operable to send and network application are added to gateway device, and described Gateway device establishes network connection, and the MAC Address of itself is sent to the gateway device.
Preferably, the Zigbee transceiver modules 62 include RF transceiving chips and PCB antenna, for example, the RF receives and dispatches core The CC2530 of TI may be used in piece, the burning terminal device program in manufacture.
It should be appreciated that network equipment realization principle and process provided in an embodiment of the present invention and above-mentioned implementation shown in Fig. 4 Example two is similar, and details are not described herein.
Fig. 7 is the block schematic illustration of network apparatus management system provided in an embodiment of the present invention, as shown in fig. 7, the system System includes management end, gateway device as described above and the network equipment as described above;Wherein, the management end passes through network interface It is connect with the ethernet control chip of gateway device, the management end can pass through the long-range Telnet connections gateway device of network interface Ethernet control chip, management end carry out configuration and program debugging (DEBUG) by serial ports to gateway device;The gateway device Zigbee transceiver modules connect with the Zigbee transceiver modules of the network equipment;According to Zigbee protocol, gateway device is most It can mostly be interconnected with 254 network equipments.It should be appreciated that the embodiment of the present invention in gateway device realization principle and process with it is above-mentioned Embodiment one shown in Fig. 3 is similar, the network equipment realization principle and process in the embodiment of the present invention and above-mentioned reality shown in Fig. 4 Apply that example two is similar, and details are not described herein.
Fig. 8 is the implementation flow chart for the network device management method that the embodiment of the present invention three provides, as shown in figure 8, the party Management end is realized by upper computer software in method, is operated on PC, and current gateway equipment has completed networking, and terminal device is The interchanger of the gateway device is accessed, management end has data connection with the foundation of one of interchanger, here, which is ordered Entitled first interchanger;The present embodiment three is the system that MAC Address is remotely obtained with PC as the interchanger of 0x158d001aa8b2 It is illustrated for daily record, the method includes following step:
Step 801, PC configures gateway device by PC serial ports;
Step 802, the long-range Telnet of upper computer software operated on PC is connected to gateway device;
Step 803, judge whether Telnet successes, if it is not, step 804 is executed, if so, executing step 805;
Step 804, hardware connection and configuration are checked, executes step 803;
Step 805, PC receives user's input show mac and instructs and be sent to gateway device;
Step 806, gateway device receives the show mac that PC is sent and instructs and parsed, and the data that parsing is obtained Information package is sent wirelessly at Zigbee data packets to the first interchanger;
Step 807, the first interchanger receives the Zigbee data packets that gateway device is sent, the show obtained according to parsing Mac instruct, notify itself CPU to read the MAC Address of itself, and be wrapped into Zigbee data packets be sent wirelessly to Gateway device;
Step 808, gateway device receives the Zigbee data packets that the first interchanger returns, and parse simultaneously Ethernet data PC is sent to be shown after frame encapsulation;
Step 809, judge whether the MAC Address of the first interchanger shown on PC is 0x158d001aa8b2, if so, Illustrate that the first interchanger is the interchanger of system log to be obtained, executes step 810, it is no to then follow the steps 814;
Step 810, PC receives show log input by user and instructs and be sent to gateway device;
Step 811, gateway device receives the show log that PC is sent and instructs and parsed, and the data that parsing is obtained Information package is sent wirelessly at Zigbee data packets to the first interchanger;
Step 812, the first interchanger receives the Zigbee data packets that gateway device is sent, the show obtained according to parsing Log is instructed, and notifies itself CPU to read the log information of itself, and be wrapped into Zigbee data packets and be sent wirelessly To gateway device;
Step 813, gateway device receives the Zigbee data packets that the first interchanger returns, and parse simultaneously Ethernet data PC is sent to be shown after frame encapsulation.
Step 814, PC receives Connect to 0x158d001aa8b2 instructions input by user;
Step 815, gateway device receives the Connect to 0x158d001aa8b2 instructions that PC is sent and is parsed, and It the obtained data information of parsing is packaged into Zigbee data packets is wirelessly transmitted to the forms of broadcasting and access the institute of the gateway device There is interchanger;
Step 816, respective switch receives the Zigbee data packets that gateway device is sent, the MAC obtained according to parsing Location is compared with the MAC Address of itself, if it is different, then without any processing, if identical, executes step 817;
Step 817, MAC Address is that the interchanger of 0x158d001aa8b2 and gateway device establish data connection, if success, Step 810 is executed, otherwise, executes step 818;
Specifically, when the interchanger that MAC Address is 0x158d001aa8b2 by the obtained MAC Address of parsing with itself MAC Address relatively after, both determine identical, then postback ACK messages to gateway device, after gateway device receives the ACK messages, PC, PC is notified to show and the exchange data successful connection.
Step 818, hardware connection and configuration are checked, executes step 814.
Data interactive method, system and the network equipment provided in an embodiment of the present invention, gateway device pass through Zigbee data MAC Address request instruction is sent, the MAC Address of the network equipment of current data connection is obtained, when the MAC Address of acquisition is to wait handing over When the MAC Address of the mutual network equipment, illustrate the network equipment that the network equipment of current data connection is to be interacted, and then pass through The communication of Zigbee data carries out data interaction, and the data interaction with more than 200 network equipments may be implemented in a gateway device, And without additionally wiring, interconnection cost is saved, and equipment interconnection can be realized by simply instructing, realization is convenient and efficient, It is easy to operate.
One of ordinary skill in the art will appreciate that:Attached drawing is the schematic diagram of one embodiment, module in attached drawing or Flow is not necessarily implemented necessary to the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can It is realized by the mode of software plus required general hardware platform.Based on this understanding, technical scheme of the present invention essence On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment (can be personal computer, server either network equipment etc.) executes the certain of each embodiment of the present invention or embodiment Method described in part.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit that separating component illustrates may or may not be physically separated, the component shown as unit can be or Person may not be physical unit, you can be located at a place, or may be distributed over multiple network units.It can root According to actual need that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel are without creative efforts, you can to understand and implement.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Any one skilled in the art in the technical scope disclosed by the present invention, the change or replacement that can be readily occurred in, It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims Subject to.

Claims (19)

1. a kind of data interactive method, which is characterized in that including:
Receiver management terminal is sent MAC Address request instruction and is parsed;
The obtained data information of parsing is packaged into Zigbee data packets, and be sent wirelessly to current data connect the One network equipment;
The Zigbee data packets that the first network equipment returns are received, are sent to after carrying out parsing and ethernet data frame encapsulation Management end, the Zigbee data packets include the MAC Address of the first network equipment;
When the MAC Address for the first network equipment that the management end is shown with when the MAC Address of Internet equipment is consistent, It management end and waits for carrying out data interaction between Internet equipment;
When the MAC Address for the first network equipment that the management end is shown waits for that the MAC Address of Internet equipment differs with described When cause, link order that receiver management terminal is sent simultaneously is parsed, and the link order includes waiting for the MAC of Internet equipment Location;
The obtained data information of parsing is packaged into Zigbee data packets, and be sent wirelessly to itself establish network and connect The network equipment connect, the Zigbee data packets include to wait for the MAC Address of Internet equipment;
According to the MAC Address for waiting for Internet equipment that the Zigbee data packets include, number is established with Internet equipment is waited for According to connection to carry out data interaction.
2. according to the method described in claim 1, it is characterized in that, the data information that parsing is obtained is packaged into Zigbee Data packet, and be sent wirelessly to the network equipment for itself establishing network connection and include:
When the obtained data information of parsing is broadcasting packet, by the Zigbee data packets wirelessly broadcast extremely and itself The all-network equipment of network connection is established, the Zigbee data packets include to wait for the MAC Address of Internet equipment;Alternatively,
When the data information that parsing obtains includes target MAC (Media Access Control) address and non-broadcasting message, according to the mac address table of itself storage And the target MAC (Media Access Control) address, by the Zigbee data packets, wirelessly to be sent to the target MAC (Media Access Control) address corresponding for unicast The network equipment;Wherein, the target MAC (Media Access Control) address is the MAC Address for waiting for Internet equipment.
3. according to the method described in claim 1, it is characterized in that, progress data interaction includes:
Data requesting instructions that receiver management terminal is sent simultaneously are parsed;
The data information that parsing obtains is packaged into Zigbee data packets, and is sent wirelessly to described and waits for that the Internet is set It is standby;
The Zigbee data packets that Internet equipment returns are waited for described in reception, and are sent to pipe after carrying out ethernet data frame encapsulation Manage end.
4. according to the method described in claim 1, it is characterized in that, receiver management terminal is sent MAC Address request instruction and is carried out Before parsing, the method further includes:
When receiving the addition network application that the network equipment is sent, network connection is established with the network equipment, is obtained and oneself Body establishes the MAC Address of the network equipment of network connection.
5. a kind of data interactive method, which is characterized in that including:
The Zigbee data packets that gateway device is sent are received, the Zigbee data packets are that gateway device parses what management end was sent out MAC Address request instruction is packaged generation;
According to the Zigbee data packets, itself CPU is notified to read the MAC Address of itself;
The MAC Address of itself that the CPU is read is packaged into Zigbee data packets, and is sent wirelessly to gateway device To be shown in management end;
When the MAC Address that the management end is shown with when the MAC Address of Internet equipment is consistent, pass through gateway device with pipe It manages end and carries out data interaction;
When the MAC Address that the management end is shown is with when the MAC Address of Internet equipment is inconsistent, the network equipment receives net The Zigbee data packets that equipment is sent wirelessly are closed, establishing data according to the Zigbee data packets and gateway device connects It connects.
6. according to the method described in claim 5, it is characterized in that, network equipment reception gateway device is wirelessly sent out The Zigbee data packets sent, establishing data connection with gateway device according to the Zigbee data packets includes:
After receiving the Zigbee data packets that gateway device is sent with mode of unicast, with the gateway device establish data connection with Carry out data interaction;Alternatively,
When receiving the Zigbee data packets that gateway device is transmitted wirelessly with broadcast mode, judge that the Zigbee data packets include Target MAC (Media Access Control) address it is whether consistent with the MAC Address of itself, wherein the target MAC (Media Access Control) address is to wait for Internet equipment MAC Address;
If consistent, data connection is established to carry out data interaction with the gateway device.
7. according to the method described in claim 5, it is characterized in that, progress data interaction includes:
The Zigbee data packets that gateway device is sent are received, the Zigbee data packets are that gateway device parses what management end was sent out Data requesting instructions are packaged generation;
According to the Zigbee data packets, itself CPU is notified to read corresponding data;
The CPU corresponding datas read are packaged into Zigbee data packets, and are sent wirelessly to gateway device.
8. according to the method described in claim 5, it is characterized in that, before receiving the Zigbee data packets sent of gateway device, The method further includes:
It sends and network application is added to gateway device, establish network connection with the gateway device, and the MAC Address of itself is sent out It send to the gateway device.
9. a kind of gateway device, which is characterized in that the gateway device includes:Ethernet control chip, data processing module, Zigbee transceiver modules;Wherein,
The ethernet control chip, the MAC Address request instruction sent for receiver management terminal are simultaneously parsed;It is additionally operable to pair The Zigbee data that the data processing module parses are sent to management end after carrying out ethernet data frame encapsulation;
The data processing module, the data information for parsing the ethernet control chip are packaged into Zigbee numbers According to packet;It is additionally operable to parse the Zigbee data packets that the Zigbee transceiver modules receive;
The Zigbee transceiver modules, the Zigbee data packets for the data processing module to be packaged into wirelessly are sent out Send the first network equipment connected to current data;It is additionally operable to receive the Zigbee data packets that the first network equipment returns, The Zigbee data packets include the MAC Address of the first network equipment;When the first network equipment that the management end is shown MAC Address with it is described when the MAC Address of Internet equipment is inconsistent, the ethernet control chip is additionally operable to receive Link order that management end is sent simultaneously is parsed, and the link order includes waiting for the MAC Address of Internet equipment;
The data processing module is additionally operable to the data information that ethernet control chip parses being packaged into Zigbee data Packet;
The Zigbee data packets are sent wirelessly to gateway device and establish network company by the Zigbee transceiver modules The network equipment connect, the Zigbee data packets include to wait for the MAC Address of Internet equipment, according to the Zigbee data packets Including the MAC Address for waiting for Internet equipment, establish data connection with Internet equipment is waited for carry out data interaction.
10. gateway device according to claim 9, which is characterized in that the Zigbee transceiver modules are specifically used for when solution When the data information that analysis obtains is broadcasting packet, the Zigbee data packets are wirelessly broadcasted and extremely establish network with itself The all-network equipment of connection, the Zigbee data packets include to wait for the MAC Address of Internet equipment;Alternatively, when parsing To data information include target MAC (Media Access Control) address and non-broadcasting message when, according to itself storage mac address table and the purpose MAC Address, by the Zigbee data packets, wirelessly unicast is sent to the corresponding network equipment of the target MAC (Media Access Control) address; Wherein, the target MAC (Media Access Control) address is the MAC Address for waiting for Internet equipment.
11. gateway device according to claim 9, which is characterized in that the ethernet control chip is additionally operable to reception pipe It manages the data requesting instructions that end is sent and is parsed;Be additionally operable to the Zigbee data that the data processing module is parsed into It is sent to management end after the encapsulation of row ethernet data frame;
The data processing module is additionally operable to the data information that parsing obtains being packaged into Zigbee data packets;It is additionally operable to institute The Zigbee data packets that Zigbee transceiver modules receive are stated to be parsed;
The Zigbee transceiver modules are additionally operable to the Zigbee data packets being sent wirelessly to described and wait for the Internet Equipment;It is additionally operable to wait for the Zigbee data packets of Internet equipment return described in receiving.
12. gateway device according to claim 9, which is characterized in that the Zigbee transceiver modules are additionally operable to receive When the addition network application that the network equipment is sent, network connection is established with the network equipment, obtain and itself establishes network company The MAC Address of the network equipment connect.
13. gateway device according to claim 9, which is characterized in that the Zigbee transceiver modules include that radio frequency is received Send out chip and printing board PCB antenna.
14. a kind of network equipment, including CPU, which is characterized in that the network equipment further includes:Zigbee transceiver modules;Its In,
The Zigbee transceiver modules, the Zigbee data packets sent for receiving gateway device, and exported by universal input GPIO interface notifies the CPU to read data, and the Zigbee data packets are the MAC Address that gateway device parses that management end is sent out Request instruction is packaged generation;It is additionally operable to the MAC Address of itself that the CPU is read being packaged into Zigbee data packets, and with Wireless mode is sent to gateway device to be shown in management end, when the MAC Address that the management end is shown and waits for Interactive Network When the MAC Address of network equipment is consistent, data interaction is carried out by gateway device and management end;
The CPU, for passing through serial peripheral interface and the Zigbee transceiver modules into row data communication;When the pipe With when the MAC Address of Internet equipment is inconsistent, the Zigbee transceiver modules are additionally operable to the MAC Address that reason end is shown The Zigbee data packets that gateway device is sent wirelessly are received, number is established according to the Zigbee data packets and gateway device According to connection.
15. the network equipment according to claim 14, which is characterized in that the Zigbee transceiver modules, specifically for working as After receiving the Zigbee data packets that gateway device is sent with mode of unicast, data connection is established to carry out with the gateway device Data interaction;Alternatively, when receiving the Zigbee data packets that gateway device is transmitted wirelessly with broadcast mode, the Zigbee is judged Whether the target MAC (Media Access Control) address that data packet includes is consistent with the MAC Address of itself, wherein the target MAC (Media Access Control) address is to wait for Interactive Network The MAC Address of network equipment;If consistent, data connection is established to carry out data interaction with the gateway device.
16. the network equipment according to claim 14, which is characterized in that the Zigbee transceiver modules are additionally operable to receive The Zigbee data packets that gateway device is sent, the Zigbee data packets are the request of data that gateway device parses that management end is sent out Instruction is packaged generation;And itself CPU is notified to read corresponding data by GPIO interface;It is additionally operable to the phase for reading the CPU It answers data to be packaged into Zigbee data packets, and is sent wirelessly to gateway device.
17. the network equipment according to claim 14, which is characterized in that the Zigbee transceiver modules are additionally operable to send Network application is added to gateway device, network connection is established with the gateway device, and the MAC Address of itself is sent to described Gateway device.
18. the network equipment according to claim 14, which is characterized in that the Zigbee transceiver modules include that radio frequency is received Send out chip and printing board PCB antenna.
19. a kind of data interaction system, which is characterized in that the system comprises management end, such as any one of claim 9 to 13 institute The gateway device and such as claim 14 to 18 any one of them network equipment stated;Wherein,
The management end is connected by the ethernet control chip of network interface and gateway device;
The Zigbee transceiver modules of the gateway device are connect with the Zigbee transceiver modules of the network equipment.
CN201510208184.5A 2015-04-28 2015-04-28 A kind of data interactive method, system and equipment Active CN104821925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510208184.5A CN104821925B (en) 2015-04-28 2015-04-28 A kind of data interactive method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510208184.5A CN104821925B (en) 2015-04-28 2015-04-28 A kind of data interactive method, system and equipment

Publications (2)

Publication Number Publication Date
CN104821925A CN104821925A (en) 2015-08-05
CN104821925B true CN104821925B (en) 2018-08-07

Family

ID=53732093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510208184.5A Active CN104821925B (en) 2015-04-28 2015-04-28 A kind of data interactive method, system and equipment

Country Status (1)

Country Link
CN (1) CN104821925B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205022B (en) * 2015-09-25 2018-02-13 瑞斯康达科技发展股份有限公司 A kind of more Console port collocation methods and system
CN105446297A (en) * 2015-12-11 2016-03-30 深圳谷探科技有限公司 Wireless thermal field monitoring system
US10652713B2 (en) 2017-02-22 2020-05-12 Futurewei Technologies, Inc. Method of application data switching between a device in a wireless PAN mesh network and a virtual ethernet interface
US10581673B2 (en) 2017-03-08 2020-03-03 Futurewei Technologies, Inc. Abstracting wireless device to virtual Ethernet interface
CN107104842B (en) * 2017-05-23 2022-11-04 信联安宝(北京)科技有限公司 Integrated wireless management switch with discrete power supplies
CN107018094B (en) * 2017-05-23 2022-10-25 信联安宝(北京)科技有限公司 Wireless management switch with separated power supplies
CN107426008B (en) * 2017-05-23 2022-11-22 信联安宝(北京)科技有限公司 Integrated wireless management switch
CN111698168B (en) * 2020-05-20 2022-06-28 北京吉安金芯信息技术有限公司 Message processing method, device, storage medium and processor
CN112188327B (en) * 2020-09-27 2022-10-14 上海欣诺通信技术股份有限公司 Optical network unit burning method, device, medium and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383746A (en) * 2008-10-15 2009-03-11 杭州华三通信技术有限公司 Access control method and system for wireless network
CN102420880A (en) * 2011-12-15 2012-04-18 福建星网锐捷网络有限公司 Internet protocol (IP) address management method, system and device
US8605731B2 (en) * 2006-06-12 2013-12-10 Hitachi, Ltd. Network system and server
CN103747464A (en) * 2014-01-17 2014-04-23 北京赢销通软件技术有限公司 Mobile terminal motion trail analyzing system
CN104333552A (en) * 2014-11-04 2015-02-04 福建星网锐捷网络有限公司 Authentication determination method and accessing equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8605731B2 (en) * 2006-06-12 2013-12-10 Hitachi, Ltd. Network system and server
CN101383746A (en) * 2008-10-15 2009-03-11 杭州华三通信技术有限公司 Access control method and system for wireless network
CN102420880A (en) * 2011-12-15 2012-04-18 福建星网锐捷网络有限公司 Internet protocol (IP) address management method, system and device
CN103747464A (en) * 2014-01-17 2014-04-23 北京赢销通软件技术有限公司 Mobile terminal motion trail analyzing system
CN104333552A (en) * 2014-11-04 2015-02-04 福建星网锐捷网络有限公司 Authentication determination method and accessing equipment

Also Published As

Publication number Publication date
CN104821925A (en) 2015-08-05

Similar Documents

Publication Publication Date Title
CN104821925B (en) A kind of data interactive method, system and equipment
CN105721318B (en) The method and apparatus of network topology are found in a kind of software defined network SDN
CN102215263B (en) Data transmission and remote control method for self-organizing wireless internet of things (IoT) system
CN106535288A (en) Method for sending and obtaining wifi networking information and corresponding apparatus
CN103957593B (en) wireless network access method, device and system
CN104247349B (en) A kind of communication means, apparatus and system
CN102811335B (en) Set up the method, apparatus and system of video session
CN106254147A (en) A kind of collocation method for Wi Fi network, internet-of-things terminal and control end
CN207766561U (en) A kind of system of control terminal and equipment access network
CN104937896A (en) Method for processing address resolution protocol message, forwarder and controller
CN104519414B (en) A kind of method and system of streaming media
CN209017041U (en) A kind of general purpose terminal platform applied to broadband marine satellite
CN107332857A (en) A kind of network data transmission method, device, system and storage medium
CN106375401A (en) Electric power multi-mode heterogeneous fusion device supporting multi-stream convergence and communication method
WO2015103848A1 (en) Method, system and terminal for realizing network access via wifi
CN107205239A (en) A kind of method and detection device for detecting wireless network connection
CN107820262A (en) Method for parameter configuration, apparatus and system
CN107623752A (en) Network management and device based on link layer
CN106161500A (en) The communication module of a kind of remote wireless control electric equipment and control method
CN108924219A (en) The method, apparatus and system of remote operation terminal
CN106533934A (en) Border gateway applicable to all interconnected manufacturing networks
CN104797004B (en) The method that automatic network-building is realized between master-slave equipment
CN107484227A (en) A kind of more focus control communication means of wifi networkings
CN202261834U (en) Multifunctional wireless router
CN103987017B (en) A kind of method and system for being used to set up service access in a wlan

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee before: Beijing Star-Net Ruijie Networks Co.,Ltd.

CP01 Change in the name or title of a patent holder