CN103916517B - A kind of method and apparatus realizing GSM support in Android system - Google Patents

A kind of method and apparatus realizing GSM support in Android system Download PDF

Info

Publication number
CN103916517B
CN103916517B CN201210592480.6A CN201210592480A CN103916517B CN 103916517 B CN103916517 B CN 103916517B CN 201210592480 A CN201210592480 A CN 201210592480A CN 103916517 B CN103916517 B CN 103916517B
Authority
CN
China
Prior art keywords
terminal
pseudo
service
module
pppd
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.)
Active
Application number
CN201210592480.6A
Other languages
Chinese (zh)
Other versions
CN103916517A (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 present invention proposes a kind of method realizing GSM support on Android system, and it comprises the following steps: uses pppd to service dial module startup pppd service and dials;Use monitoring modular to be used for monitoring whether ppp0 network interface activates, if ppp0 is not activated within the time of regulation, pppd service dialing not success is described, then restarts described service dialing;Simulating two pseudo-terminal ps0 and ps1 by analog module, one of them terminal is for AT instruction transmission, and another is for data transmission.In the Gsm module of only one of which physical serial interface, realize telephonic communication function and data linkage function by this method solving simultaneously.

Description

A kind of method and apparatus realizing GSM support in Android system
Technical field
The present invention relates to Mobile portable terminal, particularly relate to the Mobile portable terminal using Android (android) system.
Background technology
The development of 3G technology and maturation so that 3G module is widely used, and it is increasingly becoming the standard configuration of consumer electronics product.Android system, as a operation system of smart phone, is exploitation based on the chip of high pass, owing to high pass chip achieves ppp dialing hardware, and in current Android Android system, does not possess again the support to ppp dialing.Due to little in the transmission of the industry data amount such as the tax, logistics, use 3G function not only to make cost uprise, and cause the waste of bandwidth resources, then use GSM service module then can significantly reduce cost, and project demands can be met.Meanwhile, at present, GSM service module, with its cheap price and stable performance, is still widely used on some industry special equipments.
It it is no matter 3G module or 2G module is offered to two passages: AT instruction path and data transmission channel.3G module is typically all USB port and receives and send data.USB kernel-driven can simulate at least two serial ports, and such access issues just solves, and is absent from the competition of resource.GSM service module only one of which physical serial interface, thus cannot meet transmission data when transmission AT instruction, it is necessary to realize two same physical serial interface of channel time-sharing multiplexing simultaneously.
Summary of the invention
This invention is the support by realizing ppp dialing in Android Android system, thus realizing gsm communication.
The present invention proposes a kind of method realizing GSM support on Android system, and it comprises the following steps:
Use pppd to service dial module and start pppd service dialing;
Use monitoring modular to be used for monitoring whether ppp0 network interface activates, if ppp0 is not activated within the time of regulation, pppd service dialing not success is described, then restarts described service dialing;
Simulating two pseudo-terminal ps0 and ps1 by analog module, one of them terminal is for AT instruction transmission, and another is for data transmission.
Wherein, after the data packing that pseudo-terminal sends, become GSM0710 protocol formatted data bag, be sent to modulation /demodulation module by serial ports;Resolve the packet received by described modulation /demodulation module on the other hand, be distributed to each pseudo-terminal.
The invention allows for a kind of device realizing GSM support on Android system, comprising:
Pppd services dial module and is used for starting pppd dialing;
Monitoring modular is used for monitoring whether ppp0 network interface activates, if ppp0 is not activated within the time of regulation, pppd service dialing not success is described, then restarts service dialing;
Analog module is used for simulating two pseudo-terminal ps0 and ps1.
Wherein, a described terminal ps0 is for AT instruction transmission, and another terminal ps1, for data transmission, becomes GSM0710 protocol formatted data bag after the data packing that pseudo-terminal sends, is sent to modulation /demodulation module by serial ports;Resolve the packet received by described modulation /demodulation module on the other hand, be distributed to each pseudo-terminal.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that on Android system realizes GSM support consistent with the embodiment of the present invention;
Fig. 2 is the schematic diagram that on Android system realizes the GSM device supported consistent with the embodiment of the present invention.
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 one, use pppd service dial module and start pppd service dialing, and above-mentioned pppd service is a kind of monitoring service based on point-to-point protocol.
Step 2, use monitoring modular are used for monitoring whether ppp0 network interface activates, if ppp0 is not activated within the time of regulation, illustrates that pppd service dialing does not have success, then restart service dialing.
Step 3, being simulated two pseudo-terminal ps0 and ps1 by analog module, one of them terminal is for AT instruction transmission, and another is for data transmission.AT instruction is generally used for the connection between terminal unit and PC application and communication.AT command set is from terminal unit (TerminalEquipment, or data terminal equipment (DataTerminalEquipment TE), DTE) to terminal adapter (TerminalAdapter, or what data circuit termination equipment (DataCircuitTerminalEquipment, DCE) sent TA).
So, after the data packing that pseudo-terminal sends, become GSM0710 protocol formatted data bag, be sent to modulation /demodulation module by serial ports;Resolve the packet received by modulation /demodulation module on the other hand, be distributed to each pseudo-terminal.
Fig. 2 is the device (1) that on Android system realizes GSM support consistent with the embodiment of the present invention, and it includes following device:
Build pppd in systems and service dial module, monitoring modular.Wherein, pppd services dial module for starting pppd dialing;Monitoring modular is used for monitoring whether ppp0 network interface activates.If ppp0 is not activated within the time of regulation, pppd service dialing not success is described, then restarts service dialing.After service dial-up success starts, GSM service module is transferred to perform, by analog module therein, simulate two pseudo-terminal ps0 and ps1, one of them terminal is for AT instruction transmission, another becomes GSM0710 protocol formatted data bag after the data packing that pseudo-terminal sends for data transmission, is sent to modulation /demodulation module by serial ports;Resolve the packet received by modulation /demodulation module on the other hand, be distributed to each pseudo-terminal.
Embodiment of above is merely to illustrate the present invention; and it is 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 equivalent technical schemes fall within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims.

Claims (2)

1. one kind realizes the GSM method supported on Android system, it is characterised in that including:
Use pppd to service dial module and start pppd service dialing;
Use monitoring modular to be used for monitoring whether ppp0 network interface activates, if ppp0 is not activated within the time of regulation, pppd service dialing not success is described, then restarts described service dialing;
Simulating two pseudo-terminal ps0 and ps1, one of them pseudo-terminal ps0 for AT instruction transmission by GSM service module, another pseudo-terminal ps1 is for data transmission;Wherein, after the data packing that pseudo-terminal sends, become GSM0710 protocol formatted data bag, be sent to modulation /demodulation module by serial ports;Resolve the packet received by described modulation /demodulation module on the other hand, be distributed to each pseudo-terminal.
2. one kind realizes the GSM device supported on Android system, it is characterised in that including:
Pppd services dial module, and it is used for starting pppd dialing;
Monitoring modular, it is used for monitoring whether ppp0 network interface activates, if ppp0 is not activated within the time of regulation, pppd service dialing not success is described, then restarts service dialing;
GSM service module, it is used for simulating two pseudo-terminal ps0 and ps1, and one of them described terminal ps0 is for AT instruction transmission, and another terminal ps1 is for data transmission;With
Modulation /demodulation module, the data wherein sent from pseudo-terminal become GSM0710 protocol formatted data bag after packing, and are sent to modulation /demodulation module by serial ports;Resolve the packet received by described modulation /demodulation module on the other hand, be distributed to each pseudo-terminal;
Described GSM service module includes analog module, and it is used for simulating two pseudo-terminal ps0 and ps1.
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 CN103916517A (en) 2014-07-09
CN103916517B true 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)

Families Citing this family (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
CN106209526B (en) * 2016-06-30 2019-04-26 龙尚科技(上海)有限公司 A kind of communication module and its implementation for 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

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

Also Published As

Publication number Publication date
CN103916517A (en) 2014-07-09

Similar Documents

Publication Publication Date Title
EP3614629B1 (en) Data-stream allocation method for link aggregation and related devices
CN104980898A (en) Information pushing method, system and equipment
CN103534984A (en) Port setting method, apparatus and computer program product for routing
US20120020394A1 (en) Application processor, modem and method for communicating therebetween
WO2019184658A1 (en) Profile switching method and apparatus, and mobile terminal
CN103916517B (en) A kind of method and apparatus realizing GSM support in Android system
CN104283878A (en) Security type mobile terminal based on cloud services and method of security type mobile terminal based on cloud services for having access to cloud server
CN102216917B (en) Configuration method for data interface and terminal device
CN102664958A (en) Transparent computing system
CN106416196B (en) Mobile terminal, power adapter and upgrading method thereof
US9462535B2 (en) Method, apparatus and system for obtaining error code information
CN101945322A (en) Method and system for communicating with wireless network by using data card and data card
CN103581240B (en) Download method, user equipment and the application server of application program
CN103078939A (en) Television wall splicing control method, device and controller
CN107317881B (en) BA system based on micro-service architecture
CN102098274A (en) Method and system for external terminal to remotely log in slave equipment
US7124222B2 (en) Control system and method for a communications interface
CN104797004A (en) Method for implementation of automatic networking between master and slave devices
CN102281559B (en) Method and device for testing packet switch (PS) performance of wireless network by performing file transfer protocol (FTP) service through multiple data cards
CN104683973B (en) Management method and system are automatically configured based on intelligent terminal
CN103746842A (en) Method and system for detecting fault restarting of line card
CN102880508A (en) Method and system for realizing PC (Personal Computer)-controlled Android terminal
CN108307522B (en) Method and device for processing radio bearer, terminal and base station
CN106912002B (en) Communication control method, communication control device, vehicle-mounted equipment and transportation means
CN105657732B (en) Mobile terminal and its method for upgrading 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
C14 Grant of patent or utility model
GR01 Patent grant