CN103716815A - Method for vehicle-mounted communication terminal to achieve dial-up internet access - Google Patents

Method for vehicle-mounted communication terminal to achieve dial-up internet access Download PDF

Info

Publication number
CN103716815A
CN103716815A CN201310737822.3A CN201310737822A CN103716815A CN 103716815 A CN103716815 A CN 103716815A CN 201310737822 A CN201310737822 A CN 201310737822A CN 103716815 A CN103716815 A CN 103716815A
Authority
CN
China
Prior art keywords
dialing
dial
state
network
module
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.)
Pending
Application number
CN201310737822.3A
Other languages
Chinese (zh)
Inventor
刘科
覃小涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Foryou General Electronics Co Ltd
Original Assignee
Huizhou Foryou General Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huizhou Foryou General Electronics Co Ltd filed Critical Huizhou Foryou General Electronics Co Ltd
Priority to CN201310737822.3A priority Critical patent/CN103716815A/en
Publication of CN103716815A publication Critical patent/CN103716815A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method for a vehicle-mounted communication terminal to achieve dial-up internet access. The method comprises the steps of dial-up condition judgment, network state judgment, asynchronous dialing, and dial-up time-out monitoring. An asynchronous call mode is adopted for a dial-up mode, so that a dial-up function returns immediately, the state of dial-up connection is monitored through window messages at the same time, and the problems that when the dial-up function is blocked, the function does not return, and the dial-up function has no response are solved. Meanwhile, according to the method, because network state judgment is carried out before dialing, it is guaranteed that dialing is carried out under the circumstance that network services are normal, it is avoided that dialing is carried out under the circumstance that no network exists, and system loads are reduced.

Description

A kind of method of vehicle mounted communication terminal online dialing
Technical field
The present invention relates to a kind of networking control strategy that is applied to vehicle mounted communication terminal, relate in particular to a kind of method of vehicle mounted communication terminal online dialing.
Background technology
Existing network dial control strategy adopts the method for synchronization to dial; this dial mode only has to carry out to be over when function (RasDail) and just can exit; once occur that module is abnormal or it is abnormal to drive, just likely cause function not carry out and exit, and then cause whole network management system paralysis.The problem of the dialing failure causing for a variety of causes, existing dialing strategy is continuous repeated attempt, and does not have a kind of preferably strategy to solve, and easily causes dialing function stuck, and module such as does not react at the situation.And, the situation such as registered network unsuccessful poor for network signal, existing dialing strategy is still constantly attempted dialing, not only wastes system resource, but also likely causes that dialing function hangs dead.After dial-up success, if equipment enters without service area, existing module has the function that online keeps, now requester network dialing status is for disconnecting, existing dialing strategy is according to the network dial state inquiring, and meeting autoredialing, causes the waste of system resource.
Vehicle mounted communication terminal is the important carrier of vehicle-mounted information service, but due to automobile, there is the features such as region span is large, fast moving, and there is regional disparity in the signal coverage strength of China's mobile communication public network, vehicle mounted communication terminal should guarantee to possess relatively stable reliable network insertion, to function services such as customer multi-media amusement, navigation, therefore controlling, the network dial of vehicle mounted communication terminal need to overcome above-mentioned defect again.
Based on above technical background, existing urgent need proposes a kind of network dial control strategy, and stable network service is provided, simultaneously mitigation system burden.
Summary of the invention
Technical problem to be solved by this invention is, a kind of method of vehicle mounted communication terminal online dialing is provided, and comprises dialing condition judgment, network state judgement, async dialup and the overtime monitoring of dialing,
Described dialing condition judgment comprises AT module, be used for carrying out AT instruction, enquiry module state, requester network state, telephony feature and transmitting-receiving note, AT instruction by described AT module obtains current network state and talking state, working properly when module, carries out network state judgement;
The judgement of described network state comprise judge current whether in network connection state, as current, in network connection state, carry out async dialup, as current in without network connection state, dial-up program is hung up, interval predetermined time is Sampling network connection status again;
Described async dialup comprises employing asynchronous call dialing function, and the function that makes to dial returns immediately, simultaneously by the state of forms message monitoring dial-up connection;
The overtime monitoring of described dialing comprises carries out overtime monitoring to dial-up connection state parameter, and overtime dial-up connection state parameter is carried out to retry.
As the improvement of such scheme, module described in described dialing condition judgment is working properly comprises that dial module is working properly, SIM card is working properly, Modem is working properly, and PS territory is working properly.
As the improvement of such scheme, the overtime monitoring of described dialing specifically comprises:
Time started point with each dialing status of variable save and this state of stop;
Create monitoring thread and carry out overtime calculating and overtime retray function.
As the improvement of such scheme, in the overtime monitoring of described dialing, dial-up connection state parameter comprises that port is opened, is connected to equipment, just in authentication and authentication, completes.
As the improvement of such scheme, the method that judges described module working condition in described dialing condition judgment is by opening described AT module corresponding port and/or receiving system message informing.
As the improvement of such scheme, in the judgement of described network state, as current in without network connection state, time delay 3-10 second Sampling network connection status again.
As the improvement of such scheme, in the judgement of described network state, as current in without network connection state, time delay 5 seconds Sampling network connection status again.
Implement the present invention, there is following beneficial effect:
Dial mode of the present invention adopts asynchronous call mode, and the function that makes to dial returns immediately, and simultaneously by the state of forms message monitoring dial-up connection, when the function that prevents from dialling occurs to block, function does not return, and dialing function is without the problem of response.
The present invention carries out described dialing condition judgment before dialing, guarantees that all hardware module and software module are normal condition and just carry out next step operation, prevents because SIM card fault problems such as driving malfunction and occur the insignificant dialing that repeats, waste system resource.
The present invention carries out network state judgement before dialing, guarantees that network service just dials under normal circumstances, avoids dialling without network in the situation that, reduces system loading.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of vehicle mounted communication terminal online of the present invention dialing.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, the embodiment of the present invention provides a kind of method of vehicle mounted communication terminal online dialing, comprises dialing condition judgment S001, network state judgement S002, async dialup S003 and the overtime monitoring S004 that dials,
Described dialing condition judgment S001 comprises AT module, described AT module is for carrying out the module of AT instruction, AT command set is from terminal equipment (Terminal Equipment, TE) or data terminal equipment (Data Terminal Equipment, DTE) to terminal adapter (Terminal Adapter, TA) or data circuit termination equipment (Data Circuit Terminal Equipment, DCE) send, be generally applied to terminal equipment being connected and communicating by letter between applying with PC.Described AT module is used for carrying out AT instruction, enquiry module state, requester network state, telephony feature and transmitting-receiving note, by AT instruction acquisition current network state and the talking state of described AT module, working properly when module, carries out network state judgement S002;
It should be noted that, the dialing that the present invention mentions specifically refers to Ras dialing, described Ras dialing refers to remote access service (Remote Access Service, RAS), it provides a kind of PSTN of utilization that the computer away from local area network (LAN) (LAN) is connected to the method on local area network (LAN), and then can build the wide area network (WAN) of cross-region.After being connected to the RAS Server on LAN by PSTN, long-range computer just, as on being really connected to LAN, can obtain LAN user's all services and authority, and telecommunication line has at this moment served as the role of netting twine in LAN.
Described network state judge S002 comprise judge current whether in network connection state, as current, in network connection state, carry out async dialup S003, as current in without network connection state, dial-up program is hung up, interval predetermined time is Sampling network connection status again; The present invention carries out network state judgement S002 before dialing, guarantees that network service just dials under normal circumstances, avoids dialling without network in the situation that, and mitigation system burden, reduces device power supply (DPS) consumption.
It should be noted that, after dial-up connection success, module is when having service area to move to without service area, and PPP link can not returned to the message that network disconnects at once, and module and PPP have the function that network keeps (when network recovery normally after bottom PPP can be on being dynamically connected).Wherein, PPP mentioned above refers to ppp protocol: PPP provides a standard method for transmit multi-protocol data bag on point to point connect, PPP designs for transmit the so simple link of packet between equal unit, this link provides full-duplex operation, and transmitting in order packet, people have a mind to allow PPP provide a kind of common solution for the simple connection based on various main frames, bridge and router.
Due to after dial-links success, we still can monitor dial-up connection, from system function RasGetConnectStatus() call situation, without service area, be off-state really, thus program can think by mistake as off-state, constantly duplicate removal examination connection.So we increase the judgement to network state herein, only at the normal rear RasGetConnectStatus(of network state) call just effectively.
Described async dialup S003 comprises employing asynchronous call dialing function, and the function that makes to dial returns immediately, simultaneously by the state of forms message monitoring dial-up connection; Adopt the method for async dialup S003, in the time of can solving dialing function generation obstruction, function does not return, and dialing function is without the problem of response.
The overtime monitoring of described dialing S004 comprises dial-up connection state parameter is carried out to overtime monitoring, and overtime dial-up connection state parameter is carried out to retry.
Preferably, module described in described dialing condition judgment S001 is working properly comprises that dial module is working properly, SIM card is working properly, Modem is working properly, and PS territory is working properly.The present invention carries out described dialing condition judgment S001 before dialing, guarantee that all hardware module and software module are normal condition and just carry out next step operation, prevent because SIM card fault problems such as driving malfunction and occur the insignificant dialing that repeats, waste system resource.
It should be noted that, described PS territory, refer to multicomponent data business, specifically, PS territory comes from GPRS (GPRS, General Packet RadioService), in GPRS(2.5G technology) basis on realized Function Extension and enhancing, its final purpose is to provide Packet data service at a high speed.
Preferably, the overtime monitoring of described dialing S004 specifically comprises:
A, with each dialing status of variable save with stop the time started point of this state;
B, establishment monitoring thread are carried out overtime calculating and overtime retray function.
Preferably, in the overtime monitoring of described dialing S004, dial-up connection state parameter comprises that port is opened, is connected to equipment, just in authentication and authentication, completes.
It should be noted that, long in order to prevent dialing time, we introduce timeout mechanism to a part longer state consuming time, and another part state is in security consideration, does not process.Specific practice is, use the time started point of each dialing status of variable save and this state of stop, as opened in port, be connected to equipment, just in authentication and authentication, complete these variablees, then create monitoring thread and carry out overtime calculating and overtime retray function, when above-mentioned state reaches time-out time, re-execute above instruction.
Preferably, the method that judges described module working condition in described dialing condition judgment S001 is by opening described AT module corresponding port and/or receiving system message informing.
It should be noted that, cause the reason of module cisco unity malfunction conventionally to have following situation:
A. module operation irregularity causes the AT instruction issuing, after execution without any response.
B. module is not worked or USB undesired causing of driving.
For above situation, we are by opening described AT module corresponding port, and whether observe corresponding port has response; Or whether lost efficacy according to system message notice judge module or USB driving.
Preferably, in described network state judgement S002, as current in without network connection state, time delay 3-10 second Sampling network connection status again.
More preferably, in described network state judgement S002, as current in without network connection state, time delay 5 seconds Sampling network connection status again.
It should be noted that, AT module can obtain current network state and talking state by inquiry AT instruction.When module is when without service state, delay after 5 seconds, again judge whether to be registered to network, wait until till succeeding in registration, just carry out dial-up operation always.Because the service state of equipment is metastable state, and continually network service state is detected, will expend a large amount of system resource, therefore delay time is set in to 5 seconds, can between performance and system loading, obtain optimum balance.
Above disclosed is only a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (7)

1. a method for vehicle mounted communication terminal online dialing, is characterized in that, comprises dialing condition judgment, network state judgement, async dialup and the overtime monitoring of dialing,
Described dialing condition judgment comprises AT module, be used for carrying out AT instruction, enquiry module state, requester network state, telephony feature and transmitting-receiving note, AT instruction by described AT module obtains current network state and talking state, working properly when module, carries out network state judgement;
The judgement of described network state comprise judge current whether in network connection state, as current, in network connection state, carry out async dialup, as current in without network connection state, dial-up program is hung up, interval predetermined time is Sampling network connection status again;
Described async dialup comprises employing asynchronous call dialing function, and the function that makes to dial returns immediately, simultaneously by the state of forms message monitoring dial-up connection;
The overtime monitoring of described dialing comprises carries out overtime monitoring to dial-up connection state parameter, and overtime dial-up connection state parameter is carried out to retry.
2. the method for vehicle mounted communication terminal online dialing as claimed in claim 1, is characterized in that, module described in described dialing condition judgment is working properly comprises that dial module is working properly, SIM card is working properly, Modem is working properly, and PS territory is working properly.
3. the method for vehicle mounted communication terminal online dialing as claimed in claim 1, is characterized in that, the overtime monitoring of described dialing specifically comprises:
A, with each dialing status of variable save with stop the time started point of this state;
B, establishment monitoring thread are carried out overtime calculating and overtime retray function.
4. the method for vehicle mounted communication terminal online dialing as claimed in claim 1, is characterized in that, in the overtime monitoring of described dialing, dial-up connection state parameter comprises that port is opened, is connected to equipment, just in authentication and authentication, completes.
5. the method for vehicle mounted communication terminal online dialing as claimed in claim 1, is characterized in that, the method that judges described module working condition in described dialing condition judgment is by opening described AT module corresponding port and/or receiving system message informing.
6. the method for vehicle mounted communication terminal as claimed in claim 1 online dialing, is characterized in that, in described network state judgement, as current in without network connection state, time delay 3-10 second Sampling network connection status again.
7. the method for vehicle mounted communication terminal as claimed in claim 6 online dialing, is characterized in that, in described network state judgement, as current in without network connection state, time delay 5 seconds Sampling network connection status again.
CN201310737822.3A 2013-12-26 2013-12-26 Method for vehicle-mounted communication terminal to achieve dial-up internet access Pending CN103716815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310737822.3A CN103716815A (en) 2013-12-26 2013-12-26 Method for vehicle-mounted communication terminal to achieve dial-up internet access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310737822.3A CN103716815A (en) 2013-12-26 2013-12-26 Method for vehicle-mounted communication terminal to achieve dial-up internet access

Publications (1)

Publication Number Publication Date
CN103716815A true CN103716815A (en) 2014-04-09

Family

ID=50409282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310737822.3A Pending CN103716815A (en) 2013-12-26 2013-12-26 Method for vehicle-mounted communication terminal to achieve dial-up internet access

Country Status (1)

Country Link
CN (1) CN103716815A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610984A (en) * 2016-03-07 2016-05-25 安徽江淮汽车股份有限公司 Method for remotely controlling vehicle
CN108924017A (en) * 2018-06-27 2018-11-30 湖南中车时代通信信号有限公司 A kind of rail traffic embedded radio equipment dialing processing system
CN112055117A (en) * 2020-09-01 2020-12-08 广州通达汽车电气股份有限公司 Communication module dialing recovery method, device, server and storage medium
CN112887161A (en) * 2019-11-29 2021-06-01 西安诺瓦星云科技股份有限公司 Mobile network detection method and device
CN115460568A (en) * 2022-08-31 2022-12-09 重庆长安汽车股份有限公司 Vehicle-mounted terminal network management method, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1204196A (en) * 1997-06-28 1999-01-06 深圳市华为技术有限公司 Method for connecting terminal equipment into remote computer network
JPH11146016A (en) * 1997-11-07 1999-05-28 Nippon Telegr & Teleph Corp <Ntt> Ppp relay connection system
WO2005112349A1 (en) * 2004-05-13 2005-11-24 Huawei Technologies Co., Ltd. A method for redialing quickly to the broad band network of users
CN102438329A (en) * 2011-10-12 2012-05-02 深圳市路畅科技有限公司 Dialing method of vehicle-mounted navigation device supporting multimode 3G (the 3rd generation) network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1204196A (en) * 1997-06-28 1999-01-06 深圳市华为技术有限公司 Method for connecting terminal equipment into remote computer network
JPH11146016A (en) * 1997-11-07 1999-05-28 Nippon Telegr & Teleph Corp <Ntt> Ppp relay connection system
WO2005112349A1 (en) * 2004-05-13 2005-11-24 Huawei Technologies Co., Ltd. A method for redialing quickly to the broad band network of users
CN102438329A (en) * 2011-10-12 2012-05-02 深圳市路畅科技有限公司 Dialing method of vehicle-mounted navigation device supporting multimode 3G (the 3rd generation) network

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
倪晓军等: "《单片机原理与接口技术教程》", 30 September 2009 *
张风: "《基于虚拟MODEM的Remote Access Service(RAS)拨号技术应用》", 《信息通信》 *
李现路: "《MTK应用开发从入门到精通》", 27 February 2012 *
王作辉: "《智能终端无线应用技术的研究与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
郑锋等: "《51单片机应用系统典型模块开发大全 第2版》", 30 July 2011 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610984A (en) * 2016-03-07 2016-05-25 安徽江淮汽车股份有限公司 Method for remotely controlling vehicle
CN105610984B (en) * 2016-03-07 2018-07-20 安徽江淮汽车集团股份有限公司 A kind of method of remote control vehicle
CN108924017A (en) * 2018-06-27 2018-11-30 湖南中车时代通信信号有限公司 A kind of rail traffic embedded radio equipment dialing processing system
CN112887161A (en) * 2019-11-29 2021-06-01 西安诺瓦星云科技股份有限公司 Mobile network detection method and device
CN112887161B (en) * 2019-11-29 2024-02-09 西安诺瓦星云科技股份有限公司 Mobile network detection method and device
CN112055117A (en) * 2020-09-01 2020-12-08 广州通达汽车电气股份有限公司 Communication module dialing recovery method, device, server and storage medium
CN115460568A (en) * 2022-08-31 2022-12-09 重庆长安汽车股份有限公司 Vehicle-mounted terminal network management method, system, electronic equipment and storage medium
CN115460568B (en) * 2022-08-31 2024-03-12 重庆长安汽车股份有限公司 Vehicle-mounted terminal network management method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103716815A (en) Method for vehicle-mounted communication terminal to achieve dial-up internet access
CN102077194B (en) Network controller based pass-through communication mechanism between local host and management controller
CN103795554A (en) Terminal state managing method, device and system
CN101980482B (en) Method for monitoring network connection and system thereof
CN103686854A (en) Method and device for controlling AP
CN103297470A (en) Method for processing always-online service, application server, user terminal and system
CN104898435B (en) Home services system and its fault handling method, household appliance, server
CN104243259B (en) Collaboration method and system in distributed elastic network interconnection system
CN101409654B (en) Method for processing SNMP information in network management system
CN101796774A (en) Method and system for checking automatically connectivity status of an IP link on IP network
CN103051724B (en) A kind of based on the long socket synchronous method connected
US10091306B2 (en) System and method for management of ethernet premise devices
US8645551B2 (en) Method for automatically negotiating type of service and aggregation apparatus therefor
EP1836865B1 (en) Method and system for transmitting data in mobile network nodes
CN101136769B (en) Method and system to automatically configure ADSL terminal equipment
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN100413248C (en) Improved method and system for carrying out charging based on flow
CN108282383B (en) Method and equipment for realizing fault processing
CN102291692A (en) Mobile terminal and method for dynamically selecting communication network
CN1855838B (en) Interface inverting method
CN105592485A (en) Method for collecting and processing messages in real time based on SNMP
CN102905400B (en) Adaptive double-mode mobile data communication terminal
CN101599882B (en) Method and device for achieving point-to-point far end loopback of Ethernet
EP4030691A1 (en) Data processing method, device, and system
CN210274135U (en) Remote connection system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140409

RJ01 Rejection of invention patent application after publication