CN108108317B - A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal - Google Patents

A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal Download PDF

Info

Publication number
CN108108317B
CN108108317B CN201711473413.1A CN201711473413A CN108108317B CN 108108317 B CN108108317 B CN 108108317B CN 201711473413 A CN201711473413 A CN 201711473413A CN 108108317 B CN108108317 B CN 108108317B
Authority
CN
China
Prior art keywords
apple
interface
module
data
card
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
CN201711473413.1A
Other languages
Chinese (zh)
Other versions
CN108108317A (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201711473413.1A priority Critical patent/CN108108317B/en
Publication of CN108108317A publication Critical patent/CN108108317A/en
Application granted granted Critical
Publication of CN108108317B publication Critical patent/CN108108317B/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/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal, is related to the communications field.The described method includes: when parsing the apple resulting apple data fit multi-interface data format of instruction, multiplex roles equipment judges the interface type of the specified interface of apple data, when the interface type of specified interface is SD card interface, judge whether there is designated sector in SD card operational order, it is that the first operational order is then generated according to the designated sector in SD card operational order, data communication is carried out according to the first operational order and SD card by SD card interface, otherwise designated sector is distributed, the second operational order is generated according to the designated sector of distribution, data communication is carried out according to the second operational order and SD card by SD card interface;When the interface type of specified interface is intelligent card interface, multiplex roles equipment extracts the smart card operating instruction in apple data, carries out data communication by intelligent card interface and smart card.

Description

A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal
Technical field
The present invention relates to the communications field more particularly to a kind of methods for realizing the multiplex roles equipment for apple mobile terminal And device.
Background technique
The existing multiplex roles equipment for apple mobile terminal can be simultaneously while connecting apple mobile terminal Support that (external interface refers in multiplex roles equipment multiple (be greater than or equal to 2) external interfaces, except connecing with what apple mobile terminal connected Other interfaces except mouthful), but these external interfaces can only support same protocol, such as identical SD card can only be supported to assist It discusses, is communicated between the external interface and apple mobile terminal by supporting same protocol, caused greatly not to user Just, user experience is seriously reduced.
For example, multiplex roles equipment can be a kind of multiplex roles card reader.Existing card reader type has contact card reader, non- Card reader, TF card card reader and SD card card reader etc. are contacted, in same time period, multiplex roles card reader can only be by agreement branch Carry out data transmission between the content held and apple mobile terminal, user makes apple mobile terminal and SD card by SD card card reader After being communicated, it is necessary to cut off the connection of SD card card reader Yu apple mobile terminal, then move smart card reader and apple Dynamic terminal connection, makes to carry out data communication between smart card and apple mobile terminal by smart card reader, this just gives user Great inconvenience is caused, user experience is seriously reduced.
Summary of the invention
The purpose of the invention is to overcome the deficiencies of the prior art and provide a kind of realize for the more of apple mobile terminal The method and apparatus of interface equipment.
The present invention provides a kind of methods for realizing the multiplex roles equipment for apple mobile terminal, including including at least one A SD card interface and at least one intelligent card interface, the described method comprises the following steps:
Step S1: when the multiplex roles equipment receives the authentication notification of apple mobile terminal transmission, the multiplex roles It includes the certification request of certification certificate data to apple mobile terminal that equipment, which sends generate,;
Step S2: when the multiplex roles equipment receive from apple mobile terminal by certification response when, it is described more Interface equipment sends identification request to the apple mobile terminal, receives the identification response that apple mobile terminal is sent, executes step Rapid S3;
Step S3: described more when the multiplex roles equipment receives the apple instruction that the apple mobile terminal is sent Interface equipment judges that the parsing apple instructs whether resulting apple data meet multi-interface data format, is to then follow the steps Otherwise S4 reports an error;
Step S4: the multiplex roles equipment judges whether there is the specified interface of the apple data, is to then follow the steps Otherwise S5 reports an error;
Step S5: the multiplex roles equipment judges the interface type of the specified interface, when the interface of the specified interface When type is SD card interface, step S6 is executed, when the interface type of the specified interface is intelligent card interface, executes step S9;
Step S6: the multiplex roles equipment extracts SD card operational order from apple data, judges that the SD card operation refers to Whether there is designated sector in order, is to then follow the steps S7, it is no to then follow the steps S8;
Step S7: the multiplex roles equipment generates the first operational order, hair according to the designated sector in SD card operational order The first operational order of generation is sent to return to first answer number when receiving the first reply data of SD card return to SD card According to apple mobile terminal;
Step S8: the multiplex roles equipment distributes designated sector, generates the second operational order according to the designated sector of distribution, It sends the second operational order generated and returns to the second reply data when receiving the second reply data of SD card return to SD card To apple mobile terminal;
Step S9: the multiplex roles equipment extracts the smart card operating instruction in apple data, sends the smart card behaviour It instructs to smart card, when receiving the third reply data of smart card return, returns to the third reply data to apple and move Dynamic terminal.
Invention further provides a kind of devices for realizing the multiplex roles equipment for apple mobile terminal, including receive mould Block, sending module, first judgment module, the second judgment module, third judgment module, the 4th judgment module, first report an error module, Second report an error module, the first generation module, the second generation module, third generation module, the first extraction module, second extract mould Block, apple interface, SD card interface and intelligent card interface;
The apple interface, for carrying out data transmission between the multiplex roles equipment and the apple mobile terminal;
The SD card interface, for carrying out data transmission between the multiplex roles equipment and the SD card;
The intelligent card interface, for carrying out data transmission between the multiplex roles equipment and the smart card;
The receiving module, the authentication notification for being sent by apple mobile terminal described in the apple interface;
First generation module includes certification for generating when the receiving module receives the authentication notification The certification request of certificate data;
The sending module, for passing through the apple interface to the apple mobile terminal when the receiving module When the authentication notification of transmission, send that first generation module generates by the apple interface includes certification certificate data The certification request is to the apple mobile terminal;
The receiving module is also used to the answering by certification from apple mobile terminal by the apple interface It answers;
The sending module is also used to when the receiving module through the apple interface from apple mobile terminal By certification response when, pass through the apple interface and send identification request to the apple mobile terminal;
The receiving module is also used to the identification response sent by apple interface apple mobile terminal;
The receiving module, the apple instruction for being also used to send by apple mobile terminal described in apple interface;
The first judgment module, for passing through apple interface to the apple mobile terminal when the receiving module When the apple instruction of transmission, judge that parsing the apple instructs whether resulting apple data meet multi-interface data format;
Described first reports an error module, for determining that parsing the apple instructs resulting apple when the first judgment module When data do not meet multi-interface data format, report an error;
Second judgment module, for determining that parsing the apple instructs resulting apple when the first judgment module When data fit multi-interface data format, the specified interface of the apple data is judged whether there is;
Described second reports an error module, for determining to connect there is no the specified of apple data when second judgment module When mouth, report an error;
The third judgment module, for determining that there are the specified interfaces of the apple data when second judgment module When, judge the interface type of the specified interface;
First extraction module, for determining the interface type of the specified interface for SD when the third judgment module When card interface, SD card operational order is extracted from the apple data;
4th judgment module, the SD card behaviour extracted from apple data for judging first extraction module Whether there is designated sector in instructing;
Second generation module, for determining there is specified fan in the SD card operational order when the 4th judgment module Qu Shi generates the first operational order according to the designated sector in SD card operational order;
The sending module is also used to send the first operation that second generation module generates by the SD card interface It instructs to SD card;
The receiving module is also used to receive the first reply data that the SD card returns by the SD card interface;
The sending module is also used to receive what the SD card returned by the SD card interface when the receiving module When the first reply data, the first reply data is returned to apple mobile terminal by the apple interface;
The third generation module, for determining in the SD card operational order when the 4th judgment module without specified fan Qu Shi distributes designated sector, generates the second operational order according to the designated sector of distribution;
The sending module is also used to send the second operation that the third generation module generates by the SD card interface It instructs to SD card;
The receiving module is also used to receive the second reply data that SD card returns by the SD card interface;
The sending module is also used to answer when the receiving module by second that the SD card interface receives SD card return Answer according to when, pass through apple interface and return to the second reply data to apple mobile terminal;
Second extraction module, for determining the interface type of the specified interface for intelligence when the third judgment module When energy card interface, the smart card operating instruction in apple data is extracted;
The sending module is also used to send the intelligence that second extraction module extracts by the intelligent card interface Can card operational order to smart card;
The receiving module is also used to receive the third reply data that smart card returns by the intelligent card interface;
The sending module, be also used to when the receiving module receive that smart card returns by the intelligent card interface the When three reply datas, third reply data is returned to apple mobile terminal by the apple interface.
Compared with prior art, the present invention having the advantage that the present invention provides a kind of realize for apple mobile terminal Multiplex roles equipment method and apparatus, apple mobile terminal is attached by the SD card interface of multiplex roles equipment with SD card, Be attached by intelligent card interface and smart card, by the multiplex roles equipment that is connect with apple mobile terminal carry out function switch and The operation such as transmission is realized that apple mobile terminal is attached simultaneously with SD card and smart card and is communicated, makes apple mobile terminal simultaneously It connect and is more convenient with SD card and smart card, improve user experience.
Detailed description of the invention
Fig. 1 is a kind of method stream for realizing the multiplex roles equipment for apple mobile terminal that the embodiment of the present invention one provides Cheng Tu;
Fig. 2 is a kind of method stream for realizing the multiplex roles equipment for apple mobile terminal provided by Embodiment 2 of the present invention Cheng Tu;
Fig. 3 is a kind of method stream for realizing the multiplex roles equipment for apple mobile terminal that the embodiment of the present invention three provides Cheng Tu;
Fig. 4 is a kind of device for realizing the multiplex roles equipment for apple mobile terminal that the embodiment of the present invention four provides Block diagram.
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 only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without making creative work Example, shall fall within the protection scope of the present invention.
Embodiment one
The embodiment of the present invention one provides a kind of method for realizing the multiplex roles equipment for apple mobile terminal, and multiplex roles are set The intelligent card interface of the standby SD card interface for including at least a support SD card agreement and a support smart card protocol, from apple number Specified interface is parsed in, when specified interface is SD card interface, carries out the transmitting-receiving operation of SD card, when specified interface is intelligence When card interface, the transmitting-receiving operation of smart card is carried out;As shown in Figure 1, comprising:
Step 101: when multiplex roles equipment receives the authentication notification of apple mobile terminal transmission, multiplex roles equipment is sent Including authenticating the certification request of certificate data to apple mobile terminal;
Specifically, step 101 specifically, when multiplex roles equipment receive apple mobile terminal transmission authentication notification when, It includes authenticating the first certification request of certificate data to apple mobile terminal that multiplex roles equipment, which is sent, mobile from apple when receiving When the first certification response of terminal, multiplex roles equipment obtains challenging value from the first certification response, raw according to the challenging value of acquisition At signature result, the second certification request including signature result is sent to apple mobile terminal, is waited to be received by authenticating response;
Step 102: when multiplex roles equipment receive from apple mobile terminal by certification response when, multiplex roles equipment Identification request is sent to apple mobile terminal, the identification response that apple mobile terminal is sent is received, executes step 103;
Further, after step 102 and before step 103 further include: the identification that the judgement of multiplex roles equipment receives is answered Whether answer is to be to then follow the steps 103, otherwise report an error by identifying response;
Step 103: when multiplex roles equipment receives the apple instruction of apple mobile terminal transmission, the judgement of multiplex roles equipment Parsing apple instructs whether resulting apple data meet multi-interface data format, is to then follow the steps 104, otherwise multiplex roles are set It is standby to report an error;
Further, more when receiving the apple instruction of apple mobile terminal transmission such as multiplex roles equipment in step 103 Before interface equipment judges that parsing apple instructs resulting apple data whether to meet multi-interface data format, further includes: connect more Jaws equipment reads equipment interface list information, returns to the equipment interface list information of reading to apple mobile terminal;
Further, equipment interface list information includes two interfaces of multiplex roles equipment and the agreement of corresponding support Type;
Further, in step 103, it is more that multiplex roles equipment judges that parsing apple instructs resulting apple data whether to meet Interface data format, specifically: multiplex roles equipment judges that parsing apple instructs whether resulting apple data include instruction and length Degree;
Step 104: multiplex roles equipment judges whether there is the specified interface of apple data, is to then follow the steps 105, otherwise Multiplex roles equipment reports an error;
Further, in the step 104 of the present embodiment, when there are after the specified interface of apple data for the judgement of multiplex roles equipment Further include: multiplex roles equipment judges the class of operation of apple data, when the class of operation of apple data is to check that interface attributes are grasped When making, step B1 is executed;When the class of operation of apple data is to open equipment interface operation, step B2 is executed;When apple number According to class of operation be pass hull closure interface operation when, execute step B3;When the class of operation of apple data is transmitting-receiving operation, Execute step B4;When the class of operation of apple data is single reception operation, step B5 is executed;When the class of operation of apple data When sending operation for single-shot, step B6 is executed;
Step B1: multiplex roles equipment reads the essential attribute information of specified interface, returns to essential attribute information to apple and moves Dynamic terminal;
Step B2: multiplex roles equipment is powered on to specified interface, is generated and is opened equipment interface successful information, is returned and is opened equipment Interface successful information is to apple mobile terminal;
Step B3: multiplex roles equipment is to electric under specified interface, generation pass hull closure interface successful information, return pass hull closure Interface successful information is to apple mobile terminal;
Step B4: multiplex roles equipment sends third operational order to the specified of apple data extracted from apple data and connects The connection equipment of mouth returns to the 8th and answers when multiplex roles equipment receives eight reply data of connection equipment of specified interface Answer is according to apple mobile terminal;
Step B5: multiplex roles equipment obtains the acquisition data of specified interface, when receiving the 9th reply data of specified interface When, the 9th reply data is returned to apple mobile terminal;
Step B6: multiplex roles equipment transmits the external equipment of based data output to specified interface, when based data output end of transmission When, the tenth reply data is generated, returns to the tenth reply data to apple mobile terminal;
Further, in the step 104 of the present embodiment, when there are the specified interfaces of apple data for the judgement of multiplex roles equipment Afterwards further include: multiplex roles equipment judges the functional category of apple data, when the functional category of apple data is equipment operation class, Step A1 is executed, when the functional category of apple data is transmission operation class, executes step A2;
Step A1: multiplex roles equipment judges the equipment operation classification of apple data, when the equipment operation class in apple data When Wei not check interface attributes operation, step B1 is executed;When the equipment operation classification in apple data is to open equipment interface behaviour When making, step B2 is executed;When the equipment operation classification in apple data is pass hull closure interface operation, step B3 is executed;
Step A2: multiplex roles equipment judges the transmission class of operation of apple data, when the transmission class of operation of apple data When operating for transmitting-receiving, step B4 is executed;When the transmission class of operation of apple data is single reception operation, step B5 is executed;When When the transmission class of operation of apple data is that single-shot send operation, step B6 is executed;
Further, in the step 104 of the present embodiment, when the specified interface of apple data is SD card interface, step In B1, essential attribute information includes transmission rate, card slot capacity, SD card size and SD card classification;
Further, in the step 104 of the present embodiment, when the specified interface of apple data is digital audio interface, In step B1, essential attribute information includes transmission rate, bit rate, signal-to-noise ratio and data format;
Step 105: multiplex roles equipment judges the interface type of specified interface, when the interface type of specified interface connects for SD card When mouth, step 106 is executed, when the interface type of specified interface is intelligent card interface, executes step 109;
Step 106: multiplex roles equipment extracts SD card operational order from apple data, judge in SD card operational order whether There is designated sector, is to then follow the steps 107, it is no to then follow the steps 108;
Further, in step 106, multiplex roles equipment judges SD after extracting SD card operational order in apple data Before whether having designated sector in card operational order, further includes: whether multiplex roles equipment judges in SD card operational order to include reading Write operation type is to execute to judge whether there is designated sector in SD card operational order, otherwise reports an error;
Step 107: multiplex roles equipment generates the first operational order according to the designated sector in SD card operational order, sends life At the first operational order to SD card, when receiving the first reply data of SD card return, return to the first reply data to apple Mobile terminal;
Step 108: multiplex roles equipment distributes designated sector, generates the second operational order, hair according to the designated sector of distribution The second operational order of generation is sent to return to the second reply data extremely when receiving the second reply data of SD card return to SD card Apple mobile terminal;
Further, in this embodiment method, in step 106, multiplex roles equipment extracts SD card behaviour from apple data After instructing, further includes: judge the read-write operation type in SD card operational order;
Step 107 specifically:
When the read-write operation type in SD card operational order is read operation, multiplex roles equipment is according in SD card operational order Designated sector and SD card operational order in read operation type generate first operand evidence, send first operand according to SD Card returns to the 4th reply data to apple mobile terminal when receiving four reply data of SD card return;
When the read-write operation type in SD card operational order is write operation, multiplex roles equipment is according in SD card operational order Designated sector, the write operation type in SD card operational order and first transmission data generate second operand evidence, send second Operation data returns to the 5th reply data to apple mobile terminal when receiving five reply data of SD card return to SD card;
Step 108 specifically:
When the read-write operation type in SD card operational order is read operation, multiplex roles equipment distributes designated sector, according to Read operation type in the designated sector and SD card operational order of distribution generates third operation data, sends the third operation of generation Data return to the 6th reply data to apple mobile terminal when receiving six reply data of SD card return to SD card;
When the read-write operation type in SD card operational order is write operation, multiplex roles equipment distributes designated sector, according to Designated sector, the write operation type in SD card operational order and the second transmission data of distribution generate the 4th operation data, send The 4th operation data generated returns to the 7th reply data to apple when receiving seven reply data of SD card return to SD card Fruit mobile terminal;
Step 109: multiplex roles equipment extracts the smart card operating instruction in apple data, sends smart card operating instruction extremely Smart card returns to third reply data to apple mobile terminal when receiving the third reply data of smart card return.
Further, in the step 109 of the present embodiment, the smart card operation that multiplex roles equipment is extracted in apple data refers to Enable, send smart card operating instruction to smart card, specifically: multiplex roles equipment extract APDU instruction in apple data or TPDU instruction, sends APDU instruction or TPDU is instructed to smart card;
Further, the method for the present embodiment further includes returning to error information to apple mobile terminal after reporting an error.
Compared with prior art, the present invention having the advantage that the present invention provides a kind of realize for apple mobile terminal Multiplex roles equipment method and apparatus, apple mobile terminal is attached by the SD card interface of multiplex roles equipment with SD card, Be attached by intelligent card interface and smart card, by the multiplex roles equipment that is connect with apple mobile terminal carry out function switch and The operation such as transmission is realized that apple mobile terminal is attached simultaneously with SD card and smart card and is communicated, makes apple mobile terminal simultaneously It connect and is more convenient with SD card and smart card, improve user experience.
Embodiment two
Second embodiment of the present invention provides a kind of method for realizing the multiplex roles equipment for apple mobile terminal, multiplex roles are set Standby includes the intelligent card interface of the SD card interface of a support SD card agreement and a support smart card protocol, is identified according to certification Apple instruction is authenticated, parses specified interface from apple data, when specified interface is SD card interface, carries out the transmitting-receiving of SD card Operation carries out the transmitting-receiving operation of smart card when specified interface is intelligent card interface;As shown in Figure 2, comprising:
Step 201: when multiplex roles equipment receives the authentication notification of apple mobile terminal transmission, multiplex roles equipment is sent Including authenticating the certification request of certificate data to apple mobile terminal;
Step 202: when receive from apple mobile terminal by certification response when, multiplex roles equipment send identification asks Ask to apple mobile terminal, judge whether to receive the transmission of apple mobile terminal by identifying response, be to then follow the steps 203, it is no to then follow the steps 206;
Step 203: when receiving the apple instruction of apple mobile terminal transmission, multiplex roles equipment judgement parsing apple refers to It enables whether resulting apple data meet multi-interface data format, is to then follow the steps 204, it is no to then follow the steps 206;
Specifically, when receiving the apple instruction of apple mobile terminal transmission, multiplex roles equipment judgement parsing apple refers to Enable whether resulting apple data include instruction and length, is to then follow the steps 203, it is no to then follow the steps 206;
Step 204: multiplex roles equipment obtains the protocol type of apple data, judges the protocol type of the apple data obtained It whether there is, be to then follow the steps 205, it is no to then follow the steps 206;
Step 205: multiplex roles equipment judges that the specified interface of apple data whether there is, and is to then follow the steps 207, otherwise Execute step 206;
Specifically, multiplex roles equipment judges in interface attributes list with the presence or absence of corresponding with the specified interface of apple data Mark, be to then follow the steps 207, it is no to then follow the steps 206;
Step 206: multiplex roles equipment reports an error, and returns to error information to apple mobile terminal;
Step 207: multiplex roles equipment judges the interface type of the specified interface of apple data, and specified when apple data connects When the interface type of mouth is SD card interface, step 208 is executed, when the interface type of the specified interface of apple data is that intelligence is clamped When mouth, step 213 is executed;
Step 208: multiplex roles equipment extracts SD card operational order from apple data, judges the reading in SD card operational order Write operation type and judge whether there is designated sector in SD card operational order, when having designated sector in the SD card operational order of extraction With the read-write operation type in SD card operational order be read operation when, execute step 209;Have when in the SD card operational order of extraction When read-write operation type in designated sector and SD card operational order is write operation, step 210 is executed;When the SD card of extraction operates In instruction without the read-write operation type in designated sector and SD card operational order be read operation when, execute step 211;When extraction In SD card operational order without the read-write operation type in designated sector and SD card operational order be write operation when, execute step 212;
Step 209: multiplex roles equipment is according to the first behaviour of designated sector and the generation of read operation type in SD card operational order Make data and returns to the first reply data to apple mobile terminal when receiving the first reply data of SD card return to SD card;
Step 210: multiplex roles equipment is according to designated sector, write operation type and the first transmission number in SD card operational order According to second operand evidence is generated, sends second operand and returned according to SD card when receiving the second reply data of SD card return Second reply data is to apple mobile terminal;
Step 211: multiplex roles equipment distributes designated sector, is grasped according to the reading of the designated sector of distribution and SD card operational order Make type and generate third operation data, sends the third operation data of generation to SD card, when the third response for receiving SD card return When data, third reply data is returned to apple mobile terminal;
Step 212: multiplex roles equipment distributes designated sector, writes behaviour according in the designated sector of distribution, SD card operational order Make type and the second transmission data generate the 4th operation data and return to SD card when receiving four reply data of SD card return The 4th reply data is returned to apple mobile terminal;
Step 213: multiplex roles equipment extract apple data in APDU instruction or TPDU instruction, send APDU instruction or Person TPDU is instructed to smart card, and when receiving five reply data of smart card return, multiplex roles equipment returns to the 5th answer number According to apple mobile terminal.
In the present embodiment, the interface quantity of multiplex roles equipment can also be greater than 2;The interface quantity of multiplex roles equipment refers to connect more Jaws equipment connects the summation of the total interface quantity except apple mobile terminal interface;The external interface of multiplex roles equipment is at least supported Two kinds of agreements, external interface protocol class specifically: digital audio protocol (such as I2S agreement), SD card agreement, video protocols, Mouse protocol and keypad protocol;In the present embodiment, supporting can in any combination between the interface of different agreement, and every kind of support is identical The quantity of protocol interface is the positive integer more than or equal to 2;But at least there are two interfaces for multiplex roles equipment, at least support two Kind agreement;
At this point, in the presence of the specified interface that multiplex roles equipment judges apple data, multiplex roles equipment is sentenced in step 205 The class of operation of disconnected apple data executes step B1 when the class of operation of apple data is to check the operation of interface list information; When the class of operation of apple data is to open equipment interface operation, step B2 is executed;When the class of operation of apple data is to close When hull closure interface operation, step B3 is executed;When the class of operation of apple data is transmitting-receiving operation, step B4 is executed;Work as apple When the class of operation of fruit data is single reception operation, step B5 is executed;When the class of operation of apple data is that single-shot send operation, Execute step B6;
Step B1: multiplex roles equipment reads apple data specified interface number corresponding interface from interface attributes storage area Essential attribute information returns to essential attribute information to apple mobile terminal;
In the present embodiment, the essential attribute information of interface refers to the essential informations such as the model of multiplex roles equipment external interface; The protocol type that apple data specified interface number corresponding interface is supported is different and different;
For example, when the protocol type that apple data specified interface number corresponding interface is supported in multiplex roles equipment is SD card association When view, essential attribute information includes: transmission rate, card slot capacity, SD card size and SD card classification etc.;
When the protocol type that apple data specified interface number corresponding interface is supported in multiplex roles equipment is digital audio association When view, essential attribute information includes: transmission rate, bit rate, signal-to-noise ratio and data format etc.;
Step B2: multiplex roles equipment initializes the bottom hardware configuration of apple data specified interface number corresponding interface, gives Apple data specified interface number corresponding interface powers on;
Specifically, multiplex roles equipment opens apple data specified interface number corresponding interface, and initialization apple data are specified The bottom hardware of interface index corresponding interface configures, and apple data specified interface number corresponding interface peripheral hardware power supply GPIO is drawn Height, apple data specified interface number corresponding interface power on, and the opening for generating apple data specified interface number corresponding interface is set Standby interface successful information returns and opens equipment interface successful information to apple mobile terminal;
For example, multiplex roles equipment opens the response content of equipment interface successful information are as follows: 0x9000;
Step B3: multiplex roles equipment closes apple data specified interface number corresponding interface, and disability apple data are specified to be connect Mouth number corresponding interface bottom hardware configures, and it is specified to generate apple data for electricity under apple data specified interface number corresponding interface It is mobile eventually to apple to return to pass hull closure interface successful information for the pass hull closure interface successful information of interface index corresponding interface End;
Step B4: multiplex roles equipment extracts the first operational order in apple data, sends the first operational order to apple The equipment of data specified interface number corresponding interface connection judges whether that receiving apple data specified interface number corresponding interface connects The reply data for connecing equipment is to return to reply data to apple mobile terminal, otherwise continues to execute step B4;
Step B5: multiplex roles equipment obtains the acquisition data of specified interface, when receiving the 9th reply data of specified interface When, the 9th reply data is returned to apple mobile terminal;
Step B6: multiplex roles equipment obtains the acquisition data of apple data specified interface number corresponding interface, judges whether The reply data for receiving apple data specified interface number corresponding interface is to transmit based data output to connect to apple data are specified Mouthful number corresponding interface, when judge based data output whether end of transmission when, generation reply data;
In the present embodiment, when there are after the specified interface of apple data for the judgement of multiplex roles equipment further include: multiplex roles equipment The functional category for judging apple data executes step A1, when apple number when the functional category of apple data is equipment operation class According to functional category be transmission operation class when, execute step A2;
Step A1: multiplex roles equipment judges the equipment operation classification of apple data, when the equipment operation class in apple data When Wei not check interface attributes operation, step B1 is executed;When the equipment operation classification in apple data is to open equipment interface behaviour When making, step B2 is executed;When the equipment operation classification in apple data is pass hull closure interface operation, step B3 is executed;
Step A2: multiplex roles equipment judges the transmission class of operation of apple data, when the transmission class of operation of apple data When operating for transmitting-receiving, step B4 is executed;When the transmission class of operation of apple data is single reception operation, step B5 is executed;When When the transmission class of operation of apple data is that single-shot send operation, step B6 is executed.
In the present embodiment, the association that interface quantity and each interface are supported in multiplex roles equipment can also be known in advance in apple data Discuss type;
In the present embodiment, SD storage card is a kind of memory device of new generation based on semiconductor fast-flash memory device, due to it It is small in size, data transmission bauds is fast, the excellent characteristic such as hot-swappable, by widely in being used on mancarried device, such as count Code camera, personal digital assistant (english abbreviation PDA) and multimedia player etc..
Compared with prior art, the present invention having the advantage that the present invention provides a kind of realize for apple mobile terminal Multiplex roles equipment method and apparatus, apple mobile terminal is attached by the SD card interface of multiplex roles equipment with SD card, Be attached by intelligent card interface and smart card, by the multiplex roles equipment that is connect with apple mobile terminal carry out function switch and The operation such as transmission is realized that apple mobile terminal is attached simultaneously with SD card and smart card and is communicated, makes apple mobile terminal simultaneously It connect and is more convenient with SD card and smart card, improve user experience.
Embodiment three
The embodiment of the present invention three provides a kind of method for realizing the multiplex roles equipment for apple mobile terminal, and multiplex roles are set The standby interface for including at least a digital audio interface and/or video interface and/or human input devices, human input devices packet Mouse, keyboard and rocking bar are included, as shown in Figure 3, comprising:
Step 301: when multiplex roles equipment receives the authentication notification of apple mobile terminal transmission, multiplex roles equipment is sent Including authenticating the certification request of certificate data to apple mobile terminal;
Step 302: when multiplex roles equipment receive from apple mobile terminal by certification response when, multiplex roles equipment Transmission identification request to apple mobile terminal, reception apple mobile terminal transmission passes through identification response;
Step 303: when multiplex roles equipment receives the apple instruction of apple mobile terminal transmission, multiplex roles equipment is from apple Apple data are obtained in fruit instruction, judge whether apple data meet multiplex roles instruction word format, are to then follow the steps 304, it is no Then follow the steps 305;
Specifically, when multiplex roles equipment receives the apple instruction of apple mobile terminal transmission, the judgement of multiplex roles equipment Parsing apple instructs whether resulting apple data include instruction and length, is to then follow the steps 304, no to then follow the steps 305;
Step 304: multiplex roles equipment judges that the specified protocol of apple data whether there is, and is to then follow the steps 306, otherwise Execute step 305;
Specifically, multiplex roles equipment judges in interface attributes list with the presence or absence of identical with the specified protocol of apple data Agreement is to then follow the steps 306, no to then follow the steps 305;
Step 305: multiplex roles equipment multiplex roles equipment reports an error, and returns to error information to apple mobile terminal;
Step 306: multiplex roles equipment stores the specified protocol of apple data, checks that the specified protocol correspondence of apple data connects Mouth number;
Step 307: multiplex roles equipment judgement check apple data specified protocol corresponding interface number in whether include The specified interfaces of apple data is numbered, and is to then follow the steps 308, no to then follow the steps 305;
Step 308: multiplex roles equipment judges the class of operation of apple data, when the class of operation of apple data is to check to connect When mouth list information operation, step 309 is executed;When the class of operation of apple data is to open equipment interface operation, step is executed Rapid 310;When the class of operation of apple data is pass hull closure interface operation, step 312 is executed;When the operation class of apple data When Wei not receive and dispatch operation, step 316 is executed;When the class of operation of apple data is single reception operation, step 320 is executed;When When the class of operation of apple data is that single-shot send operation, step 322 is executed;
Step 309: multiplex roles equipment reads apple data specified interface number corresponding interface from interface attributes storage area Essential attribute information, return to essential attribute information to apple mobile terminal;
In the present embodiment, the essential attribute information of interface refers to the essential informations such as the model of multiplex roles equipment external interface;
For example, when the protocol type that apple data specified interface number corresponding interface is supported in multiplex roles equipment is SD card association When view, essential attribute information includes: transmission rate, card slot capacity, SD card size and SD card classification etc.;
When the protocol type that apple data specified interface number corresponding interface is supported in multiplex roles equipment is digital audio association When view, essential attribute information includes: transmission rate, bit rate, signal-to-noise ratio and data format etc.;
Step 310: multiplex roles equipment initializes the bottom hardware configuration of apple data specified interface number corresponding interface;
Specifically, multiplex roles equipment opens apple data specified interface number corresponding interface, and initialization apple data are specified The bottom hardware of interface index corresponding interface configures;
Step 311: multiplex roles equipment is powered on to apple data specified interface number corresponding interface;
Specifically, multiplex roles equipment draws high apple data specified interface number corresponding interface peripheral hardware power supply GPIO, apple Data specified interface number corresponding interface powers on;
Step 312: multiplex roles equipment generates the opening equipment interface success of apple data specified interface number corresponding interface Information returns and opens equipment interface successful information to apple mobile terminal;
For example, opening the response content of equipment interface successful information are as follows: 0x9000;
Step 313: multiplex roles equipment closes apple data specified interface number corresponding interface, and disability apple data are specified to be connect Mouth number corresponding interface bottom hardware configuration;
Step 314: multiplex roles equipment is to electric under apple data specified interface number corresponding interface;
Specifically, multiplex roles equipment drags down apple data specified interface number corresponding interface peripheral hardware power supply GPIO, apple It is electric under data specified interface number corresponding interface;
Step 315: multiplex roles equipment generates the pass hull closure interface success of apple data specified interface number corresponding interface Information returns to pass hull closure interface successful information to apple mobile terminal;
Step 316: multiplex roles equipment extracts the first operational order in apple data;
Step 317: multiplex roles equipment sends the first operational order to apple data specified interface number corresponding interface and connects Equipment;
Step 318: multiplex roles equipment judges whether to receive apple data specified interface number corresponding interface connection equipment Reply data, be to then follow the steps 319, otherwise continue to judge;
Step 319: multiplex roles equipment returns to reply data to apple mobile terminal;
Step 320: the acquisition data of multiplex roles equipment acquisition apple data specified interface number corresponding interface;
Step 321: multiplex roles equipment judges whether to receive the answer number of apple data specified interface number corresponding interface According to being to then follow the steps 319, otherwise continue to judge;
Step 322: multiplex roles equipment transmits based data output to apple data specified interface number corresponding interface;
Step 323: multiplex roles equipment judge based data output whether end of transmission, be to then follow the steps 324, otherwise continue to sentence It is disconnected;
Step 324: multiplex roles equipment generates reply data, executes step 319.
It include apple in the specified protocol corresponding interface number for the apple data that the judgement of multiplex roles equipment is checked in the present embodiment When the specified interface number of fruit data, further includes: multiplex roles equipment judges the functional category of apple data, when the function of apple data When energy classification is equipment operation class, step A1 is executed, when the functional category of apple data is that transmission operates class, executes step A2;
Step A1: multiplex roles equipment judges the equipment operation classification of apple data, when the equipment operation class in apple data When Wei not check interface attributes operation, step 309 is executed;When the equipment operation classification in apple data is to open equipment interface behaviour When making, step 310 is executed;When the equipment operation classification in apple data is pass hull closure interface operation, step 313 is executed;
Step A2: multiplex roles equipment judges the transmission class of operation of apple data, when the transmission class of operation of apple data When operating for transmitting-receiving, step 316 is executed;When the transmission class of operation of apple data is single reception operation, step 320 is executed; When the transmission class of operation of apple data is that single-shot send operation, step 323 is executed.
In the present embodiment, the association that interface quantity and each interface are supported in multiplex roles equipment can also be known in advance in apple data Type is discussed, apple data specified interface number certainly exists in multiplex roles equipment, executes step 306 and arrives step 324;
Compared with prior art, the present invention having the advantage that the present invention provides a kind of realize for apple mobile terminal Multiplex roles equipment method and apparatus, apple mobile terminal is attached by the SD card interface of multiplex roles equipment with SD card, Be attached by intelligent card interface and smart card, by the multiplex roles equipment that is connect with apple mobile terminal carry out function switch and The operation such as transmission is realized that apple mobile terminal is attached simultaneously with SD card and smart card and is communicated, makes apple mobile terminal simultaneously It connect and is more convenient with SD card and smart card, improve user experience.
Example IV
The embodiment of the present invention four provides a kind of device for realizing the multiplex roles equipment for apple mobile terminal, such as Fig. 4 institute Show, including receiving module 401, sending module 402, first judgment module 403, the second judgment module 404, third judgment module 405, the 4th judgment module 406, first report an error module 407, second report an error module 408, the first generation module 409, second generate Module 410, third generation module 411, the first extraction module 412, the second extraction module 413, apple interface 414, SD card interface 415 and intelligent card interface 416;
Apple interface 414, for carrying out data transmission between multiplex roles equipment and apple mobile terminal;
SD card interface 415, for carrying out data transmission between multiplex roles equipment and SD card;
Intelligent card interface 416, for carrying out data transmission between multiplex roles equipment and smart card;
Receiving module 401, for receiving the authentication notification that apple mobile terminal is sent by apple interface 414;
First generation module 409 includes authentication proof for generating when receiving module 401 receives the authentication notification The certification request of book data;
Sending module 402, for receiving the transmission of apple mobile terminal by apple interface 414 when receiving module 401 When authentication notification, certification request that the first generation module 409 generates is sent to apple mobile terminal by apple interface 414;
Receiving module 401, be also used to by apple interface 414 receive from apple mobile terminal by authenticate response;
Sending module 402 is also used to receive by apple interface 414 from apple mobile terminal when receiving module 401 When by certification response, identification request is sent to apple mobile terminal by apple interface 414;
Receiving module 401 is also used to receive the identification response that apple mobile terminal is sent by apple interface 414;
Receiving module 401 is also used to receive the apple instruction that apple mobile terminal is sent by apple interface 414;
First judgment module 403, for receiving apple mobile terminal hair by apple interface 414 when receiving module 401 When the apple instruction sent, judge that parsing apple instructs whether resulting apple data meet multi-interface data format;
First reports an error module 407, for determining that parsing apple instructs resulting apple data not when first judgment module 403 When meeting multi-interface data format, report an error;
Second judgment module 404, for determining that parsing apple instructs resulting apple data symbols when first judgment module 403 When closing multi-interface data format, the specified interface of apple data is judged whether there is;
Second reports an error module 408, for when the second judgment module 404 determines that the specified interface of apple data is not present, It reports an error;
Third judgment module 405, for when the second judgment module 404 determine there are when the specified interface of apple data, sentence The interface type of severed finger stationary interface;
First extraction module 412, for determining that the interface type of specified interface is SD card interface when third judgment module 405 When, SD card operational order is extracted from apple data;
4th judgment module 406, the SD card operational order extracted from apple data for judging the first extraction module 412 In whether have designated sector;
Second generation module 410, for when the 4th judgment module 406 determine SD card operational order in have designated sector when, The first operational order is generated according to the designated sector in SD card operational order;
Sending module 402 is also used to send the first operation that the second generation module 410 generates by SD card interface 415 and refers to It enables to SD card;
Receiving module 401 is also used to receive the first reply data that SD card returns by SD card interface 415;
Sending module 402 is also used to receive the first response that SD card returns by SD card interface 415 when receiving module 401 When data, the first reply data is returned to apple mobile terminal by apple interface 414;
Third generation module 411 is used for when the 4th judgment module 406 determines in SD card operational order without designated sector, Designated sector is distributed, the second operational order is generated according to the designated sector of distribution;
Sending module 402 is also used to send the second operation that third generation module 411 generates by SD card interface 415 and refers to It enables to SD card;
Receiving module 401 is also used to receive the second reply data that SD card returns by SD card interface 415;
Sending module 402 is also used to receive the second response that SD card returns by SD card interface 415 when receiving module 401 When data, the second reply data is returned to apple mobile terminal by apple interface 414;
Second extraction module 413, for determining that the interface type of specified interface is intelligent clamping when third judgment module 405 When mouth, the smart card operating instruction in apple data is extracted;
Sending module 402 is also used to send the smart card behaviour that the second extraction module 413 extracts by intelligent card interface 416 It instructs to smart card;
Receiving module 401 is also used to receive the third reply data that smart card returns by intelligent card interface 416;
Sending module 402 is also used to receive the third of smart card return by intelligent card interface 416 when receiving module 401 When reply data, third reply data is returned to apple mobile terminal by apple interface 414.
Further, in this embodiment device, further include obtaining module and the 4th generation module;
First generation module 409, including receiving unit, transmission unit, the first generation unit, the second generation unit and third Generation unit;
Sending module 402 is also used to send authentication notification to the second receiving unit;
Receiving unit, for receiving the authentication notification of the transmission of sending module 402;
First generation unit includes the first of certification certificate data for generating when receiving unit receives authentication notification Certification request;
Transmission unit includes the of certification certificate data for send that the first generation unit generates to receiving module 401 One certification request;
Receiving module 401 is also used to receive the first certification request of transmission unit transmission;
Sending module 402 is also used to send the first certification request to apple mobile terminal by apple interface 414;
Receiving module 401 is also used to receive the first certification response from apple mobile terminal by apple interface 414;
Obtain module, for when receiving module 401 by apple interface 414 receive from apple mobile terminal first When authenticating response, challenging value is obtained from the first certification response;
Sending module 402 is also used to send the challenging value for obtaining module and obtaining to receiving unit;
Receiving unit is also used to receive the challenging value of the transmission of sending module 402;
Second generation unit, for generating signature result according to challenging value when receiving unit receives challenging value;
Transmission unit is also used to send the signature result that the second generation unit generates to receiving module 401;
Receiving module 401 is also used to receive the signature result of transmission unit transmission;
Third generation unit includes the second of signature result for being generated according to the received signature result of receiving module 401 Certification request;
Transmission unit is also used to send second including signature result that third generation unit generates to receiving module 401 Certification request;
Receiving module 401 is also used to receive the second certification request of transmission unit transmission;
Sending module 402 is also used to transmit and receive unit received second to apple mobile terminal by apple interface 414 Certification request;
Receiving module 401, be also used to send by the apple mobile terminal to be received such as apple interface 414 is answered by certification It answers.
Further, in this embodiment device, further include the 5th judgment module and third report an error module;
5th judgment module, for receiving the transmission of apple mobile terminal by apple interface 414 when receiving module 401 When identifying response, judge whether the identification response received is by identifying response;
Third reports an error module, for determining what receiving module 401 was received by apple interface 414 when the 5th judgment module When identification response is not by identification response, report an error;
First judgment module 403 is also used to determine that receiving module 401 is connect by apple interface 414 when the 5th judgment module The identification response received is by when identification response and when receiving module 401 receives apple movement eventually by apple interface 414 When the apple instruction that end is sent, judge that parsing apple instructs whether resulting apple data meet multi-interface data format.
Further, in this embodiment device, further include read module;
Read module, for receiving the apple that apple mobile terminal is sent by apple interface 414 when receiving module 401 When instruction, equipment interface list information is read;
Sending module 402 is also used to return to the equipment that read module is read to apple mobile terminal by apple interface 414 Interface list information;
Further, the device in the present embodiment, the equipment interface list information that read module is read set for multiplex roles The protocol type of standby two interfaces and corresponding support;
Second sending module 402 is also used to return to what read module was read to apple mobile terminal by apple interface 414 Two interfaces of multiplex roles equipment and the protocol type of corresponding support.
Further, in this embodiment device, first judgment module 403, specifically for receiving when receiving module 401 When the apple instruction of apple mobile terminal transmission, judge that parsing apple instructs whether resulting apple data include instruction and length Degree.
Further, in this embodiment device, further include that the 6th judgment module and the 4th report an error module;
6th judgment module, for determining that parsing apple instructs resulting apple data fit when first judgment module 403 When multi-interface data format, the protocol type of apple data is obtained, judges that protocol type whether there is;
Second judgment module 404 is specifically used in the presence of the 6th judgment module judges protocol type, judges whether there is The specified interface of apple data;
4th reports an error module, for reporting an error in the absence of the 6th judgment module judges protocol type.
Further, in this embodiment device, further include that the 7th judgment module and the 5th report an error module;
7th judgment module, for judging after the first extraction module 412 extracts SD card operational order from apple data It whether include read-write operation type in SD card operational order;
4th judgment module 406 is specifically used for determining to include read-write operation in SD card operational order when the 7th judgment module When type, judge whether there is designated sector in SD card operational order;
5th reports an error module, for determining not include read-write operation type in SD card operational order when the 7th judgment module When, it reports an error.
Further, in this embodiment device, further include the 8th judgment module;
8th judgment module, for judging after the first extraction module 412 extracts SD card operational order from apple data Read-write operation type in SD card operational order;
Second generation module 410, specifically for judging that the read-write in SD card operational order is grasped when the 8th judgment module Making type is when having designated sector in read operation and the 4th judgment module 406 judgement SD card operational order, to be referred to according to SD card operation Read operation type in designated sector and SD card operational order in order generates first operand evidence;
Sending module 402, specifically for sending the first operation that the second generation module 410 generates by SD card interface 415 Data are to SD card;
Receiving module 401 is also used to receive the 4th reply data that SD card returns by SD card interface 415;
Sending module 402 is also used to receive the 4th response that SD card returns by SD card interface 415 when receiving module 401 When data, the 4th reply data is returned to apple mobile terminal by apple interface 414;
Second generation module 410, specifically for judging that the read-write in SD card operational order is grasped when the 8th judgment module Making type is when having designated sector in write operation and the 4th judgment module 406 judgement SD card operational order, to be referred to according to SD card operation The write operation type and the first transmission data generation second operand evidence in designated sector, SD card operational order in order;
Sending module 402, specifically for sending the second operation that the second generation module 410 generates by SD card interface 415 Data are to SD card;
Receiving module 401 is also used to receive the 5th reply data that SD card returns by SD card interface 415;
Sending module 402 is also used to receive the 5th response that SD card returns by SD card interface 415 when receiving module 401 When data, the 5th reply data is returned to apple mobile terminal by apple interface 414;
Second generation module 410, specifically for judging that the read-write in SD card operational order is grasped when the 8th judgment module Making type is when not having designated sector in read operation and the 4th judgment module 406 judgement SD card operational order, to distribute designated sector, Third operation data is generated according to the read operation type in the designated sector of distribution and SD card operational order;
Sending module 402 is operated specifically for sending the third that the second generation module 410 generates by SD card interface 415 Data are to SD card;
Receiving module 401 is also used to receive the 6th reply data that SD card returns by SD card interface 415;
Sending module 402 is also used to receive the 6th response that SD card returns by SD card interface 415 when receiving module 401 When data, the 6th reply data is returned to apple mobile terminal by apple interface 414;
Second generation module 410, specifically for judging that the read-write in SD card operational order is grasped when the 8th judgment module Making type is when not having designated sector in write operation and the 4th judgment module 406 judgement SD card operational order, to distribute designated sector, According to the write operation type and the second transmission data the 4th operation data of generation in the designated sector of distribution, SD card operational order;
Sending module 402, specifically for sending the 4th operation that the second generation module 410 generates by SD card interface 415 Data are to SD card;
Receiving module 401 is also used to receive the 7th reply data that SD card returns by SD card interface 415;
Sending module 402 is also used to receive the 7th response that SD card returns by SD card interface 415 when receiving module 401 When data, the 7th reply data is returned to apple mobile terminal by apple interface 414.
Further, in this embodiment device, the second extraction module 413, specifically for extract apple data in APDU instruction or TPDU instruction;
Sending module 402 refers to specifically for sending the APDU that the second extraction module 413 extracts by intelligent card interface 416 It enables or TPDU is instructed to smart card.
Further, in this embodiment device, at least further include a digital audio interface and/or video interface and/ Or the interface of human input devices, human input devices include mouse, keyboard and rocking bar;Further include the 9th judgment module, check Interface attributes operation module opens equipment interface operation module, pass hull closure interface operational module, transmitting-receiving operation module, singly connects It receives operation module and single-shot send operation module;
9th judgment module, for when the second judgment module 404 determine there are when the specified interface of apple data, judge apple The class of operation of fruit data;
Interface attributes operation module is checked, for determining that the class of operation of apple data is to check to connect when the 9th judgment module When mouth property operations, the essential attribute information of specified interface is read;
Sending module 402 is also used to return to the basic letter for checking that interface attributes operation module is read by apple interface 414 It ceases to apple mobile terminal;
Equipment interface operation module is opened, for determining that the class of operation of apple data sets to open when the 9th judgment module It when standby interface operation, is powered on to specified interface, generates and open equipment interface successful information;
Sending module 402 is also used to return the opening for opening the generation of equipment interface operation module by apple interface 414 and sets For interface successful information to apple mobile terminal;
Pass hull closure interface operational module, for determining that the class of operation of apple data sets to close when the 9th judgment module When standby interface operation, to electric under specified interface, generation pass hull closure interface successful information;
Sending module 402 is also used to return the pass hull closure interface successful information of pass hull closure interface operational module generation To apple mobile terminal;
Operation module is received and dispatched, when for determining that the class of operation of apple data operates for transmitting-receiving when the 9th judgment module, from The third operational order extracted in apple data;
Sending module 402 is also used to send the third operational order that extracts from apple data of transmitting-receiving operation module to apple The connection equipment of the specified interface of fruit data;
Receiving module 401 is also used to receive the 8th reply data of the connection equipment of specified interface;
Sending module 402 is also used to receive the 8th reply data of the connection equipment of specified interface when receiving module 401 When, the 8th reply data is returned to apple mobile terminal by apple interface 414;
It is single to receive operation module, for determining that the class of operation of apple data receives operation to be single when the 9th judgment module When, obtain the acquisition data of specified interface;
Receiving module 401 is also used to receive the 9th reply data of specified interface;
Sending module 402 is also used to pass through apple when receiving module 401 receives nine reply data of specified interface Fruit returns to the 9th reply data to apple mobile terminal;
Sending module 402 is also used to when the class of operation of the 9th judgment module judgement apple data send operation for single-shot, Transmit the external equipment of based data output to specified interface;
Single-shot send operation module, is also used to when 402 based data output end of transmission of sending module, generates the tenth answer number According to;
Sending module 402 is also used to return single-shot and send the tenth reply data of operation module generation to apple mobile terminal;
Further, the device in the present embodiment further includes the tenth judgment module, the 11st judgment module and the 12nd Judgment module;
Tenth judgment module, for when the second judgment module 404 determine there are when the specified interface of apple data, judge apple The functional category of fruit data;
11st judgment module, for determining that the functional category of apple data is equipment operation class when the tenth judgment module When, judge the equipment operation classification of apple data;
It checks interface attributes operation module, is also used to determine the equipment operation classification of apple data when the 11st judgment module When to check interface attributes operation, the essential attribute information of specified interface is read;
Equipment interface operation module is opened, is also used to determine the equipment operation classification of apple data when the 11st judgment module It when to open equipment interface operation, being powered on to specified interface, generating and opening equipment interface successful information;
Pass hull closure interface operational module is also used to determine the equipment operation classification of apple data when the 11st judgment module When for pass hull closure interface operation, to electric under specified interface, pass hull closure interface successful information is generated;
12nd judgment module, for determining that the functional category of apple data operates class for transmission when the tenth judgment module When, judge the transmission class of operation of apple data;
Operation module is received and dispatched, is also used to determine the transmission class of operation of apple data for transmitting-receiving behaviour when the 12nd judgment module When making, the third operational order that is extracted from apple data;
Sending module 402 is specifically also used to determine that the transmission class of operation of apple data is list when the 12nd judgment module When receiving operation, the acquisition data of specified interface are obtained;
Single-shot send operation module, is also used to determine that the transmission class of operation of apple data is single-shot when the 12nd judgment module When sending operation, the external equipment of transmission based data output to specified interface.
Further, in this embodiment device, when the specified interface of apple data be SD card interface 415 when, check and connect It includes transmission rate, card slot capacity, SD card size and SD card that mouth property operations module, which reads the essential attribute information of specified interface, Classification.
Further, in this embodiment device, when the specified interface of apple data be digital audio interface when, check and connect It includes transmission rate, bit rate, signal-to-noise ratio and data format that mouth property operations module, which reads the essential attribute information of specified interface,.
Further, in this embodiment device, sending module 402 be also used to when first report an error module 407 report an error after, Error information is returned to apple mobile terminal by apple interface 414;Be also used to when second report an error module 408 report an error after, lead to It crosses apple interface 414 and returns to error information to apple mobile terminal.
Device in the present embodiment may include main control chip, trusted authentication chip, apple interface, SD card interface and smart card Interface, main control chip are connect with trusted authentication chip, apple interface, SD card interface and intelligent card interface;Receiving module 401 sends mould Block 402, first judgment module 403, the second judgment module 404, third judgment module 405, the 4th judgment module 406, first report Mismatch block 407, second report an error module 408, the first generation module 409, the second generation module 410, third generation module 411, One extraction module 412, the second extraction module 413, apple interface 414, SD card interface 415 and intelligent card interface 416 are integrated in master It controls on chip;First generation module can be integrated on trusted authentication chip with a part.
Compared with prior art, the present invention having the advantage that the present invention provides a kind of realize for apple mobile terminal Multiplex roles equipment method and apparatus, apple mobile terminal is attached by the SD card interface of multiplex roles equipment with SD card, Be attached by intelligent card interface and smart card, by the multiplex roles equipment that is connect with apple mobile terminal carry out function switch and The operation such as transmission is realized that apple mobile terminal is attached simultaneously with SD card and smart card and is communicated, makes apple mobile terminal simultaneously It connect and is more convenient with SD card and smart card, improve user experience.
More than, it is merely preferred embodiments of the present invention, but scope of protection of the present invention is not limited thereto, it is any Those familiar with the art is in technical scope disclosed by the invention, and any changes or substitutions that can be easily thought of, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (30)

1. a kind of method for realizing the multiplex roles equipment for apple mobile terminal, which is characterized in that multiplex roles equipment includes extremely A few SD card interface and at least one intelligent card interface, the described method comprises the following steps:
Step S1: when the multiplex roles equipment receives the authentication notification of apple mobile terminal transmission, the multiplex roles equipment Sending generate includes the certification request of certification certificate data to apple mobile terminal;
Step S2: when the multiplex roles equipment receive from apple mobile terminal by certification response when, the multiplex roles Equipment sends identification request to the apple mobile terminal, receives the identification response that apple mobile terminal is sent, executes step S3;
Step S3: when the multiplex roles equipment receives the apple instruction that the apple mobile terminal is sent, the multiplex roles Equipment judges that the parsing apple instructs whether resulting apple data meet multi-interface data format, is to then follow the steps S4, Otherwise it reports an error;
Step S4: the multiplex roles equipment judges whether there is the specified interface of the apple data, is to then follow the steps S5, no Then report an error;
Step S5: the multiplex roles equipment judges the interface type of the specified interface, when the interface type of the specified interface When for SD card interface, step S6 is executed, when the interface type of the specified interface is intelligent card interface, executes step S9;
Step S6: the multiplex roles equipment extracts SD card operational order from apple data, judges in the SD card operational order Whether there is designated sector, is to then follow the steps S7, it is no to then follow the steps S8;
Step S7: the multiplex roles equipment generates the first operational order according to the designated sector in SD card operational order, sends life At the first operational order to SD card, when receiving the first reply data of SD card return, return to first reply data extremely Apple mobile terminal;
Step S8: the multiplex roles equipment distributes designated sector, generates the second operational order according to the designated sector of distribution, sends The second operational order generated returns to the second reply data to apple when receiving the second reply data of SD card return to SD card Fruit mobile terminal;
Step S9: the multiplex roles equipment extracts the smart card operating instruction in apple data, sends the smart card operation and refers to It enables to smart card, when receiving the third reply data of smart card return, it is mobile eventually to apple to return to the third reply data End.
2. the method as described in claim 1, which is characterized in that the step S1 is specifically, when multiplex roles equipment receives institute When stating the authentication notification of apple mobile terminal transmission, multiplex roles equipment sends the first certification including certification certificate data generated Request is to apple mobile terminal, and when receiving the first certification response from apple mobile terminal, multiplex roles equipment is recognized from first Challenging value is obtained in card response, signature result is generated according to the challenging value of acquisition, second including signature result is sent and recognizes Card request waits to be received by authenticating response to apple mobile terminal.
3. the method as described in claim 1, which is characterized in that after the step S2 and before the step S3 further include: Whether the identification response that the multiplex roles equipment judgement receives is by identifying response, is to then follow the steps S3, otherwise It reports an error.
4. the method as described in claim 1, which is characterized in that in the step S3, as multiplex roles equipment receives the apple When the apple instruction that fruit mobile terminal is sent, the multiplex roles equipment judgement, which parses the resulting apple data of the apple instruction, is It is no meet multi-interface data format before, further includes: the multiplex roles equipment reads equipment interface list information, returns to reading The equipment interface list information is to apple mobile terminal.
5. method as claimed in claim 4, which is characterized in that the equipment interface list information includes the two of multiplex roles equipment A interface and the protocol type of corresponding support.
6. the method as described in claim 1, which is characterized in that in the step S3, the multiplex roles equipment judgement parsing institute It states apple and instructs whether resulting apple data meet multi-interface data format, specifically: the multiplex roles equipment judgement parsing The apple instructs whether resulting apple data include instruction and length.
7. the method as described in claim 1, which is characterized in that in the step S3, when the multiplex roles equipment determines to parse When the apple instructs resulting apple data fit multi-interface data format, before the step S4, further includes: described to connect more Jaws equipment obtains the protocol type of apple data, judges that the protocol type whether there is, is to then follow the steps S4, otherwise reports It is wrong.
8. the method as described in claim 1, which is characterized in that in the step S6, the multiplex roles equipment is from apple data After middle extraction SD card operational order, it is described judge whether to have in SD card operational order designated sector before, further includes: it is described more Whether interface equipment judges in SD card operational order to include read-write operation type, is executed in the judgement SD card operational order Whether there is designated sector, otherwise reports an error.
9. the method as described in claim 1, which is characterized in that in the step S6, the multiplex roles equipment is from apple data After middle extraction SD card operational order, further includes: judge the read-write operation type in SD card operational order;
The step S7 specifically:
When the read-write operation type in the SD card operational order is read operation, the multiplex roles equipment refers to according to SD card operation Read operation type in designated sector and SD card operational order in order generates first operand evidence, sends the first operand The 4th reply data is returned to apple mobile terminal when receiving four reply data of SD card return according to SD card;
When the read-write operation type in the SD card operational order is write operation, the multiplex roles equipment refers to according to SD card operation The write operation type and the first transmission data generation second operand evidence in designated sector, SD card operational order in order, sends The second operand returns to the 5th reply data extremely when receiving five reply data of SD card return according to SD card Apple mobile terminal;
The step S8 specifically:
When the read-write operation type in the SD card operational order is read operation, the multiplex roles equipment distributes designated sector, Third operation data is generated according to the read operation type in the designated sector of distribution and SD card operational order, sends the third of generation It is mobile to apple to return to the 6th reply data when receiving six reply data of SD card return to SD card for operation data Terminal;
When the read-write operation type in the SD card operational order is write operation, the multiplex roles equipment distributes designated sector, Data the 4th operation data of generation is transmitted according to the write operation type and second in the designated sector of distribution, SD card operational order, It sends the 4th operation data generated and returns to the described 7th when receiving seven reply data of SD card return to SD card Reply data is to apple mobile terminal.
10. the method as described in claim 1, which is characterized in that in the step S9, the multiplex roles equipment extracts apple number Smart card operating instruction in, sends the smart card operating instruction to smart card, specifically: the multiplex roles equipment is extracted Perhaps TPDU instruction sends APDU instruction or TPDU is instructed to smart card for APDU instruction in apple data.
11. the method as described in claim 1, which is characterized in that the multiplex roles equipment at least further includes a digital audio The interface of interface and/or video interface and/or human input devices, the human input devices include mouse, keyboard and rocking bar;
In the step S4, when there are after the specified interface of the apple data for multiplex roles equipment judgement further include: described Multiplex roles equipment judges the class of operation of apple data, when the class of operation of apple data is to check interface attributes operation, holds Row step B1;When the class of operation of apple data is to open equipment interface operation, step B2 is executed;When the operation of apple data When classification is pass hull closure interface operation, step B3 is executed;When the class of operation of apple data is transmitting-receiving operation, step is executed B4;When the class of operation of apple data is single reception operation, step B5 is executed;When the class of operation of apple data send for single-shot When operation, step B6 is executed;
Step B1: the multiplex roles equipment reads the essential attribute information of the specified interface, returns to the essential attribute information To apple mobile terminal;
Step B2: the multiplex roles equipment is powered on to the specified interface, is generated and is opened equipment interface successful information, described in return Equipment interface successful information is opened to apple mobile terminal;
Step B3: the multiplex roles equipment gives electricity under the specified interface, pass hull closure interface successful information is generated, described in return Pass hull closure interface successful information is to apple mobile terminal;
Step B4: the multiplex roles equipment sends third operational order to the specified of apple data extracted from apple data and connects The connection equipment of mouth returns to institute when multiplex roles equipment receives eight reply data of connection equipment of the specified interface The 8th reply data is stated to apple mobile terminal;
Step B5: the multiplex roles equipment obtains the acquisition data of the specified interface, when receiving the 9th response of specified interface When data, the 9th reply data is returned to apple mobile terminal;
Step B6: the multiplex roles equipment transmits the external equipment of based data output to the specified interface, when based data output transmits When finishing, the tenth reply data is generated, returns to the tenth reply data to apple mobile terminal.
12. method as claimed in claim 11, which is characterized in that in the step S4, when multiplex roles equipment judgement is deposited After the specified interface of the apple data further include: the multiplex roles equipment judges the functional category of apple data, works as apple When the functional category of data is equipment operation class, step A1 is executed, when the functional category of apple data is transmission operation class, is held Row step A2;
Step A1: the multiplex roles equipment judges the equipment operation classification of apple data, when the equipment operation class in apple data When Wei not check interface attributes operation, step B1 is executed;When the equipment operation classification in apple data is to open equipment interface behaviour When making, step B2 is executed;When the equipment operation classification in apple data is pass hull closure interface operation, step B3 is executed;
Step A2: the multiplex roles equipment judges the transmission class of operation of apple data, when the transmission class of operation of apple data When operating for transmitting-receiving, step B4 is executed;When the transmission class of operation of apple data is single reception operation, step B5 is executed;When When the transmission class of operation of apple data is that single-shot send operation, step B6 is executed.
13. the method as described in claim 11 or 12, which is characterized in that when the specified interface of apple data is SD card interface When, in the step B1, the essential attribute information includes transmission rate, card slot capacity, SD card size and SD card classification.
14. the method as described in claim 11 or 12, which is characterized in that when the specified interface of apple data connects for digital audio When mouth, in the step B1, the essential attribute information includes transmission rate, bit rate, signal-to-noise ratio and data format.
15. the method as described in claim 1, which is characterized in that described report an error further includes returning to error information to apple later Mobile terminal.
16. a kind of device for realizing the multiplex roles equipment for apple mobile terminal, which is characterized in that including receiving module, hair Module, first judgment module, the second judgment module, third judgment module, the 4th judgment module, first is sent to report an error module, second Report an error module, the first generation module, the second generation module, third generation module, the first extraction module, the second extraction module, apple Fruit interface, SD card interface and intelligent card interface;
The apple interface, for carrying out data transmission between the multiplex roles equipment and the apple mobile terminal;
The SD card interface, for carrying out data transmission between the multiplex roles equipment and the SD card;
The intelligent card interface, for carrying out data transmission between the multiplex roles equipment and the smart card;
The receiving module, the authentication notification for being sent by apple mobile terminal described in the apple interface;
First generation module includes certification certificate for generating when the receiving module receives the authentication notification The certification request of data;
The sending module, for being sent by the apple interface to the apple mobile terminal when the receiving module Authentication notification when, send that first generation module generates by the apple interface includes described in certification certificate data Certification request is to the apple mobile terminal;
The receiving module is also used to through the apple interface from apple mobile terminal by authenticating response;
The sending module is also used to when the receiving module through the apple interface from the logical of apple mobile terminal When crossing certification response, identification request is sent to the apple mobile terminal by the apple interface;
The receiving module is also used to the identification response sent by apple interface apple mobile terminal;
The receiving module, the apple instruction for being also used to send by apple mobile terminal described in apple interface;
The first judgment module, for being sent by apple interface to the apple mobile terminal when the receiving module Apple instruction when, judge to parse the apple and instruct whether resulting apple data meet multi-interface data format;
Described first reports an error module, for determining that parsing the apple instructs resulting apple data when the first judgment module When not meeting multi-interface data format, report an error;
Second judgment module, for determining that parsing the apple instructs resulting apple data when the first judgment module When meeting multi-interface data format, the specified interface of the apple data is judged whether there is;
Described second reports an error module, for determining the specified interface that the apple data are not present when second judgment module When, it reports an error;
The third judgment module, for determining there are when the specified interface of the apple data when second judgment module, Judge the interface type of the specified interface;
First extraction module, for determining that the interface type of the specified interface connects for SD card when the third judgment module When mouth, SD card operational order is extracted from the apple data;
4th judgment module, the SD card operation for judging that first extraction module is extracted from apple data refer to Whether there is designated sector in order;
Second generation module, for determining there is designated sector in the SD card operational order when the 4th judgment module When, the first operational order is generated according to the designated sector in SD card operational order;
The sending module is also used to send the first operational order that second generation module generates by the SD card interface To SD card;
The receiving module is also used to receive the first reply data that the SD card returns by the SD card interface;
The sending module is also used to receive the first of the SD card return by the SD card interface when the receiving module When reply data, the first reply data is returned to apple mobile terminal by the apple interface;
The third generation module, for determining in the SD card operational order when the 4th judgment module without designated sector When, designated sector is distributed, the second operational order is generated according to the designated sector of distribution;
The sending module is also used to send the second operational order that the third generation module generates by the SD card interface To SD card;
The receiving module is also used to receive the second reply data that SD card returns by the SD card interface;
The sending module is also used to receive the second answer number that SD card returns by the SD card interface when the receiving module According to when, pass through apple interface and return to the second reply data to apple mobile terminal;
Second extraction module, for determining the interface type of the specified interface for smart card when the third judgment module When interface, the smart card operating instruction in apple data is extracted;
The sending module is also used to send the smart card that second extraction module extracts by the intelligent card interface Operational order is to smart card;
The receiving module is also used to receive the third reply data that smart card returns by the intelligent card interface;
The sending module is also used to answer when the receiving module by the third that the intelligent card interface receives smart card return Answer according to when, pass through the apple interface and return to third reply data to apple mobile terminal.
17. device as claimed in claim 16, which is characterized in that further include obtaining module and the 4th generation module;
First generation module, including receiving unit, transmission unit, the first generation unit, the second generation unit and third are raw At unit;
The sending module is also used to send the authentication notification to the receiving unit;
The receiving unit, the authentication notification sent for receiving the sending module;
First generation unit includes certification certificate number for generating when the receiving unit receives the authentication notification According to the first certification request;
The transmission unit includes certification certificate data for send the first generation unit generation to the receiving module First certification request;
The receiving module is also used to receive first certification request that the transmission unit is sent;
The sending module is also used to send first certification request to apple mobile terminal by apple interface;
The receiving module is also used to first by the apple interface from apple mobile terminal and authenticates response;
The acquisition module, for passing through the apple interface to the institute from apple mobile terminal when the receiving module When stating the first certification response, challenging value is obtained from the first certification response;
The sending module is also used to send the challenging value that the acquisition module obtains to the receiving unit;
The receiving unit is also used to receive the challenging value that the sending module is sent;
Second generation unit, for being generated according to the challenging value when the receiving unit receives the challenging value Signature result;
The transmission unit is also used to send the signature result that second generation unit generates to the receiving module;
The receiving module is also used to receive the signature result that the transmission unit is sent;
The third generation unit includes signature result for being generated according to the received signature result of the receiving module Second certification request;
The transmission unit, be also used to send the third generation unit generation to the receiving module includes signature result Second certification request;
The receiving module is also used to receive second certification request that the transmission unit is sent;
The sending module is also used to send the received institute of receiving unit to apple mobile terminal by the apple interface State the second certification request;
The receiving module, be also used to send by the apple mobile terminal to be received such as the apple interface is answered by certification It answers.
18. device as claimed in claim 16, which is characterized in that further include the 5th judgment module and third reports an error module;
5th judgment module, for passing through the apple interface to the apple mobile terminal when the receiving module When the identification response of transmission, judge whether the identification response received is by identifying response;
The third reports an error module, for determining that the receiving module is arrived by apple interface when the 5th judgment module The identification response be not by identification response when, report an error;
The first judgment module is also used to determine that the receiving module passes through apple interface when the 5th judgment module The identification response arrived is by when identification response and when the receiving module is moved by apple interface to the apple When the apple instruction that dynamic terminal is sent, judge that parsing the apple instructs whether resulting apple data meet multi-interface data lattice Formula.
19. device as claimed in claim 16, which is characterized in that further include read module;
The read module, for being sent by the apple interface to the apple mobile terminal when the receiving module Apple instruction when, read equipment interface list information;
The sending module is also used to return to the institute that the read module is read to apple mobile terminal by the apple interface State equipment interface list information.
20. device as claimed in claim 19, which is characterized in that the equipment interface list letter that the read module is read Breath includes two interfaces of multiplex roles equipment and the protocol type of corresponding support;
The sending module is also used to return to the multiplex roles that the read module is read to apple mobile terminal by apple interface Two interfaces of equipment and the protocol type of corresponding support.
21. device as claimed in claim 16, which is characterized in that the first judgment module is specifically used for working as the reception When module receives the apple instruction that the apple mobile terminal is sent, judge that parsing the apple instructs resulting apple data It whether include instruction and length.
22. device as claimed in claim 16, which is characterized in that further include that the 6th judgment module and the 4th report an error module;
6th judgment module, for determining that the parsing apple instructs resulting apple when the first judgment module When data fit multi-interface data format, the protocol type of apple data is obtained, judges that the protocol type whether there is;
Second judgment module is specifically used in the presence of the 6th judgment module judges the protocol type, and judgement is It is no that there are the specified interfaces of the apple data;
Described 4th reports an error module, for reporting an error in the absence of the 6th judgment module judges the protocol type.
23. device as claimed in claim 16, which is characterized in that further include that the 7th judgment module and the 5th report an error module;
7th judgment module, for sentencing after first extraction module extracts SD card operational order from apple data It whether include read-write operation type in disconnected SD card operational order;
4th judgment module is specifically used for determining to include read-write operation in SD card operational order when the 7th judgment module When type, judge whether there is designated sector in SD card operational order;
Described 5th reports an error module, for determining not include read-write operation class in SD card operational order when the 7th judgment module When type, report an error.
24. device as claimed in claim 16, which is characterized in that further include the 8th judgment module;
8th judgment module, for sentencing after first extraction module extracts SD card operational order from apple data Read-write operation type in disconnected SD card operational order;
Second generation module, specifically for judging that the read-write in SD card operational order is grasped when the 8th judgment module Making type is when having designated sector in read operation and the 4th judgment module judgement SD card operational order, to be grasped according to SD card Read operation type in the designated sector and SD card operational order instructed generates first operand evidence;
The sending module, specifically for sending the first operand of the second generation module generation by SD card interface according to extremely SD card;
The receiving module is also used to receive the 4th reply data that SD card returns by the SD card interface;
The sending module is also used to receive the 4th answer number that SD card returns by the SD card interface when the receiving module According to when, pass through the apple interface and return to the 4th reply data to apple mobile terminal;
Second generation module, specifically for judging that the read-write in SD card operational order is grasped when the 8th judgment module Making type is when having designated sector in write operation and the 4th judgment module judgement SD card operational order, to be grasped according to SD card Designated sector, the write operation type in SD card operational order and the first transmission data instructed generate second operand evidence;
The sending module, specifically for sending the second operand that second generation module generates by the SD card interface According to SD card;
The receiving module is also used to receive the 5th reply data that SD card returns by the SD card interface;
The sending module is also used to receive the 5th answer number that SD card returns by the SD card interface when the receiving module According to when, pass through the apple interface and return to the 5th reply data to apple mobile terminal;
Second generation module, specifically for judging that the read-write in SD card operational order is grasped when the 8th judgment module Making type is when not having designated sector in read operation and the 4th judgment module judgement SD card operational order, and distribution is specified Sector generates third operation data according to the read operation type in the designated sector of distribution and SD card operational order;
The sending module, specifically for sending the third operand that second generation module generates by the SD card interface According to SD card;
The receiving module is also used to receive the 6th reply data that SD card returns by the SD card interface;
The sending module is also used to receive the 6th answer number that SD card returns by the SD card interface when the receiving module According to when, pass through the apple interface and return to the 6th reply data to apple mobile terminal;
Second generation module, specifically for judging that the read-write in SD card operational order is grasped when the 8th judgment module Making type is when not having designated sector in write operation and the 4th judgment module judgement SD card operational order, and distribution is specified Sector, according to the 4th operation of write operation type and the second transmission data generation in the designated sector of distribution, SD card operational order Data;
The sending module, specifically for sending the 4th operation data of the second generation module generation by SD card interface extremely SD card;
The receiving module is also used to receive the 7th reply data that SD card returns by the SD card interface;
The sending module is also used to receive the 7th answer number that SD card returns by the SD card interface when the receiving module According to when, pass through apple interface and return to the 7th reply data to apple mobile terminal.
25. device as claimed in claim 16, which is characterized in that second extraction module is specifically used for extracting apple number APDU instruction or TPDU instruction in;
The sending module is instructed specifically for sending the APDU that second extraction module extracts by intelligent card interface Or TPDU is instructed to smart card.
26. device as claimed in claim 16, which is characterized in that at least further include a digital audio interface and/or video The interface of interface and/or human input devices, the human input devices include mouse, keyboard and rocking bar;It further include the 9th sentencing Disconnected module checks interface attributes operation module, opens equipment interface operation module, pass hull closure interface operational module, transmitting-receiving behaviour Make module, single reception operation module and single-shot and send operation module;
9th judgment module, for determining there are when the specified interface of the apple data when second judgment module, Judge the class of operation of apple data;
It is described to check interface attributes operation module, for determining that the class of operation of apple data is to look into when the 9th judgment module When seeing interface attributes operation, the essential attribute information of the specified interface is read;
The sending module is also used to by checking that interface attributes operation module is read basic described in apple interface return Information is to apple mobile terminal;
The opening equipment interface operation module, for determining that the class of operation of apple data is to beat when the 9th judgment module It when opening up standby interface operation, is powered on to the specified interface, generates and open equipment interface successful information;
The sending module is also used to return the opening equipment that the opening equipment interface operation module generates by apple interface Interface successful information is to apple mobile terminal;
The pass hull closure interface operational module is closed for determining the class of operation of apple data when the 9th judgment module When hull closure interface operation, to electricity under the specified interface, pass hull closure interface successful information is generated;
The sending module is also used to return the pass hull closure interface successful information that the pass hull closure interface operational module generates To apple mobile terminal;
The transmitting-receiving operation module, for determining the class of operation of apple data for transmitting-receiving operation when the 9th judgment module When, the third operational order that is extracted from apple data;
The sending module is also used to send the third operational order that extracts from apple data of transmitting-receiving operation module to apple The connection equipment of the specified interface of fruit data;
The receiving module is also used to receive the 8th reply data of the connection equipment of the specified interface;
The sending module is also used to receive the 8th answer number of the connection equipment of the specified interface when the receiving module According to when, pass through the apple interface and return to the 8th reply data to apple mobile terminal;
Single reception operation module, for determining that the class of operation of apple data is grasped for single receive when the 9th judgment module When making, the acquisition data of the specified interface are obtained;
The receiving module is also used to receive the 9th reply data of specified interface;
The sending module is also used to when the receiving module receives nine reply data of specified interface, by described Apple interface returns to the 9th reply data to apple mobile terminal;
The sending module is also used to determine that the class of operation of apple data send operation for single-shot when the 9th judgment module When, the external equipment of transmission based data output to the specified interface;
The single-shot send operation module, is also used to when the sending module based data output end of transmission, generates the tenth answer number According to;
It is mobile to apple to be also used to return the tenth reply data that the single-shot send operation module to generate for the sending module Terminal.
27. device as claimed in claim 26, which is characterized in that further include the tenth judgment module, the 11st judgment module and 12nd judgment module;
Tenth judgment module, for determining there are when the specified interface of the apple data when second judgment module, Judge the functional category of apple data;
11st judgment module, for determining that the functional category of apple data is equipment operation when the tenth judgment module When class, the equipment operation classification of apple data is judged;
It is described to check interface attributes operation module, it is also used to determine the equipment operation of apple data when the 11st judgment module Classification is when checking interface attributes operation, to read the essential attribute information of the specified interface;
The opening equipment interface operation module is also used to determine the equipment operation of apple data when the 11st judgment module Classification is when opening equipment interface operation, to power on to the specified interface, generate and open equipment interface successful information;
The pass hull closure interface operational module is also used to determine the equipment operation of apple data when the 11st judgment module When classification is pass hull closure interface operation, to electricity under the specified interface, pass hull closure interface successful information is generated;
12nd judgment module, for determining the functional category of apple data for transmission operation when the tenth judgment module When class, the transmission class of operation of apple data is judged;
The transmitting-receiving operation module is also used to determine the transmission class of operation of apple data for receipts when the 12nd judgment module When hair operation, the third operational order that is extracted from apple data;
The sending module is also used to determine that the transmission class of operation of apple data is single reception when the 12nd judgment module When operation, the acquisition data of the specified interface are obtained;
The single-shot send operation module, and the transmission class of operation for being also used to work as the 12nd judgment module judgement apple data is When single-shot send operation, the external equipment of transmission based data output to the specified interface.
28. the device as described in claim 26 or 27, which is characterized in that when the specified interface of apple data is that the SD card connects When mouth, the essential attribute information for checking that interface attributes operation module reads the specified interface includes transmission rate, card slot Capacity, SD card size and SD card classification.
29. the device as described in claim 26 or 27, which is characterized in that when the specified interface of apple data connects for digital audio When mouth, the essential attribute information for checking that interface attributes operation module reads the specified interface includes transmission rate, bit Rate, signal-to-noise ratio and data format.
30. device as claimed in claim 16, which is characterized in that the sending module is also used to report an error module when described first After reporting an error, error information is returned to apple mobile terminal by apple interface;It is also used to report an error when described second module that reports an error Later, error information is returned to apple mobile terminal by apple interface.
CN201711473413.1A 2017-12-29 2017-12-29 A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal Active CN108108317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711473413.1A CN108108317B (en) 2017-12-29 2017-12-29 A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711473413.1A CN108108317B (en) 2017-12-29 2017-12-29 A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal

Publications (2)

Publication Number Publication Date
CN108108317A CN108108317A (en) 2018-06-01
CN108108317B true CN108108317B (en) 2019-11-15

Family

ID=62214626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711473413.1A Active CN108108317B (en) 2017-12-29 2017-12-29 A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal

Country Status (1)

Country Link
CN (1) CN108108317B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112100103B (en) * 2020-11-19 2021-03-16 飞天诚信科技股份有限公司 Communication method and system based on apple operating system
CN112235421B (en) * 2020-12-10 2021-03-16 飞天诚信科技股份有限公司 Method and system for communicating apple mobile device with apple peripheral

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872334A (en) * 2010-05-26 2010-10-27 北京飞天诚信科技有限公司 Compound type usb equipment and implementation method thereof
CN104268605A (en) * 2014-08-21 2015-01-07 飞天诚信科技股份有限公司 Card reader operating intelligent SD cards and ordinary SD cards and working method thereof
CN104965570A (en) * 2014-10-06 2015-10-07 周余 OTG (on-the-go) multifunctional protective shell sleeve for smart phone and tablet personal computer
CN105933428A (en) * 2016-05-27 2016-09-07 飞天诚信科技股份有限公司 Method and device for communicating with apple terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090069049A1 (en) * 2007-09-12 2009-03-12 Devicefidelity, Inc. Interfacing transaction cards with host devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872334A (en) * 2010-05-26 2010-10-27 北京飞天诚信科技有限公司 Compound type usb equipment and implementation method thereof
CN104268605A (en) * 2014-08-21 2015-01-07 飞天诚信科技股份有限公司 Card reader operating intelligent SD cards and ordinary SD cards and working method thereof
CN104965570A (en) * 2014-10-06 2015-10-07 周余 OTG (on-the-go) multifunctional protective shell sleeve for smart phone and tablet personal computer
CN105933428A (en) * 2016-05-27 2016-09-07 飞天诚信科技股份有限公司 Method and device for communicating with apple terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"多接口数据采集终端的设计与实现";耿青凯;《中国优秀硕士学位论文全文数据库信息科技辑》;20130115(第2013年1期);全文 *

Also Published As

Publication number Publication date
CN108108317A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN204719837U (en) A kind of visible dialogue system with face recognition module
CN108108317B (en) A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal
CN102063400B (en) Switching device for general serial bus equipment
CN103220210A (en) Method, client and system for collecting instant communication message
CN103401771A (en) Network isolation method and network isolation system
CN103051361A (en) Near field communication system and mobile terminal and connection method thereof
CN104821882A (en) Network security verification method based on voice biometric features
CN109003377A (en) Access control system and control method with 3D face identification functions
CN205788363U (en) A kind of multiple authentication Gate-ban Monitoring System of Home House
CN205304834U (en) Interactive refrigerator
CN102646175A (en) Safety certificating equipment and method based on audio signal communication
CN104010060B (en) The method and electronic equipment of identification incoming call incoming call side's identity
CN207083085U (en) A kind of multi-standard data radio station system
CN201590910U (en) Mobile phone with personal identification function
CN103679425A (en) Method and system for logistics personnel to open smart express box
CN103379484A (en) Mobile terminal control method, device and mobile terminal
CN108810836A (en) A kind of method and system providing a user near-field communication equipment information
CN107820251A (en) The method, apparatus and system of a kind of network insertion
CN107851171A (en) Terminating machine with security function
CN109617984A (en) A kind of data storage cloud online management system
CN107562733A (en) A kind of instant message interpretation method and system and a kind of electronic equipment
CN109948328A (en) Key information generation, checking method, electronic device, equipment and storage medium
CN204515804U (en) Can connect and be convenient to the system of data transmission between a kind of equipment fast
CN107480087A (en) A kind of electronic equipment and control method
CN105808461B (en) A kind of USB composite system and method

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
GR01 Patent grant
GR01 Patent grant