CN1261236A - Method for transferring messages with dual control words - Google Patents

Method for transferring messages with dual control words Download PDF

Info

Publication number
CN1261236A
CN1261236A CN 99116016 CN99116016A CN1261236A CN 1261236 A CN1261236 A CN 1261236A CN 99116016 CN99116016 CN 99116016 CN 99116016 A CN99116016 A CN 99116016A CN 1261236 A CN1261236 A CN 1261236A
Authority
CN
China
Prior art keywords
message
control word
master control
debit
sign
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
CN 99116016
Other languages
Chinese (zh)
Other versions
CN1119004C (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 99116016 priority Critical patent/CN1119004C/en
Publication of CN1261236A publication Critical patent/CN1261236A/en
Application granted granted Critical
Publication of CN1119004C publication Critical patent/CN1119004C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

A message transmission method using dual control words as flag is disclosed. One of the control words is used as main control word and another as ackowledgement control word. Said method can increase message exchange reliability of communication system, save CPU resource and simplify hardware circuit, and is suitable for the communication or monitor system, where CPU interruption resource is less and the dual-port RAM is used by dual CPUs for high-speed message exchange.

Description

A kind of method of using dual control words to transmit message
The present invention relates to the communication technology, more particularly, relate to application technologies such as the communication that needs message, monitoring.
As shown in Figure 1, two-port RAM (random access memory) is used widely in high-speed data exchange and some high-speed data acquisitions and the treatment system between two CPU (CPU) as a kind of RAM of specific type.It has two independently ports, has cover corresponding data/address bus, address bus and a control bus separately, allows two ports independences, asynchronously any memory cell in the memory is carried out accessing operation.When two ports carry out accessing operation to the same unit in the memory simultaneously, can determine which side efficient in operation by its inner arbitrated logic.Use at present more dual port RAM as IDT7132/IDT7142 etc., be high speed 2K * 8 a dual-port static RAM.
Two-port RAM in use it should be noted that the data collision problem.Though on hardware, its inside has arbitrated logic, when carrying out accessing operation to the same unit of memory simultaneously, two ports can provide priority level, and the sequential of signal is relevant on the decision of priority and some pin.Therefore, the method that two-port RAM is carried out accessing operation is different from general RAM.Referring to " application of two-port RAM in principal and subordinate's parallel processing system (PPS) ", Chen Weidong etc., robot research institute of Harbin Institute of Technology, " microelectronics and computer ", 1996 the 3rd phases, " dual-ported memory ", Li Xiaozhong, " telecommunications exchange ", 1996 the 2nd phases, can use interruption method and query method in the practical application: when CPU has idle interrupt pin, can adopt the interruption method, directly with the rising edge of BUSY signal as interrupt source; When adopting query method, because be 20ns the typical effective time of BUSY, and the general single-chip microcomputer machine instruction cycle is μ s magnitude, so must be by adding the effective time of trigger expansion BUSY, make CPU to discern, perhaps the rising edge by BUSY makes the flip-flop states counter-rotating, judges by state before and after comparing trigger whether this operation is effective.
More than two kinds of hardware processing method, though reliable, efficient is lower, and in considerable design, the interrupt resources anxiety, the space that the PCB of circuit board (printed circuit board (PCB)) fabric swatch has not added trigger, interruption method and query method all can't use.Therefore, for simplifying management, the simplification hardware circuit to interrupt source and raising the efficiency, the most important thing is the reliability in order to guarantee that channel massage transmits, we have adopted a kind of particular processing method: the dual control words mode of operation that guarantees reliable transceiver channel message.
By software processes a variety of modes can be arranged, as adopt single control word technology, memory cell partitioning technique or internal storage access to distinguish district and intersection handover access technology, referring to " processing method of two-port RAM accessing operation ", Zhao Jianrong etc., Harbin Institute of Technology's 339 mailbox, " application of electronic technology ", 1996 the 6th phases, but the processing method of software designs according to the actual accessing operation situation of dual port RAM in the application system mostly, so the developer must go out simple, the effective and reliable mode of operation of accessing operation according to the Application Design of oneself.
The object of the present invention is to provide the means of communication of channel switch message in a kind of communication technology, with the reliability that guarantees that message is transmitted between the transmitting-receiving side.
The present invention also aims to avoid more loaded down with trivial details hardware modification, the angle from software reaches the purpose that improves the message transfer reliability as far as possible, thereby can adapt to more communication system.
The present invention also aims to provide the means of communication of channel switch message in a kind of communication technology,, simplify hardware circuit, improve running efficiency of system can save the CPU interrupt resources.
The object of the present invention is achieved like this, and a kind of method of using dual control words to transmit message adopts two control words as controlled flag, and one of them is the master control control word, and another is to confirm control word.The figure place of control word wants to represent the status number preset.When originating party when the debit sends message, described method comprises the steps: 1) originating party at first inquires about the master control control word, sign as the master control control word shows present channel massage district sky, acknowledgment of your inquiry control word again, show that the debit has correctly received the last a piece of news that originating party sends if confirm the sign of control word, then originating party can write this message, the message that writes originating party arrives after the channel massage district, to confirm that earlier control word is rewritten as default sign, again the master control control word is rewritten as default sign, show that originating party has write message, but the debit does not read away also; Represent that the debit receives message error if inquire the sign of master control control word, originating party should be retransmitted a piece of news at once; Show that the data in the present channel massage district are not also read away by the debit if inquire the sign of master control control word, originating party need wait for that the debit reads to go on a piece of news, could handwritten copy bar message; 2) debit inquires about the master control control word, and originating party is not sent out message if the sign of master control control word is represented this moment, and the channel massage district is empty, and then the debit does not move; If the sign of master control control word is represented this moment and has deposited the message that originating party sends in the channel massage district that then the debit can read away the data in the channel massage district; The sign of master control control word can also be set at the expression originating party and also not send the message that the debit requires originating party to retransmit; 3) debit carries out the type of message judgement to sense data, if type is correct, at first write-back is confirmed control word for setting sign, and write-back master control control word is to set sign then, and the expression debit correctly receives message; If type exceeds the message scope, then write-back master control control word is for setting sign, and the expression debit receives message error, requires the originating party resend message.
In statement of the present invention, claim dual control words to be the master control control word and to confirm control word, but this only is a kind of form of presentation, and the present invention has comprised and so do not call dual control words but adopted dual control words and the means of communication of the processing identical or similar with the present invention.
The invention has the advantages that and improved the reliability that message is transmitted between the transmitting-receiving side.
The mode of operation of dual control words has further improved the reliability of information receiving and transmitting than the mode of single control word, reason is under two control modes, when writing message, elder generation's write acknowledgement control word, after write the master control control word, and when reading message, read earlier the master control control word, after read to confirm control word, the probability that reads while write control word is more much lower than single control mode, fundamentally reduce the conflict probability of dual port RAM read-write operation, thereby improved the reliability of channel massage exchange.In the practical application of system debug and operation, verified this point.
With exchanging messages between base station master control borad CPU and the user's plate CPU in the wireless access system among the embodiment hereinafter is example, user's plate sends when master control borad shows the spare time shows not busy message, if master control borad is not received, this channel will be hung, phenomenon shows as: master control borad thinks that this channel still is in busy condition, and in fact this channel has shown the spare time to master control borad, and master control borad thinks that the wireless and wire user that originally continues or converse is just busy on this channel, no longer respond their any subsequent request, and no longer give this channel allocation task, cause the serious consequence of this channel and relative users deadlock.When using single control word, the situation that channel is hung can appear accidentally, find that through verification reason is that the not busy message master control borad that shows that user's plate sends is not correctly received, at this situation, adopt the dual control words mode, user's plate to master control borad send show not busy message after, master control borad is if receive that this shows not busy message, must should confirm that control word is default sign by write-back, user's plate acknowledgment of your inquiry control word, if confirm that the sign of control word shows that master control borad has been received and shows not busy message, then user's plate just leaves after confirming, has so just guaranteed that channel can be by deadlock.
From the master slave relation of master control borad and user's plate, the message that master control borad sends is not in case user's plate is received, and master control borad thinks that user's plate received and entered corresponding state, this will cause the confusion of channel status, so must guarantee the message that master control borad sends, user's plate must correctly be received.Receive the message that master control borad sends for guaranteeing user's plate, master control borad software and user's plate software are coordinated, adopt the dual control words mode, promptly additional user's plate is received the message authentication control word, user's plate is after receiving the message that master control borad sends, at first write-back should confirm that control word was default sign, and then write-back master control control word is default sign, received message to master control borad affirmation user plate, just leave then, master control borad can accurately be grasped the state of each channel like this, thereby has guaranteed correctly complete connection process of all channels.
The dual control words mode of operation that design is used in the wireless access base station system, be that two-port RAM is carried out more advanced, effective, reliable a kind of mode of operation in the software processes scheme of accessing operation, it has been avoided hardware processing method and has taken CPU interrupt resources and the lower weakness of operational efficiency, saved the CPU interrupt resources, simplify hardware circuit, and improved running efficiency of system.
The present invention be advantageous in that and avoided more loaded down with trivial details hardware modification, reached the purpose of raising message transfer reliability basically from the angle of software, thereby can adapt to more communication system.
The present invention be advantageous in that and to save the CPU interrupt resources, simplify hardware circuit, improved running efficiency of system.
More in interrupt source, CPU interrupt pin resource is occupied, and in the system that need raise the efficiency, with be applicable to that two CPU are undertaken during the communicating by letter of high speed message, monitoring etc. use by two-port RAM, the advantage applies of this dual control words mode of operation gets especially obvious.
Description of drawings:
Fig. 1 is the two-port RAM block diagram.
Fig. 2 is that user's plate sends master control borad receive channel message schematic block diagram.
Fig. 3 is that master control borad sends user's plate receive channel message schematic block diagram.
Further specify the present invention below in conjunction with accompanying drawing.
With exchanging messages between master control borad CPU in base station in the wireless access system and the user's plate CPU is example, and its transmitting-receiving operation comprises:
A. user's plate sends message to master control borad, and master control borad receives corresponding message;
B. master control borad sends message to user's plate, and user's plate receives corresponding message.
On the base station radio user plate of wireless access local loop circuit system, use IDT7132 finishes the information exchange between master control borad and the wireless user's plate.
Here get master control and respectively get eight bit, be i.e. a binary system byte (byte) with the affirmation control word.The master control control word can be three kinds of hexadecimal number #00H, #0FFH, #0AAH, confirms that control word can be two kinds of hexadecimal number #00H, #0FFH.Here hexadecimal number 0 is expressed as #00H, the representation class of other hexadecimal numbers seemingly.
Fig. 2 is that user's plate sends master control borad receive channel message schematic block diagram, and master control borad CPU adopts 8031 here, and user's plate CPU adopts 89C55; The master control control word is a byte, confirms that control word also is a byte, and the channel massage district is some bytes; Shown in the figure is dual port RAM register A group.When user's plate need send message to master control borad, operate according to the following procedure:
(1) user's plate is at first inquired about the master control control word, the master control control word is #00H, shows present channel massage district sky, again the acknowledgment of your inquiry control word, if confirm that control word is #99H, show that master control borad correctly received the last a piece of news that user's plate sends, user's plate can write this message, and user's plate writes message after the channel massage district, to confirm that control word is rewritten as #00H, again the master control control word is rewritten as #0FFH, show that user's plate has write message, but master control borad is not read away also; If inquire the master control control word is #0AAH, and the expression master control borad receives message error, and user's plate should be retransmitted a piece of news at once; If inquiring the master control control word is #0FFH, show that the data in the present channel massage district are not also read away by master control borad, need the wait master control borad to read to go on a piece of news, could handwritten copy bar message.
(2) master control borad inquiry master control control word, if #00H, expression user's plate this moment is not sent out message, channel massage district sky, master control borad does not move; If #0FFH, expression has deposited the message that user's plate sends in the channel massage district this moment, and master control borad can be read away data in the channel massage district; If #0AAH, the message that the expression master control borad requires user's plate to retransmit, user's plate does not also send.
(3) master control borad carries out the type of message judgement to sense data, if type is correct, at first write-back is confirmed control word #99H, and write-back master control control word #00H represents that master control borad correctly receives message then; If type exceeds the message scope, write-back master control control word #0AAH, the expression master control borad receives message error, requires user's plate resend message.
Said process 1,2,3 moves in circles successively, finishes user's plate and sends the process of master control borad receive channel message.
Fig. 3 is that master control borad sends user's plate receive channel message schematic block diagram, and master control borad CPU adopts 8031 here, and user's plate CPU adopts 89C55; The master control control word is a byte, confirms that control word also is a byte, and the channel massage district is some bytes; Shown in the figure is dual port RAM register B group.When user's plate need send message to master control borad, in the time of need sending message to user's plate by following excessive master control borad, operate according to the following procedure:
(1) master control borad is at first inquired about the master control control word, the master control control word is #00H, shows present channel massage district sky, again the acknowledgment of your inquiry control word, if confirm that control word is #99H, show that user's plate correctly received the last a piece of news that master control borad sends, master control borad can write this message, and master control borad writes message after the channel massage district, to confirm that control word is rewritten as #00H, again the master control control word is rewritten as #0FFH, show that master control borad has write message, but user's plate is not read away also; If inquire the master control control word is #0AAH, and expression user plate receives message error, and master control borad should be retransmitted a piece of news at once; If inquiring the master control control word is #0FFH, show that the data in the present channel massage district are not also read away by user's plate, need wait user plate to read to go on a piece of news, could handwritten copy bar message.
(2) user's plate inquiry master control control word, if #00H, expression master control borad this moment is not sent out message, channel massage district sky, user's plate does not move; If #0FFH, expression has deposited the message that master control borad sends in the channel massage district this moment, and user's plate can be read away data in the channel massage district; If #0AAH, the message that expression user plate requires master control borad to retransmit, master control borad does not also send.
(3) user's plate carries out the type of message judgement to sense data, if type is correct, at first write-back is confirmed control word #99H, and write-back master control control word #00H represents that user's plate correctly receives message then; If type exceeds the message scope, write-back master control control word #0AAH, expression user plate receives message error, requires the master control borad resend message.
Said process 1,2,3 moves in circles successively, finishes master control borad and sends the process of user's plate receive channel message.

Claims (3)

1, a kind of method of using dual control words to transmit message, it is characterized in that: adopt two control words as controlled flag, one of them is the master control control word, another is to confirm control word.
2, a kind of method of using dual control words to transmit message according to claim 1 is characterized in that: the figure place of control word wants to represent the status number preset.
3, a kind of method of using dual control words to transmit message according to claim 1 is characterized in that: when originating party when the debit sends message, described method comprises the steps:
1) originating party is at first inquired about the master control control word, sign as the master control control word shows present channel massage district sky, acknowledgment of your inquiry control word again, show that the debit has correctly received the last a piece of news that originating party sends if confirm the sign of control word, then originating party can write this message, and originating party writes message and arrives after the channel massage district, to confirm that earlier control word is rewritten as default sign, again the master control control word is rewritten as default sign, show that originating party has write message, but the debit does not read away also; Represent that the debit receives message error if inquire the sign of master control control word, originating party should be retransmitted a piece of news at once; Show that the data in the present channel massage district are not also read away by the debit if inquire the sign of master control control word, originating party need wait for that the debit reads to go on a piece of news, could handwritten copy bar message;
2) debit inquires about the master control control word, and originating party is not sent out message if the sign of master control control word is represented this moment, and the channel massage district is empty, and then the debit does not move; If the sign of master control control word is represented this moment and has deposited the message that originating party sends in the channel massage district that then the debit can read away the data in the channel massage district; The sign of master control control word can also be set at the expression originating party and also not send the message that the debit requires originating party to retransmit;
3) debit carries out the type of message judgement to sense data, if type is correct, at first write-back is confirmed control word for setting sign, and write-back master control control word is to set sign then, and the expression debit correctly receives message; If type exceeds the message scope, then write-back master control control word is for setting sign, and the expression debit receives message error, requires the originating party resend message.
CN 99116016 1999-01-19 1999-01-19 Method for transferring messages with dual control words Expired - Fee Related CN1119004C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 99116016 CN1119004C (en) 1999-01-19 1999-01-19 Method for transferring messages with dual control words

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 99116016 CN1119004C (en) 1999-01-19 1999-01-19 Method for transferring messages with dual control words

Publications (2)

Publication Number Publication Date
CN1261236A true CN1261236A (en) 2000-07-26
CN1119004C CN1119004C (en) 2003-08-20

Family

ID=5278868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 99116016 Expired - Fee Related CN1119004C (en) 1999-01-19 1999-01-19 Method for transferring messages with dual control words

Country Status (1)

Country Link
CN (1) CN1119004C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810128A (en) * 2012-10-15 2014-05-21 中国北车股份有限公司 Main control device
CN106227681A (en) * 2016-06-15 2016-12-14 北京和信瑞通电力技术股份有限公司 A kind of dual port RAM access method of novel anti-collision
CN106933755A (en) * 2015-12-30 2017-07-07 南车株洲电力机车研究所有限公司 A kind of polling communication method based on CPCI backboards
CN106933759A (en) * 2015-12-30 2017-07-07 南车株洲电力机车研究所有限公司 A kind of interruption communication means based on CPCI backboards

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810128A (en) * 2012-10-15 2014-05-21 中国北车股份有限公司 Main control device
CN106933755A (en) * 2015-12-30 2017-07-07 南车株洲电力机车研究所有限公司 A kind of polling communication method based on CPCI backboards
CN106933759A (en) * 2015-12-30 2017-07-07 南车株洲电力机车研究所有限公司 A kind of interruption communication means based on CPCI backboards
CN106933759B (en) * 2015-12-30 2019-11-15 南车株洲电力机车研究所有限公司 A kind of interruption communication means based on CPCI backboard
CN106933755B (en) * 2015-12-30 2020-05-22 南车株洲电力机车研究所有限公司 Polling communication method based on CPCI back panel
CN106227681A (en) * 2016-06-15 2016-12-14 北京和信瑞通电力技术股份有限公司 A kind of dual port RAM access method of novel anti-collision

Also Published As

Publication number Publication date
CN1119004C (en) 2003-08-20

Similar Documents

Publication Publication Date Title
EP1764703B1 (en) A system for providing access to multiple data buffers of a data retaining and processing device
CN101304373B (en) Method and system for implementing high-efficiency transmission chunk data in LAN
US4809217A (en) Remote I/O port for transfer of I/O data in a programmable controller
US7069373B2 (en) USB endpoint controller flexible memory management
US4322793A (en) Communication controller transparently integrated into a host CPU
CN1212771A (en) One-wire UART for processor system
CN1119004C (en) Method for transferring messages with dual control words
CN1317846C (en) Method of realizing internal external network physical partition and its device
JP2688171B2 (en) Communication adapter and data transfer system and method
US5895496A (en) System for an method of efficiently controlling memory accesses in a multiprocessor computer system
CA2234635C (en) Method and device for exchanging data
CN116566761A (en) SPI dual-host sharing arbitration system and method
CA1120123A (en) Automatic data steering and data formatting mechanism
JP3703532B2 (en) Computer system with multiplexed address bus
EP1033658A2 (en) Communication apparatus with means for allocating alternate designation information to each function unit, and communication system with said two communication apparatus
US5943509A (en) Small size inter-processor data transfer system
CN1127243C (en) Individual initialized set data processing system and method for long-distance access user system
CN1441566A (en) Communication device using three step communication buffer storage
JP6885635B1 (en) Information processing device, information processing method and program for information processing device
JPH054040Y2 (en)
JP2000148523A (en) Duplex memory device and method for switching memory
JP3940686B2 (en) Communication system and communication method
JP2001117864A (en) Communication buffer access method and its writing controller
CN2520528Y (en) Bridging system of access of shared system resource
CN113014631A (en) Device cache pushing system and method based on Hlink

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
C56 Change in the name or address of the patentee

Owner name: ZTE CO., LTD.

Free format text: FORMER NAME OR ADDRESS: SHENZHENG CITY ZTE CO., LTD.

CP03 Change of name, title or address

Address after: 518057 Zhongxing building, science and technology south road, Nanshan District hi tech Industrial Park, Guangdong, Shenzhen

Patentee after: ZTE Corporation

Address before: 518057 Zhongxing building, science and technology south road, Nanshan District hi tech Industrial Park, Guangdong, Shenzhen

Patentee before: Zhongxing Communication Co., Ltd., Shenzhen City

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

Granted publication date: 20030820

Termination date: 20140119