CN102546332A - Networking communication method for upper computers and lower computers - Google Patents

Networking communication method for upper computers and lower computers Download PDF

Info

Publication number
CN102546332A
CN102546332A CN2010105888872A CN201010588887A CN102546332A CN 102546332 A CN102546332 A CN 102546332A CN 2010105888872 A CN2010105888872 A CN 2010105888872A CN 201010588887 A CN201010588887 A CN 201010588887A CN 102546332 A CN102546332 A CN 102546332A
Authority
CN
China
Prior art keywords
computers
host computer
slave computer
instruction
computer
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
CN2010105888872A
Other languages
Chinese (zh)
Other versions
CN102546332B (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.)
Shenzhen city Keweining Technology Co. Ltd.
Original Assignee
黄越杰
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 黄越杰 filed Critical 黄越杰
Priority to CN201010588887.2A priority Critical patent/CN102546332B/en
Publication of CN102546332A publication Critical patent/CN102546332A/en
Application granted granted Critical
Publication of CN102546332B publication Critical patent/CN102546332B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Multi Processors (AREA)

Abstract

The invention discloses a networking communication method for upper computers and lower computers. The networking communication method comprises the following steps: the upper computers send broadcast query instructions or interrupt pulse signals and start a first timer to count down; the upper computers are set into instruction data receiving states in the period of countdown; the lower computers start broadcast query instruction judgment programs or interrupt pulse signal detection programs if instruction data are required to be uploaded; the lower computers return local address codes or specific coding instructions to the upper computers if judging that the broadcast query instructions or the interrupt pulse signals exist; the upper computers judge whether the returned address codes or the specific coding instructions belong to address values or code values which are registered in the upper computers and comply with instructions rules or not in the period that the first timer times; and if the instruction data comply with the instruction rules, the upper computers query the lower computers one by one according to the address codes or the specific coding instructions and exchange data with the corresponding lower computers. The networking communication method has the advantages of: high communication efficiency, and no code conflict among the low computers.

Description

The networking means of communication of host computer and slave computer
Technical field
The present invention relates to the networking means of communication of single host computer and a plurality of slave computers, especially upload the communication of data method through two buses or single channel frequency carrier.
Background technology
The mutual means of communication of swap data between existing single host computer and a plurality of slave computer generally are so that upper wheel is ask or the pattern that the slave computer single or multiple is uploaded, and carry out communication.If the slave computer quantity of these communication mode networkings is many, cause communication efficiency seriously to delay easily.
For the communication mode that carries out send out query statement by host computer after; If under the more situation of line slave computer; The situation that indivedual slave computers go offline particularly occurs, data communication efficient will delay greatly, so that the data of slave computer can't upwards be transmitted with the fastest speed; Might be at several seconds even the longer host computer of just passing on, the respond of slave computer data upload is not enough.
For the communication mode that is initiatively sent signal by slave computer, the respond of host computer is very high, but two slave computers just are easy to when uploading data simultaneously dash sign indicating number, and causes the total system paralysis.
Summary of the invention
To the deficiency that above-mentioned prior art exists, the present invention provides the networking means of communication of a kind of host computer and slave computer, and it has the advantages that can not take place between communication efficiency height, the slave computer towards code conflicts.
To achieve these goals, the technical scheme that the present invention adopted is:
The networking means of communication of host computer and slave computer may further comprise the steps:
(1) host computer sends broadcast query instruction or interruption pulse signal, and starts the first timer countdown, during the countdown in, host computer is arranged to the director data accepting state;
(2) then launch broadcast query instruction determining program or interruption pulse signal detection program if there is director data to upload in the slave computer buffer memory;
(3) slave computer determines and has broadcast query instruction or interruption pulse signal, then returns the director data of representing with this machine address code or specific coding to host computer after the time-delay rule timing by this machine, and automatic formation is delayed time in proper order between each slave computer;
(4) in during the first timer timing, host computer is judged the director data that returns, and whether belongs to the address value or the encoded radio that meet the instruction rule of registration in the host computer, if do not meet the instruction rule, then abandons this director data;
(5) if director data meets the instruction rule, host computer is inquired about slave computer one by one according to this address code or specific coding, does the data exchange with the slave computer of corresponding address sign indicating number or specific coding.
Further, the time length of the countdown of said first timer is not less than the maximum address code of slave computer or the product of specific coding and the required communication time of return instruction data.
In the said step (3); Slave computer inner setting buffer memory keeps duration, surpasses this buffer memory like director data and keeps duration, successfully is not uploaded to host computer; Then remove the function of time-delay return address instruction automatically, and close broadcast query instruction determining program or interruption pulse signal detection program.
Technical conceive of the present invention is: under the situation of same time delay initialization time; Each slave computer returns the director data of representing with this machine address code or specific coding according to different time delay to host computer; Two slave computers can not appear like this because of uploading yard phenomenon of dashing that director data causes simultaneously; Then, host computer is inquired about corresponding slave computer one by one and is done the data exchange according to address code of returning or specific coding instruction again;
In addition; The communication mode that the present invention adopts is: send at host computer on the basis of query statement or interruption pulse signal; Slave computer is if having director data to upload then launches broadcast query instruction determining program or interruption pulse signal detection program, and the two just carries out exchanges data after cooperating; For the situation that slave computer had just gone offline before data communication takes place, slave computer can not start broadcast query instruction determining program or interruption pulse signal detection program, does not carry out communication and connects, and can not influence whole communication process naturally; Slave computer keeps duration and uploads effective timeliness of director data with qualification through setting buffer memory, and avoiding the slave computer data to upload because of delaying influences communication efficiency, and the while is also avoided delivering to host computer to out-of-date data.
Beneficial effect of the present invention is: can not take place between (1) slave computer towards code conflicts so that systemic breakdown; (2) can not influence communication efficiency before data communication takes place because of single slave computer went offline; (3) slave computer is set the effective timeliness upload director data, and avoiding the director data of slave computer to upload because of delaying influences communication efficiency, and the while is also avoided delivering to host computer to out-of-date data.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is further specified.
Fig. 1 is the networking structure figure of host computer of the present invention and slave computer.
Fig. 2 is the time-delay response diagram of slave computer of the present invention.
Fig. 3 is a host computer workflow diagram of the present invention.
Fig. 4 is a slave computer workflow diagram of the present invention.
Embodiment
The following stated is merely preferred embodiment of the present invention, does not therefore limit protection scope of the present invention.
Embodiment; See that Fig. 1 is to shown in Figure 4: the networking means of communication of host computer and slave computer; Be applicable to that a host computer and a plurality of slave computer walk the networking model of same physical communication line or upload and descend to pass use the networking model of the carrier communication of same frequency channels; In the present embodiment, slave computer has 5, is respectively No. 1 slave computer, No. 2 slave computers, No. 3 slave computers, No. 4 slave computers, No. 5 slave computers.These networking means of communication may further comprise the steps:
(1) host computer sends broadcast query instruction or interruption pulse signal, and starts the first timer countdown, during the countdown in, host computer is arranged to the director data accepting state;
(2) then launch broadcast query instruction determining program or interruption pulse signal detection program if there is director data to upload in the slave computer buffer memory;
(3) slave computer determines and has broadcast query instruction or interruption pulse signal; Then start the second timer countdown, in this process, whether slave computer constantly detects second timer and overflows; When second timer overflows; Also the i.e. second timer timing finishes, and returns the director data of representing with this machine address code or specific coding to host computer after the time-delay rule timing of slave computer by this machine, and automatic formation is delayed time in proper order between each slave computer; The meaning of order time-delay is that under the situation of same time delay initialization time, each slave computer delay time increases progressively in proper order.The time length of the said second timer countdown is not less than address instruction and the product that returns the required communication time of this address instruction;
(4) in during the first timer timing, host computer judges that whether the director data that returns belongs to the address value or the encoded radio that meet the instruction rule of registration in the host computer, if director data does not meet the instruction rule, then abandons this director data; If director data meets the instruction rule, then this director data is write program cache to be ask;
(5) host computer judges whether first timer overflows; Then do not return step (4) if having to overflow,, then judge to wait to ask whether director data is arranged in the program cache if first timer overflows; If there is not director data then to return step (1); If director data is arranged then according to the address code or the specific coding instruction of waiting to ask in the program cache, inquire about slave computer one by one, do the data exchange with corresponding slave computer; Corresponding each slave computer, after the exchanges data success, host computer sends communication to this slave computer and successfully instructs, and slave computer is closed broadcast query instruction determining program or interruption pulse signal detection program;
(6) treat that inquiring about slave computer one by one finishes after, host computer empties program cache to be ask, and returns step (1) circulation.
In the said step (3); Slave computer inner setting buffer memory keeps duration, surpasses this buffer memory like director data and keeps duration, successfully is not uploaded to host computer; Then remove the function of time-delay return address instruction automatically, and close broadcast query instruction determining program or interruption pulse signal detection program.Upload effective timeliness of address instruction through setting slave computer, the address instruction that guarantees slave computer is unlikely to upload because of delaying influences communication efficiency, and the while is also avoided delivering to host computer to out-of-date data.
The time length of the countdown of said first timer is not less than the maximum address code of slave computer or the product of specific coding and the required communication time of return instruction data.
The operation principle of present embodiment: under the situation of same time delay initialization time; Each slave computer returns the director data (address code or specific coding) of this machine to host computer according to different time delay; Two slave computers can not appear like this because of uploading yard phenomenon of dashing that director data causes simultaneously; Then, host computer is inquired about corresponding slave computer one by one and is done the data exchange according to address code of returning or specific coding instruction again;
In addition; The communication mode that present embodiment adopts is: send at host computer on the basis of query statement or interruption pulse signal; Slave computer is if having director data to upload then launches broadcast query instruction determining program or interruption pulse signal detection program, and the two just carries out exchanges data after cooperating; For the situation that slave computer had just gone offline before data communication takes place, slave computer can not start broadcast query instruction determining program or interruption pulse signal detection program, does not carry out communication and connects, and can not influence whole communication process naturally; Slave computer keeps duration and uploads effective timeliness of director data with qualification through setting buffer memory, and avoiding the slave computer data to upload because of delaying influences communication efficiency, and the while is also avoided delivering to host computer to out-of-date data.
For the situation that slave computer has just gone offline after data communication takes place, host computer judges at regular intervals then whether address code or specific coding that data communication once took place exist, and unwritten, then the early warning slave computer goes offline.Present embodiment interval judgement time is 60 seconds.
In order in time to reflect the slave computer presence, if slave computer does not have director data to upload for a long time.Can let the automatic self check timing of slave computer, such as: slave computer does not have data and upper machine communication, keeps surpassing for 60 seconds, forms online communication instruction automatically, opens broadcast query instruction determining program or interruption pulse signal detection program.

Claims (3)

1. the networking means of communication of host computer and slave computer is characterized in that may further comprise the steps:
(1) host computer sends broadcast query instruction or interruption pulse signal, and starts the first timer countdown, during the countdown in, host computer is arranged to the director data accepting state;
(2) then launch broadcast query instruction determining program or interruption pulse signal detection program if there is director data to upload in the slave computer buffer memory;
(3) slave computer determines and has broadcast query instruction or interruption pulse signal, then returns the director data of representing with this machine address code or specific coding to host computer after the time-delay rule timing by this machine, and automatic formation is delayed time in proper order between each slave computer:
(4) in during the first timer timing, host computer is judged the director data that returns, and whether belongs to the address value or the encoded radio that meet the instruction rule of registration in the host computer, if do not meet the instruction rule, then abandons this director data;
(5) if director data meets the instruction rule, host computer is inquired about slave computer one by one according to this address code or specific coding, does the data exchange with the slave computer of corresponding address sign indicating number or specific coding.
2. the networking means of communication of host computer according to claim 1 and slave computer is characterized in that: the time length of the countdown of said first timer is not less than the maximum address code of slave computer or the product of specific coding and the required communication time of return instruction data.
3. the networking means of communication of host computer according to claim 1 and 2 and slave computer; It is characterized in that: in the said step (3); Slave computer inner setting buffer memory keeps duration, surpasses this buffer memory like address instruction and keeps duration, successfully is not uploaded to host computer; Then remove the function of time-delay return address instruction automatically, and close broadcast query instruction determining program or interruption pulse signal detection program.
CN201010588887.2A 2010-12-14 2010-12-14 Networking communication method for upper computers and lower computers Expired - Fee Related CN102546332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010588887.2A CN102546332B (en) 2010-12-14 2010-12-14 Networking communication method for upper computers and lower computers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010588887.2A CN102546332B (en) 2010-12-14 2010-12-14 Networking communication method for upper computers and lower computers

Publications (2)

Publication Number Publication Date
CN102546332A true CN102546332A (en) 2012-07-04
CN102546332B CN102546332B (en) 2015-06-17

Family

ID=46352333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010588887.2A Expired - Fee Related CN102546332B (en) 2010-12-14 2010-12-14 Networking communication method for upper computers and lower computers

Country Status (1)

Country Link
CN (1) CN102546332B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790382A (en) * 2016-11-24 2017-05-31 深圳市新威尔电子有限公司 Battery tester slave computer management method and system
CN109889593A (en) * 2019-02-27 2019-06-14 中国人民解放军海军工程大学 A kind of distributed slave means of communication moving motor-driven shelter for guaranteeing and device
CN110781695A (en) * 2018-07-30 2020-02-11 南京溯源信息技术有限公司 Implementation method of high-frequency reader-writer with address code
CN111654557A (en) * 2020-05-29 2020-09-11 宋斌 Automatic distribution method of RS485 address codes, upper computer and lower computer
CN112241378A (en) * 2020-10-16 2021-01-19 珠海格力电器股份有限公司 Device for BMS system and network topology structure thereof
CN113423069A (en) * 2021-06-30 2021-09-21 重庆建安仪器有限责任公司 Method for networking communication between single upper computer and multiple radiation measuring devices
CN113433929A (en) * 2021-07-21 2021-09-24 上海星融汽车科技有限公司 Multi-request remote diagnosis method, equipment and system
CN113905010A (en) * 2021-09-03 2022-01-07 中航航空电子有限公司 Message scheduling method and device, computer equipment and storage medium
CN114462004A (en) * 2022-02-08 2022-05-10 无锡盛景微电子股份有限公司 Method and system for automatically detecting identity information of lower computer in master-slave network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN86104678A (en) * 1985-07-09 1987-03-04 科迪克斯公司 The detection of the contention conflict in the communication network and the device that avoids conflict
CN101360062A (en) * 2008-09-17 2009-02-04 中兴通讯股份有限公司 Method and system implementing service of multi-point to multi-point Ethernet with root node
CN101534230A (en) * 2009-04-15 2009-09-16 中控科技集团有限公司 A method for sending data based on Ethernet, Ethernet nodes and a control system
WO2010125284A1 (en) * 2009-04-30 2010-11-04 Peugeot Citroen Automobiles Sa Method for transmitting periodic messages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN86104678A (en) * 1985-07-09 1987-03-04 科迪克斯公司 The detection of the contention conflict in the communication network and the device that avoids conflict
CN101360062A (en) * 2008-09-17 2009-02-04 中兴通讯股份有限公司 Method and system implementing service of multi-point to multi-point Ethernet with root node
CN101534230A (en) * 2009-04-15 2009-09-16 中控科技集团有限公司 A method for sending data based on Ethernet, Ethernet nodes and a control system
WO2010125284A1 (en) * 2009-04-30 2010-11-04 Peugeot Citroen Automobiles Sa Method for transmitting periodic messages

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790382B (en) * 2016-11-24 2020-06-12 深圳市新威尔电子有限公司 Lower computer management method and system of battery testing device
CN106790382A (en) * 2016-11-24 2017-05-31 深圳市新威尔电子有限公司 Battery tester slave computer management method and system
CN110781695A (en) * 2018-07-30 2020-02-11 南京溯源信息技术有限公司 Implementation method of high-frequency reader-writer with address code
CN109889593B (en) * 2019-02-27 2021-11-12 中国人民解放军海军工程大学 Distributed master-slave machine communication method and device for mobile security shelter
CN109889593A (en) * 2019-02-27 2019-06-14 中国人民解放军海军工程大学 A kind of distributed slave means of communication moving motor-driven shelter for guaranteeing and device
CN111654557A (en) * 2020-05-29 2020-09-11 宋斌 Automatic distribution method of RS485 address codes, upper computer and lower computer
CN112241378A (en) * 2020-10-16 2021-01-19 珠海格力电器股份有限公司 Device for BMS system and network topology structure thereof
CN112241378B (en) * 2020-10-16 2023-05-02 珠海格力电器股份有限公司 Device for BMS system and system of network topology structure thereof
CN113423069A (en) * 2021-06-30 2021-09-21 重庆建安仪器有限责任公司 Method for networking communication between single upper computer and multiple radiation measuring devices
CN113433929B (en) * 2021-07-21 2022-04-19 上海星融汽车科技有限公司 Multi-request remote diagnosis method, equipment and system
CN113433929A (en) * 2021-07-21 2021-09-24 上海星融汽车科技有限公司 Multi-request remote diagnosis method, equipment and system
CN113905010A (en) * 2021-09-03 2022-01-07 中航航空电子有限公司 Message scheduling method and device, computer equipment and storage medium
CN114462004A (en) * 2022-02-08 2022-05-10 无锡盛景微电子股份有限公司 Method and system for automatically detecting identity information of lower computer in master-slave network
CN114462004B (en) * 2022-02-08 2023-08-22 无锡盛景微电子股份有限公司 Method and system for automatically detecting lower-level machine body information in master-slave network

Also Published As

Publication number Publication date
CN102546332B (en) 2015-06-17

Similar Documents

Publication Publication Date Title
CN102546332A (en) Networking communication method for upper computers and lower computers
CN102262879B (en) Voice command competition processing method and device as well as voice remote controller and digital television
KR101162156B1 (en) Downstream device service latency reporting for power management
CN101615067A (en) Coordinated link power management
CN103377638B (en) A kind of method of quick response signal and device
JP2008503977A5 (en)
US9578612B2 (en) Node device and method for communication
EP3066872B1 (en) Efficient operation of user equipment in a wireless communication network
CN107908271A (en) Prophylactic applications influence the method, apparatus and intelligent terminal of intelligent terminal power consumption
CN101739305A (en) Operating system kernel level real-time dongle monitoring device and monitoring method thereof
CN105830498A (en) Target cell selection method and terminal
CN103049992A (en) Broadcast meter-reading method for wireless intelligent meter-reading system
CN108684071A (en) The power consumption control method and system of the device node of MESH network
CN106303710A (en) Playing list dispatching method and playing list dispatching device
CN105718396B (en) A kind of I of big data master transmissions2C bus units and its means of communication
EP1975763B1 (en) Resource power controller
JP2006014167A5 (en)
CN105607874A (en) SATA (Serial advanced technology attachment) protocol acceleration module, host and hard disk communication method, as well as solid state drive controller
CN111277285A (en) Radio frequency chip signal receiving method, device and system
CN104917696A (en) Periodic and non-periodic mixed communication method and system used for low-speed serial bus
CN101841476A (en) Message processing method, device and network equipment
CN102710481B (en) Token turnover control method, device and system
CN104572184A (en) Method and system for loading electronic game resources
US6607126B2 (en) Method for collecting data from electronic voting units
CN103957558A (en) Adjacent region measuring method, device and 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
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151104

Address after: 518114, Longgang, Guangdong province Shenzhen District, South Bay Street cloth Road No. 31, Ying Ying jewelry industrial zone, a plant A2-1102

Patentee after: Shenzhen city Keweining Technology Co. Ltd.

Address before: 516100 Guangdong Lantian Stone County of Boluo province No. 49 West Town neighborhood

Patentee before: Huang Yuejie

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

Granted publication date: 20150617

Termination date: 20181214