CN102711138A - Method and equipment for dial-up connection - Google Patents
Method and equipment for dial-up connection Download PDFInfo
- Publication number
- CN102711138A CN102711138A CN2012101220298A CN201210122029A CN102711138A CN 102711138 A CN102711138 A CN 102711138A CN 2012101220298 A CN2012101220298 A CN 2012101220298A CN 201210122029 A CN201210122029 A CN 201210122029A CN 102711138 A CN102711138 A CN 102711138A
- Authority
- CN
- China
- Prior art keywords
- connection
- dial
- network
- subscriber equipment
- modem
- 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
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000012545 processing Methods 0.000 claims description 20
- 238000001514 detection method Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 abstract description 2
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000000977 initiatory effect Effects 0.000 description 2
- 241000931705 Cicada Species 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Abstract
An embodiment of the invention relates to the field of communication technology, in particular to a method and equipment for dial-up connection and aims to solve the problem that failure in dial-up connection by PC (personal computer) Modem (modulator-demodulator) can be caused during dial-up connection of a user terminal. The method in the embodiment includes that a user equipment judges whether a user terminal is at network connection state after determining that PC Modem dial-up connection of the user terminal is required, and disconnects the network connection after determining that the current network connection state, and starts PC Modem dial-up connection after disconnecting the network connection. When in need of the network dial-up connection and the PC Modem at the same time, the PC Modem dial-up connection is started after disconnecting the network dial-up connection, so that failure in the PC Modem dial-up connection is avoided when the PC Modem dial-up connection is used with the network dial-up connection.
Description
Technical field
The present invention relates to communication technical field, particularly a kind of method and apparatus that carries out dial-up connection.
Background technology
Along with the continuous development of the Internet, network has become the part in people's work and the life.People can surf the Net through wired or wireless mode through mobile phone, apparatus such as computer at present.
If the user out of doors or go on business in the process, temporary needs is surfed the Net through laptop devices, but does not neighbouringly also have WiFi (Wireless Fidelity, WLAN) or a broadband interface, and then the user can't surf the Net.
The appearance of the PC Modem on the mobile phone (computer modulator-demodulator) function has well solved the problems referred to above.
PC Modem function on the mobile phone is meant that mobile phone is connected to PC through data wire to be gone up and to use as Modem, can satisfy the user out of doors or the demand of interim online in the process of going on business.
At present; CDMA (Code Division Multiple Access; Code division multiple access) in the internetwork connection mode of packet domain, the user often uses network dial to connect (comprising net and wap (Wireless Application Protocol, WAP) mode) and PCModem dialing.Because CDMA can't be operated under network dial connection and the PCModem dial-up connection dual mode simultaneously,,, then cause the PCModem failure if this moment, the user used the PCModem dial-up connection if used network dial to connect.
In sum, present user terminal when using network dial to connect, if use the PCModem dial-up connection, can cause PCModem dial-up connection failure.
Summary of the invention
A kind of method and apparatus that carries out dial-up connection that the embodiment of the invention provides in order to solve the user terminal that exists in the prior art, when using network dial to connect, if use the PCModem dial-up connection, can cause the problem of PCModem dial-up connection failure.
A kind of method of carrying out dial-up connection that the embodiment of the invention provides comprises:
When subscriber equipment need carry out computer modulator-demodulator PC Modem dial-up connection definite user, judge whether be in network connection state at that time;
Said subscriber equipment currently breaks off network after being in network connection state and connects confirming, and connects the back and initiate PC Modem dial-up connection breaking off network.
Preferably, said subscriber equipment judges whether be in after the network connection state at that time, also comprise:
Said subscriber equipment confirm current be not in network connection state after, directly initiate PC Modem dial-up connection.
Preferably, said subscriber equipment confirms that according to processes user's needs carry out PC Modem dial-up connection:
Said subscriber equipment confirms that the user need carry out PC Modem dial-up connection after detecting the order of dialling in the AT Command Set through port bridge port-bridg state of a process detection dun_service thread.
Preferably, said subscriber equipment breaks off the network connection according to processes:
Said subscriber equipment breaks off network through the rild process and connects.
Preferably, said subscriber equipment is initiated PC Modem dial-up connection according to processes:
Said subscriber equipment initiates to dial in the AT Command Set through the port-bridg process, carries out the PCModem dial-up connection.
A kind of subscriber equipment that carries out dial-up connection that the embodiment of the invention provides comprises:
Judge module is used for when definite user need carry out computer modulator-demodulator PC Modem dial-up connection, judges whether to be in network connection state at that time;
Processing module is used for currently breaking off network after being in network connection state and connecting confirming, and connects the back and initiate PC Modem dial-up connection breaking off network.
Preferably, said processing module also is used for:
Confirm current be not in network connection state after, directly initiate PC Modem dial-up connection.
Preferably, said judge module confirms that according to processes user's needs carry out PC Modem dial-up connection:
After detecting the order of dialling in the AT Command Set, confirm that the user need carry out PC Modem dial-up connection through port bridge port-bridg state of a process detection dun_service thread.
Preferably, said processing module is broken off the network connection according to processes:
Breaking off network through the rild process connects.
Preferably, said processing module is initiated PC Modem dial-up connection according to processes:
Initiate dialing order in the AT Command Set through the port-bridg process, carry out PC Modem dial-up connection.
Because the embodiment of the invention confirms to need to use PCModem when using network dial to connect; Then breaking off network dial connects; And initiation PCModem dial-up connection; Thereby avoided when using network dial to connect,, can cause the situation of PCModem dial-up connection failure to occur if use the PCModem dial-up connection.
Description of drawings
Fig. 1 carries out the method flow sketch map of dial-up connection for the embodiment of the invention;
Fig. 2 carries out dial-up connection for the embodiment of the invention through thread method flow sketch map;
Fig. 3 carries out the structural representation of the subscriber equipment of dial-up connection for the embodiment of the invention.
Embodiment
Embodiment of the invention subscriber equipment currently breaks off network after being in network connection state and connects confirming, and connects the back and initiate PC Modem dial-up connection breaking off network.Because the embodiment of the invention confirms to need to use PCModem when using network dial to connect; Then breaking off network dial connects; And initiation PCModem dial-up connection; Thereby avoided when using network dial to connect,, can cause the situation of PCModem dial-up connection failure to occur if use the PCModem dial-up connection.
Below in conjunction with Figure of description the embodiment of the invention is described in further detail.
As shown in Figure 1, the method that the embodiment of the invention is carried out dial-up connection comprises the following steps:
When step 101, subscriber equipment need carry out PC Modem dial-up connection definite user, judge whether be in network connection state at that time;
Preferably, if in the step 101, subscriber equipment is confirmed the current network connection state that is not in, then subscriber equipment is directly initiated PC Modem dial-up connection.
Preferably, initiate after breaking off the network connection if initiate PC Modem dial-up connection, then subscriber equipment can also carry out network and connect after PC Modem dial-up connection finish again.
In force, can also be provided with by the user, subscriber equipment is provided with selection whether after PC Modem dial-up connection finishes according to the user's, carries out network again and connects.
Wherein, the subscriber equipment of the embodiment of the invention can use ARM (Advanced RISC Machines, microprocessor) 11 or other microprocessors to carry out scheme of the present invention
If adopt ARM11, then concrete flow process can be referring to Fig. 2.
As shown in Figure 2, the embodiment of the invention comprises the following steps: through the method that thread carries out dial-up connection
After step 201, subscriber equipment dun_service (state-detection) thread through port-bridg (port bridge) process detects the ATDT#777 order, confirm that the user need carry out PC Modem dial-up connection.
The dialing order is ATDT#777 in AT in the above-mentioned example (Attention) command set, and the dialing order also can change ATD#777 in the AT Command Set in force, and concrete mode and ATD#777 are similar, repeat no more at this.
Based on same inventive concept; A kind of subscriber equipment that carries out dial-up connection also is provided in the embodiment of the invention; Because the principle that this subscriber equipment is dealt with problems is similar with the method that the embodiment of the invention is carried out dial-up connection; Therefore the enforcement of this subscriber equipment can repeat part and repeat no more referring to the enforcement of method.
As shown in Figure 3, the subscriber equipment that the embodiment of the invention is carried out dial-up connection comprises: judge module 30 and processing module 31.
Judge module 30 is used for when definite user need carry out PC Modem dial-up connection, judges whether to be in network connection state at that time;
Processing module 31 is used for currently breaking off network after being in network connection state and connecting confirming, and connects the back and initiate the PCModem dial-up connection breaking off network.
Preferably, processing module 31 confirm current be not in network connection state after, directly initiate the PCModem dial-up connection.
Preferably, judge module 30 confirms that according to processes user's needs carry out PC Modem dial-up connection:
After the dun_service thread through the port-bridg process detects the order of dialling in the AT Command Set, confirm that the user need carry out PC Modem dial-up connection.
Preferably, processing module 31 is broken off the network connection according to processes: break off network through the rild process and connect.
Preferably, processing module 31 is initiated PC Modem dial-up connection according to processes:
Initiate dialing order in the AT Command Set through the port-bridg process, carry out PC Modem dial-up connection.
Preferably, initiate after breaking off the network connection if initiate PC Modem dial-up connection, then processing module 31 can also be carried out network and connect after PC Modem dial-up connection finish again.
In force, can also be provided with by the user, processing module 31 is provided with selection whether after PC Modem dial-up connection finishes according to the user's, carries out network again and connects.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of the embodiment of complete hardware embodiment, complete software implementation example or combination software and hardware aspect.And the present invention can be employed in the form that one or more computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code go up the computer program of implementing.
The present invention is that reference is described according to the flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out through the processor of computer or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device; Make on computer or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computer or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
Although described the preferred embodiments of the present invention, in a single day those skilled in the art get the basic inventive concept could of cicada, then can make other change and modification to these embodiment.So accompanying claims is intended to be interpreted as all changes and the modification that comprises preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.
Claims (10)
1. a method of carrying out dial-up connection is characterized in that, this method comprises:
When subscriber equipment need carry out computer modulator-demodulator PC Modem dial-up connection definite user, judge whether be in network connection state at that time;
Said subscriber equipment currently breaks off network after being in network connection state and connects confirming, and connects the back and initiate PC Modem dial-up connection breaking off network.
2. the method for claim 1 is characterized in that, said subscriber equipment judges whether be in after the network connection state at that time, also comprise:
Said subscriber equipment confirm current be not in network connection state after, directly initiate PC Modem dial-up connection.
3. the method for claim 1 is characterized in that, said subscriber equipment confirms that according to processes user's needs carry out PC Modem dial-up connection:
Said subscriber equipment confirms that the user need carry out PC Modem dial-up connection after detecting the order of dialling in the AT Command Set through port bridge port-bridg state of a process detection dun_service thread.
4. the method for claim 1 is characterized in that, said subscriber equipment breaks off network according to processes and connects:
Said subscriber equipment breaks off network through the rild process and connects.
5. like the arbitrary described method of claim 1~4, it is characterized in that said subscriber equipment is initiated PC Modem dial-up connection according to processes:
Said subscriber equipment is initiated dialing order in the AT Command Set through the port-bridg process, carries out PC Modem dial-up connection.
6. a subscriber equipment that carries out dial-up connection is characterized in that, this subscriber equipment comprises:
Judge module is used for when definite user need carry out computer modulator-demodulator PC Modem dial-up connection, judges whether to be in network connection state at that time;
Processing module is used for currently breaking off network after being in network connection state and connecting confirming, and connects the back and initiate PC Modem dial-up connection breaking off network.
7. subscriber equipment as claimed in claim 6 is characterized in that, said processing module also is used for: confirm current be not in network connection state after, directly initiate PC Modem dial-up connection.
8. subscriber equipment as claimed in claim 6 is characterized in that, said judge module confirms that according to processes user's needs carry out PC Modem dial-up connection:
After detecting the order of dialling in the AT Command Set, confirm that the user need carry out PC Modem dial-up connection through port bridge port-bridg state of a process detection dun_service thread.
9. subscriber equipment as claimed in claim 6 is characterized in that, said processing module is broken off network according to processes and connected:
Breaking off network through the rild process connects.
10. like the arbitrary described subscriber equipment of claim 6~9, it is characterized in that said processing module is initiated PC Modem dial-up connection according to processes:
Initiate dialing order in the AT Command Set through the port-bridg process, carry out PC Modem dial-up connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210122029.8A CN102711138B (en) | 2012-04-24 | 2012-04-24 | A kind of method and apparatus carrying out dial-up connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210122029.8A CN102711138B (en) | 2012-04-24 | 2012-04-24 | A kind of method and apparatus carrying out dial-up connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102711138A true CN102711138A (en) | 2012-10-03 |
CN102711138B CN102711138B (en) | 2018-08-28 |
Family
ID=46903659
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210122029.8A Active CN102711138B (en) | 2012-04-24 | 2012-04-24 | A kind of method and apparatus carrying out dial-up connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102711138B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020114439A1 (en) * | 2001-01-19 | 2002-08-22 | Dunlap John H. | User transparent internet telephony device and method |
CN101175310A (en) * | 2006-11-03 | 2008-05-07 | 中兴通讯股份有限公司 | Wireless access system and method thereof |
CN101287255A (en) * | 2008-05-30 | 2008-10-15 | 德信智能手机技术(北京)有限公司 | Data connecting method and apparatus for dual-card and dual-standby mobile terminal |
CN101668321A (en) * | 2009-09-01 | 2010-03-10 | 宇龙计算机通信科技(深圳)有限公司 | Control method, device and system for connecting network by multimode mobile terminal |
-
2012
- 2012-04-24 CN CN201210122029.8A patent/CN102711138B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020114439A1 (en) * | 2001-01-19 | 2002-08-22 | Dunlap John H. | User transparent internet telephony device and method |
CN101175310A (en) * | 2006-11-03 | 2008-05-07 | 中兴通讯股份有限公司 | Wireless access system and method thereof |
CN101287255A (en) * | 2008-05-30 | 2008-10-15 | 德信智能手机技术(北京)有限公司 | Data connecting method and apparatus for dual-card and dual-standby mobile terminal |
CN101668321A (en) * | 2009-09-01 | 2010-03-10 | 宇龙计算机通信科技(深圳)有限公司 | Control method, device and system for connecting network by multimode mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN102711138B (en) | 2018-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102883285B (en) | The method, apparatus and system for handling instant communication information, terminal PRI being set | |
CN103200567A (en) | Method and system of wireless fidelity (WiFi) access | |
JP2008504743A (en) | System and method for background downloading of digital content to peripheral devices intermittently connected via a wireless device | |
CN102880514A (en) | Method and device for calling application program | |
CN102299729A (en) | Information transmission method and device | |
CN106465249A (en) | Method and apparatus for network entry when roaming | |
CN105573699A (en) | Information processing method and electronic equipment | |
CN103402186A (en) | Incoming phonecall switching method and communication terminal | |
CN108605373A (en) | Method for providing network share service and electronic device | |
CN101945361A (en) | Method for processing message of incoming call and mobile terminal | |
CN103037371A (en) | Method and system of mobile terminal communication management | |
CN102868819A (en) | Method and device for processing communication service of public account | |
CN105487887B (en) | Bluetooth starting method and Bluetooth device | |
CN102122272A (en) | Method and device for controlling extended serial port | |
CN103856936B (en) | A kind of method and device for updating the mobile terminal time | |
CN105391857A (en) | System and method for quickly calling contact | |
CN202841288U (en) | Electronic starting system | |
CN103929836A (en) | Tablet personal computer wireless communication method based on Bluetooth protocol | |
JP5455399B2 (en) | COMMUNICATION DEVICE, COMMUNICATION PROCESSING METHOD, AND PROGRAM | |
CN104469720B (en) | A kind of method and system of clawback incoming call | |
CN102711138A (en) | Method and equipment for dial-up connection | |
JP2002199450A (en) | Communication system | |
JP5534348B2 (en) | Wireless communication apparatus, automatic connection control method in wireless communication, and computer program | |
WO2014000628A1 (en) | Method and apparatus for implementing mobile broadband device service | |
CN104301531B (en) | Method for controlling mobile terminal and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Guo jiahuodiqu after: Zhong Guo Address before: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. Guo jiahuodiqu before: Zhong Guo |