CN104572513B - A kind of TF card and its implementation without driving with Bluetooth function - Google Patents

A kind of TF card and its implementation without driving with Bluetooth function Download PDF

Info

Publication number
CN104572513B
CN104572513B CN201510004870.0A CN201510004870A CN104572513B CN 104572513 B CN104572513 B CN 104572513B CN 201510004870 A CN201510004870 A CN 201510004870A CN 104572513 B CN104572513 B CN 104572513B
Authority
CN
China
Prior art keywords
card
control command
bluetooth module
bluetooth
read
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.)
Active
Application number
CN201510004870.0A
Other languages
Chinese (zh)
Other versions
CN104572513A (en
Inventor
殷建红
周川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Ecar Telematics Service Co Ltd
Original Assignee
Guangdong Ecar Telematics Service Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Ecar Telematics Service Co Ltd filed Critical Guangdong Ecar Telematics Service Co Ltd
Priority to CN201510004870.0A priority Critical patent/CN104572513B/en
Publication of CN104572513A publication Critical patent/CN104572513A/en
Application granted granted Critical
Publication of CN104572513B publication Critical patent/CN104572513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • H04B5/72

Abstract

A kind of TF card and its implementation that Bluetooth function is realized without driving provided by the present invention, by the way that pair multiplexing commands accessed with bluetooth module will be revised as to the control command being written and read of TF card storage region data in TF card controller;When receiving the order for accessing bluetooth module, the access that then TF card controller can directly to bluetooth module, therefore when operating system needs to conduct interviews to the bluetooth module of TF card, without increasing new driving in addition, while adding the function of TF card, the cost of TF card design and manufacture is simplified.

Description

A kind of TF card and its implementation without driving with Bluetooth function
Technical field
The present invention relates to field of information communication, more particularly to it is a kind of without TF card of the driving with Bluetooth function and its Implementation method.
Background technology
In the prior art, access of the TF card driver of operating system to TF card is usually logical
Cross TFIO interfaces and send TF CMD to realize the access to memory cell, be most often following four order:
Single sector(Sector)Read:CMD17;
Multiple sector(Sector)Read:CMD18;
Single sector(Sector)Write:CMD24;
Multiple sector(Sector)Write:CMD25;
This four orders can one parameter of band.Sector no (sector numbers).Instruction is which sector is carried out to memory cell The operation read or write.
Generally, will increase again if realize and to access that to TF COMBO bluetooth module
Add new CMD.But ordered without such inside the driver of standard, that, which means that, to remake TF driver, it is also desirable to reinstall this driving on an operating system.That can thus be bothered very much.
Therefore, prior art is improved up for further.
The content of the invention
In view of above-mentioned weak point of the prior art, a kind of real without driving it is an object of the invention to provide the user The method and system of bluetooth module are now accessed, to solve when prior art conducts interviews to bluetooth module, it is necessary to remake TF Driver, and need that the driver is installed on an operating system, caused by cost of manufacture it is high, operation inconvenience etc. is asked Topic.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of TF card that Bluetooth function is realized without driving, wherein, including:TF card controller, TF card storage region, IO connect Mouth and the bluetooth module being connected with described I/O interface;
When TF card receives the order of operating system access bluetooth module, then TF card controller is to TF card storage region Digital independent control command is converted to the control command to be conducted interviews to bluetooth module.
The TF card that Bluetooth function is realized without driving, wherein, order modified module is also included in the TF card;
The order modified module, for TF card controller to be read the data of reserve sector in TF card storage region The control command write is revised as the control command to be conducted interviews to bluetooth module.
The TF card that Bluetooth function is realized without driving, wherein, in the order modified module:
The control command CMD17 and CMD24 of the reserve sector of TF card first will be respectively modified as in the TF card controller The multiplexing commands being written and read to bluetooth module, and the control in the TF card controller to the reserve sector of TF card second is ordered CMD17 and CMD24 is made to be respectively modified as the order of parameter configuration during to bluetooth module progress reading and writing data.
A kind of implementation method of the TF card that Bluetooth function is realized without driving, wherein, including:
A, the control command being written and read in TF card controller to data in TF card storage region is revised as to indigo plant in advance The multiplexing control command that tooth module conducts interviews;
B, when receiving the order of operating system access bluetooth module, then TF card controller in TF card storage region to reading The control command of access evidence is converted to the multiplexing control command to be conducted interviews to bluetooth module.
The implementation method of the TF card that Bluetooth function is realized without driving, wherein, the control life changed in the step A Make and be:The control command that TF card controller is written and read to the data of reserve sector in TF card storage region.
The implementation method of the TF card that Bluetooth function is realized without driving, wherein, the control life changed in the step A Make and be:The CMD17 that is read to single sector and write operation CMD24 is carried out to single sector.
The implementation method of the TF card that Bluetooth function is realized without driving, wherein, also include in the step A:
The control command CMD17 and CMD24 of the reserve sector of TF card first will be respectively modified as in the TF card controller The multiplexing commands being written and read to bluetooth module, and the control in the TF card controller to the reserve sector of TF card second is ordered CMD17 and CMD24 is made to be respectively modified as the order of parameter configuration during to bluetooth module progress reading and writing data.
A kind of beneficial effect, TF card and its implementation that Bluetooth function is realized without driving provided by the present invention, leads to Crossing will be revised as pair accessing with bluetooth module in TF card controller to the control commands being written and read of TF card storage region data Multiplexing commands;When receiving the order for accessing bluetooth module, then TF card controller can directly to bluetooth module access, Therefore when operating system needs to conduct interviews to the bluetooth module of TF card, without increasing new driving in addition, TF card is added Function while, simplify TF card design and manufacture cost.
Brief description of the drawings
Fig. 1 is the structural representation of TF card of the present invention.
Fig. 2 is the implementation method flow chart of steps of TF card of the present invention.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and do not have to It is of the invention in limiting.
Based on the above method, present invention also offers a kind of TF card that Bluetooth function is realized without driving, such as Fig. 1 Shown, system's TF card 1 includes:
TF card controller 13, TF card storage region 14, I/O interface 12 and the bluetooth mould being connected with described I/O interface 12 Block 11;
When TF card 1 receives the order of operating system access bluetooth module 11, then TF card controller 13 stores to TF card The digital independent control command in region 14 is converted to the control command to be conducted interviews to bluetooth module 11, so as to realize that TF card has Bluetooth function.
Also include order modified module in the TF card;
The order modified module, for TF card controller to be read the data of reserve sector in TF card storage region The control command write is revised as the control command to be conducted interviews to bluetooth module.
The memory of TF card is organized into a series of sectors.Each sector is 512 bytes.And to memory in TF card Access is all in units of sector.For example if you wish to the content inside TF card is read out, that must be a sector Read out, be exactly in units of 512 words, for example your file only has a byte, also to read 512 bytes and come out.Correspond to just It is that two orders of CMD17 and CMD18 are sent to TF controllers, content is accordingly write toward TF card it is necessary to be sent out toward TFIO controllers CMD24 and CMD25.
By being modified to above-mentioned control command in the present invention, by reserve sector in the above-mentioned storage region to TF card Data are written and read order and are revised as visit order to bluetooth module.
In the specific implementation, the data of reserve sector in TF card storage region file system are carried out using TF card controller The control command of read-write is modified.
Because the control command being written and read to the data of reserve sector in file system is modified, normally make in file Used time, read-write will not be fallen on above this reserve sector, therefore only need application layer to initiate to the two on an operating system Sector direct access can has access to corresponding peripheral hardware.Because respective drive has mutual exclusion function, file system is not influenceed External memroy is accessed simultaneously, can thus reach the purpose using bluetooth module and memory while following one's bent. In operation, it is preferred that by the CMD17 that is specifically read to single sector and single sector can be write Operation CMD24 is modified, and the two orders are revised as accessing to the control command of bluetooth module.
In the modified module in advance:
The control command CMD17 and CMD24 of the reserve sector of TF card first will be respectively modified as in the TF card controller The multiplexing commands being written and read to bluetooth module, and the control in the TF card controller to the reserve sector of SD card second is ordered CMD17 and CMD24 is made to be respectively modified as the order of parameter configuration during to bluetooth module progress reading and writing data.
Such as:The method of the invention, by the way that some reserve sector no.A of the TF card memory is defined as into data Sector.When master control sends CMD17 and CMD24 to SD card controller to this reserve sector no.A, resolve to bluetooth module Data exchange.
Some reserve sector no.B of the TF card memory is defined as parameter sector.When master control to TF card controller to When this reserve sector no.B sends CMD17 and CMD24, the parameter configuration communicated to bluetooth module is resolved to, such as with The communication modes of I/O device, with the communication speed of I/O device etc..
Due to TF card, MINI TF cards, micro TF (TF) cards all meet TF specification.So institute of the present invention Method and system to be stated to be adapted to all three to block and use TF specification card, the I/O interface can be RS232, SPI, IC and USB etc..
On the basis of above-mentioned TF card, present invention also offers a kind of realization for the TF card that Bluetooth function is realized without driving Method, as shown in Fig. 2 including:
S1, the control command being written and read in TF card controller to data in TF card storage region is revised as to indigo plant in advance The multiplexing control command that tooth module conducts interviews.
S2, when receiving the order of operating system access bluetooth module, then TF card controller is to TF card storage region Control command is converted to the control command to be conducted interviews to bluetooth module.
After the completion of protocol conversion in above-mentioned steps S1, then when operating system needs progress bluetooth module to conduct interviews, By can be realized by original to TF card controller to the control command of TF card storage region.
Specifically, in step sl, by the TF card controller to the control command CMD17 of the reserve sector of TF card first Be respectively modified as the multiplexing commands that are written and read to bluetooth module with CMD24, and by the TF card controller to TF card The control command CMD17 and CMD24 of two reserve sectors are respectively modified as carrying out bluetooth module parameter configuration during reading and writing data Order.
It is provided by the present invention it is a kind of realize the TF card and its implementation of Bluetooth function without driving, by by TF card control The visit order pair with bluetooth module is revised as in device processed to the control commands being written and read of TF card storage region data;When connecing When receiving the order for accessing bluetooth module, then TF card controller can directly to bluetooth module access, therefore in operating system When needing to conduct interviews to the bluetooth module of TF card, during using its Bluetooth function, without increasing new driving in addition, TF is added While the function of card, the cost of TF card design and manufacture is simplified.
It is understood that for those of ordinary skills, can be with technique according to the invention scheme and its hair Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention Protect scope.

Claims (5)

  1. A kind of 1. TF card that Bluetooth function is realized without driving, it is characterised in that including:TF card controller, TF card storage region, I/O interface and the bluetooth module being connected with the I/O interface;
    When TF card receives the order of operating system access bluetooth module, then data of the TF card controller to TF card storage region Read control command and be converted to the control command to be conducted interviews to bluetooth module;
    Also include order modified module in the TF card;
    The order modified module, for be written and read TF card controller to the data of reserve sector in TF card storage region Control command is revised as the control command to be conducted interviews to bluetooth module;
    In the order modified module:
    The control command CMD17 and CMD24 of the reserve sector of TF card first will be respectively modified as to indigo plant in the TF card controller The multiplexing commands that tooth module is written and read, and by the TF card controller to the control command of the reserve sector of TF card second CMD17 and CMD24 is respectively modified as the order of parameter configuration during to bluetooth module progress reading and writing data.
  2. A kind of 2. implementation method for the TF card for realizing Bluetooth function without driving as described in the appended claim 1, it is characterised in that bag Include:
    A, the control command being written and read in TF card controller to data in TF card storage region is revised as to bluetooth mould in advance The multiplexing control command that block conducts interviews;
    B, when receiving the order of operating system access bluetooth module, then TF card controller in TF card storage region to reading number According to control command be converted to the control command that is conducted interviews to bluetooth module.
  3. 3. the implementation method of the TF card of Bluetooth function is realized without driving according to claim 2, it is characterised in that the step The control command changed in rapid A is:The control that TF card controller is written and read to the data of reserve sector in TF card storage region Order.
  4. 4. the implementation method of the TF card of Bluetooth function is realized without driving according to claim 3, it is characterised in that the step The control command changed in rapid A is:The CMD17 that is read to single sector and write operation is carried out to single sector CMD24。
  5. 5. the implementation method of the TF card of Bluetooth function is realized without driving according to claim 4, it is characterised in that the step Also include in rapid A:
    The control command CMD17 and CMD24 of the reserve sector of TF card first will be respectively modified as to indigo plant in the TF card controller The multiplexing commands that tooth module is written and read, and by the TF card controller to the control command of the reserve sector of TF card second CMD17 and CMD24 is respectively modified as the order of parameter configuration during to bluetooth module progress reading and writing data.
CN201510004870.0A 2015-01-07 2015-01-07 A kind of TF card and its implementation without driving with Bluetooth function Active CN104572513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510004870.0A CN104572513B (en) 2015-01-07 2015-01-07 A kind of TF card and its implementation without driving with Bluetooth function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510004870.0A CN104572513B (en) 2015-01-07 2015-01-07 A kind of TF card and its implementation without driving with Bluetooth function

Publications (2)

Publication Number Publication Date
CN104572513A CN104572513A (en) 2015-04-29
CN104572513B true CN104572513B (en) 2017-12-26

Family

ID=53088631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510004870.0A Active CN104572513B (en) 2015-01-07 2015-01-07 A kind of TF card and its implementation without driving with Bluetooth function

Country Status (1)

Country Link
CN (1) CN104572513B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110163020B (en) * 2019-04-25 2022-07-19 杭州电子科技大学 Sensor data read-write device and read-write method thereof
CN111124962B (en) * 2019-11-13 2021-06-29 苏州浪潮智能科技有限公司 TF (Transflash) card slot multiplexing method and system based on server PCH (physical channel) and BMC (baseboard management controller)
CN111988065A (en) * 2020-08-25 2020-11-24 重庆百瑞互联电子技术有限公司 Drive-free USB device, method, storage medium and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2746662Y (en) * 2004-10-19 2005-12-14 蔚蓝科技股份有限公司 Duplex radio transmission storage device
CN102945216A (en) * 2004-02-27 2013-02-27 深圳市朗科科技股份有限公司 Device and method for saving wireless data
CN103942171A (en) * 2014-04-04 2014-07-23 广东翼卡车联网服务有限公司 TF card with communication function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8219046B2 (en) * 2009-06-03 2012-07-10 Broadcom Corporation Method and system for obtaining maximum gain of a passive upconversion mixer utilized in a transmitter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945216A (en) * 2004-02-27 2013-02-27 深圳市朗科科技股份有限公司 Device and method for saving wireless data
CN2746662Y (en) * 2004-10-19 2005-12-14 蔚蓝科技股份有限公司 Duplex radio transmission storage device
CN103942171A (en) * 2014-04-04 2014-07-23 广东翼卡车联网服务有限公司 TF card with communication function

Also Published As

Publication number Publication date
CN104572513A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
JP2010506242A (en) Communication method with multi-function memory card
US9304938B2 (en) Storage device and data transferring method thereof
JP4870368B2 (en) Integrated circuit card system, memory card and control method thereof
CN100454257C (en) Embedded system
KR100725271B1 (en) USB-SD Memory with multiple DMA channels, and data storing method thereof
CN104572513B (en) A kind of TF card and its implementation without driving with Bluetooth function
US10133497B1 (en) SPI command censoring method and apparatus
US9032135B2 (en) Data protecting method, memory controller and memory storage device using the same
CN103176852A (en) Method and device for inter-progress communication
CN114253462A (en) Method for providing mixed channel memory device
CN102207921B (en) Based on system and the method thereof of UASP protocol realization multiport Storage Media
CN104572524B (en) It is a kind of to realize the method and system for accessing SD card I/O device without driving
US20070005813A1 (en) Peripheral device and method for interpreting redefined frame information structure
CN213338708U (en) Control unit and storage device
US20140052902A1 (en) Electronic device and method of generating virtual universal serial bus flash device
CN101587427B (en) Method for realizing control of storage card by digital equipment by expanding SD/MMC protocol
CN101290602A (en) Memory management method and system
US7899986B2 (en) Method and system for controlling a hard disk drive using a multimediacard physical interface
CN105159613A (en) Emmc control system and access method of emmc control system
CN103365807A (en) Bus system of embedded password protection device and implementing method for bus system
US9864522B2 (en) Memory card
CN103914408B (en) Data transmission method, Memory Controller, data transmission system
CN102736860B (en) Synchronous NAND data operating system and method
CN100378638C (en) External MS memory card interface switching device
JP5347408B2 (en) Processing method and storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 528100 F3 (F3), C District, southwest garden of Sanshui center science and Technology Industrial Park, Foshan, Guangdong

Applicant after: Guangdong Ecar Telematics Service Co.,Ltd.

Address before: 528100, No. 2, inner ring road, 1 North East Sea Road, Sanshui East Road, Sanshui District, Guangdong, Foshan 203, 204

Applicant before: Guangdong Ecar Telematics Service Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant