Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method of reseptance and device of data, adopts this technical scheme, can avoid Frame that application program reads from storage space and the inconsistent problem of Frame of actual transmissions.
The embodiment of the present invention is achieved through the following technical solutions:
According to the Yi Ge aspect of the embodiment of the present invention, a kind of method of reseptance of data is provided, comprising:
Dma controller is stored in the first storage space by the data frame head of the Frame of reception, described data frame head carries for characterizing the information of the data length of described Frame, definite, receive and stored after described data frame head, read the described data frame head that described the first storage space is preserved, and the information of the described data length that described data frame head is carried is sent to the application program for the treatment of described Frame, and, definite, receive and stored after described data frame head, the data volume of the described Frame receiving is stored in to the second storage space;
The information of the described data length that described application program sends according to described dma controller, determine that described dma controller receives and stored after described data volume, read the described data frame head of described the first storage space preservation and the described data volume that described the second storage space is preserved.
According to another aspect of the embodiment of the present invention, a kind of method of reseptance of data is also provided, comprising:
Dma controller is stored in the first storage space by the data frame head of the Frame of reception, and described data frame head carries for characterizing the information of the data length of described Frame;
Definite, receive and stored after described data frame head, read the described data frame head that described the first storage space is preserved, and the information of the described data length that described data frame head is carried is sent to the application program for the treatment of described Frame; And
Definite, receive and stored after described data frame head, the data volume of the described Frame receiving is stored in to the second storage space.
According to another aspect of the embodiment of the present invention, a kind of method of reseptance of data is also provided, comprising:
Application program receive that dma controller sends for characterizing the information of data length of the Frame of reception;
According to the information of described data length, determine that described dma controller receives and stored after the data volume of described Frame, read described dma controller and receive and be kept at the data frame head of described Frame of the first storage space and the described data volume that described dma controller received and be kept at described the second storage space.
According to another aspect of the embodiment of the present invention, a kind of receiving system of data is also provided, this system comprises dma controller and application program, wherein:
Described dma controller, for the data frame head of the Frame of reception is stored in to the first storage space, described data frame head carries for characterizing the information of the data length of described Frame, definite, receive and stored after described data frame head, read the described data frame head that described the first storage space is preserved, and the information of the described data length that described data frame head is carried is sent to the application program for the treatment of described Frame, and, definite, receive and stored after described data frame head, the data volume of the described Frame receiving is stored in to the second storage space,
Described application program, be used for according to the information of the described data length of described dma controller transmission, determine that described dma controller receives and stored after described data volume, read the described data frame head of described the first storage space preservation and the described data volume that described the second storage space is preserved.
According to another aspect of the embodiment of the present invention, a kind of receiving trap of data is also provided, comprising:
Data frame head storage unit, for the data frame head of the Frame of reception is stored in to the first storage space, described data frame head carries for characterizing the information of the data length of described Frame;
Data frame head storage monitoring unit, for determining whether described data frame head storage unit receives and stored described data frame head;
Data frame head reading unit, for determining that at described data frame head storage monitoring unit described data frame head storage unit receives and stored after described data frame head, reads the described data frame head that described the first storage space is preserved;
The information transmitting unit of data length, the information of the described data length carrying for the data frame head that described data frame head reading unit is read is sent to the application program for the treatment of described Frame;
Data volume storage unit, for determining that at described data frame head storage monitoring unit described data frame head storage unit receives and stored after described data frame head, is stored in the second storage space by the data volume of the described Frame receiving.
According to another aspect of the embodiment of the present invention, a kind of receiving trap of data is also provided, comprising:
The information receiving unit of data length, for receive that dma controller sends for characterizing the information of data length of the Frame of reception;
Data volume has been stored determining unit, for according to the information of the data length of the information receiving unit reception of described data length, determines whether described dma controller completes the operation of the data volume that receives and store described Frame;
Frame reading unit, determine that described dma controller receives and stored after the data volume of described Frame for having stored determining unit at described data volume, read described dma controller and receive and be kept at the data frame head of described Frame of the first storage space and the described data volume that described dma controller received and be kept at described the second storage space.
Above-mentioned at least one technical scheme providing by the embodiment of the present invention, dma controller is stored in the first storage space by the data frame head of the Frame of reception, this data frame head carries for characterizing the information of data length of the Frame of reception, definite, receive and stored after data frame head, read the data frame head that the first storage space is preserved, and the information of the data length that data frame head is carried is sent to the application program for the treatment of Frame.The information of the data length that application program sends according to dma controller, after determining that operation that dma controller is stored in the second storage space by the data volume of the Frame of reception completes, read the data volume that data frame head that the first storage space preserves and the second storage space are preserved.The technical program compared with prior art, can carry by the data frame head of Frame the information of data length, thereby at dma controller, complete after the reception of data frame head, the information of the data length that the data frame head of reception can be carried is sent to the application program for the treatment of the Frame receiving, thereby this application program can determine whether dma controller completes the reception of Frame according to the information of data length, and receive and stored after the data volume of Frame at definite dma controller, read in the data frame head of the first storage space preservation and the data volume of preserving at the second storage space, thereby dma controller can be supported the reception of the Frame of different data lengths, Frame that application program reads from storage space and the inconsistent problem of Frame of actual transmissions have been avoided, improved the success ratio of application program reading out data.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in the instructions write, claims and accompanying drawing.
Embodiment
In order to provide the implementation of the success ratio that improves application program reading out data, the embodiment of the present invention provides a kind of method of reseptance, system and device of data, below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein only, for description and interpretation the present invention, is not intended to limit the present invention.And in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
In technical scheme provided by the invention, before the associative operation of reception that carries out data, can first to dma controller, carry out initialization, for example, by CPU, according to the data length of the data frame head of Frame, be the first storage space that dma controller divides the data frame head of the Frame that is used in storing received, the storage area that this first storage space provides can mate with the data length of data frame head, also can be greater than the data length of data frame head, in practical application, can distribute accordingly as the case may be; In addition, CPU can also be according to the span of the data length of the data volume of Frame, for dma controller divides the second storage space of the data volume of the Frame that is used in storing received, in the technical program, the data length of the data volume of Frame is unfixed, this data length can arrange flexibly according to the situation of the data of actual transmissions, therefore, CPU can be the second storage space of this data volume of dma controller memory allocated according to the span of the data length of data volume in practical application.
Embodiment mono-
This embodiment mono-provides a kind of method of reseptance of data, the method can be applied in embedded system, by apply the technical program in embedded system, Frame that application program reads from storage space and the inconsistent problem of Frame of actual transmissions can be avoided, thereby the object of the success ratio that improves application program reading out data can be reached.
Fig. 1 shows the schematic flow sheet of the reception of a kind of data that the embodiment of the present invention one provides, and as shown in Figure 1, the receiving course of these data, mainly comprises the following steps:
Step 101, dma controller are stored in the first storage space by the data frame head of the Frame of reception, and wherein, data frame head carries the information for the data length of characterization data frame.
In this step 101, data length corresponding to information that is used for the data length of characterization data frame, the data length of the data frame head being comprised by Frame and the data length of the data volume that Frame comprises form, wherein, the data length of data frame head is predefined, the data length of data volume can arrange accordingly according to the concrete condition of the data of transmission, and the data length of this data volume is unfixing.
Step 102, dma controller receive and have stored after the data frame head of reception definite, read the data frame head that the first storage space is preserved, and the data volume of the Frame of reception is stored in to the second storage space.
In this step 102, dma controller receives and has stored after the data frame head of reception definite, can be by producing the mode of interrupt request, the data frame head that is read storage by interrupt service routine to the first storage space is with the information of the data length that obtains this data frame head and carry.In addition, the technical program does not limit for the order of carrying out the operation of " reading the data frame head that the first storage space is preserved " and " data volume of the Frame of reception is stored in to the second storage space ", be that aforesaid operations can be according to actual applied environment, carry out simultaneously, or carry out successively as required, repeat no more herein.The data volume of the described Frame in this programme is the data except data frame head in Frame.
The information of the data length that step 103, dma controller carry the data frame head reading is sent to the application program for the treatment of Frame.
In this step 103, in practical application, description that can be based in step 102, interrupt service routine reads in after the data frame head of storing in the first storage space, the information of the data length that the data frame head reading is carried is sent to application program, by application program, carry out follow-up operation, so far, end interrupt service routine is processed the operation of carrying out with end interrupt.In practical application, step 102 and step 103 are except the mode reading and saving of adopt to interrupt processing is at the data frame head of the first storage space and the information of the data length carrying in data frame head is sent to application program, can also or require according to the concrete condition of applied environment to adopt other modes to operate accordingly, herein, repeat no longer one by one.In this programme, can be according to the dma controller that produces interrupt request, also can realize according to the actual requirements the technical scheme of the information of the data length that corresponding reading and saving carries at the data frame head of the first storage space, in sending data frame head, for ease of describing, this programme is following carries out follow-up description by take DMA control as example.
The information of the data length that step 104, application program send according to dma controller, determines that dma controller receives and stored after data volume, reads the data frame head of the first storage space preservation and the data volume that the second storage space is preserved.
In this step 104, application program is in the information of the data length sending according to dma controller, judge when whether dma controller completes the operation that receives and store data volume, message transmission rate in the time of can be in conjunction with dma controller receiving data frames is carried out, for example, the result that the number of the bit that the data length of data volume is comprised and message transmission rate multiply each other is defined as dma controller and the data volume of the Frame of reception is stored in to the operation duration of the second storage space, in practical application, also can be in conjunction with applied environment, on the basis of the duration of determining, increase the duration of extra setting, fully to guarantee that Frame is received and to have stored, this extra duration can be generally the 5%-10% of the duration determined, in practical application, this ratio can arrange as the case may be flexibly.After this duration, can determine that the operation that dma controller is stored in the second storage space by the data volume of the Frame of reception completes.In addition, according to the needs of applied environment, at definite dma controller, receive and stored after data volume, can read the data frame head of the first storage space preservation and the data volume that the second storage space is preserved, also can directly read the data volume that the second storage space is preserved, directly obtain the data of Frame except data frame head.
So far, the flow process of the reception of data finishes.
In flow process corresponding to Fig. 1, can carry by the data frame head of Frame the information of data length, thereby at dma controller, complete after the reception of data frame head, the information of the data length that the data frame head of reception can be carried is sent to the application program for the treatment of the Frame receiving, thereby this application program can determine whether dma controller completes the reception of Frame according to the information of data length, and receive and stored after the data volume of Frame at definite dma controller, read in the data frame head of the first storage space preservation and the data volume of preserving at the second storage space, thereby dma controller can be supported the reception of the Frame of different data lengths, Frame that application program reads from storage space and the inconsistent problem of Frame of actual transmissions have been avoided, improved the success ratio of application program reading out data.
In the step 102 comprising in flow process corresponding to Fig. 1, at dma controller, definite, receive and stored after the data frame head of reception, read in the data frame head of the first storage space preservation, the technical program determines that for dma controller the operation of the data frame head that receives and stored reception provides several preferential embodiments, specific as follows:
When storage area size corresponding to the first storage space of the data frame head for store frames of data mated with the data length of the data frame head of Frame, dma controller can determine whether to receive and stored the data frame head of reception by monitoring the occupied situation of storage area that the first storage space is corresponding, for example, after dma controller monitors storage area that the first storage space is corresponding and all taken by data (the data frame head of the Frame receiving), determine and receive and stored data frame head;
When the storage area corresponding to the first storage space of the data frame head for store frames of data is greater than the data length of data frame head of Frame, dma controller can be when monitoring storage area that the first storage space is corresponding and mated by the data length of data (the data frame head of the Frame receiving) size taking and the data frame head of preserving in advance, definitely receives and stored described data frame head.
In the step 104 comprising in flow process corresponding to Fig. 1, the information of the data length sending according to dma controller in application program, determine that dma controller receives and stored after data volume, read in the data frame head of the first storage space preservation and the data volume of the second storage space preservation, the information of the data length that application program sends according to dma controller, determine when operation that dma controller received and stored data volume completes, application program can be according to the data length of the data frame head of data length corresponding to the information of data length and Frame, determine the data length of the data volume of Frame, and then, determine the duration of dma controller data volume of the Frame of storing received in the second storage space, particularly, a kind of definite dma controller that Fig. 2 shows the present embodiment one to be provided receives and stores the schematic flow sheet that the operation of data volume completes, as figure, this determines that dma controller receives and store the process that the operation of data volume completes, mainly comprise the following steps:
The difference of the data length that the information of the data length that step 201, application program send DMA interrupt handling routine is corresponding and the data length of data frame head, is defined as the data length of data volume.
Step 202, application program, according to the data length of data volume, determine that dma controller is stored in by the data volume of the data length of determining receiving the duration that the second storage space needs.
In this step 202, application program can be in the situation that message transmission rate during clear and definite dma controller receiving data frames, according to the data length of data volume, determine dma controller the data volume of the data length of determining receiving is stored in to the duration that the second storage space needs, particularly, can be with reference to the associated description in above-mentioned steps 104.
Step 203, application program, after the duration through determining, determine that the operation that dma controller received and stored data volume completes.
In this step 203, based on application program, receive the information that dma controller sends data length, and after receiving the information of data length, perform step 201 and the duration of step 202, the duration of the Frame of dma controller reception storing received is negligible relatively, therefore, application program can start timing from receiving the time of the information of the data length that dma controller sends, and enter dormant state, after the duration through determining, application program is waken up and determines that the operation that dma controller is stored in the second storage space by the data volume of the Frame of reception completes, or, directly from determining the time that dma controller is stored in by the data volume of the data length of determining receiving the duration that the second storage space needs, start timing, and enter dormant state, after the duration through determining, application program is waken up and determines that the operation that dma controller is stored in the second storage space by the data volume of the Frame of reception completes.
So far, determine that dma controller receives and stores the flow process that the operation of data volume completes and finishes.
Based on above-mentioned, be respectively used to the feature that the data frame head of store frames of data and the first storage space of data volume and the second storage space are assigned with Shi position, " reading the data frame head of the first storage space preservation and the data volume that the second storage space is preserved " in the step 104 that the technical program comprises for the corresponding flow process of Fig. 1, several preferred implementations are provided, specific as follows:
Preferred implementation one
In this preferred implementation one, the storage area that storage area that the first storage space is corresponding is corresponding with the second storage space is adjacent, and after the storage area that the second storage space is corresponding is positioned at the storage area that the first storage space is corresponding, to should the first storage space and the feature of the position of the second storage space, the application program that Fig. 3 shows the embodiment of the present invention one to be provided reads the data frame head of the first storage space preservation and the schematic flow sheet of the data volume that the second storage space is preserved, as shown in Figure 3, the data frame head of this reading and saving and the process of data volume, mainly comprise the following steps:
Step 301, application program are determined the start address of the address of the first storage space.
In this step 301, after being positioned at the storage area storage area adjacent and that the second storage space is corresponding of the secondth storage space the storage area that the first storage space is corresponding based on the empty corresponding storage area of the first storage, be that the first storage space of CPU distribution and the storage area of the second storage space are continuous, dma controller is in continuous storage area after save data, if desired the data of reading and saving, generally determine the start address of the address of this continuous storage area, determine the start address of the address of the first storage space.If only need to read the data volume of the Frame of storing in the second storage space, start address that can be using after amount of physical memory corresponding to the first storage space and the address of the storage space adjacent with this amount of physical memory as the second storage space.
The information of the data length that step 302, application program send according to dma controller, the start address since the address of the first storage space, reads the data of the data length of determining as data frame head and the data volume of Frame.
In this step 302, application program is since the start address of the address of the first storage space, read the corresponding data length consistent data of information of the data length sending with dma controller, the Frame of these data that read for being formed by data frame head and data volume.If only need to read the data volume of the Frame of storing in the second storage space, the start address of the second storage space of directly determining from step 301 starts the data that reading out data length is consistent with the data length of the data volume of Frame, as the data volume of Frame.
So far, the flow process that reads the data frame head of the first storage space preservation and the data volume of the second storage space preservation finishes.
Preferred implementation two
In this preferred implementation two, the storage area that storage area that the first storage space is corresponding is corresponding with the second storage space is non-adjacent, to should the first storage space and the feature of the position of the second storage space, the application program that Fig. 4 shows the embodiment of the present invention one to be provided reads the data frame head of the first storage space preservation and the schematic flow sheet of the data volume that the second storage space is preserved, as shown in Figure 4, the data frame head of this reading and saving and the process of data volume, mainly comprise the following steps:
Step 401, application program are determined the address of the first storage space and the address of the second storage space.
Step 402, application program are according to the data length of the data frame head of Frame, from the storage area reading out data length data consistent with the data length of data frame head corresponding to the address of the first storage space, as the data frame head of Frame.
In this step 402, during the application program storage area reading out data corresponding from the address of the first storage space, can be according to the address of the first storage space, since the initial memory address reading out data length of storage area corresponding to the address of the first storage space data consistent with the data length of data frame head.
Step 403, application program are according to the data length of the data volume of Frame, from the storage area reading out data length data consistent with the data length of data volume corresponding to the address of the second storage space, as the data volume of Frame.
In this step 403, during the application program storage area reading out data corresponding from the address of the second storage space, can start the data that reading out data length is consistent with the data length of data volume according to the initial memory address of storage area corresponding to the ,Cong Gai address, address of the second storage space.If only need to read the data volume of the Frame of storing in the second storage space, can in step 401, determine the address of the second storage space, then carry out this step 403.If desired read complete Frame, the execution sequence of this step 403 and step 402, can carry out flexibly according to actual conditions, be not construed as limiting herein, for example, can perform step 402 and step 403 simultaneously, or, in execution step 403 rear execution steps 402, or, perform step 402 rear execution steps 403.
So far, the flow process that reads the data frame head of the first storage space preservation and the data volume of the second storage space preservation finishes.
Embodiment bis-
This embodiment bis-provides a kind of receiving system of data, this system can be applied in embedded system, by apply the technical program in embedded system, Frame that application program reads from storage space and the inconsistent problem of Frame of actual transmissions can be avoided, thereby the object of the success ratio that improves application program reading out data can be reached.
The receiving system of the data that the present embodiment two provides, comprises dma controller and application program, wherein:
Dma controller, for the data frame head of the Frame of reception is stored in to the first storage space, data frame head carries the information for the data length of characterization data frame, definite, receive and stored after data frame head, read the data frame head that the first storage space is preserved, and the information of the data length that data frame head is carried is sent to the application program for the treatment of Frame, and, definite, receive and stored after data frame head, the data volume of the Frame of reception is stored in to the second storage space;
Application program, for according to the information of the data length of dma controller transmission, determines that dma controller receives and stored after data volume, reads the data frame head of the first storage space preservation and the data volume that the second storage space is preserved.
Further, the dma controller that the present embodiment two provides and application program also have following functions, specific as follows:
Dma controller is when determining the operation that receives and stored data frame head, if the size for storage area corresponding to the first storage space of store frames of data head is mated with the data length of data frame head, can, after monitoring storage area that the first storage space is corresponding and all being taken by data frame head, determine and receive and stored data frame head; When if the size of the storage area that the first storage space is corresponding is greater than the data length of data frame head,, when the data length that monitors the storage area size being taken by data frame head and the data frame head of preserving in advance that the first storage space is corresponding mates, determine and receive and stored according to frame head.
The information of the data length that application program sends according to dma controller, when determining that dma controller receives and stored the operation of data volume, can be by the difference of the data length of data length corresponding to the information of data length and data frame head, be defined as the data length of data volume, then according to the data length of data volume, determine that dma controller is stored in by the data volume of reception the duration that the second storage space needs, and after the duration through determining, determine that dma controller receives and stored data volume.
When application program reads the data frame head of the first storage space preservation and the data volume of the second storage space preservation, can carry out corresponding read operation according to the feature of the position of the first storage space and the second storage space, for example, if the storage area that the storage area that the first storage space is corresponding is corresponding with the second storage space is adjacent, and after the storage area that the second storage space is corresponding is positioned at the storage area that the first storage space is corresponding, application program can be after the start address of address of determining the first storage space, the information of the data length sending according to dma controller, start address since the address of the first storage space, data frame head and data volume using the data of the data length with dma controller transmission reading as Frame, if the storage area that the storage area that the first storage space is corresponding is corresponding with the second storage space is non-adjacent, application program can be behind definite address of the first storage space and the address of the second storage space, according to the data length of the data frame head of Frame, by the data of the data length of storage area reading out data frame head corresponding to the address from the first storage space, data frame head as Frame, and according to the data length of the data volume of Frame, by the data of the data length of storage area reading out data body corresponding to the address from the second storage space, data volume as Frame.
Embodiment tri-
This embodiment tri-provides a kind of receiving trap of data, this device can be applied in embedded system, further, this device can be applied in dma controller, by apply the technical program in embedded system, Frame that application program reads from storage space and the inconsistent problem of Frame of actual transmissions can be avoided, thereby the object of the success ratio that improves application program reading out data can be reached.
Fig. 5 shows the structural representation of the receiving trap of a kind of data that the embodiment of the present invention two provides, and as shown in Figure 5, this device comprises:
Information transmitting unit 504 and the data volume storage unit 505 of data frame head storage unit 501, data frame head storage monitoring unit 502, data frame head reading unit 503, data length, wherein:
Data frame head storage unit 501, for the data frame head of the Frame of reception is stored in to the first storage space, data frame head carries the information for the data length of characterization data frame;
Whether data frame head storage monitoring unit 502, receive and stored data frame head for specified data frame head storage unit 501;
Data frame head reading unit 503, for receiving and stored after data frame head in data frame head storage monitoring unit 502 specified data frame head storage unit 501, reads the data frame head that the first storage space is preserved;
The information transmitting unit 504 of data length, the information of the data length carrying for the data frame head that data frame head reading unit 503 is read is sent to the application program for the treatment of Frame;
Data volume storage unit 505, for receiving and stored after data frame head in data frame head storage monitoring unit 502 specified data frame head storage unit 501, is stored in the second storage space by the data volume of the Frame of reception.
In the preferred implementation that the embodiment of the present invention three provides, the data frame head storage monitoring unit 502 that Fig. 5 shown device comprises, specifically for after monitoring storage area that the first storage space is corresponding and all being taken by data frame head, specified data frame head storage unit receives and has stored data frame head, wherein, the storage area size that the first storage space is corresponding is mated with the data length of data frame head; Or when the data length that monitors the storage area size being taken by data frame head and the data frame head of preserving in advance that the first storage space is corresponding mates, specified data frame head storage unit receives and has stored data frame head.
Fig. 6 shows the receiving trap of another data that the present embodiment three provides, and this device can be applied in embedded system, and further, this device can be applied in the equipment for the treatment of the data after receiving and preserving, and as shown in Figure 6, this device comprises:
The information receiving unit 601 of data length, data volume have been stored determining unit 602 and Frame reading unit 603, wherein:
The information receiving unit 601 of data length, for receive that direct memory access dma controller sends for characterizing the information of data length of the Frame of reception;
Data volume has been stored determining unit 602, for according to the information of the data length of information receiving unit 601 receptions of data length, determines whether dma controller completes the operation of the data volume of reception store frames of data;
Frame reading unit 603, for store the definite dma controller of determining unit 602 at data volume, receive and stored after the data volume of Frame, reading DMA controller receives and is kept at the data frame head of Frame of the first storage space and the data volume that dma controller received and be kept at the second storage space.
In the preferred implementation that the embodiment of the present invention three provides, the data volume that Fig. 6 shown device comprises has been stored determining unit 602, specifically for by the difference of the data length of data length corresponding to the information of data length and data frame head, be defined as the data length of data volume; According to the data length of data volume, determine that dma controller is stored in by the data volume of the data length of reception the duration that the second storage space needs; And after duration, determine that dma controller receives and stored data volume.
In the preferred implementation that the embodiment of the present invention three provides, the Frame reading unit 603 that Fig. 6 shown device comprises, if after being positioned at specifically for storage area corresponding to the first storage space storage area corresponding with the second storage space storage area adjacent and that the second storage space is corresponding the storage area that the first storage space is corresponding, determine the start address of the address of the first storage space; And the information of the data length sending according to dma controller, since the start address of the address of the first storage space, the data of reading out data length are as data frame head and the data volume of Frame.
In the preferred implementation that the embodiment of the present invention three provides, the Frame reading unit 603 that Fig. 6 shown device comprises, if non-adjacent specifically for the storage area that storage area corresponding to the first storage space is corresponding with the second storage space, determine the address of the first storage space and the address of the second storage space; According to the data length of the data frame head of Frame, from the data of the data length of storage area reading out data frame head corresponding to the address of the first storage space, as the data frame head of Frame; And according to the data length of the data volume of Frame, from the data of the data length of storage area reading out data body corresponding to the address of the second storage space, as the data volume of Frame.
Should be appreciated that the only logical partitioning for carrying out according to the function of this device realization of unit that above device comprises, in practical application, can carry out stack or the fractionation of said units.And the method for reseptance flow process of a kind of data that the function that the device that this embodiment provides is realized provides with above-described embodiment is corresponding one by one, the more detailed treatment scheme realizing for this device, in said method embodiment, be described in detail, be not described in detail herein.
And the receiving trap of the data in the present embodiment three also has the functional module that can realize embodiment mono-and embodiment bis-schemes, repeats no more herein.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the application's scope.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.