CN101370203B - Apparatus and method for mobile phone platform data communication - Google Patents
Apparatus and method for mobile phone platform data communication Download PDFInfo
- Publication number
- CN101370203B CN101370203B CN2008100681534A CN200810068153A CN101370203B CN 101370203 B CN101370203 B CN 101370203B CN 2008100681534 A CN2008100681534 A CN 2008100681534A CN 200810068153 A CN200810068153 A CN 200810068153A CN 101370203 B CN101370203 B CN 101370203B
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- data communication
- data
- application program
- communication server
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a device and a method for cell phone platform data communication, the device comprises: a communication interface located at a PC side, for receiving and transmitting data; a data communication server connected with the communication interface, for management of PC application programs and registration information of the cell phone and also for receiving and transmitting data between each PC application program and each cell phone; a data receiving and transmitting module located at the cell phone side, for receiving the data from the data communication server and then transmitting the data to a sub-module of the cell phone, and for transmitting the data from the sub-module of the cell phone to the data communication server. The method comprises the following steps that: the data communication server is initiated, then the PC application programs are registered, the PC application programs transmit data packets to the cell phone, the data communication server retransmits the data packets, in the end, the cell phone receives and retransmits the data packets to the sub-module. The invention integrates the communication to a module for processing, and just needs to modify codes of the communication interface at the PC side and codes of the data communication server in the event of occurrence of a new communication port on the cell phone, which remarkably advances communication efficiency.
Description
Technical field
The invention belongs to production, the debugging field of mobile phone, relate in particular to a kind of device of mobile phone platform data communication, and in cell phone platform, carry out the method for data communication between some PC application programs and the some mobile phones.
Background technology
In the production of mobile phone, debugging, manufacture process; Need operation in the cell phone system and Debugging message be transferred to the PC side, supply application-specific to show and analysis, simultaneously; PC side application program also need be sent steering order to mobile phone, or downloads Various types of data to mobile phone.The data communication interface form that general mobile phone provides is single, and type is different.
The general means of communication are the PORT COMs according to mobile phone now, in each application program, finish writing code according to the communication modes of reserving respectively, and each application program is carried out communication with mobile phone respectively.If the PORT COM of mobile phone changes; Then need remodify the code of each application program; The modularization of Rogue program so not only, and if on production line, take place, the process of that change will greatly influence the efficient of production; Simultaneously, also there are two problems in this method: (1) can not solve the communication need between PC side application program and the application program; (2) can not solve each application program and move simultaneously, carry out the demand of data communication with special handset.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art, a kind of device of mobile phone platform data communication is provided, and carry out the method for data communication with this device.This device provides unified communication interface to each PC side application program; And in the PC system, set up a data communication server; Integrated communication support in data communication server to each generic port; Application program is used communication interface, can realize and mobile phone or other application's data communication through data communication server.This method can be supported data transmit-receive between many mobile phones multiple utility program; When certain module interface changes; Only need to revise the code of communication interface and data communication server, the code of each PC application program and mobile module need not to change, and has greatly improved production efficiency.
For solving the problems of the technologies described above, the present invention realizes through following technical scheme:
A kind of device of mobile phone platform data communication comprises:
Be positioned at the communication interface of PC side, be embedded in each PC application program and move, the communication interface function is provided, be used for transceive data;
Data communication server runs on the PC side, is connected with the communication interface of the said PC of being positioned at side, is used for the log-on message of administration PC application program and mobile phone, between each PC application program and each mobile phone, transmits data;
Be positioned at the data forwarding module of mobile phone side, the PORT COM through mobile phone receives and transmits the submodule that data are given mobile phone from data communication server, and the data of the submodule of the mobile phone PORT COM through mobile phone is sent to said data communication server.
The communication interface of the said PC of being positioned at side is to provide with dynamic or static link library form.
Said data communication server comprises TCP PORT COM and data distribution submodule, and at least a in UART PORT COM and the USB PORT COM, and said TCP PORT COM is connected with the communication interface that is positioned at the PC side, is used to receive and dispatch the PC application's data; Said data distribution submodule be connected with the TCP PORT COM and with UART PORT COM and USB PORT COM at least a the connection; Said UART PORT COM and/or USB PORT COM are connected with the PORT COM of mobile phone, are used for the data of the submodule of transmit-receive mobile phone.
A kind of method of mobile phone platform data communication comprises the steps:
Step 1: log-on data communication server;
Step 2: registration PC application program;
Step 3: the PC application program is sent packet to mobile phone;
Step 4: data communication server is transmitted packet;
Step 5: mobile phone receives packet and is forwarded to its submodule.
Further, said step 1 log-on data communication server is meant: respectively each PC application program and each mobile phone are numbered, each mobile phone is configured communication modes and port numbers, log-on data communication server in the PC Parameter File; Open each mobile phone and be connected to data communication server, data communication server is monitored each PC registration of application program request and is opened the PORT COM of mobile phone at the TCP PORT COM, and poll receives the upstream data of mobile phone; Said step 2 registration PC application program is meant: operation PC application program, and PC application call communication interface registration function connects data communication server; Data communication server response connection request is set up data communication link, obtains this PC registration of application program information and adds in its Registering modules tabulation; Said step 3 PC application program is sent packet to mobile phone and is meant: sign of PC application program tissue has the packet of the numbering of numbering that receives mobile phone and the submodule that receives mobile phone; Call the transmission data function of communication interface, the communication link of setting up through step 2 sends to data communication server with this packet; Said step 4 data communication server is transmitted packet and is meant: data communication server receives PC application program data sent bag; Numbering according to the reception mobile phone that packet identified finds the PORT COM that receives the mobile phone correspondence, and writes the data packet this PORT COM; Said step 5 mobile phone receives packet and is forwarded to its submodule and is meant: the data forwarding module of mobile phone side reads the packet of PORT COM, analyzes packet and is transmitted to the submodule of the mobile phone that receives this packet.
To open the PORT COM of mobile phone be to open the PORT COM with the configuration information corresponding mobile phone according to the handset configuration information of Parameter File among the PC to data communication server in the said step 1.
The PC registration of application program information of obtaining in the said step 2 is the numbering of PC application program etc.
The submodule of mobile phone comprises NV submodule, file system submodule and task management submodule etc.
The device and method of mobile phone platform data communication of the present invention has following beneficial effect:
(1) the interior submodule of each PC application program and mobile phone does not need to consider the realization of communication again; Communication is integrated in the module handles; Greatly improved communication efficiency; Running into mobile phone has new PORT COM to occur, and a needs modification is positioned at the communication interface of PC side and the code of data communication server gets final product, and has improved the utilization factor of mobile communication port;
(2) data communication server and communication interface are through the communication of TCP PORT COM; Integrated communication support in server to each generic port; Application program is used communication interface, can realize and mobile phone or other application's data communication through data communication server; The data forwarding module of mobile phone side; Receive the data of receiving from communication interface on the one hand, and be forwarded to the designated mobile phone submodule, on the other hand according to Data Identification; The upstream data of each mobile phone submodule is sent from PORT COM, can support data transmit-receive between many mobile phones multiple utility program;
(3) this installs whole process and compares with traditional communication modes and only increased a data communication server; But saved the communication part of each application program; Make modularization obtain very big reinforcement, communication efficiency has obtained very big lifting, safeguards also more simple and convenient.
Description of drawings
Fig. 1 is the enforcement synoptic diagram of the device of mobile phone platform data communication of the present invention.
Embodiment
In order to understand the present invention better, the present invention is done to describe further below in conjunction with accompanying drawing and specific embodiment.
So that two communication interfaces to be arranged is example, sees also Fig. 1, and the device of mobile phone platform data communication of the present invention comprises: be positioned at communication interface 1, the data communication server 2 of PC side and be positioned at the data forwarding module 3 of mobile phone side.The communication interface 1 that is positioned at the PC side provides with dynamic or static link library form, is embedded in each PC application program and moves, and the communication interface function is provided, and is used for transceive data.Data communication server 2 runs on the PC side, comprises TCP PORT COM 201, data distribution submodule 202, UART PORT COM 203 and USB PORT COM 204 (is example to contain UART PORT COM and USB PORT COM simultaneously); TCP PORT COM 201 is connected with the communication interface that is positioned at the PC side 1, is used to receive and dispatch the PC application's data; Data distribution submodule 202 is connected respectively with TCP PORT COM 201, UART PORT COM 203, USB PORT COM 204; UART PORT COM 203 is connected with the PORT COM 4 of mobile phone with USB PORT COM 204, is used for the data of the submodule 5 of transmit-receive mobile phone.This data communication server 2 is used for the log-on message of administration PC application program and mobile phone, between each PC application program and each mobile phone, transmits data.Be positioned at the data forwarding module 3 of mobile phone side, the PORT COM 5 through mobile phone receives and transmits the submodule 5 that data are given mobile phone from data communication server 2, and the data of the submodule 5 of the mobile phone PORT COM 4 through mobile phone is sent to data communication server 2.
Come the present invention is done further elaboration to the angle that mobile phone sends data procedures from the PC application program below.The method of this mobile phone platform data communication comprises the steps:
Step 1: log-on data communication server
Respectively each PC application program and each mobile phone are numbered, each mobile phone is configured communication modes and port numbers, log-on data communication server in the PC Parameter File; Open each mobile phone and be connected to data communication server; Data communication server is monitored each PC registration of application program request at the TCP PORT COM; Open the PORT COM with the configuration information corresponding mobile phone according to the handset configuration information of Parameter File among the PC, poll receives the upstream data of mobile phone;
Step 2: registration PC application program
Operation PC application program, PC application call communication interface registration function connects data communication server; Data communication server response connection request is set up data communication link, obtains the numbering of this PC registration of application program information such as PC application program etc., and adds in its Registering modules tabulation;
Step 3: the PC application program is sent packet to mobile phone
Sign of PC application program tissue has the packet of the numbering of numbering that receives mobile phone and the submodule that receives mobile phone, calls the transmission data function of communication interface, and the communication link of setting up through step 2 sends to data communication server with this packet;
Step 4: data communication server is transmitted packet
Data communication server receives PC application program data sent bag, finds the PORT COM of reception mobile phone correspondence according to the numbering of the reception mobile phone that packet identified, and writes the data packet this PORT COM;
Step 5: mobile phone receives packet and is forwarded to its submodule
The data forwarding module of mobile phone side reads the packet of PORT COM, analyzes packet and is transmitted to the submodule of the mobile phone that receives this packet, like NV submodule, file system submodule, dispatching system submodule etc.
The present invention is integrated into communication in the module and handles; Greatly improved communication efficiency; Running into mobile phone has new PORT COM to occur, and a needs modification is positioned at the communication interface of PC side and the code of data communication server gets final product, and has improved the utilization factor of mobile communication port; Can support data transmit-receive between many mobile phones multiple utility program, safeguard also more simple and convenient.
The above is merely preferred embodiment of the present invention;, not should be pointed out that for the person of ordinary skill of the art in order to restriction the present invention; Any modification of being done within every spirit of the present invention and the principle, be equal to replacement or improvement etc., all should be included within protection scope of the present invention.
Claims (3)
1. the method for a mobile phone platform data communication is characterized in that, comprises the steps:
Step 1: log-on data communication server;
Step 2: registration PC application program;
Step 3: the PC application program is sent packet to mobile phone;
Step 4: data communication server is transmitted packet;
Step 5: mobile phone receives packet and is forwarded to its submodule;
Wherein: said step 1 log-on data communication server is meant: respectively each PC application program and each mobile phone are numbered, each mobile phone is configured communication modes and port numbers, log-on data communication server in the PC Parameter File; Open each mobile phone and be connected to data communication server, data communication server is monitored each PC registration of application program request and is opened the mobile communication port at the TCP PORT COM, and poll receives the upstream data of mobile phone;
Said step 2 registration PC application program is meant: operation PC application program, and PC application call communication interface registration function connects data communication server; Data communication server response connection request is set up data communication link, obtains this PC registration of application program information and adds in its Registering modules tabulation;
Said step 3 PC application program is sent packet to mobile phone and is meant: sign of PC application program tissue has the packet of the numbering of numbering that receives mobile phone and the submodule that receives mobile phone; Call the transmission data function of communication interface, the communication link of setting up through step 2 sends to data communication server with this packet;
Said step 4 data communication server is transmitted packet and is meant: data communication server receives PC application program data sent bag; Numbering according to the reception mobile phone that packet identified finds the PORT COM that receives the mobile phone correspondence, and writes the data packet this PORT COM;
Said step 5 mobile phone receives packet and is forwarded to its submodule and is meant: the data forwarding module of mobile phone side reads the packet of PORT COM, analyzes packet and is transmitted to the submodule of the mobile phone that receives this packet.
2. the method for mobile phone platform data communication according to claim 1; It is characterized in that to open the PORT COM of mobile phone be to open the PORT COM with the configuration information corresponding mobile phone according to the handset configuration information of Parameter File among the PC to data communication server in the said step 1.
3. the method for mobile phone platform data communication according to claim 2 is characterized in that, the PC registration of application program information of obtaining in the said step 2 is the numbering of PC application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100681534A CN101370203B (en) | 2008-06-30 | 2008-06-30 | Apparatus and method for mobile phone platform data communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100681534A CN101370203B (en) | 2008-06-30 | 2008-06-30 | Apparatus and method for mobile phone platform data communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101370203A CN101370203A (en) | 2009-02-18 |
CN101370203B true CN101370203B (en) | 2012-01-11 |
Family
ID=40413775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100681534A Expired - Fee Related CN101370203B (en) | 2008-06-30 | 2008-06-30 | Apparatus and method for mobile phone platform data communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101370203B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969454B (en) * | 2010-09-06 | 2013-06-12 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for realizing data transmission between mobile terminal and computer |
CN102469133B (en) * | 2010-11-15 | 2015-04-01 | 腾讯科技(深圳)有限公司 | Terminal logging method and system as well as server data processing method and system |
CN102209111B (en) * | 2011-05-20 | 2014-07-09 | 重庆广典网络信息技术有限公司 | Open cross-platform system for cloud computing mobile network terminal equipment |
CN103841140B (en) * | 2012-11-22 | 2019-05-28 | 北京百度网讯科技有限公司 | A kind of mthods, systems and devices that terminal room information mutually passes |
CN114661645A (en) * | 2020-12-23 | 2022-06-24 | 成都鼎桥通信技术有限公司 | Data transmission channel establishing method and device and communication module |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1725200A (en) * | 2004-07-22 | 2006-01-25 | 三星电子株式会社 | Be used for equipment and method in portable terminal storage and reading of data |
CN101187911A (en) * | 2007-10-15 | 2008-05-28 | 青岛海信移动通信技术股份有限公司 | Debugging and downloading apparatus |
-
2008
- 2008-06-30 CN CN2008100681534A patent/CN101370203B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1725200A (en) * | 2004-07-22 | 2006-01-25 | 三星电子株式会社 | Be used for equipment and method in portable terminal storage and reading of data |
CN101187911A (en) * | 2007-10-15 | 2008-05-28 | 青岛海信移动通信技术股份有限公司 | Debugging and downloading apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN101370203A (en) | 2009-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101370203B (en) | Apparatus and method for mobile phone platform data communication | |
CN104301151A (en) | Movement operation and maintenance system and method of power communication network | |
CN104317661A (en) | Intersystem communication method and device of dual embedded systems | |
CN103795793A (en) | Road vehicle monitoring platform system based on double server clusters | |
CN101035311A (en) | Logistic service tracking system and logistic service tracking method | |
CN206441195U (en) | A kind of identity real name Verification System | |
CN104853023A (en) | Distribution method and system for electronic business card | |
CN101959220A (en) | Management method and management system of centralized mobile agent server | |
CN102833516B (en) | Cloud computing-based intelligent helmet network system and method for processing video information | |
CN103186799A (en) | Data management method and system for production line | |
CN205644694U (en) | Car key system, mobile terminal, server and vehicle | |
CN1812608A (en) | Mobile terminal and starting method thereof | |
CN202632094U (en) | Information acquisition device and remote vehicle diagnosis system | |
CN101551758A (en) | System and method for implementing paralleling work of device management and tasks | |
CN101282367B (en) | Data interactive method for wireless network card and computer | |
CN103023765A (en) | Message processing method and message processing device based on scripting language | |
CN103259812A (en) | Cloud integration service system of tool machine | |
CN103546624B (en) | A kind of system and method for SIM card deal with data | |
CN102541539A (en) | Method for designing intelligent panel of supply chain based on M2M (Machine to Machine) | |
CN102932761A (en) | Incoming call contact information display processing method based on mobile phone name cards | |
CN102496223A (en) | Short-distance on-site payment equipment and system | |
CN206348920U (en) | A kind of kilowatt meter reading-out system of instrumentation and hand-held meter copying device | |
CN102004716A (en) | System and method for realizing device sharing | |
CN101287012B (en) | Method and apparatus for network service of wireless interface layer | |
CN201950970U (en) | Ink jet printer circuit with remote control function |
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: 20120111 Termination date: 20190630 |