CN101453741B - Method and system for mobile terminal data service debugging - Google Patents

Method and system for mobile terminal data service debugging Download PDF

Info

Publication number
CN101453741B
CN101453741B CN2007101989783A CN200710198978A CN101453741B CN 101453741 B CN101453741 B CN 101453741B CN 2007101989783 A CN2007101989783 A CN 2007101989783A CN 200710198978 A CN200710198978 A CN 200710198978A CN 101453741 B CN101453741 B CN 101453741B
Authority
CN
China
Prior art keywords
data service
portable terminal
mobile terminal
service server
data
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.)
Expired - Fee Related
Application number
CN2007101989783A
Other languages
Chinese (zh)
Other versions
CN101453741A (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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101989783A priority Critical patent/CN101453741B/en
Publication of CN101453741A publication Critical patent/CN101453741A/en
Application granted granted Critical
Publication of CN101453741B publication Critical patent/CN101453741B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for debugging the data services of a mobile terminal. The method comprises: a step S102, in which a standard SocketApi interface is encapsulated on the mobile terminal; a step S104, in which the mobile terminal transmits the data services to a PC connected with the mobile terminal; a step 106, in which the PC transmits the received data services and interacts with a data device server by using the translated data services; and a step S108, in which the PC converts data services from the data service server into data services suitable to be received by the mobile terminal and transmits the data services to the mobile terminal to complete the interaction between the mobile terminal and the data service server. The invention also discloses a system for adjusting the data services of the mobile terminal. The method and the system can debug data services related to the mobile phones without a network environment.

Description

The method and system of mobile terminal data service debugging
Technical field
The present invention relates to wireless communication field, relate in particular to method and system by PC debugging data in mobile phone business.
Background technology
Existing debugging data in mobile phone operational approach, can run into following one or several defectives:
1) do not have network, for example Experimental Network such as TD, WCDMA coverage rate is little, and PS territory bandwidth seldom even do not have Experimental Network can't be carried out the debugging of data in mobile phone business according to the method for routine under these situations;
2) network environment is normal, but when causing it to carry out data service, some mobile phone hardware structure handles with DSP, and whole debugging mode is when being in single step and following the tracks of, and the interruption that DSP sends not response in time causes whole mobile phone to be in uncontrollable state, and the meeting race of promptly often saying flies;
3) PC simulator environment can also can be debugged without network, but its real simulation mobile phone running environment fully, such as chip post-processed that does not have mobile phone etc.; And
4) can solve this type of contradiction by the Tcp/ip protocol stack, but the realization of Tcp/ip protocol stack needs certain workload.
In these cases, we can try every possible means to allow mobile phone terminal and PC carry out communication, walk the Internet/Intranet network then and replace original wireless network, and this just can solve the above problems.
Therefore, need a kind of solution of mobile terminal data service debugging, can solve the problem in the above-mentioned correlation technique.
Summary of the invention
The present invention aims to provide a kind of solution of mobile terminal data service debugging, can solve the problem in the above-mentioned correlation technique.
According to an aspect of the present invention, provide a kind of method of mobile terminal data service debugging, this method may further comprise the steps: step S102, the SocketApi interface of encapsulation standard on portable terminal; Step S104, portable terminal is sent to coupled PC with data service; Step S106, PC is translated the data service that receives, and utilizes data service and data service server after the translation to carry out carrying out corresponding networking command alternately; And step S108, PC will be sent to portable terminal after will converting the data service that is suitable for the portable terminal reception from the data service of data service server to, finish the mutual of portable terminal and data service server.
Step S104 is further comprising the steps of: portable terminal is created the thread of monitoring PC return data business.
Step S108 is further comprising the steps of: after portable terminal receives data service from PC, remove the synchronous wait of thread.
Interface between portable terminal and the PC comprises serial ports and USB interface.
Be connected by Internet or Intranet between PC and the data service server.
According to another aspect of the present invention, a kind of system of mobile terminal data service debugging is provided, comprise portable terminal, this system also comprises: PC, be connected to portable terminal, be used for after translating from the data service of portable terminal, and utilize data service and data service server after the described translation to carry out alternately, carry out corresponding networking command, and be sent to portable terminal after will converting the data service that is suitable for the portable terminal reception by the data service that data service server returns to; And data service server, be used for carrying out alternately with PC.
Can realize following technique effect by the present invention: do not need to realize the TCPIP protocol stack; Need not network environment and still can debug the mobile phone data services related; Adopt unified Socket interface, all upper layer application do not need to change; And being subjected to the mobile phone hardware structural limitations, " race flies " phenomenon that causes owing to DSP when carrying out the tracking network code with Trace can not take place.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart that illustrates according to the method for mobile terminal data service debugging of the present invention;
Fig. 2 is the structural representation that illustrates according to the system of mobile terminal data service debugging of the present invention;
Fig. 3 is the block diagram that illustrates according to the specific implementation of the system of the mobile terminal data service debugging of the embodiment of the invention; And
Fig. 4 is the flow chart that illustrates according to the method for the mobile terminal data service debugging of the embodiment of the invention.
Embodiment
Describe embodiments of the invention in detail below in conjunction with accompanying drawing.
Fig. 1 is the flow chart that illustrates according to the method for mobile terminal data service debugging of the present invention.With reference to Fig. 1, may further comprise the steps: step S102, the SocketApi interface of encapsulation standard on portable terminal according to the method for mobile terminal data service debugging of the present invention; Step S104, portable terminal is sent to coupled PC with data service; Step S106, PC is translated the data service that receives, and utilizes data service and data service server after the translation to carry out alternately; And step S108, PC will be sent to portable terminal after will converting the data service that is suitable for the portable terminal reception from the data service of data service server to, finish the mutual of portable terminal and data service server.
Step S104 is further comprising the steps of: portable terminal is created the thread of monitoring PC return data business.
Step S108 is further comprising the steps of: after portable terminal receives data service from PC, remove the synchronous wait of thread.
Interface between portable terminal and the PC comprises serial ports and USB interface.
Be connected by Internet or Intranet between PC and the data service server.
Fig. 2 is the structural representation that illustrates according to the system of mobile terminal data service debugging of the present invention.With reference to Fig. 2, system 200 according to mobile terminal data service debugging of the present invention comprises portable terminal 202, this system also comprises: PC 204, be connected to portable terminal, be used for after translating from the data service of portable terminal, utilize data service and data service server after translating to carry out alternately, and be sent to portable terminal after will converting the data service that is suitable for the portable terminal reception by the data service that data service server returns to; And data service server 206, be used for carrying out alternately with PC.
Describe according to one embodiment of present invention referring again to Fig. 2 below.In the system of debugging data in mobile phone business in this embodiment, mobile phone terminal links to each other with PC side (being our service side) through serial ports or USB interface etc. according to self-defining communication format bag, mobile phone side and service side respectively have one to explain the conversion encapsulation module, the mobile phone side can be the Socket package interface of a standard, it is inner realizes translation and to the transmission and the reception work of service side, the order bag that service side joint receipts mobile phone side is sent is translated the back and is carried out the corresponding network operation, passes to the mobile phone side after the value of returning is changed.
Below with reference to Fig. 2, Fig. 3 and Fig. 4 an alternative embodiment of the invention is described.As shown in Figure 2, this far call system comprises mobile phone terminal (being loaded with the far call client), is loaded with PC and data service server that far call is served.
As shown in Figure 3, mobile phone 202 comprises SocketApi package module 2022, far call client modules 2024 and the communication module 2026 of standard.The standard SocketApi module 2022 of mobile phone side is called Terminal Server Client module 2024 and is packaged, mutual via communication module 2026 with PC204, PC204 receives and transfers to far call server module 2042 behind the order bag and unpack and carry out the corresponding network order, itself and data service server 206 mutual results send back to mobile phone 202 again through 2042 groups of bags of far call server module, mobile phone 202 unpacks and returns to SocketApi package module 2022, so just finished Socket order circulation, that the real data of it and data service server 206 is walked alternately is Internet/Intranet.
Fig. 4 is the flow chart that illustrates according to the method for the mobile terminal data service debugging of the embodiment of the invention.In this embodiment, the method for mobile terminal data service debugging may further comprise the steps:
Step S402, the SocketApi interface of mobile phone side seal dress standard is as Socket, Connect, Accept, Send, SendTo etc.;
Step S404, the far call client-side interface of encapsulation mobile phone side is finished the SocketApi encapsulation and is used to send to PC side far call service processing program.The mobile phone side is created a thread and is monitored returning of PC side data, guarantees the synchronous wait of interface with OS Events mechanism;
Step S406, the PC side needs a far call service routine, is used for receiving the data that the mobile phone side is sent, and unpacks the back and removes to carry out relevant PC side networking command according to the corresponding command, and the data of returning from network are packed and are returned to the mobile phone side;
Step S408, mobile phone side joint receive and unpack after the data and the data of returning are sent to calling module that remove the synchronous wait of thread this moment, thereby finish once complete simulation Socket function order; And
Step S410, repeating step S402~step S408 can intactly substitute the mutual of whole mobile phone and wireless network, debug the data in mobile phone business thereby finish by PC.
Can realize following technique effect by the present invention: do not need to realize the TCPIP protocol stack; Need not network environment and still can debug the mobile phone data services related; Adopt unified Socket interface, all upper layer application do not need to change; And being subjected to the mobile phone hardware structural limitations, " race flies " phenomenon that causes owing to DSP when carrying out the tracking network code with Trace can not take place.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. the method for a mobile terminal data service debugging is characterized in that, may further comprise the steps:
Step S102, the SocketApi interface of encapsulation standard on described portable terminal;
Step S104, described portable terminal is sent to coupled PC with data service;
Step S106, described PC is translated the described data service that receives, and utilize data service and data service server after the translation to carry out alternately, carry out corresponding networking command, wherein, be connected by Internet or Intranet between described PC and the described data service server; And
Step S108, described PC will be sent to described portable terminal after will converting the data service that is suitable for described portable terminal reception from the data service of described data service server to, finish the mutual of described portable terminal and described data service server.
2. method according to claim 1 is characterized in that, described step S104 is further comprising the steps of:
Described portable terminal is created the thread of monitoring described PC return data business.
3. method according to claim 2 is characterized in that, described step S108 is further comprising the steps of:
Described portable terminal is removed the synchronous wait of described thread after receiving described data service from described PC.
4. method according to claim 3 is characterized in that, the interface between described portable terminal and the described PC comprises serial ports and USB interface.
5. the system of a mobile terminal data service debugging comprises portable terminal, it is characterized in that, also comprises:
PC, be connected to described portable terminal, be used for after translating from the data service of described portable terminal, and utilize data service and data service server after the described translation to carry out alternately, carry out corresponding networking command, and be sent to described portable terminal after will converting the data service that is suitable for described portable terminal reception by the data service that described data service server returns to, wherein, be connected by Internet or Intranet between described PC and the described data service server, described portable terminal is packaged with the SocketApi interface of standard; And
Described data service server is used for carrying out alternately with described PC.
6. system according to claim 5 is characterized in that, the interface between described portable terminal and the described PC comprises serial ports and USB interface.
CN2007101989783A 2007-12-07 2007-12-07 Method and system for mobile terminal data service debugging Expired - Fee Related CN101453741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101989783A CN101453741B (en) 2007-12-07 2007-12-07 Method and system for mobile terminal data service debugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101989783A CN101453741B (en) 2007-12-07 2007-12-07 Method and system for mobile terminal data service debugging

Publications (2)

Publication Number Publication Date
CN101453741A CN101453741A (en) 2009-06-10
CN101453741B true CN101453741B (en) 2011-08-10

Family

ID=40735706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101989783A Expired - Fee Related CN101453741B (en) 2007-12-07 2007-12-07 Method and system for mobile terminal data service debugging

Country Status (1)

Country Link
CN (1) CN101453741B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196044A (en) * 2011-04-29 2011-09-21 中兴通讯股份有限公司 Data transmission method and system
CN102333087B (en) * 2011-09-22 2015-07-08 宇龙计算机通信科技(深圳)有限公司 Communication method and service client, terminal and system thereof
CN103095514A (en) * 2011-11-02 2013-05-08 联芯科技有限公司 Terminal packet switcher (PS) service testing method and system based on Ethernet
CN113364870A (en) * 2021-06-07 2021-09-07 上海天好信息技术股份有限公司 Low-memory handheld terminal data transmission system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1631051A (en) * 2002-02-15 2005-06-22 瓦利迪塔斯公司 Device for testing packet-switched cellular radio network
CN101031124A (en) * 2006-03-03 2007-09-05 中兴通讯股份有限公司 Platform for testing applied large-traffic volume of packet data service father in CDMA telecommunication system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1631051A (en) * 2002-02-15 2005-06-22 瓦利迪塔斯公司 Device for testing packet-switched cellular radio network
CN101031124A (en) * 2006-03-03 2007-09-05 中兴通讯股份有限公司 Platform for testing applied large-traffic volume of packet data service father in CDMA telecommunication system

Also Published As

Publication number Publication date
CN101453741A (en) 2009-06-10

Similar Documents

Publication Publication Date Title
US11032739B2 (en) Dynamic header compression for constrained networks
Chen et al. A brief introduction to IoT gateway
CN102377814B (en) Remote assistance service method aiming at embedded operation system
CN108270818B (en) Micro-service architecture system and access method thereof
CN100531090C (en) Method for implementing universal message bus based universal service system structure
CN104052759A (en) System for realizing add-and-play technology of internet of things
CN101262478A (en) Method and device for penetrating NAT
WO2003085892A3 (en) Methods for communication in a multi-cluster network, device for connection to a network of clusters and bridge for connecting clusters
Azzara et al. Middleware solutions in WSN: The IoT oriented approach in the ICSI project
EP2429150A1 (en) Apparatus, web service component and method based on web service
CN103139150A (en) Terminal adaptation processing method, protocol adaptation module and terminal
CN101453741B (en) Method and system for mobile terminal data service debugging
CN104317661A (en) Intersystem communication method and device of dual embedded systems
CN102546319A (en) Method and system for interworking between terminals of Internet of things
CN108616855A (en) Bluetooth equipment tele-control system and method
Azzara et al. The icsi m2m middleware for iot-based intelligent transportation systems
CN102315981B (en) Equipment and method for testing evolved packet core network equipment
CN101895441B (en) Service debugging device and method for JAVA application of terminal of Internet of things
CN102202045A (en) Method, system and device for realizing Internet access in broadcast television network
Yarvis et al. Conductor: Distributed adaptation for complex networks
CN102932968B (en) The method of data card and data card networking
CN107911157B (en) Universal satellite command automation technology data processing system and method
Yang et al. Design of communication interface for M2M-based positioning and monitoring system
CN101237372B (en) Packet data service transmission method and wireless terminal
Kim et al. Service-provider intelligent humanoid robot using TCP/IP and CORBA

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: 20110810

Termination date: 20201207