CN104579886A - System for achieving wireless communication of no-address identification devices on basis of serial ports - Google Patents

System for achieving wireless communication of no-address identification devices on basis of serial ports Download PDF

Info

Publication number
CN104579886A
CN104579886A CN201510026734.1A CN201510026734A CN104579886A CN 104579886 A CN104579886 A CN 104579886A CN 201510026734 A CN201510026734 A CN 201510026734A CN 104579886 A CN104579886 A CN 104579886A
Authority
CN
China
Prior art keywords
zero
address
communication
marking equipment
circuit
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.)
Granted
Application number
CN201510026734.1A
Other languages
Chinese (zh)
Other versions
CN104579886B (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.)
Xihua University
Original Assignee
Xihua University
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 Xihua University filed Critical Xihua University
Priority to CN201510026734.1A priority Critical patent/CN104579886B/en
Publication of CN104579886A publication Critical patent/CN104579886A/en
Application granted granted Critical
Publication of CN104579886B publication Critical patent/CN104579886B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a system for achieving wireless communication of no-address identification devices on the basis of serial ports. The system comprises a PC, an interface converter, a first wireless transmission module, a communication controller and the non-address identification devices, wherein the PC is in two-way communication with the first wireless transmission module through the interface converter, the communication controller comprises a single-chip microcomputer minimum system, a second wireless transmission module, an address selection circuit, an address recognition circuit and a level switching circuit, the first wireless transmission module and the single-chip microcomputer minimum system are in two-way connection through the second wireless transmission module, a first path of a single-chip microcomputer is connected with the level switching circuit through the address selection circuit, a second path of the single-chip microcomputer is in two-way connection with the address recognition circuit, a third path of the single-chip microcomputer is in two-way connection with the level switching circuit, the level switching circuit is in communication with the no-address identification devices, and received no-address identification device communication control signals are transmitted to the address recognition circuit by the level switching circuit.

Description

A kind of system realizing zero-address marking equipment radio communication based on serial ports
Technical field
The present invention relates to based on Wireless Serial Communication technical field, particularly a kind of system realizing zero-address marking equipment radio communication based on serial ports.
Background technology
21 century, the no matter daily necessities of people, or industrial machine, system, the PC technology of high speed development allows their are more and more intelligent, networking.Life, the work of people also become more and more convenient, light.Meanwhile, how to make good use of large-scale old machine, system, as Digit Control Machine Tool, the equipment of the zero-address marks such as various smelting, chemical industry large automatic technique/working procedure systems is the concern that present production serves that this problem is more and more subject to people.
Relative to present same machines, system, the precision of zero-address marking equipment may be not too high, but still the processing of certain precision or smelting can be completed, chemical process meets Production requirement certain at present.In order to the working method in applicable modern times, need to concentrate the many covers zero-address marking equipment networking being in an industry spot thus to realize centralized monitor, operation.Can raise labour efficiency like this, save labour cost, operational environment can be improved again well, improve work quality.The networking not doing any change to zero-address marking equipment be can yet be regarded as a kind of effective networking mode.
Realize a PC to monitoring, the operation of overlapping zero-address marking equipment more, first need this PC can identify these equipment.Engineering identifies them with the address designation of equipment usually, and zero-address marking equipment do not have their address designation.For this reason, people generally carry out networking with fieldbus to them, PC need configuration bus controller to realize the control to network-bus, each cover zero-address marking equipment need configuration node in order to arrange the address of zero-address marking equipment and to complete the conversion (zero-address marking equipment can only pass through serial communication) of fieldbus with serial bus and the conversion of the related protocol that communicates, complex structure, operates loaded down with trivial details.
Prior art can also utilize serial bus directly to concentrating the many covers zero-address marking equipment networking being in a certain industry spot, but this mode can meet some practical problems, arrangement communication controler is needed as often overlapped on zero-address marking equipment, inconvenient in installation, maintenance; A communication controler only controls the communication of a set of zero-address marking equipment, and this communication does not need comparatively high real-time energy, for present microprocessor, has greatly the meaning of " butcher's knife kills chicken ", that is, in communication controler, the disposal ability of microprocessor does not obtain far away and makes full use of; Monitoring after networking, operating room have certain distance apart from zero-address marking equipment scene, and the interference environments such as the vibration of industry spot are relatively more severe, and the reliability of the original communication protocol of zero-address marking equipment can face some practical problems.In addition, the mutual interference between two or more radio communication also can have a certain impact to communication reliability, and the reliability requirement of industrial communication is general all very high.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of simple and that reliability is high system realizing zero-address marking equipment radio communication based on serial ports that connects up.
For solving the problems of the technologies described above, the technical solution used in the present invention is:
A kind of system realizing zero-address marking equipment radio communication based on serial ports, comprise PC, interface convertor, first wireless transport module, communication controler and several zero-address marking equipments, PC is by interface convertor and the first wireless transport module diconnected, communication controler comprises single-chip minimum system, second wireless transport module, addressing circuit, address recognition circuit, level shifting circuit, first wireless transport module is bi-directionally connected by the single-chip microcomputer of the second wireless transport module and single-chip minimum system, the first via of single-chip microcomputer is connected with level shifting circuit by addressing circuit, second tunnel of single-chip microcomputer and address recognition circuit are bi-directionally connected, 3rd tunnel of single-chip microcomputer and level shifting circuit are bi-directionally connected, level shifting circuit is connected with several zero-address identification device communication, the zero-address identification device communication control signal of reception is sent to address recognition circuit by level shifting circuit, second wireless transport module is connected with the serial ports of in single-chip minimum system, and be connected with PC by interface convertor, form the communication path between PC and communication controler, single-chip minimum system builds the communication path between communication controler and zero-address marking equipment by addressing circuit, and the zero-address marking equipment of application serial communication is known by address recognition circuit, the TTL end of the serial communication circuit of level shifting circuit is connected with another serial ports in single-chip minimum system, its each serial ports input terminal connects by RS232 is corresponding with the serial ports terminal of several zero-address marking equipments.
Preferably, in technique scheme, interface convertor is RS232/TTL transducer, is used for the level signal that the level signal of PC and the first wireless transport module can identify mutually to change.
Preferably, in technique scheme, level shifting circuit is TTL/RS232 level shifting circuit, is used for the level signal of zero-address marking equipment identification and the level signal of single-chip microcomputer identification mutually to change.
Preferably, in technique scheme, communication controler is one.
Preferably, in technique scheme, the communication protocol of this system is Modbus communication protocol.
Preferably, in technique scheme, single-chip microcomputer has two serial ports at least.
Compared with prior art, beneficial effect of the present invention is:
The present invention utilizes the Modbus communication protocol being applicable to industry spot, PC with overlap more zero-address marking equipment communicate time, on the one hand when PC gives certain zero-address marking equipment transmission technique/operation and parameter thereof or instruction, first these information are sent to communication controler in the mode of Modbus agreement through two wireless transport modules, protocol conversion is carried out again by communication controler, convert the communication protocol that this zero-address marking equipment is followed to, and this information is sent to this zero-address marking equipment.On the other hand when certain cover or many cover zero-address marking equipments send the information such as operating state to PC, first information is sent to communication controler, by communication controler, the communication Protocol Conversion of zero-address marking equipment is become corresponding Modbus agreement again, the information after conversion is through second wireless/receipts module, the first wireless receipts/send out a module to send to PC.I.e. PC and the network service of overlapping between zero-address marking equipment more, by the Address Recognition of zero-address marking equipment that communication controler realizes protocol conversion, information is selected, sent to information transmission, zero-address marking equipment address path, thus the network service realizing PC and overlap between zero-address marking equipment more.
The present invention takes full advantage of the disposal ability of microprocessor in communication controler, the flexible Application of address assignment and identification circuit achieves one and calculates location and the identification of overlapping zero-address marking equipment more, the application of Modbus agreement allows zero-address marking equipment monitor network have very high antijamming capability rationally, is especially applicable to industry spot.Adopt technology path networking zero-address marking equipment of the present invention, benefit is the communication controler that many cover zero-address marking equipments only need in the present invention, the work done at bottom is only that the serial bus of zero-address marking equipment is accessed communication controler of the present invention, the communication protocol of zero-address marking equipment is write this communication controler, then carefully connects the wire according to structure of the present invention just passable.Technology path of the present invention only only used a pair wireless transport module, is down to minimum by the harmful effect caused because of radio communication.The application of Modbus agreement then fundamentally eliminates these impacts.Relative to other technologies schemes such as fieldbus, directly serial bus mode, the system that patent of the present invention builds is simple, reliability is high, cost is low.
The present invention rationally, be used effectively in the invention of Modbus agreement before produce as Digit Control Machine Tool, the old equipment of the large-scale zero-address mark such as various smelting, chemical industry large automatic technique/working procedure systems is present production service, give full play to the effect of zero-address marking equipment, Chinese national economy construction is had very important significance.The present invention is directed to this to produce.Present system structure is simple, cost is low, and the networking that can reliably realize zero-address marking equipment, be convenient to people uses zero-address marking equipment to serve production efficiently in comfortable monitoring, operation element environment, and therefore the present invention has very high social benefit, economic benefit.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the invention will be further described:
Fig. 1 is the overall structure block diagram of the present invention's specific embodiment.
Embodiment
As shown in Figure 1, a kind of system realizing zero-address marking equipment radio communication based on serial ports provided by the invention, comprise PC, RS232/TTL transducer, first wireless transport module PTR2000, communication controler and several zero-address marking equipments, PC is by RS232/TTL transducer and the first wireless transport module PTR2000 diconnected, communication controler comprises single-chip minimum system, second wireless transport module PTR2000, addressing circuit, address recognition circuit, TTL/RS232 level shifting circuit, first, wirelessly radio communication is carried out between two wireless transport module PTR2000, a serial ports in single-chip minimum system is connected with the second wireless transport module PTR2000, single-chip minimum system and PC is made to form communication path, single-chip minimum system builds the communication path between communication controler and zero-address marking equipment by addressing circuit, and by the zero-address marking equipment of address recognition circuit identification application serial communication, the TTL end of TTL/RS232 level shifting circuit serial communication circuit is connected with another serial ports of the single-chip microcomputer in single-chip minimum system, TTL/RS232 level shifting circuit each serial ports input terminal connects by RS232 is corresponding with the serial ports terminal of several zero-address marking equipments, and the communication information of zero-address marking equipment is sent to single-chip minimum system process.
In the communication controler that the present embodiment is preferentially selected, single-chip minimum system selects the STC12C5A60S2 single-chip microcomputer with double-serial port as control chip, and PC carries out information transmission by wireless transport module PTR2000 and communication controler.Wireless transport module PTR2000 is the wireless transport module of a kind of microminiature, low-power consumption, two-forty, its traffic rate is the highest can reach 20kbps, maximum transmission power is+10dBm, and receiving sensitivity is up to-105dBm, and the service range in open ground can reach 1000m farthest.Wireless communication part comprises communication controler end and PC end two parts.With regard to PC, because wireless transport module PTR2000 supports Transistor-Transistor Logic level, and the signal of PC serial ports serial input, output meets RS232 standard, so need to carry out RS232 and Transistor-Transistor Logic level conversion between wireless transport module PTR2000 and PC serial ports, therefore adopt RS232/TTL transducer.
Due to communication controler select be single-chip microcomputer as control chip, and single-chip microcomputer use be also Transistor-Transistor Logic level, so wireless transport module PTR2000 directly can be connected with microcontroller serial port part.
When communication controler and zero-address marking equipment carry out information transmission, the distance between communication controler and zero-address marking equipment is very near, can directly utilize the RS232 interface of zero-address marking equipment to realize asynchronous serial communication.Same, the RS232 level of the Transistor-Transistor Logic level that single-chip microcomputer uses and zero-address marking equipment, after needing to carry out TTL/RS232 level conversion, just can carry out the transmission of information, therefore select TTL/RS232 level shifting circuit.
The function of the addressing circuit in communication controler has been the selection of address tunnel between PC and zero-address marking equipment, thus realizes under the control of single-chip microcomputer, and PC and the zero-address marking equipment of specifying carry out network service.Such as when PC and zero-address identification device communication, Single-chip Controlling addressing circuit, gets through the information channel between PC and zero-address marking equipment, thus realizes the information transmission between PC and zero-address marking equipment.
The function of the address recognition circuit in communication controler is when zero-address marking equipment sends information to PC, record is carried out to the zero-address marking equipment of the information of transmission, by Single-chip Controlling, these zero-address marking equipments are made to carry out information transmission by certain rule and PC.Such as when zero-address marking equipment 1,2 sends information to PC simultaneously, single-chip microcomputer is by address recognition circuit identification and record zero-address marking equipment 1 and zero-address marking equipment 2, then according to certain sequencing, get through the information channel between PC and zero-address marking equipment 1, zero-address marking equipment 2, realize the information transmission between PC and zero-address marking equipment 1, zero-address marking equipment 2.
Single-chip microcomputer minimal application system in communication controler preferably with the system that single-chip microcomputer STC12C5A60S2 can be allowed normally to work that STC12C5A60S2 single-chip microcomputer builds for core, comprises reset circuit, frequency is the crystal oscillating circuit etc. of 22.1184MHz.
The course of work of the present invention is as follows:
When PC sends information to zero-address marking equipment n, first communication controler is sent to through wireless transport module PTR2000 with the information of Modbus protocol encapsulation, Modbus protocol conversion is become the communication protocol of corresponding zero-address marking equipment by communication controler, then the path chain of zero-address marking equipment n is got through by Single-chip Controlling addressing circuit, then by conversion after information through level conversion, converting to can by the signal of zero-address marking equipment identification, and the information that finally realizes is from PC to the transmission of zero-address marking equipment n.When certain cover zero-address marking equipment or many cover zero-address marking equipments send information to PC, information is first through TTL/RS232 level shifting circuit, converting to can by the signal of communication controler identification, then the zero-address marking equipment of application communication is picked out by address recognition circuit, the path between these equipment and control devices got through by control addressing circuit thus, the information of these equipment is sent to communication controler, the communication Protocol Conversion of zero-address marking equipment is become Modbus agreement and encapsulates the information that zero-address marking equipment uploads by communication controler, then communicated with PC according to certain rule by single-chip microcomputer STC12C5A60S2, finally realize information uploading from zero-address marking equipment to PC.Namely can realize PC and the wireless communication overlapped between zero-address marking equipment by the present invention program more.
Structure according to the present invention has manufactured experimently out the system described by the present embodiment, and the present invention is tried out overlap zero-address marking equipment in certain chemical plant 20 local monitoring, operational network sets up and carried out related experiment.Experimental result shows, this system can to 20 cover zero-address marking equipments as the operating states such as working temperature, humidity, concentration, composition, pressure often overlap 16 times per second accurate, reliably monitor, the fault alarm of arbitrary zero-address marking equipment can be responded in time, reliably can realize the transmission to the technological process of arbitrary zero-address marking equipment and relevant parameter and operational order.In experiment, do not find the mistake transmission of information, try out all right.
Above-mentioned execution mode is intended to illustrate that the present invention can be professional and technical personnel in the field and realizes or use; modifying to above-mentioned execution mode will be apparent for those skilled in the art; therefore the present invention includes but be not limited to above-mentioned execution mode; any these claims or specification of meeting describes; meet and principle disclosed herein and novelty, the method for inventive features, technique, product, all fall within protection scope of the present invention.

Claims (6)

1. one kind realizes the system of zero-address marking equipment radio communication based on serial ports, it is characterized in that, comprise PC, interface convertor, first wireless transport module, communication controler and several zero-address marking equipments, described PC is by described interface convertor and described first wireless transport module diconnected, described communication controler comprises single-chip minimum system, second wireless transport module, addressing circuit, address recognition circuit, level shifting circuit, described first wireless transport module is bi-directionally connected by the single-chip microcomputer of described second wireless transport module and described single-chip minimum system, the first via of described single-chip microcomputer is connected with described level shifting circuit by described addressing circuit, second tunnel and the described address recognition circuit of described single-chip microcomputer are bi-directionally connected, 3rd tunnel of described single-chip microcomputer and described level shifting circuit are bi-directionally connected, described level shifting circuit is connected with zero-address identification device communication described in several, the described zero-address identification device communication control signal received is sent to described address recognition circuit by described level shifting circuit, described second wireless transport module is connected with a serial ports in described single-chip minimum system, and be connected with described PC by described interface convertor, form the communication path between described PC and described communication controler, described single-chip minimum system builds the communication path between described communication controler and described zero-address marking equipment by described addressing circuit, and the zero-address marking equipment of application serial communication is known by described address recognition circuit, the TTL end of the serial communication circuit of described level shifting circuit is connected with another serial ports in described single-chip minimum system, its each serial ports input terminal connects by RS232 is corresponding with the serial ports terminal of zero-address marking equipment described in several.
2. a kind of system realizing zero-address marking equipment radio communication based on serial ports according to claim 1, it is characterized in that, described interface convertor is RS232/TTL transducer, is used for the level signal that the level signal of described PC and described first wireless transport module can identify mutually to change.
3. a kind of system realizing zero-address marking equipment radio communication based on serial ports according to claim 2, it is characterized in that, described level shifting circuit is TTL/RS232 level shifting circuit, is used for the level signal of the level signal of described zero-address marking equipment identification and described single-chip microcomputer identification mutually to change.
4. a kind of system realizing zero-address marking equipment radio communication based on serial ports according to claim 1, is characterized in that, described communication controler is one.
5. a kind of system realizing zero-address marking equipment radio communication based on serial ports according to any one of claim 1-4, is characterized in that, the communication protocol of described system is Modbus communication protocol.
6. a kind of system realizing zero-address marking equipment radio communication based on serial ports according to claim 5, is characterized in that, described single-chip microcomputer has two double-serial port at least.
CN201510026734.1A 2015-01-19 2015-01-19 A kind of system that zero-address mark equipment wireless communication is realized based on serial ports Expired - Fee Related CN104579886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510026734.1A CN104579886B (en) 2015-01-19 2015-01-19 A kind of system that zero-address mark equipment wireless communication is realized based on serial ports

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510026734.1A CN104579886B (en) 2015-01-19 2015-01-19 A kind of system that zero-address mark equipment wireless communication is realized based on serial ports

Publications (2)

Publication Number Publication Date
CN104579886A true CN104579886A (en) 2015-04-29
CN104579886B CN104579886B (en) 2018-04-24

Family

ID=53095140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510026734.1A Expired - Fee Related CN104579886B (en) 2015-01-19 2015-01-19 A kind of system that zero-address mark equipment wireless communication is realized based on serial ports

Country Status (1)

Country Link
CN (1) CN104579886B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6700877B1 (en) * 1997-08-05 2004-03-02 Siemens Aktiengesellschaft Method and bus system for automatic address allocation
US7622692B2 (en) * 2004-04-15 2009-11-24 United States Postal Service Methods and systems for sorting unaddressed items
CN101626581A (en) * 2008-07-08 2010-01-13 中国移动通信集团公司 Method, device and system for scanning equipment in electrically adjustable antenna interface
CN102171999A (en) * 2011-04-12 2011-08-31 华为技术有限公司 Parameter configuration method and network element device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6700877B1 (en) * 1997-08-05 2004-03-02 Siemens Aktiengesellschaft Method and bus system for automatic address allocation
US7622692B2 (en) * 2004-04-15 2009-11-24 United States Postal Service Methods and systems for sorting unaddressed items
CN101626581A (en) * 2008-07-08 2010-01-13 中国移动通信集团公司 Method, device and system for scanning equipment in electrically adjustable antenna interface
CN102171999A (en) * 2011-04-12 2011-08-31 华为技术有限公司 Parameter configuration method and network element device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡真明: "基于单片机控制的温度环境测控装置研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN104579886B (en) 2018-04-24

Similar Documents

Publication Publication Date Title
CN106131056A (en) A kind of wireless industrial adapter and method of work thereof
CN102821436A (en) Electric energy meter intelligent networking dynamic route remote collecting system
CN104881008A (en) Remote monitoring system based on Internet-of-Things
CN107196707A (en) Distributed light-carried wireless WiFi ZigBee-networks
CN104064012A (en) Automatic meter reading system
CN102393701A (en) Automatic building air-conditioning monitoring system
CN205029684U (en) Internetwork coordination ware
CN107896120B (en) Automatic environmental information monitoring method and system
CN103267871A (en) Wind speed monitoring system based on ZigBee technology
CN209590631U (en) Data acquisition device and system based on bluetooth Mesh network
CN202759477U (en) Industrial communication protocol transition system
CN202679656U (en) Wireless serial port equipment connecting device applied to Internet of Things
CN104579884B (en) A kind of system that zero-address mark equipment wire communication is realized based on serial ports
CN104483936A (en) Wireless network information collection platform of wireless data access system
CN201984321U (en) Monitoring system of machine tool operation
CN104579886A (en) System for achieving wireless communication of no-address identification devices on basis of serial ports
CN101236691A (en) Remote wireless communication network meter reading system
CN208239860U (en) Internet of things data acquisition monitoring system
CN206894676U (en) A kind of things-internet gateway realized 6LowPAN and mutually changed with multi-protocols
CN203882184U (en) A machine tool monitoring system
CN206400329U (en) Complete supply equipment remote monitoring system
CN206311941U (en) A kind of real-time synchronization robot torsion torque control system of use EtherCAT agreements
JP2015159535A (en) Communication network hopping architecture
CN204440065U (en) A kind of SCM Based data collector
CN209375699U (en) Data integrated system based on the ubiquitous connection of information physical system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180424

Termination date: 20190119

CF01 Termination of patent right due to non-payment of annual fee