CN101232682A - Method for multiplexing serial port of number terminal - Google Patents
Method for multiplexing serial port of number terminal Download PDFInfo
- Publication number
- CN101232682A CN101232682A CNA2008100656161A CN200810065616A CN101232682A CN 101232682 A CN101232682 A CN 101232682A CN A2008100656161 A CNA2008100656161 A CN A2008100656161A CN 200810065616 A CN200810065616 A CN 200810065616A CN 101232682 A CN101232682 A CN 101232682A
- Authority
- CN
- China
- Prior art keywords
- serial ports
- module
- production
- special
- binding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
The invention discloses a multiplexing method for the serial ports of a digital terminal, which comprises the following steps: A. relieving the binding of a tool module and a dedicated serial port for production; B. binding a peripheral module with the dedicated serial port for production to realize the module function thereof through the dedicated serial port for production. Since a production module does not work in a non-production mode, the invention unbinds the tool module and the dedicated serial port for production to save the dedicated serial port for production to be bound with the peripheral module at the shortage of serial ports, thus realizing the multiplexing of different peripheral modules together with the dedicated serial port for production, enabling the compatibility of newly added peripheral module on the premise that no hardware resources are added, reducing cost and expanding the benefits of users and network operators.
Description
Technical field
The present invention relates to the embedded system technology field, relate in particular to a kind of method that on the digital terminal of CDMA (code division multiple access), WCDMA (Wideband Code Division Multiple Access (WCDMA)), GSM embedded systems such as (global system for mobile communicationss), realizes serial port in the communication field.
Background technology
Embedded system generally can adopt the communication mode of serial communication with other device talks the time, this communication mode is simple, practical, versatility is very strong, so adopted by vast embedded system.
But concerning the digital terminal of embedded system, serial port resource is limited, generally mostly is most 3.With the mobile phone terminal is example, 3 serial ports of general support, one of them is for producing special-purpose serial ports (respectively with production module and tool model binding, when production model, use this serial ports by the production module, when nonproductive pattern, use this serial ports) by tool model, one is the special-purpose serial ports of UIM card, and one is USB serial ports (being used for being connected with PC).In application process, the UIM calorie requirement is monopolized a serial ports.
The serial port resource of digital terminal is limited, when this digital terminal needs to increase GPS (global positioning system) module, DMO module peripheral modules such as (trawlnet lead directly to module) under nonproductive pattern, because most peripheral modules can not the multiplexing USB serial ports, the UIM card has been monopolized UIM card serial ports and tool model has been monopolized and produced special-purpose serial ports, realize the multiplexing of serial ports so need to increase new hardware resource, increase cost, also greatly influenced the function expansion and the exploitation of product.
Summary of the invention
Technical problem to be solved by this invention provides a kind of serial port multiplexing method, realizes the multiplexing of serial ports under the prerequisite that does not increase hardware resource.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions:
A kind of serial port multiplexing method of digital terminal, described digital terminal comprise respectively and the special-purpose serial ports of production and the USB serial ports of production module and tool model binding, may further comprise the steps:
A, releasing appliance module and the binding of producing special-purpose serial ports;
B, with peripheral module with produce special-purpose serial ports binding, realize its functions of modules by the special-purpose serial ports of described production.
Wherein, also comprise before the described steps A: whether just in use to judge the special-purpose serial ports of current production, if use, process ends then, otherwise close the production module, enter steps A.
Wherein, after described step B is finished,, then carry out following operation if there is new peripheral module request to use the special-purpose serial ports of described production:
1. judge that whether the current peripheral module of binding with the special-purpose serial ports of production is still using this serial ports, if then enter step 2.; If not, then directly remove current peripheral module and the binding of producing special-purpose serial ports, new peripheral module and this serial ports are bound realizing its functions of modules, and process ends;
2. judge described current peripheral module whether can with the special-purpose serial ports of the multiplexing production of new peripheral module; If cannot, then refuse the request of new peripheral module and withdraw from; If can, then will new peripheral module bind with producing special-purpose serial ports, make itself and the special-purpose serial ports of the multiplexing production of current peripheral module.
Wherein, described peripheral module is the straight-through module of GPS module or trawlnet.
Wherein, after the binding of releasing appliance module and the special-purpose serial ports of production,, realize its functions of modules in the described steps A by the USB serial ports with described tool model and the binding of described USB serial ports.
The present invention has following beneficial effect:
Because the production module is not worked under nonproductive pattern, so the present invention is releasing appliance module and the binding of producing special-purpose serial ports under serial ports situation in short supply, can vacantly go out to produce special-purpose serial ports like this, itself and peripheral module are bound, realize that the different peripheral module is to producing the multiplexing of special-purpose serial ports, compatible newly-increased peripheral module has reduced cost under the prerequisite of adding hardware resource not, has enlarged user and benefits of operators.
Description of drawings
Fig. 1 is a method flow diagram of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples:
Consider when the production module only is applied to produce or the terminal hardware upgrading, need not under other situation to use, tool model can be realized its functions of modules by the USB serial ports, and peripheral modules such as GPS and DMO do not need to take characteristics such as a large amount of serial ports, the present invention proposes following serial port multiplexing method, as shown in Figure 1:
101, releasing appliance module and the binding of producing special-purpose serial ports.
Since tool model can with USB serial ports binding, realize its functional module by this serial ports, and can with multiplexing this serial ports of PC; And with the binding of other serial ports when realizing its function, tool model must be monopolized this serial ports, thus can be under the serial port resource condition of limited with tool model and the binding of USB serial ports with the saving resource.
102, peripheral module is bound with producing special-purpose serial ports, realized its functions of modules by the special-purpose serial ports of described production.
Produce special-purpose serial ports if there is new peripheral module request to use in this step, judge then whether current peripheral module with the special-purpose serial ports binding of production is still using this serial ports, if not, then directly remove current peripheral module and the binding of producing special-purpose serial ports, new peripheral module and this serial ports are bound to realize its functions of modules.If, then judge current peripheral module whether can with the special-purpose serial ports of the multiplexing production of new peripheral module; If cannot, then refuse the request of new peripheral module and withdraw from; If can, then will new peripheral module bind with producing special-purpose serial ports, make itself and the special-purpose serial ports of the multiplexing production of current peripheral module.
Below be one embodiment of the present of invention:
Digital terminal has following several working method (is that the special-purpose serial ports of serial ports 1, UIM card is that serial ports 2, USB serial ports are serial ports 3 hereinafter to be referred as producing special-purpose serial ports):
(1) normal condition, promptly digital terminal does not have other external equipments and connects, and is operated under the mode of operation in the past, and this moment, i.e. production module used serial ports 1, serial ports 2 to be used for linking to each other with PC as the special use of UIM card, serial ports 3 with tool model according in the past serial ports distribution principle.
(2) digital terminal connects a peripheral module (is example with GPS).At this moment, the production module is closed, and mobile phone is in nonproductive pattern, the shared serial ports 3 of tool model and PC, and serial ports 1 is connected with the GPS module, monopolizes serial ports 1 by the GPS module, realizes the function of GPS.
(3) digital terminal connects a plurality of peripheral modules (as GPS and DMO) simultaneously, and these peripheral modules carry out multiplexing to producing special-purpose serial ports.At this moment, the production module is closed, tool model and PC multiplexing serial port 3, and serial ports 1 is connected with the DMO module simultaneously with the GPS module, realizes the use in conjunction of GPS module and DMO module.
The serial port multiplexing method of digital terminal is specially:
A, digital terminal start are provided with each serial ports in a conventional manner.
B, when the right to use of peripheral module application serial ports 1 (as GPS), carry out following operation:
(b1) whether in use to judge current serial ports 1,, then refuse the request of peripheral module, turn back in the application process ends as using; If do not use, then enter step (b2).
(b2) close the production module.Because the production module only is used for producing or terminal staging, in normal terminal use, need not to use.
(b3) binding of releasing appliance module and serial ports 1 vacantly goes out to produce special-purpose serial ports, and with itself and serial ports 3 bindings, realizes its functions of modules by serial ports 3.
(b4) with GPS module and serial ports 1 binding, monopolize serial ports 1, realize the function of GPS by serial ports 1 by the GPS module.
C, when having new peripheral module request to use serial ports 1 (as DMO), then carry out following operation:
(c1) judge whether the GPS module is still using serial ports 1, if use, then directly removes the binding of GPS module and serial ports 1, DMO module and serial ports 1 are bound the function with realization DMO, and process ends; Otherwise, enter step (c2).
(c2) judge the GPS module whether can with the shared serial ports 1 of DMO module, as cannot, then refuse the request and the process ends of DMO module; Otherwise, accept the request of DMO module, the DMO module is linked to each other with serial ports 1, make the shared serial ports 1 of DMO and GPS module, realize the use of uniting of DMO and GPS module.
D, when having other peripheral module requests to use serial ports 1, repeating step c.
E, terminal closedown, all serial ports of resetting revert to initial condition.
F, starting up of terminal change step a over to, open production module and tool model.
By said method, can realize the serial port of terminal, the not enough problem of using of serial ports when having solved the termination function expansion.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (5)
1. the serial port multiplexing method of a digital terminal, described digital terminal comprise respectively and the special-purpose serial ports of production and the USB serial ports of production module and tool model binding, it is characterized in that, may further comprise the steps:
A, releasing appliance module and the binding of producing special-purpose serial ports;
B, with peripheral module with produce special-purpose serial ports binding, realize its functions of modules by the special-purpose serial ports of described production.
2. the serial port multiplexing method of digital terminal as claimed in claim 1 is characterized in that, also comprises before the described steps A: whether just in use to judge the special-purpose serial ports of current production, if use, process ends then, otherwise close the production module, enter steps A.
3. the serial port multiplexing method of digital terminal as claimed in claim 2 is characterized in that, after described step B is finished, if there is new peripheral module request to use the special-purpose serial ports of described production, then carries out following operation:
1. judge that whether the current peripheral module of binding with the special-purpose serial ports of production is still using this serial ports, if then enter step 2.; If not, then directly remove current peripheral module and the binding of producing special-purpose serial ports, new peripheral module and this serial ports are bound realizing its functions of modules, and process ends;
2. judge described current peripheral module whether can with the special-purpose serial ports of the multiplexing production of new peripheral module; If cannot, then refuse the request of new peripheral module and withdraw from; If can, then will new peripheral module bind with producing special-purpose serial ports, make itself and the special-purpose serial ports of the multiplexing production of current peripheral module.
4. as the serial port multiplexing method of the arbitrary described digital terminal of claim 1 to 3, it is characterized in that described peripheral module is the straight-through module of GPS module or trawlnet.
5. the serial port multiplexing method of digital terminal as claimed in claim 1, it is characterized in that, after the binding of releasing appliance module and the special-purpose serial ports of production,, realize its functions of modules in the described steps A by the USB serial ports with described tool model and the binding of described USB serial ports.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100656161A CN101232682B (en) | 2008-01-21 | 2008-01-21 | Method for multiplexing serial port of number terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100656161A CN101232682B (en) | 2008-01-21 | 2008-01-21 | Method for multiplexing serial port of number terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101232682A true CN101232682A (en) | 2008-07-30 |
CN101232682B CN101232682B (en) | 2011-05-11 |
Family
ID=39898798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100656161A Expired - Fee Related CN101232682B (en) | 2008-01-21 | 2008-01-21 | Method for multiplexing serial port of number terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101232682B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113965917A (en) * | 2021-10-19 | 2022-01-21 | 深圳市元征科技股份有限公司 | Communication method, device and terminal equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5497339A (en) * | 1993-11-15 | 1996-03-05 | Ete, Inc. | Portable apparatus for providing multiple integrated communication media |
CN200980133Y (en) * | 2006-11-29 | 2007-11-21 | 青岛海信电器股份有限公司 | A hidden communication interface circuit and television with such interface |
-
2008
- 2008-01-21 CN CN2008100656161A patent/CN101232682B/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113965917A (en) * | 2021-10-19 | 2022-01-21 | 深圳市元征科技股份有限公司 | Communication method, device and terminal equipment |
CN113965917B (en) * | 2021-10-19 | 2024-04-02 | 深圳市元征科技股份有限公司 | Communication method, device and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101232682B (en) | 2011-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106507341A (en) | The method of Intelligent Recognition configuration file, system and mobile terminal | |
CN101035343B (en) | Multi-mode mobile phone | |
CN109101611A (en) | File system directories maximize test method, device, terminal and storage medium | |
CN101137140B (en) | Terminal NV parameter backup recovering method | |
CN101442767A (en) | Method and apparatus for controlling multiple user terminals to implement business automatically | |
CN101232682B (en) | Method for multiplexing serial port of number terminal | |
CN101291489B (en) | Terminal time management method, system and mobile terminal | |
CN101896003A (en) | Cell phone apparatus capable of replacing different network formats and implementation method thereof | |
CN101958797B (en) | Ethernet power supply system and operating method | |
CN105188077A (en) | Communication module test method and system | |
CN101312579A (en) | Software package adaptive loading method for wireless communication device | |
CN103309827B (en) | The device parameter reading/writing method of terminal and device | |
CN101316416B (en) | Two-card two-standby mobile phone chip communication system and communication method | |
CN103036668A (en) | Rack-mounted equipment tab configuration synchronization method based on a command line | |
CN102932960A (en) | Exchange system and exchange method for electronic business cards | |
CN102752753B (en) | A kind of method and mobile radio terminal of control ZigBee-network | |
CN101309121A (en) | Method of MUX protocol realizing driver adding without need of kernel under Linux platform | |
CN1421789A (en) | Realizing method of double-channel shared memory | |
CN201039414Y (en) | A communication module and mobile terminal | |
CN212649497U (en) | Data transmission system and router with built-in data transmission system | |
CN107517495A (en) | User's identification card control method, mobile terminal and computer-readable recording medium | |
CN104080104A (en) | Communication control method and user equipment | |
CN203287889U (en) | Control device of SD/MMC card and IIC slave device | |
CN202145308U (en) | Multi-master module management interface module of severe-environment-resistant computer | |
CN108334648A (en) | Method of data synchronization between heterogeneous database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110511 Termination date: 20170121 |