Terminal, I/O expanding units, method and system
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of terminal, I/O expanding units, method and system for extending I/O mode.
Background of invention
Input and output on current mobile terminal device(I/O, Input/Output)Mode is more single, input and output are realized generally by keyboard, display screen, loudspeaker is carried, the I/O interfaces for connecting outside input and/or output equipment are also less, and because the difference between the I/O interfaces on various mobile terminals is larger, therefore, most mobile terminals directly can not be connected with the I/O equipment of external perimysium reference, can not such as connect 101/102 keyboard of external perimysium reference, connect the LCD display etc. of standard.In order to provide user the convenience of the input and output during the use of mobile terminal, the mobile terminal of some full keyboards, giant-screen is occurred in that at present, but this mobile terminal still can not meet the demand that user is used mobile terminal in the way of standard input and output.101/102 keyboard that can not such as make mobile terminal connect external perimysium reference is inputted, and the standard LCD display outside connection carries out display output etc..
Therefore, using during mobile terminal, how making the problem of I/O mode that mobile terminal easily be connected to extend mobile terminal with outside various standard I/O equipment is to need solution.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of terminal, I/O expanding units, method and system, mobile terminal is easily connected with outside various standard I/O equipment, the I/O mode of mobile terminal is effectively extended, so as to improve the ease for use of mobile terminal input and output.
For achieving the above object there is provided technical scheme it is as follows:
The embodiment of the present invention provides a kind of terminal, including:Casing, communication unit, processing unit, circuit board and display screen;The communication unit, processing unit and circuit board are arranged in casing, and communication unit and processing unit are respectively provided with circuit boards;The display screen is inlaid on casing, and the display screen is electrically connected with the processing unit on the circuit board;Also include:
Adaptation unit, expanding element and at least one I/O port;
The I/O ports, data exchange is externally carried out for terminal;
The adaptation unit, for receiving the terminal parameter that the terminal is reported, the terminal parameter is sent to the I/O expanding units being connected with the terminal, and receives the configuration information sent after the completion of the matching of I/O expanding units, completes to initialize by the configuration information;
The expanding element, for after the terminal completes initialization, receive the output data of each I/O ports, output data is sent by I/O expanding units to the output equipment being connected with the I/O expanding units, and/or, the input data that input equipment is sent by the I/O expanding units being connected with input equipment is received, input data is distributed to corresponding I/O ports.
The embodiment of the present invention also provides a kind of terminal input and output extended method, including:
The terminal parameter that receiving terminal is reported, the terminal parameter is sent to the I/O expanding units being connected with the terminal;And the configuration information sent after the completion of the matching of I/O expanding units is received, complete to initialize by the configuration information;Wherein, the terminal includes at least one I/O port, and data exchange is externally carried out for terminal;
The output data of each I/O ports is received, output data is sent by I/O expanding units to the output equipment being connected with the I/O expanding units;And/or, the input data that input equipment is sent by the I/O expanding units being connected with input equipment is received, input data is distributed to corresponding I/O ports.
The embodiment of the present invention further provides for a kind of I/O expanding units, including:Adaptation processing unit, extension process unit and at least one I/O interface;
The I/O interfaces, are electrically connected with the extension process unit, input equipment and/or output equipment for connecting outside;
The adaptation processing unit, for receiving the terminal parameter that mobile terminal is sent, and receive the device parameter that input equipment and/or output equipment are sent through I/O interfaces, according to the terminal parameter and the device parameter, complete input equipment and/or output equipment is matched with the parameter of mobile terminal, form the configuration information replied to mobile terminal and send the configuration information to mobile terminal;
The extension process unit, for after the adaptation processing unit completes to match with the parameter of mobile terminal, receive the output data that mobile terminal is sent, output data is distributed by I/O interfaces to corresponding output equipment, and/or, the input data that input equipment is sent by I/O interfaces is received, input data is sent to mobile terminal.
The embodiment of the present invention provides a kind of input and output extended method again, including:
The terminal parameter that mobile terminal is sent is received, and receives the device parameter that input equipment and/or output equipment are sent through I/O interfaces;
According to the terminal parameter and device parameter of reception, complete input equipment and/or output equipment is matched with the parameter of mobile terminal, form the configuration information replied to mobile terminal and send the configuration information to mobile terminal;
The output data that mobile terminal is sent is received, output data is distributed by I/O interfaces to corresponding output equipment;
The input data that input equipment is sent by I/O interfaces is received, input data is sent to mobile terminal.
The embodiment of the present invention further provides for a kind of input and output extension system, including:
Mobile terminal and I/O expanding units;Wherein, the mobile terminal uses above-mentioned terminal;The I/O expanding units use above-mentioned I/O expanding units;
The mobile terminal is communicated to connect with the I/O expanding units, the I/O expanding units are used to communicate to connect with outside input equipment and/or output equipment, mobile terminal is communicated to connect with outside input equipment and/or output equipment by the I/O expanding units, and carry out data exchange.
The expanding unit of the embodiment of the present invention passes through adaptation processing unit, extension process unit and I/O Interference fits, mobile terminal can be made to pass through the input-output equipment outside expanding unit connection, the I/O mode of convenient extension mobile terminal, improves the convenience and operating efficiency using mobile terminal.
Brief Description Of Drawings
Fig. 1 is the structured flowchart for the terminal that the embodiment of the present invention one is provided;
Fig. 2 is the adaptation unit structured flowchart for the terminal that the embodiment of the present invention one is provided;
Fig. 3 is the transmission extension sub-unit structure block diagram for the adaptation unit that the embodiment of the present invention one is provided;
Fig. 4 is the reception extension sub-unit structure block diagram for the adaptation unit that the embodiment of the present invention one is provided;
Fig. 5 is the structured flowchart for the I/O expanding units that the embodiment of the present invention two is provided;
Fig. 6 is the structured flowchart of the extension process unit for the I/O expanding units that the embodiment of the present invention two is provided;
Fig. 7 is the output extension process sub-unit structure block diagram for the extension process unit that the embodiment of the present invention two is provided;
Fig. 8 is the input expanding processing sub-unit structure block diagram for the extension process unit that the embodiment of the present invention two is provided;
Fig. 9 is that terminal provided in an embodiment of the present invention connects input-output equipment schematic diagram through I/O expanding units;
Figure 10 is the process chart that I/O expanding units provided in an embodiment of the present invention are initialized with mobile terminal;
Figure 11 is the process chart provided in an embodiment of the present invention that data are sent to I/O expanding units;
Figure 12 is the process chart provided in an embodiment of the present invention that data are sent to mobile terminal;
Figure 13 is the hardware circuit diagram provided in an embodiment of the present invention for realizing I/O expanding units.
Implement the mode of the present invention
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings.
I/O expanding units provided in an embodiment of the present invention can make mobile terminal easily connect the input equipment and/or output equipment of external perimysium reference, extend the I/O mode of mobile terminal, improve the ease for use and service efficiency of mobile terminal.
Embodiment one
The present embodiment provides a kind of terminal, can be used as mobile terminal(Such as mobile phone, palm PC), the terminal can be connected through I/O expanding units with outside input equipment and/or output equipment, as shown in figure 1, the terminal includes:Casing, communication unit 1, processing unit 2, circuit board and display screen(Wherein, casing, circuit board and display screen are not shown in FIG. 1);Described communication unit 1, processing unit 2 and circuit board is arranged in casing, and communication unit 1 and processing unit 2 are respectively provided with circuit boards;Described display screen is inlaid on casing, and described display screen connects with the processing unit 2 on circuit board and exchanges data;The terminal also includes:Adaptation unit, expanding element and at least one I/O port;
Wherein, I/O ports externally carry out data exchange for terminal;
Adaptation unit 3, for receiving the terminal parameter that the terminal is reported, and receives the device parameter for the I/O expanding units transmission that the terminal is connected, according to the terminal parameter and device parameter formation configuration information, passes through the configuration information and complete to initialize;
Expanding element 4, for after the terminal completes the initialization of parameter matching with the I/O expanding units being connected, receive each I/O ports 5,6 ... n output data, the output equipment that the output data of reception is connected by I/O expanding units to I/O expanding units is sent, and/or, the input data that input equipment is sent by the I/O expanding units being connected with input equipment is received, the input data is distributed to corresponding I/O ports 5,6 ... n.
As shown in Fig. 2 the expanding element 4 in above-mentioned terminal includes:Send extension subelement 41 and/or receive extension subelement 42;
Wherein, send extension subelement 41, after the terminal completes the initialization of parameter matching with the I/O expanding units being connected, the output data for receiving each I/O ports sends the output data by I/O expanding units to the output equipment being connected with I/O expanding units;
Receive extension subelement 42, after the terminal completes the initialization of parameter matching with the I/O expanding units being connected, for receiving the input data that input equipment is sent by the I/O expanding units being connected with input equipment, the input data is distributed to corresponding I/O ports.
As shown in figure 3, the transmission extension subelement 41 of above-mentioned expanding element 4 includes:Data collection module 411, the first identify and arrange module 412 and sending module 413;
Wherein, data collection module 411, the output data for receiving each I/O ports;
First identify and arrange module 412, is connected with data collection module 411, for the output data of each I/O ports received to data collection module 411, sets port type to identify by the type of correspondence I/O ports;The port type mark, the type for indicating the corresponding I/O ports of output data;
Sending module 413, is connected with the first identify and arrange module 412, for having set the first identify and arrange module 412 output data of each I/O ports of port type mark to be sent to the output equipment being connected with I/O expanding units.
On the basis of above-mentioned transmission extension subelement 41, it can also include:Integrate processing module 414, processing module 414 is integrated to be connected with the first identify and arrange module 412 and sending module 413 respectively, for setting the output data after port type mark to be integrated into output data packet the first identify and arrange module 412, so that sending module 413 sends the output data packet to the output equipment being connected with I/O expanding units.
As shown in figure 4, the reception extension subelement 42 of above-mentioned expanding element 4 includes:Receiving module 421, the first identity reading module 422 and distribution module 423;
Wherein, receiving module 421, for receiving the input data that the I/O expanding units that input equipment is connected by input equipment are sent;
First identity reading module 422, it is connected with receiving module 421, interface type mark in input data for reading the reception of receiving module 421, wherein, interface type in input data is designated the input data of each I/O interfaces of the I/O expanding units of mobile terminal connection, and the interface type set by the type of correspondence I/O interfaces is identified;
Distribution module 423, is connected with first identity reading module 422, and for the interface type mark in the input data that is read according to first identity reading module 422, the input data that the receiving module is received is distributed to corresponding I/O ports.
Above-mentioned reception extension subelement 42 can also include:Parsing module 424, it is connected respectively with the identity reading module 422 of receiving module 421 and first, input data for being received in the receiving module 421 carries out dissection process when being input data bag to input data bag, the input data of each I/O interfaces is obtained, so that the first identity reading module 422 reads the interface type mark of the input data of each I/O interfaces.
It is appreciated that each unit in the terminal can be realized with hardware module, it can also be realized by the software module of programmed instruction related hardware.Described program can be stored in a read/write memory medium, and described storage medium can be ROM/RAM, magnetic disc, CD etc..
The terminal of the present embodiment can be connected through I/O expanding units with outside input equipment and/or output equipment, inputted and/or exported by outside input equipment and/or output equipment, the I/O mode of mobile terminal is extended, the ease for use that the terminal is used and the convenience operated is improved.
Embodiment two
The present embodiment provides a kind of input and output extended method of terminal, it is adaptable to when the terminal that embodiment one is provided is connected through I/O expanding units with outside input-output equipment, carries out data exchange, and this method includes:
The device parameter that the I/O expanding units that step S1, the terminal parameter that receiving terminal is reported, and receiving terminal are connected are sent, according to the terminal parameter and device parameter formation configuration information, completes to initialize by the configuration information;Device-dependent message table is created in the terminal particular by the configuration information;Or, if device-dependent message table is existing, pass through the already present device-dependent message table of the configuration information update;Wherein, the terminal includes at least one I/O port, and data exchange is externally carried out for terminal;
The process for completing initialization above by configuration information is related to following two situations:
(1)On adaptation unit before electricity, each I/O port has been connected to some input equipments and/or output equipment, referred to as power on configuration information initializing through I/O expanding units.
(2)On adaptation unit after electricity, input equipment and/or output equipment are connected to through I/O expanding units on the I/O ports of free time, or input equipment and/or output equipment are disconnected from the I/O ports of adaptation unit, configuration information update in work.
The purpose that configuration information is initialized when upper electric is the device-dependent message table for creating a current adaptation unit connection, each hardware port can be inquired about on adaptation unit after electricity one by one, judge that there are connection input equipment and/or output equipment in which port, and attempt to be interacted with input equipment and/or output equipment with the mode pre-set, obtain input equipment and/or output equipment essential information, equipment on such as display port will be obtained such as resolution information, as the equipment on USB port will obtain the PID of similar USB device, VID, CLASS, SUB
CLASS information etc., distributes corresponding data transfer passage, for subsequent adaptation cell operation.
The renewal of configuration information is, in order to safeguard each input equipment of connection and/or the working condition of output equipment, being connected and disconnected from for input equipment and/or output equipment to be found in time after upper electricity.Each hardware port regularly can be inquired about one by one, detected whether that input equipment and/or output equipment are removed or connected in adaptation unit work.If it find that input equipment and/or output equipment are removed, it will just be deleted in the input equipment and/or the corresponding configuration information slave unit relevant information table of output equipment, it is to avoid subsequent error is operated.After finding to have new input equipment and/or output equipment connection, according to it is upper electric when equipment initialization mode, it is that the input equipment and/or output equipment create corresponding configuration item in device-dependent message table, and create corresponding data channel there is provided to the input equipment and/or output equipment normal work.
Step S2, receives the output data of each I/O ports, and output data is sent by I/O expanding units to the output equipment being connected with the I/O expanding units;
Above-mentioned steps S2 concrete processing procedure can be:
The output data of each I/O ports is received, the type that correspondence I/O ports are pressed to the output data sets port type to identify;The port type mark, the type for indicating the corresponding I/O ports of output data;
The output data that port type is identified will have been set to be sent to the output equipment being connected with I/O expanding units.The output data that port type is identified can also will be set to be packed into output data packet, then output data packet is sent to the output equipment being connected with I/O expanding units after the type for pressing correspondence I/O ports to output data sets port type to identify.
And/or,
Step S3, receives the input data that input equipment is sent by the I/O expanding units being connected with input equipment, the input data is distributed to corresponding I/O ports.
Above-mentioned steps S3 concrete processing procedure can be:
Receive the input data for the I/O expanding units transmission that input equipment is connected by input equipment, the input data is identified provided with interface type, wherein, the interface type that input data is provided with is designated the input data of each I/O interfaces for the I/O expanding units being connected with mobile terminal, and the interface type set by the type of correspondence I/O interfaces is identified;
The input data is distributed to corresponding I/O ports by the interface type mark of setting.
In above-mentioned steps S3, if the input data that reception input equipment is sent by I/O expanding units is input data bag, then the input data bag of reception is carried out parsing the input data for obtaining each I/O interfaces, to distribute the input data of each I/O interfaces to corresponding I/O ports by the interface type mark set in each input data.
It is appreciated that the part or all of step in the input and output extended method of the terminal of the present embodiment, can be realized by the related hardware of programmed instruction.Described program can be stored in a read/write memory medium, and described storage medium can be ROM/RAM, magnetic disc, CD etc..
The method of the present embodiment, mobile terminal can be achieved when being attached through I/O expanding units with outside input equipment and/or output equipment, mobile terminal is set to carry out data exchange with outside input equipment and/or output equipment by I/O expanding units, the I/O mode of mobile terminal is extended, the convenience used of mobile terminal is improved.
Embodiment three
The present embodiment provides a kind of I/O expanding units, can connect a variety of input equipments and/or output equipment, such as keyboard of standard 101/102, display, mouse, handwriting pad, USB device, and can be with mobile terminal(Such as mobile phone, palm PC)Communication connection, makes mobile terminal be realized by the I/O expanding units with outside standard input and/or output equipment and is connected, and carries out data exchange, extends the I/O mode of mobile terminal, improves the ease for use of mobile terminal.
As shown in figure 5, the I/O expanding units include:Adaptation processing unit 21, extension process unit 22 and I/O interfaces 23,24 ... 2n;
Wherein, I/O interfaces 23,24 ... 2n, are electrically connected with extension process unit 22, input equipment and/or output equipment outside connection;I/O interfaces can be one or more, can typically use any of following interfaces or any several, including:PS/2 interfaces, COBBAIF, USB interface, hand-written plate interface, USB interface etc., Input/Output Device of expanding unit connection mouse, keyboard, audio amplifier, display, handwriting pad and various USB interfaces etc. can be made by these interfaces;
Adaptation processing unit 21 is electrically connected with extension process unit 22, and be connected with communication of mobile terminal, it can be communicated by wired mode or wireless mode with mobile terminal, receive the device parameter that input equipment and/or output equipment are sent through I/O interfaces, the device parameter is sent to mobile terminal, completes to initialize after the terminal parameter formation configuration information provided according to the device parameter and terminal for mobile terminal;
Extension process unit 22, electrically connected with I/O interfaces 23,24 ... 2n, after adaptation processing unit 21 completes to match with the parameter of mobile terminal, receive the output data of connected mobile terminal, the output data is distributed to the output equipment of correspondence I/O interfaces 23,24 ... 2n connections, and/or, the input data that the input equipment being connected with I/O interfaces 23,24 ... 2n is sent is received, the input data is sent to the mobile terminal of connection.
As shown in fig. 6, the extension process unit 22 of above-mentioned I/O expanding units includes:Export extension process subelement 221 and/or input expanding processing subelement 222;
Wherein, output extension process subelement 221, the output data for receiving the mobile terminal that adapted processing unit 21 is connected distributes the output data to the corresponding output equipment of I/O interfaces 23,24 ... 2n connections;
Input expanding handles subelement 222, and for the input data for receiving I/O interfaces 23, the input equipment of 24 ... 2n connections is sent, the input data is sent to the mobile terminal of connection.
As shown in fig. 7, the output extension process subelement 221 of above-mentioned extension process unit 22 includes:Output data receiving module 2211, the second identity reading module 2212 and output data distribution module 2213;
Wherein, output data receiving module 2211, is connected with the second identity reading module 2212, the output data for receiving the mobile terminal that adaptation processing unit 21 is connected;
Second identity reading module 2212, it is connected with output data distribution module 2213, for reading the port type mark in the output data that the output data receiving module 2211 is received, wherein, port type in output data is designated the output data of each I/O ports of mobile terminal, and the port type set by the type of correspondence I/O ports is identified;
Output data distribution module 2213, for the port type mark in the output data that is read according to the second identity reading module 2212, the output data that the output data receiving module 2211 is received is distributed by corresponding I/O interfaces to the output equipment of connection.
Above-mentioned output extension process subelement 221 can also include:Output data parsing module 2214, it is connected respectively with the identity reading module 2212 of output data receiving module 2211 and second, when output data for receiving in the output data receiving module 2211 is output data packet, the output data packet is carried out to parse the output data for obtaining identifying provided with port type.
As shown in figure 8, the input expanding processing subelement 222 of above-mentioned extension process unit 22 includes:Input data receiving module 2221, the second identify and arrange module 2222 and input data sending module 2223;
Wherein, input data receiving module 2221, is connected with the second identify and arrange module 2222, for the input data for receiving I/O interfaces 23, the input equipment of 24 ... 2n connections is sent;
Second identify and arrange module 2222, is connected with input data sending module 2223, and the type that the input data for being received to the input data receiving module 2221 presses correspondence I/O interfaces sets interface type to identify;The interface type mark, the type for indicating the corresponding I/O interfaces of input data;
Input data sending module 2223, for having set the input data after interface type mark to be sent to mobile terminal second identify and arrange module 2222.
Above-mentioned input expanding processing subelement 222 can also include:Packetization module 2224, it is connected respectively with the second identify and arrange module 2222 with input data sending module 2223, for after the second identify and arrange module 2222 sets interface type to identify input data, to having set the input data that interface type is identified to carry out being packed into input data bag, so that the input data sending module 2223 sends the input data bag to mobile terminal.
By the I/O expanding units of the present embodiment, mobile terminal can be made to be connected with outside standard Input/Output Device, extend the I/O mode of mobile terminal, improve the ease for use of mobile terminal input and output.The I/O mode differences for solving existing mobile terminal well are big, nonstandard, it is impossible to using the standard Input/Output Device outside the existing interface connection of mobile terminal, the problem of can not effectively extending mobile terminal I/O mode at present.
Example IV
The present embodiment provides a kind of input and output extended method, it is adaptable to which the I/O expanding units that embodiment three is provided are connected with communication of mobile terminal, when extending the I/O mode of mobile terminal, carries out data exchange, and this method includes:
Step S20, receives the device parameter that input equipment and/or output equipment are sent through I/O interfaces, the device parameter is sent to mobile terminal, completes to initialize after the terminal parameter formation configuration information provided according to the device parameter and terminal for mobile terminal;
Step S21, receives the output data of connected mobile terminal, and output data is distributed by I/O interfaces to the corresponding output equipment that I/O interfaces are connected;
Above-mentioned steps S21 concrete processing procedure can be:
Receive the output data of connected mobile terminal, identified in the output data provided with port type, wherein, the port type being provided with output data is designated the input data of each I/O ports of mobile terminal, and the port type set by the type of correspondence I/O ports is identified;
By provided with port type mark by output data by I/O interfaces to corresponding output equipment distribution connect with I/O interfaces.
In the step s 21, if receiving the output data for output data packet, the output data packet is carried out to parse the output data for obtaining identifying provided with port type;The corresponding output equipment that the output data is connected to I/O interfaces is distributed by the port type mark being provided with again.
And/or,
Step S22, receives the input data that input equipment is sent by the I/O interfaces being connected with input equipment, the input data is sent to the mobile terminal connected.
Above-mentioned steps S22 concrete processing procedure can be:
The input data that input equipment is sent by the I/O interfaces being connected with the input equipment is received, sets interface type to identify the type that the input data presses correspondence I/O interfaces;The interface type mark, the type for indicating the corresponding I/O interfaces of input data;
The input data identified provided with interface type is sent to the mobile terminal connected.
Further it will can also be packed into after input data bag sending to the mobile terminal connected again provided with the input data that interface type is identified.
It is appreciated that the part or all of step in the input and output extended method of the present embodiment, can be realized by programmed instruction related hardware.Described program can be stored in a read/write memory medium, and described storage medium can be ROM/RAM, magnetic disc, CD etc..
Method in the present embodiment, the output data of movable termination sends the output equipment connected to the I/O expanding units by I/O expanding units, and the input data that can send input equipment is sent by the I/O expanding units to mobile terminal, mobile terminal is set easily to connect the input equipment and/or output equipment of outside by I/O expanding units, and carry out input and output using the input equipment and/or output equipment connected, the I/O mode of mobile terminal is extended, the convenience that mobile terminal is used is improved.
Embodiment five
The present embodiment provides a kind of input and output extension system, the system can realize that mobile terminal is connected using I/O expanding units with outside input equipment and/or output equipment, and the input equipment and/or output equipment by connection carry out input and output, extend the I/O mode of mobile terminal, as shown in figure 9, the system includes:Mobile terminal 51 and expanding unit 52;
Wherein, the terminal that mobile terminal 51 can be provided using above-described embodiment one;The I/O expanding units that expanding unit 52 can be provided using above-described embodiment three;
Mobile terminal 51 is communicated to connect with expanding unit 52, expanding unit 52 is used for one or more input equipments and/or output equipment 53,54 ... 57 for connecting outside, mobile terminal 51 and outside input equipment and/or output equipment 53,54 ... 57 communication connections are made by expanding unit 52, and carry out data exchange.
The system extends the I/O mode of mobile terminal 51 by expanding unit 52, improves the ease for use of mobile terminal.
Exemplified by mobile phone is as mobile terminal below, with reference to I/O expanding units provided in an embodiment of the present invention, the process being extended to the I/O mode of mobile phone is realized, the invention will be further described:
Initialization procedure:
As shown in figure 9, mobile terminal 51 and I/O expanding units 52 are communicated to connect, various input equipments and/or output equipment 53,54 ... 57 are connected with I/O expanding units 52.
As shown in Figure 10, mobile terminal with the initializing communication process of I/O expanding units after terminating, and mobile terminal reports the I/O mode for needing the I/O expanding units to support, and configuration parameter automatically, and configuration content include, but are not limited to herein below:Need the I/O mode sum supported, the type of each I/O interface, the resolution ratio of display interface, chromatic characteristic, the decoding rate of COBBAIF, the language form of keyboard interface, the type of coordinate setting interface, sample rate of coordinate setting interface etc.;
I/O expanding units are received after the configuration parameter of mobile terminal reporting, according to the configuration parameter and itself functional parameter of I/O expanding units and the device parameter received, configure suitable parameter, and configuration result is reported to mobile terminal, the parameter of the return likely differs from the parameter that mobile terminal is reported;
Mobile terminal is received after the return configuration information of I/O expanding units, completes the configuration initialization that itself each I/O port data is sent;The adaptation unit of reason mobile terminal is completed herein, and the adaptation unit can use the form of software module, set in the terminal;
After the completion of initialization, the data interaction flow between terminal and I/O expanding units can be moved, it is specific as follows:
I/O expanding units, can be using communication technologys such as bluetooth, wifi, wimax, Wireless USBs 3.0 with the interactive communication mode between mobile terminal, but is not limited to this several ways.
(1)As shown in figure 11, when the output equipment that mobile terminal is connected to I/O expanding units sends the processing of data, data are delivered to I/O expanding units from mobile terminal, and the output equipment of external connection is transferred to through I/O expanding units, and process is as follows:
Receive the output data of each I/O ports of mobile terminal, and identified by the type of corresponding I/O ports to corresponding output data setting port type, the output data of each I/O ports is integrated into output data packet, the expanding element of reason mobile terminal is completed herein, the expanding element can use the form of software module, set in the terminal;
Expanding element sends output data packet to I/O expanding units, the output data packet that the extension process unit resolves of I/O expanding units are received, obtain provided with port type identify each output data, by provided with port type mark by I/O interfaces from each output data to the I/O expanding units connect corresponding output equipment distribution.
(2)As shown in figure 12, outside input equipment passes through the I/O interfaces of connected I/O expanding units and sends the input data for being sent to mobile terminal to I/O expanding units, then is sent input data to mobile terminal by I/O expanding units, and process is as follows:
The extension process unit of I/O expanding units collects the input data of the input equipment of connection from its each I/O interface connected, and the type that correspondence I/O interfaces are pressed to each input data sets interface type to identify;The type of the corresponding I/O interfaces of input data is indicated by interface type;Each input data is integrated into after input data bag and sent by the adaptation processing unit of the I/O expanding units to mobile terminal;Mobile terminal is received after input data bag, and carrying out dissection process to input data bag obtains each input data, is identified according to the interface type set in each input data, each input data is distributed to the corresponding I/O ports of mobile terminal.
Pass through above-mentioned data exchange process, mobile terminal is set easily to connect the standard input device and/or output equipment of outside using the I/O expanding units, and the input and output of terminal can be moved by input equipment and/or output equipment, extend the I/O mode of mobile terminal.
In practice, the function of the I/O expanding unit each units can be realized by each hardware of programmed instruction using the device being made up of the hardware device such as processor, code memory, data storage, dma controller and each standard I/O interface modules and radio receiving transmitting module shown in Figure 13.The hardware circuit of other structures form can also be used, as long as the function that the I/O expanding unit each units are realized by each hardware of programmed instruction can be realized.
In summary, the I/O expanding units provided in the embodiment of the present invention, mobile terminal is set to connect the standard input device and/or output equipment of outside in multiple standards I/O modes by the I/O expanding units, such as QWERTY keyboard, display, the I/O mode of mobile terminal is extended, mobile terminal ease for use and service efficiency is improved.The I/O mode differences for solving existing mobile terminal well are big, nonstandard, it is impossible to utilize the standard input device and/or output equipment outside the interface connection of mobile terminal, it is impossible to the problem of effective I/O modes to mobile terminal are extended.
Certainly, described above is the preferred embodiment of the present invention, it should be pointed out that; for those skilled in the art; under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as protection scope of the present invention.