CN104991487A - Medium-short distance communication method - Google Patents
Medium-short distance communication method Download PDFInfo
- Publication number
- CN104991487A CN104991487A CN201510266406.9A CN201510266406A CN104991487A CN 104991487 A CN104991487 A CN 104991487A CN 201510266406 A CN201510266406 A CN 201510266406A CN 104991487 A CN104991487 A CN 104991487A
- Authority
- CN
- China
- Prior art keywords
- communication
- chip microcomputer
- distance
- medium
- short
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
Abstract
A medium-short distance communication method is suitable for communication among a host communication device and a plurality of slave computer devices connected through medium-short distance communication buses. Each slave computer device is internally provided with a single-chip microcomputer, the single-chip microcomputer is internally provided with an ADC module (analog-to-digital converter module), direct communication is realized by an I/O port with an ADC function of the single-chip microcomputer, and data exchange is carried out; or, the single-chip microcomputer is internally provided with an analog comparator function module, direct communication is realized by an I/O port with an analog comparator function of the single-chip microcomputer, data exchange is carried out, and the communication function is achieved. The medium-short distance communication method solves the problem that a TTL level is short in communication distance and has the advantages that the cost is low, the realization is simple, the applicable voltage range is wide, etc.
Description
Technical field:
The present invention relates to a kind of short-distance and medium-distance means of communication, be applicable to the communication between multiple slave devices that host communication equipment is connected with by short-distance and medium-distance communication bus.
Background technology:
Along with the development of mechanics of communication, under short-distance and medium-distance condition, the demand of other communication apparatus of host computer communication equipment control multiple stage is more and more powerful, because Transistor-Transistor Logic level communication distance is short, generally can not more than 5 meters, so common way is connected by expansion communication interface chip, realize as CAN, RS485 bus etc. networking bussing technique connects, to bring three problems like this, 1, the power consumption of network system increases, because radio network system majority adopts powered battery, the increasing of power consumption, the serviceable life of meeting serious curtailment system; 2, voltage adaptation is poor, because the power requirement of various communication interface chip is often higher than the supply voltage of single-chip microcomputer, makes the adaptability of supply voltage poor; 3, added cost, because the use of various bus, all needs adjunct circuit, needs to strengthen cost; So not only cost increases, and reduces system serviceable life, and maintenance cost is large, will suppress popularization and the use of this series products.
Summary of the invention:
Purpose of design of the present invention: provide one not need to extend out communication interface chip, by means of only the I/O port of single-chip microcomputer, realize the method for short-distance and medium-distance communication, have the advantages that communication distance is longer, low in energy consumption, voltage adaptation wide ranges, cost are low.
A kind of short-distance and medium-distance means of communication provided by the present invention, comprise the communication system that a host communication equipment is formed with the multiple slave devices be connected by short-distance and medium-distance communication bus, and the present invention for achieving the above object, adopts following scheme:
Scheme 1: the built-in single-chip microcomputer of each slave devices, the built-in ADC module of single-chip microcomputer (analog to digital converter module), by the I/O port Direct Communication of single-chip microcomputer band ADC function, carry out exchanges data, the method of specific implementation communication is: the cut off value presetting a low and high level, be defined as Vref, slave devices starts ADC module, intercept the signal that main frame sends, when the ADC conversion value of input signal is higher than Vref, the signal level received is high level " 1 ", when the ADC conversion value of input signal is lower than Vref, the signal level received is low level " 0 ", realize communication.
Scheme 2: the built-in single-chip microcomputer of each slave devices, single-chip microcomputer built-in analog comparator function module, by the I/O port Direct Communication of single-chip microcomputer band analog comparator function, carry out exchanges data, the method of specific implementation communication is: the reference voltage level presetting analog comparator, be defined as CVref, when the value of input signal is higher than CVref, the signal level received is defined as high level " 1 ", when the value of input signal is lower than CVref, the signal level received is defined as low level " 0 ", realizes communication.
Advantage of the present invention:
1, fully using the internal resource of single-chip microcomputer, when only using single-chip processor i/o port, realizing the communication between point-to-point, point-to-multipoint.
2, adopt communication bus mounting mode, easy to connect, communication distance is longer, and communication robust, reliable, uses simple.
Embodiment:
The present invention, by providing a specific embodiment without limitation, illustrates embodiment of the present invention:
In an embodiment, suppose that the equipment participating in communication is three equipment, be defined as: A equipment, B equipment and C equipment, communication modes is master-slave communication pattern, and suppose that A equipment is host computer communication equipment, B equipment and C equipment are communication slave devices, two slave devices are assigned unique identity code, wherein: the built-in single-chip microcomputer of B equipment, the built-in ADC module of single-chip microcomputer (analog to digital converter module), communication bus connects the I/O port of single-chip microcomputer band ADC function; The built-in single-chip microcomputer of C equipment, single-chip microcomputer built-in analog comparator function module, communication bus connects the I/O port of single-chip microcomputer band analog comparator function; Suppose that the supply voltage of communication system is 3V, agreement B equipment is using the AD value of 1.5V electrical voltage point and 7F as slicing level point, when the AD value of the signal received is higher than 7F, namely high level is judged to be, when the AD value of the signal received is less than or equal to 7F, namely be judged to be low level, realize communication by AD conversion like this; The reference voltage level of analog comparator is adjusted to 1.5V by C equipment, when the level of the signal received is higher than 1.5V, be namely judged to be high level, when the level of the signal received is less than or equal to 1.5V, namely be judged to be low level, realize communication by built-in analog comparer like this; The pattern of the return path signal of A equipment reception B equipment and C equipment is not particularly limited in addition, can adopt above-mentioned two kinds of I/O ports method of attachment, also can adopt the method extending out communication interface chip.
In addition to the implementation, the present invention can also have other embodiments and processing mode, as long as the technical scheme adopting equivalent replacement or equivalent transformation to be formed, all drops in the protection domain of the claims in the present invention.
Claims (2)
1. short-distance and medium-distance means of communication, be applicable to the communication between multiple slave devices that host communication equipment is connected with by short-distance and medium-distance communication bus, it is characterized by: the built-in single-chip microcomputer of each slave devices, the built-in ADC module of single-chip microcomputer (analog to digital converter module), by the I/O port Direct Communication of single-chip microcomputer band ADC function, carry out exchanges data, the method of specific implementation communication is: the cut off value presetting a low and high level, be defined as Vref, slave devices starts ADC module, intercept the signal that main frame sends, when the ADC conversion value of input signal is higher than Vref, the signal level received is high level " 1 ", when the ADC conversion value of input signal is lower than Vref, the signal level received is low level " 0 ", realize communication.
2. short-distance and medium-distance means of communication, be applicable to the communication between multiple slave devices that host communication equipment is connected with short-distance and medium-distance communication bus, it is characterized by: the built-in single-chip microcomputer of each slave devices, single-chip microcomputer built-in analog comparator function module, by the I/O port Direct Communication of single-chip microcomputer band analog comparator function, carry out exchanges data, the method of specific implementation communication is: the reference voltage level presetting analog comparator, be defined as CVref, when the value of input signal is higher than CVref, the signal level received is defined as high level " 1 ", when the value of input signal is lower than CVref, the signal level received is defined as low level " 0 ", realize communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510266406.9A CN104991487A (en) | 2015-05-20 | 2015-05-20 | Medium-short distance communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510266406.9A CN104991487A (en) | 2015-05-20 | 2015-05-20 | Medium-short distance communication method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104991487A true CN104991487A (en) | 2015-10-21 |
Family
ID=54303308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510266406.9A Pending CN104991487A (en) | 2015-05-20 | 2015-05-20 | Medium-short distance communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104991487A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101571410A (en) * | 2009-06-04 | 2009-11-04 | 吴明星 | Intelligent opto-electrical direct reader |
CN201607238U (en) * | 2009-06-04 | 2010-10-13 | 吴明星 | Intelligent photoelectrical direct reader |
CN102298345A (en) * | 2011-05-20 | 2011-12-28 | 深圳市骏普科技开发有限公司 | Communication method of M-BUS (meter-BUS) |
CN202166856U (en) * | 2011-05-20 | 2012-03-14 | 深圳市骏普科技开发有限公司 | Slave receiving circuit of M-BUS |
CN102496904A (en) * | 2011-12-20 | 2012-06-13 | 吴明星 | Self-powered communication-bus short-circuit protection method |
-
2015
- 2015-05-20 CN CN201510266406.9A patent/CN104991487A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101571410A (en) * | 2009-06-04 | 2009-11-04 | 吴明星 | Intelligent opto-electrical direct reader |
CN201607238U (en) * | 2009-06-04 | 2010-10-13 | 吴明星 | Intelligent photoelectrical direct reader |
CN102298345A (en) * | 2011-05-20 | 2011-12-28 | 深圳市骏普科技开发有限公司 | Communication method of M-BUS (meter-BUS) |
CN202166856U (en) * | 2011-05-20 | 2012-03-14 | 深圳市骏普科技开发有限公司 | Slave receiving circuit of M-BUS |
CN102496904A (en) * | 2011-12-20 | 2012-06-13 | 吴明星 | Self-powered communication-bus short-circuit protection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104244468A (en) | Portable wireless router | |
CN202889340U (en) | Low-power short-distance wireless data transmission module | |
CN201716839U (en) | Concentrator provided with modularized communication module | |
CN110602821B (en) | POE power supply-based light control system, method and storage medium | |
CN104991487A (en) | Medium-short distance communication method | |
CN203054511U (en) | Intelligent household comprehensive controller based on programmable micro-control chip | |
CN205318374U (en) | Redundant circuit of RS -232 serial ports | |
CN205754412U (en) | A kind of MODBUS protocol conversion apparatus | |
CN210323831U (en) | Low-power consumption switching value acquisition wireless transmission device | |
CN202488503U (en) | Multi-module high speed communication system | |
CN201742434U (en) | Three-wire feed communication system | |
CN103107891A (en) | Network power supply device | |
CN203942546U (en) | A kind of transition of communications gateway module | |
CN205882833U (en) | Intelligence power | |
CN204576495U (en) | A kind of dual bus arbitration control device | |
CN203813781U (en) | USB and PLC communication converter | |
CN203480508U (en) | Single-serial-port communication circuit for communicating different signals | |
CN210380806U (en) | Communication isolation circuit | |
CN103701452A (en) | Multifunctional communication interface signal converter | |
CN210839912U (en) | Embedded wireless communication module supporting multiple interface forms | |
CN203537391U (en) | Testing system for optical module | |
CN103731932A (en) | Multi-wireless-communication compatible system and communication method thereof | |
CN204362100U (en) | A kind of electric power protocol conversion device based on industrial computer | |
CN202475414U (en) | CAN repeater | |
CN203416278U (en) | An all-in-one digital household gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151021 |
|
RJ01 | Rejection of invention patent application after publication |