CN102143064A - Method for achieving interconnection of communication parameters for automatically matching peripheral slave machine with host - Google Patents
Method for achieving interconnection of communication parameters for automatically matching peripheral slave machine with host Download PDFInfo
- Publication number
- CN102143064A CN102143064A CN2011100233934A CN201110023393A CN102143064A CN 102143064 A CN102143064 A CN 102143064A CN 2011100233934 A CN2011100233934 A CN 2011100233934A CN 201110023393 A CN201110023393 A CN 201110023393A CN 102143064 A CN102143064 A CN 102143064A
- Authority
- CN
- China
- Prior art keywords
- main frame
- messaging parameter
- peripheral hardware
- parameter
- hardware slave
- 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
Images
Landscapes
- Communication Control (AREA)
Abstract
The invention discloses a method for achieving interconnection of communication parameters for automatically matching a peripheral slave machine with a host. In the method, correct and automatic interconnection communication between the peripheral slave machine and the host is achieved through matching of the communication parameters of the host and the slave machine and transmission of communication parameter messages and operation messages. By using the method, the problem that the communication parameters of the peripheral slave machine are manually checked and arranged is solved, and the modification of the communication parameters just needs to be carried out on a host end which is easy to operate, thereby greatly saving the manpower and material resources and improving the work efficiency.
Description
Technical field
The present invention relates to slave and main-machine communication field, relate in particular to a kind of peripheral hardware slave and mate the interconnected method of main-machine communication parameter realization automatically.
Background technology
At present, when peripheral hardware slave and main frame when hardware interfaces is consistent, and connect correct, if realize successfully connecting main-machine communication, necessarily require the messaging parameter coupling of they and main frame, the baud rate, data bit, position of rest, the verification mode that are the slave communication interface must be identical with main frame, and this is that serial communication is necessary.
In the prior art, the peripheral hardware slave quantity that connects the main frame communication interface is many, and is consistent with messaging parameter and main frame that the peripheral hardware slave must manually be set before the main-machine communication, otherwise communication can be not successful.In the practice, each messaging parameter of peripheral hardware slave manually is set, and not only quantities is big, and obscures easily and make mistakes.With the detector for electric fire protection is example, and as shown in Figure 1, LFJ201 watch-dog (main frame) maximum of forming detector for electric fire protection can connect 16 road LFT201 intelligent detecting devices (peripheral hardware slave), and communication mode adopts RS485 serial communication bus mode.This No. 16 detector of industry spot is installed and is disperseed, far away with the watch-dog distance, and all be installed in power distribution cabinet or the distribution box, when being in the charged environment of high voltage, because the concrete setting of messaging parameter is directly related with the electromagnetic environment and the communication distance of the operation of peripheral hardware slave, so these messaging parameters are to need often to change, and the people checks these parameters to be set suitable difficulty is arranged.
Summary of the invention
The purpose of this invention is to provide a kind of peripheral hardware slave and mate the interconnected method of main-machine communication parameter realization automatically, only need to change messaging parameter and get final product, accurately save time in maneuverable host side.
The present invention adopts following technical proposals: a kind of peripheral hardware slave mates the main-machine communication parameter automatically realizes interconnected method, may further comprise the steps: (1), main frame read the messaging parameter and the initialization interface of configuration, and the peripheral hardware slave reads the messaging parameter and the initialization interface of acquiescence;
(2), the main frame repeating query issues the operation message;
(3), main frame patrols and examines the whether all proper communication of peripheral hardware slave automatically, if main frame continues repeating query and issues the operation message; If not, then main frame reads the messaging parameter and the initialization interface of acquiescence, and broadcast transmission messaging parameter message returns messaging parameter and initialization interface that step (1) reads configuration then;
When (4) the peripheral hardware slave receives the messaging parameter message that main frame issues, decomposite messaging parameter wherein, reinitialize interface and wait for that main frame sends the operation message;
(5), whether the peripheral hardware slave operation message that receives main frame be above standard the time limit, if then return messaging parameter and initialization interface that step (1) reads acquiescence; If not, continue to wait for that main frame issues the operation message.
Described messaging parameter comprises data bit, baud rate, position of rest, verification mode.
Be limited to 5s during standard in the described step (5).
Peripheral hardware slave of the present invention mates the interconnected method of main-machine communication parameter realization automatically must be used, and only need revise messaging parameter on maneuverable main frame, and the peripheral hardware slave can mate the messaging parameter of main frame automatically, realizes accurately communication.It is a difficult problem of checking the messaging parameter that the peripheral hardware slave is set that this method has solved the people, has saved manpower and materials greatly, and has improved operating efficiency.
Description of drawings
Fig. 1 is the connection diagram of electrical fire monitor and electrical fire detector;
Fig. 2 is the program flow diagram of main frame in the embodiment of the invention;
Fig. 3 is the program flow diagram of peripheral hardware slave in the embodiment of the invention.
Embodiment
By the present invention being applied on electrical fire monitor (main frame) and the electrical fire detector (peripheral hardware slave) the present invention is carried out detailed specific description.
As shown in Figure 2, the present invention comprises at the method step of host side:
(1), the messaging parameter that disposed when from the parameter access section, reading earlier the main frame operation of curing of main frame, wherein messaging parameter comprises data bit, baud rate, verification mode, position of rest;
(2), initialize communication interface;
(3), issue the operation message to each peripheral hardware slave repeating query successively;
(4), regular visit has or not the peripheral hardware slave of long-time dont answer; If all communication is normal, forward step (3) to; If when having unresponsive peripheral hardware slave, then carry out next step;
(5), read predetermined messaging parameter of acquiescence and initialization interface again;
(6), broadcast transmission messaging parameter message, return step (1) then.
As shown in Figure 3, the present invention comprises at the method step of peripheral hardware slave end:
(a), the peripheral hardware slave reads the predetermined messaging parameter of the acquiescence consistent with main frame earlier, wherein messaging parameter comprises data bit, baud rate, verification mode, position of rest;
(b), initialize communication interface;
(c), judge whether to receive the messaging parameter message that host broadcast issues; If carry out next step; If not, returning continuation receives;
(d), parse the messaging parameter of main frame, and initialize communication interface again;
(e), judge whether to receive main frame operation message, if carry out next step; If not; Return and continue to receive;
(f), judge that received operation message is whether in the standard time (can be set at 5s), if return and continue to receive the operation message; If not, return step (a).
Claims (3)
1. a peripheral hardware slave mates the interconnected method of main-machine communication parameter realization automatically, and it is characterized in that: may further comprise the steps: (1), main frame read the messaging parameter and the initialization interface of configuration, and the peripheral hardware slave reads the messaging parameter and the initialization interface of acquiescence;
(2), the main frame repeating query issues the operation message;
(3), main frame patrols and examines the whether all proper communication of peripheral hardware slave automatically, if main frame continues repeating query and issues the operation message; If not, then main frame reads the messaging parameter and the initialization interface of acquiescence, and broadcast transmission messaging parameter message returns messaging parameter and initialization interface that step (1) reads configuration then;
When (4) the peripheral hardware slave receives the messaging parameter message that main frame issues, decomposite messaging parameter wherein, reinitialize interface and wait for that main frame sends the operation message;
(5), whether the peripheral hardware slave operation message that receives main frame be above standard the time limit, if then return messaging parameter and initialization interface that step (1) reads acquiescence; If not, continue to wait for that main frame issues the operation message.
2. peripheral hardware slave according to claim 1 mates the main-machine communication parameter automatically realizes interconnected method, and it is characterized in that: described messaging parameter comprises data bit, baud rate, position of rest, verification mode.
3. the main-machine communication parameter of peripheral hardware slave according to claim 1 and 2 mating automatically realizes interconnected method, it is characterized in that: be limited to 5s during standard in the described step (5).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100233934A CN102143064A (en) | 2011-01-21 | 2011-01-21 | Method for achieving interconnection of communication parameters for automatically matching peripheral slave machine with host |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100233934A CN102143064A (en) | 2011-01-21 | 2011-01-21 | Method for achieving interconnection of communication parameters for automatically matching peripheral slave machine with host |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102143064A true CN102143064A (en) | 2011-08-03 |
Family
ID=44410299
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100233934A Pending CN102143064A (en) | 2011-01-21 | 2011-01-21 | Method for achieving interconnection of communication parameters for automatically matching peripheral slave machine with host |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102143064A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016192047A (en) * | 2015-03-31 | 2016-11-10 | パナソニックIpマネジメント株式会社 | Extension unit for automatic fire alarm system, and automatic fire alarm system using the same |
CN110995686A (en) * | 2019-11-26 | 2020-04-10 | 珠海泰芯半导体有限公司 | Software communication protocol checking method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101163075A (en) * | 2006-10-10 | 2008-04-16 | 中兴通讯股份有限公司 | Method of implementing embedded device address installation by RS 485 bus competition |
CN201274495Y (en) * | 2008-07-29 | 2009-07-15 | 人民电器集团有限公司 | Host communication module |
CN101753394A (en) * | 2009-12-09 | 2010-06-23 | 艾默生网络能源有限公司 | Communication method for accessing a plurality of intelligent devices to single serial port and single serial port |
-
2011
- 2011-01-21 CN CN2011100233934A patent/CN102143064A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101163075A (en) * | 2006-10-10 | 2008-04-16 | 中兴通讯股份有限公司 | Method of implementing embedded device address installation by RS 485 bus competition |
CN201274495Y (en) * | 2008-07-29 | 2009-07-15 | 人民电器集团有限公司 | Host communication module |
CN101753394A (en) * | 2009-12-09 | 2010-06-23 | 艾默生网络能源有限公司 | Communication method for accessing a plurality of intelligent devices to single serial port and single serial port |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016192047A (en) * | 2015-03-31 | 2016-11-10 | パナソニックIpマネジメント株式会社 | Extension unit for automatic fire alarm system, and automatic fire alarm system using the same |
CN110995686A (en) * | 2019-11-26 | 2020-04-10 | 珠海泰芯半导体有限公司 | Software communication protocol checking method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105224362A (en) | Host computer carries out the method and system of program upgrade to slave computer | |
CN101839790A (en) | Intelligent on-line calibration system | |
CN103475747B (en) | Address information sending method of electric energy meter networked system capable of automatically sending address information | |
CN103544096A (en) | Method and system for feeding back information in case of operational failure of Android terminal | |
CN105057928A (en) | Information management system of welding production line | |
CN104331063A (en) | Industrial field equipment remote diagnosis maintenance system and method | |
CN104580148A (en) | Method for simple data interaction between electric power region I and electric power III by using reserve 1bit data of forward direction isolating device | |
WO2023098375A1 (en) | Operation sheet processing method and device, storage medium, and electronic device | |
CN105322660B (en) | The long-range control method and device of distribution communication apparatus | |
CN104618442A (en) | Remote control method, equipment and system of air conditioner | |
CN110912914A (en) | Gas pipe network monitoring data acquisition terminal and multi-protocol matching method | |
CN105183685A (en) | Method for acquiring slave machine addresses based on I2C communication protocol and I2C communication system | |
CN104298194A (en) | Method for compressing acquisition and transmission data in elevator remote monitoring system | |
CN113810788A (en) | Intelligent ammeter information transmission method and device and terminal equipment | |
CN104597789A (en) | Charging pile self-checking device, system and method | |
CN102143064A (en) | Method for achieving interconnection of communication parameters for automatically matching peripheral slave machine with host | |
CN205229701U (en) | Servo motor control system | |
CN104506604A (en) | Vehicle-mounted terminal automatic remote upgrading method | |
CN106855850A (en) | Based on portable equipment intelligent substation secondary void terminal figure reality symbol detection method | |
CN102957739B (en) | For the communication means in electric automobile charging station monitoring system and device | |
CN103607051B (en) | A kind of transformer station's enlargement method and system | |
CN104811347A (en) | Software updating method, monitoring module, rectifying module and system | |
CN102764504B (en) | Information output method and electronic equipment | |
CN105553865A (en) | FC switch chip communication credit management testing method | |
CN108254694A (en) | A kind of battery operational data acquisition method, system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110803 |