CN109117398A - A kind of sensor control and terminal - Google Patents
A kind of sensor control and terminal Download PDFInfo
- Publication number
- CN109117398A CN109117398A CN201810791266.0A CN201810791266A CN109117398A CN 109117398 A CN109117398 A CN 109117398A CN 201810791266 A CN201810791266 A CN 201810791266A CN 109117398 A CN109117398 A CN 109117398A
- Authority
- CN
- China
- Prior art keywords
- data
- interface
- sensor
- processor
- mac
- 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
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0016—Inter-integrated circuit (I2C)
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0026—PCI express
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0038—System on Chip
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Abstract
The embodiment of the invention discloses a kind of sensor control and terminals, are related to field of communication technology, to solve the problems, such as that processor platform is unable to satisfy the data transfer demands of sensor.The sensor control includes: programmable unit, the sensor and processor that connect with programmable unit, is connected between programmable unit and processor by the first bus, and the message transmission rate of first bus is greater than the message transmission rate of APB;Wherein, sensor for acquiring the first data, and sends first data to programmable unit;Programmable unit carries out the first processing for receiving first data, and to first data, to obtain the second data, and to processor sends second data;Processor, for receiving second data.The sensor control can be applied in the scene of transmission data.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of sensor control and terminals.
Background technique
With the development of communication technology, the sensor of terminal inner setting is more and more.
Currently, processor platform (processor platform can be an integrated chip) can be arranged in the terminal, with
Each sensor in management terminal.For example, as shown in Figure 1, processor platform may include primary processor, coprocessor,
(inter integrated circuit, I2C) interface and serial peripheral (serial peripheral between integrated circuit
Interface, SPI) interface, wherein I2C interface and SPI interface by peripheral bus (advanced peripheral bus,
APB) connect with coprocessor, coprocessor by it is advanced expand interface (advanced extensible interface,
AXI) bus is connect with primary processor.After at least one sensor in n sensor collects data, I2C can be passed through
Interface or SPI interface are transmitted on APB, and then the data on APB can be transmitted in AXI bus by coprocessor, from
And the data in AXI bus can be transmitted to primary processor.
But since the message transmission rate of above-mentioned APB is usually less than the message transmission rate of AXI bus, with
The increase of the data volume of quantity or the sensor acquisition of sensor, APB possibly can not in time lead to the data that sensor acquires
Coprocessor and AXI bus transfer are crossed to primary processor, the data transmission of sensor is unable to satisfy so as to cause processor platform
Demand.
Summary of the invention
The embodiment of the present invention provides a kind of sensor control and terminal, is unable to satisfy sensing to solve processor platform
The problem of data transfer demands of device.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, the sensor control includes: can the embodiment of the invention provides a kind of sensor control
Programming unit, the sensor and processor connecting with programmable unit pass through the first bus between programmable unit and processor
Connection, the message transmission rate of first bus are greater than the message transmission rate of APB;Wherein, sensor, for acquiring the first number
According to, and first data are sent to programmable unit;Programmable unit, for receiving first data, and to first data
The first processing is carried out, to obtain the second data, and to processor sends second data;Processor, for receive this second
Data.
Second aspect, the embodiment of the invention provides a kind of terminal, which includes the sensing that above-mentioned first aspect provides
Device control device.
In embodiments of the present invention, sensor control may include: programmable unit, connect with programmable unit
Sensor and processor are connected between programmable unit and processor by the first bus, and the data of first bus transmit speed
Rate is greater than the message transmission rate of APB;Wherein, sensor, for acquire the first data, and to programmable unit send this first
Data;Programmable unit carries out the first processing for receiving first data, and to first data, to obtain the second data,
And second data are sent to processor;Processor, for receiving second data.With this solution, with prior art APB
The lower data transfer demands for leading to not meet sensor of message transmission rate compare, due to connection programmable unit and place
The message transmission rate for managing the first bus of device is greater than the message transmission rate of APB, therefore in the quantity or sensing of sensor
In the increased situation of the data volume of device acquisition, programmable unit can be carried out the first data that the sensor received is sent
First processing is to obtain the second data, and such first bus can rapidly by programmable unit, treated that second data pass
Transport to processor, i.e., sensor control provided in an embodiment of the present invention can satisfy the data transfer demands of sensor, from
And better service quality can be provided.
Detailed description of the invention
Fig. 1 is the connection schematic diagram of a kind of processor platform and sensor that the prior art provides;
Fig. 2 is a kind of one of schematic diagram of sensor control provided in an embodiment of the present invention;
Fig. 3 is the two of a kind of schematic diagram of sensor control provided in an embodiment of the present invention;
Fig. 4 is the three of a kind of schematic diagram of sensor control provided in an embodiment of the present invention;
Fig. 5 is the four of a kind of schematic diagram of sensor control provided in an embodiment of the present invention;
Fig. 6 is the five of a kind of schematic diagram of sensor control provided in an embodiment of the present invention;
Fig. 7 is the six of a kind of schematic diagram of sensor control provided in an embodiment of the present invention;
Fig. 8 is the seven of a kind of schematic diagram of sensor control provided in an embodiment of the present invention.
Label declaration in attached drawing: 20-sensor controls;21-programmable units;22-sensors;23-places
Manage device;24-the first bus;211-first interfaces;212-decoder modules;213-preprocessing modules;214-second interfaces;
215-the first control module;2141-the first MAC-layer interface;2142-the first PHY layer interface;231-the second PHY layer interface;
232-the second MAC-layer interface;233-the first kernel control module;234-the one AXI bus;235-the first GPIO interface;
236-FIFO memories;237-the second kernel control module;238-the two AXI bus;221-data acquisition modules;
222-analog-to-digital conversion modules;223-third interfaces;224-the second control module.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Symbol "/" herein indicates that affiliated partner is relationship such as A/B expression A or B perhaps.
Term " first " and " second " in description and claims of this specification etc. are for distinguishing different pairs
As, rather than it is used for the particular order of description object.For example, first interface and second interface etc. are for distinguishing different connect
Mouthful, rather than the particular order for describing interface.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This
Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing
Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport
Related notion is being presented in specific ways.
In the description of the embodiment of the present invention, unless otherwise indicated, the meaning of " plurality " is refer to two or more,
For example, multiple sensors refer to two or more sensor.
Some term/nouns involved in the embodiment of the present invention are explained below.
AXI: refer to a kind of on-chip bus for having high-performance, high bandwidth, low latency.Its address transmission, control transmission
It is separation with data transfer phase, the data being misaligned is supported to transmit.
APB: referring to a kind of on-chip bus structure of standard, for the connection between the peripheral outer equipment of low bandwidth, APB
Main module be APB bridge, and there are four control signals.
First in, first out (first in first out, FIFO) memory: referring to the dual port buffer of a first in, first out,
I.e. first data first entered in it is moved out of.For FIFO, main includes triggering guiding transmission structure and zero guiding
Both structures of transmission structure, wherein the FIFO memory of triggering guiding transmission structure is made of register array, and zero leads
It is to read to constitute with the dual port random access memory of write address pointer by having to the FIFO memory of transmission structure.
The embodiment of the present invention provides a kind of sensor control and terminal, which may include: can
Programming unit, the sensor and processor connecting with programmable unit pass through the first bus between programmable unit and processor
Connection, the message transmission rate of first bus are greater than the message transmission rate of APB;Wherein, sensor, for acquiring the first number
According to, and first data are sent to programmable unit;Programmable unit, for receiving first data, and to first data
The first processing is carried out, to obtain the second data, and to processor sends second data;Processor, for receive this second
Data.With this solution, need are transmitted with the lower data for leading to not meet sensor of the message transmission rate of prior art APB
It asks and compares, since data of the message transmission rate greater than APB of the first bus of connection programmable unit and processor transmit speed
Rate, therefore in the increased situation for the data volume that the quantity of sensor or sensor acquire, programmable unit can dock
The first data that the sensor that receives is sent carry out the first processing to obtain the second data, such first bus can rapidly by
Treated that second data are transmitted to processor for programmable unit, i.e., sensor control provided in an embodiment of the present invention can
To meet the data transfer demands of sensor, so as to provide better service quality.
It should be noted that for a clearer understanding of the present invention, following embodiments are with programmable unit and one
It is illustrated for sensor connection, but any restriction is not caused to the embodiment of the present invention.It is appreciated that practical
When realization, programmable unit can be connect with multiple sensors respectively.Wherein, the collected data of each sensor can be sent out
Be sent to programmable unit, then after the data that programmable unit is connected to, programmable unit can to the data received into
Row processing, and data are sent to processor by treated.
Referring to each attached drawing provided in an embodiment of the present invention to sensor control provided in an embodiment of the present invention
And terminal is illustratively illustrated.
As shown in Fig. 2, the embodiment of the present invention provides a kind of sensor control 20.The sensor control 20 can be with
It include: programmable unit 21, the sensor being connect with programmable unit 21 22 and processor 23, programmable unit 21 and processor
It is connected between 23 by the first bus 24, the message transmission rate of first bus 24 is greater than the message transmission rate of APB.
Wherein, the sensor 22 can be used for acquiring the first data, and send first number to programmable unit 21
According to.Programmable unit 21 can be used for receiving first data, and carry out the first processing to first data, to obtain second
Data, and second data are sent to processor 23.Processor 23 can be used for receiving second data.
Optionally, in the embodiment of the present invention, above-mentioned programmable unit can be Complex Programmable Logic Devices (complex
Programmable logic device, CPLD) or field programmable gate array (field programmable gate
Array, FPGA).For having the sensor control of CPLD or FPGA, on the one hand, since user can according to need
Voluntarily construct the logic function of CPLD or FPGA, thus compared with the existing technology in be integrated into a chip processor it is flat
Platform, sensor control flexibility provided in an embodiment of the present invention are higher;On the other hand, relative in processor platform
I2C interface and SPI interface, CPLD or FPGA in the embodiment of the present invention can both support I2C interface and SPI interface,
Other interfaces in addition to I2C interface and SPI interface can also be supported, to extend the available interface of user;In another aspect,
Relative to the coprocessor in processor platform, the internal module of CPLD or FPGA can be accomplished to harden, and not need excessive
Software participates in, therefore the processing speed of sensor control provided in an embodiment of the present invention is faster.
Optionally, in the embodiment of the present invention, the sensor can be environmental classes sensor, movement class sensor, position
Class sensor or healthy class sensor etc..Specifically, the environmental classes sensor can be with when sensor is environmental classes sensor
For temperature sensor, optical sensor, humidity sensor, baroceptor, UV sensor or PM2.5 sensor etc.;When
When sensor is movement class sensor, which can be acceleration transducer or gyro sensor etc.;When
When sensor is position class sensor, which can be for magnetometric sensor or close to optical sensor etc.;Work as sensing
When device is healthy class sensor, which can be heart rate sensor or blood pressure sensor etc..
It should be noted that the sensor can be special sensor, it is also possible to its with sensor function
His equipment.It can specifically be determined according to actual use demand, the embodiment of the present invention is not construed as limiting.
Optionally, in the embodiment of the present invention, above-mentioned first bus can be universal serial bus (universal serial
Bus, USB) it is bus, mobile Industry Processor (mobile industry processor interface, MIPI) bus, outer
The quick interconnection standards of component if (peripheral component interconnect express, PCIE) bus, low voltage difference
Sub-signal (low voltage differential signaling, LVDS) bus or universal input export (general
Purpose input output, GPIO) bus, it can specifically be determined according to actual use demand, the embodiment of the present invention is not made
It limits.Due to being usb bus, MIPI bus, PCIE bus, LVDS bus or in the case where GPIO bus in the first bus,
The message transmission rate of first bus is greater than the message transmission rate of APB, therefore programmable unit can be by the second data (i.e.
To the data after the first data processing) it is more rapidly transmitted to processor, need are transmitted so as to meet the data of sensor
It asks.
Optionally, in the embodiment of the present invention, above-mentioned processor may include the 4th interface, kernel control module, core volume
Code module, core codec module and data computing module etc., and the 4th interface, kernel control module, core encoder module, core
Decoder module can be connected with data computing module by AXI bus.Wherein, kernel control module can be used for by the 4th
The first data that interface programmable unit is sent, and execute instruction corresponding with first data;Core encoder module, can
For being encoded to data (such as first data);Core codec module can be used for decoding data (such as first data);
Data operation module can be used for carrying out data (such as first data) handling operation etc..Certainly, which can also wrap
Other possible functional modules are included, can specifically be determined according to actual use demand, the embodiment of the present invention is not construed as limiting.
The embodiment of the present invention provides a kind of sensor control, and the message transmission rate of prior art APB is lower leads
The data transfer demands for being unable to satisfy sensor are caused to compare, due to the data of the first bus of connection programmable unit and processor
Transmission rate is greater than the message transmission rate of APB, therefore the increase of the data volume acquired in the quantity of sensor or sensor
In the case where, the first data that programmable unit can send the sensor received carry out the first processing to obtain the second number
It is according to, such first bus can rapidly by programmable unit, treated that second data are transmitted to processor, i.e., of the invention
The sensor control that embodiment provides can satisfy the data transfer demands of sensor, so as to provide better service
Quality.
Optionally, in the embodiment of the present invention, above-mentioned first processing may include decoding to the first data, and to be decoded
First data addition mark.In this case, in conjunction with Fig. 2, as shown in figure 3, programmable unit 21 may include first connecing
Mouth 211, the decoder module 212 being connect with first interface 211, the preprocessing module 213 being connect with decoder module 212, with pre- place
Manage the second interface 214 that module 213 connects, and the first control module connecting with decoder module 212 and preprocessing module 213
215.Wherein, first interface 211 is connect with sensor 22, and second interface 214 is connect with processor 23.
Wherein, first interface 211 can be used for the first data of the transmission of receiving sensor 22, and send out to decoder module 212
Give first data.Decoder module 212 can be used under the control of the first control module 215, receive first data, and
First data are decoded, and send decoded first data to preprocessing module 213.Preprocessing module 213, can be with
Add under the control of the first control module 215, receiving decoded first data, and for decoded first data
Mark-on is known, and to obtain the second data, and to the transmission of second interface 214 second data, which can serve to indicate that second
Data are the data that sensor 22 acquires.Second interface 214 can be used for receiving second data, and send to processor 23
Second data.
In the embodiment of the present invention, the first control module 215 can be used for controlling decoder module 212 and receive the first data, and
First data are decoded, and send decoded first data to preprocessing module 213;And control preprocessing module
213 receive decoded first data, and are decoded first data addition mark, to obtain the second data, and
Second data are sent to second interface 214.
Sensor control provided in an embodiment of the present invention, by the way that first interface, decoding mould is arranged for programmable unit
Block, preprocessing module, second interface and the first control module, the first data that programmable unit can will be received from sensor
The data for the format that can be transmitted in the first bus are converted to, so as to realize the high-speed data from sensor to processor
Transmission.
Optionally, in the embodiment of the present invention, the first interface of above-mentioned programmable unit can connect for SPI interface or I2C
Mouthful.Certainly, which can also be other possible interfaces, can specifically be determined according to actual use demand, the present invention
Embodiment is not construed as limiting.
Correspondingly, in the case where the first interface of programmable unit is SPI interface (hereinafter referred to as the first SPI interface),
Sensor may include the second SPI interface, and second SPI interface can be connect with the first SPI interface.Wherein, the 2nd SPI connects
Mouthful, it can be used for for the first data being encapsulated as SPI data packet, and send the SPI data packet to the first SPI interface;First SPI connects
Mouthful, it can be used for receiving the SPI data packet, and decapsulate the SPI data packet, to obtain the first data.
Alternatively, being passed in the case where the first interface of programmable unit is I2C interface (hereinafter referred to as the first I2C interface)
Sensor may include the second I2C interface, and second I2C interface can be connect with the first I2C interface.Wherein, the 2nd I2C connects
Mouthful, it can be used for for the first data being encapsulated as I2C data packet, and send the I2C data packet to the first I2C interface;First I2C connects
Mouthful, it can be used for receiving the I2C data packet, and decapsulate the I2C data packet, to obtain the first data.
Sensor control provided in an embodiment of the present invention, by the way that SPI is arranged between programmable unit and sensor
The data transmission between programmable unit and sensor may be implemented in interface or I2C interface.
Optionally, in the embodiment of the present invention, the second interface of above-mentioned programmable unit can for USB interface, MIPI interface,
PCIE interface, LVDS interface or GPIO interface.Certainly, which can also be other possible interfaces, specifically can be with
Determine that the embodiment of the present invention is not construed as limiting according to actual use demand.
Correspondingly, programmable unit second interface be USB interface, MIPI interface, PCIE interface, LVDS interface or
In the case where GPIO interface, processor may include USB interface corresponding with the second interface, MIPI interface, PCIE interface,
LVDS interface or GPIO interface.It should be noted that for the specific implementation of the second interface, it will be in following embodiments
In be specifically described, it will not go into details herein.
Sensor control provided in an embodiment of the present invention, due to total in connect programmable unit and processor first
In the case that line is usb bus, MIPI bus, PCIE bus, LVDS bus or GPIO bus, the data of first bus are passed
Defeated rate is greater than the message transmission rate of APB, therefore by the way that USB interface, MIPI are arranged between programmable unit and processor
Interface, PCIE interface, LVDS interface or GPIO interface, may be implemented the high speed of the data between programmable unit and sensor
Transmission.
Optionally, in the embodiment of the present invention, in conjunction with Fig. 3, as shown in figure 4, the second interface 214 in programmable unit 21 is
In the case where USB interface, MIPI interface, PCIE interface or LVDS interface, which may include that the first media are visited
Ask control (media access control, MAC) layer interface 2141, and first connect with the first MAC-layer interface 2141
Physics (physical, PHY) layer interface 2142.Correspondingly, processor 23 may include the second PHY layer interface 231 and with
Second MAC-layer interface 232 of two PHY layer interfaces 231 connection, the first MAC-layer interface 2141 and preprocessing module 213 and the first control
Molding block 215 connects, and the first PHY layer interface 2142 is connect with the second PHY layer interface 231.
Wherein, the first MAC-layer interface 2141 can be used under the control of the first control module 215, receive pretreatment mould
The second data that block 213 is sent, and second data are encapsulated as MAC data packet, and send to the first PHY layer interface 2142
The MAC data packet.First PHY layer interface 2142 is PHY number for receiving the MAC data packet, and by the MAC data encapsulation
The PHY data packet is sent according to packet, and to the second PHY layer interface 231.Second PHY layer interface 231, for receiving the PHY data
Packet, and decapsulates the PHY data packet, to obtain the MAC data packet, and to the second MAC-layer interface 232 sends the MAC data
Packet.Second MAC-layer interface 232 for receiving the MAC data packet, and decapsulates the MAC data packet, to obtain second data.
Illustratively, it is assumed that the second interface of programmable unit be USB interface, processor interface be USB interface, then
The second interface of programmable unit may include the first MAC-layer interface and the first PHY layer interface, and the USB interface of processor can be with
Including the second PHY layer interface and the second MAC-layer interface.
Sensor control provided in an embodiment of the present invention is USB interface, MIPI in the second interface of programmable unit
In the case where interface, PCIE interface or LVDS interface, the second interface of programmable unit can be packaged the first data
Processing, to be converted to the data that can be transmitted between programmable unit and processor, so as to realize programmable unit and
The high-speed transfer of data between sensor.
Optionally, in the embodiment of the present invention, in conjunction with Fig. 4, as shown in figure 5, processor 23 can also include that core controls mould
Block (kernel control module is properly termed as the first kernel control module 233).Wherein, the first kernel control module 233 can lead to
AXI bus (the AXI bus is properly termed as the first AXI bus 234) is crossed to connect with the second MAC-layer interface 232.
Sensor control provided in an embodiment of the present invention is USB interface, MIPI in the second interface of programmable unit
In the case where interface, PCIE interface or LVDS interface, the second data can be passed through second interface, first always by programmable unit
The interface of line and processor is transmitted in the first AXI bus, and then the data in the first AXI bus can be transmitted to the first core
Control module, such second data can be transmitted directly on high-speed bus, transmit need so as to meet the data of sensor
It asks, and then better service quality can be provided.
Optionally, in the embodiment of the present invention, in conjunction with Fig. 3, as shown in fig. 6, the second interface 214 of programmable unit 21 is specific
It can be GPIO interface.In the case where second interface 214 is GPIO interface, processor 23 may include the first GPIO interface
235, and second interface 214 can be connect with first GPIO interface 235.Wherein, second interface 214 (i.e. GPIO interface), can
With the second data for receiving the transmission of preprocessing module 213, and second data are sent to the first GPIO interface 235.First
GPIO interface 235 can be used for receiving second data.
It is appreciated that being GPIO interface in the second interface of programmable unit, and processor includes in the embodiment of the present invention
In the case where first GPIO interface, it is total for first in above-described embodiment to connect the bus of second interface and the first GPIO interface
Line, i.e. the first bus are GPIO bus.
Sensor control provided in an embodiment of the present invention, due to being connect between programmable unit and processor by GPIO
Mouth is connected with GPIO bus, and GPIO bus can be with transmitting data in parallel, therefore programmable unit can be by GPIO bus (i.e.
First bus) the second data to processor high speed are transmitted, so as to meet the data transfer demands of sensor, and then can be with
Better service quality is provided.
Optionally, in the embodiment of the present invention, in conjunction with Fig. 6, as shown in fig. 7, processor 23 can also include FIFO memory
236 and kernel control module (kernel control module can be described as the second kernel control module 237).Wherein, FIFO memory 236
It is connect with the first GPIO interface 235, and by AXI bus, (the AXI bus can be described as the 2nd AXI bus to FIFO memory 236
238) it is connect with the second kernel control module 237.
Wherein, FIFO memory 236 can be used for receiving the second data of the first GPIO interface 235 transmission, and store the
Two data, and second data are sent to the second kernel control module 237 by the 2nd AXI bus 238.
It should be noted that in the embodiment of the present invention, the first kernel control module and the second kernel control module can be
The same kernel control module, or different kernel control modules.Also, the first AXI bus and the 2nd AXI bus can
Think the same AXI bus, or different AXI buses.It can specifically be determined according to actual use demand, the present invention is real
Example is applied to be not construed as limiting.
Sensor control provided in an embodiment of the present invention should due to being provided with FIFO memory in processor
FIFO memory can store the second data, and such second kernel control module can take number from FIFO memory according to demand
According to thus the flexibility for improving data transmission and using.
Optionally, in the embodiment of the present invention, above-mentioned first processing can also include adding to the first data after addition mark
It is close.Programmable unit 21 can be also used for after to decoded first data addition mark, to being somebody's turn to do after the addition mark
First data encryption, to obtain the second data.Processor 23 can be also used for after receiving second data, to this second
Data deciphering, to obtain adding first data after the mark.
Sensor control provided in an embodiment of the present invention, due to programmable unit can for after addition mark this
One data encryption, to obtain encrypted data (i.e. the second data), therefore programmable unit and processor can pass through first
The encrypted data of bus transfer, to improve safety that data between programmable unit and processor are transmitted and reliable
Property.
Optionally, in the embodiment of the present invention, in conjunction with Fig. 3, as shown in figure 8, sensor 22 may include data acquisition module
221, the analog-to-digital conversion module 222 being connect with data acquisition module 221, the third interface being connect with analog-to-digital conversion module 222
223, and the second control module 224 being connect with data acquisition module 221, analog-to-digital conversion module 222 and third interface 223.
Wherein, data acquisition module 221 can be used under the control of the second control module 224, acquire the first data,
And first data are sent to analog-to-digital conversion module 222.Analog-to-digital conversion module 222 can be used in the second control module 224
Under control, the first data are received, analog-to-digital conversion are carried out to first data, and pass through third interface 223 to programmable unit 21
First interface 211 send analog-to-digital conversion after the first data.
It should be noted that Fig. 8 is for combining sensor control as shown in Figure 3 described in above-described embodiment
Illustratively illustrated.It is appreciated that in practical implementations, sensor control provided in an embodiment of the present invention may be used also
With combine it is above-mentioned as Fig. 4 to Fig. 7 it is any shown in sensor control realization, it is specific for the description of sensor control
May refer in above-described embodiment to as Fig. 4 to Fig. 7 it is any shown in sensor control associated description, it is no longer superfluous herein
It states.
Sensor control provided in an embodiment of the present invention, by the way that data acquisition module, modulus are arranged in the sensor
Conversion module, third interface and the second control module, may be implemented by sensor acquire data be converted to programmable unit can
The format of identification, such programmable unit after receiving the first data, can obtain the second number to the first data processing
According to, and the second data are transmitted to processor, so as to realize that the data between sensor, programmable unit and processor pass
It is defeated.
The embodiment of the present invention provides a kind of terminal.The terminal may include above-mentioned as Fig. 1 is provided to Fig. 8 any embodiment
Sensor control.It specifically may refer to the correlation in above-mentioned each embodiment for the description of the sensor control to retouch
It states, details are not described herein again.
Terminal in the embodiment of the present invention can be mobile terminal, or immobile terminal.Illustratively, mobile whole
End can be mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, super mobile personal meter
Calculation machine (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal
Digital assistant, PDA) etc., immobile terminal can be personal computer (personal computer, PC), electricity
Depending on machine (television, TV), automatic teller machine or self-service machine etc., the embodiment of the present invention is not especially limited.
The embodiment of the present invention provides a kind of terminal, which may include sensor control, and the sensor controls
Device may include: programmable unit, the sensor and processor that connect with programmable unit.With the data of prior art APB
The lower data transfer demands for leading to not meet sensor of transmission rate are compared, due to connecting programmable unit and place in terminal
The message transmission rate for managing the first bus of device is greater than the message transmission rate of APB, therefore in the quantity or sensing of sensor
In the increased situation of the data volume of device acquisition, programmable unit can be carried out the first data that the sensor received is sent
First processing is to obtain the second data, and such first bus can rapidly by programmable unit, treated that second data pass
Processor is transported to, i.e., sensor control provided in an embodiment of the present invention can satisfy the data transmission of the sensor in terminal
Demand, so that terminal can provide better service quality.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (10)
1. a kind of sensor control, which is characterized in that the sensor control include: programmable unit, with it is described
The sensor and processor of programmable unit connection, are connected between the programmable unit and the processor by the first bus
It connects, the message transmission rate of first bus is greater than the message transmission rate of peripheral bus APB;Wherein,
The sensor sends first data for acquiring the first data, and to the programmable unit;
The programmable unit carries out the first processing for receiving first data, and to first data, to obtain the
Two data, and second data are sent to the processor;
The processor, for receiving second data.
2. sensor control according to claim 1, which is characterized in that first processing includes to described first
Data decoding, and be the decoded first data addition mark;The programmable unit includes first interface, with described
The decoder module of one interface connection, the preprocessing module being connect with the decoder module, the connect with the preprocessing module
Two interfaces, and the first control module being connect with the decoder module and the preprocessing module, the first interface and institute
Sensor connection is stated, the second interface is connected to the processor;
Wherein, the first interface, first data sent for receiving the sensor, and sent out to the decoder module
Send first data;
The decoder module, for receiving first data, and to described first under the control of first control module
Data decoding, and decoded first data are sent to the preprocessing module;
The preprocessing module, under the control of first control module, receiving decoded first data, and
It is identified for the decoded first data addition, to obtain second data, and to described in second interface transmission
Second data, the mark are used to indicate the data that second data are sensor acquisition;
The second interface sends second data for receiving second data, and to the processor.
3. sensor control according to claim 2, which is characterized in that the first interface is serial peripheral SPI
I2C interface between interface or integrated circuit;
The second interface is general-purpose serial bus USB interface, mobile Industry Processor MIPI interface, external components quickly interconnect
Standard PCIE interface, Low Voltage Differential Signal LVDS interface or universal input export GPIO interface.
4. sensor control according to claim 3, which is characterized in that the second interface is USB interface, MIPI
Interface, PCIE interface or LVDS interface, the second interface include the first media access control MAC-layer interface, and with the
First physical PHY layer interface of one MAC-layer interface connection, the processor include the second PHY layer interface and with described second
Second MAC-layer interface of PHY layer interface connection, first MAC-layer interface and the preprocessing module and first control
Module connection, the first PHY layer interface are connect with the second PHY layer interface;
Wherein, first MAC-layer interface, for receiving the preprocessing module under the control of first control module
Second data sent, and second data are encapsulated as MAC data packet, and send out to the first PHY layer interface
Send the MAC data packet;
The first PHY layer interface is PHY data packet for receiving the MAC data packet, and by the MAC data encapsulation,
And the PHY data packet is sent to the second PHY layer interface;
The second PHY layer interface for receiving the PHY data packet, and decapsulates the PHY data packet, described to obtain
MAC data packet, and the MAC data packet is sent to second MAC-layer interface;
Second MAC-layer interface for receiving the MAC data packet, and decapsulates the MAC data packet, described to obtain
Second data.
5. sensor control according to claim 4, which is characterized in that the processor further includes core control mould
Block, the kernel control module are expanded interface AXI bus and are connect with second MAC-layer interface by advanced.
6. sensor control according to claim 3, which is characterized in that the second interface is GPIO interface, institute
Stating processor includes the first GPIO interface, and the GPIO interface is connect with first GPIO interface;
The GPIO interface, second data sent for receiving the preprocessing module, and connect to the first GPIO
Mouth sends second data;
First GPIO interface, for receiving second data.
7. sensor control according to claim 6, which is characterized in that the processor further includes first in, first out
FIFO memory and kernel control module, the FIFO memory are connect with first GPIO interface, the FIFO memory
It expands interface AXI bus by advanced and is connect with the kernel control module.
8. sensor control according to claim 2, which is characterized in that first processing further includes to addition institute
First data encryption after stating mark;
The programmable unit is also used to after adding the mark to decoded first data, described in addition
First data encryption after mark, to obtain second data;
The processor is also used to after receiving second data, to second data deciphering, to obtain described in addition
First data after mark.
9. sensor control according to any one of claim 1 to 8, which is characterized in that the programmable unit
For complex programmable logic device (CPLD) or on-site programmable gate array FPGA.
10. a kind of terminal, which is characterized in that including sensor control as claimed in any one of claims 1-9 wherein.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810791266.0A CN109117398A (en) | 2018-07-18 | 2018-07-18 | A kind of sensor control and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810791266.0A CN109117398A (en) | 2018-07-18 | 2018-07-18 | A kind of sensor control and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109117398A true CN109117398A (en) | 2019-01-01 |
Family
ID=64862197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810791266.0A Pending CN109117398A (en) | 2018-07-18 | 2018-07-18 | A kind of sensor control and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109117398A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021135283A1 (en) * | 2019-12-29 | 2021-07-08 | 苏州浪潮智能科技有限公司 | Heterogeneous computing system and computing method therefor |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049781A (en) * | 2014-12-27 | 2015-11-11 | 中航华东光电(上海)有限公司 | Image processing system based on Field Programmable Gate Array (FPGA) |
CN107830990A (en) * | 2017-10-31 | 2018-03-23 | 武汉精测电子集团股份有限公司 | A kind of automatic optical detecting system based on FPGA platform |
CN207337649U (en) * | 2017-10-25 | 2018-05-08 | 成都华太测控技术有限公司 | A kind of LXI data collectors of high-speed transfer |
CN108241589A (en) * | 2016-12-26 | 2018-07-03 | 大唐移动通信设备有限公司 | A kind of data processing method and device |
-
2018
- 2018-07-18 CN CN201810791266.0A patent/CN109117398A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049781A (en) * | 2014-12-27 | 2015-11-11 | 中航华东光电(上海)有限公司 | Image processing system based on Field Programmable Gate Array (FPGA) |
CN108241589A (en) * | 2016-12-26 | 2018-07-03 | 大唐移动通信设备有限公司 | A kind of data processing method and device |
CN207337649U (en) * | 2017-10-25 | 2018-05-08 | 成都华太测控技术有限公司 | A kind of LXI data collectors of high-speed transfer |
CN107830990A (en) * | 2017-10-31 | 2018-03-23 | 武汉精测电子集团股份有限公司 | A kind of automatic optical detecting system based on FPGA platform |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021135283A1 (en) * | 2019-12-29 | 2021-07-08 | 苏州浪潮智能科技有限公司 | Heterogeneous computing system and computing method therefor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8051238B2 (en) | On-chip bus architectures with interconnected switch points, semiconductor devices using the same and methods for communicating data in an on-chip bus architecture | |
US9880965B2 (en) | Variable frame length virtual GPIO with a modified UART interface | |
US7353315B2 (en) | Bus controller with virtual bridge | |
EP2333672B1 (en) | Inter-die interconnection interface | |
CN107015928A (en) | To switch the system and method for multiple interfaces and system to switch bus | |
CN105208034B (en) | A kind of spi bus and CAN bus protocol conversion circuitry and method | |
WO2006050436A1 (en) | Concurrent transfer of pci express protocol data and sdvo | |
EP3607450B1 (en) | Apparatus and mechanism to bypass pcie address translation by using alternative routing | |
US7779194B2 (en) | Data modification module | |
WO2013048508A1 (en) | Bandwidth configurable io connector | |
CN107111572A (en) | Method and circuit for avoiding deadlock | |
CN108292282A (en) | Block of decomposition storage control storehouse | |
US20140108696A1 (en) | Low speed access to dram | |
CN110362058A (en) | The system tested for multiple interfaces | |
CN209149287U (en) | Big data operation acceleration system | |
CN109117398A (en) | A kind of sensor control and terminal | |
CN204390227U (en) | Computing equipment expanding unit and extendible computing system | |
CN104598404A (en) | Computing equipment extending method and device as well as extensible computing system | |
CN204515761U (en) | SOC (system on a chip) | |
CN209560543U (en) | Big data operation chip | |
CN116429259A (en) | Spectral processing system of fiber bragg grating | |
CN205656617U (en) | SoC's peripheral hardware system | |
CN105550146B (en) | A kind of Biodge device between OPB buses and IPS buses | |
CN104598407A (en) | System on chip and control method | |
CN101576867B (en) | Extended universal asynchronous serial interface method, device and system |
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 |
Application publication date: 20190101 |
|
RJ01 | Rejection of invention patent application after publication |