WO2012022036A1 - 终端、i/o扩展装置、方法及系统 - Google Patents
终端、i/o扩展装置、方法及系统 Download PDFInfo
- Publication number
- WO2012022036A1 WO2012022036A1 PCT/CN2010/076104 CN2010076104W WO2012022036A1 WO 2012022036 A1 WO2012022036 A1 WO 2012022036A1 CN 2010076104 W CN2010076104 W CN 2010076104W WO 2012022036 A1 WO2012022036 A1 WO 2012022036A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- output
- input
- interface
- port
- data
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
Definitions
- the present invention relates to the field of terminal technologies, and in particular, to a terminal, an I/O extension device, a method, and a system for extending an input/output mode.
- the input/output (I/O, Input/Output) mode of the mobile terminal device is relatively simple, and the input and output are generally realized by the keyboard, the display screen and the speaker, and the I/O interface of the external input and/or output device is also connected.
- I/O interfaces the input and output interface of the external input and/or output device is also connected.
- most mobile terminals cannot directly connect to external standard I/O devices, such as the inability to connect to an external standard 101/102 keyboard. Connect to a standard LCD monitor, etc.
- An object of the embodiments of the present invention is to provide a terminal, an I/O extension apparatus, a method, and a system, so that the mobile terminal can be conveniently connected with various external standard I/O devices, thereby effectively expanding the input and output modes of the mobile terminal, thereby Improve the ease of use of mobile terminal input and output.
- An embodiment of the present invention provides a terminal, including: a casing, a communication unit, a processing unit, a circuit board, and a display screen; the communication unit, the processing unit, and the circuit board are disposed in the casing, and the communication unit and the processing unit are disposed in the a circuit board embedded in the casing, the display screen being electrically connected to the processing unit on the circuit board;
- An adaptation unit an expansion unit, and at least one I/O port;
- the I/O port is used for external data exchange by the terminal;
- the adapting unit is configured to receive a terminal parameter reported by the terminal, send the terminal parameter to an I/O extension device connected to the terminal, and receive configuration information sent after the I/O extension device is matched, and pass the configuration information.
- the configuration information is initialized;
- the expansion unit is configured to receive output data of each I/O port after the terminal completes initialization, and send the output data to an output device connected to the I/O expansion device through an I/O expansion device, and/or
- the receiving input device distributes the input data to the corresponding I/O port through the input data sent by the I/O extension device connected to the input device.
- the embodiment of the invention further provides a terminal input and output expansion method, including:
- the terminal includes at least one I/O port for external data exchange by the terminal;
- Receiving output data of each I/O port transmitting the output data to an output device connected to the I/O expansion device through an I/O expansion device; and/or receiving an input device through an I/O extension connected to the input device
- the input data sent by the device distributes the input data to the corresponding I/O port.
- An embodiment of the present invention further provides an I/O expansion apparatus, including: an adaptation processing unit, an extension processing unit, and at least one I/O interface;
- the I/O interface is electrically connected to the extension processing unit for connecting an external input device and/or an output device;
- the adaptation processing unit is configured to receive terminal parameters sent by the mobile terminal, and receive device parameters sent by the input device and/or the output device via the I/O interface, and complete according to the terminal parameters and the device parameters.
- the input device and/or the output device match the parameters of the mobile terminal, form configuration information replied to the mobile terminal, and send the configuration information to the mobile terminal;
- the extension processing unit is configured to: after the adaptation processing unit completes matching with a parameter of the mobile terminal, receive output data sent by the mobile terminal, and distribute the output data to the corresponding output device through the I/O interface, and/or Receiving input data sent by the input device through the I/O interface, and transmitting the input data to the mobile terminal.
- the embodiment of the invention further provides an input and output expansion method, including:
- An embodiment of the present invention further provides an input and output extension system, including:
- a mobile terminal and an I/O expansion device wherein the mobile terminal adopts the above-mentioned terminal; the I/O expansion device adopts the above-mentioned I/O expansion device;
- the mobile terminal is communicatively coupled to the I/O expansion device, the I/O expansion device is configured to be in communication connection with an external input device and/or an output device, and the mobile terminal is externally connected by the I/O expansion device
- the input device and/or the output device are communicatively connected and exchange data.
- the expansion device of the embodiment of the present invention can cooperate with the adaptation processing unit, the extension processing unit and the I/O interface, so that the mobile terminal can connect the external input and output device through the expansion device, and conveniently expand the input and output mode of the mobile terminal, thereby improving the use.
- the convenience and operational efficiency of the mobile terminal can cooperate with the adaptation processing unit, the extension processing unit and the I/O interface, so that the mobile terminal can connect the external input and output device through the expansion device, and conveniently expand the input and output mode of the mobile terminal, thereby improving the use.
- FIG. 1 is a structural block diagram of a terminal according to Embodiment 1 of the present invention.
- FIG. 2 is a structural block diagram of an adaptation unit of a terminal according to Embodiment 1 of the present invention.
- FIG. 3 is a structural block diagram of a transmission extension subunit of an adaptation unit according to Embodiment 1 of the present invention.
- FIG. 4 is a structural block diagram of a receiving extension subunit of an adaptation unit according to Embodiment 1 of the present invention.
- FIG. 5 is a structural block diagram of an I/O expansion apparatus according to Embodiment 2 of the present invention.
- FIG. 6 is a structural block diagram of an extended processing unit of an I/O expansion apparatus according to Embodiment 2 of the present invention.
- FIG. 7 is a structural block diagram of an output extension processing subunit of an extended processing unit according to Embodiment 2 of the present invention.
- FIG. 8 is a structural block diagram of an input extension processing subunit of an extended processing unit according to Embodiment 2 of the present invention.
- FIG. 9 is a schematic diagram of a terminal connected to an input/output device via an I/O extension device according to an embodiment of the present invention.
- FIG. 10 is a flowchart of processing initialization of an I/O extension apparatus and a mobile terminal according to an embodiment of the present invention
- FIG. 11 is a flowchart of processing for transmitting data to an I/O extension apparatus according to an embodiment of the present invention.
- FIG. 12 is a flowchart of processing for sending data to a mobile terminal according to an embodiment of the present invention.
- FIG. 13 is a hardware circuit diagram of an implementation apparatus for implementing an I/O according to an embodiment of the present invention.
- the I/O expansion device provided by the embodiment of the invention can make the mobile terminal conveniently connect the external standard input device and/or the output device, expand the input and output mode of the mobile terminal, and improve the ease of use and the use efficiency of the mobile terminal.
- the embodiment provides a terminal, which can be used as a mobile terminal (such as a mobile phone, a palmtop computer, etc.), and the terminal can be connected to an external input device and/or an output device via an I/O expansion device, as shown in FIG.
- the invention comprises: a casing, a communication unit 1, a processing unit 2, a circuit board and a display screen (wherein the casing, the circuit board and the display screen are not shown in FIG. 1); the communication unit 1, the processing unit 2 and the circuit
- the boards are all disposed in the casing, and the communication unit 1 and the processing unit 2 are disposed on the circuit board; the display screen is embedded on the casing, and the display screen is connected and exchanged with the processing unit 2 on the circuit board.
- Data the terminal further includes: an adaptation unit, an extension unit, and at least one I/O port;
- the I/O port is used for external data exchange by the terminal;
- the adapting unit 3 is configured to receive the terminal parameter reported by the terminal, and receive the device parameter sent by the I/O extension device connected to the terminal, and form configuration information according to the terminal parameter and the device parameter, and complete the configuration information by using the configuration information. initialization;
- the expansion unit 4 is configured to receive output data of each I/O port 5, 6...n after the terminal and the connected I/O expansion device complete parameter matching initialization, and pass the received output data to the I/O extension device. Transmitting to an output device connected to the I/O expansion device, and/or receiving input data sent by the input device through an I/O extension device connected to the input device, and inputting the input data to the corresponding I/O port 5, 6...n distribution.
- the extension unit 4 in the above terminal includes: a transmission extension subunit 41 and/or a reception extension subunit 42;
- the transmission extension sub-unit 41 is configured to receive output data of each I/O port after the terminal and the connected I/O extension device complete parameter matching initialization, and pass the output data to the I/O extension device. Sending to an output device connected to the I/O expansion device;
- the receiving extension subunit 42 is configured to receive input data sent by the input device through the I/O extension device connected to the input device after the terminal and the connected I/O expansion device complete the parameter matching initialization, and input the input device The data is distributed to the corresponding I/O port.
- the transmission extension subunit 41 of the extension unit 4 includes: a data collection module 411, a first identifier setting module 412, and a sending module 413;
- the data collection module 411 is configured to receive output data of each I/O port.
- the first identifier setting module 412 is connected to the data collecting module 411, and configured to set the port type identifier according to the type of the corresponding I/O port to the output data of each I/O port received by the data collecting module 411; the port type identifier Used to indicate the type of I/O port corresponding to the output data;
- the sending module 413 is connected to the first identifier setting module 412, and is configured to send the output data of each I/O port that the first identifier setting module 412 has set the port type identifier to the output device connected to the I/O expansion device.
- the integration processing module 414 may be further connected to the first identifier setting module 412 and the sending module 413, respectively, for setting the port identifier of the first identifier setting module 412.
- the subsequent output data is integrated into an output packet so that the transmitting module 413 transmits the output packet to an output device connected to the I/O expansion device.
- the receiving extension subunit 42 of the extension unit 4 includes: a receiving module 421, a first identifier reading module 422, and a distribution module 423;
- the receiving module 421 is configured to receive input data sent by the input device by the I/O extension device connected to the input device;
- the first identifier reading module 422 is connected to the receiving module 421 and configured to read the interface type identifier in the input data received by the receiving module 421, wherein the interface type identifier in the input data is an I/O extension device connected to the mobile terminal.
- the input data of each I/O interface is identified by the interface type set corresponding to the type of the I/O interface;
- a distribution module 423 connected to the first identifier reading module 422, configured to receive the input data received by the receiving module according to an interface type identifier in the input data read by the first identifier reading module 422. Distribute to the corresponding I/O port.
- the receiving extension sub-unit 42 may further include: a parsing module 424, which is respectively connected to the receiving module 421 and the first identifier reading module 422, and is configured to input the input data received by the receiving module 421 as an input data packet.
- the data packet is parsed to obtain input data of each I/O interface, so that the first identifier reading module 422 reads out the interface type identifier of the input data of each I/O interface.
- each unit in the terminal can be implemented by a hardware module, or can be implemented by a software module of a program instruction related hardware.
- the program may be stored in a readable storage medium, which may be a ROM/RAM, a magnetic disk, an optical disk, or the like.
- the terminal of the embodiment can be connected to an external input device and/or an output device via an I/O expansion device, and input and/or output through an external input device and/or an output device, thereby expanding the input and output mode of the mobile terminal.
- I/O expansion device input and/or output through an external input device and/or an output device
- the embodiment provides a method for extending the input and output of the terminal.
- the method is applicable to the data exchange when the terminal is connected to an external input/output device via the I/O expansion device according to the first embodiment.
- the method includes:
- Step S1 receiving the terminal parameter reported by the terminal, and receiving the device parameter sent by the I/O extension device connected to the terminal, forming configuration information according to the terminal parameter and the device parameter, and completing initialization by using the configuration information;
- the configuration information is used to create a device related information table in the terminal; or, if the device related information table already exists, the existing device related information table is updated by using the configuration information; wherein the terminal includes at least one I/O port, Used for external data exchange by the terminal;
- each I/O port has been connected to some input device and/or output device via the I/O expansion device, which is called initialization of the power-on configuration information.
- the input device and/or the output device are connected to the idle I/O port via the I/O expansion device, or the I/O port of the input device and/or the output device from the adaptation unit.
- the connection is disconnected and the configuration information is updated during the work.
- the purpose of the configuration information initialization at power-on is to create a device-related information table that is currently connected by the adaptation unit.
- each hardware port is queried one by one to determine which ports have connected input devices and/or output devices, and try Interact with the input device and/or the output device in a preset manner to obtain basic information of the input device and/or the output device.
- the device on the display port acquires resolution information, such as a device on the USB port. Get PID, VID, CLASS, SUB similar to USB devices CLASS information, etc., assign corresponding data transfer channels for subsequent adaptation units to work.
- the configuration information is updated after power-on to maintain the working status of each connected input device and/or output device, and to discover the connection and disconnection of the input device and/or the output device in time.
- each hardware port is periodically queried one by one to detect whether there is an input device and/or an output device removed or connected. If the input device and/or the output device are found to be removed, the configuration information corresponding to the input device and/or the output device is deleted from the device related information table to avoid subsequent erroneous operations.
- a corresponding configuration item is created in the device related information table for the input device and/or the output device according to the device initialization mode at the time of power-on, and a corresponding data channel is created. Provided to the input device and / or output device to work properly.
- Step S2 receiving output data of each I/O port, and transmitting the output data to an output device connected to the I/O expansion device through an I/O expansion device;
- the specific processing procedure of the above step S2 may be:
- the port type identifier is used to indicate the type of the I/O port corresponding to the output data
- the output data of the set port type identifier is sent to the output device connected to the I/O expansion device.
- the output data of the set port type identifier is packaged to form an output data packet, and then the output data packet is output to the I/O expansion device. The device sends.
- Step S3 The input device receives the input data sent by the I/O extension device connected to the input device, and distributes the input data to the corresponding I/O port.
- the specific processing procedure of the above step S3 may be:
- the input data is distributed to the corresponding I/O port according to the set interface type identifier.
- step S3 if the input data sent by the input device through the I/O extension device is an input data packet, the received input data packet is parsed to obtain input data of each I/O interface, so as to press each input data.
- the set interface type identifier distributes the input data of each I/O interface to the corresponding I/O port.
- the program may be stored in a readable storage medium, which may be a ROM/RAM, a magnetic disk, an optical disk, or the like.
- the method of the embodiment can implement the mobile terminal to make the mobile terminal pass the I/O expansion device and the external input device and/or the output device when the I/O expansion device is connected to the external input device and/or the output device.
- Data exchange is performed to expand the input and output modes of the mobile terminal, thereby improving the convenience of use of the mobile terminal.
- the embodiment provides an I/O expansion device, which can connect various input devices and/or output devices, such as a standard 101/102 keyboard, a display, a mouse, a tablet, a USB device, etc., and can be connected with a mobile terminal (such as a mobile phone).
- the communication connection enables the mobile terminal to connect with external standard input and/or output devices through the I/O expansion device, and exchange data, expand the input and output mode of the mobile terminal, and improve the convenience of the mobile terminal. Use sex.
- the I/O expansion apparatus includes: an adaptation processing unit 21, an extension processing unit 22, and I/O interfaces 23, 24...2n;
- the I/O interfaces 23, 24...2n are electrically connected to the extension processing unit 22, and are connected to external input devices and/or output devices; the I/O interfaces may be one or more, and generally may be used in the following interfaces. Any one or any of the following, including: PS/2 interface, audio interface, VGA interface, tablet interface, USB interface, etc., through these interfaces, the expansion device can be connected to a mouse, a keyboard, a speaker, a display, a tablet, and each Input and output devices of the USB interface;
- the adaptation processing unit 21 is electrically connected to the extension processing unit 22 and is in communication with the mobile terminal, and can communicate with the mobile terminal by wire or wirelessly, and receives the device sent by the input device and/or the output device via the I/O interface.
- a parameter the device parameter is sent to the mobile terminal, and is used by the mobile terminal to complete the initialization after the configuration information is formed according to the device parameter and the terminal parameter provided by the terminal;
- the extension processing unit 22 is electrically connected to the I/O interfaces 23, 24...2n, and after the adaptation processing unit 21 completes the parameter matching with the mobile terminal, receives the output data of the connected mobile terminal, and correspondingly outputs the output data.
- An output device connected by the I/O interface 23, 24...2n is distributed, and/or receives input data transmitted by an input device connected to the I/O interface 23, 24...2n, and transmits the input data to the connected mobile terminal .
- the extension processing unit 22 of the above I/O expansion apparatus includes: an output extension processing sub-unit 221 and/or an input extension processing sub-unit 222;
- the output extension processing sub-unit 221 is configured to receive output data of the mobile terminal connected by the adaptation processing unit 21, and distribute the output data to a corresponding output device connected to the I/O interface 23, 24...2n;
- the input extension processing sub-unit 222 is configured to receive input data transmitted by an input device connected by the I/O interfaces 23, 24...2n, and transmit the input data to the connected mobile terminal.
- the output extension processing sub-unit 221 of the extension processing unit 22 includes: an output data receiving module 2211, a second identifier reading module 2212, and an output data distribution module 2213;
- the output data receiving module 2211 is connected to the second identifier reading module 2212, and configured to receive output data of the mobile terminal connected to the adaptation processing unit 21;
- the second identifier reading module 2212 is connected to the output data distribution module 2213, and is configured to read a port type identifier in the output data received by the output data receiving module 2211, where the port type identifier in the output data is a mobile
- the output data of each I/O port of the terminal is identified by the port type set corresponding to the type of the I/O port;
- the output data distribution module 2213 is configured to output the output data received by the output data receiving module 2211 to the connected output through the corresponding I/O interface according to the port type identifier in the output data read by the second identifier reading module 2212. Equipment distribution.
- the output extension processing sub-unit 221 may further include: an output data parsing module 2214 connected to the output data receiving module 2211 and the second identifier reading module 2212, respectively, for outputting the output data received by the output data receiving module 2211 as an output.
- the output data packet is parsed to obtain output data having a port type identifier.
- the input extension processing sub-unit 222 of the expansion processing unit 22 includes: an input data receiving module 2221, a second identifier setting module 2222, and an input data transmitting module 2223;
- the input data receiving module 2221 is connected to the second identifier setting module 2222 for receiving input data sent by the input device connected by the I/O interface 23, 24...2n;
- the second identifier setting module 2222 is connected to the input data sending module 2223, and configured to set an interface type identifier according to the type of the corresponding I/O interface to the input data received by the input data receiving module 2221; the interface type identifier is used for Indicate the type of I/O interface corresponding to the input data;
- the input data sending module 2223 is configured to send the input data after the second identifier setting module 2222 has set the interface type identifier to the mobile terminal.
- the input extension processing sub-unit 222 may further include: a packaging module 2224, which is respectively connected to the second identifier setting module 2222 and the input data sending module 2223, for setting the interface type identifier to the input data after the second identifier setting module 2222
- the input data for which the interface type identifier has been set is packaged to form an input data packet, so that the input data transmitting module 2223 transmits the input data packet to the mobile terminal.
- the mobile terminal can be connected to external standard input and output devices, and the input and output modes of the mobile terminal can be expanded to improve the ease of use of the input and output of the mobile terminal. It is a good solution to the problem that the I/O mode of the existing mobile terminal is large and non-standard, and the existing interface of the mobile terminal cannot be connected to the external standard input and output device, and the problem of the input and output mode of the mobile terminal cannot be effectively expanded at present.
- the present embodiment provides an input/output extension method, which is applicable to the I/O extension device provided in the third embodiment, which is in communication connection with the mobile terminal, and performs data exchange when the input/output mode of the mobile terminal is extended.
- the method includes:
- Step S20 Receive device parameters sent by the input device and/or the output device via the I/O interface, and send the device parameter to the mobile terminal, where the mobile terminal forms configuration information according to the device parameter and the terminal parameter provided by the terminal. After the initialization is completed;
- Step S21 receiving output data of the connected mobile terminal, and distributing the output data to the corresponding output device connected to the I/O interface through the I/O interface;
- the specific processing procedure of the above step S21 may be:
- the output data is distributed to the corresponding output device connected to the I/O interface through the I/O interface according to the set port type identifier.
- step S21 if the output data is received as an output data packet, the output data packet is parsed to obtain output data with a port type identifier; and the output data is further directed to I according to the set port type identifier.
- the corresponding output device of the /O interface is distributed.
- Step S22 The input device receives the input data sent by the I/O interface connected to the input device, and sends the input data to the connected mobile terminal.
- the specific processing procedure of the above step S22 may be:
- the interface type identifier is used to indicate the corresponding input data Type of I/O interface
- the input data with the interface type identifier is sent to the connected mobile terminal.
- the input data provided with the interface type identifier may be further packaged to form an input data packet and then transmitted to the connected mobile terminal.
- the program may be stored in a readable storage medium, which may be a ROM/RAM, a magnetic disk, an optical disk, or the like.
- the output data of the mobile terminal is sent to the output device connected to the I/O expansion device through the I/O extension device, and the input data sent by the input device can be sent to the input device through the I/O extension device.
- the mobile terminal transmits, so that the mobile terminal can conveniently connect an external input device and/or an output device through the I/O expansion device, and input and output by using the connected input device and/or output device, thereby expanding the input and output of the mobile terminal. In this way, the convenience of using the mobile terminal is improved.
- the embodiment provides an input/output expansion system, which can realize that the mobile terminal uses an I/O expansion device to connect with an external input device and/or an output device, and performs input and output through the connected input device and/or output device. Expanding the input and output mode of the mobile terminal, as shown in FIG. 9, the system includes: a mobile terminal 51 and an expansion device 52;
- the mobile terminal 51 can adopt the terminal given in the first embodiment;
- the extension device 52 can adopt the I/O expansion device given in the third embodiment;
- the mobile terminal 51 is communicatively coupled to an expansion device 52 for connecting one or more external input devices and/or output devices 53, 54, 57, with the mobile device 51 and the external input device and/or by the expansion device 52. Or the output devices 53, 54, ... 57 are communicatively connected and exchange data.
- the system expands the input and output modes of the mobile terminal 51 by the expansion device 52, thereby improving the usability of the mobile terminal.
- the following mobile phone is taken as a mobile terminal as an example, and the I/O expansion device provided by the embodiment of the present invention is used to implement the process of expanding the input/output mode of the mobile phone, and the present invention is further described:
- the mobile terminal 51 is communicatively coupled to the I/O expansion device 52, and various input devices and/or output devices 53, 54 ... 57 are connected to the I/O expansion device 52.
- the mobile terminal after the mobile terminal terminates the communication process with the I/O extension device, the mobile terminal automatically reports the input/output mode and the configuration parameters that are required to be supported by the I/O extension device, and the configuration content includes, but is not limited to, The following contents: total number of input and output modes to be supported, type of each I/O interface, display interface resolution, color characteristics, audio interface decoding rate, keyboard interface language type, coordinate positioning interface type, coordinate positioning interface Sampling rate, etc.
- the I/O extension device After receiving the configuration parameters reported by the mobile terminal, the I/O extension device configures appropriate parameters according to the configuration parameters, the function parameters of the I/O extension device, and the received device parameters, and reports the configuration result to the mobile terminal.
- the parameters of the reward may be different from the parameters reported by the mobile terminal;
- the mobile terminal After receiving the report configuration information of the I/O extension device, the mobile terminal completes the configuration initialization of the data transmission of each I/O port; here, the adaptation unit of the mobile terminal is completed, and the adaptation unit may be in the form of a software module. Set in the mobile terminal;
- the data interaction process between the mobile terminal and the I/O expansion device can be performed, as follows:
- the communication method between the I/O extension device and the mobile terminal can adopt communication technologies such as Bluetooth, wifi, wimax, and wireless USB 3.0, but is not limited to these methods.
- the extension unit transmits the output data packet to the I/O extension device, and the extension processing unit of the I/O extension device parses the received output data packet to obtain each output data with the port type identifier, and each port type identifier is set according to The output data is distributed to a corresponding output device connected to the I/O interface of the I/O expansion device.
- the external input device transmits the input data transmitted to the mobile terminal to the I/O expansion device through the I/O interface of the connected I/O expansion device, and then passes through the I/O expansion device. Send the input data to the mobile terminal as follows:
- the extended processing unit of the I/O expansion device collects the input data of the connected input device from each I/O interface connected thereto, and sets the interface type identifier according to the type of the corresponding I/O interface for each input data; the input type is marked by the interface type identifier The type of the I/O interface corresponding to the data; the input data is integrated into the input data packet and then sent to the mobile terminal through the adaptation processing unit of the I/O extension device; after receiving the input data packet, the mobile terminal performs the input data packet
- the analysis process obtains each input data, and distributes each input data to the corresponding I/O port of the mobile terminal according to the interface type identifier set in each input data.
- the mobile terminal can conveniently connect the external standard input device and/or the output device by using the I/O expansion device, and can expand and input the input and output of the mobile terminal through the input device and/or the output device. Input and output mode of the mobile terminal.
- a device composed of a processor, a code memory, a data memory, a DMA controller, and various standard I/O interface modules and a wireless transceiver module, as shown in FIG. 13, may be used to implement the hardware by a program instruction.
- the function of each unit of the I/O expansion unit It is also possible to use hardware circuits of other structural forms as long as the functions of the units of the I/O expansion device can be realized by the hardware of the program instructions.
- the I/O expansion apparatus enables the mobile terminal to connect external standard input devices and/or output devices through various I/O modes through the I/O expansion device, such as a standard.
- the keyboard, the display, and the like expand the input and output modes of the mobile terminal, thereby improving the ease of use and efficiency of the mobile terminal. It is a good solution to the problem that the I/O mode of the existing mobile terminal is large and non-standard, and the external standard input device and/or output device cannot be connected by using the interface of the mobile terminal, and the I/O mode of the mobile terminal cannot be effectively expanded. The problem.
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
本发明涉及一种终端、I/O扩展装置、方法及系统,属通信领域。该I/O扩展装置包括:适配处理单元、扩展处理单元和至少一个I/O接口;其中,I/O接口,用于连接外部的输入设备和/或输出设备;适配处理单元用于根据接收的终端参数与设备参数完成参数匹配;扩展处理单元用于与I/O接口电连接,接收适配处理单元发送的输出数据,并分发至各I/O接口所连接的输出设备;及将各输入设备发送的输入数据向适配处理单元发送。该装置可扩展移动终端的输入输出方式,提高终端的易用利性和操作效率。
Description
技术领域
本发明涉及终端技术领域,尤其涉及一种扩展输入输出方式的终端、I/O扩展装置、方法及系统。
发明背景
目前移动终端设备上的输入输出(I/O,Input/Output)方式较单一,一般是通过自带键盘、显示屏、扬声器实现输入输出,连接外部输入和/或输出设备的I/O接口也较少,并且由于各种移动终端上的I/O接口之间的差别较大,因此,多数移动终端无法直接与外部标准的I/O设备连接,如无法连接外部标准的101/102键盘,连接标准的LCD显示器等。为了提供用户在移动终端的使用过程中输入输出的方便性,目前出现了一些全键盘、大屏幕的移动终端,但这种移动终端还是无法满足用户以标准输入输出的方式对移动终端进行使用的需求。如无法使移动终端连接外部标准的101/102键盘进行输入,连接外部的标准LCD显示器进行显示输出等。
因此,在使用移动终端过程中,如何使移动终端方便的与外部的各种标准I/O设备连接来扩展移动终端的输入输出方式是个需要解决的问题。
发明内容
本发明实施例的目的是提供一种终端、I/O扩展装置、方法及系统,使得移动终端可以方便的与外部的各种标准I/O设备连接,有效扩展移动终端的输入输出方式,从而提高移动终端输入输出的易用性。
为实现上述发明目的,提供的技术方案如下:
本发明实施例提供一种终端,包括:机壳、通信单元、处理单元、电路板和显示屏;所述通信单元、处理单元和电路板设置在机壳内,通信单元和处理单元均设置在电路板上;所述显示屏嵌装在机壳上,所述显示屏与所述电路板上的处理单元电连接;还包括:
适配单元、扩展单元和至少一个I/O端口;
所述I/O端口,用于终端对外进行数据交换;
所述适配单元,用于接收该终端上报的终端参数,将所述终端参数向与该终端连接的I/O扩展装置发送,并接收I/O扩展装置匹配完成后发送的配置信息,通过所述配置信息完成初始化;
所述扩展单元,用于在该终端完成初始化后,接收各I/O端口的输出数据,将输出数据通过I/O扩展装置向与该I/O扩展装置连接的输出设备发送,和/或,接收输入设备通过与输入设备连接的I/O扩展装置发送的输入数据,将输入数据向对应的I/O端口分发。
本发明实施例还提供一种终端输入输出扩展方法,包括:
接收终端上报的终端参数,将所述终端参数向与该终端连接的I/O扩展装置发送;并接收I/O扩展装置匹配完成后发送的配置信息,通过所述配置信息完成初始化;其中,所述终端包括至少一个I/O端口,用于终端对外进行数据交换;
接收各I/O端口的输出数据,将输出数据通过I/O扩展装置向与该I/O扩展装置连接的输出设备发送;和/或,接收输入设备通过与输入设备连接的I/O扩展装置发送的输入数据,将输入数据向对应的I/O端口分发。
本发明实施例进一步提供一种I/O扩展装置,包括:适配处理单元、扩展处理单元和至少一个I/O接口;
所述I/O接口,与所述扩展处理单元电连接,用于连接外部的输入设备和/或输出设备;
所述适配处理单元,用于接收移动终端发来的终端参数,以及接收输入设备和/或输出设备经I/O接口发来的设备参数,根据所述终端参数和所述设备参数,完成输入设备和/或输出设备与移动终端的参数匹配,形成向移动终端回复的配置信息并向移动终端发送该配置信息;
所述扩展处理单元,用于在所述适配处理单元完成与移动终端的参数匹配后,接收移动终端发送的输出数据,将输出数据通过I/O接口向对应的输出设备分发,和/或,接收输入设备通过I/O接口发送的输入数据,将输入数据向移动终端发送。
本发明实施例又提供一种输入输出扩展方法,包括:
接收移动终端发来的终端参数,以及接收输入设备和/或输出设备经I/O接口发来的设备参数;
根据接收的终端参数和设备参数,完成输入设备和/或输出设备与移动终端的参数匹配,形成向移动终端回复的配置信息并向移动终端发送该配置信息;
接收移动终端发送的输出数据,将输出数据通过I/O接口向对应的输出设备分发;
接收输入设备通过I/O接口发送的输入数据,将输入数据向移动终端发送。
本发明实施例进一步提供一种输入输出扩展系统,包括:
移动终端和I/O扩展装置;其中,所述移动终端采用上述的终端;所述I/O扩展装置采用上述的I/O扩展装置;
所述移动终端与所述I/O扩展装置通信连接,所述I/O扩展装置用于与外部的输入设备和/或输出设备通信连接,通过所述I/O扩展装置使移动终端与外部的输入设备和/或输出设备通信连接,并进行数据交换。
本发明实施例的扩展装置通过适配处理单元、扩展处理单元和I/O接口配合,可使移动终端通过该扩展装置连接外部的输入输出设备,方便的扩展移动终端的输入输出方式,提高使用移动终端的便利性和操作效率。
附图简要说明
图1为本发明实施例一提供的终端的结构框图;
图2为本发明实施例一提供的终端的适配单元结构框图;
图3为本发明实施例一提供的适配单元的发送扩展子单元结构框图;
图4为本发明实施例一提供的适配单元的接收扩展子单元结构框图;
图5为本发明实施例二提供的I/O扩展装置的结构框图;
图6为本发明实施例二提供的I/O扩展装置的扩展处理单元的结构框图;
图7为本发明实施例二提供的扩展处理单元的输出扩展处理子单元结构框图;
图8为本发明实施例二提供的扩展处理单元的输入扩展处理子单元结构框图;
图9为本发明实施例提供的终端经I/O扩展装置连接输入输出设备示意图;
图10为本发明实施例提供的I/O扩展装置与移动终端初始化的处理流程图;
图11为本发明实施例提供的向I/O扩展装置发送数据的处理流程图;
图12为本发明实施例提供的向移动终端发送数据的处理流程图;
图13为本发明实施例提供的实现I/O扩展装置的硬件电路图。
实施本发明的方式
下面结合附图和具体实施例对本发明作进一步地详细描述。
本发明实施例提供的I/O扩展装置可以使移动终端方便的连接外部标准的输入设备和/或输出设备,扩展了移动终端的输入输出方式,提高了移动终端的易用性和使用效率。
实施例一
本实施例提供一种终端,可作为移动终端(如手机、掌上电脑等),该终端可经I/O扩展装置与外部的输入设备和/或输出设备连接,如图1所示,该终端包括:机壳、通信单元1、处理单元2、电路板和显示屏(其中,机壳、电路板及显示屏未在图1中示出);所述的通信单元1、处理单元2和电路板均设置在机壳内,通信单元1和处理单元2均设置在电路板上;所述的显示屏嵌装在机壳上,所述的显示屏与电路板上的处理单元2连接并交换数据;该终端还包括:适配单元、扩展单元和至少一个I/O端口;
其中,I/O端口用于终端对外进行数据交换;
适配单元3,用于接收该终端上报的终端参数,及接收该终端所连接的I/O扩展装置发送的设备参数,根据所述终端参数和设备参数形成配置信息,通过所述配置信息完成初始化;
扩展单元4,用于在该终端与连接的I/O扩展装置完成参数匹配的初始化后,接收各I/O端口5、6…n的输出数据,将接收的输出数据通过I/O扩展装置向I/O扩展装置连接的输出设备发送,和/或,接收输入设备通过与输入设备连接的I/O扩展装置发送的的输入数据,将所述输入数据向对应的I/O端口5、6…n分发。
如图2所示,上述终端中的扩展单元4包括:发送扩展子单元41和/或接收扩展子单元42;
其中,发送扩展子单元41,在该终端与所连接的I/O扩展装置完成参数匹配的初始化后,用于接收各I/O端口的输出数据,将所述输出数据通过I/O扩展装置向与I/O扩展装置连接的输出设备发送;
接收扩展子单元42,在该终端与所连接的I/O扩展装置完成参数匹配的初始化后,用于接收输入设备通过与输入设备连接的I/O扩展装置发送的输入数据,将所述输入数据向对应的I/O端口分发。
如图3所示,上述扩展单元4的发送扩展子单元41包括:数据收集模块411、第一标识设置模块412和发送模块413;
其中,数据收集模块411,用于接收各I/O端口的输出数据;
第一标识设置模块412,与数据收集模块411连接,用于对数据收集模块411接收的各I/O端口的输出数据,按对应I/O端口的类型设置端口类型标识;所述端口类型标识,用于标明输出数据对应的I/O端口的类型;
发送模块413,与第一标识设置模块412连接,用于将第一标识设置模块412已设置端口类型标识的各I/O端口的输出数据向与I/O扩展装置连接的输出设备发送。
在上述发送扩展子单元41基础上,还可以包括:整合处理模块414,整合处理模块414分别与第一标识设置模块412和发送模块413连接,用于将第一标识设置模块412设置端口类型标识后的输出数据整合为输出数据包,以便发送模块413将所述输出数据包向与I/O扩展装置连接的输出设备发送。
如图4所示,上述扩展单元4的接收扩展子单元42包括:接收模块421、第一标识读取模块422和分发模块423;
其中,接收模块421,用于接收输入设备通过输入设备连接的I/O扩展装置发送的输入数据;
第一标识读取模块422,与接收模块421连接,用于读取接收模块421接收的输入数据中的接口类型标识,其中,输入数据中的接口类型标识为移动终端连接的I/O扩展装置的各I/O接口的输入数据,按对应I/O接口的类型设置的接口类型标识;
分发模块423,与所述第一标识读取模块422连接,用于根据所述第一标识读取模块422读出的输入数据中的接口类型标识,将所述接收模块接收的所述输入数据向对应的I/O端口分发。
上述接收扩展子单元42还可以包括:解析模块424,分别与所述接收模块421和第一标识读取模块422连接,用于在所述接收模块421接收的输入数据为输入数据包时对输入数据包进行解析处理,得到各I/O接口的输入数据,以便第一标识读取模块422读出各I/O接口的输入数据的接口类型标识。
可以理解,该终端中的各单元可用硬件模块来实现,也可通过程序指令相关硬件的软件模块来实现。所述的程序可以存储于一可读取存储介质中,所述的存储介质可以为ROM/RAM、磁碟、光盘等。
本实施例的终端可经I/O扩展装置与外部的输入设备和/或输出设备连接,通过外部的输入设备和/或输出设备进行输入和/或输出,扩展了移动终端的输入输出方式,提高了该终端使用的易用性和操作的便利性。
实施例二
本实施例提供一种终端的输入输出扩展方法,适用于实施例一给出的终端经I/O扩展装置与外部的输入输出设备连接时,进行数据交换,该方法包括:
步骤S1,接收终端上报的终端参数,及接收终端所连接的I/O扩展装置发送的设备参数,根据所述终端参数和设备参数形成配置信息,通过所述配置信息完成初始化;具体是通过所述配置信息在终端中创建设备相关信息表;或者,若设备相关信息表已存在,则通过所述配置信息更新已存在的设备相关信息表;其中,所述终端包括至少一个I/O端口,用于终端对外进行数据交换;
上述通过配置信息完成初始化的过程涉及以下两种情况:
(1)适配单元上电前,各个I/O端口经I/O扩展装置已经连接了一些输入设备和/或输出设备,称为上电配置信息初始化。
(2)适配单元上电后,输入设备和/或输出设备经I/O扩展装置连接到空闲的I/O端口上,或者输入设备和/或输出设备从适配单元的I/O端口上断开连接,工作中配置信息更新。
上电时配置信息初始化的目的是创建一个当前适配单元连接的设备相关信息表,适配单元上电后会逐一查询各个硬件端口,判断哪些端口有连接输入设备和/或输出设备,并尝试用预先设置的方式同输入设备和/或输出设备进行交互,获取输入设备和/或输出设备基本信息,如显示端口上的设备就会获取如分辨率信息等,如USB端口上的设备就会获取类似USB设备的PID,VID,CLASS,SUB
CLASS信息等,分配对应的数据传递通道,供后续适配单元工作。
上电后配置信息的更新是为了维护连接的各输入设备和/或输出设备的工作状态,及时发现输入设备和/或输出设备的连接和断开。适配单元工作中会定时逐一查询各个硬件端口,检测是否有输入设备和/或输出设备移除或者连接。如果发现输入设备和/或输出设备移除,就将该输入设备和/或输出设备对应的配置信息从设备相关信息表中删除,避免后续错误操作。当发现有新输入设备和/或输出设备连接后,依照上电时设备初始化方式,为该输入设备和/或输出设备在设备相关信息表中创建对应的配置项,并创建对应的数据通道,提供给该输入设备和/或输出设备正常工作。
步骤S2,接收各I/O端口的输出数据,将输出数据通过I/O扩展装置向与该I/O扩展装置连接的输出设备发送;
上述步骤S2的具体处理过程可以是:
接收各I/O端口的输出数据,对所述输出数据按对应I/O端口的类型设置端口类型标识;所述端口类型标识,用于标明输出数据对应的I/O端口的类型;
将已设置端口类型标识的输出数据向与I/O扩展装置连接的输出设备发送。也可以在对输出数据按对应I/O端口的类型设置端口类型标识后,将已设置端口类型标识的输出数据打包形成输出数据包,再将输出数据包向与I/O扩展装置连接的输出设备发送。
和/或,
步骤S3,接收输入设备通过与输入设备连接的I/O扩展装置发送的输入数据,将所述输入数据向对应的I/O端口分发。
上述步骤S3的具体处理过程可以是:
接收输入设备通过输入设备连接的I/O扩展装置发送的输入数据,所述输入数据设有接口类型标识,其中,输入数据设有的接口类型标识为与移动终端连接的I/O扩展装置的各I/O接口的输入数据,按对应I/O接口的类型设置的接口类型标识;
按设置的接口类型标识将所述输入数据向对应的I/O端口分发。
上述步骤S3中,若接收输入设备通过I/O扩展装置发送的输入数据为输入数据包时,则对接收的输入数据包进行解析得到各I/O接口的输入数据,以便按各输入数据中设置的接口类型标识将各I/O接口的输入数据向对应的I/O端口分发。
可以理解,本实施例的终端的输入输出扩展方法中的部分或全部步骤,均可通过程序指令相关的硬件来实现。所述的程序可以存储于一可读取存储介质中,所述的存储介质可以为ROM/RAM、磁碟、光盘等。
本实施例的方法,可实现移动终端在经I/O扩展装置与外部的输入设备和/或输出设备进行连接时,使移动终端通过I/O扩展装置与外部的输入设备和/或输出设备进行数据交换,扩展了移动终端的输入输出方式,提高了移动终端的使用的便利性。
实施例三
本实施例提供一种I/O扩展装置,能连接多种输入设备和/或输出设备,如标准101/102键盘、显示器、鼠标、手写板、USB设备等,并可与移动终端(如手机、掌上电脑等)通信连接,使移动终端通过该I/O扩展装置与外部的标准输入和/或输出设备实现连接,并进行数据交换,扩展移动终端的输入输出方式,提高了移动终端的易用性。
如图5所示,该I/O扩展装置包括:适配处理单元21、扩展处理单元22和I/O接口23、24…2n;
其中,I/O接口23、24…2n,与扩展处理单元22电连接,连接外部的输入设备和/或输出设备;I/O接口可以是一个或多个,一般可采用下述接口中的任一种或任意几种,包括:PS/2接口、音频接口、VGA接口、手写板接口、USB接口等,通过这些接口可以使该扩展装置连接鼠标、键盘、音箱、显示器、手写板及各种USB接口的输入、输出设备等;
适配处理单元21与扩展处理单元22电连接,并与移动终端通信连接,可通过有线方式或者无线方式与移动终端进行通信,接收输入设备和/或输出设备经I/O接口发来的设备参数,将所述设备参数向移动终端发送,用于移动终端根据所述设备参数及终端提供的终端参数形成配置信息后完成初始化;
扩展处理单元22,与I/O接口23、24…2n电连接,在适配处理单元21完成与移动终端的参数匹配后,接收所连接的移动终端的输出数据,将所述输出数据向对应I/O接口23、24…2n连接的输出设备分发,和/或,接收与I/O接口23、24…2n连接的输入设备发送的输入数据,将所述输入数据向连接的移动终端发送。
如图6所示,上述I/O扩展装置的扩展处理单元22包括:输出扩展处理子单元221和/或输入扩展处理子单元222;
其中,输出扩展处理子单元221,用于接收经适配处理单元21连接的移动终端的输出数据,将所述输出数据向I/O接口23、24…2n连接的对应输出设备分发;
输入扩展处理子单元222,用于接收I/O接口23、24…2n连接的输入设备发送的输入数据,将所述输入数据向连接的移动终端发送。
如图7所示,上述扩展处理单元22的输出扩展处理子单元221包括:输出数据接收模块2211、第二标识读取模块2212和输出数据分发模块2213;
其中,输出数据接收模块2211,与第二标识读取模块2212连接,用于接收适配处理单元21所连接的移动终端的输出数据;
所述第二标识读取模块2212,与输出数据分发模块2213连接,用于读取所述输出数据接收模块2211接收的输出数据中的端口类型标识,其中,输出数据中的端口类型标识为移动终端的各I/O端口的输出数据,按对应I/O端口的类型设置的端口类型标识;
输出数据分发模块2213,用于根据第二标识读取模块2212读出的输出数据中的端口类型标识,将所述输出数据接收模块2211接收的输出数据通过对应的I/O接口向连接的输出设备分发。
上述输出扩展处理子单元221还可以包括:输出数据解析模块2214,分别与输出数据接收模块2211和第二标识读取模块2212连接,用于在所述输出数据接收模块2211接收的输出数据为输出数据包时,对所述输出数据包进行解析得到设有端口类型标识的输出数据。
如图8所示,上述扩展处理单元22的输入扩展处理子单元222包括:输入数据接收模块2221、第二标识设置模块2222和输入数据发送模块2223;
其中,输入数据接收模块2221,与第二标识设置模块2222连接,用于接收I/O接口23、24…2n连接的输入设备发送的输入数据;
第二标识设置模块2222,与输入数据发送模块2223连接,用于对所述输入数据接收模块2221接收的输入数据按对应I/O接口的类型设置接口类型标识;所述接口类型标识,用于标明输入数据对应的I/O接口的类型;
输入数据发送模块2223,用于将所述第二标识设置模块2222已设置接口类型标识后的输入数据向移动终端发送。
上述的输入扩展处理子单元222还可以包括:打包模块2224,分别与第二标识设置模块2222与输入数据发送模块2223连接,用于在第二标识设置模块2222对输入数据设置接口类型标识后,对已设置接口类型标识的输入数据进行打包形成输入数据包,以便所述输入数据发送模块2223将所述输入数据包向移动终端发送。
通过本实施例的I/O扩展装置,可使移动终端与外部的标准输入、输出设备连接,扩展移动终端的输入输出方式,提高移动终端输入输出的易用性。很好的解决了现有的移动终端的I/O方式差异大、不标准,无法利用移动终端现有的接口连接外部的标准输入、输出设备,目前无法有效扩展移动终端输入输出方式的问题。
实施例四
本实施例提供一种输入输出扩展方法,适用于实施例三给出的I/O扩展装置与移动终端通信连接,扩展移动终端的输入输出方式时,进行数据交换,该方法包括:
步骤S20,接收输入设备和/或输出设备经I/O接口发来的设备参数,将所述设备参数向移动终端发送,用于移动终端根据所述设备参数及终端提供的终端参数形成配置信息后完成初始化;
步骤S21,接收所连接的移动终端的输出数据,将输出数据通过I/O接口向与I/O接口连接的对应输出设备分发;
上述步骤S21的具体处理过程可以是:
接收所连接的移动终端的输出数据,所述输出数据中设有端口类型标识,其中,输出数据中设有的端口类型标识为移动终端各I/O端口的输入数据,按对应I/O端口的类型设置的端口类型标识;
按设有的端口类型标识将输出数据通过I/O接口向与I/O接口连接的对应的输出设备分发。
在步骤S21中,若接收所述输出数据为输出数据包,则对所述输出数据包进行解析得到设有端口类型标识的输出数据;再按设有的端口类型标识将所述输出数据向I/O接口连接的对应输出设备分发。
和/或,
步骤S22,接收输入设备通过与输入设备连接的I/O接口发送的输入数据,将所述输入数据向所连接的移动终端发送。
上述步骤S22的具体处理过程可以是:
接收输入设备通过与该输入设备连接的I/O接口发送的输入数据,对所述输入数据按对应I/O接口的类型设置接口类型标识;所述接口类型标识,用于标明输入数据对应的I/O接口的类型;
将设有接口类型标识的输入数据向所连接的移动终端发送。
也可以进一步将设有接口类型标识的输入数据打包形成输入数据包后再向所连接的移动终端发送。
可以理解,本实施例的输入输出扩展方法中的部分或全部步骤,均可通过程序指令相关硬件来实现。所述的程序可以存储于一可读取存储介质中,所述的存储介质可以为ROM/RAM、磁碟、光盘等。
本实施例中的方法,可移动终端的输出数据通过I/O扩展装置发送至该I/O扩展装置所连接的输出设备,并可将输入设备发送的输入数据通过该I/O扩展装置向移动终端发送,使移动终端通过I/O扩展装置可以方便的连接外部的输入设备和/或输出设备,并利用所连接的输入设备和/或输出设备进行输入输出,扩展了移动终端的输入输出方式,提高了移动终端使用的便利性。
实施例五
本实施例提供一种输入输出扩展系统,该系统可实现移动终端利用I/O扩展装置与外部的输入设备和/或输出设备连接,并通过连接的输入设备和/或输出设备进行输入输出,扩展移动终端的输入输出方式,如图9所示,该系统包括:移动终端51和扩展装置52;
其中,移动终端51可采用上述实施例一给出的终端;扩展装置52可采用上述实施例三给出的I/O扩展装置;
移动终端51与扩展装置52通信连接,扩展装置52用于连接外部的一个或多个输入设备和/或输出设备53、54…57,通过扩展装置52使移动终端51与外部的输入设备和/或输出设备53、54…57通信连接,并进行数据交换。
该系统通过扩展装置52扩展了移动终端51的输入输出方式,提高了移动终端的易用性。
下面手机作为移动终端为例,结合用本发明实施例提供的I/O扩展装置,实现对手机的输入输出方式进行扩展的过程,对本发明作进一步说明:
初始化过程:
如图9所示,移动终端51与I/O扩展装置52通信连接,I/O扩展装置52上连接有各种输入设备和/或输出设备53、54…57。
如图10所示,移动终端在与I/O扩展装置的初始化通信过程结束后,移动终端自动上报需要该I/O扩展装置支持的输入输出方式,以及配置参数,配置内容包含,但不限于以下内容:需要支持的输入输出方式总数,各个I/O接口的类型,显示接口的分辨率,色彩特性,音频接口的解码率,键盘接口的语言类型,坐标定位接口的类型,坐标定位接口的采样率等等;
I/O扩展装置接收到移动终端上报的配置参数后,根据所述配置参数及该I/O扩展装置自身功能参数和接收的设备参数,配置合适的参数,并将配置结果回报至移动终端,该回报的参数可能不同于移动终端所上报的参数;
移动终端接收到I/O扩展装置的回报配置信息后,完成自身各I/O端口数据发送的配置初始化;此处理由移动终端的适配单元完成,该适配单元可采用软件模块的形式,设置在移动终端中;
初始化完成后,可进行移动终端与I/O扩展装置之间的数据交互流程,具体如下:
I/O扩展装置同移动终端之间的交互通信方式,可采用蓝牙、wifi、wimax、无线USB3.0等通信技术,但不限于这几种方式。
(1)如图11所示,移动终端向I/O扩展装置所连接的输出设备发送数据的处理时,数据从移动终端传递到I/O扩展装置,经I/O扩展装置传递至外部连接的输出设备,过程如下:
接收移动终端的各I/O端口的输出数据,并按对应的I/O端口的类型给相应的输出数据设置端口类型标识,将各I/O端口的输出数据整合为输出数据包,此处理由移动终端的扩展单元完成,该扩展单元可采用软件模块的形式,设置在移动终端中;
扩展单元将输出数据包向I/O扩展装置发送,I/O扩展装置的扩展处理单元解析接收的输出数据包,得到设有端口类型标识的各输出数据,按设有的端口类型标识将各输出数据向该I/O扩展装置的I/O接口连接的对应输出设备分发。
(2)如图12所示,外部的输入设备通过所连接的I/O扩展装置的I/O接口将发送给移动终端的输入数据发送至I/O扩展装置,再通过I/O扩展装置将输入数据向移动终端发送,过程如下:
I/O扩展装置的扩展处理单元从其连接的各I/O接口收集连接的输入设备的输入数据,对各输入数据按对应I/O接口的类型设置接口类型标识;通过接口类型标识标明输入数据对应的I/O接口的类型;将各输入数据整合为输入数据包后通过该I/O扩展装置的适配处理单元向移动终端发送;移动终端接收输入数据包后,对输入数据包进行解析处理得到各输入数据,根据各输入数据中设置的接口类型标识,将各输入数据向移动终端的对应I/O端口分发。
通过上述数据交互过程,使移动终端可利用该I/O扩展装置方便的连接外部的标准输入设备和/或输出设备,并可通过输入设备和/或输出设备进行移动终端的输入输出,扩展了移动终端的输入输出方式。
实际中,可采用图13所示的由处理器、代码存储器、数据存储器、DMA控制器和各个标准I/O接口模块及无线收发模块等硬件器件构成的装置,通过程序指令各硬件来实现该I/O扩展装置各单元的功能。也可以采用其它结构形式的硬件电路,只要能实现通过程序指令各硬件实现该I/O扩展装置各单元的功能即可。
综上所述,本发明实施例中提供的I/O扩展装置,使移动终端通过该I/O扩展装置可以多种标准I/O方式连接外部的标准输入设备和/或输出设备,如标准键盘、显示器等,扩展了移动终端的输入输出方式,提高了移动终端易用性和使用效率。很好的解决了现有移动终端的I/O方式差异大、不标准,无法利用移动终端的接口连接外部的标准输入设备和/或输出设备,不能有效对移动终端的I/O方式进行扩展的问题。
当然,以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。
Claims (25)
- 一种终端,包括:机壳、通信单元、处理单元、电路板和显示屏;所述通信单元、处理单元和电路板设置在机壳内,通信单元和处理单元均设置在电路板上;所述显示屏嵌装在机壳上,所述显示屏与所述电路板上的处理单元电连接;其特征在于,还包括:适配单元、扩展单元和至少一个I/O端口;所述I/O端口,用于终端对外进行数据交换;所述适配单元,用于接收该终端上报的终端参数,及接收该终端所连接的I/O扩展装置发送的设备参数,根据所述终端参数和设备参数形成配置信息,通过所述配置信息完成初始化;所述扩展单元,用于在该终端完成初始化后,接收各I/O端口的输出数据,将输出数据通过I/O扩展装置向与该I/O扩展装置连接的输出设备发送,和/或,接收输入设备通过与输入设备连接的I/O扩展装置发送的输入数据,将输入数据向对应的I/O接口分发。
- 根据权利要求1所述的终端,其特征在于,所述扩展单元包括:发送扩展子单元和/或接收扩展子单元;所述发送扩展子单元,在该终端与所连接的I/O扩展装置完成参数匹配的初始化后,用于接收各I/O端口的输出数据,将所述输出数据通过I/O扩展装置向与该I/O扩展装置连接的输出设备发送;所述接收扩展子单元,在该终端与所连接的I/O扩展装置完成参数匹配的初始化后,用于接收输入设备通过与输入设备连接的I/O扩展装置发送的输入数据,将所述输入数据向对应的I/O端口分发。
- 根据权利要求2所述的终端,其特征在于:所述发送扩展子单元包括:数据收集模块、第一标识设置模块和发送模块;所述数据收集模块,用于接收各I/O端口的输出数据;所述第一标识设置模块,用于对所述数据收集模块接收的各I/O端口的输出数据,按对应I/O端口的类型设置端口类型标识;所述端口类型标识,用于标明输出数据对应的I/O端口的类型;所述发送模块,用于将所述第一标识设置模块已设置端口类型标识的各I/O端口的输出数据向与I/O扩展装置连接的输出设备发送。
- 根据权利要求3所述的终端,其特征在于:所述发送扩展子单元还包括:整合处理模块,用于将所述第一标识设置模块设置端口类型标识后的输出数据整合为输出数据包,以便所述发送模块将所述输出数据包向与I/O扩展装置连接的输出设备发送。
- 根据权利要求2所述的终端,其特征在于:所述接收扩展子单元包括:接收模块、第一标识读取模块和分发模块;所述接收模块,用于接收输入设备通过I/O扩展装置发送的输入数据;所述第一标识读取模块,用于读取所述接收模块接收的输入数据中的接口类型标识,其中,输入数据中的接口类型标识为各I/O端口的输入数据,按对应I/O接口的类型设置的接口类型标识;所述分发模块,用于根据所述第一标识读取模块读出的输入数据中的端口类型标识,将所述接收模块接收的所述输入数据向对应的I/O端口分发。
- 根据权利要求5所述的终端,其特征在于:所述接收扩展子单元还包括:解析模块,用于在所述接收模块接收的输入数据为输入数据包时对输入数据包进行解析处理,得到各I/O接口的输入数据,以便所述第一标识读取模块读出各I/O接口的输入数据的接口类型标识。
- 一种终端输入输出扩展方法,其特征在于,包括:接收终端上报的终端参数,及接收终端所连接的I/O扩展装置发送的设备参数,根据所述终端参数和设备参数形成配置信息,通过所述配置信息完成初始化;其中,所述终端包括至少一个I/O端口,用于终端对外进行数据交换;接收各I/O端口的输出数据,将输出数据通过I/O扩展装置向与该I/O扩展装置连接的输出设备发送;和/或,接收输入设备通过与输入设备连接的I/O扩展装置发送的输入数据,将输入数据向对应的I/O端口分发。
- 根据权利要求7所述的方法,其特征在于,所述接收各I/O端口的输出数据,将输出数据通过I/O扩展装置向与该I/O扩展装置连接的输出设备发送包括:接收各I/O端口的输出数据,对所述输出数据按对应I/O端口的类型设置端口类型标识;所述端口类型标识,用于标明输出数据对应的I/O端口的类型;将已设置端口类型标识后的输出数据向与I/O扩展装置连接的输出设备发送。
- 根据权利要求8所述的方法,其特征在于,所述方法还包括:在对所述输出数据按对应I/O端口的类型设置端口类型标识后,将已设置端口类型标识的输出数据打包形成输出数据包,再将所述输出数据包向与I/O扩展装置连接的输出设备发送。
- 根据权利要求7所述的方法,其特征在于,所述接收输入设备通过与输入设备连接的I/O扩展装置发送的输入数据,将输入数据向对应的I/O端口分发包括:接收输入设备通过输入设备连接的I/O扩展装置发送的输入数据,所述输入数据设有接口类型标识,其中,输入数据设有的接口类型标识为各I/O接口的输入数据,按对应I/O接口的类型设置的接口类型标识;按设置的接口类型标识将所述输入数据向对应的I/O端口分发。
- 根据权利要求10所述的输入输出扩展方法,其特征在于,在所述输入数据为输入数据包时,所述方法还包括:对接收的所述输入数据包进行解析得到各I/O接口的输入数据,以便按各输入数据中设置的接口类型标识将各I/O接口的输入数据向对应的I/O端口分发。
- 根据权利要求7所述的输入输出扩展方法,其特征在于,所述通过所述配置信息完成初始化包括:通过所述配置信息在终端中创建设备相关信息表;或者,若设备相关信息表已存在,则通过所述配置信息更新已存在的设备相关信息表。
- 一种I/O扩展装置,其特征在于,包括:适配处理单元、扩展处理单元和至少一个I/O接口;所述I/O接口,与所述扩展处理单元电连接,用于连接外部的输入设备和/或输出设备;所述适配处理单元,用于接收输入设备和/或输出设备经I/O接口发来的设备参数,将所述设备参数向移动终端发送,用于移动终端根据所述设备参数形成配置信息后完成初始化;所述扩展处理单元,用于在所述适配处理单元完成与移动终端的参数匹配后,接收移动终端发送的输出数据,将输出数据通过I/O接口向对应的输出设备分发,和/或,接收输入设备通过I/O接口发送的输入数据,将输入数据向移动终端发送。
- 根据权利要求13所述的I/O扩展装置,其特征在于:所述扩展处理单元包括:输出扩展处理子单元和/或输入扩展处理子单元;所述输出扩展处理子单元,用于接收移动终端发送的输出数据,将所述输出数据通过I/O接口向与I/O接口连接的对应的输出设备分发;所述输入扩展处理子单元,用于接收输入设备通过输入设备连接的I/O接口发送的输入数据,将所述输入数据向移动终端发送。
- 根据权利要求14所述的I/O扩展装置,其特征在于:所述输出扩展处理子单元包括:输出数据接收模块、第二标识读取模块和输出数据分发模块;所述输出数据接收模块,用于接收移动终端发送的输出数据;所述第二标识读取模块,用于读取所述输出数据接收模块接收的输出数据中的端口类型标识,其中,输出数据中的端口类型标识为各I/O端口的输出数据,按对应I/O端口的类型设置的端口类型标识;所述输出数据分发模块,用于根据第二标识读取模块读出的输出数据中的端口类型标识,将所述输出数据接收模块接收的输出数据通过对应的I/O接口向输出设备分发。
- 根据权利要求15所述的I/O扩展装置,其特征在于,所述输出扩展处理子单元还包括:输出数据解析模块,用于在所述输出数据接收模块接收的输出数据为输出数据包时,对所述输出数据包进行解析得到设有端口类型标识的输出数据。
- 根据权利要求14所述的I/O扩展装置,其特征在于:所述输入扩展处理子单元包括:输入数据接收模块、第二标识设置模块和输入数据发送模块;所述输入数据接收模块,用于通过I/O接口接收输入设备发送的输入数据;所述第二标识设置模块,用于对所述输入数据接收模块接收的输入数据按对应I/O接口的类型设置接口类型标识;所述接口类型标识,用于标明输入数据对应的I/O接口的类型;所述输入数据发送模块,用于将所述第二标识设置模块已设置接口类型标识的输入数据向移动终端发送。
- 根据权利要求17所述的I/O扩展装置,其特征在于:所述输入扩展处理子单元还包括:打包模块,用于在所述第二标识设置模块对输入数据设置接口类型标识后,对已设置接口类型标识的输入数据进行打包形成输入数据包,以便所述输入数据发送模块将所述输入数据包向移动终端发送。
- 根据权利要求15所述的I/O扩展装置,其特征在于:所述I/O扩展装置通过有线方式或者无线方式与所述移动终端进行通信;所述I/O端口包括:PS/2接口、音频接口、VGA接口、手写板接口、USB接口中的任一个或任意几个。
- 一种输入输出扩展方法,其特征在于,包括:接收输入设备和/或输出设备经I/O接口发来的设备参数,将所述设备参数向移动终端发送,用于移动终端根据所述设备参数形成配置信息后完成初始化;接收移动终端发送的输出数据,将输出数据通过I/O接口向对应的输出设备分发;和/或,接收输入设备通过I/O接口发送的输入数据,将输入数据向移动终端发送。
- 根据权利要求20所述的输入输出扩展方法,其特征在于,所述接收移动终端发送的输出数据,将输出数据通过I/O接口向对应的输出设备分发包括:接收移动终端的输出数据,所述输出数据中设有端口类型标识,其中,输出数据中设有的端口类型标识为各I/O端口的输出数据,按对应I/O端口的类型设置的端口类型标识;按设有的端口类型标识将所述输出数据通过I/O接口向与I/O接口连接的对应的输出设备分发。
- 根据权利要求21所述的输入输出扩展方法,其特征在于,在所述输出数据为输出数据包时,所述方法还包括:接收移动终端的输出数据包,对所述输出数据包进行解析得到设有端口类型标识的输出数据;按设有的端口类型标识将所述输出数据通过I/O接口向对应的输出设备分发。
- 根据权利要求20所述的输入输出扩展方法,其特征在于,所述接收输入设备通过I/O接口发送的输入数据,将输入数据向移动终端发送包括:接收输入设备通过与输入设备连接的I/O接口发送的输入数据,对所述输入数据按对应I/O接口的类型设置接口类型标识;所述接口类型标识,用于标明输入数据对应的I/O接口的类型;将设有接口类型标识的输入数据向移动终端发送。
- 根据权利要求23所述的输入输出扩展方法,其特征在于:所述方法还包括:将设有的接口类型标识的输入数据打包形成输入数据包后向移动终端发送。
- 一种输入输出扩展系统,其特征在于,包括:移动终端和I/O扩展装置;其中,所述移动终端采用权利要求1~6任一项所述的终端;所述I/O扩展装置采用权利要求12~18任一项所述的I/O扩展装置;所述移动终端与所述I/O扩展装置通信连接,所述I/O扩展装置用于与外部的输入设备和/或输出设备通信连接,通过所述I/O扩展装置使移动终端与外部的输入设备和/或输出设备通信连接,并进行数据交换。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201080061117.0A CN102713795B (zh) | 2010-08-18 | 2010-08-18 | 终端、i/o扩展装置、方法及系统 |
| PCT/CN2010/076104 WO2012022036A1 (zh) | 2010-08-18 | 2010-08-18 | 终端、i/o扩展装置、方法及系统 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2010/076104 WO2012022036A1 (zh) | 2010-08-18 | 2010-08-18 | 终端、i/o扩展装置、方法及系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2012022036A1 true WO2012022036A1 (zh) | 2012-02-23 |
Family
ID=45604690
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2010/076104 Ceased WO2012022036A1 (zh) | 2010-08-18 | 2010-08-18 | 终端、i/o扩展装置、方法及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102713795B (zh) |
| WO (1) | WO2012022036A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104881120A (zh) * | 2015-05-27 | 2015-09-02 | 小米科技有限责任公司 | 连接外接设备的方法及装置 |
| CN104820644B (zh) * | 2015-04-30 | 2018-07-27 | 武汉大学 | 一种非分时端口复用方法及装置 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10248601B2 (en) * | 2014-03-27 | 2019-04-02 | Honeywell International Inc. | Remote terminal unit (RTU) with universal input/output (UIO) and related method |
| CN111510820B (zh) * | 2020-03-11 | 2022-04-26 | 杭州楷知科技有限公司 | 麦克风设备扩展方法、装置及麦克风设备同步方法、装置 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6580422B1 (en) * | 1995-04-27 | 2003-06-17 | Hewlett-Packard Development Company, L.P. | Remote computer display using graphics primitives sent over a wireless link |
| EP1858238A2 (en) * | 2006-05-18 | 2007-11-21 | Samsung Electronics Co., Ltd. | Display method and system for portable device using external display device |
| CN101408780A (zh) * | 2007-10-12 | 2009-04-15 | 纬创资通股份有限公司 | 可扩充使用功能的便携式电脑系统 |
| CN101587464A (zh) * | 2008-05-20 | 2009-11-25 | 李明 | 一种实现智能手机扩展的装置 |
| CN101661313A (zh) * | 2009-09-10 | 2010-03-03 | 孙倩倩 | 便携式智能工具输入输出扩展设备及其配套设备和应用 |
| CN201422128Y (zh) * | 2009-04-22 | 2010-03-10 | 厦门三五互联科技股份有限公司 | 一种实现智能移动电话与标准显示器间信号转换的适配器 |
| CN101794172A (zh) * | 2010-02-22 | 2010-08-04 | 胡轶 | 一种智能移动终端交互扩展的方法及装置 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101424958A (zh) * | 2007-11-02 | 2009-05-06 | 乐金电子(昆山)电脑有限公司 | 便携式终端的功能扩展装置及其方法 |
| CN201323607Y (zh) * | 2008-12-26 | 2009-10-07 | 中国移动通信集团公司 | 用于扩展移动终端功能的适配器 |
-
2010
- 2010-08-18 CN CN201080061117.0A patent/CN102713795B/zh active Active
- 2010-08-18 WO PCT/CN2010/076104 patent/WO2012022036A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6580422B1 (en) * | 1995-04-27 | 2003-06-17 | Hewlett-Packard Development Company, L.P. | Remote computer display using graphics primitives sent over a wireless link |
| EP1858238A2 (en) * | 2006-05-18 | 2007-11-21 | Samsung Electronics Co., Ltd. | Display method and system for portable device using external display device |
| CN101408780A (zh) * | 2007-10-12 | 2009-04-15 | 纬创资通股份有限公司 | 可扩充使用功能的便携式电脑系统 |
| CN101587464A (zh) * | 2008-05-20 | 2009-11-25 | 李明 | 一种实现智能手机扩展的装置 |
| CN201422128Y (zh) * | 2009-04-22 | 2010-03-10 | 厦门三五互联科技股份有限公司 | 一种实现智能移动电话与标准显示器间信号转换的适配器 |
| CN101661313A (zh) * | 2009-09-10 | 2010-03-03 | 孙倩倩 | 便携式智能工具输入输出扩展设备及其配套设备和应用 |
| CN101794172A (zh) * | 2010-02-22 | 2010-08-04 | 胡轶 | 一种智能移动终端交互扩展的方法及装置 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104820644B (zh) * | 2015-04-30 | 2018-07-27 | 武汉大学 | 一种非分时端口复用方法及装置 |
| CN104881120A (zh) * | 2015-05-27 | 2015-09-02 | 小米科技有限责任公司 | 连接外接设备的方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102713795A (zh) | 2012-10-03 |
| CN102713795B (zh) | 2015-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020180042A1 (en) | Electronic device for transmitting response message in bluetooth network environment and method thereof | |
| WO2018076841A1 (zh) | 数据分享方法、装置、存储介质及服务器 | |
| WO2020199332A1 (zh) | 家电设备的联网控制方法、模块、控制终端、终端及介质 | |
| WO2019108001A1 (ko) | 무선 통신 시스템에서 데이터를 송수신하는 전자 장치 및 이를 위한 방법 | |
| WO2018076865A1 (zh) | 数据分享方法、装置、存储介质及电子设备 | |
| WO2018233352A1 (zh) | 数据传输方法、装置、终端以及计算机可读存储介质 | |
| WO2012100607A1 (zh) | 终端桌面处理系统、终端及服务器和方法 | |
| WO2013002547A2 (ko) | 외부 디바이스와 도킹되는 휴대 단말 및 그 제어 방법 | |
| WO2016153249A1 (ko) | Hdmi를 사용하여 전력을 송수신하기 위한 방법 및 그 장치 | |
| WO2015106595A1 (zh) | 物联网控制方法,终端以及被控电子装置 | |
| WO2014189275A1 (en) | Apparatus and method of recognizing external device in a communication system | |
| WO2016192589A1 (zh) | 一种信息传输方法、装置及系统 | |
| WO2012022036A1 (zh) | 终端、i/o扩展装置、方法及系统 | |
| WO2016101441A1 (zh) | 一种进行文件同步的方法及系统 | |
| WO2016090775A1 (zh) | 同步操作短信数据的方法及系统 | |
| WO2015062203A1 (zh) | 媒体文件的共享方法及系统 | |
| WO2019161598A1 (zh) | 即时通讯与邮件的交互方法、装置、设备和存储介质 | |
| WO2021017332A1 (zh) | 语音控制报错方法、电器及计算机可读存储介质 | |
| WO2019112308A1 (en) | Electronic device, user terminal apparatus, and control method thereof | |
| WO2014126378A1 (en) | Method and apparatus for connection between client and server | |
| WO2016192587A1 (zh) | 一种无线通信方法及装置 | |
| WO2020007099A1 (zh) | 电视终端控制方法、设备及计算机可读存储介质 | |
| WO2014129726A1 (ko) | 무선 영상 송수신 시스템 및 방법 | |
| WO2013180345A1 (ko) | 외부 디바이스와 이에 도킹되는 휴대 단말 사이의 입력 이벤트 처리 방법 | |
| WO2019114587A1 (zh) | 虚拟现实终端的信息处理方法、装置及可读存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 201080061117.0 Country of ref document: CN |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 10856034 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 10856034 Country of ref document: EP Kind code of ref document: A1 |