CN108108317A - 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 PDFInfo
- Publication number
- CN108108317A CN108108317A CN201711473413.1A CN201711473413A CN108108317A CN 108108317 A CN108108317 A CN 108108317A CN 201711473413 A CN201711473413 A CN 201711473413A CN 108108317 A CN108108317 A CN 108108317A
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
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 data fit multi-interface data form of apple instruction gained, 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 then the designated sector in SD card operational order generates the first operational order, by SD card interface according to the first operational order and SD card into row data communication, otherwise designated sector is distributed, second operational order is generated according to the designated sector of distribution, by SD card interface according to the second operational order and SD card into row data communication;When the interface type of specified interface is intelligent card interface, the smart card operating instruction in multiplex roles equipment extraction apple data, by intelligent card interface and smart card into row data communication.
Description
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 technology
The existing multiplex roles equipment for apple mobile terminal, can be simultaneously while apple mobile terminal is connected
Support that (external interface refers in multiplex roles equipment multiple (be greater than or equal to 2) external interfaces, except being connect with what apple mobile terminal connected
Other interfaces outside mouthful), but these external interfaces can only support same protocol, such as identical SD card can only be supported to assist
View by supporting to be communicated between the external interface of same protocol and apple mobile terminal, causes 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 species 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 and apple mobile terminal held, 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 and apple mobile terminal, then smart card reader is made to be moved with apple
Dynamic terminal connection is made by smart card reader into row data communication between smart card and apple mobile terminal, this just gives user
Great inconvenience is caused, seriously reduces user experience.
The content 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 method 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
Equipment sends the certification request including certification certificate data of generation to apple mobile terminal;
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, performs step
Rapid S3;
Step S3:It is described more when the multiplex roles equipment receives the apple instruction that the apple mobile terminal is sent
Whether the apple data that interface equipment judges to parse the apple instruction gained meet multi-interface data form, are to perform step
Otherwise S4 reports an error;
Step S4:The multiplex roles equipment judges whether the specified interface of the apple data, is to perform step
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 performed, when the interface type of the specified interface is intelligent card interface, performs step
S9;
Step S6:The multiplex roles equipment judges that the SD card operation refers to from apple extracting data SD card operational order
Whether there is designated sector in order, be, perform step S7, otherwise perform step S8;
Step S7:Designated sector of the multiplex roles equipment in SD card operational order generates the first operational order, hair
The first operational order of generation is sent, when receiving the first reply data of SD card return, to return to first answer number to SD card
According to apple mobile terminal;
Step S8:The multiplex roles equipment distributes designated sector, and the second operational order is generated according to the designated sector of distribution,
The second operational order of generation is sent to SD card, when receiving the second reply data of SD card return, returns to the second reply data
To apple mobile terminal;
Step S9:Smart card operating instruction in the multiplex roles equipment extraction apple data sends the smart card behaviour
It instructs to smart card, when receiving three reply data of smart card return, returns to the 3rd reply data to apple and move
Dynamic terminal.
Invention further provides a kind of device for realizing the multiplex roles equipment for apple mobile terminal, including receiving mould
Block, sending module, the first judgment module, the second judgment module, the 3rd judgment module, the 4th judgment module, first report an error module,
Second report an error module, the first generation module, the second generation module, the 3rd generation module, the first extraction module, second extraction 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, for the authentication notification sent by apple mobile terminal described in the apple interface;
First generation module, for when the receiving module receives the authentication notification, generation to include certification
The certification request of certificate data;
The sending module passes through the apple interface to the apple mobile terminal for working as the receiving module
During the authentication notification of transmission, include certification certificate data by what the apple interface sent that first generation module generates
The certification request is to the apple mobile terminal;
The receiving module, being additionally operable to should by certification from apple mobile terminal by the apple interface
It answers;
The sending module is additionally operable to come from apple mobile terminal by the apple interface when the receiving module
By certification response when, pass through the apple interface and send identification request to the apple mobile terminal;
The receiving module is additionally operable to the identification response sent by apple interface apple mobile terminal;
The receiving module, the apple for being additionally operable to send by apple mobile terminal described in apple interface instruct;
First judgment module passes through apple interface to the apple mobile terminal for working as the receiving module
During the apple instruction of transmission, whether the apple data for judging to parse the apple instruction gained meet multi-interface data form;
Described first reports an error module, for working as the apple that first judgment module judges to parse the apple instruction gained
When data do not meet multi-interface data form, report an error;
Second judgment module judges to parse the apple obtained by the apple instruction for working as first judgment module
During data fit multi-interface data form, the specified interface of the apple data is judged whether;
Described second reports an error module, and judging that there is no the specified of apple data for working as second judgment module to connect
During mouth, report an error;
3rd judgment module, for working as specified interface of the second judgment module judgement there are the apple data
When, judge the interface type of the specified interface;
First extraction module, the interface type that the specified interface is judged for working as the 3rd judgment module is SD
During card interface, from the apple extracting data SD card operational order;
4th judgment module, for judging that first extraction module is grasped from the SD card of apple extracting data
Whether there is designated sector in instructing;
Second generation module judges there is specified fan in the SD card operational order for working as the 4th judgment module
Qu Shi, the designated sector in SD card operational order generate the first operational order;
The sending module is additionally operable to the first operation for sending second generation module by the SD card interface and generating
It instructs to SD card;
The receiving module is additionally operable to the first reply data for receiving the SD card by the SD card interface and returning;
The sending module is additionally operable to receive what the SD card returned by the SD card interface when the receiving module
During the first reply data, the first reply data is returned to apple mobile terminal by the apple interface;
3rd generation module is judged in the SD card operational order for working as the 4th judgment module without specified fan
Qu Shi distributes designated sector, and the second operational order is generated according to the designated sector of distribution;
The sending module is additionally operable to the second operation for sending the 3rd generation module by the SD card interface and generating
It instructs to SD card;
The receiving module is additionally operable to the second reply data for receiving SD card by the SD card interface and returning;
The sending module, be additionally operable to receive SD card return by the SD card interface when the receiving module second answer
Answer according to when, pass through apple interface and return to the second reply data to apple mobile terminal;
Second extraction module, the interface type that the specified interface is judged for working as the 3rd judgment module is intelligence
During energy card interface, the smart card operating instruction in apple data is extracted;
The sending module is additionally operable to the intelligence for sending second extraction module by the intelligent card interface and extracting
Can card operational order to smart card;
The receiving module is additionally operable to the 3rd reply data for receiving smart card by the intelligent card interface and returning;
The sending module, be additionally operable to when the receiving module receive that smart card returns by the intelligent card interface the
During three reply datas, the 3rd reply data is returned to apple mobile terminal by the apple interface.
Compared with prior art, the present invention it has the following advantages: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 connected with apple mobile terminal carry out function switch and
The operations such as transmission realize that apple mobile terminal is carried out at the same time connection communication with SD card and smart card, make apple mobile terminal simultaneously
It is connected and is more convenient with SD card and smart card, improve user experience.
Description of the drawings
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
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without making creative work
Example, belongs to the scope of protection of the 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 standby SD card interface and an intelligent card interface for supporting smart card protocol for including at least a support SD card agreement, 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
During card interface, the transmitting-receiving operation of smart card is carried out;As shown in Figure 1, including:
Step 101:When multiplex roles equipment receives the authentication notification of apple mobile terminal transmission, multiplex roles equipment is sent
Certification request including certification certificate data is to apple mobile terminal;
Specifically, step 101 specifically, when multiplex roles equipment receive apple mobile terminal transmission authentication notification when,
The transmission of multiplex roles equipment includes the first certification request of certification certificate data to apple mobile terminal, is moved when receiving from apple
During the first certification response of terminal, multiplex roles equipment obtains challenging value from the first certification response, is given birth to according to the challenging value of acquisition
Into signature as a result, sending the second certification request for including signature result to apple mobile terminal, wait to be received by certification 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, performs step 103;
Further, further included after step 102 and before step 103:The identification that the judgement of multiplex roles equipment receives should
Whether answer is by identifying response, being, perform step 103, otherwise report an error;
Step 103:When multiplex roles equipment receives the apple instruction of apple mobile terminal transmission, multiplex roles equipment judges
Whether the apple data of parsing apple instruction gained meet multi-interface data form, are to perform step 104, otherwise multiplex roles are set
It is standby to report an error;
Further, it is more when the apple instruction of apple mobile terminal transmission is received such as multiplex roles equipment in step 103
Before interface equipment judges whether the apple data for parsing apple instruction gained meet multi-interface data form, further include:It connects 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 whether the apple data for parsing apple instruction gained meet
Interface data format, specially:Multiplex roles equipment judges whether the apple data of parsing apple instruction gained include instruction and length
Degree;
Step 104:Multiplex roles equipment judges whether the specified interface of apple data, is, performs step 105, otherwise
Multiplex roles equipment reports an error;
Further, in the step 104 of the present embodiment, after multiplex roles equipment judges the specified interface there are apple data
It further includes: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 performed;When the class of operation of apple data is opens equipment interface operation, step B2 is performed;When apple number
According to class of operation be pass hull closure interface operation when, perform step B3;When the class of operation of apple data operates for transmitting-receiving,
Perform step B4;When the class of operation of apple data operates for single reception, step B5 is performed;When the class of operation of apple data
When sending operation for single-shot, step B6 is performed;
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, and equipment interface successful information is opened in generation, 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 from the 3rd operational order to the specified of apple data of apple extracting data and connects
The connection equipment of mouth, when multiplex roles equipment receives eight reply data of connection equipment of specified interface, returning to the 8th should
Answer is according to apple mobile terminal;
Step B5:Multiplex roles equipment obtains the gathered 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 based data output to the external equipment of 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 multiplex roles equipment judges the specified interface there are apple data
After 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 performed, when the functional category of apple data operates class for transmission, performs 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 performed;When the equipment operation classification in apple data is grasped to open equipment interface
When making, step B2 is performed;When the equipment operation classification in apple data is pass hull closure interface operation, step B3 is performed;
Step A2:Multiplex roles equipment judges the transmission class of operation of apple data, when the transmission class of operation of apple data
When being operated for transmitting-receiving, step B4 is performed;When the transmission class of operation of apple data operates for single reception, step B5 is performed;When
When the transmission class of operation of apple data send operation for single-shot, step B6 is performed;
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
During mouth, step 106 is performed, when the interface type of specified interface is intelligent card interface, performs step 109;
Step 106:Multiplex roles equipment from apple extracting data SD card operational order, judge in SD card operational order whether
There is designated sector, be, perform step 107, otherwise perform step 108;
Further, in step 106, multiplex roles equipment judges SD after apple extracting data SD card operational order
Before whether having designated sector in card operational order, further include:Multiplex roles equipment judges whether include reading in SD card operational order
Write operation type is to perform to judge whether there is designated sector in SD card operational order, otherwise reports an error;
Step 107:Designated sector of the multiplex roles equipment in SD card operational order generates the first operational order, sends life
Into 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, and the second operational order, hair are generated according to the designated sector of distribution
The second operational order of generation is sent, when receiving the second reply data of SD card return, to return to the second reply data extremely to SD card
Apple mobile terminal;
Further, the method in the present embodiment, in step 106, multiplex roles equipment is grasped from apple extracting data SD card
After instructing, further include:Judge the read-write operation type in SD card operational order;
Step 107 is specially:
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 generation first operand evidence, send first operand according to SD
Card when receiving four reply data of SD card return, returns to the 4th reply data to apple mobile terminal;
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 generation second operand evidence, send second
Operation data, when receiving five reply data of SD card return, returns to the 5th reply data to apple mobile terminal to SD card;
Step 108 is specially:
When the read-write operation type in SD card operational order is read operation, multiplex roles equipment distribution designated sector, according to
Read operation type in the designated sector and SD card operational order of distribution generates the 3rd operation data, sends the 3rd operation of generation
Data, when receiving six reply data of SD card return, return to the 6th reply data to apple mobile terminal to SD card;
When the read-write operation type in SD card operational order is write operation, multiplex roles equipment distribution 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
4th operation data of generation, when receiving seven reply data of SD card return, returns to the 7th reply data to apple to SD card
Fruit mobile terminal;
Step 109:Smart card operating instruction in multiplex roles equipment extraction apple data, sends smart card operating instruction extremely
Smart card when receiving three reply data of smart card return, returns to the 3rd reply data to apple mobile terminal.
Further, in the step 109 of the present embodiment, the smart card operation in multiplex roles equipment extraction apple data refers to
Order sends smart card operating instruction to smart card, is specially:Multiplex roles equipment extraction apple data in APDU instruction or
TPDU is instructed, and sends APDU instructions or TPDU is instructed to smart card;
Further, the method for the present embodiment further includes after reporting an error, and returns to error information to apple mobile terminal.
Compared with prior art, the present invention it has the following advantages: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 connected with apple mobile terminal carry out function switch and
The operations such as transmission realize that apple mobile terminal is carried out at the same time connection communication with SD card and smart card, make apple mobile terminal simultaneously
It is connected and is more convenient with SD card and smart card, improve user experience.
Embodiment two
The embodiment of the present invention two provides a kind of method for realizing the multiplex roles equipment for apple mobile terminal, and multiplex roles are set
The standby SD card interface and an intelligent card interface for supporting smart card protocol for including a support SD card agreement, identifies according to certification
Certification apple instructs, and specified interface is parsed from apple data, when specified interface is SD card interface, carries out the transmitting-receiving of SD card
Operation when specified interface is intelligent card interface, carries out the transmitting-receiving operation of smart card;As shown in Fig. 2, including:
Step 201:When multiplex roles equipment receives the authentication notification of apple mobile terminal transmission, multiplex roles equipment is sent
Certification request including certification certificate data is to apple mobile terminal;
Step 202:When receive from apple mobile terminal by certification response when, multiplex roles equipment send identification please
Ask to apple mobile terminal, judge whether to receive the transmission of apple mobile terminal by identifying response, be to perform step
203, otherwise perform step 206;
Step 203:When receiving the apple instruction of apple mobile terminal transmission, multiplex roles equipment judges that parsing apple refers to
Whether the apple data of order gained meet multi-interface data form, are to perform step 204, otherwise perform step 206;
Specifically, when receiving the apple instruction of apple mobile terminal transmission, multiplex roles equipment judges that parsing apple refers to
Whether include instruction and length, be to perform step 203, otherwise perform step 206 if making the apple data of gained;
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, perform step 205, otherwise perform step 206;
Step 205:Multiplex roles equipment judges that the specified interface of apple data whether there is, and is to perform step 207, otherwise
Perform step 206;
Specifically, multiplex roles equipment is judged in interface attributes list with the presence or absence of corresponding with the specified interface of apple data
Mark, be to perform step 207, otherwise perform step 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 performed, when the interface type of the specified interface of apple data is intelligence clamping
During mouth, step 213 is performed;
Step 208:Multiplex roles equipment judges the reading in SD card operational order from apple extracting data 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, perform 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 performed;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, perform 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, perform step 212;
Step 209:Designated sector and read operation type generation first behaviour of the multiplex roles equipment in SD card operational order
Make data to SD card, when receiving the first reply data of SD card return, return to the first reply data to apple mobile terminal;
Step 210:Designated sector, write operation type and first transmission number of the multiplex roles equipment in SD card operational order
According to generation second operand evidence, second operand is sent according to SD card, when receiving the second reply data of SD card return, is returned
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 the 3rd operation data, the 3rd operation data of generation is sent to SD card, when the 3rd response for receiving SD card return
During data, the 3rd reply data is returned to apple mobile terminal;
Step 212:Multiplex roles equipment distributes designated sector, and behaviour is write according in the designated sector of distribution, SD card operational order
Make type and the second transmission data generate the 4th operation data to SD card, when receiving four reply data of SD card return, return
The 4th reply data is returned to apple mobile terminal;
Step 213:Multiplex roles equipment extraction 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 more than 2;The interface quantity of multiplex roles equipment refers to connect more
Jaws equipment connects the summation of the total interface quantity outside apple mobile terminal interface;The external interface of multiplex roles equipment is at least supported
Two kinds of agreements, external interface protocol class are specially:Digital audio protocol (such as I2S agreements), 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, each support is identical
The quantity of protocol interface is the positive integer more than or equal to 2;But multiplex roles equipment at least supports two at least there are two interface
Kind agreement;
At this point, in step 205, in the presence of multiplex roles equipment judges the specified interface of apple data, multiplex roles equipment is sentenced
The class of operation of disconnected apple data when the class of operation of apple data is checks the operation of interface list information, performs step B1;
When the class of operation of apple data is opens equipment interface operation, step B2 is performed;When the class of operation of apple data is pass
During hull closure interface operation, step B3 is performed;When the class of operation of apple data operates for transmitting-receiving, step B4 is performed;Work as apple
When the class of operation of fruit data operates for single reception, step B5 is performed;When the class of operation of apple data send operation for single-shot,
Perform 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 assisted for SD card
During 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 assisted for digital audio
During view, essential attribute information includes:Transmission rate, bit rate, signal-to-noise ratio and data format etc.;
Step B2:The bottom hardware configuration of multiplex roles equipment initialization 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
Apple data specified interface number corresponding interface peripheral hardware power supply GPIO is drawn in the bottom hardware configuration of interface index corresponding interface
Height, apple data specified interface number corresponding interface power on, and the opening of generation 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, the response content that multiplex roles equipment opens equipment interface successful information is:0x9000;
Step B3:Multiplex roles equipment closes apple data specified interface number corresponding interface, and disability apple data, which are specified, to be connect
Mouth number corresponding interface bottom hardware configures, and electricity under apple data specified interface number corresponding interface, generation apple data are specified
The pass hull closure interface successful information of interface index corresponding interface returns to pass hull closure interface successful information to apple and moves eventually
End;
Step B4:The first operational order in multiplex roles equipment extraction 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 of equipment is connect, is, reply data is returned to apple mobile terminal, otherwise continues to execute step B4;
Step B5:Multiplex roles equipment obtains the gathered 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 gathered data of apple data specified interface number corresponding interface, judges whether
The reply data of apple data specified interface number corresponding interface is received, is to transmit based data output and specify to apple data to connect
Mouthful number corresponding interface, when judge based data output whether end of transmission when, generation reply data;
In the present embodiment, further included after the specified interface that multiplex roles equipment is judged there are apple data:Multiplex roles equipment
Judge the functional category of apple data, when the functional category of apple data is equipment operation class, step A1 is performed, when apple number
According to functional category for transmission operation class when, perform 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 performed;When the equipment operation classification in apple data is grasped to open equipment interface
When making, step B2 is performed;When the equipment operation classification in apple data is pass hull closure interface operation, step B3 is performed;
Step A2:Multiplex roles equipment judges the transmission class of operation of apple data, when the transmission class of operation of apple data
When being operated for transmitting-receiving, step B4 is performed;When the transmission class of operation of apple data operates for single reception, step B5 is performed;When
When the transmission class of operation of apple data send operation for single-shot, step B6 is performed.
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 cards are a kind of memory devices of new generation based on semiconductor fast-flash memory device, due to it
It is small, 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 it has the following advantages: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 connected with apple mobile terminal carry out function switch and
The operations such as transmission realize that apple mobile terminal is carried out at the same time connection communication with SD card and smart card, make apple mobile terminal simultaneously
It is connected 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
It is standby to include at least a digital audio interface and/or the interface of video interface and/or human input devices, human input devices bag
Mouse, keyboard and rocking bar are included, as shown in figure 3, including:
Step 301:When multiplex roles equipment receives the authentication notification of apple mobile terminal transmission, multiplex roles equipment is sent
Certification request including certification certificate data is to apple mobile terminal;
Step 302:When multiplex roles equipment receive from apple mobile terminal by certification response when, multiplex roles equipment
Identification request is sent to apple mobile terminal, receive that apple mobile terminal sends by identifying 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, judges whether apple data meet multiplex roles instruction word format, is, perform step 304, it is no
Then perform step 305;
Specifically, when multiplex roles equipment receives the apple instruction of apple mobile terminal transmission, multiplex roles equipment judges
Whether include instruction and length, be to perform step 304, otherwise perform step 305 if parsing the apple data of apple instruction gained;
Step 304:Multiplex roles equipment judges that the specified protocol of apple data whether there is, and is to perform step 306, otherwise
Perform step 305;
Specifically, multiplex roles equipment is judged in interface attributes list with the presence or absence of identical with the specified protocol of apple data
Agreement is to perform step 306, otherwise performs step 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:Whether include in the specified protocol corresponding interface number for the apple data that the judgement of multiplex roles equipment is checked
The specified interface number of apple data, is to perform step 308, otherwise performs step 305;
Step 308:Multiplex roles equipment judges the class of operation of apple data, when the class of operation of apple data connects to check
During mouth list information operation, step 309 is performed;When the class of operation of apple data is opens equipment interface operation, step is performed
Rapid 310;When the class of operation of apple data is pass hull closure interface operation, step 312 is performed;When the operation class of apple data
When Wei not receive and dispatch operation, step 316 is performed;When the class of operation of apple data operates for single reception, step 320 is performed;When
When the class of operation of apple data send operation for single-shot, step 322 is performed;
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 assisted for SD card
During 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 assisted for digital audio
During view, essential attribute information includes:Transmission rate, bit rate, signal-to-noise ratio and data format etc.;
Step 310:The bottom hardware configuration of multiplex roles equipment initialization 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 configuration of interface index corresponding interface;
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:The opening equipment interface success of multiplex roles equipment generation apple data specified interface number corresponding interface
Information returns and opens equipment interface successful information to apple mobile terminal;
For example, the response content for opening equipment interface successful information is:0x9000;
Step 313:Multiplex roles equipment closes apple data specified interface number corresponding interface, and disability apple data, which are specified, to be connect
The bottom hardware configuration of mouth number corresponding interface;
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:The pass hull closure interface success of multiplex roles equipment generation apple data specified interface number corresponding interface
Information returns to pass hull closure interface successful information to apple mobile terminal;
Step 316:The first operational order in multiplex roles equipment extraction 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 perform step 319, otherwise continue to judge;
Step 319:Multiplex roles equipment returns to reply data to apple mobile terminal;
Step 320:Multiplex roles equipment obtains the gathered data of 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 perform step 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 perform step 324, otherwise continue to sentence
It is disconnected;
Step 324:Multiplex roles equipment generates reply data, performs step 319.
In the present embodiment, the specified protocol corresponding interface number for the apple data that the judgement of multiplex roles equipment is checked includes apple
During the specified interface number of fruit data, further include:Multiplex roles equipment judges the functional category of apple data, when the work(of apple data
When energy classification is equipment operation class, step A1 is performed, when the functional category of apple data operates class for transmission, performs 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 performed;When the equipment operation classification in apple data is grasped to open equipment interface
When making, step 310 is performed;When the equipment operation classification in apple data is pass hull closure interface operation, step 313 is performed;
Step A2:Multiplex roles equipment judges the transmission class of operation of apple data, when the transmission class of operation of apple data
When being operated for transmitting-receiving, step 316 is performed;When the transmission class of operation of apple data operates for single reception, step 320 is performed;
When the transmission class of operation of apple data send operation for single-shot, step 323 is performed.
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, performs step 306 and arrives step 324;
Compared with prior art, the present invention it has the following advantages: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 connected with apple mobile terminal carry out function switch and
The operations such as transmission realize that apple mobile terminal is carried out at the same time connection communication with SD card and smart card, make apple mobile terminal simultaneously
It is connected 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 institutes
Show, including receiving module 401, sending module 402, the first judgment module 403, the second judgment module 404, the 3rd judgment module
405th, the 4th judgment module 406, first report an error module 407, second report an error module 408, the first generation module 409, second generation
Module 410, the 3rd 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 passing through the authentication notification that apple interface 414 receives apple mobile terminal and sends;
First generation module 409, for when receiving module 401 receives the authentication notification, generation to include authentication proof
The certification request of book data;
Sending module 402 receives what apple mobile terminal was sent for working as receiving module 401 by apple interface 414
During authentication notification, pass through the certification request that the first generation module 409 of transmission of apple interface 414 generates to apple mobile terminal;
Receiving module 401, is additionally operable to receive by apple interface 414 and passes through certification response from apple mobile terminal;
Sending module 402 is additionally operable to receive from apple mobile terminal by apple interface 414 when receiving module 401
During by certification response, identification request is sent to apple mobile terminal by apple interface 414;
Receiving module 401 is additionally operable to the identification response for receiving apple mobile terminal by apple interface 414 and sending;
Receiving module 401 is additionally operable to the apple instruction for receiving apple mobile terminal by apple interface 414 and sending;
First judgment module 403 receives apple mobile terminal hair for working as receiving module 401 by apple interface 414
During the apple instruction sent, whether the apple data for judging to parse apple instruction gained meet multi-interface data form;
First reports an error module 407, for judging the apple data of parsing apple instruction gained when the first judgment module 403 not
When meeting multi-interface data form, report an error;
Second judgment module 404, for judging the apple data symbols of parsing apple instruction gained when the first judgment module 403
When closing multi-interface data form, the specified interface of apple data is judged whether;
Second reports an error module 408, during for judging the specified interface there is no apple data when the second judgment module 404,
It reports an error;
3rd judgment module 405, for when the second judgment module 404 judge there are apple data specified interface when, sentence
The interface type of severed finger stationary interface;
First extraction module 412, the interface type for judging specified interface when the 3rd judgment module 405 is SD card interface
When, from apple extracting data SD card operational order;
4th judgment module 406, for judging SD card operational order of first extraction module 412 from apple extracting data
In whether have designated sector;
Second generation module 410, for when the 4th judgment module 406 judge SD card operational order in have designated sector when,
Designated sector in SD card operational order generates the first operational order;
Sending module 402, the first operation for being additionally operable to send the generation of the second generation module 410 by SD card interface 415 refer to
It makes to SD card;
Receiving module 401 is additionally operable to the first reply data for receiving SD card by SD card interface 415 and returning;
Sending module 402 is additionally operable to the first response returned when receiving module 401 by the reception SD card of SD card interface 415
During data, the first reply data is returned to apple mobile terminal by apple interface 414;
3rd generation module 411, for when the 4th judgment module 406 judge SD card operational order in without designated sector when,
Designated sector is distributed, the second operational order is generated according to the designated sector of distribution;
Sending module 402, the second operation for being additionally operable to send the generation of the 3rd generation module 411 by SD card interface 415 refer to
It makes to SD card;
Receiving module 401 is additionally operable to the second reply data for receiving SD card by SD card interface 415 and returning;
Sending module 402 is additionally operable to the second response returned when receiving module 401 by the reception SD card of SD card interface 415
During data, the second reply data is returned to apple mobile terminal by apple interface 414;
Second extraction module 413, the interface type for judging specified interface when the 3rd judgment module 405 is intelligent clamping
During mouth, the smart card operating instruction in apple data is extracted;
Sending module 402 is additionally operable to the smart card behaviour for sending the second extraction module 413 by intelligent card interface 416 and extracting
It instructs to smart card;
Receiving module 401 is additionally operable to the 3rd reply data for receiving smart card by intelligent card interface 416 and returning;
Sending module 402 is additionally operable to receive the 3rd of smart card return by intelligent card interface 416 when receiving module 401
During reply data, the 3rd reply data is returned to apple mobile terminal by apple interface 414.
Further, the device in the present embodiment further includes acquisition module and the 4th generation module;
First generation module 409, including receiving unit, transmitting element, the first generation unit, the second generation unit and the 3rd
Generation unit;
Sending module 402 is additionally operable 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, for when receiving unit receives authentication notification, generation to include the first of certification certificate data
Certification request;
Transmitting element, for sending include certification certificate data the of the generation of the first generation unit to receiving module 401
One certification request;
Receiving module 401 is additionally operable to receive the first certification request that transmitting element is sent;
Sending module 402 is additionally operable to send the first certification request to apple mobile terminal by apple interface 414;
Receiving module 401 is additionally operable to receive the first certification response from apple mobile terminal by apple interface 414;
Acquisition module receives first from apple mobile terminal for working as receiving module 401 by apple interface 414
During certification response, challenging value is obtained from the first certification response;
Sending module 402 is additionally operable to the challenging value for sending acquisition module to receiving unit and obtaining;
Receiving unit is additionally operable to receive the challenging value that sending module 402 is sent;
Second generation unit, for when receiving unit receives challenging value, signature result to be generated according to challenging value;
Transmitting element is additionally operable to send the signature result of the second generation unit generation to receiving module 401;
Receiving module 401 is additionally operable to receive the signature result that transmitting element is sent;
3rd generation unit, the signature result generation for being received according to receiving module 401 include the second of signature result
Certification request;
Transmitting element is additionally operable to send include signature result the second of the generation of the 3rd generation unit to receiving module 401
Certification request;
Receiving module 401 is additionally operable to receive the second certification request that transmitting element is sent;
Sending module 402 is additionally operable to transmit and receive the second of unit reception to apple mobile terminal by apple interface 414
Certification request;
Receiving module 401 is additionally operable to answer by certification by what the apple mobile terminal to be received such as apple interface 414 was sent
It answers.
Further, the device in the present embodiment further includes the 5th judgment module and the 3rd and reports an error module;
5th judgment module receives what apple mobile terminal was sent for working as receiving module 401 by apple interface 414
When identifying response, judge whether the identification response received is by identifying response;
3rd reports an error module, for judging what receiving module 401 was received by apple interface 414 when the 5th judgment module
When identifying response for by identifying response, report an error;
First judgment module 403 is additionally operable to judge that receiving module 401 is connect by apple interface 414 when the 5th judgment module
When the identification response received is by identifying response and when receiving module 401 receives apple movement eventually by apple interface 414
During the apple instruction that end is sent, whether the apple data for judging to parse apple instruction gained meet multi-interface data form.
Further, the device in the present embodiment, further includes read module;
Read module receives the apple of apple mobile terminal transmission for working as receiving module 401 by apple interface 414
During instruction, equipment interface list information is read;
Sending module 402 is additionally operable to the equipment for returning to read module reading 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
Two standby interfaces and the protocol type of corresponding support;
Second sending module 402 is additionally operable 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, the device in the present embodiment, the first judgment module 403 are received specifically for working as receiving module 401
Whether during the apple instruction that apple mobile terminal is sent, judging the apple data of parsing apple instruction gained includes instruction and length
Degree.
Further, the device in the present embodiment further includes the 6th judgment module and the 4th and reports an error module;
6th judgment module, for judging the apple data fit of parsing apple instruction gained when the first judgment module 403
During multi-interface data form, the protocol type of apple data is obtained, judges that protocol type whether there is;
Second judgment module 404, specifically in the presence of the 6th judgment module judges protocol type, judging whether
The specified interface of apple data;
4th reports an error module, in the absence of the 6th judgment module judges protocol type, reporting an error.
Further, the device in the present embodiment further includes the 7th judgment module and the 5th and reports an error module;
7th judgment module, for after the first extraction module 412 is from apple extracting data SD card operational order, judging
Whether include read-write operation type in SD card operational order;
4th judgment module 406, specifically for judging that SD card operational order includes read-write operation when the 7th judgment module
During type, judge whether there is designated sector in SD card operational order;
5th reports an error module, for judging not include read-write operation type in SD card operational order when the 7th judgment module
When, it reports an error.
Further, the device in the present embodiment further includes the 8th judgment module;
8th judgment module, for after the first extraction module 412 is from apple extracting data SD card operational order, judging
Read-write operation type in SD card operational order;
Second generation module 410 is grasped specifically for the read-write judged when the 8th judgment module in SD card operational order
When making type to have designated sector in read operation and the 4th judgment module 406 judgement SD card operational order, referred to according to SD card operation
Read operation type generation first operand evidence in designated sector and SD card operational order in order;
Sending module 402 sends the first operation of the second generation module 410 generation specifically for passing through SD card interface 415
Data are to SD card;
Receiving module 401 is additionally operable to the 4th reply data for receiving SD card by SD card interface 415 and returning;
Sending module 402 is additionally operable to the 4th response returned when receiving module 401 by the reception SD card of SD card interface 415
During data, the 4th reply data is returned to apple mobile terminal by apple interface 414;
Second generation module 410 is grasped specifically for the read-write judged when the 8th judgment module in SD card operational order
When making type to have designated sector in write operation and the 4th judgment module 406 judgement SD card operational order, 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 sends the second operation of the second generation module 410 generation specifically for passing through SD card interface 415
Data are to SD card;
Receiving module 401 is additionally operable to the 5th reply data for receiving SD card by SD card interface 415 and returning;
Sending module 402 is additionally operable to the 5th response returned when receiving module 401 by the reception SD card of SD card interface 415
During data, the 5th reply data is returned to apple mobile terminal by apple interface 414;
Second generation module 410 is grasped specifically for the read-write judged when the 8th judgment module in SD card operational order
When making type not have designated sector in read operation and the 4th judgment module 406 judgement SD card operational order, designated sector is distributed,
Read operation type in the designated sector of distribution and SD card operational order generates the 3rd operation data;
Sending module 402 sends the 3rd operation of the second generation module 410 generation specifically for passing through SD card interface 415
Data are to SD card;
Receiving module 401 is additionally operable to the 6th reply data for receiving SD card by SD card interface 415 and returning;
Sending module 402 is additionally operable to the 6th response returned when receiving module 401 by the reception SD card of SD card interface 415
During data, the 6th reply data is returned to apple mobile terminal by apple interface 414;
Second generation module 410 is grasped specifically for the read-write judged when the 8th judgment module in SD card operational order
When making type not have designated sector in write operation and the 4th judgment module 406 judgement SD card operational order, designated sector is distributed,
Write operation type and the second transmission data in the designated sector of distribution, SD card operational order generate the 4th operation data;
Sending module 402 sends the 4th operation of the second generation module 410 generation specifically for passing through SD card interface 415
Data are to SD card;
Receiving module 401 is additionally operable to the 7th reply data for receiving SD card by SD card interface 415 and returning;
Sending module 402 is additionally operable to the 7th response returned when receiving module 401 by the reception SD card of SD card interface 415
During data, the 7th reply data is returned to apple mobile terminal by apple interface 414.
Further, the device in the present embodiment, the second extraction module 413, specifically in extraction apple data
APDU is instructed or TPDU instructions;
Sending module 402, the APDU that the extraction of the second extraction module 413 is sent specifically for passing through intelligent card interface 416 refer to
Order or TPDU are instructed to smart card.
Further, the device in the present embodiment, 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;It further includes the 9th judgment module, check
Interface attributes operation module opens equipment interface operation module, pass hull closure interface operational module, receives and dispatches operation module, singly connects
It receives operation module and single-shot send operation module;
9th judgment module, for when the second judgment module 404 judge there are apple data specified interface when, judge apple
The class of operation of fruit data;
It checks interface attributes operation module, is connect for judging the class of operation of apple data when the 9th judgment module to check
During mouth property operations, the essential attribute information of specified interface is read;
Sending module 402 is additionally operable 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, is set for judging the class of operation of apple data when the 9th judgment module to open
It during standby interface operation, is powered on to specified interface, equipment interface successful information is opened in generation;
Sending module 402, the opening for being additionally operable to return the operation module generation of opening equipment interface by apple interface 414 are set
For interface successful information to apple mobile terminal;
Pass hull closure interface operational module sets for judging the class of operation of apple data when the 9th judgment module to close
During standby interface operation, to electric under specified interface, generation pass hull closure interface successful information;
Sending module 402 is additionally operable 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 being operated for judging the class of operation of apple data when the 9th judgment module for transmitting-receiving, from
3rd operational order of apple extracting data;
Sending module 402 is additionally operable to send transmitting-receiving operation module from the 3rd operational order of apple extracting data to apple
The connection equipment of the specified interface of fruit data;
Receiving module 401 is additionally operable to receive the 8th reply data of the connection equipment of specified interface;
Sending module 402 is additionally operable 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 judging the class of operation of apple data when the 9th judgment module operation is received to be single
When, obtain the gathered data of specified interface;
Receiving module 401 is additionally operable to receive the 9th reply data of specified interface;
Sending module 402 is additionally operable to, when receiving module 401 receives nine reply data of specified interface, pass through apple
Fruit returns to the 9th reply data to apple mobile terminal;
Sending module 402 is additionally operable to when the 9th judgment module judges that the class of operation of apple data send operation for single-shot,
Based data output is transmitted to the external equipment of specified interface;
Single-shot send operation module, is additionally operable to when 402 based data output end of transmission of sending module, generates the tenth answer number
According to;
Sending module 402 is additionally operable to return single-shot and send the tenth reply data that operation module generates 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 judge there are apple data specified interface when, judge apple
The functional category of fruit data;
11st judgment module, the functional category for judging apple data when the tenth judgment module is equipment operation class
When, judge the equipment operation classifications of apple data;
It checks interface attributes operation module, is additionally operable to judge the equipment operation classification of apple data when the 11st judgment module
During to check interface attributes operation, the essential attribute information of specified interface is read;
Equipment interface operation module is opened, is additionally operable to judge the equipment operation classification of apple data when the 11st judgment module
It during to open equipment interface operation, is powered on to specified interface, equipment interface successful information is opened in generation;
Pass hull closure interface operational module is additionally operable to judge the equipment operation classification of apple data when the 11st judgment module
For pass hull closure interface operation when, to electric under specified interface, generate pass hull closure interface successful information;
12nd judgment module operates class for judging the functional category of apple data when the tenth judgment module for transmission
When, judge the transmission class of operations of apple data;
Operation module is received and dispatched, is additionally operable to judge that the transmission class of operation of apple data is grasped for transmitting-receiving when the 12nd judgment module
When making, from the 3rd operational order of apple extracting data;
Sending module 402 is specifically additionally operable to judge that the transmission class of operation of apple data is list when the 12nd judgment module
When receiving operation, the gathered data of specified interface is obtained;
Single-shot send operation module, is additionally operable to judge 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, the device in the present embodiment when the specified interface of apple data is SD card interface 415, is checked and connect
The essential attribute information that mouth property operations module reads specified interface includes transmission rate, card slot capacity, SD card size and SD card
Classification.
Further, the device in the present embodiment when the specified interface of apple data is digital audio interface, is checked and connect
The essential attribute information that mouth property operations module reads specified interface includes transmission rate, bit rate, signal-to-noise ratio and data format.
Further, the device in the present embodiment, sending module 402 be additionally operable 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 additionally operable 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 can include main control chip, trusted authentication chip, apple interface, SD card interface and smart card
Interface, main control chip are connected with trusted authentication chip, apple interface, SD card interface and intelligent card interface;Receiving module 401 sends mould
Block 402, the first judgment module 403, the second judgment module 404, the 3rd 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, the 3rd 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 into a part on trusted authentication chip.
Compared with prior art, the present invention it has the following advantages: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 connected with apple mobile terminal carry out function switch and
The operations such as transmission realize that apple mobile terminal is carried out at the same time connection communication with SD card and smart card, make apple mobile terminal simultaneously
It is connected 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 protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art is in technical scope disclosed by the invention, the change or replacement that can readily occur in, all should
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)
- A kind of 1. method for realizing the multiplex roles equipment for apple mobile terminal, which is characterized in that multiplex roles equipment is included 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 The certification request including certification certificate data of generation is sent 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, performs step S3;Step S3:When the multiplex roles equipment receives the apple instruction that the apple mobile terminal is sent, the multiplex roles Whether the apple data that equipment judges to parse the apple instruction gained meet multi-interface data form, are to perform step S4, Otherwise report an error;Step S4:The multiplex roles equipment judges whether the specified interface of the apple data, is to perform step 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 For SD card interface when, perform step S6, when the interface type of the specified interface is intelligent card interface, perform step S9;Step S6:The multiplex roles equipment is judged from apple extracting data SD card operational order in the SD card operational order Whether there is designated sector, be, perform step S7, otherwise perform step S8;Step S7:Designated sector of the multiplex roles equipment in SD card operational order generates the first operational order, sends life Into 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 Second operational order of generation, when receiving the second reply data of SD card return, returns to the second reply data to apple to SD card Fruit mobile terminal;Step S9:Smart card operating instruction in the multiplex roles equipment extraction apple data, sends the smart card operation and refers to Order, when receiving three reply data of smart card return, returns to the 3rd reply data to apple and moves eventually to smart card 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 for including certification certificate data of generation 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 is generated according to the challenging value of acquisition and is recognized as a result, sending and including the second of signature result Card request waits to be received by certification response to apple mobile terminal.
- 3. the method as described in claim 1, which is characterized in that further included after the step S2 and before the step S3: Whether the identification response that the multiplex roles equipment judgement receives is by identifying response, being, perform step 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 During the apple instruction that fruit mobile terminal is sent, the apple data that the multiplex roles equipment judges to parse the apple instruction gained are It is no meet multi-interface data form before, further include: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 judges parsing institute Whether the apple data for stating apple instruction gained meet multi-interface data form, are specially:The multiplex roles equipment judges parsing Whether the apple data of the apple instruction gained 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 judges to parse During the apple data fit multi-interface data form of the apple instruction gained, before the step S4, further include:It is described to connect more Jaws equipment obtains the protocol type of apple data, judges that the protocol type whether there is, is to perform step 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 It is middle extraction SD card operational order after, it is described judge whether to have designated sector in SD card operational order before, further include:It is described more Interface equipment judges whether include read-write operation type in SD card operational order, is performed in the judgement SD card operational order Whether there is designated sector, otherwise report 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 include:Judge the read-write operation type in SD card operational order;The step S7 is specially: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 generation first operand evidence in designated sector and SD card operational order in order, sends the first operand According to SD card, when receiving four reply data of SD card return, the 4th reply data is returned to apple mobile terminal;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, when receiving five reply data of SD card return, returns to the 5th reply data extremely according to SD card Apple mobile terminal;The step S8 is specially:When the read-write operation type in the SD card operational order is read operation, the multiplex roles equipment distributes designated sector, Read operation type in the designated sector of distribution and SD card operational order generates the 3rd operation data, sends the 3rd of generation Operation data, when receiving six reply data of SD card return, returns to the 6th reply data to apple and moves to SD card Terminal;When the read-write operation type in the SD card operational order is write operation, the multiplex roles equipment distributes designated sector, Write operation type and the second transmission data in the designated sector of distribution, SD card operational order generate the 4th operation data, The 4th operation data of generation is sent to SD card, when receiving seven reply data of SD card return, returns to the described 7th 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, is specially:The multiplex roles equipment extraction Either TPDU instructions send APDU instructions or TPDU is instructed to smart card for APDU instructions 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, further included after the specified interface that the multiplex roles equipment is judged there are the apple data:It is described Multiplex roles equipment judges the class of operation of apple data, when the class of operation of apple data is checks interface attributes operation, holds Row step B1;When the class of operation of apple data is opens equipment interface operation, step B2 is performed;When the operation of apple data When classification is pass hull closure interface operation, step B3 is performed;When the class of operation of apple data operates for transmitting-receiving, step is performed B4;When the class of operation of apple data operates for single reception, step B5 is performed;When the class of operation of apple data send for single-shot During operation, step B6 is performed;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, generation opening 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 from the 3rd operational order to the specified of apple data of apple extracting data and connects The connection equipment of mouth when multiplex roles equipment receives eight reply data of connection equipment of the specified interface, returns to institute The 8th reply data is stated to apple mobile terminal;Step B5:The multiplex roles equipment obtains the gathered data of the specified interface, when receiving the 9th response of specified interface During data, the 9th reply data is returned to apple mobile terminal;Step B6:The multiplex roles equipment transmits based data output to the external equipment of 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 It is further included after the specified interface of the apple data: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 performed, when the functional category of apple data operates class for transmission, 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 performed;When the equipment operation classification in apple data is grasped to open equipment interface When making, step B2 is performed;When the equipment operation classification in apple data is pass hull closure interface operation, step B3 is performed;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 being operated for transmitting-receiving, step B4 is performed;When the transmission class of operation of apple data operates for single reception, step B5 is performed;When When the transmission class of operation of apple data send operation for single-shot, step B6 is performed.
- 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 During 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 afterwards, returns to error information to apple 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, the first judgment module, the second judgment module, the 3rd 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, the 3rd 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, for the authentication notification sent by apple mobile terminal described in the apple interface;First generation module, for when the receiving module receives the authentication notification, generation to include certification certificate The certification request of data;The sending module is sent for working as the receiving module by the apple interface to the apple mobile terminal Authentication notification when, pass through that the apple interface sends that first generation module generates is included described in certification certificate data Certification request is to the apple mobile terminal;The receiving module is additionally operable to pass through certification response from apple mobile terminal by the apple interface;The sending module is additionally operable to when the receiving module is logical from apple mobile terminal by the apple interface When crossing certification response, identification request is sent to the apple mobile terminal by the apple interface;The receiving module is additionally operable to the identification response sent by apple interface apple mobile terminal;The receiving module, the apple for being additionally operable to send by apple mobile terminal described in apple interface instruct;First judgment module is sent for working as the receiving module by apple interface to the apple mobile terminal Apple instruction when, whether the apple data for judging to parse the apple instruction gained meet multi-interface data form;Described first reports an error module, for working as the apple data that first judgment module judges to parse the apple instruction gained When not meeting multi-interface data form, report an error;Second judgment module judges to parse the apple data obtained by the apple instruction for working as first judgment module When meeting multi-interface data form, the specified interface of the apple data is judged whether;Described second reports an error module, judges specified interface there is no the apple data for working as second judgment module When, it reports an error;3rd judgment module, for when second judgment module judge there are the apple data specified interface when, Judge the interface type of the specified interface;First extraction module judges that the interface type of the specified interface connects for SD card for working as the 3rd judgment module During mouth, from the apple extracting data SD card operational order;4th judgment module, for judging that first extraction module refers to from the SD card operation of apple extracting data Whether there is designated sector in order;Second generation module judges there is designated sector in the SD card operational order for working as the 4th judgment module When, the designated sector in SD card operational order generates the first operational order;The sending module is additionally operable to the first operational order for sending second generation module by the SD card interface and generating To SD card;The receiving module is additionally operable to the first reply data for receiving the SD card by the SD card interface and returning;The sending module is additionally operable to receive the first of the SD card return by the SD card interface when the receiving module During reply data, the first reply data is returned to apple mobile terminal by the apple interface;3rd generation module is judged in the SD card operational order for working as 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 additionally operable to the second operational order for sending the 3rd generation module by the SD card interface and generating To SD card;The receiving module is additionally operable to the second reply data for receiving SD card by the SD card interface and returning;The sending module is additionally operable to the second answer number returned when the receiving module by SD card interface reception SD card According to when, pass through apple interface and return to the second reply data to apple mobile terminal;Second extraction module, the interface type that the specified interface is judged for working as the 3rd judgment module is smart card During interface, the smart card operating instruction in apple data is extracted;The sending module is additionally operable to the smart card for sending second extraction module by the intelligent card interface and extracting Operational order is to smart card;The receiving module is additionally operable to the 3rd reply data for receiving smart card by the intelligent card interface and returning;The sending module, be additionally operable to receive smart card return by the intelligent card interface when the receiving module the 3rd answer Answer according to when, pass through the apple interface and return to the 3rd reply data to apple mobile terminal.
- 17. device as claimed in claim 16, which is characterized in that further include acquisition module and the 4th generation module;First generation module, including receiving unit, transmitting element, the first generation unit, the second generation unit and the three lives Into unit;The sending module is additionally operable to send the authentication notification to second receiving unit;The receiving unit, for receiving the authentication notification that the sending module is sent;First generation unit, for when the receiving unit receives the authentication notification, generation to include certification certificate number According to the first certification request;The transmitting element, for including certification certificate data to receiving module transmission the first generation unit generation First certification request;The receiving module is additionally operable to receive first certification request that the transmitting element is sent;The sending module is additionally operable to send first certification request to apple mobile terminal by apple interface;The receiving module is additionally operable to through first certification response of the apple interface from apple mobile terminal;The acquisition module, for working as the receiving module by the apple interface to the institute from apple mobile terminal When stating the first certification response, challenging value is obtained from the first certification response;The sending module is additionally operable to the challenging value for sending the acquisition module to the receiving unit and obtaining;The receiving unit is additionally operable to receive the challenging value that the sending module is sent;Second generation unit, for when the receiving unit receives the challenging value, being generated according to the challenging value Signature result;The transmitting element is additionally operable to send the signature result of the second generation unit generation to the receiving module;The receiving module is additionally operable to receive the signature result that the transmitting element is sent;3rd generation unit, the signature result generation for being received according to the receiving module include result of signing Second certification request;The transmitting element is additionally operable to include result of signing to receiving module transmission the 3rd generation unit generation Second certification request;The receiving module is additionally operable to receive second certification request that the transmitting element is sent;The sending module is additionally operable to send the institute of the receiving unit reception to apple mobile terminal by the apple interface State the second certification request;The receiving module is additionally operable to answer by certification by what the apple mobile terminal to be received such as the apple interface was sent It answers.
- 18. device as claimed in claim 16, which is characterized in that further include the 5th judgment module and the 3rd and report an error module;5th judgment module passes through the apple interface to the apple mobile terminal for working as the receiving module During the identification response of transmission, whether the identification response for judging to receive is by identifying response;Described 3rd reports an error module, judges that the receiving module is arrived by apple interface for working as the 5th judgment module The identification response be by identifying response when, report an error;First judgment module is additionally operable to judge that the receiving module passes through apple interface when the 5th judgment module To the identification response be by identifying response when and when the receiving module is moved by apple interface to the apple During the apple instruction that dynamic terminal is sent, whether the apple data for judging to parse the apple instruction gained 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 is sent for working as the receiving module by the apple interface to the apple mobile terminal Apple instruction when, read equipment interface list information;The sending module is additionally operable to return the institute of the read module reading 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;Second sending module is additionally operable to return to the more of the read module reading to apple mobile terminal by apple interface Two interfaces of interface equipment and the protocol type of corresponding support.
- 21. device as claimed in claim 16, which is characterized in that first judgment module, specifically for working as the reception When module receives the apple instruction that the apple mobile terminal is sent, judge to parse the apple data of the apple instruction gained Whether instruction and length are included.
- 22. device as claimed in claim 16, which is characterized in that further include the 6th judgment module and the 4th and report an error module;6th judgment module, for working as the apple that first judgment module judges the parsing apple instruction gained During data fit multi-interface data form, the protocol type of apple data is obtained, judges that the protocol type whether there is;Second judgment module, specifically for working as in the presence of the 6th judgment module judges the protocol type, judgement is The no specified interface there are the apple data;Described 4th reports an error module, for working as in the absence of the 6th judgment module judges the protocol type, reports an error.
- 23. device as claimed in claim 16, which is characterized in that further include the 7th judgment module and the 5th and report an error module;7th judgment module for working as first extraction module after apple extracting data SD card operational order, is sentenced Whether include read-write operation type in disconnected SD card operational order;4th judgment module judges that SD card operational order includes read-write operation specifically for working as the 7th judgment module During type, judge whether there is designated sector in SD card operational order;Described 5th reports an error module, judges not include read-write operation class in SD card operational order for working as the 7th judgment module During 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 working as first extraction module after apple extracting data SD card operational order, is sentenced Read-write operation type in disconnected SD card operational order;Second generation module judges that the read-write in SD card operational order is grasped specifically for working as the 8th judgment module When making type to have designated sector in read operation and the 4th judgment module judgement SD card operational order, grasped according to SD card Read operation type generation first operand evidence in the designated sector and SD card operational order that instruct;The sending module sends the first operand of the second generation module generation according to extremely specifically for passing through SD card interface SD card;The receiving module is additionally operable to the 4th reply data for receiving SD card by the SD card interface and returning;The sending module is additionally operable to the 4th answer number returned when the receiving module by SD card interface reception SD card According to when, pass through the apple interface and return to the 4th reply data to apple mobile terminal;Second generation module judges that the read-write in SD card operational order is grasped specifically for working as the 8th judgment module When making type to have designated sector in write operation and the 4th judgment module judgement SD card operational order, grasped according to SD card Designated sector, the write operation type in SD card operational order and the first transmission data generation second operand evidence instructed;The sending module, specifically for sending the second operand of the second generation module generation by the SD card interface According to SD card;The receiving module is additionally operable to the 5th reply data for receiving SD card by the SD card interface and returning;The sending module is additionally operable to the 5th answer number returned when the receiving module by SD card interface reception SD card According to when, pass through the apple interface and return to the 5th reply data to apple mobile terminal;Second generation module judges that the read-write in SD card operational order is grasped specifically for working as the 8th judgment module When making type not have designated sector in read operation and the 4th judgment module judgement SD card operational order, distribution is specified Sector, the read operation type in the designated sector of distribution and SD card operational order generate the 3rd operation data;The sending module, specifically for sending the 3rd operand of the second generation module generation by the SD card interface According to SD card;The receiving module is additionally operable to the 6th reply data for receiving SD card by the SD card interface and returning;The sending module is additionally operable to the 6th answer number returned when the receiving module by SD card interface reception SD card According to when, pass through the apple interface and return to the 6th reply data to apple mobile terminal;Second generation module judges that the read-write in SD card operational order is grasped specifically for working as the 8th judgment module When making type not have designated sector in write operation and the 4th judgment module judgement SD card operational order, distribution is specified Sector, 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 sends the 4th operation data of the second generation module generation extremely specifically for passing through SD card interface SD card;The receiving module is additionally operable to the 7th reply data for receiving SD card by the SD card interface and returning;The sending module is additionally operable to the 7th answer number returned when the receiving module by SD card interface reception SD card 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, specifically for extracting apple number APDU instructions or TPDU instructions in;The sending module, the APDU that the second extraction module extraction is sent specifically for passing through intelligent card interface are instructed 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;The 9th is further included to sentence 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 when second judgment module judge there are the apple data specified interface when, Judge the class of operation of apple data;Described to check interface attributes operation module, the class of operation that apple data are judged for working as the 9th judgment module is to look into When seeing interface attributes operation, the essential attribute information of the specified interface is read;The sending module is additionally operable 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, the class of operation that apple data are judged for working as the 9th judgment module are to beat It when opening up standby interface operation, is powered on to the specified interface, equipment interface successful information is opened in generation;The sending module is additionally operable to return to the opening equipment opened equipment interface operation module and generated by apple interface Interface successful information is to apple mobile terminal;The pass hull closure interface operational module judges the class of operation of apple data for pass for working as the 9th judgment module During hull closure interface operation, to electric under the specified interface, generation pass hull closure interface successful information;The sending module is additionally operable to return the pass hull closure interface successful information of the pass hull closure interface operational module generation To apple mobile terminal;The transmitting-receiving operation module judges that the class of operation of apple data operates for transmitting-receiving for working as the 9th judgment module When, from the 3rd operational order of apple extracting data;The sending module is additionally operable to send the transmitting-receiving operation module from the 3rd operational order of apple extracting data to apple The connection equipment of the specified interface of fruit data;The receiving module is additionally operable to receive the 8th reply data of the connection equipment of the specified interface;The sending module is additionally operable 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 judges that the class of operation of apple data receives behaviour to be single for working as the 9th judgment module When making, the gathered data of the specified interface is obtained;The receiving module is additionally operable to receive the 9th reply data of specified interface;The sending module is additionally operable to when the receiving module receives nine reply data of specified interface, by described Apple returns to the 9th reply data to apple mobile terminal;The sending module is additionally operable to judge 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 additionally operable to when the sending module based data output end of transmission, generates the tenth answer number According to;The sending module is additionally operable to return the single-shot and the tenth reply data that operation module generates to apple is sent to move 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 when second judgment module judge there are the apple data specified interface when, Judge the functional category of apple data;11st judgment module, the functional category that apple data are judged for working as the tenth judgment module is equipment operation During class, the equipment operation classification of apple data is judged;It is described to check interface attributes operation module, it is additionally operable to judge the equipment operation of apple data when the 11st judgment module When classification is checks interface attributes operation, the essential attribute information of the specified interface is read;The opening equipment interface operation module is additionally operable to judge the equipment operation of apple data when the 11st judgment module It when classification is opens equipment interface operation, is powered on to the specified interface, equipment interface successful information is opened in generation;The pass hull closure interface operational module is additionally operable to judge the equipment operation of apple data when the 11st judgment module When classification is pass hull closure interface operation, to electric under the specified interface, generation pass hull closure interface successful information;12nd judgment module judges that the functional category of apple data operates for transmission for working as the tenth judgment module During class, the transmission class of operation of apple data is judged;The transmitting-receiving operation module is additionally operable to judge the transmission class of operation of apple data for receipts when the 12nd judgment module During hair operation, from the 3rd operational order of apple extracting data;The sending module is additionally operable to judge that the transmission class of operation of apple data is single reception when the 12nd judgment module During operation, the gathered data of the specified interface is obtained;The single-shot send operation module, is additionally operable to judge that the transmission class of operation of apple data is when the 12nd judgment module 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 connects for the SD card During mouth, the essential attribute information for checking the interface attributes operation module reading 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 During mouth, the essential attribute information for checking the interface attributes operation module reading 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 additionally operable 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 additionally operable to report an error when described second module that reports an error Afterwards, error information is returned to apple mobile terminal by apple interface.
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 true CN108108317A (en) | 2018-06-01 |
CN108108317B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112100103A (en) * | 2020-11-19 | 2020-12-18 | 飞天诚信科技股份有限公司 | Communication method and system based on apple operating system |
CN112235421A (en) * | 2020-12-10 | 2021-01-15 | 飞天诚信科技股份有限公司 | Method and system for communicating apple mobile device with apple peripheral |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101872334A (en) * | 2010-05-26 | 2010-10-27 | 北京飞天诚信科技有限公司 | Compound type usb equipment and implementation method thereof |
US20110177852A1 (en) * | 2007-09-12 | 2011-07-21 | Devicefidelity, Inc. | Executing transactions using mobile-device covers |
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 |
-
2017
- 2017-12-29 CN CN201711473413.1A patent/CN108108317B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110177852A1 (en) * | 2007-09-12 | 2011-07-21 | Devicefidelity, Inc. | Executing transactions using mobile-device covers |
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)
Title |
---|
耿青凯: ""多接口数据采集终端的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112100103A (en) * | 2020-11-19 | 2020-12-18 | 飞天诚信科技股份有限公司 | Communication method and system based on apple operating system |
CN112100103B (en) * | 2020-11-19 | 2021-03-16 | 飞天诚信科技股份有限公司 | Communication method and system based on apple operating system |
CN112235421A (en) * | 2020-12-10 | 2021-01-15 | 飞天诚信科技股份有限公司 | Method and system for communicating apple mobile device with apple peripheral |
CN112235421B (en) * | 2020-12-10 | 2021-03-16 | 飞天诚信科技股份有限公司 | Method and system for communicating apple mobile device with apple peripheral |
WO2022121682A1 (en) * | 2020-12-10 | 2022-06-16 | 飞天诚信科技股份有限公司 | Method and system for communication between apple mobile device andapple external accessory |
Also Published As
Publication number | Publication date |
---|---|
CN108108317B (en) | 2019-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104680213A (en) | Control method of rapid connection and data transmission among devices | |
CN102714666B (en) | Application-Enablement data switch for enhancing legacy NFC systems with WEB services | |
TW201251357A (en) | Communications device for intelligently routing information among multiple user interfaces | |
CN103220210A (en) | Method, client and system for collecting instant communication message | |
CN108108317B (en) | A kind of method and apparatus for realizing the multiplex roles equipment for apple mobile terminal | |
CN103401771A (en) | Network isolation method and network isolation system | |
CN110149265A (en) | Message shows method, apparatus and computer equipment | |
CN102646175A (en) | Safety certificating equipment and method based on audio signal communication | |
CN108419222A (en) | The method and system of route-map quick obtaining and terminal management based on NFC | |
CN102289636A (en) | Reader driving device, system and method based on low level reader protocol (LLRP) protocol | |
CN105791174B (en) | The determination of line card determines processing method and processing device, the determination system of line card | |
CN108810836A (en) | A kind of method and system providing a user near-field communication equipment information | |
CN107562733A (en) | A kind of instant message interpretation method and system and a kind of electronic equipment | |
CN104102870B (en) | Electron underwriting authentication expansion equipment and information processing method | |
CN109873837A (en) | Central apparatus and multi-protocols adaptation system based on android system | |
CN109189711A (en) | Serial console interface and its application method based on Ethernet | |
CN109617984A (en) | A kind of data storage cloud online management system | |
CN204515804U (en) | Can connect and be convenient to the system of data transmission between a kind of equipment fast | |
CN100444595C (en) | A method of master-slave equipment communication | |
CN207268866U (en) | A kind of information collecting device | |
CN207067872U (en) | A kind of multifunctional hand write device | |
CN201570036U (en) | Portable movable office equipment | |
CN110517473A (en) | A kind of portable intelligent communication system and its working method | |
CN204759462U (en) | Bluetooth IC -card management system who possesses safe start control circuit | |
Josh et al. | Handy Reader-A Shopping Guide To Visionless Using RaspberryPi |
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 |