CN104683194A - PWM-based one-way master-slave one-to-many multi-computer communication method - Google Patents
PWM-based one-way master-slave one-to-many multi-computer communication method Download PDFInfo
- Publication number
- CN104683194A CN104683194A CN201510077975.9A CN201510077975A CN104683194A CN 104683194 A CN104683194 A CN 104683194A CN 201510077975 A CN201510077975 A CN 201510077975A CN 104683194 A CN104683194 A CN 104683194A
- Authority
- CN
- China
- Prior art keywords
- pwm
- machine
- slave
- communication method
- computer 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
Links
Landscapes
- Communication Control (AREA)
Abstract
The invention discloses a PWM-based one-way master-slave one-to-many multi-computer communication method. The method comprises the following steps: step one, initializing a system; step two, sending all the parameters of all the slave computers by selecting the corresponding period and pulse width of a PWM module of a host; and step three, inquiring updating requests of all the slave computers in sequence and updating all parameters to be updated of all the slave computers by the host; circularly performing the step three. By virtue of the PWM-based one-way master-slave one-to-many multi-computer communication method, a communication protocol between the host and the slave computers can be simplified; the communication efficiency and real-time performance can be improved; meanwhile, the communication reliability is improved.
Description
Technical field
The present invention relates to master-slave mode one-to-many multi-computer communication technology, particularly relate to a kind of unidirectional master-slave mode one-to-many multi-computer communication method based on PWM.
Background technology
In various equipment use system, unidirectional " master-slave mode one-to-many " multi-computer communication is very common communication pattern.But, the communication module that common unidirectional " master-slave mode one-to-many " many employings of multi-computer communication are ready-made, the sequence that the low and high level that they have same general character namely to adopt to distribute in time is formed is to complete transmission, and receiving terminal is then by obtaining the information that transmitting terminal transmits to the parsing of these sequence of levels.Problems existing has: main frame and complicated from communication protocol between machine, and operation maintenance difficulty is large, consuming time many; Allocation address coding is respectively needed from machine; Data communication real-time and efficiency are all not high, and this is mainly manifested in the multibyte institutional framework of the frame of communication protocol; Data communication reliability is not high, is embodied on the multibyte institutional framework of the frame of communication protocol and the transmission feature of timesharing ladies and gentlemen transmission.
Summary of the invention
In view of this, the object of the invention is for the deficiencies in the prior art, a kind of unidirectional master-slave mode one-to-many multi-computer communication method based on PWM is provided, make main frame and simplified from communication protocol between machine, communication efficiency and real-time improve, and add communication reliability simultaneously.
For achieving the above object, the present invention by the following technical solutions:
Based on a unidirectional master-slave mode one-to-many multi-computer communication method of PWM, wherein, comprise the steps:
Step 1, system initialization;
Step 2, selects the PWM module respective cycle of main frame and pulsewidth to send all parameters from machine; The described value from machine parameter is represented by the pulsewidth of its PWM; Transmit the PWM cycle mutual exclusion of each parameter, the cycle presets;
Step 3, all update requests from machine of main wheel continuous query, and upgrade all parameters all to be updated from machine successively; Circulation performs step 3.
As preferably, described vicinity differed as fixed value from the PWM cycle set between machine.
As preferably, the PWM cycle set between the described same proximity parameter from machine differs as fixed value.
The beneficial effect of the invention is:
The present invention is directed to the ever-present main frame of unidirectional " master-slave mode one-to-many " multi-machine communication system and complicated from communication protocol between machine, operation maintenance difficulty is large, consuming time many; Data communication reliability is not high; Data communication real-time and efficiency are all not high; The problems such as difference allocation address coding are needed from machine, adopt PWM to be used as information carrier and be different from employing sequence of levels as information carrier, different to distinguish from setting the different PWM cycles between machine and between the same different parameters from machine, achieve main frame and simple and clear from communication protocol between machine, without the need to giving from machine allocation address coding, improve real-time communication, efficiency, communication reliability.
Accompanying drawing explanation
Fig. 1 is flow chart of the present invention.
Fig. 2 is the parameter periodic table of communication protocol of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.
As shown in Figure 1, the present invention includes following steps:
Step 001, system initialization; Step 001 is responsible for the modules that initialization meets system requirements.
Step 002, selects the respective cycle of PWM module and corresponding pulsewidth to send all parameters from machine; Step 002 is responsible for selecting the respective cycle of PWM module and corresponding pulsewidth to send to all parameters from machine (parameter here mainly refers to parameter listed by Fig. 2).Preset the cycle of all parameters in main frame, transmit the PWM cycle mutual exclusion of each parameter; The described value from machine parameter is represented by the pulsewidth of PWM, i.e. the time width of the high level of PWM;
Step 003, all update requests from machine of main wheel continuous query also upgrade all parameters all to be updated from machine successively; Circulation performs step 3.
As shown in Figure 2,1# adopts the PWM cycle of contiguous mutual deviation 1 millisecond to distinguish from machine, 6# from machine, 5# from machine, 4# from machine, 3# from machine, 2# between the 1# parameter of machine, 1# distinguishes from adopting the PWM cycle of contiguous mutual deviation 0.1 millisecond between the 1# parameter of machine, 2# parameter, 3# parameter, 4# parameter, and 2# also adopts the PWM cycle of contiguous mutual deviation 0.1 millisecond to distinguish from machine, 6# from machine, 5# from machine, 4# from machine, 3# between the proximity parameter of machine.The present invention adopts PWM to be used as information carrier and is different from employing sequence of levels as information carrier, and the PWM cycle mutual exclusion of each parameter, the value of the parameter that transmit is represented by the time width of the high level of PWM.
Communication protocol of the present invention is simple and clear, does not have address code from machine, has the application characteristic that real-time communication, efficiency and communication reliability improve.
What finally illustrate is, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, other amendments that those skilled in the art make technical scheme of the present invention or equivalently to replace, only otherwise depart from the spirit and scope of technical solution of the present invention, all should be encompassed in the middle of right of the present invention.
Claims (3)
1., based on a unidirectional master-slave mode one-to-many multi-computer communication method of PWM, it is characterized in that: comprise the steps:
Step 1, system initialization;
Step 2, selects the PWM module respective cycle of main frame and pulsewidth to send all parameters from machine;
Step 3, all update requests from machine of main wheel continuous query also upgrade all from all parameters to be updated of machine successively; Circulation performs step 3.
2. a kind of unidirectional master-slave mode one-to-many multi-computer communication method based on PWM according to claim 1, is characterized in that: differing as fixed value from the PWM cycle set between machine of described vicinity.
3. a kind of unidirectional master-slave mode one-to-many multi-computer communication method based on PWM according to claim 2, is characterized in that: the PWM cycle set between the described same proximity parameter from machine differs as fixed value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510077975.9A CN104683194A (en) | 2015-02-14 | 2015-02-14 | PWM-based one-way master-slave one-to-many multi-computer communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510077975.9A CN104683194A (en) | 2015-02-14 | 2015-02-14 | PWM-based one-way master-slave one-to-many multi-computer communication method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104683194A true CN104683194A (en) | 2015-06-03 |
Family
ID=53317817
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510077975.9A Pending CN104683194A (en) | 2015-02-14 | 2015-02-14 | PWM-based one-way master-slave one-to-many multi-computer communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104683194A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050041445A1 (en) * | 2001-12-31 | 2005-02-24 | Dangsheng Zhou | Method of establishing a master & minus; host in modules connecting in parallel |
CN101222377A (en) * | 2007-11-23 | 2008-07-16 | 深圳国人通信有限公司 | Method and device for processing slave machine parameter in distributed master-salve machine communication |
CN101232425A (en) * | 2007-01-26 | 2008-07-30 | 京信通信***(中国)有限公司 | Bus type distributed control system master-salve station opposite terminal control method |
CN101986765A (en) * | 2010-10-28 | 2011-03-16 | 河南理工大学 | Singlechip-based low-power consumption networking positioning instrument |
CN102857956A (en) * | 2012-07-26 | 2013-01-02 | 京信通信***(广州)有限公司 | Master-slave communication method and device |
-
2015
- 2015-02-14 CN CN201510077975.9A patent/CN104683194A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050041445A1 (en) * | 2001-12-31 | 2005-02-24 | Dangsheng Zhou | Method of establishing a master & minus; host in modules connecting in parallel |
CN101232425A (en) * | 2007-01-26 | 2008-07-30 | 京信通信***(中国)有限公司 | Bus type distributed control system master-salve station opposite terminal control method |
CN101222377A (en) * | 2007-11-23 | 2008-07-16 | 深圳国人通信有限公司 | Method and device for processing slave machine parameter in distributed master-salve machine communication |
CN101986765A (en) * | 2010-10-28 | 2011-03-16 | 河南理工大学 | Singlechip-based low-power consumption networking positioning instrument |
CN102857956A (en) * | 2012-07-26 | 2013-01-02 | 京信通信***(广州)有限公司 | Master-slave communication method and device |
Non-Patent Citations (1)
Title |
---|
李鹏等: "《青岛科技大学学报》", 《地铁制动实验台PWM信号转换器的研制》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2017118289A (en) | APPARATUS, METHOD AND SYSTEM FOR MANAGING A LOADING DEVICE THROUGH A POWER SUPPLY LINE USING A POWER AGREEMENT PROTOCOL | |
CN104216384A (en) | Intelligent remote control system combined with lamp | |
CN102802316B (en) | Lighting control device for realizing transmission of DALI (digital addressable lighting interface) bus protocol through ZigBee | |
CN106533851A (en) | Control system based on mesh network technology | |
CN103974509A (en) | Method and system for intelligently controlling LEDs | |
CN204362085U (en) | Industrial controlling intelligent gateway | |
CN104793759A (en) | Simulating and monitoring equipment based on PS2 interface mouse signal | |
CN106953809B (en) | 485 time-sharing communication-based equipment resource acquisition method | |
CN105530151A (en) | GPRS module and information transmission method for the GPRS module | |
CN101383084B (en) | Isolation type bus power supplying communication system | |
CN203151522U (en) | Repeater and matching wireless router based on intelligent household system | |
CN204697088U (en) | Household intelligent gateway | |
CN104683194A (en) | PWM-based one-way master-slave one-to-many multi-computer communication method | |
CN204272170U (en) | A kind of BACnet protocol conversion system | |
CN104717110A (en) | Transmitting method based on PWM master-slave type one-way multi-computer communication | |
CN105843046A (en) | Intelligent household electrical appliance master control communication method and system thereof | |
CN201266434Y (en) | Isolation type bus power supply communication system | |
CN102841875A (en) | Host computer with intelligent bus interface and security system | |
CN104683068A (en) | PWM-based one-way master-slave multi-computer communication method | |
CN104283872A (en) | Remote controller supporting CAN controller and PLC | |
CN104703250A (en) | Method for configuring PANID (personal area network identifier) on ZigBee terminal | |
CN104780084A (en) | Sending method for PWM (Pulse Wavelength Modulation) master-slave one-way multi-computer communication | |
CN106878348B (en) | Master station longitudinal data transmission method based on source end point table model maintenance | |
CN201994958U (en) | Intelligent communication node between CAN (controller area network) bus and Ethernet | |
CN204408373U (en) | A kind of unidirectional Subordinate communication circuit based on PWM technology |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150603 |