CN109802930A - A kind of RS485/RS232 turns ZigBee gateway and its working method - Google Patents

A kind of RS485/RS232 turns ZigBee gateway and its working method Download PDF

Info

Publication number
CN109802930A
CN109802930A CN201711147116.8A CN201711147116A CN109802930A CN 109802930 A CN109802930 A CN 109802930A CN 201711147116 A CN201711147116 A CN 201711147116A CN 109802930 A CN109802930 A CN 109802930A
Authority
CN
China
Prior art keywords
communication module
gateway
zigbee
turns
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711147116.8A
Other languages
Chinese (zh)
Inventor
薛明刚
陆永华
陶园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Smart Technology Co Ltd
Original Assignee
Suzhou Smart Technology 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 Suzhou Smart Technology Co Ltd filed Critical Suzhou Smart Technology Co Ltd
Priority to CN201711147116.8A priority Critical patent/CN109802930A/en
Publication of CN109802930A publication Critical patent/CN109802930A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of RS485/RS232 to turn ZigBee gateway and its working method, it includes RS485 communication module, RS232 communication module, ZigBee communication module and embedded controller that RS485/RS232, which turns ZigBee gateway, the RS485 communication module, RS232 communication module, ZigBee communication module are connected with the embedded controller respectively, the RS485 communication module, RS232 communication module are respectively used to connection RS485 equipment or RS232 equipment, the ZigBee communication module constructs wireless network for connecting neighboring gateway or equipment.And realize two-way communication.Gateway of the invention is practical, and efficiency of transmission is high, stable and reliable for performance, it can be achieved that being quickly converted between serial communication and ZIGBEE wireless communication protocol, and the gateway working method can be widely applied in engineered, so that engineering is arranged net flexibly.

Description

A kind of RS485/RS232 turns ZigBee gateway and its working method
Technical field
The present invention relates to communication network technical field, more particularly to a kind of RS485/RS232 turn ZigBee gateway and its Working method.
Background technique
Conventional serial interface equipment, as RS485/RS232 equipment and interface have been widely used in the daily production of enterprise, but For the transmission of its information and networking due to being limited by wiring, it often will appear route damage, difficult wiring is not easy the problems such as implementing, mesh It is preceding temporary without effective network-building method, though there is the proposition of wireless network construction method, corresponding device and method are had no to solve Certainly problem.
Summary of the invention
It is an object of the present invention to provide a kind of RS485/RS232 to turn ZigBee gateway, the gateway is practical, Efficiency of transmission is high, stable and reliable for performance, it can be achieved that being quickly converted between serial communication and ZigBee wireless communication protocol, can be extensive In engineered, so that engineering is arranged net flexibly.
Particularly, the working method that a kind of RS485/RS232 turns ZigBee gateway is additionally provided, the working method is realized Serial equipment wireless penetration exempts wiring worry, realizes the quickly networking of ZigBee wireless network, improves networking efficiency.
Particularly, the present invention provides a kind of RS485/RS232 to turn ZigBee gateway, and RS485/RS232 turns ZigBee net Closing includes RS485 communication module, RS232 communication module, ZigBee communication module and embedded controller, and the RS485 is logical Letter module, RS232 communication module, ZigBee communication module are connected with the embedded controller respectively, and the RS485 communicates mould Block, RS232 communication module are respectively used to connection RS485 equipment or RS232 equipment, and the ZigBee communication module is for connecting Neighboring gateway or equipment construct wireless network.
For above-mentioned technical proposal, there are also further Optimized Measures by inventor.
Preferably, the gateway is equipped with configuration Serial Port Line, and the configuration Serial Port Line is for configuring ZigBee communication in gateway Parameter.
Preferably, the gateway is externally provided with communication selection switch, and the communication selection switch is logical for switching selection RS485 Believe the work of module or RS232 communication module.
Further, the gateway is externally provided with external antenna, is equipped in gateway and provides work for the embedded controller The power module of voltage.
Further, the external antenna is 5db glue stick antenna
Preferably, the ZigBee communication module uses technical grade zigbee special-purpose radio-frequency processor, and the gateway supports serial ports Saturating transmission mode.
Preferably, the gateway is externally provided with the RS485 interface circuit for connecting RS485 equipment, the RS485 interface electricity Balance driver and differential receiver are equipped in road.
Particularly, the present invention also provides the working method that a kind of RS485/RS232 turns ZigBee gateway, the gateway is adopted Turn ZigBee gateway, the RS485 communication module, RS232 communication module, ZigBee communication mould with the RS485/RS232 Block is transmitted in both directions, and the ZigBee communication module uses 2.4G DSSS spread spectrum, and constructed network uses Star network Network networking.
Compared with prior art, the present invention has the advantages that
RS485/RS232 described in the invention turns ZigBee gateway, by the serial equipment of peripheral hardware, (RS485, RS232 are set It is standby) after access gateway, can be by the RS485 communication module, RS232 communication module, ZigBee communication module being arranged in gateway, it will It is converted between RS485/RS232 agreement and Zigbee protocol, is led to by the embedded controller controls RS485/RS232 in gateway Letter and ZigBee communication, and then the network topology structure of variform is constituted, ZigBee wireless network at light establishment has Wider communication distance realizes serial equipment wireless penetration, and it is worried to remove wiring from.
In addition, turning the network-building method that ZigBee gateway is realized based on RS485/RS232, because being not necessarily to secondary development Networking, therefore it just has extremely strong secondary development characteristic, can be widely used in engineered, so that engineering is arranged net Flexibly.The development time can be greatly saved, product is made to put goods on the market faster, enhanced the competitiveness.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter The above and other objects, advantages and features of the present invention.
Detailed description of the invention
Some specific embodiments of the present invention is described in detail by way of example and not limitation with reference to the accompanying drawings hereinafter. Identical appended drawing reference denotes same or similar part or part in attached drawing.It should be appreciated by those skilled in the art that these What attached drawing was not necessarily drawn to scale.In attached drawing:
Fig. 1 is the frame construction drawing that RS485/RS232 according to an embodiment of the invention turns ZigBee gateway.
Specific embodiment
Embodiment 1:
Present embodiment describes a kind of RS485/RS232 to turn ZigBee gateway, as shown in Figure 1, RS485/RS232 turns ZigBee net Closing includes RS485 communication module, RS232 communication module, ZigBee communication module and embedded controller, and the RS485 is logical Letter module, RS232 communication module, ZigBee communication module are connected with the embedded controller respectively, and the RS485 communicates mould Block, RS232 communication module are respectively used to connection RS485 equipment or RS232 equipment, and the ZigBee communication module is for connecting Neighboring gateway or equipment construct wireless network.
ZigBee is the low-power consumption LAN protocol based on IEEE802.15.4 standard.ZigBee is a kind of short distance, low Rate, low power consumption wireless network technology are mainly used near radio connection.Zigbee protocol is respectively physical layer from top to bottom (PHY), MAC layer (MAC), transport layer (TL), network layer (NWK), application layer (APL) etc..Wherein physical layer and matchmaker Body MAC layer follows the regulation of IEEE 802.15.4 standard.
ZigBee is a kind of highly reliable wireless data sending network, is similar to CDMA and GSM network.Communication distance is from standard 75m supports infinite expanding to several hundred rice, several kilometers.ZigBee is one by can more to 65535 wireless data transmission module groups At a wireless data sending network platform can phase between each ZigBee-network digital transmission module within the scope of whole network Mutual communication.ZigBee-network is mainly that industry spot automation control data are transmitted and established, thus, it must have letter It is single, easy to use, reliable operation, low-cost feature.Each ZigBee-network node not only can be used as monitored object in itself, The data information come can also be transmitted through by the other network node of transfer automatically.In addition to this, each ZigBee-network node (FFD) Can also oneself signal cover in the range of and multiple isolated child node (RFD) nothings for not undertaking network information transfer task Line connection.
In the present embodiment, the ZigBee communication module uses technical grade zigbee special-purpose radio-frequency processor, the gateway Support the saturating transmission mode of serial ports.The gateway is externally provided with the RS485 interface circuit for connecting RS485 equipment, and the RS485 connects Balance driver and differential receiver are equipped in mouth circuit.
It is not difficult to find that the gateway of the present embodiment is used as transmitting and receiving unit using high-power zigbee RF transceiver, Has higher receiving sensitivity, communication distance is up to 10.0Km or more.Serial equipment wireless penetration can be easily realized using it, It is worried to remove wiring from.
Preferably, the gateway is equipped with configuration Serial Port Line, and the configuration Serial Port Line is for configuring ZigBee communication in gateway Parameter.It can be achieved to parameter configurations such as the channel of ZigBee-network, ID, baud rate, node types, so that gateway practicability is more By force.
In addition, selecting in order to carry out the communication of serial equipment according to field working conditions, the gateway is externally provided with communication choosing Switch is selected, the communication selection switch is for switching the work of selection RS485 communication module or RS232 communication module.
Further, the gateway is externally provided with external antenna, is equipped in gateway and provides work for the embedded controller The power module of voltage, the external antenna are 5db glue stick antenna.
To sum up, the comprehensive practical of gateway of the present invention is strong, and efficiency of transmission is high, stable and reliable for performance, has extremely strong secondary Develop characteristic.It can be widely applied in engineered, so that engineering is arranged net flexibly.The development time can be greatly saved, make product It puts goods on the market, enhances the competitiveness faster.
Preferably,
Embodiment 2:
Particularly, the present invention also provides the working method that a kind of RS485/RS232 turns ZigBee gateway, the gateway uses institute The RS485/RS232 stated turns ZigBee gateway, and the RS485 communication module, RS232 communication module, ZigBee communication module are equal For transmitted in both directions, the ZigBee communication module uses 2.4G DSSS spread spectrum, and constructed network uses Star Network group Net.
In specific works, parameter is saved after the completion of carrying out parameter configuration to gateway, is then inserted into formula controller monitoring Whether there are data to transmit in selected RS485 communication module or RS232 communication module, if any then connecing by ZigBee module It receives and forwards, as checked whether ZigBee communication module has data to transmit without if, as ZigBee communication module has data biography Then to be received by selected RS485 communication module or RS232 communication module and be forwarded to corresponding serial equipment.
So, it is seen then that the working method based on this gateway can be realized two-way communication and data transmission, realizes serial ports and sets Standby wireless penetration exempts wiring worry, realizes the quickly networking of ZigBee wireless network, improves networking efficiency, and signal receives spirit Sensitivity is higher.
So far, although those skilled in the art will appreciate that present invention has been shown and described in detail herein multiple shows Example property embodiment still without departing from the spirit and scope of the present invention, still can according to the present disclosure directly Determine or deduce out many other variations or modifications consistent with the principles of the invention.Therefore, the scope of the present invention is understood that and recognizes It is set to and covers all such other variations or modifications.

Claims (8)

1. a kind of RS485/RS232 turns ZigBee gateway, which is characterized in that it includes RS485 that RS485/RS232, which turns ZigBee gateway, Communication module, RS232 communication module, ZigBee communication module and embedded controller, the RS485 communication module, RS232 Communication module, ZigBee communication module are connected with the embedded controller respectively, the RS485 communication module, RS232 communication Module is respectively used to connection RS485 equipment or RS232 equipment, and the ZigBee communication module is for connecting neighboring gateway or setting It is standby, construct wireless network.
2. RS485/RS232 according to claim 1 turns ZigBee gateway, which is characterized in that the gateway is equipped with configuration Serial Port Line, the configuration Serial Port Line is for configuring ZigBee communication parameter in gateway.
3. RS485/RS232 according to claim 1 turns ZigBee gateway, which is characterized in that the gateway is externally provided with logical Letter selection switch, the communication selection switch is for switching the work of selection RS485 communication module or RS232 communication module.
4. RS485/RS232 according to any one of claim 1 to 3 turns ZigBee gateway, which is characterized in that the net It is equipped with external antenna outside the Pass, is equipped in gateway and provides the power module of operating voltage for the embedded controller.
5. RS485/RS232 according to claim 4 turns ZigBee gateway, which is characterized in that the external antenna is 5db Glue stick antenna.
6. RS485/RS232 according to claim 1 turns ZigBee gateway, which is characterized in that the ZigBee communication mould Block uses technical grade zigbee special-purpose radio-frequency processor, and the gateway supports the saturating transmission mode of serial ports.
7. RS485/RS232 according to claim 1 turns ZigBee gateway, which is characterized in that the gateway peripheral hardware is useful Balance driver and differential receiver are equipped in the RS485 interface circuit of connection RS485 equipment, the RS485 interface circuit.
8. the working method that a kind of RS485/RS232 turns ZigBee gateway, which is characterized in that using as appointed in claim 1 to 7 RS485/RS232 described in one turns ZigBee gateway, the RS485 communication module, RS232 communication module, ZigBee communication Module is transmitted in both directions, and the ZigBee communication module uses 2.4G DSSS spread spectrum, and constructed network is using star-like Network organizing.
CN201711147116.8A 2017-11-17 2017-11-17 A kind of RS485/RS232 turns ZigBee gateway and its working method Pending CN109802930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711147116.8A CN109802930A (en) 2017-11-17 2017-11-17 A kind of RS485/RS232 turns ZigBee gateway and its working method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711147116.8A CN109802930A (en) 2017-11-17 2017-11-17 A kind of RS485/RS232 turns ZigBee gateway and its working method

Publications (1)

Publication Number Publication Date
CN109802930A true CN109802930A (en) 2019-05-24

Family

ID=66556009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711147116.8A Pending CN109802930A (en) 2017-11-17 2017-11-17 A kind of RS485/RS232 turns ZigBee gateway and its working method

Country Status (1)

Country Link
CN (1) CN109802930A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117811866A (en) * 2024-01-10 2024-04-02 北京高标物联科技有限公司 Centralized controller and system for integrated equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010035165A2 (en) * 2008-09-26 2010-04-01 Koninklijke Philips Electronics, N.V. System and method for simple pairing of wired and wireless healthcare devices to a gateway
CN102082742A (en) * 2009-11-27 2011-06-01 中国科学院自动化研究所 Intelligent network protocol conversion and communication control system
CN104901877A (en) * 2015-06-17 2015-09-09 燕山大学 Multi-interface self-adaptive wireless heterogeneous network protocol conversion method and communication device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010035165A2 (en) * 2008-09-26 2010-04-01 Koninklijke Philips Electronics, N.V. System and method for simple pairing of wired and wireless healthcare devices to a gateway
CN102082742A (en) * 2009-11-27 2011-06-01 中国科学院自动化研究所 Intelligent network protocol conversion and communication control system
CN104901877A (en) * 2015-06-17 2015-09-09 燕山大学 Multi-interface self-adaptive wireless heterogeneous network protocol conversion method and communication device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117811866A (en) * 2024-01-10 2024-04-02 北京高标物联科技有限公司 Centralized controller and system for integrated equipment

Similar Documents

Publication Publication Date Title
CN103179696B (en) Based on the network system of cognitive radio and network-building method in intelligent grid
Lee et al. Applications of short-range wireless technologies to industrial automation: A ZigBee approach
Rahman et al. Provisioning technical interoperability within ZigBee and BLE in IoT environment
CN102137131A (en) System for realizing access of internet of things
CN106384496A (en) Power consumption information acquisition device and system
CN101834913A (en) Wireless sensor network, mobile terminal and interconnection method and system thereof
CN203219503U (en) Wireless sensor network system
CN104853307A (en) Self-networking method and system based on bluetooth technology
CN106162945A (en) Honeycomb base station device and data transmission method, communication equipment and communication system
CN105554917A (en) Internet of Things access module
CN101567821A (en) Embedded industry intelligent wireless network data transfer platform
CN104348523A (en) Data transmission method for wireless sensor node
CN109802930A (en) A kind of RS485/RS232 turns ZigBee gateway and its working method
CN103209383A (en) Information system based on Internet of Things
CN105577555A (en) Wireless routing equipment and wireless networking method
CN206194118U (en) With electric information collection device and system
CN102869045B (en) A kind of data transmission method and system
CN205195982U (en) Communication module device with wireless ad hoc networks ability
CN110691338A (en) Asset state monitoring equipment supporting LoRaWan protocol
JP2014060715A (en) Mobile router
CN109802887A (en) A kind of RS485/RS232 turns LORA gateway and its working method
CN204203986U (en) A kind of Wireless scanning system based on ZigBee technology
CN203151536U (en) Gateway apparatus for Internet of things and utilizing power line to conduct data transmission
CN101350750B (en) Analog/digital mixed wireless sensor network
CN105491690A (en) Embedded wireless intelligent home gateway based on ARM9

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190524

RJ01 Rejection of invention patent application after publication