Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data transmission realizing method and system based on SPI

A technology of data transmission and data, which is applied in the field of communication, can solve problems such as complex software implementation and handshake scheme protocol implementation complexity, and achieve the effects of low implementation cost, simple implementation scheme, and improved transmission efficiency

Inactive Publication Date: 2009-10-07
深圳市智通天下科技服务有限公司
View PDF0 Cites 54 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of implementing the present invention, the inventor found that the SPI handshake implementation mechanism provided by the prior art only has two signal lines in opposite directions. Handshake will lead to very complicated implementation of the protocol of the handshake scheme, and the corresponding implementation software will also be very complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data transmission realizing method and system based on SPI
  • Data transmission realizing method and system based on SPI
  • Data transmission realizing method and system based on SPI

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] exist figure 1 On the basis of the present embodiment, the AP (master device) in the one-way data transmission sends data to the Modem (slave device) as an example for illustration, see figure 2 , the content of the method provided by the embodiment of the present invention is as follows:

[0038] Step 101: when the AP wants to send data to the Modem, the AP sends an MREQ signal to the Modem through the MREQ line;

[0039] Wherein, this embodiment takes the AP as the master device as an example for description. After the AP sends the MREQ signal to the Modem through the MREQ line, it waits to receive the SRDY signal returned from the Modem.

[0040] Step 102: After the Modem receives the MREQ signal, it judges whether it is in a sleep state, and if so, executes step 103; otherwise, executes step 104;

[0041] Step 103: Modem wakes up sleep, and then executes step 104;

[0042] Wherein, if the Modem is in the sleep state when receiving the MREQ signal, the sleep stat...

Embodiment 2

[0087] exist figure 1 On the basis of the present embodiment, the Modem (slave device) in the one-way data transmission sends data to the AP (master device) as an example for illustration, see Figure 6 , the content is as follows:

[0088] Step 301: When the Modem wants to send data to the AP, it sends an SREQ signal to the AP through the SREQ line.

[0089] Wherein, when the Modem wants to send data to the AP, after the Modem confirms that the last transmission has been completed, or the Modem sends data to the AP for the first time, the SREQ signal is used to notify the AP to receive the data. After the Modem sends the SREQ signal to the AP through the SREQ line, it waits to receive the MRDY signal returned from the AP.

[0090] Step 302: The AP receives the SREQ signal sent by the Modem, and judges whether the AP itself is in a sleep state, and if so, executes step 303; otherwise, executes step 304;

[0091] Step 303: the AP wakes up the sleep state, and then executes s...

Embodiment 3

[0135] exist figure 1 On the basis of the present embodiment, the AP (master device) in the two-way data transmission is sending data to the Modem (slave device) process, and the Modem sends data to the AP as an example for illustration, see Figure 10 , the content is as follows:

[0136] Step 501: During the process of sending data from the AP to the Modem, if there is a need for the Modem to send data to the AP, the Modem sends an SREQ signal to the AP through the SREQ line;

[0137] Wherein, the SREQ signal is used to notify the AP to receive data.

[0138] Step 502: The AP receives the SREQ signal sent by the Modem, and the AP clears its receiving FIFO;

[0139] Step 503: AP judges whether the DMA transfer between the receiving FIFO and the off-chip memory is over, if yes, then execute step 504; otherwise, wait for the end of the transfer, and then execute step 504;

[0140] Step 504: The AP sets the RWOT mode. After setting the RWOT mode, the AP sends the MRDY signal ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data transmission realizing method and system based on SPI, belonging to the communication field. When the data is sent to a slave device by a master device, the MREQ signal is sent to the slave device through a MREQ line by the master device and a data package of first package is sent to the slave device by a master device output slave device input data line MOSI wherein the packaged data package is carried with a packet head mark and a length mark, after the SRDY signal from the slave device is received through a SRDY line. When the data is set to the master device from the slave device, the SREQ signal is sent to the master device from the slave device by a SREQ line and a data package of second package is sent to the slave device by the master device input slave device output data line MOSI after the SREQ signal is sent to the master device from the slave device by the SREQ line. The method and device realize high-speed data transmission based on SPI interface, with features of simple scheme, low cost, easy realization of handshake mechanism, reduced workload of the master device and the slave device and increased transmission efficiency.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and system for realizing data transmission based on SPI. Background technique [0002] With the development of communication technology, the current common architecture of smart mobile terminals is a communication Modem plus AP (Application Processor, application processor), where the AP is used to run applications and media-related programs, and the Modem is used to run communication-related program. In broadband mobile technologies such as HSPA (High-Speed ​​Packet Access) and HSPA+ (enhanced high-speed packet access), high-speed data transfer between Modem and AP is required to meet user needs. [0003] Therefore, in order to achieve the purpose of high-speed data transfer between the Modem and the AP, the prior art provides RAM (Random Access Memory, Random Access Memory) on the Modem side and the AP side respectively, and caches received data and cache data through the RA...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/56H04L29/06
Inventor 桑伟潘时林
Owner 深圳市智通天下科技服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products