CN102724356A - Information synchronization method and device of access device - Google Patents

Information synchronization method and device of access device Download PDF

Info

Publication number
CN102724356A
CN102724356A CN201210166681XA CN201210166681A CN102724356A CN 102724356 A CN102724356 A CN 102724356A CN 201210166681X A CN201210166681X A CN 201210166681XA CN 201210166681 A CN201210166681 A CN 201210166681A CN 102724356 A CN102724356 A CN 102724356A
Authority
CN
China
Prior art keywords
unit
plug
access device
module
type
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.)
Granted
Application number
CN201210166681XA
Other languages
Chinese (zh)
Other versions
CN102724356B (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 CN201210166681.XA priority Critical patent/CN102724356B/en
Publication of CN102724356A publication Critical patent/CN102724356A/en
Application granted granted Critical
Publication of CN102724356B publication Critical patent/CN102724356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an information synchronization method and device of an access device, wherein the method comprises the following steps: identifying the device type of the access device, and determining a plug-in module to be loaded according to the device type; getting the plug-in module from a current storage plug-in module library and loading, wherein the plug-in modules corresponding to all the device types are stored in the plug-in module library; and synchronizing information of the access device through the plug-in module. By utilizing the method disclosed by the invention, the device type of the access device can be identified, the plug-in module to be loaded can be determined according to the device type, then the plug-in module can be got from the current storage plug-in module library and loaded, and the information of the access device can be synchronized through the plug-in module, so that the problems that PC (personal computer)-side terminal management software in the prior art can only perform information synchronization against one type of the devices and the operation is trivial can be solved, the installation of the multiple terminal management software is not required when a user uses multiple mobile devices, the memory is saved, the consumption of system resources is reduced, the maintenance cost is reduced, and the user experience is upgraded.

Description

The information synchronization method of access device and device
Technical field
The present invention relates to the communications field, in particular to a kind of information synchronization method and device of access device.
Background technology
Mobile communication development now is rapid, for mobile device, from original functional mobile phone; Smart mobile phone arrives various panel computers more till now, also has the data card of various standards; The user generally has several mobile devices simultaneously, and these equipment all need and personal computer (Personal Computer abbreviates PC as) side is carried out alternately; For example carry out data sync, data backup etc.; Perhaps think on computers operating equipment more easily, therefore produced PC lateral terminal management software, be used to connect mobile device and PC.
Existing PC lateral terminal management software all is to be directed against one type of mobile device, for example to tall and erect (android) smart mobile phone of peace, perhaps to the WP7 system mobile phone; If the user has the mobile device of several variety classes different models, each equipment all need be installed corresponding PC lateral terminal management software, and this operation is very inconvenient; And occupying system resources is bigger; Make the developer need safeguard a plurality of versions, workload increases, the reduction of software repeated usage property.
Can only carry out information synchronization to a kind equipment to PC lateral terminal management software in the correlation technique, cause complex operation, maintenance cost problem of higher, not propose effective solution at present as yet.
Summary of the invention
Can only carry out information synchronization to a kind equipment to PC lateral terminal management software in the correlation technique, cause complex operation, maintenance cost problem of higher, the invention provides a kind of information synchronization method and device of access device, to address the above problem at least.
According to an aspect of the present invention, a kind of information synchronization method of access device is provided, this method comprises: the unit type of identification access device, according to the definite plug-in unit that needs loading of this unit type; From the plugin library of current storage, obtain above-mentioned plug-in unit and loading, wherein, store the corresponding plug-in unit of each unit type in this plugin library; Information through the synchronous above-mentioned access device of above-mentioned plug-in unit.
Before the unit type of identification access device, said method can also comprise: obtain the PID and the VID of above-mentioned access device, registration PID and VID.
Said method can also comprise: the situation that is connected that detects above-mentioned access device according to above-mentioned PID and above-mentioned VID; Break off when connecting when detecting above-mentioned access device, unload above-mentioned plug-in unit.
The unit type of discerning above-mentioned access device can comprise: the device port information of obtaining above-mentioned access device; Discern the unit type of above-mentioned access device according to the said equipment port information.
Confirm that according to the said equipment model the plug-in unit that needs to load can comprise: according to the said equipment model query configuration file; Confirm channel type, communication protocol and the above-mentioned plug-in unit that needs loading according to above-mentioned configuration file.
Confirm that according to above-mentioned configuration file said method can comprise: the channel type according to confirming is set up communication channel after the above-mentioned plug-in unit of channel type, communication protocol and need loading; Information through the synchronous above-mentioned access device of above-mentioned plug-in unit comprises: according to above-mentioned communication protocol, through the information of above-mentioned plug-in unit synchronous above-mentioned access device in above-mentioned communication channel.
Confirm that according to above-mentioned configuration file channel type, communication protocol and the above-mentioned plug-in unit that needs to load can comprise: judge in the legitimate device tabulation of above-mentioned configuration file whether have the said equipment model; Wherein, this legitimate device tabulation comprises the corresponding relation of legitimate device model and channel type, communication protocol and plug-in unit; If exist, then in above-mentioned corresponding relation, confirm channel type, communication protocol and the plug-in unit corresponding with the said equipment model.
According to a further aspect in the invention, a kind of information synchronization device of access device is provided, this device comprises: the model identification module is used to discern the unit type of access device; The plug-in unit determination module is used for according to the definite plug-in unit that needs loading of the said equipment model of above-mentioned model identification module identification; The plug-in unit load-on module is used for obtaining above-mentioned plug-in unit and the loading that above-mentioned plug-in unit determination module is confirmed from the plugin library of current storage, wherein, stores the corresponding plug-in unit of each unit type in the above-mentioned plugin library; The information synchronization module is used for the information through the synchronous above-mentioned access device of above-mentioned plug-in unit of above-mentioned plug-in unit load-on module loading.
Said apparatus can also comprise: Registering modules, the product ID PID and supplier identification code VID and the registration that are used to obtain above-mentioned access device.
Said apparatus can also comprise: connection detection module is used for detecting according to above-mentioned PID and above-mentioned VID the situation that is connected of above-mentioned access device; The plug-in unit Unload module is used for breaking off when connecting when above-mentioned connection detection module detects above-mentioned access device, unloads above-mentioned plug-in unit.
Above-mentioned model identification module can comprise: information acquisition unit is used to obtain the device port information of above-mentioned access device; The model recognition unit, the said equipment port information that is used for obtaining according to above-mentioned information acquisition unit is discerned the unit type of above-mentioned access device.
Above-mentioned plug-in unit determination module can comprise: the file polling unit is used for according to the said equipment model query configuration file; Confirm the unit, be used for the above-mentioned plug-in unit of confirming channel type, communication protocol and needing to load according to the above-mentioned configuration file of above-mentioned file polling unit inquiry.
Said apparatus can comprise: passage is set up module, is used for setting up communication channel according to the channel type of confirming; Above-mentioned information synchronization module comprises: information synchronizing unit is used for according to above-mentioned communication protocol, through the information of above-mentioned plug-in unit synchronous above-mentioned access device in above-mentioned communication channel.
Above-mentioned definite unit can comprise: judgment sub-unit; Be used for judging whether the legitimate device tabulation of above-mentioned configuration file exists the said equipment model; Wherein, this legitimate device tabulation comprises the corresponding relation of legitimate device model and channel type, communication protocol and plug-in unit; Plug-in unit is confirmed subelement, and the judged result that is used in above-mentioned judgment sub-unit is under the situation that is, then in above-mentioned corresponding relation, confirms channel type, communication protocol and the plug-in unit corresponding with the said equipment model.
Through the present invention, the unit type of identification access device is according to the definite plug-in unit that needs loading of this unit type; From the plugin library of current storage, obtain above-mentioned plug-in unit then and load,, solved that PC lateral terminal management software can only carry out information synchronization to a kind equipment in the correlation technique through the information of the synchronous above-mentioned access device of above-mentioned plug-in unit; The problem that causes complex operation when making the user use a plurality of mobile device, need not installed a plurality of terminal management softwares; Save internal memory; Reduce system resources consumption, reduce maintenance cost, promote user experience.
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 according to the information synchronization method of the access device of the embodiment of the invention;
Fig. 2 is the structured flowchart according to the PC lateral terminal management software framework of the embodiment of the invention;
Fig. 3 is the structured flowchart according to the information synchronization device of the access device of the embodiment of the invention;
Fig. 4 is first kind of concrete structure block diagram according to the information synchronization device of the access device of the embodiment of the invention;
Fig. 5 is second kind of concrete structure block diagram according to the information synchronization device of the access device of the embodiment of the invention;
Fig. 6 is the third concrete structure block diagram according to the information synchronization device of the access device of the embodiment of the invention;
Fig. 7 is the 4th a kind of concrete structure block diagram according to the information synchronization device of the access device of the embodiment of the invention;
Fig. 8 is the management method flow chart according to the Mac OS equipment of the embodiment of the invention;
Fig. 9 is the method flow diagram according to multiple equipment management among the Mac OS of the embodiment of the invention;
Figure 10 is the flow chart according to the USB device management of the embodiment of the invention;
Figure 11 is the flow chart of access device being discerned and being monitored according to the terminal management software of the embodiment of the invention;
Figure 12 is the schematic flow sheet according to the terminal management software loading plug-in unit of the embodiment of the invention.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
In the correlation technique, if the user need be connected to the enterprising line operate of PC with a plurality of equipment, the PC side need load the software corresponding with each equipment; This mode complex operation; It is more to take resource, and based on this, the embodiment of the invention provides a kind of information synchronization method and device of access device; In the PC side PC lateral terminal management software only need be installed, get final product adaptive user's various kinds of equipment.Be elaborated through embodiment below.
Present embodiment provides a kind of information synchronization method of access device; This method can realize through the software (for example terminal management software) on the PC side; The flow chart of the information synchronization method of access device as shown in Figure 1, this method may further comprise the steps (step S102-step S106):
Step S102, the unit type of identification access device is according to the definite plug-in unit that needs loading of this unit type;
Step S104 obtains above-mentioned plug-in unit and loading from the plugin library of current storage, wherein, store the corresponding plug-in unit of each unit type in this plugin library;
Step S106 is through the information of the synchronous above-mentioned access device of above-mentioned plug-in unit.
Through said method, the unit type of identification access device is according to the definite plug-in unit that needs loading of this unit type; From the plugin library of current storage, obtain above-mentioned plug-in unit then and load,, solved that PC lateral terminal management software can only carry out information synchronization to a kind equipment in the correlation technique through the information of the synchronous above-mentioned access device of above-mentioned plug-in unit; The problem that causes complex operation when making the user use a plurality of mobile device, need not installed a plurality of terminal management softwares; Save internal memory; Reduce system resources consumption, reduce maintenance cost, promote user experience.
After access device and PC side connect; Can obtain product ID (the Product Identification of access device earlier; Abbreviate PID as) and supplier's identification code (Vendor Identification abbreviates VID as), then according to the PID that obtains, VID information registration USB (Universal Serial Bus; Abbreviate USB as) monitor, thus the connection and the disconnection of access device are monitored.Therefore, present embodiment provides a kind of preferred implementation, promptly discerns before the unit type of access device, obtains the PID and the VID of this access device, registers this PID and this VID.
In snoop procedure to access device, be connected with the disconnection of PC side if monitor access device, then unload plug-in unit.This snoop procedure can executed in real time, also can periodically carry out, and concrete implementation can be confirmed according to actual conditions.Based on this, present embodiment provides a kind of preferred implementation, promptly detects the situation that is connected of access device according to PID and VID; Break off when connecting the unloading plug-in unit when detecting above-mentioned access device.
When the unit type of access device is discerned, can take following mode to realize: to obtain the device port information of above-mentioned access device, according to the unit type of the above-mentioned access device of this device port information Recognition.Certainly, the identifying of the unit type of present embodiment is not limited to this, as long as can identify the unit type of access device.
After identifying unit type; When confirming to need the plug-in unit of loading according to this unit type; Definite process of plug-in unit also can take following mode to realize: according to unit type query configuration file, confirm channel type, communication protocol and the above-mentioned plug-in unit that needs loading according to this configuration file.Certainly, the plug-in unit deterministic process of present embodiment also is not limited to this, as long as can determine the plug-in unit that needs loading according to unit type.
Comprise the legitimate device tabulation in the above-mentioned configuration file; This legitimate device tabulation comprises the corresponding relation of legitimate device model and channel type, communication protocol and plug-in unit; If the unit type that identifies in the legitimate device tabulation, just can be known the corresponding relation of channel type, communication protocol and plug-in unit that this unit type is corresponding.Based on this; Present embodiment provides a kind of preferred implementation; Promptly confirm that according to this configuration file channel type, communication protocol and the above-mentioned plug-in unit that needs to load comprise: judge in the legitimate device tabulation of this configuration file whether have the said equipment model; If exist, then in above-mentioned corresponding relation, confirm channel type, communication protocol and the plug-in unit corresponding with the said equipment model.
After confirming channel type, set up communication channel according to the channel type of confirming, then,,, promptly accomplished the flow process of the information synchronization of access device through the information of plug-in unit synchronous access device in above-mentioned communication channel according to communication protocol.
Fig. 2 is the structured flowchart according to the PC lateral terminal management software framework of the embodiment of the invention; As shown in Figure 2; This terminal management software mainly comprises three layers: user interface (User Interface; Abbreviate UI as) layer plug, SDK (Software Development Kit abbreviates SDK as) layer and equipment sensing layer.
The upper strata of PC lateral terminal management software is the UI layer plug, according to the demand or the function of distinct device different card modules is arranged, and for example comprises: phone directory, short message; Schedule, message registration, program management, file management; Pictures management, the management of bell sound, card modules such as video management.
The intermediate layer of PC lateral terminal management software is the SDK layer, and the SDK layer has comprised Business Logic, data route and protocol layer, device channels layer.Wherein, the Business Logic major control logic function in the UI plug-in unit.Data route and protocol layer comprise data routing function and protocol encapsulation function; The data routing function is the distribution of accomplishing instruction according to different instruction messages; Make instruction be distributed to each module smoothly; The protocol encapsulation function is the data that data that equipment is reported and UI issue, and confirms protocol format according to unit type, and data are encapsulated and resolve.The device channels layer mainly provides the foundation of data channel, sets up different communication channels, for example Socket, serial ports etc. according to the distinct device model.
The lower floor of PC lateral terminal management software is the equipment sensing layer, and the USB through Accreditation System monitors, the insertion of real-time listening access device and removing, and operate accordingly on the notice upper strata when equipment inserts or removes.
Corresponding to the information synchronization method of above-mentioned access device, present embodiment provides a kind of information synchronization device of access device, and this device is used to realize the foregoing description.Fig. 3 is the structured flowchart according to the information synchronization device of the access device of the embodiment of the invention, and is as shown in Figure 3, and this device comprises: model identification module 10, plug-in unit determination module 20, plug-in unit load-on module 30 and information synchronization module 40.Describe in the face of this structure down.
Model identification module 10 is used to discern the unit type of access device;
Plug-in unit determination module 20 is connected to model identification module 10, is used for according to the definite plug-in unit that needs loading of the said equipment model of above-mentioned model identification module 10 identifications;
Plug-in unit load-on module 30 is connected to plug-in unit determination module 20, is used for obtaining above-mentioned plug-in unit and the loading that above-mentioned plug-in unit determination module 20 is confirmed from the plugin library of current storage, wherein, stores the corresponding plug-in unit of each unit type in the above-mentioned plugin library;
Information synchronization module 40 is connected to plug-in unit load-on module 30, is used for the information through the synchronous above-mentioned access device of above-mentioned plug-in unit of above-mentioned plug-in unit load-on module 30 loadings.
Through said apparatus, the unit type of model identification module 10 identification access devices, plug-in unit determination module 20 need to confirm the plug-in unit of loading according to this unit type; Plug-in unit load-on module 30 obtains above-mentioned plug-in unit and loads from the plugin library of current storage then, and information synchronization module 40 is through the information of the synchronous above-mentioned access device of above-mentioned plug-in unit, has solved in the correlation technique PC lateral terminal management software and can only be directed against a kind equipment and carry out information synchronization; The problem that causes complex operation when making the user use a plurality of mobile device, need not installed a plurality of terminal management softwares; Save internal memory; Reduce system resources consumption, reduce maintenance cost, promote user experience.
After access device and PC side connect, can obtain the product ID PID and the supplier identification code VID of access device earlier, monitor, thereby the connection and the disconnection of access device are monitored according to the PID that obtains, VID information registration USB then.Therefore, present embodiment provides a kind of preferred implementation, and promptly said apparatus can also comprise: Registering modules, the PID and VID and the registration that are used to obtain above-mentioned access device.
In snoop procedure to access device, be connected with the disconnection of PC side if monitor access device, then unload plug-in unit.Based on this; Present embodiment provides a kind of preferred implementation; First kind of concrete structure block diagram of the information synchronization device of access device as shown in Figure 4 this device each module in comprising above-mentioned Fig. 3, also comprises: connection detection module 50 and plug-in unit Unload module 60.Describe in the face of this structure down.
Connection detection module 50 is used for detecting according to above-mentioned PID and above-mentioned VID the situation that is connected of above-mentioned access device;
Plug-in unit Unload module 60 is connected to connection detection module 50, is used for breaking off when connecting when above-mentioned connection detection module 50 detects above-mentioned access device, unloads above-mentioned plug-in unit.
Certainly, this snoop procedure can executed in real time, also can periodically carry out, and concrete implementation can be confirmed according to actual conditions.Therefore, connection detection module 50 can be connected to any module in the said apparatus, and it is that example describes that Fig. 4 is connected to information synchronization module 40 with connection detection module 50.
When the unit type of access device is discerned, can take following mode to realize: to obtain the device port information of above-mentioned access device, according to the unit type of the above-mentioned access device of this device port information Recognition.Certainly, the identifying of the unit type of present embodiment is not limited to this, as long as can identify the unit type of access device.Fig. 5 is second kind of concrete structure block diagram according to the information synchronization device of the access device of the embodiment of the invention; As shown in Figure 5; This device each module in comprising above-mentioned Fig. 4, model identification module 10 can also comprise: information acquisition unit 102 and model recognition unit 104.Describe in the face of this structure down.
Information acquisition unit 102 is used to obtain the device port information of above-mentioned access device;
Model recognition unit 104 is connected to information acquisition unit 102, is used for discerning according to the said equipment port information that above-mentioned information acquisition unit 102 is obtained the unit type of above-mentioned access device.
After identifying unit type; When confirming to need the plug-in unit of loading according to this unit type; Definite process of plug-in unit can take following mode to realize: according to unit type query configuration file, confirm channel type, communication protocol and the above-mentioned plug-in unit that needs loading according to this configuration file.Certainly, the plug-in unit deterministic process of present embodiment also is not limited to this, as long as can determine the plug-in unit that needs loading according to unit type.Based on this; Present embodiment provides a kind of preferred implementation; The third concrete structure block diagram of the information synchronization device of access device as shown in Figure 6; This device each module in comprising above-mentioned Fig. 5, plug-in unit determination module 20 also comprises: file polling unit 202 and definite unit 204.Describe in the face of this structure down.
File polling unit 202 is used for according to the said equipment model query configuration file;
Confirm unit 204, be connected to file polling unit 202, be used for the above-mentioned plug-in unit of confirming channel type, communication protocol and needing to load according to the above-mentioned configuration file of above-mentioned file polling unit 202 inquiries.
After identifying unit type; Need to judge that this unit type is whether in legitimate device is tabulated; This legitimate device tabulation comprises the corresponding relation of legitimate device model and channel type, communication protocol and plug-in unit; If this unit type in the legitimate device tabulation, promptly can be confirmed the plug-in unit corresponding with the said equipment model according to above-mentioned corresponding relation.Based on this; Present embodiment provides a kind of preferred implementation; Confirm that promptly unit 204 can comprise: judgment sub-unit; Be used for judging whether the legitimate device tabulation of configuration file exists the said equipment model, and wherein, this legitimate device tabulation comprises the corresponding relation of legitimate device model and channel type, communication protocol and plug-in unit; Plug-in unit is confirmed subelement, and the judged result that is used in above-mentioned judgment sub-unit is under the situation that is, then in above-mentioned corresponding relation, confirms channel type, communication protocol and the plug-in unit corresponding with the said equipment model.
After confirming channel type, set up communication channel according to the channel type of confirming, then,,, promptly accomplished the flow process of the information synchronization of access device through the information of plug-in unit synchronous access device in above-mentioned communication channel according to communication protocol.Fig. 7 is the 4th a kind of concrete structure block diagram of the information synchronization device of access device; This device each module in comprising above-mentioned Fig. 6; Also comprise: passage is set up module 70, is connected to information synchronization module 40, is used for setting up communication channel according to the channel type of confirming.Above-mentioned information synchronization module 40 can comprise: information synchronizing unit 402 is used for according to above-mentioned communication protocol, through the information of above-mentioned plug-in unit synchronous above-mentioned access device in above-mentioned communication channel.
Based on the information synchronization device of the access device in the foregoing description, present embodiment describes the structure of terminal management software.This terminal management software comprises following module: adaptation module, recognition of devices module, Logic control module.
The function of the connection detection module in the function of adaptation module and the above-mentioned information synchronization device is suitable, is used for the connection and the disconnection of perception access device; Model identification module in the function of recognition of devices module and the above-mentioned information synchronization device is suitable with the function of plug-in unit determination module, is used to discern the model of access device, confirms channel type, communication protocol and the plug-in unit that needs loading according to this model; The function of the plug-in unit load-on module in the function of Logic control module and the above-mentioned information synchronization device is suitable, is used for loading of plug-in.
Based on the terminal management software in the foregoing description; Down in the face of Mac OS (medium access control (Media Access Control; Abbreviate MAC as) system) management method of equipment introduces; Fig. 8 is the management method flow chart according to the Mac OS equipment of the embodiment of the invention, and is as shown in Figure 8, and this method may further comprise the steps (step S802-step S810):
Step S802, when terminal equipment A with the USB connection on the Mac computers, the adaptation module of software perceives equipment and recognition of devices module identification equipment model, confirms whether terminal management software supports this equipment.
Step S804, the recognition of devices module is according to the model query configuration file of device A, goes to confirm passage and the agreement of communication, the information such as display module that needs load according to profile information then.
Step S806, the recognition of devices module reports the Logic control module of UI, each UI plug-in unit of Logic control module dynamic load with agreement and load-on module.
Step S808, the UI plug-in unit is presented to the user according to corresponding protocol initializing facility information.
Step S810, when device A was pulled out from the computer of Mac OS, the adaptation module perception was also notified the Logic control module of UI, and the Logic control module of UI uninstalls each UI plug-in unit of loading, and the equipment of getting back to is welcome the interface.
The said equipment A also can be other equipment, equipment B for example, and perhaps more different types of terminal equipments can be managed a plurality of different types of equipment according to said method.
Fig. 9 is the method flow diagram according to multiple equipment management among the Mac OS of the embodiment of the invention, and is as shown in Figure 9, and this method may further comprise the steps (step S902-step S910):
Step S902 announces to system registry USB according to PID, the VID information of mobile device.
Step S904 when the user inserts USB device, after system detects designated equipment, monitors the module reporting equipment information to equipment.
Step S906, equipment is monitored module and is sent the instruction of obtaining unit type according to device port information to equipment, confirms and the channel type of devices communicating, the UI card module and the communication protocol of loading according to unit type.
Step S908 according to communication protocol, carries out the data sync of correlation module.
Step S910, when off device connected, equipment was monitored module and is detected disconnection message, and to the broadcast of system's transmitting apparatus off-line, closing passage, unloading UI plug-in unit also switch to the welcome interface.
It is that example describes that present embodiment inserts the PC side simultaneously with a plurality of USB devices, and Figure 10 is that this method can be through shown in figure 10 according to the flow chart of the USB device management of the embodiment of the invention, and this method may further comprise the steps (step S1002-step S1020):
Step S1002 obtains PID, the VID of each USB device of access, monitors according to PID, VID registration USB.
Step S1004, display device linkage interface on computers.
Step S1006 carries out recognition of devices to each USB device that inserts, and when detecting USB device and being legitimate device, upgrades and also preserves the legitimate device tabulation.
Step S1008, the information that reports legitimate device to tabulate, the list of devices that the UI software for display is supported supplies the user to select.
Step S1010, user select the equipment that will connect from a plurality of USB devices.
Step S1012 confirms channel type, communications protocol and the UI plug-in unit that is fit to this equipment according to the equipment that the user selects.
Step S1014 sets up communication channel according to the channel type of confirming.
Step S1016, loading each plug-in unit of UI and synchronizer data provides the user to operate.
Step S1018 removes equipment or breaks off when connecting notice (main frame) Main Frame.
Step S1020, closed communication passage, unloading plug-in unit, UI switches back to the equipment linkage interface.
Figure 11 is the flow chart of access device being discerned and being monitored according to the terminal management software of the embodiment of the invention, and is as shown in Figure 1, and this method may further comprise the steps (step S1102-step S1120):
Step S1102, when terminal management software (below abbreviate software as) started, the USB of registration Mac OS system monitored, and monitored the insertion of all USB access devices and removed, so that in time UI is carried out subsequent operation.
Step S1104 obtains the legitimate device tabulation, can get access to equipment PID (product ID) and VID (supplier ID) through usb protocol, can discern and distinguish out equipment according to these information.
Step S1106 according to the device configuration file (SupportDevice.plist) that the corresponding software of all devices of current system is supported, gets access to the equipment of all supports in the present connection.
Step S1108 upgrades legitimate device tabulation (CurrentDevList) and is shown to the user, supplies user's selection operation equipment (CurrentDev).
After step S1110, user select the equipment of carrying out subsequent operation, write down the information of this equipment.
Step S1112 receives that system message shows when USB device changes renewal legitimate device tabulation (NewDevList).
Step S1114, with the tabulation of the legitimate device after upgrading and before legitimate device tabulation relatively, judging currently has new equipment to insert still to have equipment to remove, if when having equipment to remove, the execution next step.
Step S1116 judges whether the equipment that removes is current access device (CurrentDev), if current access device, execution in step S1118 is if not current access device, execution in step S1120.
Step S1118, notice UI stops the message communication, and unloading UI plug-in unit.
Step S1120 upgrades legitimate device tabulation (CurrentDevList).
Present embodiment is introduced according to the flow process that different terminals loads different UI plug-in units terminal management software; Figure 12 is that the method includes the steps of according to the schematic flow sheet of the terminal management software loading plug-in unit of the embodiment of the invention (step S1202-step S1214):
Step S1202, terminal management software obtains USB device information.
Step S1204 gets access to the list of devices of all supports in the present connection.
Step S1206; The user selects the equipment that need carry out subsequent operation from the equipment that inserts the PC side; The equipment that terminal management software is selected according to the user; The PC side /read the UISetting.plist configuration file under the System/Library/ModemList catalogue, obtain the module that this equipment supports and notify MainFrame to load above-mentioned module.
Terminal management software comprises UI feature card module; UI feature card module comprises the UI function of a plurality of access devices and the plug-in unit of subfunction; Below Mac OS system, be compiled into the card format of bundle; Leave in/the System/Library/ModemList/PlugIns catalogue under, and at the routing information of each Bundle of configuration file record.
Step S1208 judges MainFrame under the path of/System/Library/ModemList/PlugIns, and whether find needs the UI plug-in unit that loads, if find, and execution in step S1210, if do not find, execution in step S1214.If this plug-in unit does not then exist then abandons,
Step S1210, notice MainFrame loads successfully, and loading of plug-in generates navigation bar (toolbar) according to the final module that loads successful plug-in unit place, the operation that the user can be corresponding according to each function of this navigation bar actuating equipment.
Step S1212, MainFrame notice SDK layer is set up passage, the data message of UI feature card module synchronizer.
Step S1214, notice MainFrame loads failure.
From above description, can find out; The invention provides a kind of general terminal management software under can the Mac OS of the multiple terminal equipment of self adaptation; Through this software, can the compatible PC lateral terminal management software of most of mobile devices on the market, make the user that a software only is installed; Just can manage the various kinds of equipment that has simultaneously in the hand, and present the user UI of this equipment to the user to every Terminal Type equipment.Utilize the dynamic load plug-in part technology, can save system resources such as internal memory greatly, and can load disparate modules, respond the customization demand fast according to demand.Reduced software version quantity, not only made things convenient for the user, but also significantly reduced research staff's exploitation and maintenance workload, can reduce the cost, raised the efficiency for company.In addition, this software design has very strong autgmentability, wants to increase or reduce an equipment support, only needs to revise configuration file, is beneficial to developer's expansion and cutting, is convenient to safeguard.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. the information synchronization method of an access device is characterized in that, comprising:
The unit type of identification access device is according to the definite plug-in unit that needs loading of said unit type;
From the plugin library of current storage, obtain said plug-in unit and loading, wherein, store the corresponding plug-in unit of each unit type in the said plugin library;
Information through the synchronous said access device of said plug-in unit.
2. method according to claim 1 is characterized in that, before the unit type of identification access device, said method also comprises:
Obtain the product ID PID and the supplier identification code VID of said access device, register said PID and said VID.
3. method according to claim 2 is characterized in that, said method also comprises:
Detect the situation that is connected of said access device according to said PID and said VID;
Break off when connecting when detecting said access device, unload said plug-in unit.
4. method according to claim 1 is characterized in that, the unit type of discerning said access device comprises:
Obtain the device port information of said access device;
Unit type according to the said access device of said device port information Recognition.
5. method according to claim 1 is characterized in that, confirms that according to said unit type the plug-in unit that needs to load comprises:
According to said unit type query configuration file;
Confirm channel type, communication protocol and the said plug-in unit that needs loading according to said configuration file.
6. method according to claim 5 is characterized in that,
Confirm that according to said configuration file said method comprises: the channel type according to confirming is set up communication channel after the said plug-in unit of channel type, communication protocol and need loading;
Information through the synchronous said access device of said plug-in unit comprises: according to said communication protocol, through the information of said plug-in unit synchronous said access device in said communication channel.
7. method according to claim 5 is characterized in that, confirms that according to said configuration file channel type, communication protocol and the said plug-in unit that needs to load comprise:
Judge in the legitimate device tabulation of said configuration file whether have said unit type, wherein, said legitimate device tabulation comprises the corresponding relation of legitimate device model and channel type, communication protocol and plug-in unit;
If exist, then in said corresponding relation, confirm channel type, communication protocol and the plug-in unit corresponding with said unit type.
8. the information synchronization device of an access device is characterized in that, comprising:
The model identification module is used to discern the unit type of access device;
The plug-in unit determination module is used for according to the definite plug-in unit that needs loading of the said unit type of said model identification module identification;
The plug-in unit load-on module is used for obtaining said plug-in unit and the loading that said plug-in unit determination module is confirmed from the plugin library of current storage, wherein, stores the corresponding plug-in unit of each unit type in the said plugin library;
The information synchronization module is used for the information through the synchronous said access device of said plug-in unit of said plug-in unit load-on module loading.
9. device according to claim 8 is characterized in that, said device also comprises:
Registering modules, the product ID PID and supplier identification code VID and the registration that are used to obtain said access device.
10. device according to claim 9 is characterized in that, said device also comprises:
Connection detection module is used for detecting according to said PID and said VID the situation that is connected of said access device;
The plug-in unit Unload module is used for breaking off when connecting when said connection detection module detects said access device, unloads said plug-in unit.
11. device according to claim 8 is characterized in that, said model identification module comprises:
Information acquisition unit is used to obtain the device port information of said access device;
The model recognition unit, the unit type of the said access device of said device port information Recognition that is used for obtaining according to said information acquisition unit.
12. device according to claim 8 is characterized in that, said plug-in unit determination module comprises:
The file polling unit is used for according to said unit type query configuration file;
Confirm the unit, be used for the said plug-in unit of confirming channel type, communication protocol and needing to load according to the said configuration file of said file polling unit inquiry.
13. device according to claim 12 is characterized in that,
Said device comprises: passage is set up module, is used for setting up communication channel according to the channel type of confirming;
Said information synchronization module comprises: information synchronizing unit is used for according to said communication protocol, through the information of said plug-in unit synchronous said access device in said communication channel.
14. device according to claim 12 is characterized in that, said definite unit comprises:
Judgment sub-unit is used for judging whether the legitimate device tabulation of said configuration file exists said unit type, and wherein, said legitimate device tabulation comprises the corresponding relation of legitimate device model and channel type, communication protocol and plug-in unit;
Plug-in unit is confirmed subelement, and the judged result that is used in said judgment sub-unit is under the situation that is, then in said corresponding relation, confirms channel type, communication protocol and the plug-in unit corresponding with said unit type.
CN201210166681.XA 2012-05-25 2012-05-25 The information synchronization method and device of access device Active CN102724356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210166681.XA CN102724356B (en) 2012-05-25 2012-05-25 The information synchronization method and device of access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210166681.XA CN102724356B (en) 2012-05-25 2012-05-25 The information synchronization method and device of access device

Publications (2)

Publication Number Publication Date
CN102724356A true CN102724356A (en) 2012-10-10
CN102724356B CN102724356B (en) 2018-01-02

Family

ID=46950014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210166681.XA Active CN102724356B (en) 2012-05-25 2012-05-25 The information synchronization method and device of access device

Country Status (1)

Country Link
CN (1) CN102724356B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064812A (en) * 2012-12-24 2013-04-24 珠海市君天电子科技有限公司 Method and device for quick connection of mobile device and computer
CN103905231A (en) * 2012-12-26 2014-07-02 南京中兴力维软件有限公司 Method and device for unified management of device types
CN104021070A (en) * 2013-03-01 2014-09-03 腾讯科技(深圳)有限公司 Method, device and system for testing intelligent terminal software packages
CN104035860A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Method, device and system for generating test tasks of intelligent terminal software package
CN104090986A (en) * 2014-07-28 2014-10-08 福建三元达通讯股份有限公司 Wireless controller slot position control method, access device and wireless controller
CN104168136A (en) * 2014-08-08 2014-11-26 小米科技有限责任公司 Informing method and device for connecting condition between external device and router
CN105141686A (en) * 2015-08-19 2015-12-09 贵阳朗玛信息技术股份有限公司 Method and device for achieving bluetooth communication
CN105446746A (en) * 2015-12-29 2016-03-30 同方威视技术股份有限公司 System dynamic configuration method and system dynamic configuration device
CN109491986A (en) * 2018-10-31 2019-03-19 深圳市中电数通智慧安全科技股份有限公司 A kind of fire-fighting method for parameter configuration, device and terminal device
CN109951860A (en) * 2017-12-21 2019-06-28 深圳Tcl新技术有限公司 A kind of method, smart television and storage medium obtaining WIFI information
CN110569069A (en) * 2018-06-06 2019-12-13 海能达通信股份有限公司 Configuration management method, configuration management system and device with storage function
CN110597146A (en) * 2019-10-08 2019-12-20 六安市三鑫电器设备有限公司 Integrated electric control cabinet and control method thereof
CN113270179A (en) * 2021-05-25 2021-08-17 北京金山云网络技术有限公司 Medical skill examination method, device and system and electronic equipment
CN113283999A (en) * 2021-04-07 2021-08-20 南方电网数字电网研究院有限公司 Grid-province two-stage data synchronization method and device for power monitoring system and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431814A (en) * 2007-11-05 2009-05-13 网秦无限(北京)科技有限公司 Method and system for mobile phone and PC mutual operation based on intermediate part
CN102023882A (en) * 2010-12-22 2011-04-20 福建天晴在线互动科技有限公司 System and method for computer to automatically identify mobile phone and install mobile phone driver
WO2011050632A1 (en) * 2009-10-26 2011-05-05 中兴通讯股份有限公司 Method and apparatus for interacting between host program and plug-in and among plug-ins
CN102360292A (en) * 2011-09-29 2012-02-22 广东高新兴通信股份有限公司 Management system based on plug-in access device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431814A (en) * 2007-11-05 2009-05-13 网秦无限(北京)科技有限公司 Method and system for mobile phone and PC mutual operation based on intermediate part
WO2011050632A1 (en) * 2009-10-26 2011-05-05 中兴通讯股份有限公司 Method and apparatus for interacting between host program and plug-in and among plug-ins
CN102023882A (en) * 2010-12-22 2011-04-20 福建天晴在线互动科技有限公司 System and method for computer to automatically identify mobile phone and install mobile phone driver
CN102360292A (en) * 2011-09-29 2012-02-22 广东高新兴通信股份有限公司 Management system based on plug-in access device

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064812B (en) * 2012-12-24 2016-04-06 珠海市君天电子科技有限公司 Method and device for quickly connecting mobile equipment and computer
CN103064812A (en) * 2012-12-24 2013-04-24 珠海市君天电子科技有限公司 Method and device for quick connection of mobile device and computer
CN103905231A (en) * 2012-12-26 2014-07-02 南京中兴力维软件有限公司 Method and device for unified management of device types
CN104021070A (en) * 2013-03-01 2014-09-03 腾讯科技(深圳)有限公司 Method, device and system for testing intelligent terminal software packages
CN104021070B (en) * 2013-03-01 2018-03-20 腾讯科技(深圳)有限公司 A kind of intelligent terminal software bag method of testing, device and system
CN104035860A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Method, device and system for generating test tasks of intelligent terminal software package
CN104035860B (en) * 2013-03-07 2018-04-20 腾讯科技(深圳)有限公司 Intelligent terminal software bag test assignment generation method, device and system
CN104090986A (en) * 2014-07-28 2014-10-08 福建三元达通讯股份有限公司 Wireless controller slot position control method, access device and wireless controller
RU2632395C2 (en) * 2014-08-08 2017-10-04 Сяоми Инк. Method and device for reporting state of connection between external device and router
CN104168136B (en) * 2014-08-08 2018-04-06 小米科技有限责任公司 The Notification Method and device of connection between external equipment and router
WO2016019714A1 (en) * 2014-08-08 2016-02-11 小米科技有限责任公司 Method and apparatus for informing connecting condition between external device and router
CN104168136A (en) * 2014-08-08 2014-11-26 小米科技有限责任公司 Informing method and device for connecting condition between external device and router
CN105141686B (en) * 2015-08-19 2019-04-09 贵阳朗玛信息技术股份有限公司 A kind of method and device for realizing Bluetooth communication
CN105141686A (en) * 2015-08-19 2015-12-09 贵阳朗玛信息技术股份有限公司 Method and device for achieving bluetooth communication
CN105446746A (en) * 2015-12-29 2016-03-30 同方威视技术股份有限公司 System dynamic configuration method and system dynamic configuration device
CN109951860A (en) * 2017-12-21 2019-06-28 深圳Tcl新技术有限公司 A kind of method, smart television and storage medium obtaining WIFI information
CN110569069A (en) * 2018-06-06 2019-12-13 海能达通信股份有限公司 Configuration management method, configuration management system and device with storage function
CN109491986A (en) * 2018-10-31 2019-03-19 深圳市中电数通智慧安全科技股份有限公司 A kind of fire-fighting method for parameter configuration, device and terminal device
CN110597146A (en) * 2019-10-08 2019-12-20 六安市三鑫电器设备有限公司 Integrated electric control cabinet and control method thereof
CN113283999A (en) * 2021-04-07 2021-08-20 南方电网数字电网研究院有限公司 Grid-province two-stage data synchronization method and device for power monitoring system and computer equipment
CN113283999B (en) * 2021-04-07 2024-01-23 南方电网数字平台科技(广东)有限公司 Power monitoring system network province two-stage data synchronization method, device and computer equipment
CN113270179A (en) * 2021-05-25 2021-08-17 北京金山云网络技术有限公司 Medical skill examination method, device and system and electronic equipment

Also Published As

Publication number Publication date
CN102724356B (en) 2018-01-02

Similar Documents

Publication Publication Date Title
CN102724356A (en) Information synchronization method and device of access device
US7269183B2 (en) System and method for connecting bluetooth-enabled devices to a personal computer
CN103559150A (en) Realizing method and device for external camera of host, and mobile terminal
CN102508734B (en) Operating system recovery method and intelligent equipment
CN102866925B (en) Communication method and system for middleware and user interface
CN103309754A (en) Terminal and data partitioned management method
EP2320328B1 (en) Operation mode switching of data card and its control method, device and data card
CN101106502B (en) System and method for storing data into web storage using wireless lan
CN102023940A (en) CPCI (compact peripheral component interconnection) hot swapping system
CN102364957A (en) Method, device and equipment for playing internet videos
CN103369037A (en) Method for automatically synchronizing data among Android intelligent equipment
CN103986615A (en) Testing method and device
CN103914312A (en) Application processing method, application processing device and electronic device
CN112486733B (en) System restoration method, device, terminal and storage medium
EP2180637B1 (en) Main electronic device for communicating within a network and method for operating a main electronic device for communicating within the network
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN101984641B (en) Mobile terminal and backlight control method thereof
CN112230945B (en) Method and device for improving equipment compatibility, electronic equipment and storage medium
CN103914310A (en) Anaesthesia machine upgrading method and device
CN102377243B (en) Collocation method of 101 protocol parameter, collocation device thereof and collocation system thereof
CN111092765B (en) Intelligent driving method, system, electronic device and readable storage medium
CN110177364B (en) Bluetooth device pairing connection method and device, storage medium and electronic device
JP5847064B2 (en) Simple monitoring and control device
CN103457644B (en) The method of backup associated person information and portable terminal
CN112399242A (en) Mobile network connection method, device, equipment and medium based on television

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant