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

Automatic detection method and device of SDIO interface peripheral

A detection method and technology of detection device, which are applied in the fields of instruments, electrical digital data processing, etc., can solve problems such as lack of implementation methods

Active Publication Date: 2016-05-11
AEROSPACE INFORMATION
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In embedded systems, SDIO (SecureDigitalInputandOutputCard, secure digital input and output card) interface peripherals are usually connected by six lines, including four data lines, a clock line and a command line, because its driver is based on MMC (MultimediaCard, Multimedia Card) driver, retains the driver interface that can detect the function of plugging and unplugging the device, but lacks a specific implementation method

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
  • Automatic detection method and device of SDIO interface peripheral
  • Automatic detection method and device of SDIO interface peripheral
  • Automatic detection method and device of SDIO interface peripheral

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] Embodiment 1. An automatic detection method for SDIO interface peripherals.

[0064] In order to automatically detect SDIO interface peripherals in an embedded system, the embodiment of the present invention provides an automatic detection scheme for SDIO interface peripherals by using two arbitrary general-purpose GPIOs on a common embedded processor platform.

[0065] Combine below figure 1 The method of the first embodiment will be described in detail.

[0066] figure 1 It is a schematic flow chart of the automatic detection method of the SDIO interface peripherals of the first embodiment of the present invention, as figure 1 As shown, the embodiment of the present invention includes an embedded processor and SDIO interface peripherals, wherein GPIO1 and GPIO2 in the embedded processor are shorted together, comprising the following steps:

[0067] Step S101, setting the GPIO1 and GPIO2 as output and input respectively, wherein the initialization state of GPIO1 is ...

Embodiment 2

[0078] Embodiment 2, an automatic detection method for SDIO interface peripherals.

[0079] Combine below figure 2 The method of this embodiment will be described in detail.

[0080] figure 2 It is a schematic flow chart of the automatic detection method of the SDIO interface peripherals of the second embodiment of the present invention, as figure 2 As shown, the method of the present embodiment includes:

[0081] Step S201 , in the initialization stage, GPIO1 and GPIO2 are respectively set as output and input, wherein the initialization state of GPIO1 is high level.

[0082] Step S202, registering the SDIO device, adding a driver interface for detection of plug-in and pull-out states, and adding an operation of reading the level status of GPIO2 in the driver interface implementation function.

[0083] Step S203, the system starts.

[0084] Step S204 , the driver of the SDIO interface peripheral is loaded, and the GPIO2 is detected to be at a high level through the cor...

Embodiment 3

[0094] Embodiment 3, an automatic detection device for SDIO interface peripherals.

[0095] On the hardware, the imx515 embedded processor of Freescale and the peripheral of the SDIO interface are used as the core, and the two GPIOs in the embedded processor SOC (System on Chip, chip-level system) are short-circuited together.

[0096] Combine below image 3 The method of this embodiment will be described in detail.

[0097] image 3 It is a schematic diagram of an automatic detection device for SDIO interface peripherals in Embodiment 3 of the present invention, as image 3 As shown, the device of this embodiment includes: SOC main controller 301, SDIO interface peripherals 302, wherein said SOC main controller 301 has at least two general-purpose GPIO ports, respectively 303GPIO1 and 304GPIO2, said embedded processing The 303GPIO1 and 304GPIO2 in the device are shorted together; also includes: an initialization module, which is suitable for setting the 303GPIO1 and 304GPI...

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 an automatic detection method and device of an SDIO (Secure Digital Input and Output Card) interface peripheral, and belongs to the field of the SDIO interface peripheral. The device comprises an embedded processor and the SDIO interface peripheral, wherein a GPIO (General Purpose Input Output) 1 and a GPIO2 of the embedded processor are in short circuit connection; the GPIO1 is set to be the output; the GPIO2 is set to be the input; the initial state of the GPIO1 is a high level state; in the registering process of the SDIO interface peripheral, a driving interface detecting between plug-in and un-plug states realizes the operation of adding GPIO2 level reading state into a function; the level value of the GPIO2 is included through controlling the level size of the GPIO1; the level value of the GPIO2 is detected through a corresponding driving interface; and the SDIO interface peripheral is controlled to enter the corresponding state according to the level value of the GPIO2. The detection method has the advantages of simplicity, reliability, convenience and flexibility; software and hardware resources of a system are saved; and the strong hot-plug function can also be realized.

Description

technical field [0001] The invention relates to the technical field of SDIO interface peripherals, in particular to an automatic detection method and device for SDIO interface peripherals. Background technique [0002] As a powerful portable device operating system, the Android system has been favored by manufacturers and users at home and abroad. Its application range is becoming more and more extensive, and it involves almost all aspects of society. In embedded systems, SDIO (SecureDigitalInputandOutputCard, secure digital input and output card) interface peripherals are usually connected by six lines, including four data lines, a clock line and a command line, because its driver is based on MMC (MultimediaCard, Multimedia Card) driver, retains the driver interface capable of detecting the insertion and removal of the device, but lacks a specific implementation method. Contents of the invention [0003] In view of the above problems, the present invention is proposed in...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/38
Inventor 展中华高硕崔霈文张帅杨彦青陈皓陈懿
Owner AEROSPACE INFORMATION
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