CN102750241A - Method and system for communication between upper computer and lower computer - Google Patents

Method and system for communication between upper computer and lower computer Download PDF

Info

Publication number
CN102750241A
CN102750241A CN2012101948746A CN201210194874A CN102750241A CN 102750241 A CN102750241 A CN 102750241A CN 2012101948746 A CN2012101948746 A CN 2012101948746A CN 201210194874 A CN201210194874 A CN 201210194874A CN 102750241 A CN102750241 A CN 102750241A
Authority
CN
China
Prior art keywords
command
memory
slave computer
host computer
write
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
Application number
CN2012101948746A
Other languages
Chinese (zh)
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.)
Institute of Acoustics CAS
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN2012101948746A priority Critical patent/CN102750241A/en
Publication of CN102750241A publication Critical patent/CN102750241A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method and a system for communication between an upper computer and a lower computer. One of an upper computer and a lower computer writes commands and transmission data into different memories of a shared memory, and the other of the upper computer and the lower computer reads the commands from a command memory and executes the commands to achieve the communication between the upper computer and the lower computer. According to the method and the system for the communication between the upper computer and the lower computer, the commands of the communication between the upper computer and the lower computer and data required to be transmitted are written into the different memories of the shared memory, so that the complexity of command processing of the lower computer is reduced, and communication efficiency is improved.

Description

Communication means between a kind of host computer and the slave computer and system
Technical field
The present invention relates to the embedded communication technical field, relate in particular to communication means and system between a kind of host computer and the slave computer.
Background technology
In embedded system, will wait for that usually the goal systems of debugging is called slave computer, and the main frame corresponding with it (PC) is called host computer.Host computer realizes that through asynchronous serial communication the control to slave computer is a kind of method commonly used, and shared storage then provides operations such as uploading of data between host computer and the slave computer and download.In communication process, usually with host computer as main control end, be used for sending order, and slave computer is used for receiving and fill order as controlled terminal.
At present, the mode through byte stream or Frame between host computer and the slave computer communicates, and slave computer is complicated to the parsing of order, and the support of hardware support kit circuit need be provided, and communication efficiency is not high.
Summary of the invention
In order to address the above problem, the invention provides communication means and system between a kind of host computer and the slave computer.
According to first aspect, the embodiment of the invention provides the communication means between a kind of host computer and the slave computer.Said method comprises: host computer will be ordered the write command storer; Host computer will descend the data of biography to write the down-transmitting data storer as required; Or slave computer data that need are uploaded write and upload data-carrier store; Side in host computer and the slave computer will describe in the state write state storer of current behavior as required, and the opposing party reads the other side's state and makes response and instruct current operation from status register, wherein slave computer reading order or from status register during reading state from command memory; The order or the state that need to read write feedback memory, and host computer then reads feedback memory and confirms whether slave computer is understood correctly.
According on the other hand, the embodiment of the invention provides the system that communicates by letter between a kind of host computer and the slave computer.Said system comprises host computer and slave computer, and said system also comprises shared storage, and shared storage is divided into command memory, data-carrier store, feedback memory, status register and parameter storage; Wherein, host computer will instruct the order write command storer of slave computer operation, and the data that host computer will descend to pass write the down-transmitting data storer, and the data that slave computer is uploaded needs write uploads data-carrier store.Slave computer reading order or from status register during reading state, the order or the state that need to read write feedback memory from command memory.One side of host computer and slave computer is with self current state write state storer, and the opposing party's reading state storer also responds.Slave computer is reading order and execution from command memory.Parameter storage required parameters information when then memory command is carried out is like memory address etc.
Communication means and system between a kind of host computer provided by the invention and the slave computer; Its advantage is: host computer will instruct the order write command storer of slave computer operation; The data that host computer will descend pass write the down-transmitting data storer, or slave computer data that needs are uploaded write and upload data-carrier store.A side of host computer and slave computer is with current communications status write state storer as required, and the opposing party reads communications status and instructs current operation from status register.All orders, state and the data that need to transmit write the different zone of shared storage, and handshake mechanism is realized by software, can reduce the complexity of slave computer to command process, has improved communication efficiency.
Description of drawings
Fig. 1 is the synoptic diagram that embodiment of the invention host computer and slave computer communicate through shared storage;
Fig. 2 is the process flow diagram of communication means between embodiment of the invention host computer and the slave computer;
Fig. 3 is the process flow diagram of embodiment of the invention host computer to the slave computer down-transmitting data;
Fig. 4 is embodiment of the invention host computer passes chunk data down to slave computer a process flow diagram;
Fig. 5 is embodiment of the invention slave computer is uploaded a process flow diagram from data to host computer;
Fig. 6 is embodiment of the invention slave computer is uploaded a process flow diagram from chunk data to host computer;
Fig. 7 is the process flow diagram that carries out data check between embodiment of the invention host computer and slave computer;
Fig. 8 is that embodiment of the invention host computer instructs slave computer to carry out the process flow diagram of other programs;
Fig. 9 is embodiment of the invention program of lower computer design framework figure.
Embodiment
In the embodiment of the invention, host computer will instruct the order write command storer of slave computer operation, and host computer will descend the data of biography to write the down-transmitting data storer, or slave computer data that needs are uploaded write and upload data-carrier store.A side of host computer and slave computer is with communications status write state storer as required, and the opposing party reads communications status and response from status register.With ordering and needing the data of transmission to separate, can reduce the complexity of slave computer to command process, improve communication efficiency, solved host computer and the low problem of slave computer communication efficiency in the prior art.
Pass through accompanying drawing and embodiment below, technical scheme of the present invention is done further describing.
Embedded system development plate based on the PCI design cooperates shared storage to use usually, and shared storage is all addressable region of memory of host computer and slave computer.The communication mechanism that the embodiment of the invention proposes is to be based upon on the basis of shared storage.
Fig. 1 is the synoptic diagram that embodiment of the invention host computer and slave computer communicate through shared storage.As shown in Figure 1, shared storage is divided into command memory, feedback memory, uploads data-carrier store, down-transmitting data storer, status register, upload parameter storage and following biography parameter storage.Wherein, command memory is used to store the order that host computer instructs the slave computer operation.Feedback memory is used to store order or the state that slave computer reads, and status register can be according to the state of order needs storage host computer and slave computer.Wherein, uploading data-carrier store and the down-transmitting data storer can be shared, is a storer; Uploading parameter storage can be shared with following biography parameter storage, is a storer.Need to prove that for the division of shared storage, those skilled in the art can define the number of division and the function of each storer according to actual needs.
Order in the embodiment of the invention, state define for the user as required.Wherein all corresponding function corresponding of each order is used for the operation that host computer instructs slave computer, and order can be divided into order of data transmission class and the order of non-data transmission class, and the former need use data-carrier store, and the latter does not then need.Table 1 is the partial content of embodiment of the invention definition command menu, but is not limited to the content of table 1.State has reflected the description to current behavior of host computer or slave computer.Table 2 is the partial content of embodiment of the invention definition status menu, but is not limited to the content of table 2.
Table 1 command functions table
Command name Function
COMM Beginning is communication once
DNLD Host computer transmits data to slave computer
UPLD Slave computer transmits data to host computer
CHEK Whether the data that the slave computer verification receives are correct
EXIT Stop communication
EXEC Carry out target program
Table 2 status function table
Status Name Function
cont Data are end of transmission not as yet
comm Slave computer executes the one whole operation
Need to prove, the number and the corresponding function thereof of order, state, those skilled in the art can define according to actual needs.
Specifically describe the communication process between host computer and the slave computer below, Fig. 2 is the process flow diagram of communication means between host computer and the slave computer in the embodiment of the invention system.As shown in Figure 2, the embodiment of the invention may further comprise the steps:
Step 201, host computer writes the order that expression communication begins to command memory, i.e. " COMM " order.
Step 202, slave computer is from the read command of order memory, and feedback memory is write in the order that will read.Need to prove; It is essential that order that slave computer will read or state are write into feedback memory; Because whether slave computer can be stablized, correct execution is uncertain; Have only slave computer to write feedback memory, host computer just can judge whether slave computer is in normal operating conditions through order or the state of reading to store in the feedback memory.
Step 203, host computer compares to the order that command memory writes from the feedback memory read command and with host computer.
Step 204; When the order that order of reading from feedback memory when host computer and host computer write to command memory was inconsistent, in by the user-defined stand-by period, host computer continued to read feedback memory; As still inconsistent explanation slave computer breaks down then termination communication.
When the order that step 205, the order of reading from feedback memory when host computer and host computer write to command memory is consistent, explain that order that slave computer sends host computer understands correctly, can begin next step communication.
The set-up procedure of above-mentioned several steps for formally communicating when host computer sends the order that begins to communicate by letter and receives that slave computer feeds back to identical order, then can begin formal communication.Following step is the process of formal communication:
Step 206, host computer writes the order except that " order of expression communication beginning " to command memory.
Step 207, slave computer is ordered from the order memory read, and according to this order operation.
In an example, in order to obtain the duty of slave computer, slave computer is read order from command memory after; Feedback memory is write in this order, and host computer is from the feedback memory read command, when host computer in order that host computer is read and the step 202 to sending order that command memory writes when consistent; Represent that then slave computer received the order that host computer sends, slave computer is in normal operating conditions, if inconsistent; In by the user-defined stand-by period; Host computer continues to read feedback memory, explains then that as still inconsistent slave computer breaks down, and the host computer termination is communicated by letter with slave computer.
Step 208, after communication is accomplished, slave computer will be represented the state write state storer of sign off.
Step 209, host computer continue the reading state storer in the stand-by period, if do not read the state of expression sign off, then communication stops.Read the state of representing sign off as if host computer, then this sign off.
In the present embodiment, host computer will instruct the order write command storer of slave computer operation, and slave computer will reflect the state write state storer of current behavior as required, as required data waiting for transmission write in the entry data memory.
In the present embodiment, slave computer will represent before the state write state storer of sign off that host computer only writes an order to command memory, and slave computer reading order storer is also carried out.In fact, slave computer will represent before the state write state storer of sign off that host computer can whenever write a subcommand slave computer and read an also execution of command memory repeatedly to the command memory write command.Number of times is repeatedly preestablished by system.
Present embodiment has solved that slave computer has improved communication efficiency to the complexity of command process in the prior art.For said method is more readily understood, following several embodiment describe between host computer and the slave computer and how to communicate by letter through carrying out specific tasks, and the command functions among the embodiment is referring to aforementioned table 1 and table 2.
What the foregoing description was described is total flow process of communication means between host computer and the slave computer, and following several embodiment will describe communication process concrete between host computer and the slave computer.Fig. 3 is the process flow diagram of embodiment of the invention host computer to the slave computer down-transmitting data.As shown in Figure 3, present embodiment may further comprise the steps:
Step 301, host computer writes " COMM " to command memory.
Step 302, slave computer is from the order of order memory read, and feedback memory is write in the order that will read.
The read command and judge whether to be " COMM " from feedback memory of step 303, host computer.
Step 304, in the stand-by period of user's appointment, host computer continues to read in the feedback memory orders, and as not being " COMM " all the time, explains that slave computer breaks down, and then stops communication.
Step 305, the order of from feedback memory, reading when host computer be during for " COMM ", explain that slave computer understands correctly " COMM " order, can begin next step communication.
Step 306, the data that host computer will descend to pass write the down-transmitting data storer, size of data and the storage address of down-transmitting data in the slave computer internal memory are write biography parameter storage down, will order " DNLD " write command storer then.
Step 307; Slave computer is from order memory read " DNLD " order; The order that the slave computer operation is read; From the down-transmitting data memory read data, under pass parameter storage and read parameter, deposit the data that read in one section continuum that the given slave computer internal memory start address of parameter storage begins.
In an example; In order to obtain the duty of slave computer; From ordering memory read after order, the order of reading is write feedback memory at slave computer, host computer is read feedback command from feedback memory; If the feedback command of reading explains then that for " DNLD " slave computer is in normal operating conditions; If the feedback command of reading is not " DNLD ", do not explain that then slave computer breaks down, the host computer termination is communicated by letter with slave computer.
Step 308, slave computer run through data from the down-transmitting data storer after, write the state " comm " of representing sign off to status register, the expression slave computer has read data.
Step 309, host computer continue the reading state storer in the stand-by period, if do not read the state of expression sign off, then communication stops; Read the state of representing sign off as if host computer, then this sign off.
Need to prove that the stand-by period in the step 309 can be set according to actual needs.
What present embodiment was described is the course of work of host computer to the slave computer down-transmitting data; Host computer writes the down-transmitting data storer with down-transmitting data earlier; " DNLD " order then is written into command memory; Order and data are write the zones of different in the shared storage respectively, and slave computer is from ordering memory read command, and this order is write feedback memory.Do not break down like slave computer, then reading of data from the down-transmitting data storer.Than the form of byte stream in prior art or Frame, slave computer is simpler to the parsing of order, and communication efficiency is higher.
What the foregoing description was described is the course of work of host computer to the slave computer down-transmitting data, and what following embodiment described is host computer passes chunk data down to slave computer flow process.It is embodiment of the invention host computer passes chunk data down to slave computer process flow diagram.Chunk data is meant that data waiting for transmission are bigger than sharing data area; Suppose that the data-carrier store in the shared data storer takies the X byte, and the size of data block waiting for transmission is the Y byte, and X<Y; Suppose Y=K*X+M, then the transmission of data need divide and carries out for K+1 time.To preceding K time; The every initiation of host computer all need write " cont " state to status register when once " DNLD " operates; Slave computer needs all whether the detected state storer is " cont " state after the data in the down-transmitting data storer are operated and read in corresponding each execution " DNLD ", if; " comm " state is write in the feedback memory, afterwards reading of data and write corresponding internal memory from down-transmitting data storage.
Step 401-405 is identical with the step 301-305 of previous embodiment, repeats no more at this.
Step 406; The data that host computer will descend to pass write the down-transmitting data storer, data block byte number and the storage address of down-transmitting data in the slave computer internal memory are write biography parameter storage storer down; To order " DNLD " write command storer then; If data have not been transmitted, host computer also needs state " cont " write state storer, otherwise empties status register.
Step 407; Slave computer is read command from command memory; Read data from the down-transmitting data storer, under pass and read parameter the parameter storage, with the writing data into memory that reads from passing the storage address of down-transmitting data in the slave computer internal memory that reads the parameter storage down.
In an example; In order to obtain the duty of slave computer; Slave computer is read order from command memory after, the order of reading is write feedback memory, host computer is read feedback command from feedback memory; If the feedback command of reading explains then that for " DNLD " slave computer is in normal operating conditions; If the feedback command of in the time of user's appointment, reading still is not " DNLD ", explain that then slave computer breaks down, the host computer termination is communicated by letter with slave computer.
Step 408, after slave computer has been write data, reading state from status register, and judge whether to be " cont ".
Step 409 if slave computer reads from status register is " cont ", then writes feedback memory with it, and forwards step 611 to.
Step 410 is if the order that slave computer is read from status register representes that then data transmission finishes, with " comm " write state storer not for " cont ".
Step 411; If host computer once write " cont " state to status register in this " DNLD " operation, host computer reads feedback memory in the time of user's appointment, then forwards step 406 to if read " cont "; If be not " cont ", then get into next step.
Step 412, host computer continue the reading state storer in the stand-by period, if do not read the state of expression sign off, explain that then slave computer breaks down, and communication stops; Read the state of representing sign off as if host computer, then this sign off.
What execute originally that example describes is in communication process; Host computer repeatedly transmits the process of data to slave computer, separate transmission owing to will order with data, and host computer is through writing " cont " state to status register; Make and formed good handshake mechanism between host computer and slave computer; And carry out data transmission in order, and reduced the complexity that slave computer is separated read command, improved communication efficiency.
What the foregoing description was described is host computer passes chunk data under slave computer the course of work, and what following embodiment described is slave computer is uploaded flow process from data to host computer.Fig. 5 is embodiment of the invention slave computer is uploaded a process flow diagram from data to host computer.As shown in Figure 5, present embodiment may further comprise the steps:
Step 501-505 is identical with the step 301-305 of previous embodiment, repeats no more at this.
Step 506, host computer is with " UPLD " write command storer.
Step 507, slave computer is read command from command memory, fill order, write data in uploading data-carrier store.
In an example; For whether the order that host computer is sent that obtains slave computer is understood correctly; Slave computer is read order from command memory after, the order of reading is write feedback memory, host computer is read feedback command from feedback memory; If the feedback command of reading explains then that for " UPLD " slave computer is in normal operating conditions; If the feedback command of in the time of user's appointment, reading is not " UPLD " all the time, explain that then slave computer breaks down, the host computer termination is communicated by letter with slave computer.
Step 508, slave computer write " comm " to status register after having write data.
Step 509, host computer continue the reading state storer in the stand-by period, if do not read the state of expression sign off, then communication stops; Read the state of representing sign off as if host computer, then reading of data from data-carrier store, this time sign off.
Need to prove that the stand-by period in the step 509 can be set according to actual needs.
What present embodiment was described is slave computer is uploaded the course of work from data to host computer; Host computer is with " UPLD " order write command storer; Slave computer is read " UPLD " order and " UPLD " is write feedback memory from command memory; The back is to uploading the data-carrier store write data, and pending data has been write the back to status register " comm " state, and host computer begins from uploading the data-carrier store reading of data after from status register, reading " comm " state; Whole process is said order, state and the data different zone of write store respectively; The form of byte stream or Frame in the prior art, slave computer is simpler to the parsing of order, and communication efficiency is higher.
What the foregoing description was described uploads the course of work of data to host computer for slave computer, and what following embodiment described uploads the flow process of chunk data for slave computer to host computer.Fig. 6 is embodiment of the invention slave computer is uploaded a process flow diagram from chunk data to host computer.As shown in Figure 6, present embodiment may further comprise the steps:
Step 601-605 is identical with the step 301-305 of previous embodiment, repeats no more at this.
Step 606, host computer can't have been uploaded whole data with " UPLD " write command storer like this operation, then also need be with " cont " write state storer, otherwise empty status register.
When slave computer is uploaded chunk data to host computer; Whether size of data that host computer can be uploaded as required and the size of uploading data-carrier store are judged this time can be intact with data upload; If can not, then with " cont " write state storer, the notice slave computer also need continue to transmit data.
Step 607, slave computer is read command from command memory, and fill order writes data to uploading data-carrier store.
In an example; For whether the order that host computer is sent that obtains slave computer is understood correctly; Slave computer is read order from command memory after, the order of reading is write feedback memory, host computer is read feedback command from feedback memory; If the feedback command of reading explains then that for " UPLD " slave computer is in normal operating conditions; If the feedback command of in the time of user's appointment, reading is not " UPLD " all the time, explain that then slave computer breaks down, the host computer termination is communicated by letter with slave computer.
Step 608, after slave computer has been write data, reading state from status register, and judge whether to be " cont ".
Step 609 if slave computer reads from status register is " cont ", then writes feedback memory with it, and forwards step 611 to.
Step 610 is if the order that slave computer is read from status register representes that then data transmission finishes, with " comm " write state storer not for " cont ".
Step 611, host computer reads feedback memory, if " cont ", host computer reading of data from upload data-carrier store then, read data after, forward step 606 to; If be not " cont ", continue next step.
Step 612, host computer continue the reading state storer in the stand-by period, if do not read the state of expression sign off, then communication stops; Read the state of representing sign off as if host computer, then reading of data from data-carrier store, this time sign off.Need to prove that the stand-by period in the step 612 can be set according to actual needs.
What originally state the embodiment description is slave computer is uploaded the course of work from chunk data to host computer; The orderly repeatedly biography data of writing continuously through the expression chunk data between host computer and the slave computer of " cont " state; Whole process writes the different zone of shared storage with order, state and data; The form of byte stream or Frame in the prior art, slave computer is simpler to the parsing of order, and communication efficiency is higher.
Above-mentioned several embodiment describe for carrying out the flow process of communicating by letter of data transfer command between host computer and slave computer, following two embodiment describe for carrying out the communication process of non-data transfer command between host computer and slave computer.
Fig. 7 is the process flow diagram that carries out data check between embodiment of the invention host computer and slave computer.As shown in Figure 7, the embodiment of the invention may further comprise the steps:
Step 701 is carried out in the data communication process at host computer and slave computer, if the data that receive of check the other side whether correct, host computer will be represented order " CHCK " the write command storer of data check.
Step 702, slave computer is read command from command memory, and the check code that will go out according to the data computation that receives or known correct check code write and upload parameter storage;
Particularly, if the data that receive for slave computer of verification, the data that receive of the slave computer basis formation check code of encoding then, and this check code write upload parameter storage; If the data of verification are the data that host computer receives, then correct check code is stored in the slave computer, and therefore, need write correct check code and upload parameter storage this moment.
Step 703, slave computer is with " comm " write state storer.
Step 704, host computer continue the reading state storer in the stand-by period, if do not read the state of expression sign off, then communication stops; If host computer is read the state of expression sign off; Then from uploading parameter storage read check sign indicating number, and the check code that goes out with itself and correct check code or according to the data computation that receives relatively, judges whether the transmission data are wrong; If two check codes are different, then the data of explanation transmission are wrong; If two check codes are the same, then the data of explanation transmission are correct, this time sign off.
Particularly, if the data for the slave computer reception of verification, correct check code is stored in the host computer, and then in this step, host computer compares known correct check code and the check code of from upload parameter storage, reading; If the data for the host computer reception of verification; Then correct check code is stored in the slave computer; Then in this step, host computer needs earlier to compare with the correct check code of from upload parameter storage, reading then according to the data that the receive formation check code of encoding.
What present embodiment was described is the process that host computer and slave computer carry out data check, and what following embodiment described carries out the process of other programs for host computer instructs slave computer.Fig. 8 is that embodiment of the invention host computer instructs slave computer to carry out the process flow diagram of other programs; As shown in Figure 8, the embodiment of the invention may further comprise the steps:
Step 801, host computer writes the order " EXEC " that lets slave computer leave signal procedure to go to carry out other program to command memory, and passes downwards and write the entry address of said other program at the slave computer memory headroom in the parameter storage.
Step 802; Slave computer is from order memory read order, under pass and read parameter the parameter storage, and jump to down other specified in biography parameter storage program and locate in the entry address of slave computer memory headroom; Executive routine; Get back to after complete in the signal procedure, whole process can be regarded signal procedure as the linear function that target program carries out is called, and concrete design needs define according to the slave computer processor architecture.
Step 803, slave computer is with " comm " write state storer.
Step 804, host computer continue the reading state storer in the stand-by period, if do not read the state of expression sign off, then communication stops; If host computer is read the state of expression sign off, this sign off.
What above-mentioned two embodiment described is the communication process that carries out non-data transmission between host computer and slave computer; Therefrom can find out; Host computer will be through ordering the write command storer; The intermediate data of using in the communications command process write such as check code, program entry address etc. upload parameter storage or following biography parameter storage, make slave computer be easy to resolve command and fill order, reduced the communication complexity between host computer and slave computer.
What above-mentioned several embodiment described is the communication process between host computer and slave computer, and what following embodiment described is the program of lower computer design framework.
Fig. 9 is embodiment of the invention program of lower computer design framework figure.As shown in Figure 9, the program of lower computer framework has two-layer nested loop, and outer circulation is used to realize the concrete function of ordering, and interior loop is the loop body that is used for wait subsequent commands after host computer is initiated a COMM communication.After receiving order, program is returned outer circulation and is carried out corresponding command.The execution sequence of label 1,2,3 representation programs among Fig. 9.The program of lower computer implementation can be described as: signal procedure is circular wait COMM order in the skin circulation; After receiving the COMM order, integer variable comm=1 (comm=1 representes sign off) is put in the upper strata circulation, and optional, host computer can send feedback command or state, so that host computer obtains the duty of slave computer; Program gets into interior loop and carries out circular wait, when host computer sends out non-COMM order, and the outer circulation of program redirect, program is carried out corresponding function according to corresponding label, carries out the state write state storer that will represent sign off after finishing; Program continues in skin circulation carrying out circular wait.
Can find out from the foregoing description, program of lower computer design and succinct, slave computer is fairly simple to the parsing of order, has improved the communication efficiency with host computer.
The embodiment of the invention also provides the system that communicates by letter between a kind of host computer and the slave computer.This system has implanted host computer that the embodiment of the invention provides and communication means between the slave computer.This system comprises host computer and slave computer, comprises that also shared storage, shared storage are divided into multiple memory unit and are used to store different information; Wherein, the side in host computer and the slave computer will order the write command storer, the data of needs transmission write the data-carrier store of shared storage; The opposing party in host computer and the slave computer is from the command memory read command and the fill order of shared storage.The concrete course of work of this system is identical with previous embodiment, repeats no more at this.
Obviously, under the prerequisite that does not depart from true spirit of the present invention and scope, the present invention described here can have many variations.Therefore, the change that all it will be apparent to those skilled in the art that all should be included within the scope that these claims contain.The present invention's scope required for protection is only limited described claims.

Claims (14)

1. the communication means between host computer and the slave computer is characterized in that said method comprises:
The host computer memory write comprises: said host computer will be ordered the write command storer, and the data that needs are passed down write the down-transmitting data storer, the parameter of biography writes down the biography parameter storage, will descend the state write state storer of biography down; Said host computer memory read comprises: read feedback memory as required, upload data-carrier store, upload parameter storage and/or status register;
The slave computer memory read comprises: said slave computer reads said command memory, reads said down-transmitting data storer and/or status register according to the order needs that read; Said slave computer memory write; Comprise: said slave computer writes said feedback memory with feedback command or state as required, and the data that needs are uploaded write the said parameter of uploading data-carrier store, needs being uploaded and write the said state write state storer of uploading parameter storage, needs being uploaded.
2. the method for claim 1 is characterized in that, said order comprises first command, and said first command is the communication initiation command;
The said host computer initiation command of will communicating by letter writes said command memory;
Said slave computer reads said command memory, and the order that will read writes feedback memory;
Said host computer reads said feedback memory, and whether the order of relatively reading is identical with the communication initiation command that said host computer sends, if different, then communication stops; Otherwise continue.
3. according to claim 1 or claim 2 method; It is characterized in that said slave computer executes the order of reading, the sign off sign is write said status register; Said host computer continues to read said status register or repeatedly reads said status register in the stand-by period of setting in the stand-by period; What read when judgement is the sign off sign, sign off, otherwise communication stops.
4. method as claimed in claim 3 is characterized in that, said slave computer comprises the situation that the sign off sign writes said status register:
If first command is said communication initiation command, said slave computer has been carried out two or many orders of reading before the sign off sign is write said status register;
If the non-said communication initiation command of first command, said slave computer writes the sign off sign and has carried out one or more order of reading before the said status register.
5. the method for claim 1 is characterized in that, said slave computer whenever reads command memory one time, and the order that all will read writes said feedback memory.
6. the method for claim 1; It is characterized in that said to upload data-carrier store and down-transmitting data storer be same storer or different memory and/or saidly upload parameter storage and following biography parameter storage is same storer or different memory.
7. the method for claim 1; It is characterized in that, said transmission storer, feedback memory, upload data-carrier store, down-transmitting data storer, upload parameter storage, biography parameter storage and/or status register are positioned on the identical or different physical storage down.
8. the system that communicates by letter between host computer and the slave computer is characterized in that, comprises host computer, slave computer and shared storage,
Said host computer will be ordered the write command storer, and the data that needs are passed down write the down-transmitting data storer, the parameter of biography writes down the biography parameter storage, will descend the state write state storer of biography down; Said host computer reads feedback memory as required, uploads data-carrier store, uploads parameter storage and/or status register;
Said slave computer reads said command memory, reads said down-transmitting data storer and/or status register according to the order needs that read; Said slave computer writes said feedback memory with feedback command or state as required, and the data that needs are uploaded write the said parameter of uploading data-carrier store, needs being uploaded and write the said state write state storer of uploading parameter storage, needs being uploaded.
9. system as claimed in claim 8 is characterized in that,
The said host computer initiation command of will communicating by letter writes said command memory;
Said slave computer reads said command memory, and the order that will read writes feedback memory;
Said host computer reads said feedback memory, and whether the order of relatively reading is identical with the communication initiation command that said host computer sends, if different, then communication stops; Otherwise continue.
10. like claim 8 or 9 described systems; It is characterized in that said slave computer executes the order of reading, the sign off sign is write said status register; Said host computer continues to read said status register or repeatedly reads said status register in the stand-by period of setting in the stand-by period; What read when judgement is the sign off sign, sign off, otherwise communication stops.
11. system as claimed in claim 10 is characterized in that, said slave computer comprises the situation that the sign off sign writes said status register:
If first command is said communication initiation command, said slave computer has been carried out two or many orders of reading before the sign off sign is write said status register;
If the non-said communication initiation command of first command, said slave computer writes the sign off sign and has carried out one or more order of reading before the said status register.
12. system as claimed in claim 8 is characterized in that, said slave computer whenever reads command memory one time, and the order that all will read writes said feedback memory.
13. system as claimed in claim 8; It is characterized in that said to upload data-carrier store and down-transmitting data storer be same storer or different memory and/or saidly upload parameter storage and following biography parameter storage is same storer or different memory.
14. system as claimed in claim 8; It is characterized in that, said transmission storer, feedback memory, upload data-carrier store, down-transmitting data storer, upload parameter storage, biography parameter storage and/or status register are positioned on the identical or different physical storage down.
CN2012101948746A 2012-06-13 2012-06-13 Method and system for communication between upper computer and lower computer Pending CN102750241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101948746A CN102750241A (en) 2012-06-13 2012-06-13 Method and system for communication between upper computer and lower computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101948746A CN102750241A (en) 2012-06-13 2012-06-13 Method and system for communication between upper computer and lower computer

Publications (1)

Publication Number Publication Date
CN102750241A true CN102750241A (en) 2012-10-24

Family

ID=47030443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101948746A Pending CN102750241A (en) 2012-06-13 2012-06-13 Method and system for communication between upper computer and lower computer

Country Status (1)

Country Link
CN (1) CN102750241A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823447A (en) * 2014-03-04 2014-05-28 北京七星华创电子股份有限公司 Communication method and communication system of upper and lower computers of semiconductor equipment
CN104935487A (en) * 2015-05-14 2015-09-23 珠海格力电器股份有限公司 Bus slave computer monitor method and device
CN107808074A (en) * 2017-11-03 2018-03-16 武汉资联虹康科技股份有限公司 A kind of slave computer runtime and method
CN108287805A (en) * 2018-01-12 2018-07-17 厦门大学 A kind of communication means and the application of universal the next microcontroller and host computer
CN108932171A (en) * 2018-06-15 2018-12-04 中国航发控制系统研究所 Embedded software exchange method
CN111062643A (en) * 2019-12-30 2020-04-24 上海燊星机器人科技有限公司 Upper computer ordering automatic communication ordering system
CN112673586A (en) * 2020-12-08 2021-04-16 华为技术有限公司 Data packet processing method and device
CN113127092A (en) * 2021-03-31 2021-07-16 深圳市法拉第电驱动有限公司 Custom packaging system and method based on upper computer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570871A (en) * 2003-07-16 2005-01-26 纬创资通股份有限公司 Method for transferring control power among multiple devices of computer system
CN1928825A (en) * 2005-09-09 2007-03-14 腾讯科技(深圳)有限公司 Server implementing method and server system
CN201063161Y (en) * 2007-06-08 2008-05-21 威盛电子股份有限公司 Primary device for serial peripheral interface
CN101359321A (en) * 2008-09-02 2009-02-04 北京中星微电子有限公司 Method and apparatus for implementing intercommunication of processors
CN101819560A (en) * 2009-02-27 2010-09-01 杭州晟元芯片技术有限公司 Method and device for executing program of SPI interface memory
EP2264609A1 (en) * 2009-06-17 2010-12-22 MediaTek, Inc Shared memory having multiple access configurations

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570871A (en) * 2003-07-16 2005-01-26 纬创资通股份有限公司 Method for transferring control power among multiple devices of computer system
CN1928825A (en) * 2005-09-09 2007-03-14 腾讯科技(深圳)有限公司 Server implementing method and server system
CN201063161Y (en) * 2007-06-08 2008-05-21 威盛电子股份有限公司 Primary device for serial peripheral interface
CN101359321A (en) * 2008-09-02 2009-02-04 北京中星微电子有限公司 Method and apparatus for implementing intercommunication of processors
CN101819560A (en) * 2009-02-27 2010-09-01 杭州晟元芯片技术有限公司 Method and device for executing program of SPI interface memory
EP2264609A1 (en) * 2009-06-17 2010-12-22 MediaTek, Inc Shared memory having multiple access configurations

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823447B (en) * 2014-03-04 2016-06-01 北京七星华创电子股份有限公司 The communication method of the upper and lower computer of semiconductor devices and communication system
CN103823447A (en) * 2014-03-04 2014-05-28 北京七星华创电子股份有限公司 Communication method and communication system of upper and lower computers of semiconductor equipment
CN104935487A (en) * 2015-05-14 2015-09-23 珠海格力电器股份有限公司 Bus slave computer monitor method and device
CN104935487B (en) * 2015-05-14 2018-04-20 珠海格力电器股份有限公司 Slave monitoring method and device in bus
CN107808074B (en) * 2017-11-03 2020-12-18 武汉资联虹康科技股份有限公司 Lower computer operation system and method
CN107808074A (en) * 2017-11-03 2018-03-16 武汉资联虹康科技股份有限公司 A kind of slave computer runtime and method
CN108287805A (en) * 2018-01-12 2018-07-17 厦门大学 A kind of communication means and the application of universal the next microcontroller and host computer
CN108932171A (en) * 2018-06-15 2018-12-04 中国航发控制系统研究所 Embedded software exchange method
CN108932171B (en) * 2018-06-15 2022-04-01 中国航发控制系统研究所 Embedded software interaction method
CN111062643A (en) * 2019-12-30 2020-04-24 上海燊星机器人科技有限公司 Upper computer ordering automatic communication ordering system
CN112673586A (en) * 2020-12-08 2021-04-16 华为技术有限公司 Data packet processing method and device
WO2022120599A1 (en) * 2020-12-08 2022-06-16 华为技术有限公司 Data packet processing method and apparatus
CN113127092A (en) * 2021-03-31 2021-07-16 深圳市法拉第电驱动有限公司 Custom packaging system and method based on upper computer

Similar Documents

Publication Publication Date Title
CN102750241A (en) Method and system for communication between upper computer and lower computer
CN101361043B (en) Method for booting a host device from an mmc/sd device, a host device bootable from an mmc/sd device and an mmc/sd device method a host device may booted from
US8904082B1 (en) Operation based polling in a memory system
US10108372B2 (en) Methods and apparatuses for executing a plurality of queued tasks in a memory
CN111078606B (en) Analog I2C slave computer, implementation method thereof, terminal device and storage medium
CN111190842B (en) Direct memory access, processor, electronic device, and data transfer method
CN101694610B (en) Command processing method, device and memory device
CN101477443B (en) NAND control system and control method
CN105094877B (en) The method and host-side device and system of a kind of firmware upgrade
CN105359120A (en) Using dual PHYs to support multiple PCIE link widths
CN102968291A (en) Memory system including variable write command scheduling
CN102750249B (en) The method that host computer communicates with slave computer, Apparatus and system
CN102902649A (en) Information-processing apparatus
EP3841677A1 (en) Passive near field communication (nfc) device, method and system
US9348774B2 (en) Controller-opaque communication with non-volatile memory devices
CN105472377A (en) Television debugging method and apparatus thereof
CN103729165A (en) PCI (peripheral component interconnect) slave unit core control module applied to high-speed motion control system
CN103839398A (en) Remote controller key value information processing method, control apparatus and remote controller
CN101421705A (en) Multi media card with high storage capacity
CN102635379B (en) Online program updating method for hydraulic support controllers
CN102708079A (en) Data transmission controlling method and system applied to microcontroller
CN102204199A (en) Bit inversion for communication interface
CN110413549B (en) Data transmission method, device, computer equipment and storage medium
CN101446937B (en) Batch data transmission method of MON08 interfaces
CN112106071A (en) Radio frequency identification communication unit, control method thereof, and program

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: 20121024