CN103338101B - Data synchronization implementing method - Google Patents

Data synchronization implementing method Download PDF

Info

Publication number
CN103338101B
CN103338101B CN201310253620.1A CN201310253620A CN103338101B CN 103338101 B CN103338101 B CN 103338101B CN 201310253620 A CN201310253620 A CN 201310253620A CN 103338101 B CN103338101 B CN 103338101B
Authority
CN
China
Prior art keywords
terminal module
operation client
mobile operation
target
terminal
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
CN201310253620.1A
Other languages
Chinese (zh)
Other versions
CN103338101A (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.)
Foshan Power Supply Bureau of Guangdong Power Grid Corp
Original Assignee
Foshan Power Supply Bureau of Guangdong Power Grid 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 Foshan Power Supply Bureau of Guangdong Power Grid Corp filed Critical Foshan Power Supply Bureau of Guangdong Power Grid Corp
Priority to CN201310253620.1A priority Critical patent/CN103338101B/en
Publication of CN103338101A publication Critical patent/CN103338101A/en
Application granted granted Critical
Publication of CN103338101B publication Critical patent/CN103338101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of data synchronization implementing method and system, its method includes step: first terminal module determines that target moves operation client from setting up with PC end the mobile operation client that USB is connected, and moves USB corresponding to operation client by described target and connects and obtain described target and move the equipment Serial Number of operation client;When determining that the second terminal module has been turned on according to described equipment Serial Number, set up port conversion link and set up port conversion link;The long connection between described first terminal module and described second terminal module is set up based on described port conversion link;Carry out described target and move, by described long connection, the forwarding that the synchronization request of the service end that operation client connects to PC end and described service end move the synchrodata of operation client to described target, present invention can ensure that the safety of data synchronization process.

Description

Data synchronization implementing method
Technical field
The present invention relates to communication technical field, particularly relate to a kind of data synchronization implementing method and system.
Background technology
nullExisting mobile operation client software typically uses GPRS (General Packet Radio Service when carrying out data syn-chronization,General packet radio service technology) communication or WiFi (wireless technology) mechanics of communication,Mobile operation client sends synchronization request to service end,And receive the synchrodata that service end returns,Although the mobile operation client using these mechanicss of communication can normally carry out data syn-chronization under most security context,But can not meet the industry for network communication safety requirements is strict and carry out synchronous communication,Such as power industry,It is contemplated that data transmission security problem,General permission uses WiFi communication technology,And,Complexity in view of the network environment that the most mobile operation client is run,Even there are some to move the environment of the operation of operation client and can not use GSM (Global System of Mobile communication,Global system for mobile communications) or G mobile communication network (the most not allowing GPRS communication),Now,Mobile operation client synchronization data can only pass through USB (Universal Serial BUS,USB (universal serial bus)) data wire carries out,But there is no root authority (highest administrator authority in (SuSE) Linux OS) or at PC (personalcomputer in mobile operation client,Personal computer) end is not when having network Share Permissions,Mobile operation client can not be realized move operation client and carry out data syn-chronization.
Summary of the invention
It is an object of the invention to provide a kind of data synchronization implementing method and system, in the case of mobile operation client cannot use GSM and WiFi communication, and when there is no root authority (highest administrator authority in (SuSE) Linux OS) in mobile operation client or there is no network Share Permissions at PC end, also the data syn-chronization of mobile operation client can be realized, to ensure the safety that data are transmitted.
The purpose of the present invention is achieved through the following technical solutions:
A kind of data synchronization implementing method, comprises the steps:
First terminal module determines that target moves operation client from setting up with PC end the mobile operation client that USB is connected, and moves USB corresponding to operation client by described target and connects and obtain described target and move the equipment Serial Number of operation client;
When described first terminal module determines that the second terminal module has been turned on according to described equipment Serial Number, set up port conversion link;
Described first terminal module sets up the long connection between described first terminal module and described second terminal module based on described port conversion link;
Described first terminal module and described second terminal module are carried out described target and are moved, by described long connection, the forwarding that the synchronization request of the service end that operation client connects to PC end and described service end move the synchrodata of operation client to described target;
Wherein, described first terminal module is arranged in described PC end, and described second terminal module is arranged on described target and moves in operation client.
A kind of data syn-chronization realizes system, including being arranged on the first terminal module of PC end and being arranged on the second terminal module of mobile operation client, described first terminal module includes serial number acquiring unit, link establishment unit, connection establishment unit, retransmission unit, wherein:
Described serial number acquiring unit, for determining that target moves operation client from setting up with PC end the mobile operation client that USB is connected, moves USB corresponding to operation client by described target and connects the described target of acquisition and move the equipment Serial Number of operation client;
Described link establishment unit, in time determining that described second terminal module has been turned on according to described equipment Serial Number, sets up port conversion link;
Described connection establishment unit for setting up the long connection between described first terminal module and described second terminal module based on described port conversion link;
Described retransmission unit for being forwarded to the service end that described PC end connects by the synchronization request received, it is additionally operable to receiving the synchrodata that described service end obtains according to described synchronization request and returns, sends described synchrodata through described long connection to described first terminal module;
Described second terminal module, for sending service request by described long connection to described retransmission unit, is additionally operable to receive described request data.
nullScheme according to the invention described above,It is that the first terminal module arranged in PC end determines that target moves operation client from the mobile operation client setting up USB with PC end,Move USB connection this target of acquisition corresponding to operation client by this target and move the equipment Serial Number of operation client,When determining that the second terminal module has been turned on based on described equipment Serial Number,Set up port conversion link,And set up the long connection between described first terminal module and described second terminal module based on described port conversion link,The most described first terminal module and described second terminal module are carried out described target and are moved, by described long connection, the forwarding that the synchronization request of the service end that operation client connects to PC end and described service end move the synchrodata of operation client to described target,I.e. realize target and move the data syn-chronization of operation client,And the implementation of the target of the present invention data syn-chronization that moves operation client does not relies on the root authority of mobile operation client,When having network Share Permissions also not dependent on PC end,And whole communication process can only be carried out in the Intranet at PC end and service end place,Ensure that the safety of data syn-chronization,Simultaneously,Owing to this programme does not relies on GPRS communication or WiFi communication,Because of without being affected by environmental factorss such as mobile cellular signal are weak,Ensure that the stability of data syn-chronization.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the data synchronization implementing method embodiment of the present invention;
Fig. 2 is the structural representation that the data syn-chronization of the present invention realizes system embodiment.
Detailed description of the invention
Below in conjunction with embodiment and accompanying drawing, the present invention is further elaborated, but embodiments of the present invention are not limited to this.
Shown in Figure 1, for the schematic flow sheet of the data synchronization implementing method embodiment of the present invention.As it is shown in figure 1, the data synchronization implementing method in the present embodiment, comprise the steps:
Step S101: first terminal module determines that target moves operation client from setting up with PC end the mobile operation client that USB is connected, move the USB connection described target of acquisition corresponding to operation client by described target and move the equipment Serial Number of operation client, wherein, during described first terminal module is arranged on described PC end;
The USB interface of mobile operation client connects USB data line, it is connected to PC end again via USB data line, establish the USB between mobile operation client and PC end to connect, so, physical connection is established between mobile operation client and PC end, wherein, the number of mobile operation client can be one or more, and it is in mobile operation client that target moves operation client;
Step S102: when described first terminal module determines that the second terminal module has been turned on according to described equipment Serial Number, sets up port conversion link, and described second terminal module is arranged on described target and moves in operation client;
It is pre-configured with a port at PC end, referred to here as the first port, also a port it is pre-configured with in mobile operation client, referred to here as the second port, when determining that the second terminal module has been turned on, set up port conversion link, then by the request (or order) that sends of the first port of oriented PC end, the second port in mobile operation client can be forwarded to, wherein, determining that the second terminal module has been turned on can be to use existing any attainable mode, such as, for using the mobile operation client of Android system, can realize by the adb.exe program being used for the equipment that manages of google exploitation, it is also not necessarily limited to adopt in other ways, do not repeat them here;
Step S103: described first terminal module sets up the long connection between described first terminal module and described second terminal module based on described port conversion link;
The long connection set up between first terminal module and described second terminal module makes to establish logic between mobile operation client and PC end and connects, the request (or order) that can realize sending the first port of PC end due to port conversion link is forwarded to the second port in mobile operation client, therefore, first terminal module can send connection request based on this port conversion link, after described second terminal module receives this connection request, set up long connection therebetween;
Step S104: described first terminal module and described second terminal module are carried out described target and moved, by described long connection, the forwarding that the synchronization request of the service end that operation client connects to PC end and described service end move the synchrodata of operation client to described target;
Wherein, described target moves the repeating process of the synchronization request of the service end that operation client connects to PC end, and described service end moves the repeating process of synchrodata of operation client to described target, it is exactly to realize target to move the data synchronization process of operation client, in the process, require that PC end is networking, i.e. PC end is connected with service end, general in order to ensure data syn-chronization safety, PC end is connected by LAN with service end, target moves operation client by the PC end networked, the real-time performance data syn-chronization of shared PC end.
Wherein, first terminal module, first terminal module are the application softwaries pre-setting and can realizing above-mentioned functions.
nullAccordingly,The scheme implemented according to this,It is that the first terminal module arranged in PC end determines that target moves operation client from the mobile operation client setting up USB with PC end,Move USB connection this target of acquisition corresponding to operation client by this target and move the equipment Serial Number of operation client,When determining that the second terminal module has been turned on based on described equipment Serial Number,Set up port conversion link,And set up the long connection between described first terminal module and described second terminal module based on described port conversion link,The most described first terminal module and described second terminal module are carried out described target and are moved, by described long connection, the forwarding that the synchronization request of the service end that operation client connects to PC end and described service end move the synchrodata of operation client to described target,I.e. realize target and move the data syn-chronization of operation client,And the implementation of the target of the present invention data syn-chronization that moves operation client does not relies on the root authority of mobile operation client,When having network Share Permissions also not dependent on PC end,And whole communication process can only be carried out in the Intranet at PC end and service end place,Ensure that the safety of data syn-chronization,Simultaneously,Owing to this programme does not relies on GPRS communication or WiFi communication,Because of without being affected by environmental factorss such as mobile cellular signal are weak,Ensure that the stability of data syn-chronization.
As mentioned above, after needing to set up long connection between first terminal module and described second terminal module, carry out data syn-chronization, but move operation client in view of target and the second terminal module may be installed, for this situation, it should first install the second terminal module, therefore, wherein in an embodiment, according to described equipment Serial Number, above-mentioned first terminal module determines that the second terminal module has been turned on including step:
Described first terminal module detects when described second terminal module has been started up, and determines that described equipment Serial Number determines that the second terminal module has been turned on;
Described first terminal module detects when described second terminal module is not actuated, drives the erection schedule of described second terminal module, after the installing of described second terminal module, starts described second terminal module.
In the present embodiment, it is when detecting that the second terminal module is not actuated, drive the erection schedule of described second terminal module, and after the installing of described second terminal module, start described second terminal module, when detecting two terminal modules and having been started up, determine that described equipment Serial Number determines that the second terminal module has been turned on, when implementing, this process can realize based on the USB data line having built up.
Additionally, above-mentioned first terminal module determines that target moves any one that the mode of operation client can include in following manner:
Mode one, the mobile operation client side list that described first terminal module polls User Interface shows, when including the mark of multiple mobile operation client, the instruction that manually selects according to receiving determines that described target moves operation client;
Mode two, the mobile operation client side list that described first terminal module polls User Interface shows, when only including the mark of a mobile operation client, the instruction that automatically selects according to receiving determines that described target moves operation client, and it is currently to move the mobile operation client that the mark in operation client side list is corresponding that described target moves operation client.
Wherein, mode one be have multiple mobile operation client set up with PC end USB be connected time, can determine that target moves operation client according to the selection of user;Mode two be only mobile operation client set up with described PC end USB be connected time, target can be automatically determined and move operation client.
According to the scheme in the present embodiment, need to determine that described target moves operation client according to mobile operation client side list, therefore, wherein in an embodiment, in first terminal module from setting up before the mobile operation client that USB is connected determines that target moves operation client with PC end, can also comprise the steps: that described first terminal block search sets up the mobile operation client that USB is connected with PC end, after searching mobile operation client, the mark that described target moves operation client is added in described mobile operation client side list, wherein, search procedure can complete when first terminal module starts.
On the other hand, wherein in an embodiment, above-mentioned steps S104 can realize especially by following steps:
Described second terminal module sends synchronization request by described long connection to described first terminal module;
Described synchronization request is forwarded to service end by described first terminal module;
Described first terminal module receives the synchrodata that described service end obtains according to described synchronization request and returns;
Described first terminal module connects to synchrodata described in described first terminal module through described length;
Described second terminal module receives described synchrodata.
Wherein, after second terminal module have received synchronization request, first this synchronization request can be analyzed, such as analyze whether this synchronization request meets corresponding communications protocol, or analyze the server address that this synchronization request is corresponding, correctly to forward, after service end receives synchronization request, carry out processing to this service request and obtain synchrodata, and this synchrodata is sent to the second terminal module, this synchrodata is sent to described first terminal module through described long connection by this synchrodata again, whole data synchronization process, safety, reliably, stable, achieve the network allowing mobile operation client share PC end and carry out data syn-chronization.
According to the data synchronization implementing method of the invention described above, the present invention also provides for a kind of data syn-chronization and realizes system, and the data syn-chronization with regard to the present invention realizes the embodiment of system and illustrates below.Fig. 2 showing, the data syn-chronization of the present invention realizes the structural representation of a preferable examples of system.According to different Considerations, when the data syn-chronization implementing the present invention realizes system, can comprise shown in Fig. 2 is whole, it is also possible to only comprise a portion shown in Fig. 2.For convenience of description, the most only show and located part related to the present invention.
A kind of data syn-chronization realizes system, including being arranged on the first terminal module 201 of PC end and being arranged on the second terminal module 202 of mobile operation client, first terminal module 201 includes serial number acquiring unit 2011, link establishment unit 2012, connection establishment unit 2013, retransmission unit 2014, wherein:
Serial number acquiring unit 2011, for determining that target moves operation client from setting up with PC end the mobile operation client that USB is connected, moves USB corresponding to operation client by described target and connects the described target of acquisition and move the equipment Serial Number of operation client;
Link establishment unit 2012, in time determining that the second terminal module 202 has been turned on according to described equipment Serial Number, sets up port conversion link;
Connection establishment unit 2013 for setting up the long connection between described first terminal module and described second terminal module based on described port conversion link;
Retransmission unit 2014 for being forwarded to the service end that described PC end connects by the synchronization request received, it is additionally operable to receiving the synchrodata that described service end obtains according to described synchronization request and returns, sends described synchrodata through described long connection to described second terminal module;
Second terminal module 202, for sending described synchronization request by described long connection to described retransmission unit, is additionally operable to receive described synchrodata.
Wherein in an embodiment, according to described equipment Serial Number, link establishment unit 2012 can be when detecting that the second terminal module 202 has been started up, determine that the second terminal module 202 has been turned on, when detecting that the second terminal module 202 is not actuated according to described equipment Serial Number, drive the erection schedule of the second terminal module 202, after the installing of the second terminal module 202, start the second terminal module 202.
Wherein in an embodiment, serial number acquiring unit 201 can inquire about the mobile operation client side list that User Interface shows, when including the mark of multiple mobile operation client, the instruction that manually selects according to receiving determines that described target moves operation client;
Or
Serial number acquiring unit 2011 can inquire about the mobile operation client side list that User Interface shows, when only including the mark of a mobile operation client, the instruction that automatically selects according to receiving determines that described target moves operation client, and it is currently to move the mobile operation client that the mark in operation client side list is corresponding that described target moves operation client.
Wherein in an embodiment, first terminal module 201 can also include:
Search unit 2015, sets up, with described PC end, the mobile operation client that USB is connected for search, and after searching mobile operation client, the mark that described target moves operation client is added in described mobile operation client side list.
The specific implementation of each module etc. in present system, can be identical with the invention described above method, not repeats in detail at this.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to make some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (4)

1. a data synchronization implementing method, it is characterised in that comprise the steps:
First terminal module determines that target moves from setting up with PC end the mobile operation client that USB is connected Operation client, the USB connection described target of acquisition moving operation client corresponding by described target moves The equipment Serial Number of operation client;
When described first terminal module determines that the second terminal module has been turned on according to described equipment Serial Number, set up Port conversion link;
Described first terminal module sets up described first terminal module and described based on described port conversion link Long connection between two terminal modules;
Described first terminal module and described second terminal module carry out described target by described long connection and move Synchronization request and the described service end of the service end that operation client connects to PC end move to described target The forwarding of the synchrodata of operation client;
Wherein, described first terminal module is arranged in described PC end, and described second terminal module is arranged on institute State target to move in operation client;
Wherein, described first terminal module and described second terminal module carry out described mesh by described long connection The synchronization request of the service end that the mobile operation client of mark connects to PC end and described service end are to described mesh The forwarding of the synchrodata of the mobile operation client of mark comprises the steps:
Described second terminal module sends synchronization request by described long connection to described first terminal module;
Described synchronization request is forwarded to service end by described first terminal module;
Described first terminal module receives the same step number that described service end obtains according to described synchronization request and returns According to;
Described first terminal module connects to synchrodata described in described second terminal module through described length;
Described second terminal module receives described synchrodata.
Data synchronization implementing method the most according to claim 1, it is characterised in that described first terminal According to described equipment Serial Number, module determines that the second terminal module has been turned on including step:
According to described equipment Serial Number, described first terminal module is detecting that described second terminal module has opened Time dynamic, determine that described second terminal module has been turned on;
According to described equipment Serial Number, described first terminal module is detecting that described second terminal module is not actuated Time, drive the erection schedule of described second terminal module, after the installing of described second terminal module, Start described second terminal module.
Data synchronization implementing method the most according to claim 1, it is characterised in that described first terminal Module determines that target moves any one that the mode of operation client includes in following manner:
Mode one, the mobile operation client side list that described first terminal module polls User Interface shows, When including the mark of multiple mobile operation client, the instruction that manually selects according to receiving determines described mesh The mobile operation client of mark;
Mode two, the mobile operation client side list that described first terminal module polls User Interface shows, When only including the mark of a mobile operation client, the instruction that automatically selects according to receiving determines described Target moves operation client, and described target moves operation client in current mobile operation client side list Mobile operation client corresponding to mark.
Data synchronization implementing method the most according to claim 3, it is characterised in that described first eventually End module from setting up before the mobile operation client that USB is connected determines that target moves operation client with PC end, Also comprise the steps:
Described first terminal block search sets up the mobile operation client that USB is connected with described PC end, After searching mobile operation client, the mark that described target moves operation client adds described movement to In operation client side list.
CN201310253620.1A 2013-06-24 2013-06-24 Data synchronization implementing method Active CN103338101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310253620.1A CN103338101B (en) 2013-06-24 2013-06-24 Data synchronization implementing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310253620.1A CN103338101B (en) 2013-06-24 2013-06-24 Data synchronization implementing method

Publications (2)

Publication Number Publication Date
CN103338101A CN103338101A (en) 2013-10-02
CN103338101B true CN103338101B (en) 2016-12-28

Family

ID=49246206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310253620.1A Active CN103338101B (en) 2013-06-24 2013-06-24 Data synchronization implementing method

Country Status (1)

Country Link
CN (1) CN103338101B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1514342A (en) * 2002-12-31 2004-07-21 ���ǵ�����ʽ���� Personal handset terminal capable of alternating information with host machine and its method
CN1632777A (en) * 2003-12-24 2005-06-29 联想(北京)有限公司 Method for implementing data exchange between PDA and computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1514342A (en) * 2002-12-31 2004-07-21 ���ǵ�����ʽ���� Personal handset terminal capable of alternating information with host machine and its method
CN1632777A (en) * 2003-12-24 2005-06-29 联想(北京)有限公司 Method for implementing data exchange between PDA and computer

Also Published As

Publication number Publication date
CN103338101A (en) 2013-10-02

Similar Documents

Publication Publication Date Title
EP3051776B1 (en) Method and apparatus for controlling turn-on and turn-off of smart socket
US20110116486A1 (en) Radiation imaging system, method for radiation imaging system, and computer-readable storage medium
US20150081859A1 (en) Method, apparatus and system for connecting devices to a network
CN104915237A (en) Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
EP1498822A3 (en) State migration in multiple NIC RDMA enabled devices
KR20170067774A (en) Method and apparatus to improve wireless device performance
CN104540091A (en) Automatic pairing system and automatic pairing method based on bluetooth equipment
CN103974376A (en) Network connection assisting system and method
CN108200128B (en) Remote meter reading method and system based on eLTE-IoT technology
WO2010148399A3 (en) Method and apparatus to facilitate reestablishing communications in a wireless network
WO2014121471A1 (en) Method, base station and user equipment for data transmission and acquisition
JP2016206940A5 (en)
CN102364445A (en) Automatic program burning system and method for wireless sensor network testing platform
CN104918296A (en) Network connection assistance system and method
CN104424036A (en) Synchronous operation method and device of smart terminal
US9628322B2 (en) Network synchronization system and method involving automatic setting via physical line
CN103731861A (en) Method and system for maintaining base station
WO2012079544A1 (en) Method and device for managing multi-mode base station
CN104333842A (en) Intelligent device program resource sharing method and system based on WIFI
WO2010075738A1 (en) Method and system for managing multi-mode network element, and multi-mode network element
CN103338101B (en) Data synchronization implementing method
CN105099836A (en) BLE intelligent node control method and system
CN107708142B (en) Grouping method, device and system for access device AP
JP2014123791A (en) Radio telemeter system
US20100235497A1 (en) Information processing apparatus and communication processing method thereof

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
CP03 Change of name, title or address

Address after: 528011 No. 1 South Fenjiang Road, Chancheng District, Guangdong, Foshan

Patentee after: FOSHAN POWER SUPPLY BUREAU OF GUANGDONG POWER GRID CORPORATION

Address before: 528000 Fenjiang South Road, Chancheng District, Guangdong, No. 1, No.

Patentee before: Foshan Power Supply Bureau, Guangdong Power Grid Corporation

CP03 Change of name, title or address