CN103916517A - Method and apparatus for implementing GSM support in android system - Google Patents

Method and apparatus for implementing GSM support in android system Download PDF

Info

Publication number
CN103916517A
CN103916517A CN201210592480.6A CN201210592480A CN103916517A CN 103916517 A CN103916517 A CN 103916517A CN 201210592480 A CN201210592480 A CN 201210592480A CN 103916517 A CN103916517 A CN 103916517A
Authority
CN
China
Prior art keywords
terminal
module
pseudo
pppd
service
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
Application number
CN201210592480.6A
Other languages
Chinese (zh)
Other versions
CN103916517B (en
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201210592480.6A priority Critical patent/CN103916517B/en
Publication of CN103916517A publication Critical patent/CN103916517A/en
Application granted granted Critical
Publication of CN103916517B publication Critical patent/CN103916517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method for implementing GSM support in an android system. The method includes the following steps of using a pppd service dialing module to start pppd service dialing; using a monitoring module to monitor whether a ppp0 network interface is activated, and if the ppp0 is not activated within a prescribed time, which indicates that the pppd service dialing fails, then restarting the service dialing; and simulating two pseudo-terminals ps0 and ps1 via a simulation module, wherein one of the terminals is used for AT command transmission and the other for data transmission. The method achieves phone communication and data connectivity functions in a Gsm module having only one physical serial port.

Description

A kind of method and apparatus of realizing GSM support in Android system
Technical field
The present invention relates to Mobile portable terminal, relate in particular to the Mobile portable terminal that uses Android (android) system.
Background technology
The development of 3G technology and maturation, be widely used 3G module, and become gradually the standard configuration of consumer electronics product.Android system is as a operation system of smart phone, is taking the chip of high pass as foundational development, because high pass chip has been realized ppp dialing with hardware, and in current Android Android system, do not possess again the support to ppp dialing.Due to little in the transmission of the industry such as the tax, logistics data volume, use 3G function not only to make cost uprise, and cause the waste of bandwidth resources, use so GSM service module can significantly reduce costs, and can meet project demands.Meanwhile, at present, GSM service module, with its cheap price and stable performance, is still widely used on some industry special equipments.
That 3G module or 2G module all will provide two passages: AT instruction path and data transmission channel.3G module is all generally that USB mouth receives and send data.USB kernel-driven can simulate at least two serial ports, and access issues has just solved like this, does not have the competition of resource.GSM service module only has a physical serial interface, so just cannot meet when sending AT instruction simultaneously and transmit data, must realize two same physical serial interface of channel time-sharing multiplexing.
Summary of the invention
This invention is the support by realize ppp dialing in Android Android system, thereby realizes gsm communication.
The present invention proposes a kind of method that GSM supports that realizes on Android system, it comprises the following steps:
Use pppd service dial module to start pppd service dialing;
Use monitoring modular to be used for monitoring ppp0 network interface and whether activate, if ppp0 is not activated in official hour, not success of pppd service dialing is described, restart described service dialing;
Simulate two pseudo-terminal ps0 and ps1 by analog module, one of them terminal is for AT command, and another is for transfer of data.
Wherein, the data packing of sending from pseudo-terminal, become GSM0710 protocol format packet, send to modulation /demodulation module by serial ports; Resolve on the other hand the packet being received by described modulation /demodulation module, be distributed to each pseudo-terminal.
The invention allows for a kind of device that GSM supports of realizing on Android system, it comprises:
Pppd service dial module is used for starting pppd dialing;
Whether monitoring modular is used for monitoring ppp0 network interface and activates, if ppp0 is not activated in official hour, not success of pppd service dialing is described, restarts service dialing;
Analog module is used for simulating two pseudo-terminal ps0 and ps1.
Wherein, a described terminal ps0 is for AT command, and another terminal ps1, for transfer of data, becomes GSM0710 protocol format packet from pseudo-terminal the data of sending packing, send to modulation /demodulation module by serial ports; Resolve on the other hand the packet being received by described modulation /demodulation module, be distributed to each pseudo-terminal.
Brief description of the drawings
Fig. 1 is the method flow diagram of on Android system realizing GSM support consistent with the embodiment of the present invention;
Fig. 2 is consistent with the embodiment of the present invention schematic diagram of realizing the device that GSM supports on Android system.
Specific embodiment
Fig. 1 is the method that on Android system realizes GSM support consistent with the embodiment of the present invention, and it comprises the following steps:
Step 1, use pppd service dial module start pppd service dialing, and above-mentioned pppd service is a kind of monitor service based on point-to-point protocol.
Whether step 2, use monitoring modular are used for monitoring ppp0 network interface and activate, if ppp0 is not activated in official hour, not success of pppd service dialing are described, restart and serve dialing.
Step 3, simulate two pseudo-terminal ps0 and ps1 by analog module, one of them terminal is for AT command, and another is for transfer of data.AT instruction is generally applied to being connected and communicating by letter between terminal equipment and PC application.AT command set is from terminal equipment (Terminal Equipment, or data terminal equipment (Data Terminal Equipment TE), DTE) to terminal adapter (Terminal Adapter, TA) or data circuit termination equipment (Data Circuit Terminal Equipment, DCE) send.
So, the data packing of sending from pseudo-terminal, become GSM0710 protocol format packet, send to modulation /demodulation module by serial ports; Resolve on the other hand the packet being received by modulation /demodulation module, be distributed to each pseudo-terminal.
Fig. 2 is the device (1) of on Android system realizing GSM support consistent with the embodiment of the present invention, and it comprises with lower device:
In system, build pppd service dial module, monitoring modular.Wherein, pppd service dial module is used for starting pppd dialing; Whether monitoring modular is used for monitoring ppp0 network interface and activates.If ppp0 is not activated in official hour, not success of pppd service dialing is described, restart service dialing.After service dial-up success starts, transfer to GSM service module to carry out, by analog module wherein, simulate two pseudo-terminal ps0 and ps1, one of them terminal is for AT command, another becomes GSM0710 protocol format packet for transfer of data data packing of sending from pseudo-terminal, sends to modulation /demodulation module by serial ports; Resolve on the other hand the packet being received by modulation /demodulation module, be distributed to each pseudo-terminal.
Above execution mode is only for illustrating the present invention; and be not limitation of the present invention; those of ordinary skill in the art; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (5)

1. on Android system, realize the method that GSM supports, it is characterized in that, comprising:
Use pppd service dial module to start pppd service dialing;
Use monitoring modular to be used for monitoring ppp0 network interface and whether activate, if ppp0 is not activated in official hour, not success of pppd service dialing is described, restart described service dialing;
Simulate two pseudo-terminal ps0 and ps1 by GSM service module, one of them pseudo-terminal ps0 is for AT command, and another pseudo-terminal ps1 is for transfer of data.
2. on Android system, realize as claimed in claim 1 the method that GSM supports, it is characterized in that, the data packing of wherein sending from pseudo-terminal, become GSM0710 protocol format packet, send to modulation /demodulation module by serial ports; Resolve on the other hand the packet being received by described modulation /demodulation module, be distributed to each pseudo-terminal.
3. on Android system, realize the device that GSM supports, it is characterized in that, comprising:
Pppd serves dial module, and it is used for starting pppd dialing;
Monitoring modular, whether it is used for monitoring ppp0 network interface and activates, if ppp0 is not activated in official hour, not success of pppd service dialing is described, restarts service dialing;
GSM service module, it is for simulating two pseudo-terminal ps0 and ps1, and described in one of them, terminal ps0 is for AT command, and another terminal ps1 is for transfer of data.
4. on Android system, realize as claimed in claim 3 the device that GSM supports, it is characterized in that, described GSM service module comprises analog module, and it is used for simulating two pseudo-terminal ps0 and ps1.
5. on Android system, realize as claimed in claim 3 the device that GSM supports, it is characterized in that, also comprise, modulation /demodulation module, becomes GSM0710 protocol format packet the data of wherein sending from pseudo-terminal packing, send to modulation /demodulation module by serial ports; Resolve on the other hand the packet being received by described modulation /demodulation module, be distributed to each pseudo-terminal.
CN201210592480.6A 2012-12-30 2012-12-30 A kind of method and apparatus realizing GSM support in Android system Active CN103916517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210592480.6A CN103916517B (en) 2012-12-30 2012-12-30 A kind of method and apparatus realizing GSM support in Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210592480.6A CN103916517B (en) 2012-12-30 2012-12-30 A kind of method and apparatus realizing GSM support in Android system

Publications (2)

Publication Number Publication Date
CN103916517A true CN103916517A (en) 2014-07-09
CN103916517B CN103916517B (en) 2016-06-29

Family

ID=51041913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210592480.6A Active CN103916517B (en) 2012-12-30 2012-12-30 A kind of method and apparatus realizing GSM support in Android system

Country Status (1)

Country Link
CN (1) CN103916517B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209526A (en) * 2016-06-30 2016-12-07 龙尚科技(上海)有限公司 A kind of communication module and its implementation realizing PPP Server function based on PPPD
CN107273321A (en) * 2016-04-08 2017-10-20 上海大潮电子技术有限公司 The serial port multiplexing method of vehicle dispatching terminal device and vehicle dispatching terminal device
CN108076153A (en) * 2017-12-21 2018-05-25 深圳市四面信息科技有限公司 A kind of the big data transmission method and system of anti-AT obstructions

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635978A (en) * 2009-05-31 2010-01-27 南京中兴特种软件有限责任公司 Multimode multiplexing wireless video route signal transmission method
CN102263935A (en) * 2011-07-11 2011-11-30 青岛科技大学 Video monitoring and transmission device based on TD-SCDMA (Time Division-Synchronization Code Division Multiple Access) network
CN102546619A (en) * 2011-12-29 2012-07-04 浙江工业大学 Modbus protocol conversion system based on 3G (The 3rd Generation Telecommunication) Internet access

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635978A (en) * 2009-05-31 2010-01-27 南京中兴特种软件有限责任公司 Multimode multiplexing wireless video route signal transmission method
CN102263935A (en) * 2011-07-11 2011-11-30 青岛科技大学 Video monitoring and transmission device based on TD-SCDMA (Time Division-Synchronization Code Division Multiple Access) network
CN102546619A (en) * 2011-12-29 2012-07-04 浙江工业大学 Modbus protocol conversion system based on 3G (The 3rd Generation Telecommunication) Internet access

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273321A (en) * 2016-04-08 2017-10-20 上海大潮电子技术有限公司 The serial port multiplexing method of vehicle dispatching terminal device and vehicle dispatching terminal device
CN106209526A (en) * 2016-06-30 2016-12-07 龙尚科技(上海)有限公司 A kind of communication module and its implementation realizing PPP Server function based on PPPD
CN108076153A (en) * 2017-12-21 2018-05-25 深圳市四面信息科技有限公司 A kind of the big data transmission method and system of anti-AT obstructions

Also Published As

Publication number Publication date
CN103916517B (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN104378729B (en) Mobile communications network service implementation method and mobile terminal system
CN106415490B (en) Mobile terminal, power adapter and upgrading method thereof
WO2019184658A1 (en) Profile switching method and apparatus, and mobile terminal
CN104202714A (en) Mobile terminal near field communication method and system for heterogeneous operating system
CN106416196B (en) Mobile terminal, power adapter and upgrading method thereof
CN103916517A (en) Method and apparatus for implementing GSM support in android system
CN103795445A (en) Method and system for transferring address book information based on blue tooth
CN101800910B (en) Simulation system, PC side simulator and mobile phone side agent client
EP2670107B1 (en) Communication method for wireless terminal and host device, and wireless terminal and host device
CN106339348B (en) Data transmission method and device based on mobile terminal interface expansion
US7124222B2 (en) Control system and method for a communications interface
CN104797004A (en) Method for implementation of automatic networking between master and slave devices
CN105657732B (en) Mobile terminal and its method for upgrading system
CN104683973B (en) Management method and system are automatically configured based on intelligent terminal
CN107241751B (en) External dialing networking method and system for wireless communication module
CN108307522B (en) Method and device for processing radio bearer, terminal and base station
CN106341830B (en) Method and terminal for realizing networking mode switching
CN112929226B (en) Test system and method
CN106900045A (en) Data transmission system and method
CN101409938A (en) Wireless communication module
CN101237644B (en) Control method of a GPRS/CDMA integrated mobile terminal
CN102811448B (en) A kind of error code recognition method and mobile terminal
CN104618653A (en) Novel Bluetooth self shooting control device
CN104980189A (en) Method and system for cross-screen transmission
CN112486583A (en) System, method, apparatus and storage medium for configuring parameters

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