CN107368449A - Communication system and method between a kind of processor - Google Patents
Communication system and method between a kind of processor Download PDFInfo
- Publication number
- CN107368449A CN107368449A CN201610318189.8A CN201610318189A CN107368449A CN 107368449 A CN107368449 A CN 107368449A CN 201610318189 A CN201610318189 A CN 201610318189A CN 107368449 A CN107368449 A CN 107368449A
- Authority
- CN
- China
- Prior art keywords
- module
- processor
- message
- communication
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/167—Interprocessor communication using a common memory, e.g. mailbox
Abstract
Communication system and method between a kind of processor, the system include:Virtual equipment driver module, message module and data cache module;The virtual equipment driver module, the target drives module corresponding to the communication data is selected in multiple drive modules suitable for the communication data according to transmitting terminal processor, the communication data transfer to the data cache module is carried out tissue and storage by the target drives module;The message module, suitable under the control of the target drives module, sending a message to receiving terminal processor, to notify the receiving terminal processor to read the communication data according to the instruction of the message;The data cache module, suitable for storing the communication data, the data cache module is that the transmitting terminal processor and the receiving terminal processor are shared.Such scheme can reduce the expense of system resource.
Description
Technical field
The present invention relates to communication technique field, more particularly to the communication system and method between a kind of processor.
Background technology
It is mutual in chip design that smart mobile phone is different from functional mobile phone, its application processor and communication processor
It is mutually independent, on hardware using it is this design be it is a kind of it is highly efficient by the way of.Based on above-mentioned hardware design side
Case, application processor side turn into independent hardware subsystem with Communication processor side, will there is frequency between the two
The data interaction business of numerous software and hardware aspect, to meet the data interaction business, usable shared drive,
Interrupt and message mailbox (Mailbox) resource.
However, there is the problem of system resource overhead is larger in traditional inter-processor communication.
The content of the invention
Present invention solves the technical problem that it is the system resource overhead of inter-processor communication.
In order to solve the above technical problems, the embodiment of the present invention provides the communication system between a kind of processor, bag
Include:Virtual equipment driver module, message module and data cache module;
The virtual equipment driver module, suitable for the communication data according to transmitting terminal processor in multiple drivings
Selection is corresponding to the target drives module of the communication data in module, and the target drives module is by described in
Communication data transfer to the data cache module carries out tissue and storage;The message module, suitable for
Under the control of the target drives module, receiving terminal processor is sent a message to, to notify the receiving terminal
Processor reads the communication data according to the instruction of the message;The data cache module, suitable for depositing
The communication data is stored up, the data cache module is that the transmitting terminal processor and the receiving terminal are handled
Device is shared.
Alternatively, the message is packaged according to particular frame format, and the frame format includes channel number
Field, message type field and message content field, wherein, the information of the channel number field and reception
Hold processor to handle the task number of the communication data to correspond to, the information instruction institute of the message type field
State receiving terminal processor and read the communication data, the information of the message content field indicates the communication
The position of data storage.
Alternatively, the communication system also includes:
Shared-memory management module, the number taken suitable for distributing, managing and discharging the communication data
According to the space of cache module.
Alternatively, the message is transmitted to the receiving terminal processor by shared drive or message mailbox.
Alternatively, the data cache module includes serial data cache module and block data cache module,
The virtual equipment driver module is further adapted for selecting to cache using the serial data according to the communication data
Module or block data cache module carry out tissue and storage to the communication data.
Alternatively, the drive module is selected from:
Trawl performance module, audio driver module, tty virtual equipment drivers module and pipe device drives moulds
Block.
Alternatively, the message module sends the message when meeting preparatory condition.
Alternatively, the transmitting terminal processor and the receiving terminal processor are respectively in following processor
Any two:
Application processor, communication processor and power management processor.
The embodiment of the present invention also provides the communication means between a kind of processor, including:
Selected in multiple drive modules to correspond to the communication number according to the communication data of transmitting terminal processor
According to target drives module, the target drives module is by the communication data transfer to data cache module
Tissue and storage are carried out, the data cache module is that the transmitting terminal processor and receiving terminal processor are total to
Enjoy;Under the control of the target drives module, the receiving terminal processor is sent a message to, with notice
The receiving terminal processor reads the communication data according to the instruction of the message.
Alternatively, the message is packaged according to particular frame format, and the frame format includes channel number
Field, message type field and message content field, wherein, the information of the channel number field and reception
Hold processor to handle the task number of the communication data to correspond to, the information instruction institute of the message type field
State receiving terminal processor and read the communication data, the information of the message content field indicates the communication
The position of data storage.
Alternatively, the message is transmitted to the receiving terminal processor by shared drive or message mailbox.
Alternatively, the communication data transfer to data cache module is carried out into tissue and storage includes:Root
According to communication data selection using serial data cache module or block data cache module to the communication number
According to carrying out tissue and storage.
Alternatively, it is described to send a message to the receiving terminal processor and carried out when meeting preparatory condition.
Compared with prior art, the technical scheme of the embodiment of the present invention has the advantages that:
Communication system between the processor of the embodiment of the present invention includes virtual equipment driver module, message module
And data cache module.The virtual equipment driver module is according to the communication data of transmitting terminal processor more
Selection is corresponding to the target drives module of the communication data, the target drives module in individual drive module
The communication data transfer to the data cache module is subjected to tissue and storage, the data buffer storage mould
Block, suitable for storing the communication data, the data cache module is the transmitting terminal processor and described
Receiving terminal processor is shared, so as to realize the communication of transmitting terminal processor and receiving terminal processor.It is same with this
When, due to setting message module to send a message to receiving terminal processor so that receiving terminal processor is receiving
During the message, communication data just is read from the data cache module according to the instruction of the message,
So as to avoid receiving terminal processor from continually taking hardware resource to read communication data, and then can save
Overhead.
Further, by being selected to use the serial data cache module or block according to the communication data
Data cache module carries out tissue and storage to the communication data, and data transfer can be caused to become efficient,
Adapt to the demand of high-speed scene.
Brief description of the drawings
Fig. 1 is the structural representation of the communication system between a kind of processor in the embodiment of the present invention;
Fig. 2 is the schematic diagram of the communication construction between a kind of processor in the embodiment of the present invention;
Fig. 3 is the schematic diagram of the communication construction between another processor in the embodiment of the present invention;
Fig. 4 is the flow chart of the communication means between a kind of processor in the embodiment of the present invention.
Embodiment
As background technology is sayed, smart mobile phone is different from functional mobile phone, its application processor and baseband chip
Can be designed to mutually it is independent, on hardware using it is this design be it is a kind of it is highly efficient by the way of.It is based on
Above-mentioned hardware scheme, application processor side turn into independent hardware subsystem with Communication processor side,
To have between the two frequently, the data interaction business of hardware view, at present smart mobile phone use substantially shared
Internal memory, interruption and message mailbox (Mailbox) realize inter-processor communication.However, traditional processor
Between communication the problem of system resource overhead is larger be present.
Communication system between the processor of the embodiment of the present invention includes virtual equipment driver module, message module
And data cache module.The virtual equipment driver module is according to the communication data of transmitting terminal processor more
Selection is corresponding to the target drives module of the communication data, the target drives module in individual drive module
The communication data transfer to the data cache module is subjected to tissue and storage, the data buffer storage mould
Block, suitable for storing the communication data, the data cache module is the transmitting terminal processor and described
Receiving terminal processor is shared, so as to realize the communication of transmitting terminal processor and receiving terminal processor.Above-mentioned side
Case is due to setting message module to send a message to receiving terminal processor so that receiving terminal processor is receiving
When stating message, communication data just is read from the data cache module according to the instruction of the message, from
And avoid the receiving terminal processor from continually taking hardware resource to read communication data, and then can save
Save overhead.
It is understandable to enable above-mentioned purpose, feature and the beneficial effect of the present invention to become apparent, with reference to
Accompanying drawing is described in detail to the specific embodiment of the present invention.
Fig. 1 is the communication system between a kind of processor in the embodiment of the present invention.Signified communication of the invention
It can be carried out between any two in application processor, communication processor and power management processor.Such as
Shown in Fig. 1, the communication system can include:Virtual equipment driver module 101, data cache module
102 and message module 103.
The virtual equipment driver module 101, suitable for the communication data according to transmitting terminal processor in multiple drives
Selection is corresponding to the target drives module of the communication data in dynamic model block, and the target drives module is by institute
State communication data transfer to the data cache module and carry out tissue and storage.
In specific implementation, the transmitting terminal processor for send communication data processor, the reception
Processor is held to receive the processor of communication data, transmitting terminal processor and receiving terminal processor positioned at same
In terminal device (such as smart mobile phone).For example, in a communications, the transmitting terminal processing
Device can be the application processor in smart mobile phone, and the receiving terminal processor can be same smart mobile phone
In Communication processor.
In specific implementation, the drive module can include trawl performance module, audio driver module, tty
(telex machine, TeleTypewriter) device driver module and pipe (pipeline) device driver module.
The drive module can drive corresponding virtual unit, for example, the trawl performance module can drive
Virtual unit network interface card.The virtual unit meets the operating specification of physical equipment under the operating system.According to
The communication data of client layer write-in can select one of which drive module as target drives module, by institute
Target drives module is stated the communication data transfer to the data cache module 102 is carried out into tissue and deposited
Storage.
One in the specific implementation, the drive module can be handed over interface in the file system of client layer
Mutually, with obtain client layer write-in communication data.
It should be noted that the drive module can also include other kinds of drive module, and it is unlimited
In above-mentioned four type.
The data cache module 102 is suitable to store the communication data, the data cache module 102
Shared for the transmitting terminal processor and the receiving terminal processor.That is, the transmitting terminal processor and
The receiving terminal processor can access the data cache module 102.The data cache module 102
For a part for shared drive, by setting the data cache module 102, shared drive quilt can be avoided
Frequent visit, so as to save resource overhead.
In specific implementation, the communication system between the processor can also include shared-memory management module.
In specific implementation, the data cache module 102 is being established by the shared-memory management module
Distributed during communication data path, and subsequently by shared-memory management module management and the release communication number
According to the space of the data cache module of occupancy.By setting shared-memory management module, make upper strata more
Easily using required internal memory.
In an embodiment of the present invention, the data cache module 102 can include serial data caching mould
Block and block data cache module, the virtual equipment driver module 101 can be selected according to the communication data
Select using the serial data cache module or block data cache module the communication data is carried out tissue and
Storage.
Specifically, can be determined to use serial data cache module or block according to the data mode of communication data
Data cache module.For example, AT orders are the data flow of indefinite length, then mould is cached using serial data
Block;And network data is message form, then block data cache module is used to enter according to single message for unit
Row piecemeal stores.And for example, daily record data and sensor sample data can use serial data cache module,
Audio related data uses block data cache module.By being selected to use the string according to the communication data
Row data buffer storage or block data cache module carry out tissue and storage to the communication data, can make total
Become efficient according to transmission, adapt to the demand of high-speed scene.
The message module 103, suitable under the control of the target drives module 101, sending a message to
Receiving terminal processor, to notify the receiving terminal processor to read the communication according to the instruction of the message
Data.
In specific implementation, the message is packaged according to particular frame format, and the frame format includes
Channel number field, message type field and message content field, wherein, the information of the channel number field
It is corresponding with the task number of the receiving terminal processor processing communication data, the information of the message type field
Indicate that the receiving terminal processor reads the communication data, the information instruction institute of the message content field
State the position of communication data storage.The receiving terminal processor is obtained described logical by parsing the message
The position of letter data storage, it is hereby achieved that corresponding communication data.
In an embodiment of the present invention, the message module 103 sent when meeting preparatory condition described in disappear
Breath., can be in once serial number waiting for transmission for serial data cache module during specific implementation
Message is sent after according to write-in, message can also be sent when the space of serial data cache module takes;
For block data cache module, message can be sent when first block number finishes according to write-in.Can be with
Understand, can also meet that other preparatory conditions are to send message.The pre- of message is sent by setting
If condition, the frequency for sending message can be controlled, so as to avoid continually taking the transmission message
Hardware resource, save the expense of system.
The embodiment of the present invention is by setting the message module 103, in the control of the target drives module
Under, receiving terminal processor is sent a message to, to notify finger of the receiving terminal processor according to the message
Show and read the communication data so that receiving terminal processor when receiving the message just by
Instruction according to the message reads communication data from the data cache module, so as to avoid at receiving terminal
Reason device continually takes hardware resource to read communication data, and then can save overhead.
In specific implementation, the message is transmitted to the receiving terminal by shared drive or message mailbox
Manage device.The communication system for illustrating the present invention below by Fig. 2 and Fig. 3 uses the different hardware of above two
The communication construction of formation.
Fig. 2 is referred to, Fig. 2 shows a kind of application processor 20 with being communicated between Communication processor 21
Communication construction.The communication system includes virtual equipment driver module 101, message module 103, data
Cache module 103 and shared-memory management module 104.The hardware resource that communication system shown in Fig. 2 uses
Including shared drive 22 and (IPI) 23 is interrupted, the message is transmitted by shared drive 22.Its
In, the part in the shared drive 22 is arranged to be exclusively used in transmitting institute (as shown by the shaded portion)
State message.
Fig. 3 is referred to, Fig. 3 is shown to be led between another application processor 20 and Communication processor 21
The communication construction of letter.The communication system include virtual equipment driver module 101, data cache module 102,
Message module 103 and shared-memory management module 104.The hardware resource that communication system shown in Fig. 3 uses
Including shared drive and message mailbox (mailbox) 24, the message is carried out by the message mailbox 24
Transmission.What comparison diagram 2 and Fig. 3 can be seen that two kinds of communication constructions the difference is that only transmission message
Used hardware is different, when message mailbox 24 in hardware resource be present, uses message mailbox 24
Transmit the message.Specifically, the message mailbox 24 is transmitted using hardware FIFO (first in first out)
Message, and shared drive uses buffer circle (Ring Buffer) transmission message.
Fig. 4 is the flow chart of the communication means between a kind of processor in the embodiment of the present invention.Referring to
Step shown in Fig. 2 illustrates.
Step S401:Select to correspond in multiple drive modules according to the communication data of transmitting terminal processor
The target drives module of the communication data, the target drives module is by the communication data transfer to number
Tissue and storage are carried out according to cache module, and the data cache module is the transmitting terminal processor and described
Receiving terminal processor is shared.
In specific implementation, the message is packaged according to particular frame format, and the frame format includes
Channel number field, message type field and message content field, wherein, the information of the channel number field
It is corresponding with the task number of the receiving terminal processor processing communication data, the information of the message type field
Indicate that the receiving terminal processor reads the communication data, the information instruction institute of the message content field
State the position of communication data storage.
In specific implementation, the message is transmitted to the receiving terminal by shared drive or message mailbox
Manage device.
In specific implementation, the communication data transfer to data cache module is subjected to tissue and storage is wrapped
Include:According to communication data selection using serial data cache module or block data cache module to described
Communication data carries out tissue and storage.
Step S402:Under the control of the target drives module, receiving terminal processor is sent a message to,
To notify the receiving terminal processor to read the communication data according to the instruction of the message.
In specific implementation, the message is sent when meeting preparatory condition.During specific implementation, for string
For row data cache module, message can be sent after once serial data write-in waiting for transmission,
Message can also be sent when the space of serial data cache module takes;For block data cache module
Speech, can send message when first block number finishes according to write-in.It is understood that can also be full
Other preparatory conditions of foot are to send message.The preparatory condition of message is sent by setting, transmission can be controlled
The frequency of message, so as to avoid continually taking the hardware resource for transmitting the message, save system
Expense.
Communication means between the processor about the embodiment of the present invention can be to should refer to the processor
Between communication system description, will not be repeated here.
The embodiment of the present invention is due to setting message module to send a message to receiving terminal processor so that receiving terminal
Processor is just read when receiving the message according to the instruction of the message from the data cache module
Communication data is taken, so as to avoid receiving terminal processor from continually taking hardware resource to read communication data,
And then overhead can be saved.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment
Suddenly it is that by program the hardware of correlation can be instructed to complete, the program can be stored in computer-readable
In storage medium, storage medium can include:ROM, RAM, disk or CD etc..
The method and system of the embodiment of the present invention are had been described in detail above, the present invention is not limited thereto.
Any those skilled in the art, without departing from the spirit and scope of the present invention, can make it is various change with
Modification, therefore protection scope of the present invention should be defined by claim limited range.
Claims (13)
- A kind of 1. communication system between processor, it is characterised in that including:Virtual equipment driver module, message Module and data cache module;The virtual equipment driver module, suitable for the communication data according to transmitting terminal processor in multiple driving moulds Selection is corresponding to the target drives module of the communication data in block, and the target drives module is by described in Communication data transfer to the data cache module carries out tissue and storage;The message module, suitable under the control of the target drives module, sending a message at receiving terminal Device is managed, to notify the receiving terminal processor to read the communication data according to the instruction of the message;The data cache module, suitable for storing the communication data, the data cache module is the hair Sending end processor and the receiving terminal processor are shared.
- 2. the communication system between processor according to claim 1, it is characterised in that the message by by It is packaged according to particular frame format, the frame format includes channel number field, message type field and disappeared Content field is ceased, wherein, information and the receiving terminal processor of the channel number field handle the communication The task number of data is corresponding, and the information of the message type field indicates that the receiving terminal processor is read The communication data, the information of the message content field indicate the position of the communication data storage.
- 3. the communication system between processor according to claim 1, it is characterised in that the communication system Also include:Shared-memory management module, the data taken suitable for distributing, managing and discharging the communication data The space of cache module.
- 4. the communication system between processor according to claim 1, it is characterised in that the message passes through Shared drive or message mailbox are transmitted to the receiving terminal processor.
- 5. the communication system between processor according to claim 1, it is characterised in that the data buffer storage Module includes serial data cache module and block data cache module, and the virtual equipment driver module is also Suitable for being selected to use the serial data cache module or block data cache module according to the communication data Tissue and storage are carried out to the communication data.
- 6. the communication system between processor according to claim 1, it is characterised in that the drive module It is selected from:Trawl performance module, audio driver module, tty virtual equipment drivers module and pipe device driver modules.
- 7. the communication system between processor according to claim 1, it is characterised in that the message module The message is sent when meeting preparatory condition.
- 8. the communication system between processor according to claim any one of 1-7, it is characterised in that described Transmitting terminal processor and the receiving terminal processor are respectively any two in following processor:Application processor, communication processor and power management processor.
- A kind of 9. communication means between processor, it is characterised in that including:Selected in multiple drive modules to correspond to the communication data according to the communication data of transmitting terminal processor Target drives module, the target drives module is by the communication data transfer to data cache module Tissue and storage are carried out, the data cache module is the transmitting terminal processor and receiving terminal processor It is shared;Under the control of the target drives module, the receiving terminal processor is sent a message to, to notify State receiving terminal processor and the communication data is read according to the instruction of the message.
- 10. the communication means between processor according to claim 9, it is characterised in that the message by by It is packaged according to particular frame format, the frame format includes channel number field, message type field and disappeared Content field is ceased, wherein, information and the receiving terminal processor of the channel number field handle the communication The task number of data is corresponding, and the information of the message type field indicates that the receiving terminal processor is read The communication data, the information of the message content field indicate the position of the communication data storage.
- 11. the communication means between processor according to claim 9, it is characterised in that the message passes through Shared drive or message mailbox are transmitted to the receiving terminal processor.
- 12. the communication means between processor according to claim 9, it is characterised in that by the communication number Carry out tissue and storage according to transmitting to data cache module and include:Select to use according to the communication data Serial data cache module or block data cache module carry out tissue and storage to the communication data.
- 13. the communication means between processor according to claim 9, it is characterised in that the transmission message Carried out to the receiving terminal processor when meeting preparatory condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610318189.8A CN107368449A (en) | 2016-05-13 | 2016-05-13 | Communication system and method between a kind of processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610318189.8A CN107368449A (en) | 2016-05-13 | 2016-05-13 | Communication system and method between a kind of processor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107368449A true CN107368449A (en) | 2017-11-21 |
Family
ID=60304175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610318189.8A Pending CN107368449A (en) | 2016-05-13 | 2016-05-13 | Communication system and method between a kind of processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107368449A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140337525A1 (en) * | 2013-05-13 | 2014-11-13 | Appsense Limited | Apparatus, systems, and methods for providing policy in network-based applications |
CN104462008A (en) * | 2014-12-05 | 2015-03-25 | 三星半导体(中国)研究开发有限公司 | Physical-memory-shared multi-processor communication system and communication method thereof |
-
2016
- 2016-05-13 CN CN201610318189.8A patent/CN107368449A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140337525A1 (en) * | 2013-05-13 | 2014-11-13 | Appsense Limited | Apparatus, systems, and methods for providing policy in network-based applications |
CN104462008A (en) * | 2014-12-05 | 2015-03-25 | 三星半导体(中国)研究开发有限公司 | Physical-memory-shared multi-processor communication system and communication method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1883212B (en) | Method and apparatus to provide data streaming over a network connection in a wireless MAC processor | |
CN103647807B (en) | A kind of method for caching information, device and communication equipment | |
CN106850565B (en) | A kind of network data transmission method of high speed | |
CN104820701B (en) | Data record and synchronous method and system | |
CN104521198B (en) | For the system and method for Virtual Ethernet binding | |
EP2755363B1 (en) | Data-fast-distribution method and device | |
CN103931158A (en) | System and method for content and application acceleration in a wireless communications system | |
CN101150485A (en) | A management method for network data transmission of zero copy buffer queue | |
CN101917350A (en) | Network card drive-based zero copy Ethernet message capturing and transmitting implementation method under Linux | |
CN105653484B (en) | A kind of deblocking compression multi-channel transmission method | |
CN103955436B (en) | A kind of data processing equipment and terminal | |
CN107257329A (en) | A kind of data sectional unloads sending method | |
CN101150486A (en) | A management method for receiving network data of zero copy buffer queue | |
CN102439574A (en) | Data replacement method in system cache and multi-core communication processor | |
CN105763297B (en) | A kind of teledata optimized transmission method and device based on cloud computing system | |
US11500541B2 (en) | Memory system and controlling method | |
CN105190530A (en) | Transmitting hardware-rendered graphical data | |
CN101437033B (en) | Method and network appliance for supporting variable velocity | |
CN101699421B (en) | Method and server for sharing serial port | |
CN107888337A (en) | A kind of method of FPGA, FPGA processing information, accelerator | |
CN107786464A (en) | A kind of method and device for realizing inter-node communication | |
CN106534249A (en) | File transmission system based on file straight-through technology | |
CN111404842B (en) | Data transmission method, device and computer storage medium | |
CN107368449A (en) | Communication system and method between a kind of processor | |
CN104660585B (en) | The kernel data Packet capturing technology of seamless connection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171121 |