CN101453741B - Method and system for mobile terminal data service debugging - Google Patents
Method and system for mobile terminal data service debugging Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000005538 encapsulation Methods 0.000 claims description 6
- 238000013519 translation Methods 0.000 claims description 6
- 230000006855 networking Effects 0.000 claims description 5
- 230000001360 synchronised effect Effects 0.000 claims description 5
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000003993 interaction Effects 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
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
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.
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)
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)
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 |
-
2007
- 2007-12-07 CN CN2007101989783A patent/CN101453741B/en not_active Expired - Fee Related
Patent Citations (2)
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 for Embedded Operating System | |
CN100531090C (en) | Method for implementing universal message bus based universal service system structure | |
CN101262478A (en) | Method and device for penetrating NAT | |
CN108270818A (en) | A kind of micro services architecture system and its access method | |
EP2429150A1 (en) | Apparatus, web service component and method based on web service | |
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 | |
CN102595208A (en) | Cloud terminal control networking video image processing streaming media service system and method | |
CN103152370B (en) | A kind of internet of things service gateway system and application process | |
CN116208222B (en) | Data transmission method, device, equipment and storage medium | |
CN101453741B (en) | Method and system for mobile terminal data service debugging | |
CN102546319A (en) | Method and system for interworking between terminals of Internet of things | |
CN104317661A (en) | Intersystem communication method and device of dual embedded systems | |
WO2015103848A1 (en) | Method, system and terminal for realizing network access via wifi | |
CN104519129A (en) | Data transmission method, device and system | |
CN101895441B (en) | Service debugging device and method for JAVA application of terminal of Internet of things | |
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 | |
CN108616855A (en) | Bluetooth equipment tele-control system and method | |
Yarvis et al. | Conductor: Distributed adaptation for complex networks | |
CN102202045A (en) | Method, system and device for realizing Internet access in broadcast television network | |
CN102932968B (en) | The method of data card and data card networking | |
CN107911157B (en) | Universal satellite command automation technology data processing system and method |
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 |